@sisense/sdk-ui 1.27.0 → 1.28.0
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/dist/ai.cjs +50 -50
- package/dist/ai.js +909 -858
- package/dist/analytics-composer.cjs +49 -49
- package/dist/analytics-composer.js +374 -374
- package/dist/{derive-chart-family-BXkBWhAA.cjs → derive-chart-family-BNu7PP-p.cjs} +42 -42
- package/dist/{derive-chart-family-DRBbYXus.js → derive-chart-family-BYdyoe8O.js} +953 -951
- package/dist/index.cjs +55 -55
- package/dist/index.js +3676 -3620
- package/dist/packages/sdk-ui/src/ai/api/chat-rest-api.d.ts +5 -3
- package/dist/packages/sdk-ui/src/ai/api/hooks.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/api/types.d.ts +12 -2
- package/dist/packages/sdk-ui/src/ai/chart/chart-insights.d.ts +2 -2
- package/dist/packages/sdk-ui/src/ai/{get-nlg-query-result.d.ts → get-nlg-insights.d.ts} +21 -6
- package/dist/packages/sdk-ui/src/ai/index.d.ts +4 -3
- package/dist/packages/sdk-ui/src/ai/messages/insights-message.d.ts +2 -2
- package/dist/packages/sdk-ui/src/ai/{use-get-nlg-query-result.d.ts → use-get-nlg-insights.d.ts} +17 -10
- package/dist/packages/sdk-ui/src/ai/use-get-nlq-result.d.ts +74 -0
- package/dist/packages/sdk-ui/src/ai/use-get-query-recommendations.d.ts +8 -1
- package/dist/packages/sdk-ui/src/analytics-composer/common/stringify-props.d.ts +1 -1
- package/dist/packages/sdk-ui/src/analytics-composer/common/utils.d.ts +17 -0
- package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +30 -1
- package/dist/packages/sdk-ui/src/filters/components/cascading-filter-tile/cascading-filter-tile.d.ts +2 -2
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/custom-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-tile-container.d.ts +42 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-tile.d.ts +19 -35
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/index.d.ts +0 -1
- package/dist/packages/sdk-ui/src/filters/components/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/member-filter-tile.d.ts +2 -2
- package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/members-reducer.d.ts +7 -0
- package/dist/packages/sdk-ui/src/filters/components/unsupported-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/hooks/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/filters/hooks/use-get-filter-members.d.ts +77 -0
- package/dist/packages/sdk-ui/src/filters/index.d.ts +2 -6
- package/dist/packages/sdk-ui/src/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/models/widget/widget-model-translator.d.ts +9 -1
- package/dist/packages/sdk-ui/src/query/date-formats/apply-date-format.d.ts +1 -1
- package/dist/useQuery-7UcSPq8U.cjs +915 -0
- package/dist/{useQuery-BWxPQevB.js → useQuery-CwqhrvKr.js} +35591 -33488
- package/dist/{widget-composer-Dwta0nDD.cjs → widget-composer-BvJFwTM1.cjs} +10 -8
- package/dist/{widget-composer-BBhoRRAJ.js → widget-composer-CAmaQCTo.js} +155 -132
- package/package.json +7 -7
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/filters-panel-tile.d.ts +0 -24
- package/dist/useQuery-DHk01evX.cjs +0 -882
|
@@ -1526,7 +1526,7 @@ var Hc = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1526
1526
|
function rm(t) {
|
|
1527
1527
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1528
1528
|
}
|
|
1529
|
-
function
|
|
1529
|
+
function xO(t) {
|
|
1530
1530
|
if (t.__esModule)
|
|
1531
1531
|
return t;
|
|
1532
1532
|
var i = t.default;
|
|
@@ -3631,7 +3631,7 @@ class Br extends la {
|
|
|
3631
3631
|
}
|
|
3632
3632
|
}
|
|
3633
3633
|
}
|
|
3634
|
-
function
|
|
3634
|
+
function SO(t) {
|
|
3635
3635
|
return t.granularity ? cS(t) : new la(t.name || t.title, t.attribute || t.expression || t.dim, t.type, t.desc || t.description, t.sort, t.dataSource);
|
|
3636
3636
|
}
|
|
3637
3637
|
function cS(t) {
|
|
@@ -4287,7 +4287,7 @@ const mn = {
|
|
|
4287
4287
|
};
|
|
4288
4288
|
class sr extends Qd {
|
|
4289
4289
|
constructor(i, f, R) {
|
|
4290
|
-
super("filter", Re.Filter), this.filterType = f, sr.checkAttributeSupport(i), this.attribute = i, this.config = Ym({}, Yh(), R != null ? R : {});
|
|
4290
|
+
super("filter", Re.Filter), this.filterType = f, this.isScope = !0, sr.checkAttributeSupport(i), this.attribute = i, this.config = Ym({}, Yh(), R != null ? R : {});
|
|
4291
4291
|
}
|
|
4292
4292
|
get name() {
|
|
4293
4293
|
return Jw(this.jaql()).toString(16);
|
|
@@ -4385,24 +4385,22 @@ class vC extends sr {
|
|
|
4385
4385
|
} : f;
|
|
4386
4386
|
}
|
|
4387
4387
|
}
|
|
4388
|
-
class
|
|
4388
|
+
class bC extends sr {
|
|
4389
4389
|
constructor(i, f) {
|
|
4390
|
-
super(i[0].attribute, ci.cascading, f), this.
|
|
4390
|
+
super(i[0].attribute, ci.cascading, f), this._filters = i;
|
|
4391
4391
|
}
|
|
4392
4392
|
/**
|
|
4393
|
-
*
|
|
4393
|
+
* Returns the level filters with the root config applied.
|
|
4394
4394
|
*/
|
|
4395
|
-
|
|
4395
|
+
get filters() {
|
|
4396
4396
|
const { disabled: i, locked: f } = this.config;
|
|
4397
|
-
this.
|
|
4398
|
-
R.config.disabled = i, R.config.locked = f;
|
|
4399
|
-
});
|
|
4397
|
+
return this._filters.map((R) => (R.config = Object.assign(Object.assign({}, R.config), { disabled: i, locked: f }), R));
|
|
4400
4398
|
}
|
|
4401
4399
|
/**
|
|
4402
4400
|
* gets the element's ID
|
|
4403
4401
|
*/
|
|
4404
4402
|
get id() {
|
|
4405
|
-
return `${this.filterType}_${this.
|
|
4403
|
+
return `${this.filterType}_${this._filters.map((i) => i.id).join()}`;
|
|
4406
4404
|
}
|
|
4407
4405
|
/**
|
|
4408
4406
|
* Gets a serializable representation of the element
|
|
@@ -4421,7 +4419,7 @@ class wO extends sr {
|
|
|
4421
4419
|
return this.config.disabled ? sr.disabledJaql(i) : this.filters.map((f) => (f.isScope = !0, f.jaql(i)));
|
|
4422
4420
|
}
|
|
4423
4421
|
}
|
|
4424
|
-
class
|
|
4422
|
+
class xC extends sr {
|
|
4425
4423
|
constructor(i, f, R) {
|
|
4426
4424
|
super(i.attribute, ci.exclude, R), this.input = f, this.filter = i;
|
|
4427
4425
|
}
|
|
@@ -4473,7 +4471,7 @@ class Vh extends sr {
|
|
|
4473
4471
|
return this.operatorA && this.valueA !== void 0 && (i[this.operatorA] = this.valueA), this.operatorB && this.valueB !== void 0 && (i[this.operatorB] = this.valueB), i;
|
|
4474
4472
|
}
|
|
4475
4473
|
}
|
|
4476
|
-
class
|
|
4474
|
+
class SC extends Vh {
|
|
4477
4475
|
constructor(i, f, R, W, tt, it, at) {
|
|
4478
4476
|
super(i, ci.measure, R, W, tt, it, at), this.measure = f;
|
|
4479
4477
|
}
|
|
@@ -4525,7 +4523,7 @@ class Km extends sr {
|
|
|
4525
4523
|
return i[this.operator] = this.count, i.by = this.measure.jaql(!0), i;
|
|
4526
4524
|
}
|
|
4527
4525
|
}
|
|
4528
|
-
class
|
|
4526
|
+
class wC extends Vh {
|
|
4529
4527
|
constructor(i, f, R, W, tt, it) {
|
|
4530
4528
|
super(i, ci.numeric, f, R, W, tt, it);
|
|
4531
4529
|
}
|
|
@@ -4535,7 +4533,7 @@ class yn extends Vh {
|
|
|
4535
4533
|
super(i, ci.text, f, R, void 0, void 0, W);
|
|
4536
4534
|
}
|
|
4537
4535
|
}
|
|
4538
|
-
class
|
|
4536
|
+
class CC extends Vh {
|
|
4539
4537
|
constructor(i, f, R, W) {
|
|
4540
4538
|
super(i, ci.dateRange, Pl.From, f, Pl.To, R, W), typeof f == "object" && (this.valueA = f.toISOString()), typeof R == "object" && (this.valueB = R.toISOString());
|
|
4541
4539
|
}
|
|
@@ -4588,7 +4586,7 @@ class qm extends sr {
|
|
|
4588
4586
|
}, this.anchor && (typeof this.anchor == "string" ? i[this.operator].anchor = this.anchor : typeof this.anchor == "object" && (i[this.operator].anchor = this.anchor.toISOString())), i;
|
|
4589
4587
|
}
|
|
4590
4588
|
}
|
|
4591
|
-
class
|
|
4589
|
+
class TC extends sr {
|
|
4592
4590
|
constructor(i, f, R) {
|
|
4593
4591
|
super(i, ci.advanced, R), delete f.filterType, this.jaqlExpression = f;
|
|
4594
4592
|
}
|
|
@@ -4633,97 +4631,97 @@ function EO(t) {
|
|
|
4633
4631
|
function LO(t) {
|
|
4634
4632
|
return "filterType" in t && t.filterType === ci.dateRange;
|
|
4635
4633
|
}
|
|
4636
|
-
function
|
|
4634
|
+
function kC(t, i) {
|
|
4637
4635
|
return new Zm(t, Vm.Union, i);
|
|
4638
4636
|
}
|
|
4639
|
-
function
|
|
4637
|
+
function MC(t, i) {
|
|
4640
4638
|
return new Zm(t, Vm.Intersection, i);
|
|
4641
4639
|
}
|
|
4642
|
-
function MC(t, i, f) {
|
|
4643
|
-
return new bC(t, i, f);
|
|
4644
|
-
}
|
|
4645
4640
|
function AC(t, i, f) {
|
|
4646
|
-
return new
|
|
4641
|
+
return new xC(t, i, f);
|
|
4647
4642
|
}
|
|
4648
4643
|
function PC(t, i, f) {
|
|
4649
|
-
return new yn(t, mn.
|
|
4644
|
+
return new yn(t, mn.DoesntContain, i, f);
|
|
4650
4645
|
}
|
|
4651
4646
|
function EC(t, i, f) {
|
|
4652
|
-
return new yn(t, mn.
|
|
4647
|
+
return new yn(t, mn.DoesntEndWith, i, f);
|
|
4653
4648
|
}
|
|
4654
4649
|
function LC(t, i, f) {
|
|
4655
|
-
return new yn(t, mn.
|
|
4650
|
+
return new yn(t, mn.DoesntStartWith, i, f);
|
|
4656
4651
|
}
|
|
4657
4652
|
function OC(t, i, f) {
|
|
4658
|
-
return new yn(t, mn.
|
|
4653
|
+
return new yn(t, mn.Contains, i, f);
|
|
4659
4654
|
}
|
|
4660
4655
|
function DC(t, i, f) {
|
|
4656
|
+
return new yn(t, mn.EndsWith, i, f);
|
|
4657
|
+
}
|
|
4658
|
+
function IC(t, i, f) {
|
|
4661
4659
|
return new yn(t, mn.StartsWith, i, f);
|
|
4662
4660
|
}
|
|
4663
4661
|
function OO(t, i, f) {
|
|
4664
4662
|
return new yn(t, mn.Like, i, f);
|
|
4665
4663
|
}
|
|
4666
|
-
function
|
|
4664
|
+
function RC(t, i, f) {
|
|
4667
4665
|
return typeof i == "string" ? new yn(t, mn.DoesntEqual, i, f) : Yo(t, Wi.DoesntEqual, i, void 0, void 0, f);
|
|
4668
4666
|
}
|
|
4669
|
-
function
|
|
4667
|
+
function jC(t, i, f) {
|
|
4670
4668
|
return typeof i == "string" ? new yn(t, mn.Equals, i, f) : Yo(t, Wi.Equals, i, void 0, void 0, f);
|
|
4671
4669
|
}
|
|
4672
|
-
function
|
|
4670
|
+
function BC(t, i, f) {
|
|
4673
4671
|
return Yo(t, Wi.FromNotEqual, i, void 0, void 0, f);
|
|
4674
4672
|
}
|
|
4675
|
-
function
|
|
4673
|
+
function _C(t, i, f) {
|
|
4676
4674
|
return Yo(t, Wi.From, i, void 0, void 0, f);
|
|
4677
4675
|
}
|
|
4678
|
-
function
|
|
4676
|
+
function NC(t, i, f) {
|
|
4679
4677
|
return Yo(t, Wi.ToNotEqual, i, void 0, void 0, f);
|
|
4680
4678
|
}
|
|
4681
|
-
function
|
|
4679
|
+
function zC(t, i, f) {
|
|
4682
4680
|
return Yo(t, Wi.To, i, void 0, void 0, f);
|
|
4683
4681
|
}
|
|
4684
4682
|
function Td(t, i, f, R) {
|
|
4685
4683
|
return Yo(t, Wi.From, i, Wi.To, f, R);
|
|
4686
4684
|
}
|
|
4687
4685
|
function Yo(t, i, f, R, W, tt) {
|
|
4688
|
-
return new
|
|
4686
|
+
return new wC(t, i, f, R, W, tt);
|
|
4689
4687
|
}
|
|
4690
4688
|
function yp(t, i, f) {
|
|
4691
4689
|
return new vC(t, i, f);
|
|
4692
4690
|
}
|
|
4693
|
-
function
|
|
4694
|
-
return new
|
|
4691
|
+
function FC(t, i, f, R) {
|
|
4692
|
+
return new CC(t, i, f, R);
|
|
4695
4693
|
}
|
|
4696
|
-
function
|
|
4694
|
+
function WC(t, i, f, R, W) {
|
|
4697
4695
|
return new qm(t, i, f, Pl.Next, R, W);
|
|
4698
4696
|
}
|
|
4699
|
-
function
|
|
4697
|
+
function HC(t, i, f, R, W) {
|
|
4700
4698
|
return new qm(t, i, f, Pl.Last, R, W);
|
|
4701
4699
|
}
|
|
4702
4700
|
function ha(t, i, f, R, W, tt, it) {
|
|
4703
|
-
return new
|
|
4701
|
+
return new SC(t, i, f, R, W, tt, it);
|
|
4704
4702
|
}
|
|
4705
|
-
function
|
|
4703
|
+
function UC(t, i, f) {
|
|
4706
4704
|
return ha(t.attribute, t, Wi.Equals, i, void 0, void 0, f);
|
|
4707
4705
|
}
|
|
4708
|
-
function
|
|
4706
|
+
function GC(t, i, f) {
|
|
4709
4707
|
return ha(t.attribute, t, Wi.FromNotEqual, i, void 0, void 0, f);
|
|
4710
4708
|
}
|
|
4711
|
-
function
|
|
4709
|
+
function XC(t, i, f) {
|
|
4712
4710
|
return ha(t.attribute, t, Wi.From, i, void 0, void 0, f);
|
|
4713
4711
|
}
|
|
4714
|
-
function
|
|
4712
|
+
function YC(t, i, f) {
|
|
4715
4713
|
return ha(t.attribute, t, Wi.To, i, void 0, void 0, f);
|
|
4716
4714
|
}
|
|
4717
|
-
function
|
|
4715
|
+
function VC(t, i, f) {
|
|
4718
4716
|
return ha(t.attribute, t, Wi.ToNotEqual, i, void 0, void 0, f);
|
|
4719
4717
|
}
|
|
4720
|
-
function
|
|
4718
|
+
function $C(t, i, f, R) {
|
|
4721
4719
|
return ha(t.attribute, t, Wi.From, i, Wi.To, f, R);
|
|
4722
4720
|
}
|
|
4723
|
-
function
|
|
4721
|
+
function ZC(t, i, f, R) {
|
|
4724
4722
|
return new Km(t, i, $m.Top, f, R);
|
|
4725
4723
|
}
|
|
4726
|
-
function
|
|
4724
|
+
function KC(t, i, f, R) {
|
|
4727
4725
|
return new Km(t, i, $m.Bottom, f, R);
|
|
4728
4726
|
}
|
|
4729
4727
|
const Bo = (t) => {
|
|
@@ -4737,6 +4735,9 @@ const Bo = (t) => {
|
|
|
4737
4735
|
}
|
|
4738
4736
|
return t;
|
|
4739
4737
|
};
|
|
4738
|
+
function DO(t, i) {
|
|
4739
|
+
return new bC(t, i);
|
|
4740
|
+
}
|
|
4740
4741
|
var ed;
|
|
4741
4742
|
(function(t) {
|
|
4742
4743
|
t.and = (i, f) => ({
|
|
@@ -4749,8 +4750,8 @@ var ed;
|
|
|
4749
4750
|
right: Bo(f)
|
|
4750
4751
|
});
|
|
4751
4752
|
})(ed = ed || (ed = {}));
|
|
4752
|
-
function
|
|
4753
|
-
return new
|
|
4753
|
+
function qC(t, i, f) {
|
|
4754
|
+
return new TC(t, i, f);
|
|
4754
4755
|
}
|
|
4755
4756
|
function Jm(t, i = []) {
|
|
4756
4757
|
try {
|
|
@@ -4787,77 +4788,77 @@ const Df = "DM", Qm = (t, i, f, R, W, tt, it) => {
|
|
|
4787
4788
|
}
|
|
4788
4789
|
const ut = Fi(W) ? Re.NumericAttribute : Re.TextAttribute, mt = new la(tt != null ? tt : ht, t, ut, void 0, void 0, it);
|
|
4789
4790
|
return mt.composeCode = vf(at, ht, void 0, Df), mt;
|
|
4790
|
-
},
|
|
4791
|
+
}, JC = (t) => {
|
|
4791
4792
|
const { dim: i, table: f, column: R, level: W, datatype: tt, title: it, datasource: at } = t;
|
|
4792
4793
|
return Qm(i, f, R, W, tt, it, at);
|
|
4793
4794
|
}, ty = (t, i, f, R, W, tt, it, at) => {
|
|
4794
4795
|
const ht = Qm(t, i, f, R, W, it, at), ut = xp(ht, tt, it);
|
|
4795
4796
|
return ut.composeCode = `measureFactory.${tt}(${ht.composeCode})`, ut;
|
|
4796
|
-
},
|
|
4797
|
+
}, QC = (t) => {
|
|
4797
4798
|
const i = bp(t);
|
|
4798
4799
|
return i.composeCode = "'Formula code to be implemented'", i;
|
|
4799
|
-
},
|
|
4800
|
+
}, tT = (t) => {
|
|
4800
4801
|
const { dim: i, table: f, column: R, title: W, level: tt, datatype: it, agg: at, datasource: ht } = t;
|
|
4801
4802
|
if (at)
|
|
4802
4803
|
return ty(i, f, R, tt, it, Jr.aggregationFromJAQL(at), W, ht);
|
|
4803
4804
|
}, If = (t, i) => {
|
|
4804
4805
|
if ("formula" in t)
|
|
4805
|
-
return
|
|
4806
|
+
return QC(t);
|
|
4806
4807
|
const { dim: f, table: R, column: W, level: tt, datatype: it, agg: at } = t;
|
|
4807
4808
|
return ty(f, R, W, tt, it, Jr.aggregationFromJAQL(at), i);
|
|
4808
|
-
},
|
|
4809
|
+
}, eT = (t) => t.top !== void 0, iT = (t) => t.bottom !== void 0, rT = (t) => {
|
|
4809
4810
|
var i;
|
|
4810
4811
|
return !!(!((i = t.exclude) === null || i === void 0) && i.members);
|
|
4811
|
-
},
|
|
4812
|
+
}, nT = (t) => !!t.members && !!t.isCondition, oT = (t) => {
|
|
4812
4813
|
var i, f;
|
|
4813
4814
|
return ((i = t.last) === null || i === void 0 ? void 0 : i.anchor) !== void 0 || ((f = t.next) === null || f === void 0 ? void 0 : f.anchor) !== void 0;
|
|
4814
|
-
},
|
|
4815
|
+
}, sT = (t) => t.fromNotEqual !== void 0, aT = (t) => t.from !== void 0 && !t.isBetween, lT = (t) => t.toNotEqual !== void 0, cT = (t) => t.to !== void 0 && !t.isBetween, hT = (t) => t.equals !== void 0, uT = (t) => t.doesntEqual !== void 0, dT = (t) => !!(t.equals === "" && t.isEmpty), pT = (t) => !!(t.doesntEqual === "" && t.isEmpty), fT = (t) => t.contains !== void 0, gT = (t) => t.doesntContain !== void 0, mT = (t) => t.startsWith !== void 0, yT = (t) => t.doesntStartWith !== void 0, vT = (t) => t.endsWith !== void 0, bT = (t) => t.doesntEndWith !== void 0, xT = (t) => t.from !== void 0 && t.to !== void 0, ST = (t) => {
|
|
4815
4816
|
var i, f;
|
|
4816
4817
|
return ((i = t.exclude) === null || i === void 0 ? void 0 : i.from) !== void 0 && ((f = t.exclude) === null || f === void 0 ? void 0 : f.to) !== void 0;
|
|
4817
|
-
},
|
|
4818
|
+
}, wT = (t) => !!(t.or || t.and), vp = (t) => iT(t) ? me.BOTTOM : eT(t) ? me.TOP : rT(t) ? me.IS_NOT : oT(t) ? me.IS_WITHIN : sT(t) ? me.GREATER_THAN : lT(t) ? me.LESS_THAN : hT(t) ? me.EQUALS : uT(t) ? me.DOESNT_EQUAL : dT(t) ? me.IS_EMPTY : pT(t) ? me.IS_NOT_EMPTY : fT(t) ? me.CONTAINS : gT(t) ? me.DOESNT_CONTAIN : bT(t) ? me.DOESNT_END_WITH : yT(t) ? me.DOESNT_START_WITH : vT(t) ? me.ENDS_WITH : mT(t) ? me.STARTS_WITH : ST(t) ? me.IS_NOT_BETWEEN : nT(t) ? me.IS : wT(t) ? me.MULTIPLE_CONDITION : xT(t) ? me.BETWEEN : aT(t) ? me.GREATER_THAN_OR_EQUAL : cT(t) ? me.LESS_THAN_OR_EQUAL : me.NONE, kd = (t, i, f) => {
|
|
4818
4819
|
var R, W, tt, it, at, ht, ut;
|
|
4819
4820
|
switch (vp(i)) {
|
|
4820
4821
|
case me.BOTTOM:
|
|
4821
4822
|
if (i.by)
|
|
4822
|
-
return _e(
|
|
4823
|
+
return _e(KC, "bottomRanking")(t, If(i.by, i.rankingMessage), i[me.BOTTOM], { guid: f });
|
|
4823
4824
|
break;
|
|
4824
4825
|
case me.EQUALS:
|
|
4825
|
-
return _e(
|
|
4826
|
+
return _e(jC, "equals")(t, i[me.EQUALS], { guid: f });
|
|
4826
4827
|
case me.DOESNT_EQUAL:
|
|
4827
|
-
return _e(
|
|
4828
|
+
return _e(RC, "doesntEqual")(t, i[me.DOESNT_EQUAL], { guid: f });
|
|
4828
4829
|
case me.GREATER_THAN:
|
|
4829
|
-
return _e(
|
|
4830
|
+
return _e(BC, "greaterThan")(t, i[me.GREATER_THAN], { guid: f });
|
|
4830
4831
|
case me.GREATER_THAN_OR_EQUAL:
|
|
4831
|
-
return _e(
|
|
4832
|
+
return _e(_C, "greaterThanOrEqual")(t, i[me.GREATER_THAN_OR_EQUAL], { guid: f });
|
|
4832
4833
|
case me.TOP:
|
|
4833
4834
|
if (i.by)
|
|
4834
|
-
return _e(
|
|
4835
|
+
return _e(ZC, "topRanking")(t, If(i.by, i.rankingMessage), i[me.TOP], { guid: f });
|
|
4835
4836
|
break;
|
|
4836
4837
|
case me.STARTS_WITH:
|
|
4837
|
-
return _e(
|
|
4838
|
+
return _e(IC, "startsWith")(t, i[me.STARTS_WITH], { guid: f });
|
|
4838
4839
|
case me.DOESNT_START_WITH:
|
|
4839
|
-
return _e(
|
|
4840
|
+
return _e(LC, "doesntStartWith")(t, i[me.DOESNT_START_WITH], { guid: f });
|
|
4840
4841
|
case me.ENDS_WITH:
|
|
4841
|
-
return _e(
|
|
4842
|
+
return _e(DC, "endsWith")(t, i[me.ENDS_WITH], { guid: f });
|
|
4842
4843
|
case me.DOESNT_END_WITH:
|
|
4843
|
-
return _e(
|
|
4844
|
+
return _e(EC, "doesntEndWith")(t, i[me.DOESNT_END_WITH], { guid: f });
|
|
4844
4845
|
case me.CONTAINS:
|
|
4845
|
-
return _e(
|
|
4846
|
+
return _e(OC, "contains")(t, i[me.CONTAINS], { guid: f });
|
|
4846
4847
|
case me.DOESNT_CONTAIN:
|
|
4847
|
-
return _e(
|
|
4848
|
+
return _e(PC, "doesntContain")(t, i[me.DOESNT_CONTAIN], { guid: f });
|
|
4848
4849
|
case me.LESS_THAN:
|
|
4849
|
-
return _e(
|
|
4850
|
+
return _e(NC, "lessThan")(t, i[me.LESS_THAN], { guid: f });
|
|
4850
4851
|
case me.LESS_THAN_OR_EQUAL:
|
|
4851
|
-
return _e(
|
|
4852
|
+
return _e(zC, "lessThanOrEqual")(t, i[me.LESS_THAN_OR_EQUAL], { guid: f });
|
|
4852
4853
|
case me.BETWEEN:
|
|
4853
4854
|
return _e(Td, "between")(t, i.from, i.to, { guid: f });
|
|
4854
4855
|
case me.IS_NOT_BETWEEN:
|
|
4855
|
-
return _e(
|
|
4856
|
+
return _e(AC, "exclude")(_e(Td, "between")(t, (R = i.exclude) === null || R === void 0 ? void 0 : R.from, (W = i.exclude) === null || W === void 0 ? void 0 : W.to, { guid: f }), void 0, { guid: f });
|
|
4856
4857
|
case me.MULTIPLE_CONDITION:
|
|
4857
4858
|
if (i.and)
|
|
4858
|
-
return _e(
|
|
4859
|
+
return _e(MC, "intersection")(i.and.map((ft) => kd(t, ft, f)), { guid: f });
|
|
4859
4860
|
if (i.or)
|
|
4860
|
-
return _e(
|
|
4861
|
+
return _e(kC, "union")(i.or.map((ft) => kd(t, ft, f)), { guid: f });
|
|
4861
4862
|
break;
|
|
4862
4863
|
case me.IS_NOT: {
|
|
4863
4864
|
const ft = ((tt = i.filter) === null || tt === void 0 ? void 0 : tt.turnedOff) && ((it = i.filter.exclude) === null || it === void 0 ? void 0 : it.members) || [], _ = ((ht = (at = i.exclude) === null || at === void 0 ? void 0 : at.members) === null || ht === void 0 ? void 0 : ht.filter((G) => !ft.includes(G))) || [], lt = zm({
|
|
@@ -4872,46 +4873,46 @@ const Df = "DM", Qm = (t, i, f, R, W, tt, it) => {
|
|
|
4872
4873
|
throw new ca("errors.filter.unsupportedConditionFilter", {
|
|
4873
4874
|
filter: JSON.stringify(i)
|
|
4874
4875
|
});
|
|
4875
|
-
},
|
|
4876
|
+
}, CT = (t, i, f) => {
|
|
4876
4877
|
switch (vp(i)) {
|
|
4877
4878
|
case me.EQUALS:
|
|
4878
|
-
return _e(
|
|
4879
|
+
return _e(UC, "measureEquals")(t, i[me.EQUALS], { guid: f });
|
|
4879
4880
|
case me.GREATER_THAN:
|
|
4880
|
-
return _e(
|
|
4881
|
+
return _e(GC, "measureGreaterThan")(t, i[me.GREATER_THAN], { guid: f });
|
|
4881
4882
|
case me.GREATER_THAN_OR_EQUAL:
|
|
4882
|
-
return _e(
|
|
4883
|
+
return _e(XC, "measureGreaterThanOrEqual")(t, i[me.GREATER_THAN_OR_EQUAL], { guid: f });
|
|
4883
4884
|
case me.LESS_THAN:
|
|
4884
|
-
return _e(
|
|
4885
|
+
return _e(VC, "measureLessThan")(t, i[me.LESS_THAN], { guid: f });
|
|
4885
4886
|
case me.LESS_THAN_OR_EQUAL:
|
|
4886
|
-
return _e(
|
|
4887
|
+
return _e(YC, "measureLessThanOrEqual")(t, i[me.LESS_THAN_OR_EQUAL], { guid: f });
|
|
4887
4888
|
case me.BETWEEN:
|
|
4888
|
-
return _e(
|
|
4889
|
+
return _e($C, "measureBetween")(t, i.from, i.to, { guid: f });
|
|
4889
4890
|
}
|
|
4890
4891
|
throw new ca("errors.filter.unsupportedConditionFilter", {
|
|
4891
4892
|
filter: JSON.stringify(i)
|
|
4892
4893
|
});
|
|
4893
|
-
},
|
|
4894
|
+
}, TT = (t, i) => {
|
|
4894
4895
|
let f = t ? t.toLocaleLowerCase() : $n.YEARS;
|
|
4895
4896
|
return f === $n.MINUTES && i === "60" && (f = $n.HOURS), f;
|
|
4896
|
-
},
|
|
4897
|
+
}, kT = (t) => t == null ? void 0 : t.all, MT = (t) => t.last ? t.last : t.next, AT = (t) => {
|
|
4897
4898
|
var i;
|
|
4898
|
-
return ((i =
|
|
4899
|
-
},
|
|
4899
|
+
return ((i = MT(t)) === null || i === void 0 ? void 0 : i.offset) < 2;
|
|
4900
|
+
}, PT = (t) => {
|
|
4900
4901
|
var i;
|
|
4901
4902
|
return ((i = t == null ? void 0 : t.members) === null || i === void 0 ? void 0 : i.length) >= 0;
|
|
4902
|
-
},
|
|
4903
|
+
}, ET = (t, i) => t && typeof t == "string" || i && typeof i == "string", LT = (t, i) => t === "" && i === "", OT = (t, i) => {
|
|
4903
4904
|
const { from: f, to: R } = t;
|
|
4904
|
-
return i !== Js.DATE_TIME ? !1 :
|
|
4905
|
-
},
|
|
4905
|
+
return i !== Js.DATE_TIME ? !1 : ET(f, R) ? !0 : LT(f, R);
|
|
4906
|
+
}, DT = (t) => {
|
|
4906
4907
|
const { from: i, to: f } = t;
|
|
4907
4908
|
return i !== void 0 && f !== void 0 && !t.isBetween;
|
|
4908
|
-
},
|
|
4909
|
+
}, IT = (t) => vp(t) !== me.NONE, RT = (t) => Object.keys(t).includes("isAdvanced"), jT = (t) => !!(t.level && t.bucket && t.level === $n.MINUTES && Ow.includes(t.bucket)), BT = (t) => t.filterType === We.INVALID, Rf = (t, i = Js.DATE_TIME, f) => f && jT(f) || RT(t) ? We.ADVANCED : kT(t) ? We.INCLUDE_ALL : AT(t) ? We.PERIOD : PT(t) ? We.SPECIFIC_ITEMS : OT(t, i) ? We.DATE_RANGE : DT(t) ? We.NUMERIC_RANGE : IT(t) ? We.CONDITION : (BT(t), We.INVALID), _T = (t, i) => {
|
|
4909
4910
|
const { level: f, filter: R, bucket: W } = t, tt = R || Iw.filter, it = {
|
|
4910
4911
|
filter: Object.assign(Object.assign({}, tt), { filterType: Rf(tt, i) })
|
|
4911
4912
|
};
|
|
4912
4913
|
if (i === Js.DATE_TIME) {
|
|
4913
4914
|
const at = tt, ht = (at == null ? void 0 : at.level) || f;
|
|
4914
|
-
it.level =
|
|
4915
|
+
it.level = TT(ht, W), it.filter.filterType = Rf(tt, i, { level: ht, bucket: W });
|
|
4915
4916
|
}
|
|
4916
4917
|
return it;
|
|
4917
4918
|
}, jf = (t, i) => ({
|
|
@@ -4930,14 +4931,14 @@ const Df = "DM", Qm = (t, i, f, R, W, tt, it) => {
|
|
|
4930
4931
|
toJSON() {
|
|
4931
4932
|
return this.serializable();
|
|
4932
4933
|
}
|
|
4933
|
-
}),
|
|
4934
|
+
}), NT = (t, i) => {
|
|
4934
4935
|
const f = {
|
|
4935
4936
|
guid: i,
|
|
4936
4937
|
excludeMembers: !0
|
|
4937
4938
|
};
|
|
4938
4939
|
return _e(yp, "members")(t, [], f);
|
|
4939
|
-
},
|
|
4940
|
-
const W =
|
|
4940
|
+
}, zT = (t, i, f, R) => {
|
|
4941
|
+
const W = FT(i), tt = WT(i, W), it = zm({
|
|
4941
4942
|
guid: f,
|
|
4942
4943
|
excludeMembers: !1,
|
|
4943
4944
|
enableMultiSelection: R != null ? R : !0,
|
|
@@ -4945,15 +4946,15 @@ const Df = "DM", Qm = (t, i, f, R, W, tt, it) => {
|
|
|
4945
4946
|
});
|
|
4946
4947
|
return _e(yp, "members")(t, tt, it);
|
|
4947
4948
|
};
|
|
4948
|
-
function
|
|
4949
|
+
function FT(t) {
|
|
4949
4950
|
var i, f, R, W;
|
|
4950
4951
|
return !((i = t.filter) === null || i === void 0) && i.turnedOff ? (W = (R = (f = t.filter) === null || f === void 0 ? void 0 : f.exclude) === null || R === void 0 ? void 0 : R.members) !== null && W !== void 0 ? W : [] : [];
|
|
4951
4952
|
}
|
|
4952
|
-
function
|
|
4953
|
+
function WT(t, i) {
|
|
4953
4954
|
const f = t.members;
|
|
4954
4955
|
return i ? f.filter((R) => !i.includes(R)) : f;
|
|
4955
4956
|
}
|
|
4956
|
-
const
|
|
4957
|
+
const HT = (t, i, f) => _e(FC, "dateRange")(t, i.from, i.to, { guid: f }), UT = (t, i, f) => _e(Td, "between")(t, i.from, i.to, { guid: f }), GT = (t, i, f) => i.last ? _e(HC, "dateRelativeTo")(t, i.last.offset, i.last.count, i.last.anchor, { guid: f }) : _e(WC, "dateRelativeFrom")(t, i.next.offset, i.next.count, i.next.anchor, { guid: f }), XT = (t, i, f) => _e(qC, "customFilter")(t, i, {
|
|
4957
4958
|
guid: f
|
|
4958
4959
|
}), Bf = (t, i) => {
|
|
4959
4960
|
try {
|
|
@@ -4961,22 +4962,22 @@ const WT = (t, i, f) => _e(zC, "dateRange")(t, i.from, i.to, { guid: f }), HT =
|
|
|
4961
4962
|
throw new ca("errors.filter.formulaFiltersNotSupported", {
|
|
4962
4963
|
filter: JSON.stringify(t)
|
|
4963
4964
|
});
|
|
4964
|
-
const f =
|
|
4965
|
+
const f = _T(t, t.datatype), { filter: R } = f, { filterType: W } = R, tt = JC(t), it = tT(t);
|
|
4965
4966
|
switch (W) {
|
|
4966
4967
|
case We.INCLUDE_ALL:
|
|
4967
|
-
return
|
|
4968
|
+
return NT(tt, i);
|
|
4968
4969
|
case We.SPECIFIC_ITEMS:
|
|
4969
|
-
return
|
|
4970
|
+
return zT(tt, R, i, R.multiSelection);
|
|
4970
4971
|
case We.CONDITION:
|
|
4971
|
-
return it ?
|
|
4972
|
+
return it ? CT(it, R, i) : kd(tt, R, i);
|
|
4972
4973
|
case We.DATE_RANGE:
|
|
4973
|
-
return
|
|
4974
|
+
return HT(tt, R, i);
|
|
4974
4975
|
case We.PERIOD:
|
|
4975
|
-
return
|
|
4976
|
+
return GT(tt, R, i);
|
|
4976
4977
|
case We.NUMERIC_RANGE:
|
|
4977
|
-
return
|
|
4978
|
+
return UT(tt, R, i);
|
|
4978
4979
|
case We.ADVANCED:
|
|
4979
|
-
return
|
|
4980
|
+
return XT(tt, R, i);
|
|
4980
4981
|
case We.INVALID:
|
|
4981
4982
|
return jf(t, i);
|
|
4982
4983
|
}
|
|
@@ -4996,7 +4997,7 @@ const WT = (t, i, f) => _e(zC, "dateRange")(t, i.from, i.to, { guid: f }), HT =
|
|
|
4996
4997
|
R <= 2 && (R = 33554432 + Math.random() * 16777216 | 0), W = R & 15, R = R >> 4, f[tt] = i[tt == 19 ? W & 3 | 8 : W];
|
|
4997
4998
|
}
|
|
4998
4999
|
return f.join("");
|
|
4999
|
-
},
|
|
5000
|
+
}, IO = (t) => {
|
|
5000
5001
|
if (!t)
|
|
5001
5002
|
return { filters: void 0, relations: void 0 };
|
|
5002
5003
|
if (Array.isArray(t))
|
|
@@ -5010,21 +5011,21 @@ const WT = (t, i, f) => _e(zC, "dateRange")(t, i.from, i.to, { guid: f }), HT =
|
|
|
5010
5011
|
return { left: ut, right: mt, operator: "AND" };
|
|
5011
5012
|
}
|
|
5012
5013
|
function R(it) {
|
|
5013
|
-
return it && (
|
|
5014
|
+
return it && (YT(it) ? $h(it) ? f(it.filters) : (i.add(it), { instanceid: it.config.guid }) : ("left" in it && (it.left = R(it.left)), "right" in it && (it.right = R(it.right)), it));
|
|
5014
5015
|
}
|
|
5015
5016
|
const W = gp(t), tt = R(W);
|
|
5016
5017
|
return { filters: Array.from(i), relations: tt };
|
|
5017
5018
|
};
|
|
5018
|
-
function
|
|
5019
|
+
function YT(t) {
|
|
5019
5020
|
return "config" in t && "guid" in t.config;
|
|
5020
5021
|
}
|
|
5021
|
-
function
|
|
5022
|
+
function RO(t) {
|
|
5022
5023
|
return typeof t == "string" ? t : t.title;
|
|
5023
5024
|
}
|
|
5024
|
-
function
|
|
5025
|
+
function VT(t) {
|
|
5025
5026
|
return typeof t == "object" && "type" in t && "title" in t;
|
|
5026
5027
|
}
|
|
5027
|
-
function
|
|
5028
|
+
function jO(t) {
|
|
5028
5029
|
return {
|
|
5029
5030
|
id: t.id,
|
|
5030
5031
|
address: t.address,
|
|
@@ -5032,8 +5033,8 @@ function RO(t) {
|
|
|
5032
5033
|
type: t.live ? "live" : "elasticube"
|
|
5033
5034
|
};
|
|
5034
5035
|
}
|
|
5035
|
-
function
|
|
5036
|
-
return
|
|
5036
|
+
function BO(t) {
|
|
5037
|
+
return VT(t) ? {
|
|
5037
5038
|
title: t.title,
|
|
5038
5039
|
live: t.type === "live"
|
|
5039
5040
|
} : {
|
|
@@ -5044,7 +5045,7 @@ function jO(t) {
|
|
|
5044
5045
|
function iy(t) {
|
|
5045
5046
|
return t ? t === "asc" ? ui.Ascending : ui.Descending : ui.None;
|
|
5046
5047
|
}
|
|
5047
|
-
const
|
|
5048
|
+
const $T = (t, i, f = !1, R = !1) => {
|
|
5048
5049
|
const W = t.filter.filter && !("turnedOff" in t.filter.filter), tt = i || ey(), it = Bf(t, tt);
|
|
5049
5050
|
if (W) {
|
|
5050
5051
|
const at = Bf(Object.assign(Object.assign({}, t), { filter: t.filter.filter }), `${i}-bg`), ht = it.config;
|
|
@@ -5059,13 +5060,13 @@ function ry(t) {
|
|
|
5059
5060
|
column: f ? f.replace("(Calendar)", "").trim() : ""
|
|
5060
5061
|
};
|
|
5061
5062
|
}
|
|
5062
|
-
function
|
|
5063
|
+
function _O(t) {
|
|
5063
5064
|
return ry(t.expression).table;
|
|
5064
5065
|
}
|
|
5065
|
-
function
|
|
5066
|
+
function NO(t) {
|
|
5066
5067
|
return ry(t.expression).column;
|
|
5067
5068
|
}
|
|
5068
|
-
function
|
|
5069
|
+
function zO(t) {
|
|
5069
5070
|
switch (t) {
|
|
5070
5071
|
case vl.ASC:
|
|
5071
5072
|
return "sortAsc";
|
|
@@ -5075,7 +5076,7 @@ function NO(t) {
|
|
|
5075
5076
|
return "sortNone";
|
|
5076
5077
|
}
|
|
5077
5078
|
}
|
|
5078
|
-
function
|
|
5079
|
+
function ZT(t, i, f) {
|
|
5079
5080
|
if (typeof f == "number")
|
|
5080
5081
|
t.push(f.toString());
|
|
5081
5082
|
else if (f && Re.isMeasureTemplate(f.type)) {
|
|
@@ -5095,40 +5096,40 @@ function $T(t, i, f) {
|
|
|
5095
5096
|
}
|
|
5096
5097
|
function ny(t, i, f, R) {
|
|
5097
5098
|
const W = {}, tt = [f + "("];
|
|
5098
|
-
return
|
|
5099
|
+
return ZT(tt, W, t), R && tt.push(`, ${R}`), tt.push(")"), new El(i, tt.join(""), W);
|
|
5099
5100
|
}
|
|
5100
|
-
function
|
|
5101
|
+
function KT(t) {
|
|
5101
5102
|
if ("formula" in t)
|
|
5102
5103
|
return bp(t);
|
|
5103
5104
|
const f = iy(t.sort), R = !!t.agg, W = qn(t.datatype), tt = Fi(t.datatype) ? Re.NumericAttribute : Re.TextAttribute, it = W ? new Br(t.title, t.dim, Br.translateJaqlToGranularity(t), void 0, void 0, f) : new la(t.title, t.dim, tt, void 0, f);
|
|
5104
|
-
return R ? new Jr(t.title, it, Jr.aggregationFromJAQL(t.agg || ""), void 0, void 0, f) : "filter" in t ?
|
|
5105
|
+
return R ? new Jr(t.title, it, Jr.aggregationFromJAQL(t.agg || ""), void 0, void 0, f) : "filter" in t ? $T(t) : it;
|
|
5105
5106
|
}
|
|
5106
5107
|
function bp(t) {
|
|
5107
5108
|
var i;
|
|
5108
5109
|
if (!("formula" in t))
|
|
5109
5110
|
throw new ca("errors.measure.notAFormula");
|
|
5110
|
-
const R = iy(t.sort), W = rS((i = t.context) !== null && i !== void 0 ? i : {}, (tt) => tt ?
|
|
5111
|
+
const R = iy(t.sort), W = rS((i = t.context) !== null && i !== void 0 ? i : {}, (tt) => tt ? KT(tt) : {});
|
|
5111
5112
|
return new El(t.title, t.formula, W, void 0, void 0, R);
|
|
5112
5113
|
}
|
|
5113
|
-
function
|
|
5114
|
+
function FO(t, i, f) {
|
|
5114
5115
|
const R = Object.entries(f).reduce((W, [tt, it]) => (W[`[${tt}]`] = it.jaql().jaql, W), {});
|
|
5115
5116
|
return bp({ title: t, formula: i, context: R });
|
|
5116
5117
|
}
|
|
5117
5118
|
function xp(t, i, f, R) {
|
|
5118
5119
|
return new Jr(f != null ? f : `${i.toString()} ${t.name}`, t, i, R);
|
|
5119
5120
|
}
|
|
5120
|
-
function
|
|
5121
|
+
function WO(t, i, f) {
|
|
5121
5122
|
return xp(t, oi.Min, i, f);
|
|
5122
5123
|
}
|
|
5123
|
-
function
|
|
5124
|
+
function HO(t, i, f) {
|
|
5124
5125
|
return xp(t, oi.Max, i, f);
|
|
5125
5126
|
}
|
|
5126
|
-
function
|
|
5127
|
+
function qT(t, i, f) {
|
|
5127
5128
|
let R;
|
|
5128
5129
|
const W = (tt) => tt.replace("advancedSmoothing", "smooth").replace("localEstimates", "local");
|
|
5129
5130
|
return f && (R = Object.entries(f).map((tt) => W(`"${tt[0]}=${tt[1]}"`)).join(",")), ny(t, i != null ? i : t.name + " Trend", "trend", R);
|
|
5130
5131
|
}
|
|
5131
|
-
function
|
|
5132
|
+
function JT(t, i, f) {
|
|
5132
5133
|
let R;
|
|
5133
5134
|
if (f) {
|
|
5134
5135
|
const W = Object.assign({ forecastHorizon: 3 }, f);
|
|
@@ -5315,37 +5316,37 @@ class El extends oy {
|
|
|
5315
5316
|
function Md(t) {
|
|
5316
5317
|
return !!t && "operator" in t && (t.operator === "AND" || t.operator === "OR") && !!t.right && !!t.left;
|
|
5317
5318
|
}
|
|
5318
|
-
function
|
|
5319
|
+
function QT(t) {
|
|
5319
5320
|
if (t === null || t === !0 || t === !1)
|
|
5320
5321
|
return NaN;
|
|
5321
5322
|
var i = Number(t);
|
|
5322
5323
|
return isNaN(i) ? i : i < 0 ? Math.ceil(i) : Math.floor(i);
|
|
5323
5324
|
}
|
|
5324
|
-
function
|
|
5325
|
+
function tk(t, i) {
|
|
5325
5326
|
if (i.length < t)
|
|
5326
5327
|
throw new TypeError(t + " argument" + (t > 1 ? "s" : "") + " required, but only " + i.length + " present");
|
|
5327
5328
|
}
|
|
5328
5329
|
var sy = 6e4, ay = 36e5;
|
|
5329
5330
|
function ly(t, i) {
|
|
5330
5331
|
var f;
|
|
5331
|
-
|
|
5332
|
-
var R =
|
|
5332
|
+
tk(1, arguments);
|
|
5333
|
+
var R = QT((f = void 0) !== null && f !== void 0 ? f : 2);
|
|
5333
5334
|
if (R !== 2 && R !== 1 && R !== 0)
|
|
5334
5335
|
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
5335
5336
|
if (!(typeof t == "string" || Object.prototype.toString.call(t) === "[object String]"))
|
|
5336
5337
|
return /* @__PURE__ */ new Date(NaN);
|
|
5337
|
-
var W =
|
|
5338
|
+
var W = nk(t), tt;
|
|
5338
5339
|
if (W.date) {
|
|
5339
|
-
var it =
|
|
5340
|
-
tt =
|
|
5340
|
+
var it = ok(W.date, R);
|
|
5341
|
+
tt = sk(it.restDateString, it.year);
|
|
5341
5342
|
}
|
|
5342
5343
|
if (!tt || isNaN(tt.getTime()))
|
|
5343
5344
|
return /* @__PURE__ */ new Date(NaN);
|
|
5344
5345
|
var at = tt.getTime(), ht = 0, ut;
|
|
5345
|
-
if (W.time && (ht =
|
|
5346
|
+
if (W.time && (ht = ak(W.time), isNaN(ht)))
|
|
5346
5347
|
return /* @__PURE__ */ new Date(NaN);
|
|
5347
5348
|
if (W.timezone) {
|
|
5348
|
-
if (ut =
|
|
5349
|
+
if (ut = lk(W.timezone), isNaN(ut))
|
|
5349
5350
|
return /* @__PURE__ */ new Date(NaN);
|
|
5350
5351
|
} else {
|
|
5351
5352
|
var mt = new Date(at + ht), ft = /* @__PURE__ */ new Date(0);
|
|
@@ -5357,8 +5358,8 @@ var Gc = {
|
|
|
5357
5358
|
dateTimeDelimiter: /[T ]/,
|
|
5358
5359
|
timeZoneDelimiter: /[Z ]/i,
|
|
5359
5360
|
timezone: /([Z+-].*)$/
|
|
5360
|
-
},
|
|
5361
|
-
function
|
|
5361
|
+
}, ek = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, ik = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, rk = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
5362
|
+
function nk(t) {
|
|
5362
5363
|
var i = {}, f = t.split(Gc.dateTimeDelimiter), R;
|
|
5363
5364
|
if (f.length > 2)
|
|
5364
5365
|
return i;
|
|
@@ -5368,7 +5369,7 @@ function rk(t) {
|
|
|
5368
5369
|
}
|
|
5369
5370
|
return i;
|
|
5370
5371
|
}
|
|
5371
|
-
function
|
|
5372
|
+
function ok(t, i) {
|
|
5372
5373
|
var f = new RegExp("^(?:(\\d{4}|[+-]\\d{" + (4 + i) + "})|(\\d{2}|[+-]\\d{" + (2 + i) + "})$)"), R = t.match(f);
|
|
5373
5374
|
if (!R)
|
|
5374
5375
|
return {
|
|
@@ -5381,76 +5382,76 @@ function nk(t, i) {
|
|
|
5381
5382
|
restDateString: t.slice((R[1] || R[2]).length)
|
|
5382
5383
|
};
|
|
5383
5384
|
}
|
|
5384
|
-
function
|
|
5385
|
+
function sk(t, i) {
|
|
5385
5386
|
if (i === null)
|
|
5386
5387
|
return /* @__PURE__ */ new Date(NaN);
|
|
5387
|
-
var f = t.match(
|
|
5388
|
+
var f = t.match(ek);
|
|
5388
5389
|
if (!f)
|
|
5389
5390
|
return /* @__PURE__ */ new Date(NaN);
|
|
5390
5391
|
var R = !!f[4], W = pl(f[1]), tt = pl(f[2]) - 1, it = pl(f[3]), at = pl(f[4]), ht = pl(f[5]) - 1;
|
|
5391
5392
|
if (R)
|
|
5392
|
-
return
|
|
5393
|
+
return pk(i, at, ht) ? ck(i, at, ht) : /* @__PURE__ */ new Date(NaN);
|
|
5393
5394
|
var ut = /* @__PURE__ */ new Date(0);
|
|
5394
|
-
return !
|
|
5395
|
+
return !uk(i, tt, it) || !dk(i, W) ? /* @__PURE__ */ new Date(NaN) : (ut.setUTCFullYear(i, tt, Math.max(W, it)), ut);
|
|
5395
5396
|
}
|
|
5396
5397
|
function pl(t) {
|
|
5397
5398
|
return t ? parseInt(t) : 1;
|
|
5398
5399
|
}
|
|
5399
|
-
function
|
|
5400
|
-
var i = t.match(
|
|
5400
|
+
function ak(t) {
|
|
5401
|
+
var i = t.match(ik);
|
|
5401
5402
|
if (!i)
|
|
5402
5403
|
return NaN;
|
|
5403
5404
|
var f = id(i[1]), R = id(i[2]), W = id(i[3]);
|
|
5404
|
-
return
|
|
5405
|
+
return fk(f, R, W) ? f * ay + R * sy + W * 1e3 : NaN;
|
|
5405
5406
|
}
|
|
5406
5407
|
function id(t) {
|
|
5407
5408
|
return t && parseFloat(t.replace(",", ".")) || 0;
|
|
5408
5409
|
}
|
|
5409
|
-
function
|
|
5410
|
+
function lk(t) {
|
|
5410
5411
|
if (t === "Z")
|
|
5411
5412
|
return 0;
|
|
5412
|
-
var i = t.match(
|
|
5413
|
+
var i = t.match(rk);
|
|
5413
5414
|
if (!i)
|
|
5414
5415
|
return 0;
|
|
5415
5416
|
var f = i[1] === "+" ? -1 : 1, R = parseInt(i[2]), W = i[3] && parseInt(i[3]) || 0;
|
|
5416
|
-
return
|
|
5417
|
+
return gk(R, W) ? f * (R * ay + W * sy) : NaN;
|
|
5417
5418
|
}
|
|
5418
|
-
function
|
|
5419
|
+
function ck(t, i, f) {
|
|
5419
5420
|
var R = /* @__PURE__ */ new Date(0);
|
|
5420
5421
|
R.setUTCFullYear(t, 0, 4);
|
|
5421
5422
|
var W = R.getUTCDay() || 7, tt = (i - 1) * 7 + f + 1 - W;
|
|
5422
5423
|
return R.setUTCDate(R.getUTCDate() + tt), R;
|
|
5423
5424
|
}
|
|
5424
|
-
var
|
|
5425
|
+
var hk = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
5425
5426
|
function cy(t) {
|
|
5426
5427
|
return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0;
|
|
5427
5428
|
}
|
|
5428
|
-
function
|
|
5429
|
-
return i >= 0 && i <= 11 && f >= 1 && f <= (
|
|
5429
|
+
function uk(t, i, f) {
|
|
5430
|
+
return i >= 0 && i <= 11 && f >= 1 && f <= (hk[i] || (cy(t) ? 29 : 28));
|
|
5430
5431
|
}
|
|
5431
|
-
function
|
|
5432
|
+
function dk(t, i) {
|
|
5432
5433
|
return i >= 1 && i <= (cy(t) ? 366 : 365);
|
|
5433
5434
|
}
|
|
5434
|
-
function
|
|
5435
|
+
function pk(t, i, f) {
|
|
5435
5436
|
return i >= 1 && i <= 53 && f >= 0 && f <= 6;
|
|
5436
5437
|
}
|
|
5437
|
-
function
|
|
5438
|
+
function fk(t, i, f) {
|
|
5438
5439
|
return t === 24 ? i === 0 && f === 0 : f >= 0 && f < 60 && i >= 0 && i < 60 && t >= 0 && t < 25;
|
|
5439
5440
|
}
|
|
5440
|
-
function
|
|
5441
|
+
function gk(t, i) {
|
|
5441
5442
|
return i >= 0 && i <= 59;
|
|
5442
5443
|
}
|
|
5443
|
-
var
|
|
5444
|
-
function
|
|
5445
|
-
for (var i = t.length; i-- &&
|
|
5444
|
+
var mk = /\s/;
|
|
5445
|
+
function yk(t) {
|
|
5446
|
+
for (var i = t.length; i-- && mk.test(t.charAt(i)); )
|
|
5446
5447
|
;
|
|
5447
5448
|
return i;
|
|
5448
5449
|
}
|
|
5449
|
-
var
|
|
5450
|
-
function
|
|
5451
|
-
return t && t.slice(0,
|
|
5450
|
+
var vk = /^\s+/;
|
|
5451
|
+
function bk(t) {
|
|
5452
|
+
return t && t.slice(0, yk(t) + 1).replace(vk, "");
|
|
5452
5453
|
}
|
|
5453
|
-
var _f = NaN,
|
|
5454
|
+
var _f = NaN, xk = /^[-+]0x[0-9a-f]+$/i, Sk = /^0b[01]+$/i, wk = /^0o[0-7]+$/i, Ck = parseInt;
|
|
5454
5455
|
function hy(t) {
|
|
5455
5456
|
if (typeof t == "number")
|
|
5456
5457
|
return t;
|
|
@@ -5462,17 +5463,17 @@ function hy(t) {
|
|
|
5462
5463
|
}
|
|
5463
5464
|
if (typeof t != "string")
|
|
5464
5465
|
return t === 0 ? t : +t;
|
|
5465
|
-
t =
|
|
5466
|
-
var f =
|
|
5467
|
-
return f ||
|
|
5466
|
+
t = bk(t);
|
|
5467
|
+
var f = Sk.test(t);
|
|
5468
|
+
return f || wk.test(t) ? Ck(t.slice(2), f ? 2 : 8) : xk.test(t) ? _f : +t;
|
|
5468
5469
|
}
|
|
5469
|
-
var Nf = 1 / 0,
|
|
5470
|
-
function
|
|
5470
|
+
var Nf = 1 / 0, Tk = 17976931348623157e292;
|
|
5471
|
+
function kk(t) {
|
|
5471
5472
|
if (!t)
|
|
5472
5473
|
return t === 0 ? t : 0;
|
|
5473
5474
|
if (t = hy(t), t === Nf || t === -Nf) {
|
|
5474
5475
|
var i = t < 0 ? -1 : 1;
|
|
5475
|
-
return i *
|
|
5476
|
+
return i * Tk;
|
|
5476
5477
|
}
|
|
5477
5478
|
return t === t ? t : 0;
|
|
5478
5479
|
}
|
|
@@ -5496,57 +5497,57 @@ function Jn(t, i) {
|
|
|
5496
5497
|
Jn.prototype = fp(Sp.prototype);
|
|
5497
5498
|
Jn.prototype.constructor = Jn;
|
|
5498
5499
|
var zf = Sr ? Sr.isConcatSpreadable : void 0;
|
|
5499
|
-
function
|
|
5500
|
+
function Mk(t) {
|
|
5500
5501
|
return Ci(t) || wl(t) || !!(zf && t && t[zf]);
|
|
5501
5502
|
}
|
|
5502
|
-
function
|
|
5503
|
+
function Ak(t, i, f, R, W) {
|
|
5503
5504
|
var tt = -1, it = t.length;
|
|
5504
|
-
for (f || (f =
|
|
5505
|
+
for (f || (f = Mk), W || (W = []); ++tt < it; ) {
|
|
5505
5506
|
var at = t[tt];
|
|
5506
5507
|
f(at) ? rp(W, at) : R || (W[W.length] = at);
|
|
5507
5508
|
}
|
|
5508
5509
|
return W;
|
|
5509
5510
|
}
|
|
5510
|
-
function
|
|
5511
|
+
function Pk(t) {
|
|
5511
5512
|
var i = t == null ? 0 : t.length;
|
|
5512
|
-
return i ?
|
|
5513
|
+
return i ? Ak(t) : [];
|
|
5513
5514
|
}
|
|
5514
5515
|
function wp(t) {
|
|
5515
|
-
return Gm(Um(t, void 0,
|
|
5516
|
+
return Gm(Um(t, void 0, Pk), t + "");
|
|
5516
5517
|
}
|
|
5517
5518
|
var Ff = Ml && new Ml();
|
|
5518
|
-
function
|
|
5519
|
+
function Ek() {
|
|
5519
5520
|
}
|
|
5520
5521
|
var uy = Ff ? function(t) {
|
|
5521
5522
|
return Ff.get(t);
|
|
5522
|
-
} :
|
|
5523
|
+
} : Ek, Wf = {}, Lk = Object.prototype, Ok = Lk.hasOwnProperty;
|
|
5523
5524
|
function lh(t) {
|
|
5524
|
-
for (var i = t.name + "", f = Wf[i], R =
|
|
5525
|
+
for (var i = t.name + "", f = Wf[i], R = Ok.call(Wf, i) ? f.length : 0; R--; ) {
|
|
5525
5526
|
var W = f[R], tt = W.func;
|
|
5526
5527
|
if (tt == null || tt == t)
|
|
5527
5528
|
return W.name;
|
|
5528
5529
|
}
|
|
5529
5530
|
return i;
|
|
5530
5531
|
}
|
|
5531
|
-
var
|
|
5532
|
+
var Dk = 4294967295;
|
|
5532
5533
|
function ia(t) {
|
|
5533
|
-
this.__wrapped__ = t, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ =
|
|
5534
|
+
this.__wrapped__ = t, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = Dk, this.__views__ = [];
|
|
5534
5535
|
}
|
|
5535
5536
|
ia.prototype = fp(Sp.prototype);
|
|
5536
5537
|
ia.prototype.constructor = ia;
|
|
5537
|
-
function
|
|
5538
|
+
function Ik(t) {
|
|
5538
5539
|
if (t instanceof ia)
|
|
5539
5540
|
return t.clone();
|
|
5540
5541
|
var i = new Jn(t.__wrapped__, t.__chain__);
|
|
5541
5542
|
return i.__actions__ = up(t.__actions__), i.__index__ = t.__index__, i.__values__ = t.__values__, i;
|
|
5542
5543
|
}
|
|
5543
|
-
var
|
|
5544
|
+
var Rk = Object.prototype, jk = Rk.hasOwnProperty;
|
|
5544
5545
|
function xh(t) {
|
|
5545
5546
|
if (wr(t) && !Ci(t) && !(t instanceof ia)) {
|
|
5546
5547
|
if (t instanceof Jn)
|
|
5547
5548
|
return t;
|
|
5548
|
-
if (
|
|
5549
|
-
return
|
|
5549
|
+
if (jk.call(t, "__wrapped__"))
|
|
5550
|
+
return Ik(t);
|
|
5550
5551
|
}
|
|
5551
5552
|
return new Jn(t);
|
|
5552
5553
|
}
|
|
@@ -5561,20 +5562,20 @@ function Hf(t) {
|
|
|
5561
5562
|
var R = uy(f);
|
|
5562
5563
|
return !!R && t === R[0];
|
|
5563
5564
|
}
|
|
5564
|
-
var
|
|
5565
|
-
function
|
|
5565
|
+
var Bk = "Expected a function", _k = 8, Nk = 32, zk = 128, Fk = 256;
|
|
5566
|
+
function Wk(t) {
|
|
5566
5567
|
return wp(function(i) {
|
|
5567
5568
|
for (var f = i.length, R = f, W = Jn.prototype.thru; R--; ) {
|
|
5568
5569
|
var tt = i[R];
|
|
5569
5570
|
if (typeof tt != "function")
|
|
5570
|
-
throw new TypeError(
|
|
5571
|
+
throw new TypeError(Bk);
|
|
5571
5572
|
if (W && !it && lh(tt) == "wrapper")
|
|
5572
5573
|
var it = new Jn([], !0);
|
|
5573
5574
|
}
|
|
5574
5575
|
for (R = it ? R : f; ++R < f; ) {
|
|
5575
5576
|
tt = i[R];
|
|
5576
5577
|
var at = lh(tt), ht = at == "wrapper" ? uy(tt) : void 0;
|
|
5577
|
-
ht && Hf(ht[0]) && ht[1] == (
|
|
5578
|
+
ht && Hf(ht[0]) && ht[1] == (zk | _k | Nk | Fk) && !ht[4].length && ht[9] == 1 ? it = it[lh(ht[0])].apply(it, ht[3]) : it = tt.length == 1 && Hf(tt) ? it[at]() : it.thru(tt);
|
|
5578
5579
|
}
|
|
5579
5580
|
return function() {
|
|
5580
5581
|
var ut = arguments, mt = ut[0];
|
|
@@ -5586,7 +5587,7 @@ function Fk(t) {
|
|
|
5586
5587
|
};
|
|
5587
5588
|
});
|
|
5588
5589
|
}
|
|
5589
|
-
var
|
|
5590
|
+
var Hk = Wk();
|
|
5590
5591
|
const Sh = (t, i) => {
|
|
5591
5592
|
const f = !t || t === "";
|
|
5592
5593
|
let R, W, tt;
|
|
@@ -5638,13 +5639,13 @@ class fy {
|
|
|
5638
5639
|
return 0;
|
|
5639
5640
|
}
|
|
5640
5641
|
}
|
|
5641
|
-
const
|
|
5642
|
+
const Uk = (t) => t instanceof Object && "data" in t, UO = (t) => t.rows.length === 0, gy = "$rownum", GO = (t) => {
|
|
5642
5643
|
let i = 0;
|
|
5643
5644
|
const f = t.rows.map((W) => {
|
|
5644
5645
|
const tt = t.columns.map((it, at) => {
|
|
5645
5646
|
var ft;
|
|
5646
5647
|
const ht = W[at];
|
|
5647
|
-
if (
|
|
5648
|
+
if (Uk(ht)) {
|
|
5648
5649
|
let _ = ht.data.toString();
|
|
5649
5650
|
if (qn(it.type)) {
|
|
5650
5651
|
const lt = "1111-11-11T";
|
|
@@ -5688,7 +5689,7 @@ const Hk = (t) => t instanceof Object && "data" in t, HO = (t) => t.rows.length
|
|
|
5688
5689
|
"bar",
|
|
5689
5690
|
"column",
|
|
5690
5691
|
...my
|
|
5691
|
-
], vy = ["pie", "funnel", "treemap", "sunburst"], by = ["scatter"], xy = ["table"], Sy = ["indicator"], wy = ["boxplot"], Cy = ["areamap"],
|
|
5692
|
+
], vy = ["pie", "funnel", "treemap", "sunburst"], by = ["scatter"], xy = ["table"], Sy = ["indicator"], wy = ["boxplot"], Cy = ["areamap"], Gk = ["image"], Ty = ["scattermap"], ky = ["arearange"], My = (t) => yy.find((i) => i === t) !== void 0, Xk = (t) => vy.find((i) => i === t) !== void 0, Yk = (t) => by.find((i) => i === t) !== void 0, Vk = (t) => Ty.find((i) => i === t) !== void 0, $k = (t) => Sy.find((i) => i === t) !== void 0, Ay = (t) => my.find((i) => i === t) !== void 0, XO = (t) => xy.find((i) => i === t) !== void 0, Zk = (t) => wy.find((i) => i === t) !== void 0, Kk = (t) => Cy.find((i) => i === t) !== void 0, YO = (t) => ky.find((i) => i === t) !== void 0, VO = [
|
|
5692
5693
|
...yy,
|
|
5693
5694
|
...vy,
|
|
5694
5695
|
...by,
|
|
@@ -5696,7 +5697,7 @@ const Hk = (t) => t instanceof Object && "data" in t, HO = (t) => t.rows.length
|
|
|
5696
5697
|
...Sy,
|
|
5697
5698
|
...wy,
|
|
5698
5699
|
...Cy,
|
|
5699
|
-
...
|
|
5700
|
+
...Gk,
|
|
5700
5701
|
...Ty,
|
|
5701
5702
|
...ky
|
|
5702
5703
|
];
|
|
@@ -5800,7 +5801,7 @@ class Gf {
|
|
|
5800
5801
|
return this.data.length === 0 ? NaN : this.stddev != null ? this.stddev : (this.stddev = Math.sqrt(this.getVariance()), this.stddev);
|
|
5801
5802
|
}
|
|
5802
5803
|
}
|
|
5803
|
-
class
|
|
5804
|
+
class qk {
|
|
5804
5805
|
constructor(i) {
|
|
5805
5806
|
rr(this, "data");
|
|
5806
5807
|
rr(this, "countDistinct");
|
|
@@ -5835,7 +5836,7 @@ const Py = (t, i) => t.slice(0).sort((f, R) => i.compare(f, R)), Cp = (t, i) =>
|
|
|
5835
5836
|
for (const at of Array.from(R))
|
|
5836
5837
|
f.compare(at, it) !== 0 && (tt.push(W), W = []), W.push(at), it = at;
|
|
5837
5838
|
return tt.push(W), tt;
|
|
5838
|
-
},
|
|
5839
|
+
}, Jk = (t, i) => {
|
|
5839
5840
|
var R, W;
|
|
5840
5841
|
const f = [];
|
|
5841
5842
|
for (const tt of i) {
|
|
@@ -5852,19 +5853,19 @@ const Py = (t, i) => t.slice(0).sort((f, R) => i.compare(f, R)), Cp = (t, i) =>
|
|
|
5852
5853
|
it = new Gf(_).getStat(ht);
|
|
5853
5854
|
} else {
|
|
5854
5855
|
const _ = ut.map((lt) => lt[at.index].displayValue);
|
|
5855
|
-
it = new
|
|
5856
|
+
it = new qk(_).getStat(ht);
|
|
5856
5857
|
}
|
|
5857
5858
|
f.push(Ut(Ut({
|
|
5858
5859
|
displayValue: `${it}`
|
|
5859
5860
|
}, mt && { color: mt }), ft && { blur: ft }));
|
|
5860
5861
|
}
|
|
5861
5862
|
return f;
|
|
5862
|
-
},
|
|
5863
|
+
}, Qk = (t, i) => {
|
|
5863
5864
|
if (Ly(t))
|
|
5864
5865
|
return { columns: [], rows: [] };
|
|
5865
5866
|
const f = new fy(i);
|
|
5866
5867
|
return { columns: t.columns, rows: Py(t.rows, f) };
|
|
5867
|
-
},
|
|
5868
|
+
}, tM = (t, i, f) => {
|
|
5868
5869
|
if (Ly(t))
|
|
5869
5870
|
return { rows: [], columns: [] };
|
|
5870
5871
|
const R = { name: "n/a", type: "n/a", index: -1, direction: 0 }, W = f.map((ut) => ({
|
|
@@ -5873,7 +5874,7 @@ const Py = (t, i) => t.slice(0).sort((f, R) => i.compare(f, R)), Cp = (t, i) =>
|
|
|
5873
5874
|
column: _o(t, ut.column) || R
|
|
5874
5875
|
})).filter((ut) => ut.column.index !== -1), tt = Cp(t.rows, i), it = W.map((ut) => ut.aggName), at = [];
|
|
5875
5876
|
for (const ut of tt) {
|
|
5876
|
-
const mt = Fl(ut[0], i), ft =
|
|
5877
|
+
const mt = Fl(ut[0], i), ft = Jk(ut, W), _ = mt.slice(0).concat(ft);
|
|
5877
5878
|
at.push(_);
|
|
5878
5879
|
}
|
|
5879
5880
|
const ht = i.slice(0).concat(
|
|
@@ -5896,15 +5897,15 @@ const Py = (t, i) => t.slice(0).sort((f, R) => i.compare(f, R)), Cp = (t, i) =>
|
|
|
5896
5897
|
direction: 0
|
|
5897
5898
|
};
|
|
5898
5899
|
return i.map((R) => _o(t, R) || f).filter((R) => R !== f);
|
|
5899
|
-
},
|
|
5900
|
+
}, eM = (t, i) => {
|
|
5900
5901
|
const f = t.rows.map((W) => i.map((tt) => W[tt.index]));
|
|
5901
5902
|
return { columns: i.map((W, tt) => oe(Ut({}, W), { index: tt })), rows: f };
|
|
5902
|
-
},
|
|
5903
|
+
}, iM = (t, i) => {
|
|
5903
5904
|
if (!(t && i.index < t.length))
|
|
5904
5905
|
return;
|
|
5905
5906
|
const f = t[i.index];
|
|
5906
5907
|
return f.compareValue || (f.compareValue = Sh(f.displayValue, i.type)), f.compareValue.value;
|
|
5907
|
-
},
|
|
5908
|
+
}, rM = (t, i) => {
|
|
5908
5909
|
var f;
|
|
5909
5910
|
return (f = t[i.index]) == null ? void 0 : f.blur;
|
|
5910
5911
|
}, Fl = (t, i) => {
|
|
@@ -5912,21 +5913,21 @@ const Py = (t, i) => t.slice(0).sort((f, R) => i.compare(f, R)), Cp = (t, i) =>
|
|
|
5912
5913
|
for (const R of i)
|
|
5913
5914
|
f.push(t[R.index]);
|
|
5914
5915
|
return f;
|
|
5915
|
-
},
|
|
5916
|
+
}, nM = (t, i) => Fl(t, i).map((f) => f.rawValue || f.displayValue).join(","), Ey = (t, i) => {
|
|
5916
5917
|
if (!(t && t.length > 0))
|
|
5917
5918
|
return {};
|
|
5918
5919
|
const f = Cp(t, i), R = {};
|
|
5919
5920
|
for (const W of f) {
|
|
5920
|
-
const tt =
|
|
5921
|
+
const tt = nM(W[0], i);
|
|
5921
5922
|
R[tt] = W;
|
|
5922
5923
|
}
|
|
5923
5924
|
return R;
|
|
5924
|
-
}, Ly = (t) => !(t.rows && t.columns && t.rows.length > 0 && t.columns.length > 0), Oy = ({ x: t, y: i, breakBy: f }) => Iy(i) && Dy(t) && f.length === 0,
|
|
5925
|
+
}, Ly = (t) => !(t.rows && t.columns && t.rows.length > 0 && t.columns.length > 0), Oy = ({ x: t, y: i, breakBy: f }) => Iy(i) && Dy(t) && f.length === 0, oM = ({ x: t, y: i, breakBy: f }) => Dy(t) && Iy(i) && f.length > 0, Dy = (t) => t.length === 0, Iy = (t) => t.length > 0, sM = (t, i) => t * (i / 100), aM = (t, i) => t === 0 ? 0 : Math.abs(i) / Math.abs(t) * 100, ch = (t) => `${t}%`;
|
|
5925
5926
|
var Xf;
|
|
5926
5927
|
(function(t) {
|
|
5927
5928
|
t.event = "event", t.props = "prop";
|
|
5928
5929
|
})(Xf || (Xf = {}));
|
|
5929
|
-
function
|
|
5930
|
+
function lM(t) {
|
|
5930
5931
|
switch (t) {
|
|
5931
5932
|
case "lakh":
|
|
5932
5933
|
return /(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;
|
|
@@ -5937,11 +5938,11 @@ function aM(t) {
|
|
|
5937
5938
|
return /(\d)(?=(\d{3})+(?!\d))/g;
|
|
5938
5939
|
}
|
|
5939
5940
|
}
|
|
5940
|
-
function
|
|
5941
|
-
var R =
|
|
5941
|
+
function cM(t, i, f) {
|
|
5942
|
+
var R = lM(f), W = t.search(/[1-9]/);
|
|
5942
5943
|
return W = W === -1 ? t.length : W, t.substring(0, W) + t.substring(W, t.length).replace(R, "$1" + i);
|
|
5943
5944
|
}
|
|
5944
|
-
function
|
|
5945
|
+
function hM(t, i) {
|
|
5945
5946
|
i === void 0 && (i = !0);
|
|
5946
5947
|
var f = t[0] === "-", R = f && i;
|
|
5947
5948
|
t = t.replace("-", "");
|
|
@@ -5953,12 +5954,12 @@ function cM(t, i) {
|
|
|
5953
5954
|
addNegation: R
|
|
5954
5955
|
};
|
|
5955
5956
|
}
|
|
5956
|
-
function
|
|
5957
|
+
function uM(t, i, f) {
|
|
5957
5958
|
for (var R = "", W = f ? "0" : "", tt = 0; tt <= i - 1; tt++)
|
|
5958
5959
|
R += t[tt] || W;
|
|
5959
5960
|
return R;
|
|
5960
5961
|
}
|
|
5961
|
-
function
|
|
5962
|
+
function dM(t, i) {
|
|
5962
5963
|
var f = i.decimalScale, R = i.fixedDecimalScale, W = i.prefix;
|
|
5963
5964
|
W === void 0 && (W = "");
|
|
5964
5965
|
var tt = i.suffix;
|
|
@@ -5966,10 +5967,10 @@ function uM(t, i) {
|
|
|
5966
5967
|
var it = i.allowNegative, at = i.thousandsGroupStyle;
|
|
5967
5968
|
if (at === void 0 && (at = "thousand"), t === "" || t === "-")
|
|
5968
5969
|
return t;
|
|
5969
|
-
var ht =
|
|
5970
|
-
return f !== void 0 && (G =
|
|
5970
|
+
var ht = pM(i), ut = ht.thousandSeparator, mt = ht.decimalSeparator, ft = f !== 0 && t.indexOf(".") !== -1 || f && R, _ = hM(t, it), lt = _.beforeDecimal, G = _.afterDecimal, F = _.addNegation;
|
|
5971
|
+
return f !== void 0 && (G = uM(G, f, !!R)), ut && (lt = cM(lt, ut, at)), W && (lt = W + lt), tt && (G = G + tt), F && (lt = "-" + lt), t = lt + (ft && mt || "") + G, t;
|
|
5971
5972
|
}
|
|
5972
|
-
function
|
|
5973
|
+
function pM(t) {
|
|
5973
5974
|
var i = t.decimalSeparator;
|
|
5974
5975
|
i === void 0 && (i = ".");
|
|
5975
5976
|
var f = t.thousandSeparator, R = t.allowedDecimalSeparators;
|
|
@@ -5979,23 +5980,23 @@ function dM(t) {
|
|
|
5979
5980
|
allowedDecimalSeparators: R
|
|
5980
5981
|
};
|
|
5981
5982
|
}
|
|
5982
|
-
function
|
|
5983
|
-
var i =
|
|
5983
|
+
function fM(t) {
|
|
5984
|
+
var i = kk(t), f = i % 1;
|
|
5984
5985
|
return i === i ? f ? i - f : i : 0;
|
|
5985
5986
|
}
|
|
5986
|
-
var
|
|
5987
|
-
function
|
|
5987
|
+
var gM = _r.isFinite, mM = Math.min;
|
|
5988
|
+
function yM(t) {
|
|
5988
5989
|
var i = Math[t];
|
|
5989
5990
|
return function(f, R) {
|
|
5990
|
-
if (f = hy(f), R = R == null ? 0 :
|
|
5991
|
+
if (f = hy(f), R = R == null ? 0 : mM(fM(R), 292), R && gM(f)) {
|
|
5991
5992
|
var W = (xd(f) + "e").split("e"), tt = i(W[0] + "e" + (+W[1] + R));
|
|
5992
5993
|
return W = (xd(tt) + "e").split("e"), +(W[0] + "e" + (+W[1] - R));
|
|
5993
5994
|
}
|
|
5994
5995
|
return i(f);
|
|
5995
5996
|
};
|
|
5996
5997
|
}
|
|
5997
|
-
var
|
|
5998
|
-
const Ad = 1e3, Pd = Ad * 1e3, Ed = Pd * 1e3, Yf = Ed * 1e3, Ry = 1000.1.toLocaleString().replace(/\d/g, ""),
|
|
5998
|
+
var vM = yM("round");
|
|
5999
|
+
const Ad = 1e3, Pd = Ad * 1e3, Ed = Pd * 1e3, Yf = Ed * 1e3, Ry = 1000.1.toLocaleString().replace(/\d/g, ""), bM = Ry[0], xM = Ry[1], SM = {
|
|
5999
6000
|
name: "Numbers",
|
|
6000
6001
|
decimalScale: "auto",
|
|
6001
6002
|
trillion: !0,
|
|
@@ -6005,24 +6006,24 @@ const Ad = 1e3, Pd = Ad * 1e3, Ed = Pd * 1e3, Yf = Ed * 1e3, Ry = 1000.1.toLocal
|
|
|
6005
6006
|
thousandSeparator: !0,
|
|
6006
6007
|
prefix: !0,
|
|
6007
6008
|
symbol: "$"
|
|
6008
|
-
}, li = (t) => Ut(Ut({},
|
|
6009
|
+
}, li = (t) => Ut(Ut({}, SM), t || {}), wM = (t, i) => isNaN(i) ? "" : `<span>${ra(t, i)}</span>`, CM = (t, i) => Math.sign(t) * vM(Math.abs(t), i), ra = (t, i) => {
|
|
6009
6010
|
const { t: f } = lm, R = t.decimalScale !== 0 && t.decimalScale !== "auto", W = t.decimalScale === "auto" ? 2 : t.decimalScale;
|
|
6010
6011
|
let tt = !0;
|
|
6011
6012
|
t.name === "Numbers" && !t.thousandSeparator && (tt = void 0);
|
|
6012
6013
|
let it, at, ht = i;
|
|
6013
|
-
return t.name === "Percent" && (at = "%", ht = i * 100), (t.name === "Numbers" || t.name === "Currency") && (t.trillion && Math.abs(i) / Yf >= 1 ? (ht = i / Yf, at = f("formatting.number.abbreviations.trillion")) : t.billion && Math.abs(i) / Ed >= 1 ? (ht = i / Ed, at = f("formatting.number.abbreviations.billion")) : t.million && Math.abs(i) / Pd >= 1 ? (ht = i / Pd, at = f("formatting.number.abbreviations.million")) : t.kilo && Math.abs(i) / Ad >= 1 && (ht = i / Ad, at = f("formatting.number.abbreviations.thousand"))), t.name === "Currency" && (t.prefix ? it = t.symbol : at ? at = `${at}${t.symbol}` : at = t.symbol),
|
|
6014
|
+
return t.name === "Percent" && (at = "%", ht = i * 100), (t.name === "Numbers" || t.name === "Currency") && (t.trillion && Math.abs(i) / Yf >= 1 ? (ht = i / Yf, at = f("formatting.number.abbreviations.trillion")) : t.billion && Math.abs(i) / Ed >= 1 ? (ht = i / Ed, at = f("formatting.number.abbreviations.billion")) : t.million && Math.abs(i) / Pd >= 1 ? (ht = i / Pd, at = f("formatting.number.abbreviations.million")) : t.kilo && Math.abs(i) / Ad >= 1 && (ht = i / Ad, at = f("formatting.number.abbreviations.thousand"))), t.name === "Currency" && (t.prefix ? it = t.symbol : at ? at = `${at}${t.symbol}` : at = t.symbol), dM(`${CM(ht, W)}`, {
|
|
6014
6015
|
displayType: "text",
|
|
6015
|
-
thousandSeparator: tt ?
|
|
6016
|
+
thousandSeparator: tt ? bM : void 0,
|
|
6016
6017
|
fixedDecimalScale: R,
|
|
6017
6018
|
decimalScale: W,
|
|
6018
|
-
decimalSeparator:
|
|
6019
|
+
decimalSeparator: xM,
|
|
6019
6020
|
prefix: it,
|
|
6020
6021
|
suffix: at
|
|
6021
6022
|
});
|
|
6022
6023
|
}, Hi = (t, i) => {
|
|
6023
|
-
let f =
|
|
6024
|
+
let f = wM(t, i);
|
|
6024
6025
|
return f = f.replace("<span>", ""), f = f.replace("</span>", ""), f;
|
|
6025
|
-
}, Ld = "#dcdcdc", Qn = "#CCCCCC", to = "#FFFFFF",
|
|
6026
|
+
}, Ld = "#dcdcdc", Qn = "#CCCCCC", to = "#FFFFFF", TM = [
|
|
6026
6027
|
"#00cee6",
|
|
6027
6028
|
"#9b9bd7",
|
|
6028
6029
|
"#6eda55",
|
|
@@ -6039,17 +6040,17 @@ const Ad = 1e3, Pd = Ad * 1e3, Ed = Pd * 1e3, Yf = Ed * 1e3, Ry = 1000.1.toLocal
|
|
|
6039
6040
|
type: "uniform",
|
|
6040
6041
|
color: t
|
|
6041
6042
|
});
|
|
6042
|
-
function
|
|
6043
|
+
function kM(t) {
|
|
6043
6044
|
return () => t.color;
|
|
6044
6045
|
}
|
|
6045
6046
|
const By = (t) => {
|
|
6046
6047
|
if (t !== void 0)
|
|
6047
6048
|
return typeof t == "string" ? jy(t).color : t.type === "uniform" ? t.color : Ld;
|
|
6048
6049
|
};
|
|
6049
|
-
function
|
|
6050
|
+
function MM(t) {
|
|
6050
6051
|
var f;
|
|
6051
6052
|
const i = ((f = t.conditions) != null ? f : []).map((R) => ({
|
|
6052
|
-
match:
|
|
6053
|
+
match: AM(R),
|
|
6053
6054
|
color: R.color
|
|
6054
6055
|
}));
|
|
6055
6056
|
return (R) => {
|
|
@@ -6057,7 +6058,7 @@ function kM(t) {
|
|
|
6057
6058
|
return W ? W.color : t.defaultColor;
|
|
6058
6059
|
};
|
|
6059
6060
|
}
|
|
6060
|
-
function
|
|
6061
|
+
function AM(t) {
|
|
6061
6062
|
const i = Number(t.expression);
|
|
6062
6063
|
switch (t.operator) {
|
|
6063
6064
|
case "<":
|
|
@@ -6154,7 +6155,7 @@ function Fy(t) {
|
|
|
6154
6155
|
return f;
|
|
6155
6156
|
}));
|
|
6156
6157
|
}
|
|
6157
|
-
var
|
|
6158
|
+
var PM = /* @__PURE__ */ Object.freeze({
|
|
6158
6159
|
__proto__: null,
|
|
6159
6160
|
interpolate: Th,
|
|
6160
6161
|
interpolateInv: zy,
|
|
@@ -6167,7 +6168,7 @@ var AM = /* @__PURE__ */ Object.freeze({
|
|
|
6167
6168
|
toPrecision: Ch,
|
|
6168
6169
|
type: Zn
|
|
6169
6170
|
});
|
|
6170
|
-
class
|
|
6171
|
+
class EM {
|
|
6171
6172
|
add(i, f, R) {
|
|
6172
6173
|
if (typeof arguments[0] != "string") {
|
|
6173
6174
|
for (var i in arguments[0])
|
|
@@ -6184,7 +6185,7 @@ class PM {
|
|
|
6184
6185
|
});
|
|
6185
6186
|
}
|
|
6186
6187
|
}
|
|
6187
|
-
const eo = new
|
|
6188
|
+
const eo = new EM();
|
|
6188
6189
|
var Qr = {
|
|
6189
6190
|
gamut_mapping: "lch.c",
|
|
6190
6191
|
precision: 5,
|
|
@@ -6217,7 +6218,7 @@ function kh(t, i, f, R = {}) {
|
|
|
6217
6218
|
return ai(W.M, W.XYZ);
|
|
6218
6219
|
throw new TypeError("Only Bradford CAT with white points D50 and D65 supported for now.");
|
|
6219
6220
|
}
|
|
6220
|
-
const
|
|
6221
|
+
const LM = 75e-6, nr = class nr {
|
|
6221
6222
|
constructor(i) {
|
|
6222
6223
|
var W, tt, it, at, ht, ut, mt;
|
|
6223
6224
|
this.id = i.id, this.name = i.name, this.base = i.base ? nr.get(i.base) : null, this.aliases = i.aliases, this.base && (this.fromBase = i.fromBase, this.toBase = i.toBase);
|
|
@@ -6232,13 +6233,13 @@ const EM = 75e-6, nr = class nr {
|
|
|
6232
6233
|
_.type || (_.type = "function"), _.name || (_.name = ft);
|
|
6233
6234
|
}
|
|
6234
6235
|
i.cssId && !((ht = this.formats.functions) != null && ht.color) ? (this.formats.color = { id: i.cssId }, Object.defineProperty(this, "cssId", { value: i.cssId })) : (ut = this.formats) != null && ut.color && !((mt = this.formats) != null && mt.color.id) && (this.formats.color.id = this.id), this.referred = i.referred, Object.defineProperty(this, "path", {
|
|
6235
|
-
value:
|
|
6236
|
+
value: OM(this).reverse(),
|
|
6236
6237
|
writable: !1,
|
|
6237
6238
|
enumerable: !0,
|
|
6238
6239
|
configurable: !0
|
|
6239
6240
|
}), eo.run("colorspace-init-end", this);
|
|
6240
6241
|
}
|
|
6241
|
-
inGamut(i, { epsilon: f =
|
|
6242
|
+
inGamut(i, { epsilon: f = LM } = {}) {
|
|
6242
6243
|
if (this.isPolar)
|
|
6243
6244
|
return i = this.toBase(i), this.base.inGamut(i, { epsilon: f });
|
|
6244
6245
|
let R = Object.values(this.coords);
|
|
@@ -6366,7 +6367,7 @@ rr(nr, "registry", {}), rr(nr, "DEFAULT_FORMAT", {
|
|
|
6366
6367
|
name: "color"
|
|
6367
6368
|
});
|
|
6368
6369
|
let Ae = nr;
|
|
6369
|
-
function
|
|
6370
|
+
function OM(t) {
|
|
6370
6371
|
let i = [t];
|
|
6371
6372
|
for (let f = t; f = f.base; )
|
|
6372
6373
|
i.push(f);
|
|
@@ -6532,7 +6533,7 @@ var kp = new Ae({
|
|
|
6532
6533
|
color: {}
|
|
6533
6534
|
}
|
|
6534
6535
|
});
|
|
6535
|
-
const
|
|
6536
|
+
const DM = 216 / 24389, $f = 24 / 116, Xc = 24389 / 27;
|
|
6536
6537
|
let rd = Ir.D50;
|
|
6537
6538
|
var or = new Ae({
|
|
6538
6539
|
id: "lab",
|
|
@@ -6556,7 +6557,7 @@ var or = new Ae({
|
|
|
6556
6557
|
// Convert D50-adapted XYX to Lab
|
|
6557
6558
|
// CIE 15.3:2004 section 8.2.1.1
|
|
6558
6559
|
fromBase(t) {
|
|
6559
|
-
let f = t.map((R, W) => R / rd[W]).map((R) => R >
|
|
6560
|
+
let f = t.map((R, W) => R / rd[W]).map((R) => R > DM ? Math.cbrt(R) : (Xc * R + 16) / 116);
|
|
6560
6561
|
return [
|
|
6561
6562
|
116 * f[1] - 16,
|
|
6562
6563
|
// L
|
|
@@ -6586,7 +6587,7 @@ var or = new Ae({
|
|
|
6586
6587
|
function Zh(t) {
|
|
6587
6588
|
return (t % 360 + 360) % 360;
|
|
6588
6589
|
}
|
|
6589
|
-
function
|
|
6590
|
+
function IM(t, i) {
|
|
6590
6591
|
if (t === "raw")
|
|
6591
6592
|
return i;
|
|
6592
6593
|
let [f, R] = i.map(Zh), W = R - f;
|
|
@@ -6655,8 +6656,8 @@ function Dd(t, i, { kL: f = 1, kC: R = 1, kH: W = 1 } = {}) {
|
|
|
6655
6656
|
let s = 1 + 0.015 * g * y, a = 30 * Math.exp(-1 * pe((E - 275) / 25, 2)), e = 2 * Math.sqrt(x / (x + Zf)), n = -1 * Math.sin(2 * a * Zs) * e, o = pe(N / (f * S), 2);
|
|
6656
6657
|
return o += pe(D / (R * u), 2), o += pe(m / (W * s), 2), o += n * (D / (R * u)) * (m / (W * s)), Math.sqrt(o);
|
|
6657
6658
|
}
|
|
6658
|
-
const
|
|
6659
|
-
function xl(t, i = t.space, { epsilon: f =
|
|
6659
|
+
const RM = 75e-6;
|
|
6660
|
+
function xl(t, i = t.space, { epsilon: f = RM } = {}) {
|
|
6660
6661
|
t = Ue(t), i = Ae.get(i);
|
|
6661
6662
|
let R = t.coords;
|
|
6662
6663
|
return i !== t.space && (R = i.from(t)), i.inGamut(R, { epsilon: f });
|
|
@@ -6736,11 +6737,11 @@ function Ah(t, tt = {}) {
|
|
|
6736
6737
|
}
|
|
6737
6738
|
return at;
|
|
6738
6739
|
}
|
|
6739
|
-
const
|
|
6740
|
+
const jM = [
|
|
6740
6741
|
[0.6369580483012914, 0.14461690358620832, 0.1688809751641721],
|
|
6741
6742
|
[0.2627002120112671, 0.6779980715188708, 0.05930171646986196],
|
|
6742
6743
|
[0, 0.028072693049087428, 1.060985057710791]
|
|
6743
|
-
],
|
|
6744
|
+
], BM = [
|
|
6744
6745
|
[1.716651187971268, -0.355670783776392, -0.25336628137366],
|
|
6745
6746
|
[-0.666684351832489, 1.616481236634939, 0.0157685458139111],
|
|
6746
6747
|
[0.017639857445311, -0.042770613257809, 0.942103121235474]
|
|
@@ -6749,8 +6750,8 @@ var Kh = new Ki({
|
|
|
6749
6750
|
id: "rec2020-linear",
|
|
6750
6751
|
name: "Linear REC.2020",
|
|
6751
6752
|
white: "D65",
|
|
6752
|
-
toXYZ_M:
|
|
6753
|
-
fromXYZ_M:
|
|
6753
|
+
toXYZ_M: jM,
|
|
6754
|
+
fromXYZ_M: BM,
|
|
6754
6755
|
formats: {
|
|
6755
6756
|
color: {}
|
|
6756
6757
|
}
|
|
@@ -6775,11 +6776,11 @@ var Uy = new Ki({
|
|
|
6775
6776
|
color: {}
|
|
6776
6777
|
}
|
|
6777
6778
|
});
|
|
6778
|
-
const
|
|
6779
|
+
const _M = [
|
|
6779
6780
|
[0.4865709486482162, 0.26566769316909306, 0.1982172852343625],
|
|
6780
6781
|
[0.2289745640697488, 0.6917385218365064, 0.079286914093745],
|
|
6781
6782
|
[0, 0.04511338185890264, 1.043944368900976]
|
|
6782
|
-
],
|
|
6783
|
+
], NM = [
|
|
6783
6784
|
[2.493496911941425, -0.9313836179191239, -0.40271078445071684],
|
|
6784
6785
|
[-0.8294889695615747, 1.7626640603183463, 0.023624685841943577],
|
|
6785
6786
|
[0.03584583024378447, -0.07617238926804182, 0.9568845240076872]
|
|
@@ -6788,14 +6789,14 @@ var Gy = new Ki({
|
|
|
6788
6789
|
id: "p3-linear",
|
|
6789
6790
|
name: "Linear P3",
|
|
6790
6791
|
white: "D65",
|
|
6791
|
-
toXYZ_M:
|
|
6792
|
-
fromXYZ_M:
|
|
6792
|
+
toXYZ_M: _M,
|
|
6793
|
+
fromXYZ_M: NM
|
|
6793
6794
|
});
|
|
6794
|
-
const
|
|
6795
|
+
const zM = [
|
|
6795
6796
|
[0.41239079926595934, 0.357584339383878, 0.1804807884018343],
|
|
6796
6797
|
[0.21263900587151027, 0.715168678767756, 0.07219231536073371],
|
|
6797
6798
|
[0.01933081871559182, 0.11919477979462598, 0.9505321522496607]
|
|
6798
|
-
],
|
|
6799
|
+
], FM = [
|
|
6799
6800
|
[3.2409699419045226, -1.537383177570094, -0.4986107602930034],
|
|
6800
6801
|
[-0.9692436362808796, 1.8759675015077202, 0.04155505740717559],
|
|
6801
6802
|
[0.05563007969699366, -0.20397695888897652, 1.0569715142428786]
|
|
@@ -6804,8 +6805,8 @@ var Xy = new Ki({
|
|
|
6804
6805
|
id: "srgb-linear",
|
|
6805
6806
|
name: "Linear sRGB",
|
|
6806
6807
|
white: "D65",
|
|
6807
|
-
toXYZ_M:
|
|
6808
|
-
fromXYZ_M:
|
|
6808
|
+
toXYZ_M: zM,
|
|
6809
|
+
fromXYZ_M: FM,
|
|
6809
6810
|
formats: {
|
|
6810
6811
|
color: {}
|
|
6811
6812
|
}
|
|
@@ -7052,7 +7053,7 @@ if (typeof CSS != "undefined" && CSS.supports)
|
|
|
7052
7053
|
break;
|
|
7053
7054
|
}
|
|
7054
7055
|
}
|
|
7055
|
-
function
|
|
7056
|
+
function WM(t, R = {}) {
|
|
7056
7057
|
var W = R, { space: i = Qr.display_space } = W, f = yr(W, ["space"]);
|
|
7057
7058
|
let tt = Ah(t, f);
|
|
7058
7059
|
if (typeof CSS == "undefined" || CSS.supports("color", tt) || !Qr.display_space)
|
|
@@ -7071,7 +7072,7 @@ function Vy(t, i, f = "lab") {
|
|
|
7071
7072
|
return isNaN(it) || isNaN(ht) ? tt : tt + pe(ht - it, 2);
|
|
7072
7073
|
}, 0));
|
|
7073
7074
|
}
|
|
7074
|
-
function
|
|
7075
|
+
function HM(t, i) {
|
|
7075
7076
|
return t = Ue(t), i = Ue(i), t.space === i.space && t.alpha === i.alpha && t.coords.every((f, R) => f === i.coords[R]);
|
|
7076
7077
|
}
|
|
7077
7078
|
function no(t) {
|
|
@@ -7080,7 +7081,7 @@ function no(t) {
|
|
|
7080
7081
|
function $y(t, i) {
|
|
7081
7082
|
io(t, [br, "y"], i);
|
|
7082
7083
|
}
|
|
7083
|
-
function
|
|
7084
|
+
function UM(t) {
|
|
7084
7085
|
Object.defineProperty(t.prototype, "luminance", {
|
|
7085
7086
|
get() {
|
|
7086
7087
|
return no(this);
|
|
@@ -7090,53 +7091,53 @@ function HM(t) {
|
|
|
7090
7091
|
}
|
|
7091
7092
|
});
|
|
7092
7093
|
}
|
|
7093
|
-
var
|
|
7094
|
+
var GM = /* @__PURE__ */ Object.freeze({
|
|
7094
7095
|
__proto__: null,
|
|
7095
7096
|
getLuminance: no,
|
|
7096
|
-
register:
|
|
7097
|
+
register: UM,
|
|
7097
7098
|
setLuminance: $y
|
|
7098
7099
|
});
|
|
7099
|
-
function
|
|
7100
|
+
function XM(t, i) {
|
|
7100
7101
|
t = Ue(t), i = Ue(i);
|
|
7101
7102
|
let f = Math.max(no(t), 0), R = Math.max(no(i), 0);
|
|
7102
7103
|
return R > f && ([f, R] = [R, f]), (f + 0.05) / (R + 0.05);
|
|
7103
7104
|
}
|
|
7104
|
-
const
|
|
7105
|
+
const YM = 0.56, VM = 0.57, $M = 0.62, ZM = 0.65, eg = 0.022, KM = 1.414, qM = 0.1, JM = 5e-4, QM = 1.14, ig = 0.027, tA = 1.14;
|
|
7105
7106
|
function rg(t) {
|
|
7106
|
-
return t >= eg ? t : t + pe(eg - t,
|
|
7107
|
+
return t >= eg ? t : t + pe(eg - t, KM);
|
|
7107
7108
|
}
|
|
7108
7109
|
function Ks(t) {
|
|
7109
7110
|
let i = t < 0 ? -1 : 1, f = Math.abs(t);
|
|
7110
7111
|
return i * Math.pow(f, 2.4);
|
|
7111
7112
|
}
|
|
7112
|
-
function
|
|
7113
|
+
function eA(t, i) {
|
|
7113
7114
|
i = Ue(i), t = Ue(t);
|
|
7114
7115
|
let f, R, W, tt, it, at;
|
|
7115
7116
|
i = vr(i, "srgb"), [tt, it, at] = i.coords;
|
|
7116
7117
|
let ht = Ks(tt) * 0.2126729 + Ks(it) * 0.7151522 + Ks(at) * 0.072175;
|
|
7117
7118
|
t = vr(t, "srgb"), [tt, it, at] = t.coords;
|
|
7118
7119
|
let ut = Ks(tt) * 0.2126729 + Ks(it) * 0.7151522 + Ks(at) * 0.072175, mt = rg(ht), ft = rg(ut), _ = ft > mt;
|
|
7119
|
-
return Math.abs(ft - mt) <
|
|
7120
|
+
return Math.abs(ft - mt) < JM ? R = 0 : _ ? (f = pe(ft, YM) - pe(mt, VM), R = f * QM) : (f = pe(ft, ZM) - pe(mt, $M), R = f * tA), Math.abs(R) < qM ? W = 0 : R > 0 ? W = R - ig : W = R + ig, W * 100;
|
|
7120
7121
|
}
|
|
7121
|
-
function
|
|
7122
|
+
function iA(t, i) {
|
|
7122
7123
|
t = Ue(t), i = Ue(i);
|
|
7123
7124
|
let f = Math.max(no(t), 0), R = Math.max(no(i), 0);
|
|
7124
7125
|
R > f && ([f, R] = [R, f]);
|
|
7125
7126
|
let W = f + R;
|
|
7126
7127
|
return W === 0 ? 0 : (f - R) / W;
|
|
7127
7128
|
}
|
|
7128
|
-
const
|
|
7129
|
-
function
|
|
7129
|
+
const rA = 5e4;
|
|
7130
|
+
function nA(t, i) {
|
|
7130
7131
|
t = Ue(t), i = Ue(i);
|
|
7131
7132
|
let f = Math.max(no(t), 0), R = Math.max(no(i), 0);
|
|
7132
|
-
return R > f && ([f, R] = [R, f]), R === 0 ?
|
|
7133
|
+
return R > f && ([f, R] = [R, f]), R === 0 ? rA : (f - R) / R;
|
|
7133
7134
|
}
|
|
7134
|
-
function
|
|
7135
|
+
function oA(t, i) {
|
|
7135
7136
|
t = Ue(t), i = Ue(i);
|
|
7136
7137
|
let f = xr(t, [or, "l"]), R = xr(i, [or, "l"]);
|
|
7137
7138
|
return Math.abs(f - R);
|
|
7138
7139
|
}
|
|
7139
|
-
const
|
|
7140
|
+
const sA = 216 / 24389, ng = 24 / 116, Vc = 24389 / 27;
|
|
7140
7141
|
let nd = Ir.D65;
|
|
7141
7142
|
var Id = new Ae({
|
|
7142
7143
|
id: "lab-d65",
|
|
@@ -7160,7 +7161,7 @@ var Id = new Ae({
|
|
|
7160
7161
|
// Convert D65-adapted XYZ to Lab
|
|
7161
7162
|
// CIE 15.3:2004 section 8.2.1.1
|
|
7162
7163
|
fromBase(t) {
|
|
7163
|
-
let f = t.map((R, W) => R / nd[W]).map((R) => R >
|
|
7164
|
+
let f = t.map((R, W) => R / nd[W]).map((R) => R > sA ? Math.cbrt(R) : (Vc * R + 16) / 116);
|
|
7164
7165
|
return [
|
|
7165
7166
|
116 * f[1] - 16,
|
|
7166
7167
|
// L
|
|
@@ -7188,21 +7189,21 @@ var Id = new Ae({
|
|
|
7188
7189
|
}
|
|
7189
7190
|
});
|
|
7190
7191
|
const od = Math.pow(5, 0.5) * 0.5 + 0.5;
|
|
7191
|
-
function
|
|
7192
|
+
function aA(t, i) {
|
|
7192
7193
|
t = Ue(t), i = Ue(i);
|
|
7193
7194
|
let f = xr(t, [Id, "l"]), R = xr(i, [Id, "l"]), W = Math.abs(Math.pow(f, od) - Math.pow(R, od)), tt = Math.pow(W, 1 / od) * Math.SQRT2 - 40;
|
|
7194
7195
|
return tt < 7.5 ? 0 : tt;
|
|
7195
7196
|
}
|
|
7196
7197
|
var hh = /* @__PURE__ */ Object.freeze({
|
|
7197
7198
|
__proto__: null,
|
|
7198
|
-
contrastAPCA:
|
|
7199
|
-
contrastDeltaPhi:
|
|
7200
|
-
contrastLstar:
|
|
7201
|
-
contrastMichelson:
|
|
7202
|
-
contrastWCAG21:
|
|
7203
|
-
contrastWeber:
|
|
7199
|
+
contrastAPCA: eA,
|
|
7200
|
+
contrastDeltaPhi: aA,
|
|
7201
|
+
contrastLstar: oA,
|
|
7202
|
+
contrastMichelson: iA,
|
|
7203
|
+
contrastWCAG21: XM,
|
|
7204
|
+
contrastWeber: nA
|
|
7204
7205
|
});
|
|
7205
|
-
function
|
|
7206
|
+
function lA(t, i, f = {}) {
|
|
7206
7207
|
Wl(f) && (f = { algorithm: f });
|
|
7207
7208
|
let tt = f, { algorithm: R } = tt, W = yr(tt, ["algorithm"]);
|
|
7208
7209
|
if (!R) {
|
|
@@ -7223,7 +7224,7 @@ function Ky(t) {
|
|
|
7223
7224
|
let [i, f, R] = Hl(t, br), W = i + f + R;
|
|
7224
7225
|
return [i / W, f / W];
|
|
7225
7226
|
}
|
|
7226
|
-
function
|
|
7227
|
+
function cA(t) {
|
|
7227
7228
|
Object.defineProperty(t.prototype, "uv", {
|
|
7228
7229
|
get() {
|
|
7229
7230
|
return Zy(this);
|
|
@@ -7234,17 +7235,17 @@ function lA(t) {
|
|
|
7234
7235
|
}
|
|
7235
7236
|
});
|
|
7236
7237
|
}
|
|
7237
|
-
var
|
|
7238
|
+
var hA = /* @__PURE__ */ Object.freeze({
|
|
7238
7239
|
__proto__: null,
|
|
7239
|
-
register:
|
|
7240
|
+
register: cA,
|
|
7240
7241
|
uv: Zy,
|
|
7241
7242
|
xy: Ky
|
|
7242
7243
|
});
|
|
7243
|
-
function
|
|
7244
|
+
function uA(t, i) {
|
|
7244
7245
|
return Vy(t, i, "lab");
|
|
7245
7246
|
}
|
|
7246
|
-
const
|
|
7247
|
-
function
|
|
7247
|
+
const dA = Math.PI, og = dA / 180;
|
|
7248
|
+
function pA(t, i, { l: f = 2, c: R = 1 } = {}) {
|
|
7248
7249
|
let [W, tt, it] = or.from(t), [, at, ht] = Ll.from(or, [W, tt, it]), [ut, mt, ft] = or.from(i), _ = Ll.from(or, [ut, mt, ft])[1];
|
|
7249
7250
|
at < 0 && (at = 0), _ < 0 && (_ = 0);
|
|
7250
7251
|
let lt = W - ut, G = at - _, F = tt - mt, $ = it - ft, Y = pe(F, 2) + pe($, 2) - pe(G, 2), q = 0.511;
|
|
@@ -7284,19 +7285,19 @@ var Mp = new Ae({
|
|
|
7284
7285
|
return t.map((i) => Math.max(i / sg, 0));
|
|
7285
7286
|
}
|
|
7286
7287
|
});
|
|
7287
|
-
const $c = 1.15, Zc = 0.66, ag = 2610 / pe(2, 14),
|
|
7288
|
+
const $c = 1.15, Zc = 0.66, ag = 2610 / pe(2, 14), fA = pe(2, 14) / 2610, lg = 3424 / pe(2, 12), cg = 2413 / pe(2, 7), hg = 2392 / pe(2, 7), gA = 1.7 * 2523 / pe(2, 5), ug = pe(2, 5) / (1.7 * 2523), Kc = -0.56, sd = 16295499532821565e-27, mA = [
|
|
7288
7289
|
[0.41478972, 0.579999, 0.014648],
|
|
7289
7290
|
[-0.20151, 1.120649, 0.0531008],
|
|
7290
7291
|
[-0.0166008, 0.2648, 0.6684799]
|
|
7291
|
-
],
|
|
7292
|
+
], yA = [
|
|
7292
7293
|
[1.9242264357876067, -1.0047923125953657, 0.037651404030618],
|
|
7293
7294
|
[0.35031676209499907, 0.7264811939316552, -0.06538442294808501],
|
|
7294
7295
|
[-0.09098281098284752, -0.3127282905230739, 1.5227665613052603]
|
|
7295
|
-
],
|
|
7296
|
+
], vA = [
|
|
7296
7297
|
[0.5, 0.5, 0],
|
|
7297
7298
|
[3.524, -4.066708, 0.542708],
|
|
7298
7299
|
[0.199076, 1.096799, -1.295875]
|
|
7299
|
-
],
|
|
7300
|
+
], bA = [
|
|
7300
7301
|
[1, 0.1386050432715393, 0.05804731615611886],
|
|
7301
7302
|
[0.9999999999999999, -0.1386050432715393, -0.05804731615611886],
|
|
7302
7303
|
[0.9999999999999998, -0.09601924202631895, -0.8118918960560388]
|
|
@@ -7318,17 +7319,17 @@ var qy = new Ae({
|
|
|
7318
7319
|
},
|
|
7319
7320
|
base: Mp,
|
|
7320
7321
|
fromBase(t) {
|
|
7321
|
-
let [i, f, R] = t, W = $c * i - ($c - 1) * R, tt = Zc * f - (Zc - 1) * i, at = ai(
|
|
7322
|
+
let [i, f, R] = t, W = $c * i - ($c - 1) * R, tt = Zc * f - (Zc - 1) * i, at = ai(mA, [W, tt, R]).map(function(_) {
|
|
7322
7323
|
let lt = lg + cg * pe(_ / 1e4, ag), G = 1 + hg * pe(_ / 1e4, ag);
|
|
7323
|
-
return pe(lt / G,
|
|
7324
|
-
}), [ht, ut, mt] = ai(
|
|
7324
|
+
return pe(lt / G, gA);
|
|
7325
|
+
}), [ht, ut, mt] = ai(vA, at);
|
|
7325
7326
|
return [(1 + Kc) * ht / (1 + Kc * ht) - sd, ut, mt];
|
|
7326
7327
|
},
|
|
7327
7328
|
toBase(t) {
|
|
7328
|
-
let [i, f, R] = t, W = (i + sd) / (1 + Kc - Kc * (i + sd)), it = ai(
|
|
7329
|
+
let [i, f, R] = t, W = (i + sd) / (1 + Kc - Kc * (i + sd)), it = ai(bA, [W, f, R]).map(function(_) {
|
|
7329
7330
|
let lt = lg - pe(_, ug), G = hg * pe(_, ug) - cg;
|
|
7330
|
-
return 1e4 * pe(lt / G,
|
|
7331
|
-
}), [at, ht, ut] = ai(
|
|
7331
|
+
return 1e4 * pe(lt / G, fA);
|
|
7332
|
+
}), [at, ht, ut] = ai(yA, it), mt = (at + ($c - 1) * ut) / $c, ft = (ht + (Zc - 1) * mt) / Zc;
|
|
7332
7333
|
return [mt, ft, ut];
|
|
7333
7334
|
},
|
|
7334
7335
|
formats: {
|
|
@@ -7380,25 +7381,25 @@ var qy = new Ae({
|
|
|
7380
7381
|
color: {}
|
|
7381
7382
|
}
|
|
7382
7383
|
});
|
|
7383
|
-
function
|
|
7384
|
+
function xA(t, i) {
|
|
7384
7385
|
let [f, R, W] = Rd.from(t), [tt, it, at] = Rd.from(i), ht = f - tt, ut = R - it;
|
|
7385
7386
|
Number.isNaN(W) && Number.isNaN(at) ? (W = 0, at = 0) : Number.isNaN(W) ? W = at : Number.isNaN(at) && (at = W);
|
|
7386
7387
|
let mt = W - at, ft = 2 * Math.sqrt(R * it) * Math.sin(mt / 2 * (Math.PI / 180));
|
|
7387
7388
|
return Math.sqrt(pe(ht, 2) + pe(ut, 2) + pe(ft, 2));
|
|
7388
7389
|
}
|
|
7389
|
-
const Jy = 3424 / 4096, Qy = 2413 / 128, tv = 2392 / 128, dg = 2610 / 16384,
|
|
7390
|
+
const Jy = 3424 / 4096, Qy = 2413 / 128, tv = 2392 / 128, dg = 2610 / 16384, SA = 2523 / 32, wA = 16384 / 2610, pg = 32 / 2523, CA = [
|
|
7390
7391
|
[0.3592, 0.6976, -0.0358],
|
|
7391
7392
|
[-0.1922, 1.1004, 0.0755],
|
|
7392
7393
|
[7e-3, 0.0749, 0.8434]
|
|
7393
|
-
],
|
|
7394
|
+
], TA = [
|
|
7394
7395
|
[2048 / 4096, 2048 / 4096, 0],
|
|
7395
7396
|
[6610 / 4096, -13613 / 4096, 7003 / 4096],
|
|
7396
7397
|
[17933 / 4096, -17390 / 4096, -543 / 4096]
|
|
7397
|
-
],
|
|
7398
|
+
], kA = [
|
|
7398
7399
|
[0.9999888965628402, 0.008605050147287059, 0.11103437159861648],
|
|
7399
7400
|
[1.00001110343716, -0.008605050147287059, -0.11103437159861648],
|
|
7400
7401
|
[1.0000320633910054, 0.56004913547279, -0.3206339100541203]
|
|
7401
|
-
],
|
|
7402
|
+
], MA = [
|
|
7402
7403
|
[2.0701800566956137, -1.326456876103021, 0.20661600684785517],
|
|
7403
7404
|
[0.3649882500326575, 0.6804673628522352, -0.04542175307585323],
|
|
7404
7405
|
[-0.04959554223893211, -0.04942116118675749, 1.1879959417328034]
|
|
@@ -7433,47 +7434,47 @@ var jd = new Ae({
|
|
|
7433
7434
|
},
|
|
7434
7435
|
base: Mp,
|
|
7435
7436
|
fromBase(t) {
|
|
7436
|
-
let i = ai(
|
|
7437
|
-
return
|
|
7437
|
+
let i = ai(CA, t);
|
|
7438
|
+
return AA(i);
|
|
7438
7439
|
},
|
|
7439
7440
|
toBase(t) {
|
|
7440
|
-
let i =
|
|
7441
|
-
return ai(
|
|
7441
|
+
let i = PA(t);
|
|
7442
|
+
return ai(MA, i);
|
|
7442
7443
|
},
|
|
7443
7444
|
formats: {
|
|
7444
7445
|
color: {}
|
|
7445
7446
|
}
|
|
7446
7447
|
});
|
|
7447
|
-
function
|
|
7448
|
+
function AA(t) {
|
|
7448
7449
|
let i = t.map(function(f) {
|
|
7449
7450
|
let R = Jy + Qy * pe(f / 1e4, dg), W = 1 + tv * pe(f / 1e4, dg);
|
|
7450
|
-
return pe(R / W,
|
|
7451
|
+
return pe(R / W, SA);
|
|
7451
7452
|
});
|
|
7452
|
-
return ai(
|
|
7453
|
+
return ai(TA, i);
|
|
7453
7454
|
}
|
|
7454
|
-
function
|
|
7455
|
-
return ai(
|
|
7455
|
+
function PA(t) {
|
|
7456
|
+
return ai(kA, t).map(function(R) {
|
|
7456
7457
|
let W = Math.max(pe(R, pg) - Jy, 0), tt = Qy - tv * pe(R, pg);
|
|
7457
|
-
return 1e4 * pe(W / tt,
|
|
7458
|
+
return 1e4 * pe(W / tt, wA);
|
|
7458
7459
|
});
|
|
7459
7460
|
}
|
|
7460
|
-
function
|
|
7461
|
+
function EA(t, i) {
|
|
7461
7462
|
let [f, R, W] = jd.from(t), [tt, it, at] = jd.from(i);
|
|
7462
7463
|
return 720 * Math.sqrt(pe(f - tt, 2) + 0.25 * pe(R - it, 2) + pe(W - at, 2));
|
|
7463
7464
|
}
|
|
7464
|
-
const
|
|
7465
|
+
const LA = [
|
|
7465
7466
|
[0.8190224432164319, 0.3619062562801221, -0.12887378261216414],
|
|
7466
7467
|
[0.0329836671980271, 0.9292868468965546, 0.03614466816999844],
|
|
7467
7468
|
[0.048177199566046255, 0.26423952494422764, 0.6335478258136937]
|
|
7468
|
-
],
|
|
7469
|
+
], OA = [
|
|
7469
7470
|
[1.2268798733741557, -0.5578149965554813, 0.28139105017721583],
|
|
7470
7471
|
[-0.04057576262431372, 1.1122868293970594, -0.07171106666151701],
|
|
7471
7472
|
[-0.07637294974672142, -0.4214933239627914, 1.5869240244272418]
|
|
7472
|
-
],
|
|
7473
|
+
], DA = [
|
|
7473
7474
|
[0.2104542553, 0.793617785, -0.0040720468],
|
|
7474
7475
|
[1.9779984951, -2.428592205, 0.4505937099],
|
|
7475
7476
|
[0.0259040371, 0.7827717662, -0.808675766]
|
|
7476
|
-
],
|
|
7477
|
+
], IA = [
|
|
7477
7478
|
[0.9999999984505198, 0.39633779217376786, 0.2158037580607588],
|
|
7478
7479
|
[1.0000000088817609, -0.10556134232365635, -0.06385417477170591],
|
|
7479
7480
|
[1.0000000546724108, -0.08948418209496575, -1.2914855378640917]
|
|
@@ -7497,12 +7498,12 @@ var Ph = new Ae({
|
|
|
7497
7498
|
white: "D65",
|
|
7498
7499
|
base: br,
|
|
7499
7500
|
fromBase(t) {
|
|
7500
|
-
let f = ai(
|
|
7501
|
-
return ai(
|
|
7501
|
+
let f = ai(LA, t).map((R) => Math.cbrt(R));
|
|
7502
|
+
return ai(DA, f);
|
|
7502
7503
|
},
|
|
7503
7504
|
toBase(t) {
|
|
7504
|
-
let f = ai(
|
|
7505
|
-
return ai(
|
|
7505
|
+
let f = ai(IA, t).map((R) => pe(R, 3));
|
|
7506
|
+
return ai(OA, f);
|
|
7506
7507
|
},
|
|
7507
7508
|
formats: {
|
|
7508
7509
|
oklab: {
|
|
@@ -7510,17 +7511,17 @@ var Ph = new Ae({
|
|
|
7510
7511
|
}
|
|
7511
7512
|
}
|
|
7512
7513
|
});
|
|
7513
|
-
function
|
|
7514
|
+
function RA(t, i) {
|
|
7514
7515
|
let [f, R, W] = Ph.from(t), [tt, it, at] = Ph.from(i), ht = f - tt, ut = R - it, mt = W - at;
|
|
7515
7516
|
return Math.sqrt(pe(ht, 2) + pe(ut, 2) + pe(mt, 2));
|
|
7516
7517
|
}
|
|
7517
7518
|
var Eh = {
|
|
7518
|
-
deltaE76:
|
|
7519
|
-
deltaECMC:
|
|
7519
|
+
deltaE76: uA,
|
|
7520
|
+
deltaECMC: pA,
|
|
7520
7521
|
deltaE2000: Dd,
|
|
7521
|
-
deltaEJz:
|
|
7522
|
-
deltaEITP:
|
|
7523
|
-
deltaEOK:
|
|
7522
|
+
deltaEJz: xA,
|
|
7523
|
+
deltaEITP: EA,
|
|
7524
|
+
deltaEOK: RA
|
|
7524
7525
|
};
|
|
7525
7526
|
function yl(t, i, f = {}) {
|
|
7526
7527
|
Wl(f) && (f = { method: f });
|
|
@@ -7531,18 +7532,18 @@ function yl(t, i, f = {}) {
|
|
|
7531
7532
|
return Eh[it](t, i, W);
|
|
7532
7533
|
throw new TypeError(`Unknown deltaE method: ${R}`);
|
|
7533
7534
|
}
|
|
7534
|
-
function
|
|
7535
|
+
function jA(t, i = 0.25) {
|
|
7535
7536
|
let R = [Ae.get("oklch", "lch"), "l"];
|
|
7536
7537
|
return io(t, R, (W) => W * (1 + i));
|
|
7537
7538
|
}
|
|
7538
|
-
function
|
|
7539
|
+
function BA(t, i = 0.25) {
|
|
7539
7540
|
let R = [Ae.get("oklch", "lch"), "l"];
|
|
7540
7541
|
return io(t, R, (W) => W * (1 - i));
|
|
7541
7542
|
}
|
|
7542
|
-
var
|
|
7543
|
+
var _A = /* @__PURE__ */ Object.freeze({
|
|
7543
7544
|
__proto__: null,
|
|
7544
|
-
darken:
|
|
7545
|
-
lighten:
|
|
7545
|
+
darken: BA,
|
|
7546
|
+
lighten: jA
|
|
7546
7547
|
});
|
|
7547
7548
|
function ev(t, i, f = 0.5, R = {}) {
|
|
7548
7549
|
[t, i] = [Ue(t), Ue(i)], Zn(f) === "object" && ([f, R] = [0.5, f]);
|
|
@@ -7601,7 +7602,7 @@ function Ul(t, i, f = {}) {
|
|
|
7601
7602
|
let at = { colors: [t, i], options: f };
|
|
7602
7603
|
if (R ? R = Ae.get(R) : R = Ae.registry[Qr.interpolationSpace] || t.space, W = W ? Ae.get(W) : R, t = vr(t, R), i = vr(i, R), t = ro(t), i = ro(i), R.coords.h && R.coords.h.type === "angle") {
|
|
7603
7604
|
let ht = f.hue = f.hue || "shorter", ut = [R, "h"], [mt, ft] = [xr(t, ut), xr(i, ut)];
|
|
7604
|
-
[mt, ft] =
|
|
7605
|
+
[mt, ft] = IM(ht, [mt, ft]), io(t, ut, mt), io(i, ut, ft);
|
|
7605
7606
|
}
|
|
7606
7607
|
return it && (t.coords = t.coords.map((ht) => ht * t.alpha), i.coords = i.coords.map((ht) => ht * i.alpha)), Object.assign((ht) => {
|
|
7607
7608
|
ht = tt ? tt(ht) : ht;
|
|
@@ -7618,15 +7619,15 @@ function Ap(t) {
|
|
|
7618
7619
|
return Zn(t) === "function" && !!t.rangeArgs;
|
|
7619
7620
|
}
|
|
7620
7621
|
Qr.interpolationSpace = "lab";
|
|
7621
|
-
function
|
|
7622
|
+
function NA(t) {
|
|
7622
7623
|
t.defineFunction("mix", ev, { returns: "color" }), t.defineFunction("range", Ul, { returns: "function<color>" }), t.defineFunction("steps", iv, { returns: "array<color>" });
|
|
7623
7624
|
}
|
|
7624
|
-
var
|
|
7625
|
+
var zA = /* @__PURE__ */ Object.freeze({
|
|
7625
7626
|
__proto__: null,
|
|
7626
7627
|
isRange: Ap,
|
|
7627
7628
|
mix: ev,
|
|
7628
7629
|
range: Ul,
|
|
7629
|
-
register:
|
|
7630
|
+
register: NA,
|
|
7630
7631
|
steps: iv
|
|
7631
7632
|
}), rv = new Ae({
|
|
7632
7633
|
id: "hsl",
|
|
@@ -7735,7 +7736,7 @@ var NA = /* @__PURE__ */ Object.freeze({
|
|
|
7735
7736
|
toGamut: !0
|
|
7736
7737
|
}
|
|
7737
7738
|
}
|
|
7738
|
-
}),
|
|
7739
|
+
}), FA = new Ae({
|
|
7739
7740
|
id: "hwb",
|
|
7740
7741
|
name: "HWB",
|
|
7741
7742
|
coords: {
|
|
@@ -7776,11 +7777,11 @@ var NA = /* @__PURE__ */ Object.freeze({
|
|
|
7776
7777
|
}
|
|
7777
7778
|
}
|
|
7778
7779
|
});
|
|
7779
|
-
const
|
|
7780
|
+
const WA = [
|
|
7780
7781
|
[0.5766690429101305, 0.1855582379065463, 0.1882286462349947],
|
|
7781
7782
|
[0.29734497525053605, 0.6273635662554661, 0.07529145849399788],
|
|
7782
7783
|
[0.02703136138641234, 0.07068885253582723, 0.9913375368376388]
|
|
7783
|
-
],
|
|
7784
|
+
], HA = [
|
|
7784
7785
|
[2.0415879038107465, -0.5650069742788596, -0.34473135077832956],
|
|
7785
7786
|
[-0.9692436362808795, 1.8759675015077202, 0.04155505740717557],
|
|
7786
7787
|
[0.013444280632031142, -0.11836239223101838, 1.0151749943912054]
|
|
@@ -7789,9 +7790,9 @@ var ov = new Ki({
|
|
|
7789
7790
|
id: "a98rgb-linear",
|
|
7790
7791
|
name: "Linear Adobe® 98 RGB compatible",
|
|
7791
7792
|
white: "D65",
|
|
7792
|
-
toXYZ_M:
|
|
7793
|
-
fromXYZ_M:
|
|
7794
|
-
}),
|
|
7793
|
+
toXYZ_M: WA,
|
|
7794
|
+
fromXYZ_M: HA
|
|
7795
|
+
}), UA = new Ki({
|
|
7795
7796
|
id: "a98rgb",
|
|
7796
7797
|
name: "Adobe® 98 RGB compatible",
|
|
7797
7798
|
base: ov,
|
|
@@ -7803,11 +7804,11 @@ var ov = new Ki({
|
|
|
7803
7804
|
}
|
|
7804
7805
|
}
|
|
7805
7806
|
});
|
|
7806
|
-
const
|
|
7807
|
+
const GA = [
|
|
7807
7808
|
[0.7977604896723027, 0.13518583717574031, 0.0313493495815248],
|
|
7808
7809
|
[0.2880711282292934, 0.7118432178101014, 8565396060525902e-20],
|
|
7809
7810
|
[0, 0, 0.8251046025104601]
|
|
7810
|
-
],
|
|
7811
|
+
], XA = [
|
|
7811
7812
|
[1.3457989731028281, -0.25558010007997534, -0.05110628506753401],
|
|
7812
7813
|
[-0.5446224939028347, 1.5082327413132781, 0.02053603239147973],
|
|
7813
7814
|
[0, 0, 1.2119675456389454]
|
|
@@ -7817,26 +7818,26 @@ var sv = new Ki({
|
|
|
7817
7818
|
name: "Linear ProPhoto",
|
|
7818
7819
|
white: "D50",
|
|
7819
7820
|
base: kp,
|
|
7820
|
-
toXYZ_M:
|
|
7821
|
-
fromXYZ_M:
|
|
7821
|
+
toXYZ_M: GA,
|
|
7822
|
+
fromXYZ_M: XA
|
|
7822
7823
|
});
|
|
7823
|
-
const
|
|
7824
|
-
var
|
|
7824
|
+
const YA = 1 / 512, VA = 16 / 512;
|
|
7825
|
+
var $A = new Ki({
|
|
7825
7826
|
id: "prophoto",
|
|
7826
7827
|
name: "ProPhoto",
|
|
7827
7828
|
base: sv,
|
|
7828
7829
|
toBase(t) {
|
|
7829
|
-
return t.map((i) => i <
|
|
7830
|
+
return t.map((i) => i < VA ? i / 16 : pe(i, 1.8));
|
|
7830
7831
|
},
|
|
7831
7832
|
fromBase(t) {
|
|
7832
|
-
return t.map((i) => i >=
|
|
7833
|
+
return t.map((i) => i >= YA ? pe(i, 1 / 1.8) : 16 * i);
|
|
7833
7834
|
},
|
|
7834
7835
|
formats: {
|
|
7835
7836
|
color: {
|
|
7836
7837
|
id: "prophoto-rgb"
|
|
7837
7838
|
}
|
|
7838
7839
|
}
|
|
7839
|
-
}),
|
|
7840
|
+
}), ZA = new Ae({
|
|
7840
7841
|
id: "oklch",
|
|
7841
7842
|
name: "Oklch",
|
|
7842
7843
|
coords: {
|
|
@@ -7879,20 +7880,20 @@ var VA = new Ki({
|
|
|
7879
7880
|
}
|
|
7880
7881
|
}
|
|
7881
7882
|
});
|
|
7882
|
-
const fg = 203, gg = 2610 / pe(2, 14),
|
|
7883
|
-
var
|
|
7883
|
+
const fg = 203, gg = 2610 / pe(2, 14), KA = pe(2, 14) / 2610, qA = 2523 / pe(2, 5), mg = pe(2, 5) / 2523, yg = 3424 / pe(2, 12), vg = 2413 / pe(2, 7), bg = 2392 / pe(2, 7);
|
|
7884
|
+
var JA = new Ki({
|
|
7884
7885
|
id: "rec2100pq",
|
|
7885
7886
|
name: "REC.2100-PQ",
|
|
7886
7887
|
base: Kh,
|
|
7887
7888
|
toBase(t) {
|
|
7888
7889
|
return t.map(function(i) {
|
|
7889
|
-
return pe(Math.max(pe(i, mg) - yg, 0) / (vg - bg * pe(i, mg)),
|
|
7890
|
+
return pe(Math.max(pe(i, mg) - yg, 0) / (vg - bg * pe(i, mg)), KA) * 1e4 / fg;
|
|
7890
7891
|
});
|
|
7891
7892
|
},
|
|
7892
7893
|
fromBase(t) {
|
|
7893
7894
|
return t.map(function(i) {
|
|
7894
7895
|
let f = Math.max(i * fg / 1e4, 0), R = yg + vg * pe(f, gg), W = 1 + bg * pe(f, gg);
|
|
7895
|
-
return pe(R / W,
|
|
7896
|
+
return pe(R / W, qA);
|
|
7896
7897
|
});
|
|
7897
7898
|
},
|
|
7898
7899
|
formats: {
|
|
@@ -7902,7 +7903,7 @@ var qA = new Ki({
|
|
|
7902
7903
|
}
|
|
7903
7904
|
});
|
|
7904
7905
|
const xg = 0.17883277, Sg = 0.28466892, wg = 0.55991073, ad = 3.7743;
|
|
7905
|
-
var
|
|
7906
|
+
var QA = new Ki({
|
|
7906
7907
|
id: "rec2100hlg",
|
|
7907
7908
|
cssid: "rec2100-hlg",
|
|
7908
7909
|
name: "REC.2100-HLG",
|
|
@@ -8019,11 +8020,11 @@ Object.assign(Ir, {
|
|
|
8019
8020
|
F11: [1.00962, 1, 0.6435]
|
|
8020
8021
|
});
|
|
8021
8022
|
Ir.ACES = [0.32168 / 0.33767, 1, (1 - 0.32168 - 0.33767) / 0.33767];
|
|
8022
|
-
const
|
|
8023
|
+
const tP = [
|
|
8023
8024
|
[0.6624541811085053, 0.13400420645643313, 0.1561876870049078],
|
|
8024
8025
|
[0.27222871678091454, 0.6740817658111484, 0.05368951740793705],
|
|
8025
8026
|
[-0.005574649490394108, 0.004060733528982826, 1.0103391003129971]
|
|
8026
|
-
],
|
|
8027
|
+
], eP = [
|
|
8027
8028
|
[1.6410233796943257, -0.32480329418479, -0.23642469523761225],
|
|
8028
8029
|
[-0.6636628587229829, 1.6153315916573379, 0.016756347685530137],
|
|
8029
8030
|
[0.011721894328375376, -0.008284441996237409, 0.9883948585390215]
|
|
@@ -8050,14 +8051,14 @@ var cv = new Ki({
|
|
|
8050
8051
|
},
|
|
8051
8052
|
referred: "scene",
|
|
8052
8053
|
white: Ir.ACES,
|
|
8053
|
-
toXYZ_M:
|
|
8054
|
-
fromXYZ_M:
|
|
8054
|
+
toXYZ_M: tP,
|
|
8055
|
+
fromXYZ_M: eP,
|
|
8055
8056
|
formats: {
|
|
8056
8057
|
color: {}
|
|
8057
8058
|
}
|
|
8058
8059
|
});
|
|
8059
8060
|
const qc = pe(2, -16), ld = -0.35828683, Jc = (Math.log2(65504) + 9.72) / 17.52;
|
|
8060
|
-
var
|
|
8061
|
+
var iP = new Ki({
|
|
8061
8062
|
id: "acescc",
|
|
8062
8063
|
name: "ACEScc",
|
|
8063
8064
|
// see S-2014-003 ACEScc – A Logarithmic Encoding of ACES Data
|
|
@@ -8103,29 +8104,29 @@ var eP = new Ki({
|
|
|
8103
8104
|
}
|
|
8104
8105
|
}), Cg = /* @__PURE__ */ Object.freeze({
|
|
8105
8106
|
__proto__: null,
|
|
8106
|
-
A98RGB:
|
|
8107
|
+
A98RGB: UA,
|
|
8107
8108
|
A98RGB_Linear: ov,
|
|
8108
|
-
ACEScc:
|
|
8109
|
+
ACEScc: iP,
|
|
8109
8110
|
ACEScg: cv,
|
|
8110
8111
|
HSL: rv,
|
|
8111
8112
|
HSV: nv,
|
|
8112
|
-
HWB:
|
|
8113
|
+
HWB: FA,
|
|
8113
8114
|
ICTCP: jd,
|
|
8114
8115
|
JzCzHz: Rd,
|
|
8115
8116
|
Jzazbz: qy,
|
|
8116
8117
|
LCH: Ll,
|
|
8117
8118
|
Lab: or,
|
|
8118
8119
|
Lab_D65: Id,
|
|
8119
|
-
OKLCH:
|
|
8120
|
+
OKLCH: ZA,
|
|
8120
8121
|
OKLab: Ph,
|
|
8121
8122
|
P3: Yy,
|
|
8122
8123
|
P3_Linear: Gy,
|
|
8123
|
-
ProPhoto:
|
|
8124
|
+
ProPhoto: $A,
|
|
8124
8125
|
ProPhoto_Linear: sv,
|
|
8125
8126
|
REC_2020: Uy,
|
|
8126
8127
|
REC_2020_Linear: Kh,
|
|
8127
|
-
REC_2100_HLG:
|
|
8128
|
-
REC_2100_PQ:
|
|
8128
|
+
REC_2100_HLG: QA,
|
|
8129
|
+
REC_2100_PQ: JA,
|
|
8129
8130
|
XYZ_ABS_D65: Mp,
|
|
8130
8131
|
XYZ_D50: kp,
|
|
8131
8132
|
XYZ_D65: br,
|
|
@@ -8175,7 +8176,7 @@ class Ne {
|
|
|
8175
8176
|
};
|
|
8176
8177
|
}
|
|
8177
8178
|
display(...i) {
|
|
8178
|
-
let f =
|
|
8179
|
+
let f = WM(this, ...i);
|
|
8179
8180
|
return f.color = new Ne(f.color), f;
|
|
8180
8181
|
}
|
|
8181
8182
|
/**
|
|
@@ -8222,14 +8223,14 @@ Ne.defineFunctions({
|
|
|
8222
8223
|
set: io,
|
|
8223
8224
|
setAll: Hy,
|
|
8224
8225
|
to: vr,
|
|
8225
|
-
equals:
|
|
8226
|
+
equals: HM,
|
|
8226
8227
|
inGamut: xl,
|
|
8227
8228
|
toGamut: ro,
|
|
8228
8229
|
distance: Vy,
|
|
8229
8230
|
toString: Ah
|
|
8230
8231
|
});
|
|
8231
8232
|
Object.assign(Ne, {
|
|
8232
|
-
util:
|
|
8233
|
+
util: PM,
|
|
8233
8234
|
hooks: eo,
|
|
8234
8235
|
WHITES: Ir,
|
|
8235
8236
|
Space: Ae,
|
|
@@ -8296,13 +8297,13 @@ function Bd(t, i) {
|
|
|
8296
8297
|
Ne.extend(Eh);
|
|
8297
8298
|
Ne.extend({ deltaE: yl });
|
|
8298
8299
|
Object.assign(Ne, { deltaEMethods: Eh });
|
|
8299
|
-
Ne.extend(
|
|
8300
|
-
Ne.extend({ contrast:
|
|
8301
|
-
Ne.extend(
|
|
8302
|
-
Ne.extend(
|
|
8303
|
-
Ne.extend(
|
|
8300
|
+
Ne.extend(_A);
|
|
8301
|
+
Ne.extend({ contrast: lA });
|
|
8302
|
+
Ne.extend(hA);
|
|
8303
|
+
Ne.extend(GM);
|
|
8304
|
+
Ne.extend(zA);
|
|
8304
8305
|
Ne.extend(hh);
|
|
8305
|
-
const
|
|
8306
|
+
const $O = 0.15, tn = (t) => typeof t == "string" ? new Ne(t) : t, pn = (t) => t.toString({ format: "hex" }), hv = (...t) => {
|
|
8306
8307
|
const i = t.map(tn);
|
|
8307
8308
|
if (i.length < 2)
|
|
8308
8309
|
return () => pn(i[0]);
|
|
@@ -8318,13 +8319,13 @@ const VO = 0.15, tn = (t) => typeof t == "string" ? new Ne(t) : t, pn = (t) => t
|
|
|
8318
8319
|
const tt = Math.floor(W * R.length);
|
|
8319
8320
|
return R[tt](W * R.length - tt);
|
|
8320
8321
|
};
|
|
8321
|
-
},
|
|
8322
|
+
}, rP = (t, ...i) => {
|
|
8322
8323
|
const f = i.map(tn);
|
|
8323
8324
|
if (f.length < 2)
|
|
8324
8325
|
return Array(t).fill(pn(f[0]));
|
|
8325
8326
|
const R = hv(...f);
|
|
8326
8327
|
return Array(t).fill(0).map((W, tt) => R(tt / (t - 1)));
|
|
8327
|
-
},
|
|
8328
|
+
}, nP = (t) => pn(tn(t).set("hsl.s", 0)), oP = (t, i) => pn(Ne.mix(t, i, 0.5, { outputSpace: "srgb" })), sP = (t, i) => Math.abs(tn(i).hsl.h - tn(t).hsl.h), Lh = (t, i) => {
|
|
8328
8329
|
const f = tn(t);
|
|
8329
8330
|
return f.hsv.v = f.hsv.v + f.hsv.v * i, f.hsv.v > 100 && (f.hsv.s = f.hsv.s - (f.hsv.v - 100) / 1.677), f.hsv.s = Math.max(0, Math.min(100, f.hsv.s)), f.hsv.v = Math.max(0, Math.min(100, f.hsv.v)), pn(f);
|
|
8330
8331
|
}, uv = (t) => ({
|
|
@@ -8335,25 +8336,25 @@ const VO = 0.15, tn = (t) => typeof t == "string" ? new Ne(t) : t, pn = (t) => t
|
|
|
8335
8336
|
const { R: i, G: f, B: R } = uv(t);
|
|
8336
8337
|
return 1 - (0.299 * i + 0.587 * f + 0.114 * R) / 255;
|
|
8337
8338
|
};
|
|
8338
|
-
function
|
|
8339
|
+
function aP(t) {
|
|
8339
8340
|
return Jh(t) < 0.9;
|
|
8340
8341
|
}
|
|
8341
|
-
const
|
|
8342
|
+
const ZO = (t, i = 0.05, f = 1) => {
|
|
8342
8343
|
const R = tn(t), { R: W, G: tt, B: it } = uv(R), at = Jh(R);
|
|
8343
8344
|
let ht = i;
|
|
8344
|
-
|
|
8345
|
+
aP(R) && (ht *= -0.6), ht *= Math.exp(at * 1.2);
|
|
8345
8346
|
const ut = Math.min(Math.max(Math.round(255 * ht) + W, 0), 255), mt = Math.min(Math.max(Math.round(255 * ht) + tt, 0), 255), ft = Math.min(Math.max(Math.round(255 * ht) + it, 0), 255);
|
|
8346
8347
|
return `rgba(${ut}, ${mt}, ${ft}, ${f})`;
|
|
8347
|
-
},
|
|
8348
|
+
}, lP = (t, i) => {
|
|
8348
8349
|
const f = tn(t);
|
|
8349
8350
|
return f.alpha = i, pn(f);
|
|
8350
|
-
},
|
|
8351
|
+
}, cP = (t, i, f) => Ne.steps(new Ne(t), new Ne(i), { steps: f }).map(
|
|
8351
8352
|
(R) => new Ne(R).to("srgb").toString()
|
|
8352
8353
|
);
|
|
8353
|
-
function
|
|
8354
|
+
function hP(t) {
|
|
8354
8355
|
return (i) => {
|
|
8355
8356
|
var ut, mt, ft;
|
|
8356
|
-
const { steps: f, minColor: R, maxColor: W } = t, tt = (ut = t.minValue) != null ? ut : Math.min(...i), it = (mt = t.maxValue) != null ? mt : Math.max(...i), at = (ft = t.midValue) != null ? ft : tt < 0 && it > 0 ? 0 : (tt + it) / 2, ht =
|
|
8357
|
+
const { steps: f, minColor: R, maxColor: W } = t, tt = (ut = t.minValue) != null ? ut : Math.min(...i), it = (mt = t.maxValue) != null ? mt : Math.max(...i), at = (ft = t.midValue) != null ? ft : tt < 0 && it > 0 ? 0 : (tt + it) / 2, ht = uP(
|
|
8357
8358
|
R != null ? R : Ld,
|
|
8358
8359
|
W != null ? W : Ld,
|
|
8359
8360
|
tt,
|
|
@@ -8364,43 +8365,43 @@ function cP(t) {
|
|
|
8364
8365
|
return (_) => ht(_);
|
|
8365
8366
|
};
|
|
8366
8367
|
}
|
|
8367
|
-
const
|
|
8368
|
-
const it =
|
|
8369
|
-
return tt <= 0 ?
|
|
8370
|
-
},
|
|
8368
|
+
const uP = (t, i, f, R, W, tt = 0) => {
|
|
8369
|
+
const it = fP(f, R, W), at = sP(t, i) > 90 ? [t, nP(oP(t, i)), i] : [t, i];
|
|
8370
|
+
return tt <= 0 ? dP(it, at) : pP(it, tt, at);
|
|
8371
|
+
}, dP = (t, i) => {
|
|
8371
8372
|
const f = hv(...i);
|
|
8372
8373
|
return (R) => f(t(R));
|
|
8373
|
-
},
|
|
8374
|
-
const R =
|
|
8374
|
+
}, pP = (t, i, f) => {
|
|
8375
|
+
const R = rP(i, ...f);
|
|
8375
8376
|
return (W) => {
|
|
8376
8377
|
const tt = Math.floor(t(W) * i);
|
|
8377
8378
|
return R[Math.min(Math.max(tt, 0), i - 1)];
|
|
8378
8379
|
};
|
|
8379
|
-
},
|
|
8380
|
-
function
|
|
8380
|
+
}, fP = (t, i, f) => (R) => R == t && R == f ? 0.5 : R < i ? 0.5 * ((R - t) / (i - t)) : 0.5 + 0.5 * (R - i) / (f - i);
|
|
8381
|
+
function gP(t) {
|
|
8381
8382
|
let i;
|
|
8382
8383
|
switch (typeof t == "string" ? i = jy(t) : i = t, i.type) {
|
|
8383
8384
|
case "uniform":
|
|
8384
8385
|
return {
|
|
8385
8386
|
type: "Static",
|
|
8386
|
-
getColor:
|
|
8387
|
+
getColor: kM(i)
|
|
8387
8388
|
};
|
|
8388
8389
|
case "conditional":
|
|
8389
8390
|
return {
|
|
8390
8391
|
type: "Absolute",
|
|
8391
|
-
getColor:
|
|
8392
|
+
getColor: MM(i)
|
|
8392
8393
|
};
|
|
8393
8394
|
case "range":
|
|
8394
8395
|
return {
|
|
8395
8396
|
type: "Relative",
|
|
8396
|
-
getColor:
|
|
8397
|
+
getColor: hP(i)
|
|
8397
8398
|
};
|
|
8398
8399
|
}
|
|
8399
8400
|
}
|
|
8400
8401
|
const dv = (t) => {
|
|
8401
8402
|
const { getValueFromDataStructure: i, applyColorToDataStructure: f } = t;
|
|
8402
8403
|
return (R, W) => {
|
|
8403
|
-
const tt =
|
|
8404
|
+
const tt = gP(W);
|
|
8404
8405
|
let it;
|
|
8405
8406
|
switch (tt.type) {
|
|
8406
8407
|
case "Static":
|
|
@@ -8422,12 +8423,12 @@ const dv = (t) => {
|
|
|
8422
8423
|
return f(at, ut);
|
|
8423
8424
|
});
|
|
8424
8425
|
};
|
|
8425
|
-
},
|
|
8426
|
+
}, mP = dv({
|
|
8426
8427
|
getValueFromDataStructure: (t) => t.value,
|
|
8427
8428
|
applyColorToDataStructure: (t, i) => oe(Ut({}, t), {
|
|
8428
8429
|
color: i
|
|
8429
8430
|
})
|
|
8430
|
-
}), _d = (t, i) => Object.assign(Object.create(t), i),
|
|
8431
|
+
}), _d = (t, i) => Object.assign(Object.create(t), i), KO = (t, i) => Object.assign(
|
|
8431
8432
|
Object.create(Object.getPrototypeOf(t)),
|
|
8432
8433
|
t,
|
|
8433
8434
|
i
|
|
@@ -8448,20 +8449,20 @@ function vn(t) {
|
|
|
8448
8449
|
const i = "column" in t ? t.column : t, f = "aggregation" in i && !!i.aggregation, R = "context" in i && !!i.context, W = "formula" in i && !!i.formula;
|
|
8449
8450
|
return f || R || W ? !0 : !("type" in i);
|
|
8450
8451
|
}
|
|
8451
|
-
const Li = ({ column: t }) => "title" in t && t.title || t.name, pv = ({ column: t, granularity: i }) => i || t.granularity,
|
|
8452
|
+
const Li = ({ column: t }) => "title" in t && t.title || t.name, pv = ({ column: t, granularity: i }) => i || t.granularity, qO = (t) => {
|
|
8452
8453
|
const { column: i } = Qh(t);
|
|
8453
8454
|
return i;
|
|
8454
|
-
},
|
|
8455
|
+
}, JO = (t) => {
|
|
8455
8456
|
const { column: i } = Qh(t);
|
|
8456
8457
|
return i;
|
|
8457
8458
|
};
|
|
8458
8459
|
function fv(t) {
|
|
8459
8460
|
return "column" in t && t.column !== void 0;
|
|
8460
8461
|
}
|
|
8461
|
-
function
|
|
8462
|
+
function yP(t) {
|
|
8462
8463
|
return !("column" in t);
|
|
8463
8464
|
}
|
|
8464
|
-
function
|
|
8465
|
+
function vP(t) {
|
|
8465
8466
|
var W;
|
|
8466
8467
|
const { column: i, style: f } = Qh(t), R = qn(i.type) ? (W = i == null ? void 0 : i.getFormat) == null ? void 0 : W.call(i) : void 0;
|
|
8467
8468
|
return oe(Ut({}, f), {
|
|
@@ -8469,7 +8470,7 @@ function yP(t) {
|
|
|
8469
8470
|
column: i
|
|
8470
8471
|
});
|
|
8471
8472
|
}
|
|
8472
|
-
function
|
|
8473
|
+
function bP(t) {
|
|
8473
8474
|
var R, W;
|
|
8474
8475
|
const { column: i, style: f } = Qh(t);
|
|
8475
8476
|
return oe(Ut({}, f), {
|
|
@@ -8480,8 +8481,8 @@ function vP(t) {
|
|
|
8480
8481
|
enabled: !0
|
|
8481
8482
|
});
|
|
8482
8483
|
}
|
|
8483
|
-
function
|
|
8484
|
-
return vn(t) ?
|
|
8484
|
+
function QO(t) {
|
|
8485
|
+
return vn(t) ? bP(t) : vP(t);
|
|
8485
8486
|
}
|
|
8486
8487
|
const Tg = (t, i) => {
|
|
8487
8488
|
var ft;
|
|
@@ -8493,31 +8494,31 @@ const Tg = (t, i) => {
|
|
|
8493
8494
|
t.x.map(({ column: { name: _ } }) => _)
|
|
8494
8495
|
);
|
|
8495
8496
|
R = R.map((_, lt) => oe(Ut({}, _), {
|
|
8496
|
-
direction:
|
|
8497
|
+
direction: xP(t.x[lt].sortType)
|
|
8497
8498
|
}));
|
|
8498
8499
|
const W = wh(
|
|
8499
8500
|
i,
|
|
8500
8501
|
t.breakBy.map(({ column: { name: _ } }) => _)
|
|
8501
8502
|
), tt = t.y.filter(
|
|
8502
8503
|
({ sortType: _ }) => _ && _ !== "sortNone"
|
|
8503
|
-
), it = R.length > 1 ? 1 : 0, at =
|
|
8504
|
+
), it = R.length > 1 ? 1 : 0, at = SP(
|
|
8504
8505
|
i,
|
|
8505
8506
|
tt,
|
|
8506
8507
|
R,
|
|
8507
8508
|
((ft = R[it]) == null ? void 0 : ft.direction) === 0 ? gy : void 0
|
|
8508
|
-
), ht = t.y.map(({ column: { name: _ } }) => _), ut = t.breakBy.length > 0 ?
|
|
8509
|
+
), ht = t.y.map(({ column: { name: _ } }) => _), ut = t.breakBy.length > 0 ? kP(
|
|
8509
8510
|
i,
|
|
8510
8511
|
at,
|
|
8511
8512
|
R,
|
|
8512
8513
|
ht[0],
|
|
8513
8514
|
W,
|
|
8514
8515
|
t.breakBy
|
|
8515
|
-
) :
|
|
8516
|
+
) : wP(i, at, R, ht, t.y);
|
|
8516
8517
|
return oe(Ut({}, ut), {
|
|
8517
8518
|
xAxisCount: f,
|
|
8518
8519
|
type: "cartesian"
|
|
8519
8520
|
});
|
|
8520
|
-
},
|
|
8521
|
+
}, xP = (t) => {
|
|
8521
8522
|
switch (t) {
|
|
8522
8523
|
case "sortNone":
|
|
8523
8524
|
return 0;
|
|
@@ -8527,7 +8528,7 @@ const Tg = (t, i) => {
|
|
|
8527
8528
|
default:
|
|
8528
8529
|
return 1;
|
|
8529
8530
|
}
|
|
8530
|
-
},
|
|
8531
|
+
}, SP = (t, i, f, R) => {
|
|
8531
8532
|
if (f.length === 0)
|
|
8532
8533
|
return [{ key: "", xValues: [""], rawValues: [] }];
|
|
8533
8534
|
const W = i.map(({ column: { name: ft } }) => ({
|
|
@@ -8544,7 +8545,7 @@ const Tg = (t, i) => {
|
|
|
8544
8545
|
};
|
|
8545
8546
|
W.push(ft);
|
|
8546
8547
|
}
|
|
8547
|
-
const tt =
|
|
8548
|
+
const tt = tM(t, f, W), it = [];
|
|
8548
8549
|
let at = 0;
|
|
8549
8550
|
if (f.length === 2) {
|
|
8550
8551
|
at = 1;
|
|
@@ -8564,10 +8565,10 @@ const Tg = (t, i) => {
|
|
|
8564
8565
|
const ft = _o(tt, f[at].name);
|
|
8565
8566
|
ft && it.push(ft);
|
|
8566
8567
|
}
|
|
8567
|
-
const ht =
|
|
8568
|
+
const ht = Qk(tt, it), ut = wh(
|
|
8568
8569
|
ht,
|
|
8569
8570
|
f.map((ft) => ft.name)
|
|
8570
|
-
), mt =
|
|
8571
|
+
), mt = eM(ht, ut);
|
|
8571
8572
|
return mt.rows.map((ft) => {
|
|
8572
8573
|
const _ = Fl(ft, mt.columns), lt = _.map((Y) => Y.displayValue), G = _.map((Y) => {
|
|
8573
8574
|
var q;
|
|
@@ -8580,16 +8581,16 @@ const Tg = (t, i) => {
|
|
|
8580
8581
|
});
|
|
8581
8582
|
}, gv = (t, i, f) => {
|
|
8582
8583
|
var it, at;
|
|
8583
|
-
const R = f ?
|
|
8584
|
+
const R = f ? iM(t, f) : 1e-5, { color: W, rawValue: tt } = (at = t[(it = f == null ? void 0 : f.index) != null ? it : 0]) != null ? at : {};
|
|
8584
8585
|
return Ut({
|
|
8585
8586
|
rawValue: tt,
|
|
8586
8587
|
xValue: i.rawValues,
|
|
8587
8588
|
xDisplayValue: i.xValues,
|
|
8588
8589
|
xCompareValue: i.compareValues,
|
|
8589
8590
|
value: R === void 0 ? NaN : R,
|
|
8590
|
-
blur: f ?
|
|
8591
|
+
blur: f ? rM(t, f) : void 0
|
|
8591
8592
|
}, W && { color: W });
|
|
8592
|
-
},
|
|
8593
|
+
}, wP = (t, i, f, R, W) => {
|
|
8593
8594
|
const tt = R.length > 0 ? wh(t, R) : [void 0], it = W.reduce((ut, mt) => (ut[mt.column.name] = mt, ut), {}), at = Ey(t.rows, f), ht = tt.map((ut) => {
|
|
8594
8595
|
var G, F;
|
|
8595
8596
|
let mt = i.map(($) => {
|
|
@@ -8597,27 +8598,27 @@ const Tg = (t, i) => {
|
|
|
8597
8598
|
return gv(q, $, ut);
|
|
8598
8599
|
});
|
|
8599
8600
|
const ft = (G = ut == null ? void 0 : ut.name) != null ? G : "", _ = ft ? Li(it[ft]) : "", lt = (F = it[ft]) == null ? void 0 : F.color;
|
|
8600
|
-
return lt && (mt =
|
|
8601
|
+
return lt && (mt = mP(mt, lt)), {
|
|
8601
8602
|
name: ft,
|
|
8602
8603
|
title: _,
|
|
8603
8604
|
data: mt
|
|
8604
8605
|
};
|
|
8605
8606
|
});
|
|
8606
8607
|
return { xValues: i, series: ht };
|
|
8607
|
-
},
|
|
8608
|
+
}, CP = (t, i, f) => Fl(t, i).map((R, W) => {
|
|
8608
8609
|
const tt = li(f[W].numberFormatConfig);
|
|
8609
8610
|
return Fi(i[W].type) ? Hi(tt, parseFloat(R.displayValue)) : R.displayValue;
|
|
8610
|
-
}).join(","),
|
|
8611
|
+
}).join(","), TP = (t, i) => Fl(t, i).map(({ rawValue: f }) => f), kP = (t, i, f, R, W, tt) => {
|
|
8611
8612
|
const it = _o(t, R), ut = Cp(t.rows, W).map((mt) => {
|
|
8612
8613
|
const ft = mt[0];
|
|
8613
8614
|
return {
|
|
8614
|
-
seriesName:
|
|
8615
|
+
seriesName: CP(
|
|
8615
8616
|
// all rows contain same series name
|
|
8616
8617
|
ft,
|
|
8617
8618
|
W,
|
|
8618
8619
|
tt
|
|
8619
8620
|
),
|
|
8620
|
-
seriesValues:
|
|
8621
|
+
seriesValues: TP(ft, W),
|
|
8621
8622
|
rowsByXColumns: Ey(mt, f)
|
|
8622
8623
|
};
|
|
8623
8624
|
}).map((mt) => {
|
|
@@ -8632,36 +8633,36 @@ const Tg = (t, i) => {
|
|
|
8632
8633
|
};
|
|
8633
8634
|
});
|
|
8634
8635
|
return { xValues: i, series: ut };
|
|
8635
|
-
},
|
|
8636
|
+
}, MP = { displayValue: "0" }, fl = (t, i) => {
|
|
8636
8637
|
if (i) {
|
|
8637
8638
|
for (let f = 0; f < t.columns.length; f++)
|
|
8638
8639
|
if (t.columns[f].name === i.column.name)
|
|
8639
8640
|
return f;
|
|
8640
8641
|
}
|
|
8641
8642
|
return -1;
|
|
8642
|
-
},
|
|
8643
|
+
}, AP = (t, i) => ({
|
|
8643
8644
|
x: fl(i, t.x),
|
|
8644
8645
|
y: fl(i, t.y),
|
|
8645
8646
|
breakByPoint: fl(i, t.breakByPoint),
|
|
8646
8647
|
breakByColor: fl(i, t.breakByColor),
|
|
8647
8648
|
size: fl(i, t.size)
|
|
8648
|
-
}), kg = (t, i) => i[t] ||
|
|
8649
|
+
}), kg = (t, i) => i[t] || MP, PP = (t, i) => {
|
|
8649
8650
|
const f = /* @__PURE__ */ new Set();
|
|
8650
8651
|
return t.forEach((R) => {
|
|
8651
8652
|
f.add(R[i].displayValue);
|
|
8652
8653
|
}), Array.from(f.values());
|
|
8653
8654
|
}, Mg = (t, i, f) => {
|
|
8654
8655
|
if (f && !vn(f))
|
|
8655
|
-
return
|
|
8656
|
-
}, Ag = (t, i) => [t, i],
|
|
8656
|
+
return PP(t, i);
|
|
8657
|
+
}, Ag = (t, i) => [t, i], EP = (t, i) => {
|
|
8657
8658
|
const f = new Map(t == null ? void 0 : t.map(Ag)), R = new Map(i == null ? void 0 : i.map(Ag));
|
|
8658
8659
|
return {
|
|
8659
8660
|
xCategoriesMap: f,
|
|
8660
8661
|
yCategoriesMap: R
|
|
8661
8662
|
};
|
|
8662
|
-
},
|
|
8663
|
+
}, LP = (t, i) => {
|
|
8663
8664
|
var tt, it;
|
|
8664
|
-
const f =
|
|
8665
|
+
const f = AP(t, i), R = t != null && t.breakByPoint && Fi(t.breakByPoint.column.type) ? li((tt = t.breakByPoint) == null ? void 0 : tt.numberFormatConfig) : void 0, W = t != null && t.breakByColor && (vn(t.breakByColor) || Fi(t.breakByColor.column.type)) ? li((it = t.breakByColor) == null ? void 0 : it.numberFormatConfig) : void 0;
|
|
8665
8666
|
return i.rows.map((at) => {
|
|
8666
8667
|
const ht = Ut({}, at[f.breakByPoint]);
|
|
8667
8668
|
R && (ht.displayValue = Hi(
|
|
@@ -8680,8 +8681,8 @@ const Tg = (t, i) => {
|
|
|
8680
8681
|
size: at[f.size]
|
|
8681
8682
|
};
|
|
8682
8683
|
});
|
|
8683
|
-
},
|
|
8684
|
-
const f =
|
|
8684
|
+
}, tD = (t, i) => {
|
|
8685
|
+
const f = LP(t, i), { x: R, y: W } = t, tt = Mg(f, "xAxis", R), it = Mg(f, "yAxis", W);
|
|
8685
8686
|
return {
|
|
8686
8687
|
type: "scatter",
|
|
8687
8688
|
scatterDataTable: f,
|
|
@@ -8691,46 +8692,46 @@ const Tg = (t, i) => {
|
|
|
8691
8692
|
}, en = (t, i) => {
|
|
8692
8693
|
var R;
|
|
8693
8694
|
const f = t == null ? void 0 : t.filter((W) => W);
|
|
8694
|
-
return (R = f && f[i % f.length]) != null ? R :
|
|
8695
|
+
return (R = f && f[i % f.length]) != null ? R : TM[i % 10];
|
|
8695
8696
|
};
|
|
8696
|
-
var
|
|
8697
|
-
return
|
|
8697
|
+
var OP = function(i) {
|
|
8698
|
+
return DP(i) && !IP(i);
|
|
8698
8699
|
};
|
|
8699
|
-
function
|
|
8700
|
+
function DP(t) {
|
|
8700
8701
|
return !!t && typeof t == "object";
|
|
8701
8702
|
}
|
|
8702
|
-
function
|
|
8703
|
+
function IP(t) {
|
|
8703
8704
|
var i = Object.prototype.toString.call(t);
|
|
8704
|
-
return i === "[object RegExp]" || i === "[object Date]" ||
|
|
8705
|
-
}
|
|
8706
|
-
var IP = typeof Symbol == "function" && Symbol.for, RP = IP ? Symbol.for("react.element") : 60103;
|
|
8707
|
-
function jP(t) {
|
|
8708
|
-
return t.$$typeof === RP;
|
|
8705
|
+
return i === "[object RegExp]" || i === "[object Date]" || BP(t);
|
|
8709
8706
|
}
|
|
8707
|
+
var RP = typeof Symbol == "function" && Symbol.for, jP = RP ? Symbol.for("react.element") : 60103;
|
|
8710
8708
|
function BP(t) {
|
|
8709
|
+
return t.$$typeof === jP;
|
|
8710
|
+
}
|
|
8711
|
+
function _P(t) {
|
|
8711
8712
|
return Array.isArray(t) ? [] : {};
|
|
8712
8713
|
}
|
|
8713
8714
|
function Il(t, i) {
|
|
8714
|
-
return i.clone !== !1 && i.isMergeableObject(t) ? na(
|
|
8715
|
+
return i.clone !== !1 && i.isMergeableObject(t) ? na(_P(t), t, i) : t;
|
|
8715
8716
|
}
|
|
8716
|
-
function
|
|
8717
|
+
function NP(t, i, f) {
|
|
8717
8718
|
return t.concat(i).map(function(R) {
|
|
8718
8719
|
return Il(R, f);
|
|
8719
8720
|
});
|
|
8720
8721
|
}
|
|
8721
|
-
function
|
|
8722
|
+
function zP(t, i) {
|
|
8722
8723
|
if (!i.customMerge)
|
|
8723
8724
|
return na;
|
|
8724
8725
|
var f = i.customMerge(t);
|
|
8725
8726
|
return typeof f == "function" ? f : na;
|
|
8726
8727
|
}
|
|
8727
|
-
function
|
|
8728
|
+
function FP(t) {
|
|
8728
8729
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(i) {
|
|
8729
8730
|
return Object.propertyIsEnumerable.call(t, i);
|
|
8730
8731
|
}) : [];
|
|
8731
8732
|
}
|
|
8732
8733
|
function Pg(t) {
|
|
8733
|
-
return Object.keys(t).concat(
|
|
8734
|
+
return Object.keys(t).concat(FP(t));
|
|
8734
8735
|
}
|
|
8735
8736
|
function mv(t, i) {
|
|
8736
8737
|
try {
|
|
@@ -8739,21 +8740,21 @@ function mv(t, i) {
|
|
|
8739
8740
|
return !1;
|
|
8740
8741
|
}
|
|
8741
8742
|
}
|
|
8742
|
-
function
|
|
8743
|
+
function WP(t, i) {
|
|
8743
8744
|
return mv(t, i) && !(Object.hasOwnProperty.call(t, i) && Object.propertyIsEnumerable.call(t, i));
|
|
8744
8745
|
}
|
|
8745
|
-
function
|
|
8746
|
+
function HP(t, i, f) {
|
|
8746
8747
|
var R = {};
|
|
8747
8748
|
return f.isMergeableObject(t) && Pg(t).forEach(function(W) {
|
|
8748
8749
|
R[W] = Il(t[W], f);
|
|
8749
8750
|
}), Pg(i).forEach(function(W) {
|
|
8750
|
-
|
|
8751
|
+
WP(t, W) || (mv(t, W) && f.isMergeableObject(i[W]) ? R[W] = zP(W, f)(t[W], i[W], f) : R[W] = Il(i[W], f));
|
|
8751
8752
|
}), R;
|
|
8752
8753
|
}
|
|
8753
8754
|
function na(t, i, f) {
|
|
8754
|
-
f = f || {}, f.arrayMerge = f.arrayMerge ||
|
|
8755
|
+
f = f || {}, f.arrayMerge = f.arrayMerge || NP, f.isMergeableObject = f.isMergeableObject || OP, f.cloneUnlessOtherwiseSpecified = Il;
|
|
8755
8756
|
var R = Array.isArray(i), W = Array.isArray(t), tt = R === W;
|
|
8756
|
-
return tt ? R ? f.arrayMerge(t, i, f) :
|
|
8757
|
+
return tt ? R ? f.arrayMerge(t, i, f) : HP(t, i, f) : Il(i, f);
|
|
8757
8758
|
}
|
|
8758
8759
|
na.all = function(i, f) {
|
|
8759
8760
|
if (!Array.isArray(i))
|
|
@@ -8762,8 +8763,8 @@ na.all = function(i, f) {
|
|
|
8762
8763
|
return na(R, W, f);
|
|
8763
8764
|
}, {});
|
|
8764
8765
|
};
|
|
8765
|
-
var
|
|
8766
|
-
const Dr = /* @__PURE__ */ rm(
|
|
8766
|
+
var UP = na, GP = UP;
|
|
8767
|
+
const Dr = /* @__PURE__ */ rm(GP), XP = {
|
|
8767
8768
|
cursor: "default",
|
|
8768
8769
|
fontFamily: "Open Sans",
|
|
8769
8770
|
fontSize: "13px",
|
|
@@ -8777,7 +8778,7 @@ const Dr = /* @__PURE__ */ rm(UP), GP = {
|
|
|
8777
8778
|
backgroundColor: "transparent",
|
|
8778
8779
|
borderColor: "transparent",
|
|
8779
8780
|
borderWidth: 0,
|
|
8780
|
-
itemStyle:
|
|
8781
|
+
itemStyle: XP
|
|
8781
8782
|
};
|
|
8782
8783
|
if (!t)
|
|
8783
8784
|
return {
|
|
@@ -8830,7 +8831,7 @@ const Dr = /* @__PURE__ */ rm(UP), GP = {
|
|
|
8830
8831
|
color: "#5b6372",
|
|
8831
8832
|
textOutline: "none",
|
|
8832
8833
|
pointerEvents: "none"
|
|
8833
|
-
},
|
|
8834
|
+
}, YP = {
|
|
8834
8835
|
color: "#56535b",
|
|
8835
8836
|
fontFamily: "Open Sans",
|
|
8836
8837
|
fontSize: "13px",
|
|
@@ -8889,7 +8890,7 @@ const Dr = /* @__PURE__ */ rm(UP), GP = {
|
|
|
8889
8890
|
minorGridLineColor: Oi,
|
|
8890
8891
|
minorGridLineDashStyle: "Dot",
|
|
8891
8892
|
stackLabels: {
|
|
8892
|
-
style:
|
|
8893
|
+
style: YP,
|
|
8893
8894
|
crop: !0,
|
|
8894
8895
|
allowOverlap: !1,
|
|
8895
8896
|
enabled: !1,
|
|
@@ -8897,20 +8898,20 @@ const Dr = /* @__PURE__ */ rm(UP), GP = {
|
|
|
8897
8898
|
labelrank: 99999
|
|
8898
8899
|
},
|
|
8899
8900
|
showLastLabel: !0
|
|
8900
|
-
},
|
|
8901
|
+
}, VP = (t, i, f) => {
|
|
8901
8902
|
switch (t) {
|
|
8902
8903
|
case "line":
|
|
8903
8904
|
return Io;
|
|
8904
8905
|
case "area":
|
|
8905
8906
|
return Dr(Io, Lg(f));
|
|
8906
8907
|
case "bar":
|
|
8907
|
-
return Dr(Io,
|
|
8908
|
+
return Dr(Io, ZP(f));
|
|
8908
8909
|
case "column":
|
|
8909
|
-
return Dr(Io,
|
|
8910
|
+
return Dr(Io, $P(f));
|
|
8910
8911
|
case "polar":
|
|
8911
8912
|
return Dr(
|
|
8912
8913
|
Io,
|
|
8913
|
-
|
|
8914
|
+
KP(i)
|
|
8914
8915
|
);
|
|
8915
8916
|
case "arearange":
|
|
8916
8917
|
return Dr(Io, Lg(f));
|
|
@@ -8976,7 +8977,7 @@ const Dr = /* @__PURE__ */ rm(UP), GP = {
|
|
|
8976
8977
|
stacking: t
|
|
8977
8978
|
})
|
|
8978
8979
|
}
|
|
8979
|
-
}),
|
|
8980
|
+
}), $P = (t) => ({
|
|
8980
8981
|
plotOptions: {
|
|
8981
8982
|
column: Ut({
|
|
8982
8983
|
groupPadding: 0.1,
|
|
@@ -8984,7 +8985,7 @@ const Dr = /* @__PURE__ */ rm(UP), GP = {
|
|
|
8984
8985
|
}, t && { borderWidth: 0 }),
|
|
8985
8986
|
series: Ut({}, t && { stacking: t })
|
|
8986
8987
|
}
|
|
8987
|
-
}),
|
|
8988
|
+
}), ZP = (t) => ({
|
|
8988
8989
|
plotOptions: {
|
|
8989
8990
|
bar: Ut({
|
|
8990
8991
|
groupPadding: 0.1,
|
|
@@ -8993,7 +8994,7 @@ const Dr = /* @__PURE__ */ rm(UP), GP = {
|
|
|
8993
8994
|
series: Ut({}, t && { stacking: t })
|
|
8994
8995
|
}
|
|
8995
8996
|
});
|
|
8996
|
-
function
|
|
8997
|
+
function KP(t) {
|
|
8997
8998
|
return {
|
|
8998
8999
|
plotOptions: {
|
|
8999
9000
|
series: oe(Ut({}, t !== "line" && { stacking: "normal" }), {
|
|
@@ -9002,7 +9003,7 @@ function ZP(t) {
|
|
|
9002
9003
|
}
|
|
9003
9004
|
};
|
|
9004
9005
|
}
|
|
9005
|
-
const bv = (t) => t.compareValues ? t.compareValues[0] : NaN,
|
|
9006
|
+
const bv = (t) => t.compareValues ? t.compareValues[0] : NaN, qP = (t) => {
|
|
9006
9007
|
switch (t) {
|
|
9007
9008
|
case de.Years:
|
|
9008
9009
|
return 31536e6;
|
|
@@ -9061,14 +9062,14 @@ const bv = (t) => t.compareValues ? t.compareValues[0] : NaN, KP = (t) => {
|
|
|
9061
9062
|
}
|
|
9062
9063
|
return console.warn("Unsupported level"), "M/d/yy HH";
|
|
9063
9064
|
}
|
|
9064
|
-
},
|
|
9065
|
+
}, JP = (t, i) => {
|
|
9065
9066
|
const f = pv(t), R = (t == null ? void 0 : t.dateFormat) || xv(f);
|
|
9066
9067
|
return !i || !R ? (W) => `${W}` : function(W) {
|
|
9067
9068
|
return i(new Date(W), R);
|
|
9068
9069
|
};
|
|
9069
|
-
},
|
|
9070
|
+
}, QP = (t, i, f, R) => {
|
|
9070
9071
|
const W = pv(i), tt = (_, lt) => _.lastValue ? { minInterval: Math.min(lt - _.lastValue, _.minInterval), lastValue: lt } : oe(Ut({}, _), { lastValue: lt }), it = f[0], at = f[f.length - 1];
|
|
9071
|
-
let ht = W ?
|
|
9072
|
+
let ht = W ? qP(W) : f.reduce(tt, {
|
|
9072
9073
|
minInterval: (at - it) / (f.length - 1),
|
|
9073
9074
|
lastValue: void 0
|
|
9074
9075
|
}).minInterval;
|
|
@@ -9125,7 +9126,7 @@ const bv = (t) => t.compareValues ? t.compareValues[0] : NaN, KP = (t) => {
|
|
|
9125
9126
|
isDate: !0
|
|
9126
9127
|
})
|
|
9127
9128
|
];
|
|
9128
|
-
},
|
|
9129
|
+
}, tE = (t, i, f, R, W, tt, it) => {
|
|
9129
9130
|
const at = (R || []).map((lt) => ({
|
|
9130
9131
|
isPlotBand: !0,
|
|
9131
9132
|
from: lt.from,
|
|
@@ -9201,7 +9202,7 @@ const bv = (t) => t.compareValues ? t.compareValues[0] : NaN, KP = (t) => {
|
|
|
9201
9202
|
lineWidth: 0
|
|
9202
9203
|
})
|
|
9203
9204
|
)), _;
|
|
9204
|
-
},
|
|
9205
|
+
}, eE = (t, i, f, R, W, tt, it) => {
|
|
9205
9206
|
var lt, G, F, $;
|
|
9206
9207
|
const at = tt, ht = li(
|
|
9207
9208
|
(lt = at.y.find(({ showOnRightAxis: Y }) => !Y)) == null ? void 0 : lt.numberFormatConfig
|
|
@@ -9269,7 +9270,7 @@ const bv = (t) => t.compareValues ? t.compareValues[0] : NaN, KP = (t) => {
|
|
|
9269
9270
|
);
|
|
9270
9271
|
}
|
|
9271
9272
|
return [_, mt];
|
|
9272
|
-
},
|
|
9273
|
+
}, iE = (t, i) => {
|
|
9273
9274
|
const f = () => oe(Ut({}, t), {
|
|
9274
9275
|
y: []
|
|
9275
9276
|
}), R = f(), W = f(), tt = 1, it = 0;
|
|
@@ -9284,19 +9285,19 @@ const bv = (t) => t.compareValues ? t.compareValues[0] : NaN, KP = (t) => {
|
|
|
9284
9285
|
type: "range",
|
|
9285
9286
|
seriesOther: ht
|
|
9286
9287
|
});
|
|
9287
|
-
}, tu = "$forecast", Pp = "$trend", Qs = (t) => t.startsWith(tu), Sv = (t) => t.startsWith(Pp), Oh = (t) => `${t} $range`,
|
|
9288
|
+
}, tu = "$forecast", Pp = "$trend", Qs = (t) => t.startsWith(tu), Sv = (t) => t.startsWith(Pp), Oh = (t) => `${t} $range`, rE = (t, i, f) => {
|
|
9288
9289
|
const R = f[Oh(t.name)], W = i[Oh(t.name)], tt = t.name.substring(tu.length + 1), it = i[tt], at = t.data.findIndex((ht) => !isNaN((ht == null ? void 0 : ht.y) || NaN));
|
|
9289
9290
|
return t.type = "line", t.showInLegend = !1, t.data[at - 1].y = it.data[at - 1].y, t.dashStyle = "ShortDash", t.color = it.color, t.data.forEach((ht, ut) => {
|
|
9290
9291
|
ht.high = R.data[ut].y, ht.low = W.data[ut].y;
|
|
9291
9292
|
}), at;
|
|
9292
|
-
},
|
|
9293
|
+
}, nE = (t, i) => {
|
|
9293
9294
|
t.showInLegend = !1, t.enableMouseTracking = !1;
|
|
9294
9295
|
const f = t.name.substring(tu.length + 1, t.name.length - 7), R = i[f];
|
|
9295
9296
|
t.color = R.color, t.fillOpacity = 0.15, t.lineWidth = 0;
|
|
9296
|
-
},
|
|
9297
|
+
}, oE = (t, i) => {
|
|
9297
9298
|
const f = t.name.substring(10, t.name.length - 7), R = i[f], W = t.data.findIndex((tt) => !isNaN((tt == null ? void 0 : tt.low) || NaN));
|
|
9298
9299
|
t.data[W - 1].low = R.data[W - 1].y, t.data[W - 1].high = R.data[W - 1].y;
|
|
9299
|
-
},
|
|
9300
|
+
}, sE = (t, i, f) => {
|
|
9300
9301
|
t.forEach(
|
|
9301
9302
|
(R) => R.plotBands = [
|
|
9302
9303
|
{
|
|
@@ -9307,7 +9308,7 @@ const bv = (t) => t.compareValues ? t.compareValues[0] : NaN, KP = (t) => {
|
|
|
9307
9308
|
}
|
|
9308
9309
|
]
|
|
9309
9310
|
);
|
|
9310
|
-
},
|
|
9311
|
+
}, aE = (t, i) => {
|
|
9311
9312
|
t.type = "line";
|
|
9312
9313
|
const f = t.name.substring(Pp.length + 1), R = i[f];
|
|
9313
9314
|
t.showInLegend = !1, t.dashStyle = "ShortDot", t.color = R.color;
|
|
@@ -9321,12 +9322,12 @@ const bv = (t) => t.compareValues ? t.compareValues[0] : NaN, KP = (t) => {
|
|
|
9321
9322
|
t.data.forEach((G) => {
|
|
9322
9323
|
G.trend = lt;
|
|
9323
9324
|
});
|
|
9324
|
-
},
|
|
9325
|
+
}, lE = (t) => {
|
|
9325
9326
|
const i = {};
|
|
9326
9327
|
t.forEach((f) => {
|
|
9327
9328
|
i[f.name] = f;
|
|
9328
9329
|
}), t.forEach((f) => {
|
|
9329
|
-
Sv(f.name) &&
|
|
9330
|
+
Sv(f.name) && aE(f, i);
|
|
9330
9331
|
});
|
|
9331
9332
|
}, wv = (t) => {
|
|
9332
9333
|
const { breakBy: i } = t;
|
|
@@ -9337,24 +9338,24 @@ const bv = (t) => t.compareValues ? t.compareValues[0] : NaN, KP = (t) => {
|
|
|
9337
9338
|
return !1;
|
|
9338
9339
|
const [R] = f;
|
|
9339
9340
|
let W = !1;
|
|
9340
|
-
return fv(R) ? W = R.column.type === "datelevel" :
|
|
9341
|
-
},
|
|
9341
|
+
return fv(R) ? W = R.column.type === "datelevel" : yP(R) && (W = R.type === "datelevel"), W;
|
|
9342
|
+
}, eD = (t) => wv(t) ? t.value.filter(
|
|
9342
9343
|
(i) => (i == null ? void 0 : i.trend) !== void 0
|
|
9343
9344
|
).map(
|
|
9344
|
-
(i) =>
|
|
9345
|
+
(i) => qT(
|
|
9345
9346
|
i.column,
|
|
9346
9347
|
`${Pp}_${i.column.name}`,
|
|
9347
9348
|
i.trend
|
|
9348
9349
|
)
|
|
9349
|
-
) : [],
|
|
9350
|
+
) : [], iD = (t) => wv(t) ? t.value.filter(
|
|
9350
9351
|
(i) => (i == null ? void 0 : i.forecast) !== void 0
|
|
9351
9352
|
).map(
|
|
9352
|
-
(i) =>
|
|
9353
|
+
(i) => JT(
|
|
9353
9354
|
i.column,
|
|
9354
9355
|
`${tu}_${i.column.name}`,
|
|
9355
9356
|
i.forecast
|
|
9356
9357
|
)
|
|
9357
|
-
) : [],
|
|
9358
|
+
) : [], cE = (t) => t.rangeValues ? !1 : t.y.some((f) => Qs(Li(f))), Cv = (t) => {
|
|
9358
9359
|
const i = t.y.filter((tt) => Qs(Li(tt))).map((tt) => {
|
|
9359
9360
|
const it = oe(Ut({}, tt), {
|
|
9360
9361
|
column: _d(tt.column, {
|
|
@@ -9374,17 +9375,17 @@ const bv = (t) => t.compareValues ? t.compareValues[0] : NaN, KP = (t) => {
|
|
|
9374
9375
|
seriesValues: W,
|
|
9375
9376
|
y: R
|
|
9376
9377
|
});
|
|
9377
|
-
},
|
|
9378
|
+
}, rD = (t, i) => {
|
|
9378
9379
|
const f = Cv(t);
|
|
9379
|
-
return oe(Ut({},
|
|
9380
|
+
return oe(Ut({}, iE(f, i)), {
|
|
9380
9381
|
type: "cartesian"
|
|
9381
9382
|
});
|
|
9382
9383
|
};
|
|
9383
|
-
var
|
|
9384
|
+
var hE = "[object Number]";
|
|
9384
9385
|
function Og(t) {
|
|
9385
|
-
return typeof t == "number" || wr(t) && oo(t) ==
|
|
9386
|
+
return typeof t == "number" || wr(t) && oo(t) == hE;
|
|
9386
9387
|
}
|
|
9387
|
-
function
|
|
9388
|
+
function uE(t, i, f, R) {
|
|
9388
9389
|
if (!Zi(t))
|
|
9389
9390
|
return t;
|
|
9390
9391
|
i = Xh(i, t);
|
|
@@ -9400,19 +9401,19 @@ function hE(t, i, f, R) {
|
|
|
9400
9401
|
}
|
|
9401
9402
|
return t;
|
|
9402
9403
|
}
|
|
9403
|
-
var
|
|
9404
|
-
function
|
|
9404
|
+
var dE = /* @__PURE__ */ ((t) => (t.FILTER = "filter", t.SELECT = "select", t))(dE || {});
|
|
9405
|
+
function nD(t) {
|
|
9405
9406
|
return !!t && t.min !== null && t.max !== null;
|
|
9406
9407
|
}
|
|
9407
|
-
var
|
|
9408
|
-
function
|
|
9408
|
+
var pE = /* @__PURE__ */ ((t) => (t.PRE = "pre", t.POST = "post", t))(pE || {});
|
|
9409
|
+
function oD(t) {
|
|
9409
9410
|
return "formula" in t;
|
|
9410
9411
|
}
|
|
9411
|
-
function
|
|
9412
|
+
function sD(t) {
|
|
9412
9413
|
return "formulaRef" in t;
|
|
9413
9414
|
}
|
|
9414
9415
|
var uh = /* @__PURE__ */ ((t) => (t.WIDGET_FIRST = "widgetFirst", t.CODE_FIRST = "codeFirst", t.CODE_ONLY = "codeOnly", t))(uh || {});
|
|
9415
|
-
function
|
|
9416
|
+
function fE(t) {
|
|
9416
9417
|
return wp(function(i) {
|
|
9417
9418
|
return i = ap(i, zh(Mm)), Xm(function(f) {
|
|
9418
9419
|
var R = this;
|
|
@@ -9422,16 +9423,16 @@ function pE(t) {
|
|
|
9422
9423
|
});
|
|
9423
9424
|
});
|
|
9424
9425
|
}
|
|
9425
|
-
var
|
|
9426
|
+
var gE = fE(ap);
|
|
9426
9427
|
function eu(t, i = !1) {
|
|
9427
9428
|
const f = t.filter((R) => Bh(R));
|
|
9428
|
-
return i ?
|
|
9429
|
+
return i ? Hk(f) : gE(f);
|
|
9429
9430
|
}
|
|
9430
9431
|
function cd(t, i) {
|
|
9431
9432
|
if (!Md(t) && !Md(i))
|
|
9432
9433
|
return Ig(t, i);
|
|
9433
|
-
const { filters: f, relations: R } = Tv(t), W =
|
|
9434
|
-
return
|
|
9434
|
+
const { filters: f, relations: R } = Tv(t), W = mE(i), tt = Ig(f, W), it = vE(f, R, tt);
|
|
9435
|
+
return yE(tt, it);
|
|
9435
9436
|
}
|
|
9436
9437
|
function Tv(t) {
|
|
9437
9438
|
if (!t)
|
|
@@ -9454,10 +9455,10 @@ function Tv(t) {
|
|
|
9454
9455
|
relations: R
|
|
9455
9456
|
};
|
|
9456
9457
|
}
|
|
9457
|
-
function
|
|
9458
|
+
function mE(t) {
|
|
9458
9459
|
return t ? Tv(t).filters : [];
|
|
9459
9460
|
}
|
|
9460
|
-
function
|
|
9461
|
+
function yE(t, i) {
|
|
9461
9462
|
if (!i || kv(i))
|
|
9462
9463
|
return t;
|
|
9463
9464
|
const f = R(i);
|
|
@@ -9477,12 +9478,12 @@ function mE(t, i) {
|
|
|
9477
9478
|
function kv(t) {
|
|
9478
9479
|
return !!t && "instanceid" in t;
|
|
9479
9480
|
}
|
|
9480
|
-
function
|
|
9481
|
-
const R =
|
|
9481
|
+
function vE(t, i, f) {
|
|
9482
|
+
const R = bE(t, f);
|
|
9482
9483
|
return R.length === 0 ? i : R.reduce((W, tt) => {
|
|
9483
9484
|
switch (tt.type) {
|
|
9484
9485
|
case "add":
|
|
9485
|
-
return
|
|
9486
|
+
return xE(tt.payload, W);
|
|
9486
9487
|
case "remove":
|
|
9487
9488
|
return zd(tt.payload, W);
|
|
9488
9489
|
}
|
|
@@ -9491,7 +9492,7 @@ function yE(t, i, f) {
|
|
|
9491
9492
|
function Dg(t, i) {
|
|
9492
9493
|
return t.config.guid === i.config.guid;
|
|
9493
9494
|
}
|
|
9494
|
-
function
|
|
9495
|
+
function aD(t, i, f) {
|
|
9495
9496
|
if (!t)
|
|
9496
9497
|
return null;
|
|
9497
9498
|
return W(t);
|
|
@@ -9507,7 +9508,7 @@ function sD(t, i, f) {
|
|
|
9507
9508
|
throw new nu();
|
|
9508
9509
|
}
|
|
9509
9510
|
}
|
|
9510
|
-
function
|
|
9511
|
+
function bE(t, i) {
|
|
9511
9512
|
const f = [], R = [...t], W = [...i];
|
|
9512
9513
|
return R.forEach((tt) => {
|
|
9513
9514
|
W.some(
|
|
@@ -9519,7 +9520,7 @@ function vE(t, i) {
|
|
|
9519
9520
|
) || f.push({ type: "add", payload: tt });
|
|
9520
9521
|
}), f;
|
|
9521
9522
|
}
|
|
9522
|
-
function
|
|
9523
|
+
function xE(t, i) {
|
|
9523
9524
|
return i ? {
|
|
9524
9525
|
left: i,
|
|
9525
9526
|
right: { instanceid: t.config.guid },
|
|
@@ -9538,21 +9539,21 @@ function zd(t, i) {
|
|
|
9538
9539
|
operator: i.operator
|
|
9539
9540
|
};
|
|
9540
9541
|
}
|
|
9541
|
-
function
|
|
9542
|
+
function lD(t, i) {
|
|
9542
9543
|
if (!t)
|
|
9543
9544
|
return null;
|
|
9544
9545
|
function f(R) {
|
|
9545
|
-
if (xE(R))
|
|
9546
|
-
return { instanceid: R.instanceId };
|
|
9547
9546
|
if (SE(R))
|
|
9548
|
-
return
|
|
9547
|
+
return { instanceid: R.instanceId };
|
|
9549
9548
|
if (wE(R))
|
|
9549
|
+
return f(R.value);
|
|
9550
|
+
if (CE(R))
|
|
9550
9551
|
return {
|
|
9551
9552
|
operator: R.operator,
|
|
9552
9553
|
left: f(R.left),
|
|
9553
9554
|
right: f(R.right)
|
|
9554
9555
|
};
|
|
9555
|
-
if (
|
|
9556
|
+
if (TE(R)) {
|
|
9556
9557
|
const W = i.find((tt) => {
|
|
9557
9558
|
if (!$h(tt))
|
|
9558
9559
|
return !1;
|
|
@@ -9567,16 +9568,16 @@ function aD(t, i) {
|
|
|
9567
9568
|
}
|
|
9568
9569
|
return f(t);
|
|
9569
9570
|
}
|
|
9570
|
-
function
|
|
9571
|
+
function SE(t) {
|
|
9571
9572
|
return "instanceId" in t;
|
|
9572
9573
|
}
|
|
9573
|
-
function
|
|
9574
|
+
function wE(t) {
|
|
9574
9575
|
return "value" in t;
|
|
9575
9576
|
}
|
|
9576
|
-
function
|
|
9577
|
+
function CE(t) {
|
|
9577
9578
|
return "operator" in t;
|
|
9578
9579
|
}
|
|
9579
|
-
function
|
|
9580
|
+
function TE(t) {
|
|
9580
9581
|
return "levels" in t && Ci(t.levels);
|
|
9581
9582
|
}
|
|
9582
9583
|
function iu(t) {
|
|
@@ -9588,7 +9589,7 @@ function ru(t) {
|
|
|
9588
9589
|
function Mv(t) {
|
|
9589
9590
|
return "config" in t && "guid" in t.config;
|
|
9590
9591
|
}
|
|
9591
|
-
function
|
|
9592
|
+
function cD(t, i) {
|
|
9592
9593
|
if (!t)
|
|
9593
9594
|
return;
|
|
9594
9595
|
function f(R) {
|
|
@@ -9617,10 +9618,10 @@ function lD(t, i) {
|
|
|
9617
9618
|
}
|
|
9618
9619
|
return f(t);
|
|
9619
9620
|
}
|
|
9620
|
-
function
|
|
9621
|
+
function kE(t, i) {
|
|
9621
9622
|
return t.find((f) => f.config.guid === i);
|
|
9622
9623
|
}
|
|
9623
|
-
function
|
|
9624
|
+
function hD(t, i) {
|
|
9624
9625
|
if (!t)
|
|
9625
9626
|
return [];
|
|
9626
9627
|
return f(t);
|
|
@@ -9630,7 +9631,7 @@ function cD(t, i) {
|
|
|
9630
9631
|
return [
|
|
9631
9632
|
{
|
|
9632
9633
|
nodeType: "attribute",
|
|
9633
|
-
attribute: ((tt = (W =
|
|
9634
|
+
attribute: ((tt = (W = kE(i, R.instanceid)) == null ? void 0 : W.attribute) == null ? void 0 : tt.name) || R.instanceid
|
|
9634
9635
|
}
|
|
9635
9636
|
];
|
|
9636
9637
|
if (ru(R))
|
|
@@ -9649,16 +9650,16 @@ class nu extends Error {
|
|
|
9649
9650
|
super("Broken filter relations. Unknown node type.");
|
|
9650
9651
|
}
|
|
9651
9652
|
}
|
|
9652
|
-
function
|
|
9653
|
+
function uD(t) {
|
|
9653
9654
|
return t.nodeType === "openBracket";
|
|
9654
9655
|
}
|
|
9655
|
-
function
|
|
9656
|
+
function dD(t) {
|
|
9656
9657
|
return t.nodeType === "closeBracket";
|
|
9657
9658
|
}
|
|
9658
|
-
function
|
|
9659
|
+
function pD(t) {
|
|
9659
9660
|
return t.nodeType === "attribute";
|
|
9660
9661
|
}
|
|
9661
|
-
function
|
|
9662
|
+
function fD(t) {
|
|
9662
9663
|
return t.nodeType === "operator";
|
|
9663
9664
|
}
|
|
9664
9665
|
const Av = {
|
|
@@ -9679,16 +9680,16 @@ const Av = {
|
|
|
9679
9680
|
tablewidget: "table",
|
|
9680
9681
|
tablewidgetagg: "table"
|
|
9681
9682
|
};
|
|
9682
|
-
function
|
|
9683
|
+
function gD(t) {
|
|
9683
9684
|
return Av[t];
|
|
9684
9685
|
}
|
|
9685
|
-
function
|
|
9686
|
+
function mD(t) {
|
|
9686
9687
|
return Object.entries(Av).reduce(
|
|
9687
9688
|
(f, [R, W]) => (f[W] = R, f),
|
|
9688
9689
|
{}
|
|
9689
9690
|
)[t];
|
|
9690
9691
|
}
|
|
9691
|
-
function
|
|
9692
|
+
function yD(t) {
|
|
9692
9693
|
return {
|
|
9693
9694
|
"area/basic": "area/basic",
|
|
9694
9695
|
"area/stacked": "area/stacked",
|
|
@@ -9719,7 +9720,7 @@ function mD(t) {
|
|
|
9719
9720
|
"map/scatter": "scattermap"
|
|
9720
9721
|
}[t];
|
|
9721
9722
|
}
|
|
9722
|
-
function
|
|
9723
|
+
function vD(t) {
|
|
9723
9724
|
return [
|
|
9724
9725
|
"chart/line",
|
|
9725
9726
|
"chart/area",
|
|
@@ -9742,49 +9743,49 @@ function yD(t) {
|
|
|
9742
9743
|
"richtexteditor"
|
|
9743
9744
|
].includes(t);
|
|
9744
9745
|
}
|
|
9745
|
-
function
|
|
9746
|
+
function bD(t) {
|
|
9746
9747
|
return t === "tablewidget" || t === "tablewidgetagg";
|
|
9747
9748
|
}
|
|
9748
|
-
function
|
|
9749
|
+
function ME(t) {
|
|
9749
9750
|
return t === "pivot" || t === "pivot2";
|
|
9750
9751
|
}
|
|
9751
|
-
function
|
|
9752
|
+
function AE(t) {
|
|
9752
9753
|
return t === "richtexteditor";
|
|
9753
9754
|
}
|
|
9754
|
-
function
|
|
9755
|
+
function xD(t) {
|
|
9755
9756
|
return t === "plugin";
|
|
9756
9757
|
}
|
|
9757
|
-
function
|
|
9758
|
-
return !
|
|
9758
|
+
function SD(t) {
|
|
9759
|
+
return !ME(t) && !AE(t);
|
|
9759
9760
|
}
|
|
9760
|
-
function
|
|
9761
|
+
function PE(t) {
|
|
9761
9762
|
return t.widgetType === "text";
|
|
9762
9763
|
}
|
|
9763
|
-
function
|
|
9764
|
+
function EE(t) {
|
|
9764
9765
|
return t.widgetType === "pivot";
|
|
9765
9766
|
}
|
|
9766
|
-
function
|
|
9767
|
+
function LE(t) {
|
|
9767
9768
|
return t.widgetType === "plugin";
|
|
9768
9769
|
}
|
|
9769
9770
|
function Ep(t) {
|
|
9770
9771
|
return t.widgetType === "chart";
|
|
9771
9772
|
}
|
|
9772
|
-
function
|
|
9773
|
-
return
|
|
9773
|
+
function wD(t) {
|
|
9774
|
+
return EE(t) ? "pivot" : LE(t) ? "plugin" : PE(t) ? "text" : t.chartType;
|
|
9774
9775
|
}
|
|
9775
|
-
function
|
|
9776
|
+
function CD(t, i) {
|
|
9776
9777
|
Ep(t) && (t.onDataPointClick = eu([t.onDataPointClick, i]));
|
|
9777
9778
|
}
|
|
9778
|
-
function
|
|
9779
|
+
function TD(t, i) {
|
|
9779
9780
|
Ep(t) && (t.onDataPointContextMenu = eu([
|
|
9780
9781
|
t.onDataPointContextMenu,
|
|
9781
9782
|
i
|
|
9782
9783
|
]));
|
|
9783
9784
|
}
|
|
9784
|
-
function
|
|
9785
|
+
function kD(t, i) {
|
|
9785
9786
|
Ep(t) && (t.onDataPointsSelected = eu([t.onDataPointsSelected, i]));
|
|
9786
9787
|
}
|
|
9787
|
-
function
|
|
9788
|
+
function MD(t, i) {
|
|
9788
9789
|
var R;
|
|
9789
9790
|
const f = t.styleOptions;
|
|
9790
9791
|
t.styleOptions = oe(Ut({}, f), {
|
|
@@ -9793,13 +9794,13 @@ function kD(t, i) {
|
|
|
9793
9794
|
})
|
|
9794
9795
|
});
|
|
9795
9796
|
}
|
|
9796
|
-
function
|
|
9797
|
+
function AD(t, i) {
|
|
9797
9798
|
var W;
|
|
9798
9799
|
const f = t.find((tt) => tt.name === i);
|
|
9799
9800
|
return ((W = f == null ? void 0 : f.items) != null ? W : []).filter((tt) => !tt.disabled);
|
|
9800
9801
|
}
|
|
9801
|
-
function
|
|
9802
|
-
return t.parent ?
|
|
9802
|
+
function OE(t) {
|
|
9803
|
+
return t.parent ? OE(t.parent) : t;
|
|
9803
9804
|
}
|
|
9804
9805
|
function Fd(t) {
|
|
9805
9806
|
if ($h(t))
|
|
@@ -9816,7 +9817,7 @@ function Ig(t = [], i = []) {
|
|
|
9816
9817
|
W !== -1 ? f[W] = R : f.push(R);
|
|
9817
9818
|
}), f;
|
|
9818
9819
|
}
|
|
9819
|
-
function
|
|
9820
|
+
function PD(t = [], i = [], f) {
|
|
9820
9821
|
switch (f) {
|
|
9821
9822
|
case uh.WIDGET_FIRST:
|
|
9822
9823
|
return cd(i, t);
|
|
@@ -9828,7 +9829,7 @@ function AD(t = [], i = [], f) {
|
|
|
9828
9829
|
return cd(t, i);
|
|
9829
9830
|
}
|
|
9830
9831
|
}
|
|
9831
|
-
function
|
|
9832
|
+
function ED(t) {
|
|
9832
9833
|
if (!t)
|
|
9833
9834
|
return t;
|
|
9834
9835
|
const i = gp(t);
|
|
@@ -9845,12 +9846,12 @@ function PD(t) {
|
|
|
9845
9846
|
}
|
|
9846
9847
|
return f(i);
|
|
9847
9848
|
}
|
|
9848
|
-
const
|
|
9849
|
+
const DE = (t) => t ? vn(t) || t.column.type && Fi(t.column.type) : !1, yi = (t, i, f) => {
|
|
9849
9850
|
if (!t || i === void 0 || isNaN(i))
|
|
9850
9851
|
return f;
|
|
9851
9852
|
const R = li(t.numberFormatConfig);
|
|
9852
9853
|
return ra(R, i);
|
|
9853
|
-
}, Rl = (t, i, f) =>
|
|
9854
|
+
}, Rl = (t, i, f) => DE(t) ? yi(t, parseFloat(`${i}`), f) : f, IE = [
|
|
9854
9855
|
"auto",
|
|
9855
9856
|
"column",
|
|
9856
9857
|
"area",
|
|
@@ -9860,14 +9861,14 @@ const OE = (t) => t ? vn(t) || t.column.type && Fi(t.column.type) : !1, yi = (t,
|
|
|
9860
9861
|
"arearange"
|
|
9861
9862
|
];
|
|
9862
9863
|
function Pv(t) {
|
|
9863
|
-
return t != null && t.chartType ?
|
|
9864
|
+
return t != null && t.chartType ? IE.includes(t.chartType) : !0;
|
|
9864
9865
|
}
|
|
9865
9866
|
const Ei = (t, i) => t !== "" ? `<span style="color:${i != null ? i : "currentColor"}; font-size: 15px; line-height: 18px">${t}</span>` : "", gl = (t, i) => `${i || ""}${i && t ? "<br />" : ""}${t || ""}`, oa = (t) => `<div style="minWidth: 100px; color: #5B6372; fontSize: 13px; lineHeight: 18px; margin: 4px 6px">
|
|
9866
9867
|
${t}
|
|
9867
|
-
</div>`, Kn = () => '<hr class="csdk-border-t" style="margin: 7px 0px" />',
|
|
9868
|
+
</div>`, Kn = () => '<hr class="csdk-border-t" style="margin: 7px 0px" />', RE = (t) => {
|
|
9868
9869
|
const i = t.map((f, R) => f && R > 0 ? Kn() + f : f).join("");
|
|
9869
9870
|
return oa(i);
|
|
9870
|
-
},
|
|
9871
|
+
}, jE = (t, i) => {
|
|
9871
9872
|
const { maskedX: f, maskedY: R, maskedBreakByPoint: W, maskedSize: tt, maskedBreakByColor: it } = t.point.custom, at = Rl(i.x, t.point.x, f), ht = yi(i.y, t.point.y, R), ut = yi(i.size, t.point.z, tt || ""), mt = Ei(at, t.point.color), ft = Ei(ht, t.point.color), _ = Ei(W || "", t.point.color), lt = Ei(it || "", t.point.color), G = Ei(ut, t.point.color);
|
|
9872
9873
|
return {
|
|
9873
9874
|
x: mt,
|
|
@@ -9876,7 +9877,7 @@ const Ei = (t, i) => t !== "" ? `<span style="color:${i != null ? i : "currentCo
|
|
|
9876
9877
|
breakByColor: lt,
|
|
9877
9878
|
size: G
|
|
9878
9879
|
};
|
|
9879
|
-
},
|
|
9880
|
+
}, BE = (t, i) => {
|
|
9880
9881
|
const f = gl(t.x, i.x && Li(i.x)), R = gl(t.y, i.y && Li(i.y)), W = gl(
|
|
9881
9882
|
t.breakByPoint,
|
|
9882
9883
|
i.breakByPoint && Li(i.breakByPoint)
|
|
@@ -9891,14 +9892,14 @@ const Ei = (t, i) => t !== "" ? `<span style="color:${i != null ? i : "currentCo
|
|
|
9891
9892
|
breakByColor: tt,
|
|
9892
9893
|
size: it
|
|
9893
9894
|
};
|
|
9894
|
-
},
|
|
9895
|
-
const f =
|
|
9896
|
-
return
|
|
9897
|
-
},
|
|
9895
|
+
}, _E = (t, i) => {
|
|
9896
|
+
const f = jE(t, i), { x: R, y: W, breakByPoint: tt, breakByColor: it, size: at } = BE(f, i);
|
|
9897
|
+
return RE([R, W, tt, it, at]);
|
|
9898
|
+
}, NE = (t) => ({
|
|
9898
9899
|
enabled: !0,
|
|
9899
9900
|
useHTML: !0,
|
|
9900
9901
|
formatter() {
|
|
9901
|
-
return
|
|
9902
|
+
return _E(this, t);
|
|
9902
9903
|
}
|
|
9903
9904
|
}), Wd = {
|
|
9904
9905
|
enabled: !0,
|
|
@@ -9907,13 +9908,13 @@ const Ei = (t, i) => t !== "" ? `<span style="color:${i != null ? i : "currentCo
|
|
|
9907
9908
|
relative: !0,
|
|
9908
9909
|
totals: !0
|
|
9909
9910
|
}
|
|
9910
|
-
},
|
|
9911
|
+
}, zE = (t) => function() {
|
|
9911
9912
|
const i = this.y === 0 && this.x === " ";
|
|
9912
9913
|
return this.y === void 0 || isNaN(this.y) || i ? "" : Hi(li(t), this.y);
|
|
9913
9914
|
}, Lp = (t) => {
|
|
9914
9915
|
const i = Math.abs(t) % 180;
|
|
9915
9916
|
return i < 20 ? "horizontal" : i < 60 ? "diagonal" : i < 120 ? "vertical" : i < 160 ? "diagonal" : "horizontal";
|
|
9916
|
-
},
|
|
9917
|
+
}, FE = (t, i, f) => {
|
|
9917
9918
|
var tt;
|
|
9918
9919
|
if (!i.enabled)
|
|
9919
9920
|
return { enabled: !1 };
|
|
@@ -9947,7 +9948,7 @@ const Ei = (t, i) => t !== "" ? `<span style="color:${i != null ? i : "currentCo
|
|
|
9947
9948
|
y: -10
|
|
9948
9949
|
});
|
|
9949
9950
|
}
|
|
9950
|
-
},
|
|
9951
|
+
}, WE = (t, i) => {
|
|
9951
9952
|
var W, tt;
|
|
9952
9953
|
if (!t)
|
|
9953
9954
|
return { enabled: !1 };
|
|
@@ -10007,11 +10008,11 @@ const ou = (t, i) => t === "line" && i.lineType === "smooth" ? "spline" : t ===
|
|
|
10007
10008
|
default:
|
|
10008
10009
|
return { showTotal: !1 };
|
|
10009
10010
|
}
|
|
10010
|
-
},
|
|
10011
|
+
}, HE = (t, i) => t.map((f, R) => i === R ? 0 : -1), UE = (t, i, f, R, W, tt, it, at) => {
|
|
10011
10012
|
const ht = Ov(t, f), ft = t, { title: ut } = ft, mt = yr(ft, ["title"]);
|
|
10012
10013
|
return oe(Ut({}, mt), {
|
|
10013
10014
|
name: ut != null ? ut : t.name,
|
|
10014
|
-
data:
|
|
10015
|
+
data: XE(
|
|
10015
10016
|
ht,
|
|
10016
10017
|
i,
|
|
10017
10018
|
R,
|
|
@@ -10022,9 +10023,9 @@ const ou = (t, i) => t === "line" && i.lineType === "smooth" ? "spline" : t ===
|
|
|
10022
10023
|
at
|
|
10023
10024
|
)
|
|
10024
10025
|
});
|
|
10025
|
-
},
|
|
10026
|
+
}, GE = (t, i) => {
|
|
10026
10027
|
!i.minClipped && (t != null && t.min) && (t == null ? void 0 : t.min) > 0 && (t.min = 0), !i.maxClipped && (t != null && t.max) && (t == null ? void 0 : t.max) < 0 && (t.max = 0);
|
|
10027
|
-
},
|
|
10028
|
+
}, XE = (t, i, f, R, W, tt, it, at) => {
|
|
10028
10029
|
const ht = i.map((lt, G) => {
|
|
10029
10030
|
if (lt < 0)
|
|
10030
10031
|
return { y: null };
|
|
@@ -10052,7 +10053,7 @@ const ou = (t, i) => t === "line" && i.lineType === "smooth" ? "spline" : t ===
|
|
|
10052
10053
|
custom: { xDisplayValue: tt(F) },
|
|
10053
10054
|
x: F,
|
|
10054
10055
|
y: W ? 0 : null
|
|
10055
|
-
}), W && (it != null && it.min) && (it == null ? void 0 : it.min) > 0 &&
|
|
10056
|
+
}), W && (it != null && it.min) && (it == null ? void 0 : it.min) > 0 && GE(it, at), G--, mt += f;
|
|
10056
10057
|
}
|
|
10057
10058
|
}
|
|
10058
10059
|
ut.push(lt), lt.x ? mt = lt.x + f + ft : mt += f;
|
|
@@ -10061,7 +10062,7 @@ const ou = (t, i) => t === "line" && i.lineType === "smooth" ? "spline" : t ===
|
|
|
10061
10062
|
const it = Ov(t, f, tt), ut = t, { title: at } = ut, ht = yr(ut, ["title"]);
|
|
10062
10063
|
return oe(Ut({}, ht), {
|
|
10063
10064
|
name: at != null ? at : t.name,
|
|
10064
|
-
data:
|
|
10065
|
+
data: YE(it, i, R, W)
|
|
10065
10066
|
});
|
|
10066
10067
|
}, Lv = (t, i, f, R) => {
|
|
10067
10068
|
const W = R === 0 || i[R - 1] < 0 || isNaN(t[i[R - 1]].value), tt = R + 1 === i.length || i[R + 1] < 0 || isNaN(t[i[R + 1]].value);
|
|
@@ -10071,7 +10072,7 @@ const ou = (t, i) => t === "line" && i.lineType === "smooth" ? "spline" : t ===
|
|
|
10071
10072
|
return Ut({
|
|
10072
10073
|
value: i && Number.isNaN(R) ? 0 : f ? Math.abs(R) : R
|
|
10073
10074
|
}, W);
|
|
10074
|
-
}),
|
|
10075
|
+
}), YE = (t, i, f, R) => {
|
|
10075
10076
|
const W = t.some((tt) => tt.blur !== void 0);
|
|
10076
10077
|
return i.map((tt, it) => {
|
|
10077
10078
|
if (tt < 0)
|
|
@@ -10098,7 +10099,7 @@ const ou = (t, i) => t === "line" && i.lineType === "smooth" ? "spline" : t ===
|
|
|
10098
10099
|
});
|
|
10099
10100
|
}
|
|
10100
10101
|
});
|
|
10101
|
-
},
|
|
10102
|
+
}, VE = (t, i, f = 0.1) => {
|
|
10102
10103
|
const W = Math.abs(i - t) * f / 2;
|
|
10103
10104
|
return {
|
|
10104
10105
|
min: t < 0 ? t - W : t,
|
|
@@ -10141,7 +10142,7 @@ const ou = (t, i) => t === "line" && i.lineType === "smooth" ? "spline" : t ===
|
|
|
10141
10142
|
}),
|
|
10142
10143
|
{ min: Number.MAX_VALUE, max: Number.MIN_VALUE }
|
|
10143
10144
|
);
|
|
10144
|
-
return lt = Bg(ht, lt), lt = _g(t, lt), f.valueLabel && (lt =
|
|
10145
|
+
return lt = Bg(ht, lt), lt = _g(t, lt), f.valueLabel && (lt = VE(
|
|
10145
10146
|
ht.min || lt.min,
|
|
10146
10147
|
ht.max || lt.max
|
|
10147
10148
|
)), lt;
|
|
@@ -10157,7 +10158,7 @@ const ou = (t, i) => t === "line" && i.lineType === "smooth" ? "spline" : t ===
|
|
|
10157
10158
|
{ min: Number.POSITIVE_INFINITY, max: Number.NEGATIVE_INFINITY }
|
|
10158
10159
|
);
|
|
10159
10160
|
return mt = Bg(ht, mt), mt = _g(t, mt), mt;
|
|
10160
|
-
},
|
|
10161
|
+
}, $E = (t, i) => {
|
|
10161
10162
|
var at;
|
|
10162
10163
|
if (t.type !== "cartesian")
|
|
10163
10164
|
return [[], [], [], []];
|
|
@@ -10206,7 +10207,7 @@ var so = {}, Ro = {};
|
|
|
10206
10207
|
* LICENSE file in the root directory of this source tree.
|
|
10207
10208
|
*/
|
|
10208
10209
|
var zg;
|
|
10209
|
-
function
|
|
10210
|
+
function ZE() {
|
|
10210
10211
|
if (zg)
|
|
10211
10212
|
return Ro;
|
|
10212
10213
|
zg = 1;
|
|
@@ -11537,7 +11538,7 @@ var Qc = {};
|
|
|
11537
11538
|
* LICENSE file in the root directory of this source tree.
|
|
11538
11539
|
*/
|
|
11539
11540
|
var Fg;
|
|
11540
|
-
function
|
|
11541
|
+
function KE() {
|
|
11541
11542
|
if (Fg)
|
|
11542
11543
|
return Qc;
|
|
11543
11544
|
Fg = 1;
|
|
@@ -12893,7 +12894,7 @@ var jo = {};
|
|
|
12893
12894
|
* LICENSE file in the root directory of this source tree.
|
|
12894
12895
|
*/
|
|
12895
12896
|
var Wg;
|
|
12896
|
-
function
|
|
12897
|
+
function qE() {
|
|
12897
12898
|
return Wg || (Wg = 1, process.env.NODE_ENV !== "production" && function() {
|
|
12898
12899
|
var t = Rh, i = "18.3.1", f = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
12899
12900
|
function R(nt) {
|
|
@@ -16465,7 +16466,7 @@ var th = {};
|
|
|
16465
16466
|
* LICENSE file in the root directory of this source tree.
|
|
16466
16467
|
*/
|
|
16467
16468
|
var Hg;
|
|
16468
|
-
function
|
|
16469
|
+
function JE() {
|
|
16469
16470
|
return Hg || (Hg = 1, process.env.NODE_ENV !== "production" && function() {
|
|
16470
16471
|
var t = Rh, i = "18.3.1", f = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
16471
16472
|
function R(j) {
|
|
@@ -20010,7 +20011,7 @@ Error generating stack: ` + dt.message + `
|
|
|
20010
20011
|
}()), th;
|
|
20011
20012
|
}
|
|
20012
20013
|
var Uo, Hd;
|
|
20013
|
-
process.env.NODE_ENV === "production" ? (Uo =
|
|
20014
|
+
process.env.NODE_ENV === "production" ? (Uo = ZE(), Hd = KE()) : (Uo = qE(), Hd = JE());
|
|
20014
20015
|
so.version = Uo.version;
|
|
20015
20016
|
so.renderToString = Uo.renderToString;
|
|
20016
20017
|
so.renderToStaticMarkup = Uo.renderToStaticMarkup;
|
|
@@ -20111,13 +20112,13 @@ function Iv(t) {
|
|
|
20111
20112
|
i || ""
|
|
20112
20113
|
] });
|
|
20113
20114
|
}
|
|
20114
|
-
const
|
|
20115
|
+
const QE = {
|
|
20115
20116
|
smooth: "Advanced Smoothing",
|
|
20116
20117
|
linear: "Linear Trend",
|
|
20117
20118
|
local: "Local Estimates",
|
|
20118
20119
|
logarithmic: "Logarithmic Trend"
|
|
20119
20120
|
};
|
|
20120
|
-
function
|
|
20121
|
+
function t2(t) {
|
|
20121
20122
|
const { t: i } = sm(), f = t.translate || i, { localValue: R, trendData: W, modelType: tt, title: it, x1Value: at, x2Value: ht } = t, ut = [
|
|
20122
20123
|
`${f("advanced.tooltip.trendData.min")} ${W.min}`,
|
|
20123
20124
|
`${f("advanced.tooltip.trendData.max")} ${W.max}`,
|
|
@@ -20140,7 +20141,7 @@ function QE(t) {
|
|
|
20140
20141
|
No,
|
|
20141
20142
|
{
|
|
20142
20143
|
name: f("advanced.tooltip.trendType"),
|
|
20143
|
-
value: [
|
|
20144
|
+
value: [QE[tt]]
|
|
20144
20145
|
}
|
|
20145
20146
|
),
|
|
20146
20147
|
/* @__PURE__ */ ri(
|
|
@@ -20163,8 +20164,8 @@ function QE(t) {
|
|
|
20163
20164
|
}
|
|
20164
20165
|
);
|
|
20165
20166
|
}
|
|
20166
|
-
const
|
|
20167
|
-
function
|
|
20167
|
+
const e2 = (t) => so.renderToString(/* @__PURE__ */ ri(t2, Ut({}, t)));
|
|
20168
|
+
function i2(t) {
|
|
20168
20169
|
const { t: i } = sm(), f = t.translate || i, { confidenceValue: R, lowerValue: W, forecastValue: tt, upperValue: it, title: at, x1Value: ht, x2Value: ut } = t;
|
|
20169
20170
|
return /* @__PURE__ */ zo(
|
|
20170
20171
|
"div",
|
|
@@ -20218,7 +20219,7 @@ function e2(t) {
|
|
|
20218
20219
|
}
|
|
20219
20220
|
);
|
|
20220
20221
|
}
|
|
20221
|
-
const
|
|
20222
|
+
const r2 = (t) => so.renderToString(/* @__PURE__ */ ri(i2, Ut({}, t))), Rv = function(t, i, f, R) {
|
|
20222
20223
|
var N, D, T, A, b, d, m, v, g, x, E, P;
|
|
20223
20224
|
let W;
|
|
20224
20225
|
t.percentage && (W = i ? t.percentage.toFixed(1) : `${Math.round(t.percentage)}`);
|
|
@@ -20233,7 +20234,7 @@ const i2 = (t) => so.renderToString(/* @__PURE__ */ ri(e2, Ut({}, t))), Rv = fun
|
|
|
20233
20234
|
const S = /modelType=([^"]+)/, u = (E = it == null ? void 0 : it.column) == null ? void 0 : E.expression.match(
|
|
20234
20235
|
S
|
|
20235
20236
|
), y = u ? u[1] : null, { min: s, max: a, median: e, average: n } = t.point.trend, o = yi(it, s, ""), r = yi(it, a, ""), c = yi(it, e, ""), l = yi(it, n, "");
|
|
20236
|
-
return
|
|
20237
|
+
return e2({
|
|
20237
20238
|
title: $,
|
|
20238
20239
|
modelType: y,
|
|
20239
20240
|
trendData: {
|
|
@@ -20252,7 +20253,7 @@ const i2 = (t) => so.renderToString(/* @__PURE__ */ ri(e2, Ut({}, t))), Rv = fun
|
|
|
20252
20253
|
const S = /confidenceInterval=([^"]+)/, u = (P = it == null ? void 0 : it.column) == null ? void 0 : P.expression.match(
|
|
20253
20254
|
S
|
|
20254
20255
|
), y = u ? u[1] : "0.8", s = (parseFloat(y) * 100).toFixed(0) + "%";
|
|
20255
|
-
return
|
|
20256
|
+
return r2({
|
|
20256
20257
|
title: $,
|
|
20257
20258
|
confidenceValue: s,
|
|
20258
20259
|
forecastValue: _,
|
|
@@ -20281,7 +20282,7 @@ const i2 = (t) => so.renderToString(/* @__PURE__ */ ri(e2, Ut({}, t))), Rv = fun
|
|
|
20281
20282
|
` : ""}
|
|
20282
20283
|
${mt || ""}
|
|
20283
20284
|
`);
|
|
20284
|
-
},
|
|
20285
|
+
}, n2 = (t, i, f) => ({
|
|
20285
20286
|
animation: !1,
|
|
20286
20287
|
backgroundColor: to,
|
|
20287
20288
|
borderColor: Qn,
|
|
@@ -20291,7 +20292,7 @@ const i2 = (t) => so.renderToString(/* @__PURE__ */ ri(e2, Ut({}, t))), Rv = fun
|
|
|
20291
20292
|
formatter: function() {
|
|
20292
20293
|
return Rv(this, t, i, f);
|
|
20293
20294
|
}
|
|
20294
|
-
}),
|
|
20295
|
+
}), o2 = (t, i) => {
|
|
20295
20296
|
const f = t;
|
|
20296
20297
|
if (f.x.length !== 2)
|
|
20297
20298
|
return i;
|
|
@@ -20303,19 +20304,19 @@ const i2 = (t) => so.renderToString(/* @__PURE__ */ ri(e2, Ut({}, t))), Rv = fun
|
|
|
20303
20304
|
const lt = Hi(ut, parseFloat(_.text));
|
|
20304
20305
|
return oe(Ut({}, _), { text: lt });
|
|
20305
20306
|
})), { categories: mt, indexMap: W, plotBands: ft };
|
|
20306
|
-
},
|
|
20307
|
+
}, s2 = (t, i) => {
|
|
20307
20308
|
const { stackType: f } = i;
|
|
20308
|
-
return f === "classic" && (Oy(t) ||
|
|
20309
|
-
},
|
|
20309
|
+
return f === "classic" && (Oy(t) || oM(t));
|
|
20310
|
+
}, a2 = (t) => {
|
|
20310
20311
|
const { xValues: i, xAxisCount: f } = t;
|
|
20311
20312
|
return f !== 2 || i.length === 0;
|
|
20312
20313
|
}, hd = (t, i) => ({
|
|
20313
20314
|
plotBands: [],
|
|
20314
20315
|
indexMap: t.map((f, R) => R),
|
|
20315
20316
|
categories: i
|
|
20316
|
-
}),
|
|
20317
|
+
}), l2 = (t, i, f, R) => {
|
|
20317
20318
|
const { xValues: it } = t, { y: at } = i;
|
|
20318
|
-
if (
|
|
20319
|
+
if (s2(i, f))
|
|
20319
20320
|
return hd(
|
|
20320
20321
|
it,
|
|
20321
20322
|
at.map((F) => Li(F))
|
|
@@ -20325,7 +20326,7 @@ const i2 = (t) => so.renderToString(/* @__PURE__ */ ri(e2, Ut({}, t))), Rv = fun
|
|
|
20325
20326
|
it,
|
|
20326
20327
|
it.map(bv).map((F) => `${F}`)
|
|
20327
20328
|
);
|
|
20328
|
-
if (
|
|
20329
|
+
if (a2(t))
|
|
20329
20330
|
return hd(
|
|
20330
20331
|
it,
|
|
20331
20332
|
it.map((F) => F.xValues[0])
|
|
@@ -20388,9 +20389,9 @@ const aa = (t, i) => `Maximum number of series (${i}) exceeded (${t})`, Ud = (t,
|
|
|
20388
20389
|
throw new Wo("errors.unexpectedChartType", { chartType: t.type });
|
|
20389
20390
|
const { seriesCapacity: mt, categoriesCapacity: ft } = f.dataLimits;
|
|
20390
20391
|
t.xValues.length > ft && at.push(Ud("x", t.xValues.length, ft));
|
|
20391
|
-
const { categories: _, indexMap: lt, plotBands: G } =
|
|
20392
|
+
const { categories: _, indexMap: lt, plotBands: G } = o2(
|
|
20392
20393
|
R,
|
|
20393
|
-
|
|
20394
|
+
l2(
|
|
20394
20395
|
oe(Ut({}, t), {
|
|
20395
20396
|
xValues: t.xValues.slice(0, ft)
|
|
20396
20397
|
}),
|
|
@@ -20398,15 +20399,15 @@ const aa = (t, i) => `Maximum number of series (${i}) exceeded (${t})`, Ud = (t,
|
|
|
20398
20399
|
f,
|
|
20399
20400
|
ht
|
|
20400
20401
|
)
|
|
20401
|
-
), [F, $, Y, q] =
|
|
20402
|
+
), [F, $, Y, q] = $E(
|
|
20402
20403
|
t,
|
|
20403
20404
|
R
|
|
20404
|
-
), Q = i === "bar" || $.includes("bar") ? "vertical" : "horizontal", J = ht ?
|
|
20405
|
+
), Q = i === "bar" || $.includes("bar") ? "vertical" : "horizontal", J = ht ? QP(
|
|
20405
20406
|
f.xAxis,
|
|
20406
20407
|
R.x[0],
|
|
20407
20408
|
t.xValues.map(bv),
|
|
20408
20409
|
it
|
|
20409
|
-
) :
|
|
20410
|
+
) : tE(
|
|
20410
20411
|
f.xAxis,
|
|
20411
20412
|
f.x2Axis,
|
|
20412
20413
|
_,
|
|
@@ -20437,7 +20438,7 @@ const aa = (t, i) => `Maximum number of series (${i}) exceeded (${t})`, Ud = (t,
|
|
|
20437
20438
|
titleEnabled: !1,
|
|
20438
20439
|
title: null
|
|
20439
20440
|
}));
|
|
20440
|
-
const [d, m] =
|
|
20441
|
+
const [d, m] = eE(
|
|
20441
20442
|
b,
|
|
20442
20443
|
f.y2Axis,
|
|
20443
20444
|
U,
|
|
@@ -20447,7 +20448,7 @@ const aa = (t, i) => `Maximum number of series (${i}) exceeded (${t})`, Ud = (t,
|
|
|
20447
20448
|
D
|
|
20448
20449
|
), v = t.xAxisCount > 1 && Q === "vertical" ? 90 : 20, g = i === "area" && D !== void 0, x = !!A;
|
|
20449
20450
|
return t.series.length > mt && at.push(aa(t.series.length, mt)), { options: Dr(
|
|
20450
|
-
|
|
20451
|
+
VP(i, A, D),
|
|
20451
20452
|
{
|
|
20452
20453
|
title: { text: null },
|
|
20453
20454
|
chart: {
|
|
@@ -20483,18 +20484,18 @@ const aa = (t, i) => `Maximum number of series (${i}) exceeded (${t})`, Ud = (t,
|
|
|
20483
20484
|
series: t.series.slice(0, mt).map((P, S) => {
|
|
20484
20485
|
var n, o;
|
|
20485
20486
|
const u = R.breakBy.length ? R.y[0] : R.y.find(({ column: { name: r } }) => r === P.name), y = u == null ? void 0 : u.column.name, e = (y ? f.designPerSeries[y] : void 0) || f;
|
|
20486
|
-
return oe(Ut(oe(Ut({}, ht ?
|
|
20487
|
+
return oe(Ut(oe(Ut({}, ht ? UE(
|
|
20487
20488
|
P,
|
|
20488
20489
|
lt,
|
|
20489
20490
|
g || Y[S],
|
|
20490
20491
|
J[0].tickInterval,
|
|
20491
20492
|
f.dataLimits.categoriesCapacity,
|
|
20492
|
-
|
|
20493
|
+
JP(R.x[0], it),
|
|
20493
20494
|
d[S],
|
|
20494
20495
|
m[S]
|
|
20495
20496
|
) : Oy(R) && !D ? sa(
|
|
20496
20497
|
P,
|
|
20497
|
-
|
|
20498
|
+
HE(_, S),
|
|
20498
20499
|
g || Y[S]
|
|
20499
20500
|
) : sa(P, lt, g || Y[S])), {
|
|
20500
20501
|
showInNavigator: !0,
|
|
@@ -20504,7 +20505,7 @@ const aa = (t, i) => `Maximum number of series (${i}) exceeded (${t})`, Ud = (t,
|
|
|
20504
20505
|
color: (o = su(R, P.name)) != null ? o : en((n = tt == null ? void 0 : tt.palette) == null ? void 0 : n.variantColors, S),
|
|
20505
20506
|
yAxis: F[S],
|
|
20506
20507
|
dataLabels: {
|
|
20507
|
-
formatter:
|
|
20508
|
+
formatter: zE(u == null ? void 0 : u.numberFormatConfig)
|
|
20508
20509
|
}
|
|
20509
20510
|
}), $[S] && { type: $[S] }), {
|
|
20510
20511
|
connectNulls: q[S],
|
|
@@ -20514,7 +20515,7 @@ const aa = (t, i) => `Maximum number of series (${i}) exceeded (${t})`, Ud = (t,
|
|
|
20514
20515
|
}),
|
|
20515
20516
|
plotOptions: {
|
|
20516
20517
|
series: oe(Ut({
|
|
20517
|
-
dataLabels: x ?
|
|
20518
|
+
dataLabels: x ? WE(f.valueLabel, A) : FE(
|
|
20518
20519
|
Q,
|
|
20519
20520
|
f.valueLabel,
|
|
20520
20521
|
D && i !== "area"
|
|
@@ -20527,7 +20528,7 @@ const aa = (t, i) => `Maximum number of series (${i}) exceeded (${t})`, Ud = (t,
|
|
|
20527
20528
|
connectNulls: !1
|
|
20528
20529
|
})
|
|
20529
20530
|
},
|
|
20530
|
-
tooltip:
|
|
20531
|
+
tooltip: n2(void 0, R, W)
|
|
20531
20532
|
}
|
|
20532
20533
|
), alerts: at };
|
|
20533
20534
|
}, Ug = (t, i) => ({
|
|
@@ -20565,11 +20566,11 @@ const aa = (t, i) => `Maximum number of series (${i}) exceeded (${t})`, Ud = (t,
|
|
|
20565
20566
|
showValue: !0,
|
|
20566
20567
|
showPercent: !0,
|
|
20567
20568
|
showDecimals: !1
|
|
20568
|
-
}, Nv = "classic",
|
|
20569
|
+
}, Nv = "classic", c2 = {
|
|
20569
20570
|
classic: "0%",
|
|
20570
20571
|
donut: "40%",
|
|
20571
20572
|
ring: "80%"
|
|
20572
|
-
},
|
|
20573
|
+
}, h2 = () => ({
|
|
20573
20574
|
allowPointSelect: !1,
|
|
20574
20575
|
showInLegend: !0,
|
|
20575
20576
|
dataLabels: {
|
|
@@ -20581,14 +20582,14 @@ const aa = (t, i) => `Maximum number of series (${i}) exceeded (${t})`, Ud = (t,
|
|
|
20581
20582
|
style: Ti
|
|
20582
20583
|
},
|
|
20583
20584
|
innerSize: "0%"
|
|
20584
|
-
}),
|
|
20585
|
+
}), u2 = () => ({
|
|
20585
20586
|
dataLabels: {
|
|
20586
20587
|
enabled: !1
|
|
20587
20588
|
}
|
|
20588
|
-
}),
|
|
20589
|
+
}), d2 = (t = Nv, i = _v, f, R) => {
|
|
20589
20590
|
var it;
|
|
20590
|
-
const W =
|
|
20591
|
-
if (W.innerSize =
|
|
20591
|
+
const W = h2(), tt = u2();
|
|
20592
|
+
if (W.innerSize = c2[t], R && (W.dataLabels.style = {
|
|
20592
20593
|
color: R.chart.textColor,
|
|
20593
20594
|
fontFamily: R.typography.fontFamily,
|
|
20594
20595
|
textOutline: "none"
|
|
@@ -20617,7 +20618,7 @@ const aa = (t, i) => `Maximum number of series (${i}) exceeded (${t})`, Ud = (t,
|
|
|
20617
20618
|
showValue: !0,
|
|
20618
20619
|
showPercent: !0,
|
|
20619
20620
|
showDecimals: !1
|
|
20620
|
-
}, Dp = "regular", Ip = "regular", Rp = "regular",
|
|
20621
|
+
}, Dp = "regular", Ip = "regular", Rp = "regular", p2 = (t) => t !== "regular", Gg = () => ({
|
|
20621
20622
|
allowPointSelect: !1,
|
|
20622
20623
|
cursor: "pointer",
|
|
20623
20624
|
showInLegend: !0,
|
|
@@ -20628,45 +20629,45 @@ const aa = (t, i) => `Maximum number of series (${i}) exceeded (${t})`, Ud = (t,
|
|
|
20628
20629
|
style: Ti
|
|
20629
20630
|
},
|
|
20630
20631
|
reversed: !0,
|
|
20631
|
-
neckWidth:
|
|
20632
|
+
neckWidth: b2,
|
|
20632
20633
|
neckHeight: 0,
|
|
20633
20634
|
width: zv
|
|
20634
|
-
}),
|
|
20635
|
+
}), f2 = () => ({
|
|
20635
20636
|
dataLabels: {
|
|
20636
20637
|
enabled: !1
|
|
20637
20638
|
}
|
|
20638
|
-
}),
|
|
20639
|
+
}), g2 = (t) => {
|
|
20639
20640
|
const { enabled: i, showCategories: f, showValue: R, showPercent: W } = t;
|
|
20640
20641
|
return {
|
|
20641
20642
|
enabled: i && [f, R, W].find(Boolean) !== void 0
|
|
20642
20643
|
};
|
|
20643
|
-
},
|
|
20644
|
+
}, m2 = (t, i) => i.showCategories ? t.point.name || t.series.name : "", y2 = (t, i, f) => {
|
|
20644
20645
|
if (!i.showValue)
|
|
20645
20646
|
return "";
|
|
20646
20647
|
const R = Hi(f, t.y);
|
|
20647
20648
|
return i.showValue && i.showCategories ? `<br />${R}` : R;
|
|
20648
|
-
},
|
|
20649
|
+
}, v2 = (t, i) => {
|
|
20649
20650
|
var W, tt;
|
|
20650
20651
|
if (!i.showPercent)
|
|
20651
20652
|
return "";
|
|
20652
20653
|
const f = ((tt = (W = t.point) == null ? void 0 : W.custom) == null ? void 0 : tt.number1) || 0, R = i.showDecimals ? f.toFixed(1) : `${Math.round(f)}`;
|
|
20653
20654
|
return ` <b>${ch(R)}</b>`;
|
|
20654
|
-
}, zv = 66.6,
|
|
20655
|
+
}, zv = 66.6, b2 = 15, x2 = (t) => zv, S2 = {
|
|
20655
20656
|
wide: 60,
|
|
20656
20657
|
regular: 30,
|
|
20657
20658
|
narrow: 15
|
|
20658
|
-
},
|
|
20659
|
+
}, w2 = (t, i) => Math.round(sM(t, S2[i])), C2 = (t) => t === "pinched" ? 30 : 0, T2 = (t, i, f) => {
|
|
20659
20660
|
var ft;
|
|
20660
20661
|
const {
|
|
20661
20662
|
funnelType: R = Ip,
|
|
20662
20663
|
funnelSize: W = Dp,
|
|
20663
20664
|
funnelDirection: tt = Rp,
|
|
20664
20665
|
funnelLabels: it = Op
|
|
20665
|
-
} = t, at = oe(Ut({},
|
|
20666
|
-
dataLabels:
|
|
20666
|
+
} = t, at = oe(Ut({}, f2()), {
|
|
20667
|
+
dataLabels: g2(it)
|
|
20667
20668
|
}), ht = li(
|
|
20668
20669
|
(ft = i.y[0]) == null ? void 0 : ft.numberFormatConfig
|
|
20669
|
-
), ut =
|
|
20670
|
+
), ut = x2();
|
|
20670
20671
|
return {
|
|
20671
20672
|
funnel: oe(Ut({}, Gg()), {
|
|
20672
20673
|
dataLabels: oe(Ut(Ut({}, Gg().dataLabels), f ? {
|
|
@@ -20677,18 +20678,18 @@ const aa = (t, i) => `Maximum number of series (${i}) exceeded (${t})`, Ud = (t,
|
|
|
20677
20678
|
} : null), {
|
|
20678
20679
|
enabled: it.enabled && (it.showCategories || it.showValue || it.showPercent),
|
|
20679
20680
|
formatter: function() {
|
|
20680
|
-
const _ =
|
|
20681
|
+
const _ = m2(this, it), lt = y2(this, it, ht), G = v2(this, it);
|
|
20681
20682
|
return `${_}${lt}${G}`;
|
|
20682
20683
|
}
|
|
20683
20684
|
}),
|
|
20684
|
-
reversed:
|
|
20685
|
-
neckWidth: ch(
|
|
20686
|
-
neckHeight: ch(
|
|
20685
|
+
reversed: p2(tt),
|
|
20686
|
+
neckWidth: ch(w2(ut, W)),
|
|
20687
|
+
neckHeight: ch(C2(R)),
|
|
20687
20688
|
width: ch(ut)
|
|
20688
20689
|
}),
|
|
20689
20690
|
series: at
|
|
20690
20691
|
};
|
|
20691
|
-
}, Fv = "Other", Wv = "Others",
|
|
20692
|
+
}, Fv = "Other", Wv = "Others", k2 = "#525A6B", M2 = (t, i, f, R) => {
|
|
20692
20693
|
const W = [], { seriesCapacity: tt } = f.dataLimits;
|
|
20693
20694
|
let it;
|
|
20694
20695
|
if (t.xAxisCount === 0) {
|
|
@@ -20748,13 +20749,13 @@ const aa = (t, i) => `Maximum number of series (${i}) exceeded (${t})`, Ud = (t,
|
|
|
20748
20749
|
return { series: it, alerts: W, convolutionSeries: [] };
|
|
20749
20750
|
switch (at == null ? void 0 : at.selectedConvolutionType) {
|
|
20750
20751
|
case "byPercentage":
|
|
20751
|
-
return oe(Ut({}, A2(it, at)), { alerts: W });
|
|
20752
|
-
case "bySlicesCount":
|
|
20753
20752
|
return oe(Ut({}, P2(it, at)), { alerts: W });
|
|
20753
|
+
case "bySlicesCount":
|
|
20754
|
+
return oe(Ut({}, E2(it, at)), { alerts: W });
|
|
20754
20755
|
default:
|
|
20755
20756
|
return { series: it, alerts: W, convolutionSeries: [] };
|
|
20756
20757
|
}
|
|
20757
|
-
},
|
|
20758
|
+
}, A2 = (t, i) => {
|
|
20758
20759
|
var f;
|
|
20759
20760
|
return t + ((f = i.y) != null ? f : 0);
|
|
20760
20761
|
}, Xg = (t, i, f) => {
|
|
@@ -20768,7 +20769,7 @@ const aa = (t, i) => `Maximum number of series (${i}) exceeded (${t})`, Ud = (t,
|
|
|
20768
20769
|
return t[0].data.push({
|
|
20769
20770
|
y: f,
|
|
20770
20771
|
name: Fv,
|
|
20771
|
-
color:
|
|
20772
|
+
color: k2,
|
|
20772
20773
|
sliced: !1,
|
|
20773
20774
|
drilldown: Wv
|
|
20774
20775
|
}), t;
|
|
@@ -20778,15 +20779,15 @@ const aa = (t, i) => `Maximum number of series (${i}) exceeded (${t})`, Ud = (t,
|
|
|
20778
20779
|
id: Wv,
|
|
20779
20780
|
data: t
|
|
20780
20781
|
}
|
|
20781
|
-
],
|
|
20782
|
+
], P2 = (t, i) => {
|
|
20782
20783
|
if ((i == null ? void 0 : i.minimalIndependentSlicePercentage) === void 0 || t.length === 0)
|
|
20783
20784
|
return { series: t, convolutionSeries: [] };
|
|
20784
|
-
const f = i.minimalIndependentSlicePercentage / 100, R = t[0].data.reduce(
|
|
20785
|
+
const f = i.minimalIndependentSlicePercentage / 100, R = t[0].data.reduce(A2, 0), W = t[0].data.filter((tt) => !Xg(tt, R, f));
|
|
20785
20786
|
return W.length === 0 ? { series: t, convolutionSeries: [] } : (t[0].data = t[0].data.filter((tt) => Xg(tt, R, f)), {
|
|
20786
20787
|
series: Hv(t, W),
|
|
20787
20788
|
convolutionSeries: Uv(W)
|
|
20788
20789
|
});
|
|
20789
|
-
},
|
|
20790
|
+
}, E2 = (t, i) => {
|
|
20790
20791
|
if ((i == null ? void 0 : i.independentSlicesCount) === void 0)
|
|
20791
20792
|
return { series: t, convolutionSeries: [] };
|
|
20792
20793
|
const f = i.independentSlicesCount, R = t[0].data.map((it, at) => oe(Ut({}, it), { index: at })).sort((it, at) => {
|
|
@@ -20797,7 +20798,7 @@ const aa = (t, i) => `Maximum number of series (${i}) exceeded (${t})`, Ud = (t,
|
|
|
20797
20798
|
series: Hv(t, tt),
|
|
20798
20799
|
convolutionSeries: Uv(tt)
|
|
20799
20800
|
});
|
|
20800
|
-
},
|
|
20801
|
+
}, L2 = (t, i, f, R) => {
|
|
20801
20802
|
let W;
|
|
20802
20803
|
const tt = [], { seriesCapacity: it } = f.dataLimits;
|
|
20803
20804
|
if (t.xAxisCount === 0) {
|
|
@@ -20838,7 +20839,7 @@ const aa = (t, i) => `Maximum number of series (${i}) exceeded (${t})`, Ud = (t,
|
|
|
20838
20839
|
let i = 0;
|
|
20839
20840
|
const f = t.data.map((R, W) => {
|
|
20840
20841
|
const tt = R.y;
|
|
20841
|
-
return W === 0 && (i = tt), R.custom = oe(Ut({}, R.custom), { number1:
|
|
20842
|
+
return W === 0 && (i = tt), R.custom = oe(Ut({}, R.custom), { number1: aM(i, tt) }), R;
|
|
20842
20843
|
});
|
|
20843
20844
|
return oe(Ut({}, t), {
|
|
20844
20845
|
data: f
|
|
@@ -20853,7 +20854,7 @@ const aa = (t, i) => `Maximum number of series (${i}) exceeded (${t})`, Ud = (t,
|
|
|
20853
20854
|
useHTML: !0,
|
|
20854
20855
|
outside: !0,
|
|
20855
20856
|
formatter: function() {
|
|
20856
|
-
return
|
|
20857
|
+
return I2(
|
|
20857
20858
|
this,
|
|
20858
20859
|
t,
|
|
20859
20860
|
i,
|
|
@@ -20861,7 +20862,7 @@ const aa = (t, i) => `Maximum number of series (${i}) exceeded (${t})`, Ud = (t,
|
|
|
20861
20862
|
R
|
|
20862
20863
|
);
|
|
20863
20864
|
}
|
|
20864
|
-
}),
|
|
20865
|
+
}), O2 = `
|
|
20865
20866
|
<div style="position: absolute; top: 100%; right: 40px; z-index: 1">
|
|
20866
20867
|
<div style="
|
|
20867
20868
|
border: solid transparent;
|
|
@@ -20889,13 +20890,13 @@ const aa = (t, i) => `Maximum number of series (${i}) exceeded (${t})`, Ud = (t,
|
|
|
20889
20890
|
"></div>
|
|
20890
20891
|
</div>
|
|
20891
20892
|
`;
|
|
20892
|
-
function
|
|
20893
|
+
function D2(t, i) {
|
|
20893
20894
|
return t / (i / 100);
|
|
20894
20895
|
}
|
|
20895
20896
|
function eh(t, i) {
|
|
20896
|
-
return `${
|
|
20897
|
+
return `${D2(t, i).toPrecision(3)}%`;
|
|
20897
20898
|
}
|
|
20898
|
-
function
|
|
20899
|
+
function I2(t, i, f, R, W) {
|
|
20899
20900
|
var _, lt, G, F, $, Y, q, Q, J;
|
|
20900
20901
|
if (W != null && W.shouldSkip && W.shouldSkip(t))
|
|
20901
20902
|
return !1;
|
|
@@ -20922,14 +20923,14 @@ function D2(t, i, f, R, W) {
|
|
|
20922
20923
|
class="csdk-treemap-tooltip-level"
|
|
20923
20924
|
style="background: ${D ? "#f2f2f2" : "white"};"
|
|
20924
20925
|
>
|
|
20925
|
-
${W != null && W.displayColorCircles ?
|
|
20926
|
+
${W != null && W.displayColorCircles ? R2(U.color) : ""}
|
|
20926
20927
|
<span
|
|
20927
20928
|
style="color: ${D ? ht : "currentColor"}"
|
|
20928
20929
|
>${U.name}</span>
|
|
20929
20930
|
<span
|
|
20930
20931
|
style="color: ${D ? "#5B6372" : "currentColor"}; margin-left: auto;"
|
|
20931
20932
|
>${it ? eh(U.val, ut) : ra(tt, U.val)}</span>
|
|
20932
|
-
${D ? "" :
|
|
20933
|
+
${D ? "" : O2}
|
|
20933
20934
|
</div>`;
|
|
20934
20935
|
}).join("")}
|
|
20935
20936
|
<div class="csdk-treemap-tooltip-value">
|
|
@@ -20952,7 +20953,7 @@ function D2(t, i, f, R, W) {
|
|
|
20952
20953
|
</div>
|
|
20953
20954
|
</div>`;
|
|
20954
20955
|
}
|
|
20955
|
-
function
|
|
20956
|
+
function R2(t) {
|
|
20956
20957
|
return `
|
|
20957
20958
|
<div style="
|
|
20958
20959
|
width: 12px;
|
|
@@ -42482,20 +42483,20 @@ var Xd = { exports: {} };
|
|
|
42482
42483
|
}, W(4658);
|
|
42483
42484
|
})());
|
|
42484
42485
|
})(Xd, Xd.exports);
|
|
42485
|
-
var
|
|
42486
|
-
const
|
|
42486
|
+
var j2 = Xd.exports;
|
|
42487
|
+
const B2 = /* @__PURE__ */ rm(j2), _2 = "rgb(255, 255, 255)", Vg = "rgb(43, 51, 66)", Dh = 20, Ih = 4, N2 = 2, Yd = 1, z2 = Dh * 2, F2 = 26, W2 = 20, $g = 35, H2 = Dh + Ih - 2, Zg = {
|
|
42487
42488
|
key: "brightness",
|
|
42488
42489
|
to: 0.15
|
|
42489
42490
|
};
|
|
42490
|
-
|
|
42491
|
-
const f =
|
|
42492
|
-
return
|
|
42493
|
-
const at = tt.height >= f(
|
|
42491
|
+
B2.Series.types.treemap.prototype.squarifiedWithTopSpacing = function(t, i) {
|
|
42492
|
+
const f = Y2(t.height, this.chart.plotHeight), R = this.squarified(t, i), W = f(H2);
|
|
42493
|
+
return V2(this.chart) ? R.map((tt, it) => {
|
|
42494
|
+
const at = tt.height >= f(z2);
|
|
42494
42495
|
return i[it].point.options.custom.bigLabelSpacing = at, at && (tt.height = tt.height - W, tt.y = tt.y + W), tt;
|
|
42495
42496
|
}) : R;
|
|
42496
42497
|
};
|
|
42497
|
-
function
|
|
42498
|
-
const R =
|
|
42498
|
+
function U2(t, i, f) {
|
|
42499
|
+
const R = G2();
|
|
42499
42500
|
return R.forEach((W, tt) => {
|
|
42500
42501
|
var at, ht, ut, mt, ft, _, lt;
|
|
42501
42502
|
const it = W.dataLabels;
|
|
@@ -42505,7 +42506,7 @@ function H2(t, i, f) {
|
|
|
42505
42506
|
function ud() {
|
|
42506
42507
|
var f, R;
|
|
42507
42508
|
const t = Jh(tn(this.color)) > 0.4 && !((R = (f = this.point.options) == null ? void 0 : f.custom) != null && R.blur), { width: i } = Yv(this.point);
|
|
42508
|
-
return
|
|
42509
|
+
return X2(this.point) ? Xv(this.point) ? `<div
|
|
42509
42510
|
style="
|
|
42510
42511
|
width:${i - Ih}px;
|
|
42511
42512
|
height: ${Dh}px;
|
|
@@ -42519,9 +42520,9 @@ function ud() {
|
|
|
42519
42520
|
text-overflow: ellipsis;
|
|
42520
42521
|
left: ${Ih / 2}px;
|
|
42521
42522
|
"
|
|
42522
|
-
>${this.key}</div>` : `<div style="fill:${t ?
|
|
42523
|
+
>${this.key}</div>` : `<div style="fill:${t ? _2 : Vg};">${this.key}</div>` : "";
|
|
42523
42524
|
}
|
|
42524
|
-
function
|
|
42525
|
+
function G2() {
|
|
42525
42526
|
return [
|
|
42526
42527
|
{
|
|
42527
42528
|
level: 1,
|
|
@@ -42543,7 +42544,7 @@ function U2() {
|
|
|
42543
42544
|
},
|
|
42544
42545
|
{
|
|
42545
42546
|
level: 2,
|
|
42546
|
-
borderWidth:
|
|
42547
|
+
borderWidth: N2,
|
|
42547
42548
|
borderColor: "white",
|
|
42548
42549
|
dataLabels: {
|
|
42549
42550
|
enabled: !0,
|
|
@@ -42575,17 +42576,17 @@ function Xv(t) {
|
|
|
42575
42576
|
var i, f, R, W;
|
|
42576
42577
|
return ((f = (i = t.options) == null ? void 0 : i.custom) == null ? void 0 : f.levelsCount) !== 1 && ((W = (R = t.options) == null ? void 0 : R.custom) == null ? void 0 : W.level) === 1;
|
|
42577
42578
|
}
|
|
42578
|
-
function
|
|
42579
|
+
function X2(t) {
|
|
42579
42580
|
const { height: i, width: f } = Yv(t), { level: R } = t.options.custom;
|
|
42580
|
-
return Xv(t) ? !!t.options.custom.bigLabelSpacing : R !== 3 ? i >=
|
|
42581
|
+
return Xv(t) ? !!t.options.custom.bigLabelSpacing : R !== 3 ? i >= F2 && f >= $g : i >= W2 && f >= $g;
|
|
42581
42582
|
}
|
|
42582
|
-
function
|
|
42583
|
+
function Y2(t, i) {
|
|
42583
42584
|
return (f) => {
|
|
42584
42585
|
const R = i / t;
|
|
42585
42586
|
return f / R;
|
|
42586
42587
|
};
|
|
42587
42588
|
}
|
|
42588
|
-
function
|
|
42589
|
+
function V2(t) {
|
|
42589
42590
|
var R, W, tt, it, at, ht;
|
|
42590
42591
|
const i = (W = (R = t.options.series) == null ? void 0 : R[0]) != null ? W : {};
|
|
42591
42592
|
return (ht = ((at = (it = (tt = i == null ? void 0 : i.levels) == null ? void 0 : tt[0]) == null ? void 0 : it.dataLabels) != null ? at : {}).enabled) != null ? ht : !0;
|
|
@@ -42600,7 +42601,7 @@ function Yv(t) {
|
|
|
42600
42601
|
function Vv(t, i, f) {
|
|
42601
42602
|
if (!t.series[0])
|
|
42602
42603
|
return [];
|
|
42603
|
-
const R =
|
|
42604
|
+
const R = $2(t), W = t.series[0].data.map((tt) => {
|
|
42604
42605
|
var it, at;
|
|
42605
42606
|
return {
|
|
42606
42607
|
value: tt.value,
|
|
@@ -42612,13 +42613,13 @@ function Vv(t, i, f) {
|
|
|
42612
42613
|
})
|
|
42613
42614
|
};
|
|
42614
42615
|
});
|
|
42615
|
-
return
|
|
42616
|
+
return Z2(
|
|
42616
42617
|
[...R, ...W],
|
|
42617
42618
|
i,
|
|
42618
42619
|
f
|
|
42619
42620
|
);
|
|
42620
42621
|
}
|
|
42621
|
-
function
|
|
42622
|
+
function $2(t) {
|
|
42622
42623
|
const i = {};
|
|
42623
42624
|
return t.xValues.forEach((f) => {
|
|
42624
42625
|
f.rawValues.slice(0, -1).forEach((R, W) => {
|
|
@@ -42638,7 +42639,7 @@ function V2(t) {
|
|
|
42638
42639
|
});
|
|
42639
42640
|
}), Object.values(i);
|
|
42640
42641
|
}
|
|
42641
|
-
function
|
|
42642
|
+
function Z2(t, i, f) {
|
|
42642
42643
|
const R = i.breakBy.map((tt) => tt.isColored).indexOf(!0) + 1, W = /* @__PURE__ */ new Map();
|
|
42643
42644
|
return t.map((tt) => {
|
|
42644
42645
|
var it;
|
|
@@ -42650,18 +42651,18 @@ function $2(t, i, f) {
|
|
|
42650
42651
|
})) : tt;
|
|
42651
42652
|
});
|
|
42652
42653
|
}
|
|
42653
|
-
const
|
|
42654
|
+
const K2 = "rgb(0, 206, 230)", q2 = {
|
|
42654
42655
|
type: "treemap",
|
|
42655
42656
|
layoutAlgorithm: "strip",
|
|
42656
42657
|
layoutStartingDirection: "horizontal",
|
|
42657
42658
|
clip: !1,
|
|
42658
|
-
color:
|
|
42659
|
+
color: K2,
|
|
42659
42660
|
dataLabels: {
|
|
42660
42661
|
style: {
|
|
42661
42662
|
textOutline: "none"
|
|
42662
42663
|
}
|
|
42663
42664
|
}
|
|
42664
|
-
},
|
|
42665
|
+
}, J2 = {
|
|
42665
42666
|
title: { text: null },
|
|
42666
42667
|
chart: {
|
|
42667
42668
|
type: "treemap",
|
|
@@ -42674,25 +42675,25 @@ const Z2 = "rgb(0, 206, 230)", K2 = {
|
|
|
42674
42675
|
},
|
|
42675
42676
|
series: []
|
|
42676
42677
|
};
|
|
42677
|
-
function
|
|
42678
|
-
return oe(Ut({},
|
|
42678
|
+
function Q2(t, i, f, R, W) {
|
|
42679
|
+
return oe(Ut({}, J2), {
|
|
42679
42680
|
series: [
|
|
42680
|
-
oe(Ut({},
|
|
42681
|
+
oe(Ut({}, q2), {
|
|
42681
42682
|
name: Li(i.y[0]),
|
|
42682
42683
|
data: Vv(t, i, W),
|
|
42683
|
-
levels:
|
|
42684
|
+
levels: U2(i, f, W)
|
|
42684
42685
|
})
|
|
42685
42686
|
],
|
|
42686
42687
|
tooltip: Gv(i, f, R)
|
|
42687
42688
|
});
|
|
42688
42689
|
}
|
|
42689
|
-
const
|
|
42690
|
+
const tL = Object.freeze({
|
|
42690
42691
|
1: 80,
|
|
42691
42692
|
2: 70,
|
|
42692
42693
|
3: 60,
|
|
42693
42694
|
4: 50
|
|
42694
42695
|
});
|
|
42695
|
-
function
|
|
42696
|
+
function eL(t, i, f, R) {
|
|
42696
42697
|
var it, at;
|
|
42697
42698
|
const W = {
|
|
42698
42699
|
level: 1,
|
|
@@ -42722,7 +42723,7 @@ function tL(t, i, f, R) {
|
|
|
42722
42723
|
},
|
|
42723
42724
|
levelSize: {
|
|
42724
42725
|
unit: "percentage",
|
|
42725
|
-
value:
|
|
42726
|
+
value: tL[i.breakBy.length] || 50
|
|
42726
42727
|
}
|
|
42727
42728
|
}, tt = Array.from(new Array(t.xAxisCount)).map((ht, ut) => {
|
|
42728
42729
|
var mt, ft, _, lt;
|
|
@@ -42739,22 +42740,22 @@ function tL(t, i, f, R) {
|
|
|
42739
42740
|
return [W, ...tt];
|
|
42740
42741
|
}
|
|
42741
42742
|
const Vd = "SUNBURST_ROOT_PARENT_ID";
|
|
42742
|
-
function
|
|
42743
|
+
function iL(t, i, f) {
|
|
42743
42744
|
const R = {
|
|
42744
42745
|
id: Vd,
|
|
42745
42746
|
name: Li(i.y[0]),
|
|
42746
42747
|
custom: { level: 0, levelsCount: t.xAxisCount }
|
|
42747
42748
|
}, W = Vv(t, i, f).map((at) => at.parent === "" ? oe(Ut({}, at), {
|
|
42748
42749
|
parent: Vd
|
|
42749
|
-
}) : at), tt =
|
|
42750
|
+
}) : at), tt = oL(W), it = rL(
|
|
42750
42751
|
tt,
|
|
42751
42752
|
i,
|
|
42752
42753
|
f
|
|
42753
42754
|
);
|
|
42754
42755
|
return [R, ...it];
|
|
42755
42756
|
}
|
|
42756
|
-
function
|
|
42757
|
-
const W =
|
|
42757
|
+
function rL(t, i, f) {
|
|
42758
|
+
const W = nL(i), tt = i.breakBy.map(() => /* @__PURE__ */ new Map());
|
|
42758
42759
|
t.forEach((ht) => {
|
|
42759
42760
|
var mt, ft, _, lt;
|
|
42760
42761
|
const ut = tt[ht.custom.level - 1];
|
|
@@ -42765,7 +42766,7 @@ function iL(t, i, f) {
|
|
|
42765
42766
|
});
|
|
42766
42767
|
const at = tt.map((ht) => Array.from(ht.entries()).sort(([, ut], [, mt]) => ut - mt).map(([ut]) => ut)).map((ht, ut) => {
|
|
42767
42768
|
var G, F;
|
|
42768
|
-
const mt = /* @__PURE__ */ new Map(), ft = en(f == null ? void 0 : f.palette.variantColors, ut), _ = ((F = (G = i.breakBy[ut]) == null ? void 0 : G.color) == null ? void 0 : F.color) || ft, lt =
|
|
42769
|
+
const mt = /* @__PURE__ */ new Map(), ft = en(f == null ? void 0 : f.palette.variantColors, ut), _ = ((F = (G = i.breakBy[ut]) == null ? void 0 : G.color) == null ? void 0 : F.color) || ft, lt = cP(
|
|
42769
42770
|
Lh(_, 0.3),
|
|
42770
42771
|
Lh(_, -0.3),
|
|
42771
42772
|
ht.length
|
|
@@ -42782,13 +42783,13 @@ function iL(t, i, f) {
|
|
|
42782
42783
|
});
|
|
42783
42784
|
});
|
|
42784
42785
|
}
|
|
42785
|
-
function
|
|
42786
|
+
function nL(t) {
|
|
42786
42787
|
return t.breakBy.reduce((i, { column: f }, R) => {
|
|
42787
42788
|
var W;
|
|
42788
42789
|
return (W = t == null ? void 0 : t.seriesToColorMap) != null && W[f.name] && (i[R + 1] = t.seriesToColorMap[f.name]), i;
|
|
42789
42790
|
}, {});
|
|
42790
42791
|
}
|
|
42791
|
-
function
|
|
42792
|
+
function oL(t) {
|
|
42792
42793
|
const i = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map();
|
|
42793
42794
|
t.forEach((W) => {
|
|
42794
42795
|
W.parent && (i.has(W.parent) || i.set(W.parent, []), i.get(W.parent).push(W));
|
|
@@ -42811,7 +42812,7 @@ function nL(t) {
|
|
|
42811
42812
|
}), R.push(...W);
|
|
42812
42813
|
}), R;
|
|
42813
42814
|
}
|
|
42814
|
-
const $v = 50,
|
|
42815
|
+
const $v = 50, sL = 1e3, aL = 500, $d = 1e5, Rr = {
|
|
42815
42816
|
lineType: "straight",
|
|
42816
42817
|
stackType: "classic",
|
|
42817
42818
|
legend: "bottom",
|
|
@@ -42875,7 +42876,7 @@ const $v = 50, oL = 1e3, sL = 500, $d = 1e5, Rr = {
|
|
|
42875
42876
|
scatterDefaultSize: 10,
|
|
42876
42877
|
scatterBubbleMinSize: 12,
|
|
42877
42878
|
scatterBubbleMaxSize: 48
|
|
42878
|
-
},
|
|
42879
|
+
}, lL = (t, i) => {
|
|
42879
42880
|
var W;
|
|
42880
42881
|
if (!t.enabled)
|
|
42881
42882
|
return { enabled: !1 };
|
|
@@ -42915,44 +42916,44 @@ const $v = 50, oL = 1e3, sL = 500, $d = 1e5, Rr = {
|
|
|
42915
42916
|
fontWeight: "",
|
|
42916
42917
|
textOutline: ""
|
|
42917
42918
|
}), R;
|
|
42918
|
-
},
|
|
42919
|
+
}, cL = (t, i) => ({
|
|
42919
42920
|
minSize: i ? t.scatterBubbleMinSize : t.scatterDefaultSize,
|
|
42920
42921
|
maxSize: i ? t.scatterBubbleMaxSize : t.scatterDefaultSize
|
|
42921
|
-
}),
|
|
42922
|
+
}), hL = (t, i) => {
|
|
42922
42923
|
var R;
|
|
42923
42924
|
const f = !!i.size;
|
|
42924
42925
|
return {
|
|
42925
42926
|
bubble: Ut({
|
|
42926
42927
|
animation: !1
|
|
42927
|
-
},
|
|
42928
|
+
}, cL(
|
|
42928
42929
|
(R = t.markerSize) != null ? R : Zv,
|
|
42929
42930
|
f
|
|
42930
42931
|
)),
|
|
42931
42932
|
series: {
|
|
42932
42933
|
allowPointSelect: !1,
|
|
42933
42934
|
boostThreshold: 0,
|
|
42934
|
-
dataLabels:
|
|
42935
|
+
dataLabels: lL(t.valueLabel, i),
|
|
42935
42936
|
stickyTracking: !1,
|
|
42936
42937
|
turboThreshold: 0
|
|
42937
42938
|
}
|
|
42938
42939
|
};
|
|
42939
42940
|
};
|
|
42940
|
-
function
|
|
42941
|
+
function uL(t, i, f) {
|
|
42941
42942
|
for (var R = -1, W = i.length, tt = {}; ++R < W; ) {
|
|
42942
42943
|
var it = i[R], at = lp(t, it);
|
|
42943
|
-
f(at, it) &&
|
|
42944
|
+
f(at, it) && uE(tt, Xh(it, t), at);
|
|
42944
42945
|
}
|
|
42945
42946
|
return tt;
|
|
42946
42947
|
}
|
|
42947
|
-
function
|
|
42948
|
-
return
|
|
42948
|
+
function dL(t, i) {
|
|
42949
|
+
return uL(t, i, function(f, R) {
|
|
42949
42950
|
return km(t, R);
|
|
42950
42951
|
});
|
|
42951
42952
|
}
|
|
42952
|
-
var
|
|
42953
|
-
return t == null ? {} :
|
|
42953
|
+
var pL = wp(function(t, i) {
|
|
42954
|
+
return t == null ? {} : dL(t, i);
|
|
42954
42955
|
});
|
|
42955
|
-
const
|
|
42956
|
+
const fL = Object.freeze({
|
|
42956
42957
|
"area/basic": { lineType: "straight", stackType: "classic" },
|
|
42957
42958
|
"area/stacked": { lineType: "straight", stackType: "stacked" },
|
|
42958
42959
|
"area/stacked100": { lineType: "straight", stackType: "stack100" },
|
|
@@ -42985,7 +42986,7 @@ const pL = Object.freeze({
|
|
|
42985
42986
|
"areamap/world": { mapType: "world" },
|
|
42986
42987
|
"areamap/usa": { mapType: "usa" }
|
|
42987
42988
|
});
|
|
42988
|
-
function
|
|
42989
|
+
function gL(t) {
|
|
42989
42990
|
let i;
|
|
42990
42991
|
switch (t.subtype) {
|
|
42991
42992
|
case "indicator/numeric":
|
|
@@ -43006,7 +43007,7 @@ function fL(t) {
|
|
|
43006
43007
|
forceTickerView: !!t.forceTickerView
|
|
43007
43008
|
});
|
|
43008
43009
|
}
|
|
43009
|
-
const
|
|
43010
|
+
const mL = (t) => oe(Ut({}, Rr), { mapType: t.mapType || "world" }), yL = (t, i, f) => {
|
|
43010
43011
|
const R = "y" in f && Array.isArray(f.y) ? f.y.some((at) => at.showOnRightAxis) : !1;
|
|
43011
43012
|
let W;
|
|
43012
43013
|
switch (t) {
|
|
@@ -43020,7 +43021,7 @@ const gL = (t) => oe(Ut({}, Rr), { mapType: t.mapType || "world" }), mL = (t, i,
|
|
|
43020
43021
|
);
|
|
43021
43022
|
break;
|
|
43022
43023
|
case "area":
|
|
43023
|
-
W =
|
|
43024
|
+
W = ML(
|
|
43024
43025
|
i,
|
|
43025
43026
|
f,
|
|
43026
43027
|
R
|
|
@@ -43028,63 +43029,63 @@ const gL = (t) => oe(Ut({}, Rr), { mapType: t.mapType || "world" }), mL = (t, i,
|
|
|
43028
43029
|
break;
|
|
43029
43030
|
case "arearange":
|
|
43030
43031
|
case "line":
|
|
43031
|
-
W =
|
|
43032
|
+
W = kL(
|
|
43032
43033
|
i,
|
|
43033
43034
|
f,
|
|
43034
43035
|
R
|
|
43035
43036
|
);
|
|
43036
43037
|
break;
|
|
43037
43038
|
case "pie":
|
|
43038
|
-
W =
|
|
43039
|
+
W = EL(i);
|
|
43039
43040
|
break;
|
|
43040
43041
|
case "funnel":
|
|
43041
|
-
W =
|
|
43042
|
+
W = LL(i);
|
|
43042
43043
|
break;
|
|
43043
43044
|
case "treemap":
|
|
43044
|
-
W =
|
|
43045
|
+
W = OL(i);
|
|
43045
43046
|
break;
|
|
43046
43047
|
case "sunburst":
|
|
43047
|
-
W =
|
|
43048
|
+
W = DL(
|
|
43048
43049
|
i
|
|
43049
43050
|
);
|
|
43050
43051
|
break;
|
|
43051
43052
|
case "polar":
|
|
43052
|
-
W =
|
|
43053
|
+
W = RL(
|
|
43053
43054
|
i,
|
|
43054
43055
|
f
|
|
43055
43056
|
);
|
|
43056
43057
|
break;
|
|
43057
43058
|
case "indicator":
|
|
43058
|
-
W =
|
|
43059
|
+
W = gL(
|
|
43059
43060
|
i
|
|
43060
43061
|
);
|
|
43061
43062
|
break;
|
|
43062
43063
|
case "scatter":
|
|
43063
|
-
W =
|
|
43064
|
+
W = BL(i);
|
|
43064
43065
|
break;
|
|
43065
43066
|
case "boxplot":
|
|
43066
|
-
W =
|
|
43067
|
+
W = _L(i);
|
|
43067
43068
|
break;
|
|
43068
43069
|
case "areamap":
|
|
43069
|
-
W =
|
|
43070
|
+
W = mL(i);
|
|
43070
43071
|
break;
|
|
43071
43072
|
case "scattermap":
|
|
43072
|
-
W =
|
|
43073
|
+
W = zL(
|
|
43073
43074
|
i
|
|
43074
43075
|
);
|
|
43075
43076
|
break;
|
|
43076
43077
|
default:
|
|
43077
43078
|
throw new Wo("errors.chartTypeNotSupported", { chartType: t });
|
|
43078
43079
|
}
|
|
43079
|
-
const tt = "subtype" in i && i.subtype ? i.subtype : "line/basic", it =
|
|
43080
|
+
const tt = "subtype" in i && i.subtype ? i.subtype : "line/basic", it = fL[tt];
|
|
43080
43081
|
return Ut(Ut({}, W), it);
|
|
43081
43082
|
};
|
|
43082
|
-
function
|
|
43083
|
+
function LD(t, i, f) {
|
|
43083
43084
|
const R = Gl(
|
|
43084
43085
|
f != null ? f : {},
|
|
43085
43086
|
cu()
|
|
43086
43087
|
);
|
|
43087
|
-
return
|
|
43088
|
+
return yL(
|
|
43088
43089
|
t,
|
|
43089
43090
|
R,
|
|
43090
43091
|
i
|
|
@@ -43100,15 +43101,15 @@ function Gl(t, i) {
|
|
|
43100
43101
|
);
|
|
43101
43102
|
}
|
|
43102
43103
|
function jp(t, i, f) {
|
|
43103
|
-
return
|
|
43104
|
+
return vL(t, i).map(
|
|
43104
43105
|
(W) => {
|
|
43105
|
-
const tt = W.seriesId, it = W.seriesStyleOptions, at =
|
|
43106
|
+
const tt = W.seriesId, it = W.seriesStyleOptions, at = TL(
|
|
43106
43107
|
i,
|
|
43107
43108
|
Gl(it, f)
|
|
43108
43109
|
);
|
|
43109
43110
|
return {
|
|
43110
43111
|
seriesId: tt,
|
|
43111
|
-
designOptions:
|
|
43112
|
+
designOptions: pL(at, ["lineWidth", "marker"])
|
|
43112
43113
|
};
|
|
43113
43114
|
}
|
|
43114
43115
|
).reduce(
|
|
@@ -43116,18 +43117,18 @@ function jp(t, i, f) {
|
|
|
43116
43117
|
{}
|
|
43117
43118
|
);
|
|
43118
43119
|
}
|
|
43119
|
-
function
|
|
43120
|
-
return My(i) ?
|
|
43120
|
+
function vL(t, i) {
|
|
43121
|
+
return My(i) ? bL(
|
|
43121
43122
|
t
|
|
43122
43123
|
) : [];
|
|
43123
43124
|
}
|
|
43124
|
-
function
|
|
43125
|
-
return t.y.filter(
|
|
43125
|
+
function bL(t) {
|
|
43126
|
+
return t.y.filter(xL).map(({ column: { name: i }, seriesStyleOptions: f }) => ({
|
|
43126
43127
|
seriesId: i,
|
|
43127
43128
|
seriesStyleOptions: f
|
|
43128
43129
|
}));
|
|
43129
43130
|
}
|
|
43130
|
-
function
|
|
43131
|
+
function xL(t) {
|
|
43131
43132
|
return t.seriesStyleOptions !== void 0;
|
|
43132
43133
|
}
|
|
43133
43134
|
const Xl = (t) => t != null && t.enabled && t.position || null, Zd = (t, i) => {
|
|
@@ -43143,10 +43144,10 @@ const Xl = (t) => t != null && t.enabled && t.position || null, Zd = (t, i) => {
|
|
|
43143
43144
|
max: (it = t.max) != null ? it : null,
|
|
43144
43145
|
tickInterval: t.isIntervalEnabled && (t != null && t.intervalJumps) ? t == null ? void 0 : t.intervalJumps : null
|
|
43145
43146
|
} : i;
|
|
43146
|
-
},
|
|
43147
|
+
}, SL = (t) => t != null && t.enabled ? {
|
|
43147
43148
|
enabled: !0,
|
|
43148
43149
|
scrollerLocation: t == null ? void 0 : t.scrollerLocation
|
|
43149
|
-
} : { enabled: !1 },
|
|
43150
|
+
} : { enabled: !1 }, wL = (t) => {
|
|
43150
43151
|
const i = Zd(t, Rr.yAxis);
|
|
43151
43152
|
return i.gridLine = t.templateMainYHasGridLines || !1, i;
|
|
43152
43153
|
}, Bp = (t) => {
|
|
@@ -43163,7 +43164,7 @@ const Xl = (t) => t != null && t.enabled && t.position || null, Zd = (t, i) => {
|
|
|
43163
43164
|
break;
|
|
43164
43165
|
}
|
|
43165
43166
|
return i;
|
|
43166
|
-
},
|
|
43167
|
+
}, CL = "classic", ua = (t, i) => {
|
|
43167
43168
|
var ut, mt, ft, _;
|
|
43168
43169
|
const f = Xl(t.legend), R = lu(t, "cartesian"), W = Zd(t.xAxis, Rr.xAxis);
|
|
43169
43170
|
let tt = null;
|
|
@@ -43182,8 +43183,8 @@ const Xl = (t) => t != null && t.enabled && t.position || null, Zd = (t, i) => {
|
|
|
43182
43183
|
max: null,
|
|
43183
43184
|
tickInterval: null
|
|
43184
43185
|
};
|
|
43185
|
-
t.y2Axis && (at = Ut(Ut({}, at),
|
|
43186
|
-
const ht =
|
|
43186
|
+
t.y2Axis && (at = Ut(Ut({}, at), wL(t.y2Axis)));
|
|
43187
|
+
const ht = SL(t.navigator);
|
|
43187
43188
|
return oe(Ut(Ut(oe(Ut({}, Rr), {
|
|
43188
43189
|
legend: f,
|
|
43189
43190
|
autoZoom: ht,
|
|
@@ -43208,9 +43209,9 @@ const Xl = (t) => t != null && t.enabled && t.position || null, Zd = (t, i) => {
|
|
|
43208
43209
|
);
|
|
43209
43210
|
return oe(Ut({}, W), {
|
|
43210
43211
|
designPerSeries: it,
|
|
43211
|
-
stackType:
|
|
43212
|
+
stackType: CL
|
|
43212
43213
|
});
|
|
43213
|
-
},
|
|
43214
|
+
}, TL = (t, i) => {
|
|
43214
43215
|
var R;
|
|
43215
43216
|
const f = ua(
|
|
43216
43217
|
i,
|
|
@@ -43223,7 +43224,7 @@ const Xl = (t) => t != null && t.enabled && t.position || null, Zd = (t, i) => {
|
|
|
43223
43224
|
);
|
|
43224
43225
|
}
|
|
43225
43226
|
return f;
|
|
43226
|
-
},
|
|
43227
|
+
}, kL = (t, i, f) => {
|
|
43227
43228
|
var it;
|
|
43228
43229
|
const R = ua(t, f);
|
|
43229
43230
|
R.lineWidth = Bp(t.lineWidth || { width: "bold" }), R.marker = au(
|
|
@@ -43236,7 +43237,7 @@ const Xl = (t) => t != null && t.enabled && t.position || null, Zd = (t, i) => {
|
|
|
43236
43237
|
return oe(Ut({}, R), {
|
|
43237
43238
|
designPerSeries: tt
|
|
43238
43239
|
});
|
|
43239
|
-
},
|
|
43240
|
+
}, ML = (t, i, f) => {
|
|
43240
43241
|
var R;
|
|
43241
43242
|
return oe(Ut({}, Kv(t, i, f, "area")), {
|
|
43242
43243
|
lineWidth: Bp(t.lineWidth || { width: "thin" }),
|
|
@@ -43245,20 +43246,20 @@ const Xl = (t) => t != null && t.enabled && t.position || null, Zd = (t, i) => {
|
|
|
43245
43246
|
}, lu = (t, i) => {
|
|
43246
43247
|
var W;
|
|
43247
43248
|
const f = {
|
|
43248
|
-
seriesCapacity: i === "categorical" ? $d : i === "pie" ?
|
|
43249
|
-
categoriesCapacity: i === "scatter" ?
|
|
43249
|
+
seriesCapacity: i === "categorical" ? $d : i === "pie" ? sL : $v,
|
|
43250
|
+
categoriesCapacity: i === "scatter" ? aL : $d
|
|
43250
43251
|
}, R = (W = t == null ? void 0 : t.dataLimits) != null ? W : {};
|
|
43251
43252
|
return "categoriesCapacity" in R && (R == null ? void 0 : R.categoriesCapacity) !== void 0 && (f.categoriesCapacity = R == null ? void 0 : R.categoriesCapacity), (R == null ? void 0 : R.seriesCapacity) !== void 0 && (f.seriesCapacity = R == null ? void 0 : R.seriesCapacity), f;
|
|
43252
|
-
},
|
|
43253
|
+
}, AL = {
|
|
43253
43254
|
enabled: !0,
|
|
43254
43255
|
showCategories: !0,
|
|
43255
43256
|
showValue: !0,
|
|
43256
43257
|
showPercent: !0,
|
|
43257
43258
|
showDecimals: !1
|
|
43258
|
-
},
|
|
43259
|
+
}, PL = "classic", EL = (t) => {
|
|
43259
43260
|
var at, ht, ut, mt, ft;
|
|
43260
43261
|
const { legend: i, labels: f } = t;
|
|
43261
|
-
let R =
|
|
43262
|
+
let R = AL;
|
|
43262
43263
|
f && (R = oe(Ut({}, R), {
|
|
43263
43264
|
showCategories: (at = f.categories) != null ? at : !1,
|
|
43264
43265
|
showDecimals: (ht = f.decimals) != null ? ht : !1,
|
|
@@ -43266,7 +43267,7 @@ const Xl = (t) => t != null && t.enabled && t.position || null, Zd = (t, i) => {
|
|
|
43266
43267
|
showPercent: (mt = f.percent) != null ? mt : !1,
|
|
43267
43268
|
showValue: (ft = f.value) != null ? ft : !1
|
|
43268
43269
|
}));
|
|
43269
|
-
const W =
|
|
43270
|
+
const W = PL, tt = t != null && t.convolution ? t.convolution : { enabled: !1 }, it = lu(t, "pie");
|
|
43270
43271
|
return oe(Ut({}, Rr), {
|
|
43271
43272
|
pieLabels: R,
|
|
43272
43273
|
pieType: W,
|
|
@@ -43274,7 +43275,7 @@ const Xl = (t) => t != null && t.enabled && t.position || null, Zd = (t, i) => {
|
|
|
43274
43275
|
legend: Xl(i),
|
|
43275
43276
|
dataLimits: it
|
|
43276
43277
|
});
|
|
43277
|
-
},
|
|
43278
|
+
}, LL = (t) => {
|
|
43278
43279
|
var ht, ut, mt, ft, _;
|
|
43279
43280
|
const {
|
|
43280
43281
|
funnelType: i = Ip,
|
|
@@ -43300,39 +43301,39 @@ const Xl = (t) => t != null && t.enabled && t.position || null, Zd = (t, i) => {
|
|
|
43300
43301
|
legend: Xl(W),
|
|
43301
43302
|
dataLimits: at
|
|
43302
43303
|
});
|
|
43303
|
-
},
|
|
43304
|
+
}, OL = (t) => t, DL = (t) => t, IL = "column", RL = (t, i) => {
|
|
43304
43305
|
const f = ua(t, !1), R = Gl(
|
|
43305
43306
|
t != null ? t : {},
|
|
43306
43307
|
cu()
|
|
43307
43308
|
), W = jp(i, "polar", R);
|
|
43308
43309
|
return oe(Ut({}, f), {
|
|
43309
|
-
polarType:
|
|
43310
|
+
polarType: IL,
|
|
43310
43311
|
designPerSeries: W
|
|
43311
43312
|
});
|
|
43312
|
-
},
|
|
43313
|
+
}, jL = (t) => Ut(Ut({}, Zv), t), BL = (t) => {
|
|
43313
43314
|
var i;
|
|
43314
43315
|
return oe(Ut({}, ua(t, !1)), {
|
|
43315
43316
|
lineWidth: 0,
|
|
43316
43317
|
marker: au((i = t == null ? void 0 : t.markers) != null ? i : { enabled: !0, fill: "filled", size: "small" }),
|
|
43317
43318
|
dataLimits: lu(t, "scatter"),
|
|
43318
|
-
markerSize:
|
|
43319
|
+
markerSize: jL(t.markerSize),
|
|
43319
43320
|
legend: Xl(t.legend)
|
|
43320
43321
|
});
|
|
43321
|
-
},
|
|
43322
|
+
}, _L = (t) => oe(Ut({}, ua(t, !1)), {
|
|
43322
43323
|
boxplotType: t.subtype === "boxplot/hollow" ? "hollow" : "full"
|
|
43323
|
-
}),
|
|
43324
|
+
}), NL = {
|
|
43324
43325
|
fill: "filled",
|
|
43325
43326
|
size: {
|
|
43326
43327
|
defaultSize: 4,
|
|
43327
43328
|
minSize: 4,
|
|
43328
43329
|
maxSize: 24
|
|
43329
43330
|
}
|
|
43330
|
-
},
|
|
43331
|
+
}, zL = (t) => oe(Ut({}, Rr), {
|
|
43331
43332
|
markers: dn(
|
|
43332
|
-
|
|
43333
|
+
NL,
|
|
43333
43334
|
t.markers || {}
|
|
43334
43335
|
)
|
|
43335
|
-
}),
|
|
43336
|
+
}), FL = {
|
|
43336
43337
|
type: "sunburst",
|
|
43337
43338
|
borderWidth: 0,
|
|
43338
43339
|
dataLabels: {
|
|
@@ -43340,7 +43341,7 @@ const Xl = (t) => t != null && t.enabled && t.position || null, Zd = (t, i) => {
|
|
|
43340
43341
|
textOutline: "none"
|
|
43341
43342
|
}
|
|
43342
43343
|
}
|
|
43343
|
-
},
|
|
43344
|
+
}, WL = {
|
|
43344
43345
|
title: { text: null },
|
|
43345
43346
|
chart: {
|
|
43346
43347
|
type: "sunburst",
|
|
@@ -43363,13 +43364,13 @@ const Xl = (t) => t != null && t.enabled && t.position || null, Zd = (t, i) => {
|
|
|
43363
43364
|
}
|
|
43364
43365
|
}
|
|
43365
43366
|
};
|
|
43366
|
-
function
|
|
43367
|
-
return oe(Ut({},
|
|
43367
|
+
function HL(t, i, f, R, W) {
|
|
43368
|
+
return oe(Ut({}, WL), {
|
|
43368
43369
|
series: [
|
|
43369
|
-
oe(Ut({},
|
|
43370
|
+
oe(Ut({}, FL), {
|
|
43370
43371
|
name: "Root",
|
|
43371
|
-
data:
|
|
43372
|
-
levels:
|
|
43372
|
+
data: iL(t, i, W),
|
|
43373
|
+
levels: eL(t, i, f, W),
|
|
43373
43374
|
showInLegend: !1,
|
|
43374
43375
|
turboThreshold: 2e3
|
|
43375
43376
|
}),
|
|
@@ -43396,7 +43397,7 @@ function WL(t, i, f, R, W) {
|
|
|
43396
43397
|
legend: Ho(Xl(f.legend))
|
|
43397
43398
|
});
|
|
43398
43399
|
}
|
|
43399
|
-
const
|
|
43400
|
+
const UL = (t, i, f, R, W, tt) => {
|
|
43400
43401
|
var ut, mt;
|
|
43401
43402
|
const it = [], at = ou(i, f), ht = 20;
|
|
43402
43403
|
switch (i) {
|
|
@@ -43405,7 +43406,7 @@ const HL = (t, i, f, R, W, tt) => {
|
|
|
43405
43406
|
series: _,
|
|
43406
43407
|
convolutionSeries: lt,
|
|
43407
43408
|
alerts: G
|
|
43408
|
-
} =
|
|
43409
|
+
} = M2(
|
|
43409
43410
|
t,
|
|
43410
43411
|
R,
|
|
43411
43412
|
ft,
|
|
@@ -43425,7 +43426,7 @@ const HL = (t, i, f, R, W, tt) => {
|
|
|
43425
43426
|
// level animation only disables initial or subsequent paints
|
|
43426
43427
|
legend: Ho(ft.legend),
|
|
43427
43428
|
series: _,
|
|
43428
|
-
plotOptions:
|
|
43429
|
+
plotOptions: d2(
|
|
43429
43430
|
ft.pieType,
|
|
43430
43431
|
ft.pieLabels,
|
|
43431
43432
|
R,
|
|
@@ -43442,7 +43443,7 @@ const HL = (t, i, f, R, W, tt) => {
|
|
|
43442
43443
|
}
|
|
43443
43444
|
}, alerts: it };
|
|
43444
43445
|
case "funnel":
|
|
43445
|
-
const $ = f, { series: Y, alerts: q } =
|
|
43446
|
+
const $ = f, { series: Y, alerts: q } = L2(
|
|
43446
43447
|
t,
|
|
43447
43448
|
R,
|
|
43448
43449
|
$,
|
|
@@ -43462,12 +43463,12 @@ const HL = (t, i, f, R, W, tt) => {
|
|
|
43462
43463
|
// level animation only disables initial or subsequent paints
|
|
43463
43464
|
legend: Ho($.legend),
|
|
43464
43465
|
series: Y,
|
|
43465
|
-
plotOptions:
|
|
43466
|
+
plotOptions: T2($, R, tt),
|
|
43466
43467
|
tooltip: Ug((mt = $.funnelLabels) == null ? void 0 : mt.showDecimals, R)
|
|
43467
43468
|
}, alerts: it };
|
|
43468
43469
|
case "treemap":
|
|
43469
43470
|
return {
|
|
43470
|
-
options:
|
|
43471
|
+
options: Q2(
|
|
43471
43472
|
t,
|
|
43472
43473
|
R,
|
|
43473
43474
|
f,
|
|
@@ -43478,7 +43479,7 @@ const HL = (t, i, f, R, W, tt) => {
|
|
|
43478
43479
|
};
|
|
43479
43480
|
case "sunburst":
|
|
43480
43481
|
return {
|
|
43481
|
-
options:
|
|
43482
|
+
options: HL(
|
|
43482
43483
|
t,
|
|
43483
43484
|
R,
|
|
43484
43485
|
f,
|
|
@@ -43500,7 +43501,7 @@ function qv(t, i, f) {
|
|
|
43500
43501
|
R
|
|
43501
43502
|
);
|
|
43502
43503
|
}
|
|
43503
|
-
const
|
|
43504
|
+
const GL = (t, i, f) => [{
|
|
43504
43505
|
type: t.type,
|
|
43505
43506
|
startOnTick: !1,
|
|
43506
43507
|
endOnTick: !(t.max || i),
|
|
@@ -43534,7 +43535,7 @@ const UL = (t, i, f) => [{
|
|
|
43534
43535
|
tickInterval: t.enabled ? t.tickInterval : null,
|
|
43535
43536
|
min: t.enabled ? t.min : null,
|
|
43536
43537
|
max: t.enabled ? t.max : null
|
|
43537
|
-
}],
|
|
43538
|
+
}], XL = (t, i, f) => [{
|
|
43538
43539
|
type: t.type,
|
|
43539
43540
|
startOnTick: !1,
|
|
43540
43541
|
endOnTick: !(t.max || i),
|
|
@@ -43573,12 +43574,12 @@ const UL = (t, i, f) => [{
|
|
|
43573
43574
|
}], Jv = "#00cee6", Kd = (t) => {
|
|
43574
43575
|
const i = t.rawValue == null ? Number(t.displayValue) : Number(t.rawValue);
|
|
43575
43576
|
return Number.isNaN(i) || i === void 0 ? null : i;
|
|
43576
|
-
},
|
|
43577
|
+
}, YL = (t) => t ? Kd(t) : 1, VL = (t, i) => {
|
|
43577
43578
|
const { xAxis: f, yAxis: R, breakByPoint: W, breakByColor: tt, size: it } = t, { xCategoriesMap: at, yCategoriesMap: ht } = i, ut = at.get(f.displayValue), mt = ht.get(R.displayValue), ft = f.blur || R.blur || (W == null ? void 0 : W.blur);
|
|
43578
43579
|
return {
|
|
43579
43580
|
x: ut !== void 0 ? ut : Kd(f),
|
|
43580
43581
|
y: mt !== void 0 ? mt : Kd(R),
|
|
43581
|
-
z:
|
|
43582
|
+
z: YL(it),
|
|
43582
43583
|
maskedX: f.displayValue,
|
|
43583
43584
|
maskedY: R.displayValue,
|
|
43584
43585
|
maskedBreakByPoint: W == null ? void 0 : W.displayValue,
|
|
@@ -43587,7 +43588,7 @@ const UL = (t, i, f) => [{
|
|
|
43587
43588
|
maskedSize: it == null ? void 0 : it.displayValue,
|
|
43588
43589
|
selected: ft
|
|
43589
43590
|
};
|
|
43590
|
-
},
|
|
43591
|
+
}, $L = (t, i, f) => {
|
|
43591
43592
|
var it, at;
|
|
43592
43593
|
const R = /* @__PURE__ */ new Map();
|
|
43593
43594
|
t.forEach((ht) => {
|
|
@@ -43608,7 +43609,7 @@ const UL = (t, i, f) => [{
|
|
|
43608
43609
|
index: mt
|
|
43609
43610
|
});
|
|
43610
43611
|
}), W;
|
|
43611
|
-
},
|
|
43612
|
+
}, ZL = (t, i, f) => {
|
|
43612
43613
|
const R = {
|
|
43613
43614
|
enabled: !0,
|
|
43614
43615
|
fillOpacity: 0.7,
|
|
@@ -43639,10 +43640,10 @@ const UL = (t, i, f) => [{
|
|
|
43639
43640
|
color: By(f) || Jv
|
|
43640
43641
|
}
|
|
43641
43642
|
];
|
|
43642
|
-
},
|
|
43643
|
+
}, KL = (t, i) => {
|
|
43643
43644
|
const f = t.get(i);
|
|
43644
43645
|
return f ? f.index : 0;
|
|
43645
|
-
},
|
|
43646
|
+
}, qL = (t, i) => {
|
|
43646
43647
|
const f = dv({
|
|
43647
43648
|
getValueFromDataStructure: (R) => {
|
|
43648
43649
|
var W;
|
|
@@ -43655,10 +43656,10 @@ const UL = (t, i, f) => [{
|
|
|
43655
43656
|
return t.map((R) => oe(Ut({}, R), {
|
|
43656
43657
|
data: f(R.data, i)
|
|
43657
43658
|
}));
|
|
43658
|
-
},
|
|
43659
|
+
}, JL = (t) => {
|
|
43659
43660
|
if (t && vn(t) && t.color)
|
|
43660
43661
|
return t.color;
|
|
43661
|
-
},
|
|
43662
|
+
}, QL = (t, i, f, R) => {
|
|
43662
43663
|
for (const W of i) {
|
|
43663
43664
|
const {
|
|
43664
43665
|
x: tt,
|
|
@@ -43671,9 +43672,9 @@ const UL = (t, i, f) => [{
|
|
|
43671
43672
|
color: _,
|
|
43672
43673
|
maskedBreakByColor: lt,
|
|
43673
43674
|
selected: G
|
|
43674
|
-
} =
|
|
43675
|
+
} = VL(W, f);
|
|
43675
43676
|
if (tt !== null && it !== null) {
|
|
43676
|
-
const F = t[
|
|
43677
|
+
const F = t[KL(R, lt)], $ = {
|
|
43677
43678
|
color: _ || F.color || Jv,
|
|
43678
43679
|
x: tt,
|
|
43679
43680
|
y: it,
|
|
@@ -43691,31 +43692,31 @@ const UL = (t, i, f) => [{
|
|
|
43691
43692
|
}
|
|
43692
43693
|
}
|
|
43693
43694
|
return t;
|
|
43694
|
-
},
|
|
43695
|
+
}, tO = (t) => {
|
|
43695
43696
|
const i = t == null ? void 0 : t.breakByColor, f = t == null ? void 0 : t.breakByPoint;
|
|
43696
43697
|
return i && Li(i) || f && Li(f) || "";
|
|
43697
|
-
},
|
|
43698
|
-
const W = f == null ? void 0 : f.breakByColor, tt =
|
|
43699
|
-
let ht =
|
|
43700
|
-
return ht =
|
|
43701
|
-
},
|
|
43702
|
-
const tt = [], it =
|
|
43698
|
+
}, eO = (t, i, f, R) => {
|
|
43699
|
+
const W = f == null ? void 0 : f.breakByColor, tt = tO(f), it = JL(W), at = W && !vn(W) ? $L(t, f, R) : /* @__PURE__ */ new Map();
|
|
43700
|
+
let ht = ZL(at, tt, it);
|
|
43701
|
+
return ht = QL(ht, t, i, at), it && (ht = qL(ht, it)), ht;
|
|
43702
|
+
}, iO = (t, i) => i ? t.slice(0, i) : t, rO = (t, i, f, R, W) => {
|
|
43703
|
+
const tt = [], it = eO(t, i, f, R);
|
|
43703
43704
|
return W && it.length > W ? (tt.push(aa(it.length, W)), {
|
|
43704
|
-
series:
|
|
43705
|
+
series: iO(it, W),
|
|
43705
43706
|
alerts: tt
|
|
43706
43707
|
}) : { series: it, alerts: tt };
|
|
43707
|
-
}, ih = 20,
|
|
43708
|
+
}, ih = 20, nO = 30, oO = (t) => oe(Ut({}, Ho(t)), {
|
|
43708
43709
|
symbolHeight: 12,
|
|
43709
43710
|
symbolWidth: 12,
|
|
43710
43711
|
itemMarginBottom: 0,
|
|
43711
43712
|
itemMarginTop: 0
|
|
43712
|
-
}),
|
|
43713
|
+
}), sO = (t, i, f, R, W) => {
|
|
43713
43714
|
const tt = [], it = ou(i, f), at = R, { scatterDataTable: ht } = t, { seriesCapacity: ut, categoriesCapacity: mt } = f.dataLimits;
|
|
43714
43715
|
let { xCategories: ft, yCategories: _ } = t;
|
|
43715
43716
|
ft && ft.length > mt && (tt.push(Ud("x", ft.length, mt)), ft = ft.slice(0, mt)), _ && _.length > mt && (tt.push(Ud("y", _.length, mt)), _ = _.slice(0, mt));
|
|
43716
|
-
const { series: lt, alerts: G } =
|
|
43717
|
+
const { series: lt, alerts: G } = rO(
|
|
43717
43718
|
ht,
|
|
43718
|
-
|
|
43719
|
+
EP(ft, _),
|
|
43719
43720
|
at,
|
|
43720
43721
|
W,
|
|
43721
43722
|
ut
|
|
@@ -43726,27 +43727,27 @@ const UL = (t, i, f) => [{
|
|
|
43726
43727
|
chart: {
|
|
43727
43728
|
type: it,
|
|
43728
43729
|
spacing: [ih, ih, ih, ih],
|
|
43729
|
-
marginTop:
|
|
43730
|
+
marginTop: nO,
|
|
43730
43731
|
alignTicks: !1,
|
|
43731
43732
|
polar: !1
|
|
43732
43733
|
},
|
|
43733
|
-
xAxis:
|
|
43734
|
+
xAxis: GL(
|
|
43734
43735
|
f.xAxis,
|
|
43735
43736
|
ft == null ? void 0 : ft.slice(0, mt),
|
|
43736
43737
|
at
|
|
43737
43738
|
),
|
|
43738
|
-
yAxis:
|
|
43739
|
+
yAxis: XL(
|
|
43739
43740
|
f.yAxis,
|
|
43740
43741
|
_ == null ? void 0 : _.slice(0, mt),
|
|
43741
43742
|
at
|
|
43742
43743
|
),
|
|
43743
|
-
legend:
|
|
43744
|
+
legend: oO(f.legend),
|
|
43744
43745
|
series: lt,
|
|
43745
|
-
plotOptions:
|
|
43746
|
-
tooltip:
|
|
43746
|
+
plotOptions: hL(f, at),
|
|
43747
|
+
tooltip: NE(at)
|
|
43747
43748
|
}, alerts: tt };
|
|
43748
|
-
},
|
|
43749
|
-
const R = [], [W, tt] = t.series, { boxplotType: it } = i, at = 0.15, ht = en(f, 0), ut = ht, mt = Lh(ht, -1 * at), ft = Lh(ht, -2 * at), _ =
|
|
43749
|
+
}, aO = (t, i, f) => {
|
|
43750
|
+
const R = [], [W, tt] = t.series, { boxplotType: it } = i, at = 0.15, ht = en(f, 0), ut = ht, mt = Lh(ht, -1 * at), ft = Lh(ht, -2 * at), _ = lP(ft, 2 * at), lt = [
|
|
43750
43751
|
oe(Ut({}, W), {
|
|
43751
43752
|
data: W.data.map((G, F) => {
|
|
43752
43753
|
var $;
|
|
@@ -43793,13 +43794,13 @@ const UL = (t, i, f) => [{
|
|
|
43793
43794
|
},
|
|
43794
43795
|
color: ft
|
|
43795
43796
|
})), { series: lt, alerts: R };
|
|
43796
|
-
}, Kr = "#d1d1d7",
|
|
43797
|
+
}, Kr = "#d1d1d7", lO = (t) => t.series[0].data.reduce(
|
|
43797
43798
|
(i, { low: f, high: R }) => ({
|
|
43798
43799
|
min: Math.min(i.min, f),
|
|
43799
43800
|
max: Math.max(i.max, R)
|
|
43800
43801
|
}),
|
|
43801
43802
|
{ min: Number.POSITIVE_INFINITY, max: Number.NEGATIVE_INFINITY }
|
|
43802
|
-
),
|
|
43803
|
+
), cO = (t, i, f) => [
|
|
43803
43804
|
{
|
|
43804
43805
|
labels: {
|
|
43805
43806
|
overflow: "none",
|
|
@@ -43838,8 +43839,8 @@ const UL = (t, i, f) => [{
|
|
|
43838
43839
|
min: t.enabled ? t.min : null,
|
|
43839
43840
|
max: t.enabled ? t.max : null
|
|
43840
43841
|
}
|
|
43841
|
-
],
|
|
43842
|
-
const R =
|
|
43842
|
+
], hO = (t, i, f) => {
|
|
43843
|
+
const R = lO(i);
|
|
43843
43844
|
return [
|
|
43844
43845
|
{
|
|
43845
43846
|
labels: {
|
|
@@ -43877,7 +43878,7 @@ const UL = (t, i, f) => [{
|
|
|
43877
43878
|
}, Kg = (t) => function(i, f) {
|
|
43878
43879
|
const R = f ? this.point[f] : void 0;
|
|
43879
43880
|
return R === void 0 || isNaN(R) ? "" : Hi(li(t), R);
|
|
43880
|
-
},
|
|
43881
|
+
}, uO = (t) => {
|
|
43881
43882
|
var i, f, R, W;
|
|
43882
43883
|
return {
|
|
43883
43884
|
series: {
|
|
@@ -43920,10 +43921,10 @@ const UL = (t, i, f) => [{
|
|
|
43920
43921
|
}
|
|
43921
43922
|
};
|
|
43922
43923
|
};
|
|
43923
|
-
function
|
|
43924
|
+
function dO(t) {
|
|
43924
43925
|
return t === void 0;
|
|
43925
43926
|
}
|
|
43926
|
-
const
|
|
43927
|
+
const pO = (t, i) => ({
|
|
43927
43928
|
animation: !1,
|
|
43928
43929
|
backgroundColor: to,
|
|
43929
43930
|
borderColor: Qn,
|
|
@@ -43938,7 +43939,7 @@ const dO = (t, i) => ({
|
|
|
43938
43939
|
q3: it,
|
|
43939
43940
|
q1: at,
|
|
43940
43941
|
median: ht
|
|
43941
|
-
} = this.point, ut =
|
|
43942
|
+
} = this.point, ut = dO(W), mt = Rl(t.category, f, `${f}`);
|
|
43942
43943
|
if (ut) {
|
|
43943
43944
|
const $ = yi(t.outliers, R, `${R}`);
|
|
43944
43945
|
return oa(`
|
|
@@ -43988,8 +43989,8 @@ const dO = (t, i) => ({
|
|
|
43988
43989
|
<div>${t.category ? mt : this.series.name}</div>
|
|
43989
43990
|
`);
|
|
43990
43991
|
}
|
|
43991
|
-
}),
|
|
43992
|
-
const tt = ou("boxplot", i), { series: it, alerts: at } =
|
|
43992
|
+
}), fO = (t, i, f, R, W) => {
|
|
43993
|
+
const tt = ou("boxplot", i), { series: it, alerts: at } = aO(
|
|
43993
43994
|
t,
|
|
43994
43995
|
i,
|
|
43995
43996
|
W == null ? void 0 : W.palette.variantColors
|
|
@@ -44025,15 +44026,15 @@ const dO = (t, i) => ({
|
|
|
44025
44026
|
}
|
|
44026
44027
|
},
|
|
44027
44028
|
legend: Ho(i.legend),
|
|
44028
|
-
xAxis:
|
|
44029
|
+
xAxis: cO(i.xAxis, ht, f.category),
|
|
44029
44030
|
// Note: as we have multiple data options that describe the yAxis,
|
|
44030
44031
|
// we are just using one of them to get formatting configuration
|
|
44031
|
-
yAxis:
|
|
44032
|
+
yAxis: hO(i.yAxis, t, f.whiskerMax),
|
|
44032
44033
|
series: it,
|
|
44033
|
-
plotOptions:
|
|
44034
|
-
tooltip:
|
|
44034
|
+
plotOptions: uO(i.valueLabel),
|
|
44035
|
+
tooltip: pO(f, R)
|
|
44035
44036
|
}, alerts: at };
|
|
44036
|
-
},
|
|
44037
|
+
}, gO = (t, i, f) => ({
|
|
44037
44038
|
animation: !1,
|
|
44038
44039
|
crosshairs: !0,
|
|
44039
44040
|
backgroundColor: to,
|
|
@@ -44110,7 +44111,7 @@ const dO = (t, i) => ({
|
|
|
44110
44111
|
let Y = 1 / 0, q = -1 / 0, Q = -1, J = 0;
|
|
44111
44112
|
if (_.options.series.forEach((A, b) => {
|
|
44112
44113
|
if (R.breakBy.length === 0 && b < R.seriesValues.length)
|
|
44113
|
-
Qs(A.name) && (Q =
|
|
44114
|
+
Qs(A.name) && (Q = rE(A, $, lt)), A.zIndex = 1, A.data.forEach((d) => {
|
|
44114
44115
|
d.y && d.y < Y && (Y = d.y), d.y && d.y > q && (q = d.y);
|
|
44115
44116
|
});
|
|
44116
44117
|
else {
|
|
@@ -44119,7 +44120,7 @@ const dO = (t, i) => ({
|
|
|
44119
44120
|
let m = 0;
|
|
44120
44121
|
R.breakBy.length === 0 && (m = b - R.seriesValues.length);
|
|
44121
44122
|
const v = R.rangeValues[m], g = v[0].column.name.indexOf("_") + 1, x = v[1].column.name.substring(g), E = v[0].column.name.substring(g);
|
|
44122
|
-
A.type = "arearange", Qs(A.name) &&
|
|
44123
|
+
A.type = "arearange", Qs(A.name) && nE(A, $), J = Math.max(A.data.length, J), A.data = A.data.map((P, S) => {
|
|
44123
44124
|
const u = oe(Ut({}, P), {
|
|
44124
44125
|
low: d[S].y,
|
|
44125
44126
|
high: P.y,
|
|
@@ -44128,19 +44129,19 @@ const dO = (t, i) => ({
|
|
|
44128
44129
|
lowerPointName: E
|
|
44129
44130
|
});
|
|
44130
44131
|
return u.low && u.low < Y && (Y = u.low), u.high && u.high > q && (q = u.high), u;
|
|
44131
|
-
}), Qs(A.name) &&
|
|
44132
|
+
}), Qs(A.name) && oE(A, $);
|
|
44132
44133
|
}
|
|
44133
|
-
}), _.options.xAxis || (_.options.xAxis = []), Q > 0 &&
|
|
44134
|
+
}), _.options.xAxis || (_.options.xAxis = []), Q > 0 && sE(_.options.xAxis, Q, J), i === "arearange" && f.lineType === "smooth") {
|
|
44134
44135
|
const A = "areasplinerange";
|
|
44135
44136
|
_.options.chart.type = A, (D = _.options.navigator) != null && D.series && (_.options.navigator.series.type = A);
|
|
44136
44137
|
}
|
|
44137
|
-
i === "arearange" && (_.options.tooltip =
|
|
44138
|
+
i === "arearange" && (_.options.tooltip = gO(!1, R, W));
|
|
44138
44139
|
const [U] = (T = _.options.yAxis) != null ? T : [], N = oe(Ut({}, U), {
|
|
44139
44140
|
min: Y,
|
|
44140
44141
|
max: q
|
|
44141
44142
|
});
|
|
44142
44143
|
return _.options.yAxis = [N], _;
|
|
44143
|
-
},
|
|
44144
|
+
}, OD = (t, i, f, R, W, tt, it) => {
|
|
44144
44145
|
switch (t.type) {
|
|
44145
44146
|
case "range":
|
|
44146
44147
|
return qg(
|
|
@@ -44153,7 +44154,7 @@ const dO = (t, i) => ({
|
|
|
44153
44154
|
it
|
|
44154
44155
|
);
|
|
44155
44156
|
case "cartesian": {
|
|
44156
|
-
const at = R, ht =
|
|
44157
|
+
const at = R, ht = cE(at) ? qg(
|
|
44157
44158
|
oe(Ut({}, t), { type: "range" }),
|
|
44158
44159
|
i,
|
|
44159
44160
|
f,
|
|
@@ -44170,10 +44171,10 @@ const dO = (t, i) => ({
|
|
|
44170
44171
|
tt,
|
|
44171
44172
|
it
|
|
44172
44173
|
);
|
|
44173
|
-
return
|
|
44174
|
+
return lE(ht.options.series), ht;
|
|
44174
44175
|
}
|
|
44175
44176
|
case "categorical":
|
|
44176
|
-
return
|
|
44177
|
+
return UL(
|
|
44177
44178
|
t,
|
|
44178
44179
|
i,
|
|
44179
44180
|
f,
|
|
@@ -44182,7 +44183,7 @@ const dO = (t, i) => ({
|
|
|
44182
44183
|
tt
|
|
44183
44184
|
);
|
|
44184
44185
|
case "scatter":
|
|
44185
|
-
return
|
|
44186
|
+
return sO(
|
|
44186
44187
|
t,
|
|
44187
44188
|
i,
|
|
44188
44189
|
f,
|
|
@@ -44190,7 +44191,7 @@ const dO = (t, i) => ({
|
|
|
44190
44191
|
tt
|
|
44191
44192
|
);
|
|
44192
44193
|
case "boxplot":
|
|
44193
|
-
return
|
|
44194
|
+
return fO(
|
|
44194
44195
|
t,
|
|
44195
44196
|
f,
|
|
44196
44197
|
R,
|
|
@@ -44200,7 +44201,7 @@ const dO = (t, i) => ({
|
|
|
44200
44201
|
default:
|
|
44201
44202
|
throw new Wo("errors.unexpectedChartType", { chartType: t.type });
|
|
44202
44203
|
}
|
|
44203
|
-
},
|
|
44204
|
+
}, mO = {
|
|
44204
44205
|
legend: {
|
|
44205
44206
|
enabled: !0,
|
|
44206
44207
|
position: "bottom"
|
|
@@ -44262,59 +44263,59 @@ const dO = (t, i) => ({
|
|
|
44262
44263
|
decimals: !1,
|
|
44263
44264
|
value: !1
|
|
44264
44265
|
}
|
|
44265
|
-
}, cu = () => gp(
|
|
44266
|
+
}, cu = () => gp(mO), DD = (t) => My(t) ? "cartesian" : Xk(t) ? "categorical" : Yk(t) ? "scatter" : Vk(t) ? "scattermap" : $k(t) ? "indicator" : Kk(t) ? "areamap" : Zk(t) ? "boxplot" : "table";
|
|
44266
44267
|
export {
|
|
44267
|
-
|
|
44268
|
+
Xk as $,
|
|
44268
44269
|
im as A,
|
|
44269
|
-
|
|
44270
|
+
$T as B,
|
|
44270
44271
|
me as C,
|
|
44271
|
-
|
|
44272
|
-
|
|
44273
|
-
|
|
44274
|
-
|
|
44272
|
+
bC as D,
|
|
44273
|
+
nD as E,
|
|
44274
|
+
AD as F,
|
|
44275
|
+
yD as G,
|
|
44275
44276
|
Mm as H,
|
|
44276
44277
|
ly as I,
|
|
44277
44278
|
qn as J,
|
|
44278
44279
|
Br as K,
|
|
44279
|
-
|
|
44280
|
+
OE as L,
|
|
44280
44281
|
Re as M,
|
|
44281
44282
|
de as N,
|
|
44282
|
-
|
|
44283
|
-
|
|
44284
|
-
|
|
44285
|
-
|
|
44286
|
-
|
|
44283
|
+
ME as O,
|
|
44284
|
+
bD as P,
|
|
44285
|
+
AE as Q,
|
|
44286
|
+
xD as R,
|
|
44287
|
+
vD as S,
|
|
44287
44288
|
Wo as T,
|
|
44288
|
-
|
|
44289
|
-
|
|
44290
|
-
|
|
44289
|
+
mD as U,
|
|
44290
|
+
Ep as V,
|
|
44291
|
+
My as W,
|
|
44291
44292
|
vP as X,
|
|
44292
|
-
|
|
44293
|
-
|
|
44294
|
-
|
|
44295
|
-
|
|
44293
|
+
bP as Y,
|
|
44294
|
+
XO as Z,
|
|
44295
|
+
$k as _,
|
|
44296
|
+
PT as a,
|
|
44296
44297
|
Md as a$,
|
|
44297
|
-
|
|
44298
|
-
|
|
44299
|
-
|
|
44300
|
-
|
|
44301
|
-
|
|
44302
|
-
|
|
44303
|
-
|
|
44304
|
-
|
|
44298
|
+
QO as a0,
|
|
44299
|
+
Yk as a1,
|
|
44300
|
+
jO as a2,
|
|
44301
|
+
SD as a3,
|
|
44302
|
+
gD as a4,
|
|
44303
|
+
$h as a5,
|
|
44304
|
+
TO as a6,
|
|
44305
|
+
MO as a7,
|
|
44305
44306
|
_O as a8,
|
|
44306
|
-
|
|
44307
|
-
|
|
44307
|
+
NO as a9,
|
|
44308
|
+
_C as aA,
|
|
44308
44309
|
Td as aB,
|
|
44309
|
-
|
|
44310
|
-
|
|
44311
|
-
|
|
44312
|
-
|
|
44313
|
-
|
|
44314
|
-
|
|
44315
|
-
|
|
44316
|
-
|
|
44317
|
-
|
|
44310
|
+
AC as aC,
|
|
44311
|
+
ZC as aD,
|
|
44312
|
+
KC as aE,
|
|
44313
|
+
OC as aF,
|
|
44314
|
+
PC as aG,
|
|
44315
|
+
IC as aH,
|
|
44316
|
+
LC as aI,
|
|
44317
|
+
DC as aJ,
|
|
44318
|
+
EC as aK,
|
|
44318
44319
|
OO as aL,
|
|
44319
44320
|
Wi as aM,
|
|
44320
44321
|
$m as aN,
|
|
@@ -44325,116 +44326,116 @@ export {
|
|
|
44325
44326
|
CO as aS,
|
|
44326
44327
|
gp as aT,
|
|
44327
44328
|
kO as aU,
|
|
44328
|
-
|
|
44329
|
-
|
|
44330
|
-
|
|
44331
|
-
|
|
44332
|
-
|
|
44333
|
-
|
|
44334
|
-
|
|
44335
|
-
|
|
44336
|
-
|
|
44337
|
-
|
|
44338
|
-
|
|
44339
|
-
|
|
44340
|
-
|
|
44329
|
+
uD as aV,
|
|
44330
|
+
dD as aW,
|
|
44331
|
+
pD as aX,
|
|
44332
|
+
fD as aY,
|
|
44333
|
+
hD as aZ,
|
|
44334
|
+
vE as a_,
|
|
44335
|
+
Jr as aa,
|
|
44336
|
+
Tv as ab,
|
|
44337
|
+
cD as ac,
|
|
44338
|
+
sm as ad,
|
|
44339
|
+
LE as ae,
|
|
44340
|
+
EE as af,
|
|
44341
|
+
PE as ag,
|
|
44341
44342
|
Og as ah,
|
|
44342
|
-
|
|
44343
|
-
|
|
44344
|
-
|
|
44345
|
-
|
|
44346
|
-
|
|
44347
|
-
|
|
44348
|
-
|
|
44349
|
-
|
|
44343
|
+
$O as ai,
|
|
44344
|
+
Fi as aj,
|
|
44345
|
+
Ym as ak,
|
|
44346
|
+
vC as al,
|
|
44347
|
+
lP as am,
|
|
44348
|
+
FC as an,
|
|
44349
|
+
WO as ao,
|
|
44350
|
+
HO as ap,
|
|
44350
44351
|
LO as aq,
|
|
44351
44352
|
Pl as ar,
|
|
44352
|
-
|
|
44353
|
-
|
|
44354
|
-
|
|
44353
|
+
WC as as,
|
|
44354
|
+
HC as at,
|
|
44355
|
+
jC as au,
|
|
44355
44356
|
ci as av,
|
|
44356
|
-
|
|
44357
|
-
|
|
44358
|
-
|
|
44359
|
-
|
|
44360
|
-
|
|
44357
|
+
RC as aw,
|
|
44358
|
+
NC as ax,
|
|
44359
|
+
zC as ay,
|
|
44360
|
+
BC as az,
|
|
44361
|
+
IT as b,
|
|
44361
44362
|
Ly as b$,
|
|
44362
|
-
|
|
44363
|
-
|
|
44363
|
+
aD as b0,
|
|
44364
|
+
mE as b1,
|
|
44364
44365
|
yC as b2,
|
|
44365
44366
|
Wm as b3,
|
|
44366
|
-
|
|
44367
|
-
|
|
44367
|
+
PD as b4,
|
|
44368
|
+
Hk as b5,
|
|
44368
44369
|
Ig as b6,
|
|
44369
|
-
|
|
44370
|
-
|
|
44370
|
+
dE as b7,
|
|
44371
|
+
ED as b8,
|
|
44371
44372
|
vn as b9,
|
|
44372
44373
|
Ld as bA,
|
|
44373
|
-
|
|
44374
|
+
nP as bB,
|
|
44374
44375
|
dv as bC,
|
|
44375
44376
|
xd as bD,
|
|
44376
|
-
|
|
44377
|
+
bk as bE,
|
|
44377
44378
|
Tm as bF,
|
|
44378
44379
|
zh as bG,
|
|
44379
44380
|
ta as bH,
|
|
44380
44381
|
xv as bI,
|
|
44381
44382
|
pv as bJ,
|
|
44382
44383
|
wh as bK,
|
|
44383
|
-
|
|
44384
|
-
|
|
44385
|
-
|
|
44386
|
-
|
|
44387
|
-
|
|
44388
|
-
|
|
44389
|
-
|
|
44390
|
-
|
|
44384
|
+
cE as bL,
|
|
44385
|
+
rD as bM,
|
|
44386
|
+
tD as bN,
|
|
44387
|
+
Vk as bO,
|
|
44388
|
+
Zk as bP,
|
|
44389
|
+
Kk as bQ,
|
|
44390
|
+
YO as bR,
|
|
44391
|
+
iE as bS,
|
|
44391
44392
|
bd as bT,
|
|
44392
44393
|
e1 as bU,
|
|
44393
|
-
|
|
44394
|
+
Ek as bV,
|
|
44394
44395
|
vh as bW,
|
|
44395
44396
|
qx as bX,
|
|
44396
44397
|
Xm as bY,
|
|
44397
|
-
|
|
44398
|
+
Ak as bZ,
|
|
44398
44399
|
eC as b_,
|
|
44399
44400
|
li as ba,
|
|
44400
44401
|
am as bb,
|
|
44401
|
-
|
|
44402
|
+
BO as bc,
|
|
44402
44403
|
Ne as bd,
|
|
44403
44404
|
U0 as be,
|
|
44404
|
-
|
|
44405
|
-
|
|
44406
|
-
|
|
44405
|
+
FO as bf,
|
|
44406
|
+
tk as bg,
|
|
44407
|
+
QT as bh,
|
|
44407
44408
|
mC as bi,
|
|
44408
|
-
|
|
44409
|
+
kk as bj,
|
|
44409
44410
|
wr as bk,
|
|
44410
44411
|
oo as bl,
|
|
44411
44412
|
Bh as bm,
|
|
44412
44413
|
Z0 as bn,
|
|
44413
44414
|
Tg as bo,
|
|
44414
44415
|
_o as bp,
|
|
44415
|
-
|
|
44416
|
-
|
|
44417
|
-
|
|
44416
|
+
iM as bq,
|
|
44417
|
+
xP as br,
|
|
44418
|
+
SP as bs,
|
|
44418
44419
|
gy as bt,
|
|
44419
44420
|
Ey as bu,
|
|
44420
|
-
|
|
44421
|
+
rM as bv,
|
|
44421
44422
|
jy as bw,
|
|
44422
44423
|
en as bx,
|
|
44423
44424
|
qs as by,
|
|
44424
44425
|
Lh as bz,
|
|
44425
44426
|
Hc as c,
|
|
44426
|
-
|
|
44427
|
-
|
|
44428
|
-
|
|
44429
|
-
|
|
44430
|
-
|
|
44427
|
+
TD as c$,
|
|
44428
|
+
tM as c0,
|
|
44429
|
+
Qk as c1,
|
|
44430
|
+
gP as c2,
|
|
44431
|
+
uE as c3,
|
|
44431
44432
|
$1 as c4,
|
|
44432
44433
|
hy as c5,
|
|
44433
44434
|
yi as c6,
|
|
44434
44435
|
oa as c7,
|
|
44435
44436
|
Ei as c8,
|
|
44436
44437
|
Li as c9,
|
|
44437
|
-
|
|
44438
|
+
iD as cA,
|
|
44438
44439
|
lp as cB,
|
|
44439
44440
|
Xh as cC,
|
|
44440
44441
|
_l as cD,
|
|
@@ -44451,69 +44452,70 @@ export {
|
|
|
44451
44452
|
El as cO,
|
|
44452
44453
|
la as cP,
|
|
44453
44454
|
Ku as cQ,
|
|
44454
|
-
|
|
44455
|
-
|
|
44455
|
+
pE as cR,
|
|
44456
|
+
SO as cS,
|
|
44456
44457
|
cd as cT,
|
|
44457
44458
|
eu as cU,
|
|
44458
44459
|
_r as cV,
|
|
44459
44460
|
Zi as cW,
|
|
44460
44461
|
Fd as cX,
|
|
44461
|
-
|
|
44462
|
-
|
|
44463
|
-
|
|
44462
|
+
DO as cY,
|
|
44463
|
+
CD as cZ,
|
|
44464
|
+
kD as c_,
|
|
44464
44465
|
yp as ca,
|
|
44465
44466
|
Dr as cb,
|
|
44466
44467
|
Uh as cc,
|
|
44467
|
-
|
|
44468
|
-
|
|
44468
|
+
B2 as cd,
|
|
44469
|
+
OD as ce,
|
|
44469
44470
|
yy as cf,
|
|
44470
44471
|
vy as cg,
|
|
44471
44472
|
by as ch,
|
|
44472
44473
|
wy as ci,
|
|
44473
44474
|
ky as cj,
|
|
44474
|
-
|
|
44475
|
-
|
|
44475
|
+
dO as ck,
|
|
44476
|
+
Uk as cl,
|
|
44476
44477
|
Sh as cm,
|
|
44477
44478
|
Qh as cn,
|
|
44478
|
-
|
|
44479
|
+
DD as co,
|
|
44479
44480
|
_d as cp,
|
|
44480
|
-
|
|
44481
|
-
|
|
44481
|
+
LD as cq,
|
|
44482
|
+
GO as cr,
|
|
44482
44483
|
Ci as cs,
|
|
44483
44484
|
ui as ct,
|
|
44484
|
-
|
|
44485
|
+
eM as cu,
|
|
44485
44486
|
sS as cv,
|
|
44486
44487
|
aS as cw,
|
|
44487
44488
|
K1 as cx,
|
|
44488
|
-
|
|
44489
|
-
|
|
44489
|
+
UO as cy,
|
|
44490
|
+
eD as cz,
|
|
44490
44491
|
vp as d,
|
|
44491
|
-
|
|
44492
|
-
|
|
44493
|
-
|
|
44494
|
-
|
|
44495
|
-
|
|
44496
|
-
|
|
44492
|
+
MD as d0,
|
|
44493
|
+
wD as d1,
|
|
44494
|
+
oi as d2,
|
|
44495
|
+
Qd as d3,
|
|
44496
|
+
VO as d4,
|
|
44497
|
+
vf as d5,
|
|
44498
|
+
cu as d6,
|
|
44497
44499
|
rm as e,
|
|
44498
|
-
|
|
44499
|
-
|
|
44500
|
-
|
|
44500
|
+
RO as f,
|
|
44501
|
+
xO as g,
|
|
44502
|
+
zO as h,
|
|
44501
44503
|
em as i,
|
|
44502
44504
|
Qw as j,
|
|
44503
|
-
|
|
44505
|
+
KO as k,
|
|
44504
44506
|
Hi as l,
|
|
44505
44507
|
dn as m,
|
|
44506
|
-
|
|
44507
|
-
|
|
44508
|
-
|
|
44508
|
+
IO as n,
|
|
44509
|
+
gE as o,
|
|
44510
|
+
JO as p,
|
|
44509
44511
|
Jh as q,
|
|
44510
44512
|
tn as r,
|
|
44511
44513
|
lS as s,
|
|
44512
|
-
|
|
44513
|
-
|
|
44514
|
-
|
|
44514
|
+
qO as t,
|
|
44515
|
+
ZO as u,
|
|
44516
|
+
lD as v,
|
|
44515
44517
|
kv as w,
|
|
44516
|
-
|
|
44517
|
-
|
|
44518
|
-
|
|
44518
|
+
yE as x,
|
|
44519
|
+
oD as y,
|
|
44520
|
+
sD as z
|
|
44519
44521
|
};
|