@lingshugroup/web-plus 1.8.7 → 1.8.8

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.
Files changed (94) hide show
  1. package/lib/index.css +1 -1
  2. package/lib/index.css.br +0 -0
  3. package/lib/index.css.gz +0 -0
  4. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapLayer/index.cjs +1 -0
  5. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapLayer/index.js +47 -0
  6. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapLayer/index.js.br +0 -0
  7. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapLayer/index.js.gz +0 -0
  8. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapSeries/index.cjs +1 -0
  9. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapSeries/index.js +46 -0
  10. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapSeries/index.js.br +0 -0
  11. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapSeries/index.js.gz +0 -0
  12. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapView/index.cjs +1 -0
  13. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapView/index.js +159 -0
  14. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapView/index.js.br +0 -0
  15. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapView/index.js.gz +0 -0
  16. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/install/index.cjs +1 -0
  17. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/install/index.js +11 -0
  18. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/ContinuousModel/index.cjs +1 -0
  19. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/ContinuousModel/index.js +113 -0
  20. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/ContinuousModel/index.js.br +0 -0
  21. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/ContinuousModel/index.js.gz +0 -0
  22. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/ContinuousView/index.cjs +1 -0
  23. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/ContinuousView/index.js +388 -0
  24. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/ContinuousView/index.js.br +0 -0
  25. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/ContinuousView/index.js.gz +0 -0
  26. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/PiecewiseModel/index.cjs +1 -0
  27. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/PiecewiseModel/index.js +220 -0
  28. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/PiecewiseModel/index.js.br +0 -0
  29. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/PiecewiseModel/index.js.gz +0 -0
  30. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/PiecewiseView/index.cjs +1 -0
  31. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/PiecewiseView/index.js +120 -0
  32. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/PiecewiseView/index.js.br +0 -0
  33. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/PiecewiseView/index.js.gz +0 -0
  34. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/VisualMapModel/index.cjs +1 -0
  35. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/VisualMapModel/index.js +166 -0
  36. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/VisualMapModel/index.js.br +0 -0
  37. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/VisualMapModel/index.js.gz +0 -0
  38. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/VisualMapView/index.cjs +1 -0
  39. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/VisualMapView/index.js +81 -0
  40. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/VisualMapView/index.js.br +0 -0
  41. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/VisualMapView/index.js.gz +0 -0
  42. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/helper/index.cjs +1 -0
  43. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/helper/index.js +28 -0
  44. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/helper/index.js.br +0 -0
  45. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/helper/index.js.gz +0 -0
  46. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/install/index.cjs +1 -0
  47. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/install/index.js +12 -0
  48. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/installCommon/index.cjs +1 -0
  49. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/installCommon/index.js +18 -0
  50. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/installVisualMapContinuous/index.cjs +1 -0
  51. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/installVisualMapContinuous/index.js +12 -0
  52. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/installVisualMapPiecewise/index.cjs +1 -0
  53. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/installVisualMapPiecewise/index.js +12 -0
  54. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/preprocessor/index.cjs +1 -0
  55. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/preprocessor/index.js +24 -0
  56. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/visualEncoding/index.cjs +1 -0
  57. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/visualEncoding/index.js +54 -0
  58. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/visualEncoding/index.js.br +0 -0
  59. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/visualEncoding/index.js.gz +0 -0
  60. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/visualMapAction/index.cjs +1 -0
  61. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/visualMapAction/index.js +19 -0
  62. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/util/model/index.cjs +1 -1
  63. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/util/model/index.js +199 -165
  64. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/util/model/index.js.br +0 -0
  65. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/util/model/index.js.gz +0 -0
  66. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/util/number/index.cjs +1 -1
  67. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/util/number/index.js +129 -113
  68. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/util/number/index.js.br +0 -0
  69. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/util/number/index.js.gz +0 -0
  70. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/VisualMapping/index.cjs +1 -0
  71. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/VisualMapping/index.js +278 -0
  72. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/VisualMapping/index.js.br +0 -0
  73. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/VisualMapping/index.js.gz +0 -0
  74. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/helper/index.cjs +1 -1
  75. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/helper/index.js +30 -10
  76. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/helper/index.js.br +0 -0
  77. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/helper/index.js.gz +0 -0
  78. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/visualDefault/index.cjs +1 -0
  79. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/visualDefault/index.js +48 -0
  80. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/visualSolution/index.cjs +1 -0
  81. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/visualSolution/index.js +81 -0
  82. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/visualSolution/index.js.br +0 -0
  83. package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/visualSolution/index.js.gz +0 -0
  84. package/lib/node_modules/.pnpm/zrender@5.6.1/node_modules/zrender/lib/tool/color/index.cjs +1 -1
  85. package/lib/node_modules/.pnpm/zrender@5.6.1/node_modules/zrender/lib/tool/color/index.js +165 -123
  86. package/lib/node_modules/.pnpm/zrender@5.6.1/node_modules/zrender/lib/tool/color/index.js.br +0 -0
  87. package/lib/node_modules/.pnpm/zrender@5.6.1/node_modules/zrender/lib/tool/color/index.js.gz +0 -0
  88. package/lib/packages/ls-components/components/chart/Index.vue/index.cjs +1 -1
  89. package/lib/packages/ls-components/components/chart/Index.vue/index.js +2 -2
  90. package/lib/packages/ls-components/components/chart/Index.vue/index2.cjs +1 -1
  91. package/lib/packages/ls-components/components/chart/Index.vue/index2.js +17 -13
  92. package/lib/packages/ls-components/components/chart/Index.vue/index2.js.br +0 -0
  93. package/lib/packages/ls-components/components/chart/Index.vue/index2.js.gz +0 -0
  94. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
- var l = Object.defineProperty;
2
- var o = (e, s) => l(e, "name", { value: s, configurable: !0 });
3
- function c(e, s, t) {
1
+ var r = Object.defineProperty;
2
+ var i = (e, s) => r(e, "name", { value: s, configurable: !0 });
3
+ function u(e, s, t) {
4
4
  switch (t) {
5
5
  case "color":
6
- var i = e.getItemVisual(s, "style");
7
- return i[e.getVisual("drawType")];
6
+ var o = e.getItemVisual(s, "style");
7
+ return o[e.getVisual("drawType")];
8
8
  case "opacity":
9
9
  return e.getItemVisual(s, "style").opacity;
10
10
  case "symbol":
@@ -15,8 +15,8 @@ function c(e, s, t) {
15
15
  process.env.NODE_ENV !== "production" && console.warn("Unknown visual type " + t);
16
16
  }
17
17
  }
18
- o(c, "getItemVisualFromData");
19
- function u(e, s) {
18
+ i(u, "getItemVisualFromData");
19
+ function n(e, s) {
20
20
  switch (s) {
21
21
  case "color":
22
22
  var t = e.getVisual("style");
@@ -31,8 +31,28 @@ function u(e, s) {
31
31
  process.env.NODE_ENV !== "production" && console.warn("Unknown visual type " + s);
32
32
  }
33
33
  }
34
- o(u, "getVisualFromData");
34
+ i(n, "getVisualFromData");
35
+ function a(e, s, t, o) {
36
+ switch (t) {
37
+ case "color":
38
+ var l = e.ensureUniqueItemVisual(s, "style");
39
+ l[e.getVisual("drawType")] = o, e.setItemVisual(s, "colorFromPalette", !1);
40
+ break;
41
+ case "opacity":
42
+ e.ensureUniqueItemVisual(s, "style").opacity = o;
43
+ break;
44
+ case "symbol":
45
+ case "symbolSize":
46
+ case "liftZ":
47
+ e.setItemVisual(s, t, o);
48
+ break;
49
+ default:
50
+ process.env.NODE_ENV !== "production" && console.warn("Unknown visual type " + t);
51
+ }
52
+ }
53
+ i(a, "setItemVisualFromData");
35
54
  export {
36
- c as getItemVisualFromData,
37
- u as getVisualFromData
55
+ u as getItemVisualFromData,
56
+ n as getVisualFromData,
57
+ a as setItemVisualFromData
38
58
  };
@@ -0,0 +1 @@
1
+ "use strict";var n=Object.defineProperty;var a=(i,t)=>n(i,"name",{value:t,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("../../../../../../zrender@5.6.1/node_modules/zrender/lib/core/util/index.cjs");var r={get:a(function(i,t,o){var e=c.clone((v[i]||{})[t]);return o&&c.isArray(e)?e[e.length-1]:e},"get")},v={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};exports.default=r;
@@ -0,0 +1,48 @@
1
+ var o = Object.defineProperty;
2
+ var t = (e, a) => o(e, "name", { value: a, configurable: !0 });
3
+ import { clone as v, isArray as n } from "../../../../../../zrender@5.6.1/node_modules/zrender/lib/core/util/index.js";
4
+ var f = {
5
+ /**
6
+ * @public
7
+ */
8
+ get: /* @__PURE__ */ t(function(e, a, c) {
9
+ var i = v((r[e] || {})[a]);
10
+ return c && n(i) ? i[i.length - 1] : i;
11
+ }, "get")
12
+ }, r = {
13
+ color: {
14
+ active: ["#006edd", "#e0ffff"],
15
+ inactive: ["rgba(0,0,0,0)"]
16
+ },
17
+ colorHue: {
18
+ active: [0, 360],
19
+ inactive: [0, 0]
20
+ },
21
+ colorSaturation: {
22
+ active: [0.3, 1],
23
+ inactive: [0, 0]
24
+ },
25
+ colorLightness: {
26
+ active: [0.9, 0.5],
27
+ inactive: [0, 0]
28
+ },
29
+ colorAlpha: {
30
+ active: [0.3, 1],
31
+ inactive: [0, 0]
32
+ },
33
+ opacity: {
34
+ active: [0.3, 1],
35
+ inactive: [0, 0]
36
+ },
37
+ symbol: {
38
+ active: ["circle", "roundRect", "diamond"],
39
+ inactive: ["none"]
40
+ },
41
+ symbolSize: {
42
+ active: [10, 50],
43
+ inactive: [0, 0]
44
+ }
45
+ };
46
+ export {
47
+ f as default
48
+ };
@@ -0,0 +1 @@
1
+ "use strict";var F=Object.defineProperty;var t=(a,r)=>F(a,"name",{value:r,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../../../../../../zrender@5.6.1/node_modules/zrender/lib/core/util/index.cjs"),v=require("../VisualMapping/index.cjs"),I=require("../helper/index.cjs");var x=f.each;function P(a){if(a){for(var r in a)if(a.hasOwnProperty(r))return!0}}t(P,"hasKeys");function O(a,r,o){var i={};return x(r,function(n){var u=i[n]=e();x(a[n],function(c,p){if(v.default.isValidType(p)){var l={type:p,visual:c};o&&o(l,n),u[p]=new v.default(l),p==="opacity"&&(l=f.clone(l),l.type="colorAlpha",u.__hidden.__alphaForOpacity=new v.default(l))}})}),i;function e(){var n=t(function(){},"Creater");n.prototype.__hidden=n.prototype;var u=new n;return u}t(e,"createMappings")}t(O,"createVisualMappings");function S(a,r,o){var i;f.each(o,function(e){r.hasOwnProperty(e)&&P(r[e])&&(i=!0)}),i&&f.each(o,function(e){r.hasOwnProperty(e)&&P(r[e])?a[e]=f.clone(r[e]):delete a[e]})}t(S,"replaceVisualOption");function b(a,r,o,i){var e={};return f.each(a,function(n){var u=v.default.prepareVisualTypes(r[n]);e[n]=u}),{progress:t(function(u,c){var p;i!=null&&(p=c.getDimensionIndex(i));function l(h){return I.getItemVisualFromData(c,s,h)}t(l,"getVisual");function q(h,D){I.setItemVisualFromData(c,s,h,D)}t(q,"setVisual");for(var s,w=c.getStore();(s=u.next())!=null;){var V=c.getRawDataItem(s);if(!(V&&V.visualMap===!1))for(var d=i!=null?w.get(p,s):s,y=o(d),m=r[y],M=e[y],g=0,A=M.length;g<A;g++){var _=M[g];m[_]&&m[_].applyVisual(d,l,q)}}},"progress")}}t(b,"incrementalApplyVisual");exports.createVisualMappings=O;exports.incrementalApplyVisual=b;exports.replaceVisualOption=S;
@@ -0,0 +1,81 @@
1
+ var C = Object.defineProperty;
2
+ var i = (a, r) => C(a, "name", { value: r, configurable: !0 });
3
+ import { each as v, clone as w } from "../../../../../../zrender@5.6.1/node_modules/zrender/lib/core/util/index.js";
4
+ import s from "../VisualMapping/index.js";
5
+ import { getItemVisualFromData as K, setItemVisualFromData as R } from "../helper/index.js";
6
+ var I = v;
7
+ function M(a) {
8
+ if (a) {
9
+ for (var r in a)
10
+ if (a.hasOwnProperty(r))
11
+ return !0;
12
+ }
13
+ }
14
+ i(M, "hasKeys");
15
+ function E(a, r, p) {
16
+ var t = {};
17
+ return I(r, function(e) {
18
+ var o = t[e] = n();
19
+ I(a[e], function(f, c) {
20
+ if (s.isValidType(c)) {
21
+ var u = {
22
+ type: c,
23
+ visual: f
24
+ };
25
+ p && p(u, e), o[c] = new s(u), c === "opacity" && (u = w(u), u.type = "colorAlpha", o.__hidden.__alphaForOpacity = new s(u));
26
+ }
27
+ });
28
+ }), t;
29
+ function n() {
30
+ var e = /* @__PURE__ */ i(function() {
31
+ }, "Creater");
32
+ e.prototype.__hidden = e.prototype;
33
+ var o = new e();
34
+ return o;
35
+ }
36
+ i(n, "createMappings");
37
+ }
38
+ i(E, "createVisualMappings");
39
+ function G(a, r, p) {
40
+ var t;
41
+ v(p, function(n) {
42
+ r.hasOwnProperty(n) && M(r[n]) && (t = !0);
43
+ }), t && v(p, function(n) {
44
+ r.hasOwnProperty(n) && M(r[n]) ? a[n] = w(r[n]) : delete a[n];
45
+ });
46
+ }
47
+ i(G, "replaceVisualOption");
48
+ function H(a, r, p, t) {
49
+ var n = {};
50
+ return v(a, function(e) {
51
+ var o = s.prepareVisualTypes(r[e]);
52
+ n[e] = o;
53
+ }), {
54
+ progress: /* @__PURE__ */ i(function(o, f) {
55
+ var c;
56
+ t != null && (c = f.getDimensionIndex(t));
57
+ function u(h) {
58
+ return K(f, l, h);
59
+ }
60
+ i(u, "getVisual");
61
+ function D(h, A) {
62
+ R(f, l, h, A);
63
+ }
64
+ i(D, "setVisual");
65
+ for (var l, F = f.getStore(); (l = o.next()) != null; ) {
66
+ var m = f.getRawDataItem(l);
67
+ if (!(m && m.visualMap === !1))
68
+ for (var V = t != null ? F.get(c, l) : l, _ = p(V), d = r[_], x = n[_], g = 0, P = x.length; g < P; g++) {
69
+ var y = x[g];
70
+ d[y] && d[y].applyVisual(V, u, D);
71
+ }
72
+ }
73
+ }, "progress")
74
+ };
75
+ }
76
+ i(H, "incrementalApplyVisual");
77
+ export {
78
+ E as createVisualMappings,
79
+ H as incrementalApplyVisual,
80
+ G as replaceVisualOption
81
+ };
@@ -1 +1 @@
1
- "use strict";var j=Object.defineProperty;var a=(n,e)=>j(n,"name",{value:e,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("../../core/LRU/index.cjs"),y=require("../../core/util/index.cjs");var F={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function d(n){return n=Math.round(n),n<0?0:n>255?255:n}a(d,"clampCssByte");function x(n){return n<0?0:n>1?1:n}a(x,"clampCssFloat");function w(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?d(parseFloat(e)/100*255):d(parseInt(e,10))}a(w,"parseCssInt");function c(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?x(parseFloat(e)/100):x(parseFloat(e))}a(c,"parseCssFloat");function m(n,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?n+(e-n)*t*6:t*2<1?e:t*3<2?n+(e-n)*(2/3-t)*6:n}a(m,"cssHueToRgb");function k(n,e,t){return n+(e-n)*t}a(k,"lerpNumber");function s(n,e,t,l,u){return n[0]=e,n[1]=t,n[2]=l,n[3]=u,n}a(s,"setRgba");function b(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}a(b,"copyRgba");var T=new O.default(20),p=null;function h(n,e){p&&b(p,e),p=T.put(n,p||e.slice())}a(h,"putToCache");function v(n,e){if(n){e=e||[];var t=T.get(n);if(t)return b(e,t);n=n+"";var l=n.replace(/ /g,"").toLowerCase();if(l in F)return b(e,F[l]),h(n,e),e;var u=l.length;if(l.charAt(0)==="#"){if(u===4||u===5){var i=parseInt(l.slice(1,4),16);if(!(i>=0&&i<=4095)){s(e,0,0,0,1);return}return s(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,u===5?parseInt(l.slice(4),16)/15:1),h(n,e),e}else if(u===7||u===9){var i=parseInt(l.slice(1,7),16);if(!(i>=0&&i<=16777215)){s(e,0,0,0,1);return}return s(e,(i&16711680)>>16,(i&65280)>>8,i&255,u===9?parseInt(l.slice(7),16)/255:1),h(n,e),e}return}var f=l.indexOf("("),o=l.indexOf(")");if(f!==-1&&o+1===u){var g=l.substr(0,f),r=l.substr(f+1,o-(f+1)).split(","),C=1;switch(g){case"rgba":if(r.length!==4)return r.length===3?s(e,+r[0],+r[1],+r[2],1):s(e,0,0,0,1);C=c(r.pop());case"rgb":if(r.length>=3)return s(e,w(r[0]),w(r[1]),w(r[2]),r.length===3?C:c(r[3])),h(n,e),e;s(e,0,0,0,1);return;case"hsla":if(r.length!==4){s(e,0,0,0,1);return}return r[3]=c(r[3]),R(r,e),h(n,e),e;case"hsl":if(r.length!==3){s(e,0,0,0,1);return}return R(r,e),h(n,e),e;default:return}}s(e,0,0,0,1)}}a(v,"parse");function R(n,e){var t=(parseFloat(n[0])%360+360)%360/360,l=c(n[1]),u=c(n[2]),i=u<=.5?u*(l+1):u+l-u*l,f=u*2-i;return e=e||[],s(e,d(m(f,i,t+1/3)*255),d(m(f,i,t)*255),d(m(f,i,t-1/3)*255),1),n.length===4&&(e[3]=n[3]),e}a(R,"hsla2rgba");function q(n,e){var t=v(n);if(t){for(var l=0;l<3;l++)t[l]=t[l]*(1-e)|0,t[l]>255?t[l]=255:t[l]<0&&(t[l]=0);return I(t,t.length===4?"rgba":"rgb")}}a(q,"lift");function L(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){var l=n*(e.length-1),u=Math.floor(l),i=Math.ceil(l),f=v(e[u]),o=v(e[i]),g=l-u,r=I([d(k(f[0],o[0],g)),d(k(f[1],o[1],g)),d(k(f[2],o[2],g)),x(k(f[3],o[3],g))],"rgba");return t?{color:r,leftIndex:u,rightIndex:i,value:l}:r}}a(L,"lerp");function I(n,e){if(!(!n||!n.length)){var t=n[0]+","+n[1]+","+n[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+n[3]),e+"("+t+")"}}a(I,"stringify");function B(n,e){var t=v(n);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}a(B,"lum");var M=new O.default(100);function G(n){if(y.isString(n)){var e=M.get(n);return e||(e=q(n,-.1),M.put(n,e)),e}else if(y.isGradientObject(n)){var t=y.extend({},n);return t.colorStops=y.map(n.colorStops,function(l){return{offset:l.offset,color:q(l.color,-.1)}}),t}return n}a(G,"liftColor");exports.lerp=L;exports.lift=q;exports.liftColor=G;exports.lum=B;exports.parse=v;exports.stringify=I;
1
+ "use strict";var B=Object.defineProperty;var f=(e,n)=>B(e,"name",{value:n,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("../../core/LRU/index.cjs"),w=require("../../core/util/index.cjs");var H={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function h(e){return e=Math.round(e),e<0?0:e>255?255:e}f(h,"clampCssByte");function G(e){return e=Math.round(e),e<0?0:e>360?360:e}f(G,"clampCssAngle");function k(e){return e<0?0:e>1?1:e}f(k,"clampCssFloat");function b(e){var n=e;return n.length&&n.charAt(n.length-1)==="%"?h(parseFloat(n)/100*255):h(parseInt(n,10))}f(b,"parseCssInt");function g(e){var n=e;return n.length&&n.charAt(n.length-1)==="%"?k(parseFloat(n)/100):k(parseFloat(n))}f(g,"parseCssFloat");function I(e,n,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?e+(n-e)*t*6:t*2<1?n:t*3<2?e+(n-e)*(2/3-t)*6:e}f(I,"cssHueToRgb");function v(e,n,t){return e+(n-e)*t}f(v,"lerpNumber");function o(e,n,t,r,i){return e[0]=n,e[1]=t,e[2]=r,e[3]=i,e}f(o,"setRgba");function q(e,n){return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e}f(q,"copyRgba");var j=new T.default(20),x=null;function y(e,n){x&&q(x,n),x=j.put(e,x||n.slice())}f(y,"putToCache");function c(e,n){if(e){n=n||[];var t=j.get(e);if(t)return q(n,t);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in H)return q(n,H[r]),y(e,n),n;var i=r.length;if(r.charAt(0)==="#"){if(i===4||i===5){var l=parseInt(r.slice(1,4),16);if(!(l>=0&&l<=4095)){o(n,0,0,0,1);return}return o(n,(l&3840)>>4|(l&3840)>>8,l&240|(l&240)>>4,l&15|(l&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),y(e,n),n}else if(i===7||i===9){var l=parseInt(r.slice(1,7),16);if(!(l>=0&&l<=16777215)){o(n,0,0,0,1);return}return o(n,(l&16711680)>>16,(l&65280)>>8,l&255,i===9?parseInt(r.slice(7),16)/255:1),y(e,n),n}return}var a=r.indexOf("("),d=r.indexOf(")");if(a!==-1&&d+1===i){var s=r.substr(0,a),u=r.substr(a+1,d-(a+1)).split(","),p=1;switch(s){case"rgba":if(u.length!==4)return u.length===3?o(n,+u[0],+u[1],+u[2],1):o(n,0,0,0,1);p=g(u.pop());case"rgb":if(u.length>=3)return o(n,b(u[0]),b(u[1]),b(u[2]),u.length===3?p:g(u[3])),y(e,n),n;o(n,0,0,0,1);return;case"hsla":if(u.length!==4){o(n,0,0,0,1);return}return u[3]=g(u[3]),M(u,n),y(e,n),n;case"hsl":if(u.length!==3){o(n,0,0,0,1);return}return M(u,n),y(e,n),n;default:return}}o(n,0,0,0,1)}}f(c,"parse");function M(e,n){var t=(parseFloat(e[0])%360+360)%360/360,r=g(e[1]),i=g(e[2]),l=i<=.5?i*(r+1):i+r-i*r,a=i*2-l;return n=n||[],o(n,h(I(a,l,t+1/3)*255),h(I(a,l,t)*255),h(I(a,l,t-1/3)*255),1),e.length===4&&(n[3]=e[3]),n}f(M,"hsla2rgba");function N(e){if(e){var n=e[0]/255,t=e[1]/255,r=e[2]/255,i=Math.min(n,t,r),l=Math.max(n,t,r),a=l-i,d=(l+i)/2,s,u;if(a===0)s=0,u=0;else{d<.5?u=a/(l+i):u=a/(2-l-i);var p=((l-n)/6+a/2)/a,L=((l-t)/6+a/2)/a,F=((l-r)/6+a/2)/a;n===l?s=F-L:t===l?s=1/3+p-F:r===l&&(s=2/3+L-p),s<0&&(s+=1),s>1&&(s-=1)}var R=[s*360,u,d];return e[3]!=null&&R.push(e[3]),R}}f(N,"rgba2hsla");function C(e,n){var t=c(e);if(t){for(var r=0;r<3;r++)t[r]=t[r]*(1-n)|0,t[r]>255?t[r]=255:t[r]<0&&(t[r]=0);return m(t,t.length===4?"rgba":"rgb")}}f(C,"lift");function P(e,n,t){if(!(!(n&&n.length)||!(e>=0&&e<=1))){t=t||[];var r=e*(n.length-1),i=Math.floor(r),l=Math.ceil(r),a=n[i],d=n[l],s=r-i;return t[0]=h(v(a[0],d[0],s)),t[1]=h(v(a[1],d[1],s)),t[2]=h(v(a[2],d[2],s)),t[3]=k(v(a[3],d[3],s)),t}}f(P,"fastLerp");function S(e,n,t){if(!(!(n&&n.length)||!(e>=0&&e<=1))){var r=e*(n.length-1),i=Math.floor(r),l=Math.ceil(r),a=c(n[i]),d=c(n[l]),s=r-i,u=m([h(v(a[0],d[0],s)),h(v(a[1],d[1],s)),h(v(a[2],d[2],s)),k(v(a[3],d[3],s))],"rgba");return t?{color:u,leftIndex:i,rightIndex:l,value:r}:u}}f(S,"lerp");function U(e,n,t,r){var i=c(e);if(e)return i=N(i),n!=null&&(i[0]=G(n)),t!=null&&(i[1]=g(t)),r!=null&&(i[2]=g(r)),m(M(i),"rgba")}f(U,"modifyHSL");function D(e,n){var t=c(e);if(t&&n!=null)return t[3]=k(n),m(t,"rgba")}f(D,"modifyAlpha");function m(e,n){if(!(!e||!e.length)){var t=e[0]+","+e[1]+","+e[2];return(n==="rgba"||n==="hsva"||n==="hsla")&&(t+=","+e[3]),n+"("+t+")"}}f(m,"stringify");function E(e,n){var t=c(e);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*n:0}f(E,"lum");var O=new T.default(100);function J(e){if(w.isString(e)){var n=O.get(e);return n||(n=C(e,-.1),O.put(e,n)),n}else if(w.isGradientObject(e)){var t=w.extend({},e);return t.colorStops=w.map(e.colorStops,function(r){return{offset:r.offset,color:C(r.color,-.1)}}),t}return e}f(J,"liftColor");exports.fastLerp=P;exports.lerp=S;exports.lift=C;exports.liftColor=J;exports.lum=E;exports.modifyAlpha=D;exports.modifyHSL=U;exports.parse=c;exports.stringify=m;
@@ -1,8 +1,8 @@
1
- var O = Object.defineProperty;
2
- var a = (n, e) => O(n, "name", { value: e, configurable: !0 });
3
- import R from "../../core/LRU/index.js";
4
- import { isString as T, isGradientObject as j, extend as B, map as G } from "../../core/util/index.js";
5
- var I = {
1
+ var j = Object.defineProperty;
2
+ var f = (e, n) => j(e, "name", { value: n, configurable: !0 });
3
+ import O from "../../core/LRU/index.js";
4
+ import { isString as B, isGradientObject as G, extend as N, map as U } from "../../core/util/index.js";
5
+ var L = {
6
6
  transparent: [0, 0, 0, 0],
7
7
  aliceblue: [240, 248, 255, 1],
8
8
  antiquewhite: [250, 235, 215, 1],
@@ -152,172 +152,214 @@ var I = {
152
152
  yellow: [255, 255, 0, 1],
153
153
  yellowgreen: [154, 205, 50, 1]
154
154
  };
155
- function o(n) {
156
- return n = Math.round(n), n < 0 ? 0 : n > 255 ? 255 : n;
155
+ function h(e) {
156
+ return e = Math.round(e), e < 0 ? 0 : e > 255 ? 255 : e;
157
157
  }
158
- a(o, "clampCssByte");
159
- function w(n) {
160
- return n < 0 ? 0 : n > 1 ? 1 : n;
158
+ f(h, "clampCssByte");
159
+ function D(e) {
160
+ return e = Math.round(e), e < 0 ? 0 : e > 360 ? 360 : e;
161
161
  }
162
- a(w, "clampCssFloat");
163
- function y(n) {
164
- var e = n;
165
- return e.length && e.charAt(e.length - 1) === "%" ? o(parseFloat(e) / 100 * 255) : o(parseInt(e, 10));
162
+ f(D, "clampCssAngle");
163
+ function k(e) {
164
+ return e < 0 ? 0 : e > 1 ? 1 : e;
166
165
  }
167
- a(y, "parseCssInt");
168
- function c(n) {
169
- var e = n;
170
- return e.length && e.charAt(e.length - 1) === "%" ? w(parseFloat(e) / 100) : w(parseFloat(e));
166
+ f(k, "clampCssFloat");
167
+ function x(e) {
168
+ var n = e;
169
+ return n.length && n.charAt(n.length - 1) === "%" ? h(parseFloat(n) / 100 * 255) : h(parseInt(n, 10));
171
170
  }
172
- a(c, "parseCssFloat");
173
- function m(n, e, t) {
174
- return t < 0 ? t += 1 : t > 1 && (t -= 1), t * 6 < 1 ? n + (e - n) * t * 6 : t * 2 < 1 ? e : t * 3 < 2 ? n + (e - n) * (2 / 3 - t) * 6 : n;
171
+ f(x, "parseCssInt");
172
+ function g(e) {
173
+ var n = e;
174
+ return n.length && n.charAt(n.length - 1) === "%" ? k(parseFloat(n) / 100) : k(parseFloat(n));
175
175
  }
176
- a(m, "cssHueToRgb");
177
- function v(n, e, t) {
178
- return n + (e - n) * t;
176
+ f(g, "parseCssFloat");
177
+ function b(e, n, t) {
178
+ return t < 0 ? t += 1 : t > 1 && (t -= 1), t * 6 < 1 ? e + (n - e) * t * 6 : t * 2 < 1 ? n : t * 3 < 2 ? e + (n - e) * (2 / 3 - t) * 6 : e;
179
179
  }
180
- a(v, "lerpNumber");
181
- function s(n, e, t, l, u) {
182
- return n[0] = e, n[1] = t, n[2] = l, n[3] = u, n;
180
+ f(b, "cssHueToRgb");
181
+ function v(e, n, t) {
182
+ return e + (n - e) * t;
183
183
  }
184
- a(s, "setRgba");
185
- function x(n, e) {
186
- return n[0] = e[0], n[1] = e[1], n[2] = e[2], n[3] = e[3], n;
184
+ f(v, "lerpNumber");
185
+ function o(e, n, t, r, i) {
186
+ return e[0] = n, e[1] = t, e[2] = r, e[3] = i, e;
187
187
  }
188
- a(x, "copyRgba");
189
- var L = new R(20), k = null;
190
- function h(n, e) {
191
- k && x(k, e), k = L.put(n, k || e.slice());
188
+ f(o, "setRgba");
189
+ function I(e, n) {
190
+ return e[0] = n[0], e[1] = n[1], e[2] = n[2], e[3] = n[3], e;
192
191
  }
193
- a(h, "putToCache");
194
- function p(n, e) {
195
- if (n) {
196
- e = e || [];
197
- var t = L.get(n);
192
+ f(I, "copyRgba");
193
+ var T = new O(20), m = null;
194
+ function c(e, n) {
195
+ m && I(m, n), m = T.put(e, m || n.slice());
196
+ }
197
+ f(c, "putToCache");
198
+ function p(e, n) {
199
+ if (e) {
200
+ n = n || [];
201
+ var t = T.get(e);
198
202
  if (t)
199
- return x(e, t);
200
- n = n + "";
201
- var l = n.replace(/ /g, "").toLowerCase();
202
- if (l in I)
203
- return x(e, I[l]), h(n, e), e;
204
- var u = l.length;
205
- if (l.charAt(0) === "#") {
206
- if (u === 4 || u === 5) {
207
- var i = parseInt(l.slice(1, 4), 16);
208
- if (!(i >= 0 && i <= 4095)) {
209
- s(e, 0, 0, 0, 1);
203
+ return I(n, t);
204
+ e = e + "";
205
+ var r = e.replace(/ /g, "").toLowerCase();
206
+ if (r in L)
207
+ return I(n, L[r]), c(e, n), n;
208
+ var i = r.length;
209
+ if (r.charAt(0) === "#") {
210
+ if (i === 4 || i === 5) {
211
+ var l = parseInt(r.slice(1, 4), 16);
212
+ if (!(l >= 0 && l <= 4095)) {
213
+ o(n, 0, 0, 0, 1);
210
214
  return;
211
215
  }
212
- return s(e, (i & 3840) >> 4 | (i & 3840) >> 8, i & 240 | (i & 240) >> 4, i & 15 | (i & 15) << 4, u === 5 ? parseInt(l.slice(4), 16) / 15 : 1), h(n, e), e;
213
- } else if (u === 7 || u === 9) {
214
- var i = parseInt(l.slice(1, 7), 16);
215
- if (!(i >= 0 && i <= 16777215)) {
216
- s(e, 0, 0, 0, 1);
216
+ return o(n, (l & 3840) >> 4 | (l & 3840) >> 8, l & 240 | (l & 240) >> 4, l & 15 | (l & 15) << 4, i === 5 ? parseInt(r.slice(4), 16) / 15 : 1), c(e, n), n;
217
+ } else if (i === 7 || i === 9) {
218
+ var l = parseInt(r.slice(1, 7), 16);
219
+ if (!(l >= 0 && l <= 16777215)) {
220
+ o(n, 0, 0, 0, 1);
217
221
  return;
218
222
  }
219
- return s(e, (i & 16711680) >> 16, (i & 65280) >> 8, i & 255, u === 9 ? parseInt(l.slice(7), 16) / 255 : 1), h(n, e), e;
223
+ return o(n, (l & 16711680) >> 16, (l & 65280) >> 8, l & 255, i === 9 ? parseInt(r.slice(7), 16) / 255 : 1), c(e, n), n;
220
224
  }
221
225
  return;
222
226
  }
223
- var f = l.indexOf("("), d = l.indexOf(")");
224
- if (f !== -1 && d + 1 === u) {
225
- var g = l.substr(0, f), r = l.substr(f + 1, d - (f + 1)).split(","), b = 1;
226
- switch (g) {
227
+ var a = r.indexOf("("), d = r.indexOf(")");
228
+ if (a !== -1 && d + 1 === i) {
229
+ var s = r.substr(0, a), u = r.substr(a + 1, d - (a + 1)).split(","), y = 1;
230
+ switch (s) {
227
231
  case "rgba":
228
- if (r.length !== 4)
229
- return r.length === 3 ? s(e, +r[0], +r[1], +r[2], 1) : s(e, 0, 0, 0, 1);
230
- b = c(r.pop());
232
+ if (u.length !== 4)
233
+ return u.length === 3 ? o(n, +u[0], +u[1], +u[2], 1) : o(n, 0, 0, 0, 1);
234
+ y = g(u.pop());
231
235
  case "rgb":
232
- if (r.length >= 3)
233
- return s(e, y(r[0]), y(r[1]), y(r[2]), r.length === 3 ? b : c(r[3])), h(n, e), e;
234
- s(e, 0, 0, 0, 1);
236
+ if (u.length >= 3)
237
+ return o(n, x(u[0]), x(u[1]), x(u[2]), u.length === 3 ? y : g(u[3])), c(e, n), n;
238
+ o(n, 0, 0, 0, 1);
235
239
  return;
236
240
  case "hsla":
237
- if (r.length !== 4) {
238
- s(e, 0, 0, 0, 1);
241
+ if (u.length !== 4) {
242
+ o(n, 0, 0, 0, 1);
239
243
  return;
240
244
  }
241
- return r[3] = c(r[3]), q(r, e), h(n, e), e;
245
+ return u[3] = g(u[3]), M(u, n), c(e, n), n;
242
246
  case "hsl":
243
- if (r.length !== 3) {
244
- s(e, 0, 0, 0, 1);
247
+ if (u.length !== 3) {
248
+ o(n, 0, 0, 0, 1);
245
249
  return;
246
250
  }
247
- return q(r, e), h(n, e), e;
251
+ return M(u, n), c(e, n), n;
248
252
  default:
249
253
  return;
250
254
  }
251
255
  }
252
- s(e, 0, 0, 0, 1);
256
+ o(n, 0, 0, 0, 1);
253
257
  }
254
258
  }
255
- a(p, "parse");
256
- function q(n, e) {
257
- var t = (parseFloat(n[0]) % 360 + 360) % 360 / 360, l = c(n[1]), u = c(n[2]), i = u <= 0.5 ? u * (l + 1) : u + l - u * l, f = u * 2 - i;
258
- return e = e || [], s(e, o(m(f, i, t + 1 / 3) * 255), o(m(f, i, t) * 255), o(m(f, i, t - 1 / 3) * 255), 1), n.length === 4 && (e[3] = n[3]), e;
259
+ f(p, "parse");
260
+ function M(e, n) {
261
+ var t = (parseFloat(e[0]) % 360 + 360) % 360 / 360, r = g(e[1]), i = g(e[2]), l = i <= 0.5 ? i * (r + 1) : i + r - i * r, a = i * 2 - l;
262
+ return n = n || [], o(n, h(b(a, l, t + 1 / 3) * 255), h(b(a, l, t) * 255), h(b(a, l, t - 1 / 3) * 255), 1), e.length === 4 && (n[3] = e[3]), n;
263
+ }
264
+ f(M, "hsla2rgba");
265
+ function E(e) {
266
+ if (e) {
267
+ var n = e[0] / 255, t = e[1] / 255, r = e[2] / 255, i = Math.min(n, t, r), l = Math.max(n, t, r), a = l - i, d = (l + i) / 2, s, u;
268
+ if (a === 0)
269
+ s = 0, u = 0;
270
+ else {
271
+ d < 0.5 ? u = a / (l + i) : u = a / (2 - l - i);
272
+ var y = ((l - n) / 6 + a / 2) / a, q = ((l - t) / 6 + a / 2) / a, C = ((l - r) / 6 + a / 2) / a;
273
+ n === l ? s = C - q : t === l ? s = 1 / 3 + y - C : r === l && (s = 2 / 3 + q - y), s < 0 && (s += 1), s > 1 && (s -= 1);
274
+ }
275
+ var F = [s * 360, u, d];
276
+ return e[3] != null && F.push(e[3]), F;
277
+ }
259
278
  }
260
- a(q, "hsla2rgba");
261
- function C(n, e) {
262
- var t = p(n);
279
+ f(E, "rgba2hsla");
280
+ function R(e, n) {
281
+ var t = p(e);
263
282
  if (t) {
264
- for (var l = 0; l < 3; l++)
265
- t[l] = t[l] * (1 - e) | 0, t[l] > 255 ? t[l] = 255 : t[l] < 0 && (t[l] = 0);
266
- return M(t, t.length === 4 ? "rgba" : "rgb");
283
+ for (var r = 0; r < 3; r++)
284
+ t[r] = t[r] * (1 - n) | 0, t[r] > 255 ? t[r] = 255 : t[r] < 0 && (t[r] = 0);
285
+ return w(t, t.length === 4 ? "rgba" : "rgb");
267
286
  }
268
287
  }
269
- a(C, "lift");
270
- function D(n, e, t) {
271
- if (!(!(e && e.length) || !(n >= 0 && n <= 1))) {
272
- var l = n * (e.length - 1), u = Math.floor(l), i = Math.ceil(l), f = p(e[u]), d = p(e[i]), g = l - u, r = M([
273
- o(v(f[0], d[0], g)),
274
- o(v(f[1], d[1], g)),
275
- o(v(f[2], d[2], g)),
276
- w(v(f[3], d[3], g))
288
+ f(R, "lift");
289
+ function Q(e, n, t) {
290
+ if (!(!(n && n.length) || !(e >= 0 && e <= 1))) {
291
+ t = t || [];
292
+ var r = e * (n.length - 1), i = Math.floor(r), l = Math.ceil(r), a = n[i], d = n[l], s = r - i;
293
+ return t[0] = h(v(a[0], d[0], s)), t[1] = h(v(a[1], d[1], s)), t[2] = h(v(a[2], d[2], s)), t[3] = k(v(a[3], d[3], s)), t;
294
+ }
295
+ }
296
+ f(Q, "fastLerp");
297
+ function W(e, n, t) {
298
+ if (!(!(n && n.length) || !(e >= 0 && e <= 1))) {
299
+ var r = e * (n.length - 1), i = Math.floor(r), l = Math.ceil(r), a = p(n[i]), d = p(n[l]), s = r - i, u = w([
300
+ h(v(a[0], d[0], s)),
301
+ h(v(a[1], d[1], s)),
302
+ h(v(a[2], d[2], s)),
303
+ k(v(a[3], d[3], s))
277
304
  ], "rgba");
278
305
  return t ? {
279
- color: r,
280
- leftIndex: u,
281
- rightIndex: i,
282
- value: l
283
- } : r;
306
+ color: u,
307
+ leftIndex: i,
308
+ rightIndex: l,
309
+ value: r
310
+ } : u;
284
311
  }
285
312
  }
286
- a(D, "lerp");
287
- function M(n, e) {
288
- if (!(!n || !n.length)) {
289
- var t = n[0] + "," + n[1] + "," + n[2];
290
- return (e === "rgba" || e === "hsva" || e === "hsla") && (t += "," + n[3]), e + "(" + t + ")";
313
+ f(W, "lerp");
314
+ function X(e, n, t, r) {
315
+ var i = p(e);
316
+ if (e)
317
+ return i = E(i), n != null && (i[0] = D(n)), t != null && (i[1] = g(t)), r != null && (i[2] = g(r)), w(M(i), "rgba");
318
+ }
319
+ f(X, "modifyHSL");
320
+ function Y(e, n) {
321
+ var t = p(e);
322
+ if (t && n != null)
323
+ return t[3] = k(n), w(t, "rgba");
324
+ }
325
+ f(Y, "modifyAlpha");
326
+ function w(e, n) {
327
+ if (!(!e || !e.length)) {
328
+ var t = e[0] + "," + e[1] + "," + e[2];
329
+ return (n === "rgba" || n === "hsva" || n === "hsla") && (t += "," + e[3]), n + "(" + t + ")";
291
330
  }
292
331
  }
293
- a(M, "stringify");
294
- function E(n, e) {
295
- var t = p(n);
296
- return t ? (0.299 * t[0] + 0.587 * t[1] + 0.114 * t[2]) * t[3] / 255 + (1 - t[3]) * e : 0;
332
+ f(w, "stringify");
333
+ function Z(e, n) {
334
+ var t = p(e);
335
+ return t ? (0.299 * t[0] + 0.587 * t[1] + 0.114 * t[2]) * t[3] / 255 + (1 - t[3]) * n : 0;
297
336
  }
298
- a(E, "lum");
299
- var F = new R(100);
300
- function J(n) {
301
- if (T(n)) {
302
- var e = F.get(n);
303
- return e || (e = C(n, -0.1), F.put(n, e)), e;
304
- } else if (j(n)) {
305
- var t = B({}, n);
306
- return t.colorStops = G(n.colorStops, function(l) {
337
+ f(Z, "lum");
338
+ var H = new O(100);
339
+ function _(e) {
340
+ if (B(e)) {
341
+ var n = H.get(e);
342
+ return n || (n = R(e, -0.1), H.put(e, n)), n;
343
+ } else if (G(e)) {
344
+ var t = N({}, e);
345
+ return t.colorStops = U(e.colorStops, function(r) {
307
346
  return {
308
- offset: l.offset,
309
- color: C(l.color, -0.1)
347
+ offset: r.offset,
348
+ color: R(r.color, -0.1)
310
349
  };
311
350
  }), t;
312
351
  }
313
- return n;
352
+ return e;
314
353
  }
315
- a(J, "liftColor");
354
+ f(_, "liftColor");
316
355
  export {
317
- D as lerp,
318
- C as lift,
319
- J as liftColor,
320
- E as lum,
356
+ Q as fastLerp,
357
+ W as lerp,
358
+ R as lift,
359
+ _ as liftColor,
360
+ Z as lum,
361
+ Y as modifyAlpha,
362
+ X as modifyHSL,
321
363
  p as parse,
322
- M as stringify
364
+ w as stringify
323
365
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-6e7750c2"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-6ec1e636"]]);exports.default=u;