mapboxgl-tools 1.2.4 → 1.3.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/ui.es.js CHANGED
@@ -1091,10 +1091,10 @@ var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && common
1091
1091
  var _freeGlobal = freeGlobal$1;
1092
1092
  var freeGlobal = _freeGlobal;
1093
1093
  var freeSelf = typeof self == "object" && self && self.Object === Object && self;
1094
- var root$9 = freeGlobal || freeSelf || Function("return this")();
1095
- var _root = root$9;
1096
- var root$8 = _root;
1097
- var Symbol$4 = root$8.Symbol;
1094
+ var root$a = freeGlobal || freeSelf || Function("return this")();
1095
+ var _root = root$a;
1096
+ var root$9 = _root;
1097
+ var Symbol$4 = root$9.Symbol;
1098
1098
  var _Symbol = Symbol$4;
1099
1099
  var Symbol$3 = _Symbol;
1100
1100
  var objectProto$d = Object.prototype;
@@ -1871,8 +1871,8 @@ function isEmptyElement(c) {
1871
1871
  return !(c.tag || c.text && c.text.trim() !== "");
1872
1872
  }
1873
1873
  function filterEmpty() {
1874
- var children = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
1875
- return children.filter(function(c) {
1874
+ var children2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
1875
+ return children2.filter(function(c) {
1876
1876
  return !isEmptyElement(c);
1877
1877
  });
1878
1878
  }
@@ -2339,9 +2339,9 @@ var LocaleReceiver = {
2339
2339
  },
2340
2340
  render: function render2() {
2341
2341
  var $scopedSlots = this.$scopedSlots;
2342
- var children = this.children || $scopedSlots["default"];
2342
+ var children2 = this.children || $scopedSlots["default"];
2343
2343
  var antLocale = this.localeData.antLocale;
2344
- return children(this.getLocale(), this.getLocaleCode(), antLocale);
2344
+ return children2(this.getLocale(), this.getLocaleCode(), antLocale);
2345
2345
  }
2346
2346
  };
2347
2347
  var DefaultEmptyImg = {
@@ -2795,7 +2795,7 @@ var Checkbox = {
2795
2795
  var h = arguments[0];
2796
2796
  var checkboxGroup = this.checkboxGroupContext, $slots = this.$slots;
2797
2797
  var props2 = getOptionProps(this);
2798
- var children = $slots["default"];
2798
+ var children2 = $slots["default"];
2799
2799
  var _getListeners = getListeners(this), _getListeners$mouseen = _getListeners.mouseenter, mouseenter = _getListeners$mouseen === void 0 ? noop$b : _getListeners$mouseen, _getListeners$mousele = _getListeners.mouseleave, mouseleave = _getListeners$mousele === void 0 ? noop$b : _getListeners$mousele;
2800
2800
  _getListeners.input;
2801
2801
  var restListeners = _default$6(_getListeners, ["mouseenter", "mouseleave", "input"]);
@@ -2813,7 +2813,7 @@ var Checkbox = {
2813
2813
  args[_key] = arguments[_key];
2814
2814
  }
2815
2815
  _this2.$emit.apply(_this2, ["change"].concat(args));
2816
- checkboxGroup.toggleOption({ label: children, value: props2.value });
2816
+ checkboxGroup.toggleOption({ label: children2, value: props2.value });
2817
2817
  };
2818
2818
  checkboxProps.props.name = checkboxGroup.name;
2819
2819
  checkboxProps.props.checked = checkboxGroup.sValue.indexOf(props2.value) !== -1;
@@ -2833,7 +2833,7 @@ var Checkbox = {
2833
2833
  "mouseleave": mouseleave
2834
2834
  }
2835
2835
  },
2836
- [h(Checkbox$1, _mergeJSXProps([checkboxProps, { "class": checkboxClass, ref: "vcCheckbox" }])), children !== void 0 && h("span", [children])]
2836
+ [h(Checkbox$1, _mergeJSXProps([checkboxProps, { "class": checkboxClass, ref: "vcCheckbox" }])), children2 !== void 0 && h("span", [children2])]
2837
2837
  );
2838
2838
  }
2839
2839
  };
@@ -2933,10 +2933,10 @@ var CheckboxGroup = {
2933
2933
  var customizePrefixCls = props2.prefixCls, options2 = props2.options;
2934
2934
  var getPrefixCls4 = this.configProvider.getPrefixCls;
2935
2935
  var prefixCls2 = getPrefixCls4("checkbox", customizePrefixCls);
2936
- var children = $slots["default"];
2936
+ var children2 = $slots["default"];
2937
2937
  var groupPrefixCls = prefixCls2 + "-group";
2938
2938
  if (options2 && options2.length > 0) {
2939
- children = this.getOptions().map(function(option) {
2939
+ children2 = this.getOptions().map(function(option) {
2940
2940
  return h(
2941
2941
  Checkbox,
2942
2942
  {
@@ -2960,7 +2960,7 @@ var CheckboxGroup = {
2960
2960
  return h(
2961
2961
  "div",
2962
2962
  { "class": groupPrefixCls },
2963
- [children]
2963
+ [children2]
2964
2964
  );
2965
2965
  }
2966
2966
  };
@@ -3112,10 +3112,10 @@ var performanceNow = { exports: {} };
3112
3112
  loadTime = new Date().getTime();
3113
3113
  }
3114
3114
  }).call(commonjsGlobal);
3115
- var now$1 = performanceNow.exports, root$7 = typeof window === "undefined" ? commonjsGlobal : window, vendors = ["moz", "webkit"], suffix = "AnimationFrame", raf$1 = root$7["request" + suffix], caf = root$7["cancel" + suffix] || root$7["cancelRequest" + suffix];
3115
+ var now$1 = performanceNow.exports, root$8 = typeof window === "undefined" ? commonjsGlobal : window, vendors = ["moz", "webkit"], suffix = "AnimationFrame", raf$1 = root$8["request" + suffix], caf = root$8["cancel" + suffix] || root$8["cancelRequest" + suffix];
3116
3116
  for (var i = 0; !raf$1 && i < vendors.length; i++) {
3117
- raf$1 = root$7[vendors[i] + "Request" + suffix];
3118
- caf = root$7[vendors[i] + "Cancel" + suffix] || root$7[vendors[i] + "CancelRequest" + suffix];
3117
+ raf$1 = root$8[vendors[i] + "Request" + suffix];
3118
+ caf = root$8[vendors[i] + "Cancel" + suffix] || root$8[vendors[i] + "CancelRequest" + suffix];
3119
3119
  }
3120
3120
  if (!raf$1 || !caf) {
3121
3121
  var last = 0, id$1 = 0, queue = [], frameDuration = 1e3 / 60;
@@ -3155,14 +3155,14 @@ if (!raf$1 || !caf) {
3155
3155
  };
3156
3156
  }
3157
3157
  raf$3.exports = function(fn) {
3158
- return raf$1.call(root$7, fn);
3158
+ return raf$1.call(root$8, fn);
3159
3159
  };
3160
3160
  raf$3.exports.cancel = function() {
3161
- caf.apply(root$7, arguments);
3161
+ caf.apply(root$8, arguments);
3162
3162
  };
3163
3163
  raf$3.exports.polyfill = function(object) {
3164
3164
  if (!object) {
3165
- object = root$7;
3165
+ object = root$8;
3166
3166
  }
3167
3167
  object.requestAnimationFrame = raf$1;
3168
3168
  object.cancelAnimationFrame = caf;
@@ -6693,18 +6693,18 @@ var tinycolor = { exports: {} };
6693
6693
  a
6694
6694
  };
6695
6695
  }
6696
- function rgbToRgb(r, g, b) {
6696
+ function rgbToRgb(r2, g, b) {
6697
6697
  return {
6698
- r: bound01(r, 255) * 255,
6698
+ r: bound01(r2, 255) * 255,
6699
6699
  g: bound01(g, 255) * 255,
6700
6700
  b: bound01(b, 255) * 255
6701
6701
  };
6702
6702
  }
6703
- function rgbToHsl(r, g, b) {
6704
- r = bound01(r, 255);
6703
+ function rgbToHsl(r2, g, b) {
6704
+ r2 = bound01(r2, 255);
6705
6705
  g = bound01(g, 255);
6706
6706
  b = bound01(b, 255);
6707
- var max2 = Math.max(r, g, b), min2 = Math.min(r, g, b);
6707
+ var max2 = Math.max(r2, g, b), min2 = Math.min(r2, g, b);
6708
6708
  var h, s, l = (max2 + min2) / 2;
6709
6709
  if (max2 == min2) {
6710
6710
  h = s = 0;
@@ -6712,14 +6712,14 @@ var tinycolor = { exports: {} };
6712
6712
  var d = max2 - min2;
6713
6713
  s = l > 0.5 ? d / (2 - max2 - min2) : d / (max2 + min2);
6714
6714
  switch (max2) {
6715
- case r:
6715
+ case r2:
6716
6716
  h = (g - b) / d + (g < b ? 6 : 0);
6717
6717
  break;
6718
6718
  case g:
6719
- h = (b - r) / d + 2;
6719
+ h = (b - r2) / d + 2;
6720
6720
  break;
6721
6721
  case b:
6722
- h = (r - g) / d + 4;
6722
+ h = (r2 - g) / d + 4;
6723
6723
  break;
6724
6724
  }
6725
6725
  h /= 6;
@@ -6731,43 +6731,43 @@ var tinycolor = { exports: {} };
6731
6731
  };
6732
6732
  }
6733
6733
  function hslToRgb(h, s, l) {
6734
- var r, g, b;
6734
+ var r2, g, b;
6735
6735
  h = bound01(h, 360);
6736
6736
  s = bound01(s, 100);
6737
6737
  l = bound01(l, 100);
6738
- function hue2rgb(p2, q2, t) {
6739
- if (t < 0)
6740
- t += 1;
6741
- if (t > 1)
6742
- t -= 1;
6743
- if (t < 1 / 6)
6744
- return p2 + (q2 - p2) * 6 * t;
6745
- if (t < 1 / 2)
6738
+ function hue2rgb(p2, q2, t2) {
6739
+ if (t2 < 0)
6740
+ t2 += 1;
6741
+ if (t2 > 1)
6742
+ t2 -= 1;
6743
+ if (t2 < 1 / 6)
6744
+ return p2 + (q2 - p2) * 6 * t2;
6745
+ if (t2 < 1 / 2)
6746
6746
  return q2;
6747
- if (t < 2 / 3)
6748
- return p2 + (q2 - p2) * (2 / 3 - t) * 6;
6747
+ if (t2 < 2 / 3)
6748
+ return p2 + (q2 - p2) * (2 / 3 - t2) * 6;
6749
6749
  return p2;
6750
6750
  }
6751
6751
  if (s === 0) {
6752
- r = g = b = l;
6752
+ r2 = g = b = l;
6753
6753
  } else {
6754
6754
  var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
6755
6755
  var p = 2 * l - q;
6756
- r = hue2rgb(p, q, h + 1 / 3);
6756
+ r2 = hue2rgb(p, q, h + 1 / 3);
6757
6757
  g = hue2rgb(p, q, h);
6758
6758
  b = hue2rgb(p, q, h - 1 / 3);
6759
6759
  }
6760
6760
  return {
6761
- r: r * 255,
6761
+ r: r2 * 255,
6762
6762
  g: g * 255,
6763
6763
  b: b * 255
6764
6764
  };
6765
6765
  }
6766
- function rgbToHsv(r, g, b) {
6767
- r = bound01(r, 255);
6766
+ function rgbToHsv(r2, g, b) {
6767
+ r2 = bound01(r2, 255);
6768
6768
  g = bound01(g, 255);
6769
6769
  b = bound01(b, 255);
6770
- var max2 = Math.max(r, g, b), min2 = Math.min(r, g, b);
6770
+ var max2 = Math.max(r2, g, b), min2 = Math.min(r2, g, b);
6771
6771
  var h, s, v = max2;
6772
6772
  var d = max2 - min2;
6773
6773
  s = max2 === 0 ? 0 : d / max2;
@@ -6775,14 +6775,14 @@ var tinycolor = { exports: {} };
6775
6775
  h = 0;
6776
6776
  } else {
6777
6777
  switch (max2) {
6778
- case r:
6778
+ case r2:
6779
6779
  h = (g - b) / d + (g < b ? 6 : 0);
6780
6780
  break;
6781
6781
  case g:
6782
- h = (b - r) / d + 2;
6782
+ h = (b - r2) / d + 2;
6783
6783
  break;
6784
6784
  case b:
6785
- h = (r - g) / d + 4;
6785
+ h = (r2 - g) / d + 4;
6786
6786
  break;
6787
6787
  }
6788
6788
  h /= 6;
@@ -6797,29 +6797,29 @@ var tinycolor = { exports: {} };
6797
6797
  h = bound01(h, 360) * 6;
6798
6798
  s = bound01(s, 100);
6799
6799
  v = bound01(v, 100);
6800
- var i = Math.floor(h), f = h - i, p = v * (1 - s), q = v * (1 - f * s), t = v * (1 - (1 - f) * s), mod = i % 6, r = [v, q, p, p, t, v][mod], g = [t, v, v, q, p, p][mod], b = [p, p, t, v, v, q][mod];
6800
+ var i = Math.floor(h), f = h - i, p = v * (1 - s), q = v * (1 - f * s), t2 = v * (1 - (1 - f) * s), mod = i % 6, r2 = [v, q, p, p, t2, v][mod], g = [t2, v, v, q, p, p][mod], b = [p, p, t2, v, v, q][mod];
6801
6801
  return {
6802
- r: r * 255,
6802
+ r: r2 * 255,
6803
6803
  g: g * 255,
6804
6804
  b: b * 255
6805
6805
  };
6806
6806
  }
6807
- function rgbToHex(r, g, b, allow3Char) {
6808
- var hex = [pad2(Math.round(r).toString(16)), pad2(Math.round(g).toString(16)), pad2(Math.round(b).toString(16))];
6807
+ function rgbToHex(r2, g, b, allow3Char) {
6808
+ var hex = [pad2(Math.round(r2).toString(16)), pad2(Math.round(g).toString(16)), pad2(Math.round(b).toString(16))];
6809
6809
  if (allow3Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1)) {
6810
6810
  return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0);
6811
6811
  }
6812
6812
  return hex.join("");
6813
6813
  }
6814
- function rgbaToHex(r, g, b, a, allow4Char) {
6815
- var hex = [pad2(Math.round(r).toString(16)), pad2(Math.round(g).toString(16)), pad2(Math.round(b).toString(16)), pad2(convertDecimalToHex(a))];
6814
+ function rgbaToHex(r2, g, b, a, allow4Char) {
6815
+ var hex = [pad2(Math.round(r2).toString(16)), pad2(Math.round(g).toString(16)), pad2(Math.round(b).toString(16)), pad2(convertDecimalToHex(a))];
6816
6816
  if (allow4Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1) && hex[3].charAt(0) == hex[3].charAt(1)) {
6817
6817
  return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0);
6818
6818
  }
6819
6819
  return hex.join("");
6820
6820
  }
6821
- function rgbaToArgbHex(r, g, b, a) {
6822
- var hex = [pad2(convertDecimalToHex(a)), pad2(Math.round(r).toString(16)), pad2(Math.round(g).toString(16)), pad2(Math.round(b).toString(16))];
6821
+ function rgbaToArgbHex(r2, g, b, a) {
6822
+ var hex = [pad2(convertDecimalToHex(a)), pad2(Math.round(r2).toString(16)), pad2(Math.round(g).toString(16)), pad2(Math.round(b).toString(16))];
6823
6823
  return hex.join("");
6824
6824
  }
6825
6825
  tinycolor2.equals = function(color1, color2) {
@@ -7685,13 +7685,13 @@ function create$1(options2) {
7685
7685
  var props2 = context.props, slots = context.slots, listeners = context.listeners, data25 = context.data;
7686
7686
  var type = props2.type, restProps = _default$6(props2, ["type"]);
7687
7687
  var slotsMap = slots();
7688
- var children = slotsMap["default"];
7688
+ var children2 = slotsMap["default"];
7689
7689
  var content = null;
7690
7690
  if (type) {
7691
7691
  content = h("use", { attrs: { "xlink:href": "#" + type } });
7692
7692
  }
7693
- if (children) {
7694
- content = children;
7693
+ if (children2) {
7694
+ content = children2;
7695
7695
  }
7696
7696
  var iconProps = mergeProps(extraCommonProps, data25, { props: restProps, on: listeners });
7697
7697
  return h(
@@ -7780,9 +7780,9 @@ function renderIcon(h, locale2, context) {
7780
7780
  var props2 = context.$props, $slots = context.$slots;
7781
7781
  var listeners = getListeners(context);
7782
7782
  var type = props2.type, Component2 = props2.component, viewBox = props2.viewBox, spin = props2.spin, theme = props2.theme, twoToneColor = props2.twoToneColor, rotate = props2.rotate, tabIndex = props2.tabIndex;
7783
- var children = filterEmpty($slots["default"]);
7784
- children = children.length === 0 ? void 0 : children;
7785
- warning$1(Boolean(type || Component2 || children), "Icon", "Icon should have `type` prop or `component` prop or `children`.");
7783
+ var children2 = filterEmpty($slots["default"]);
7784
+ children2 = children2.length === 0 ? void 0 : children2;
7785
+ warning$1(Boolean(type || Component2 || children2), "Icon", "Icon should have `type` prop or `component` prop or `children`.");
7786
7786
  var classString = classNames((_classNames = {}, _default$8(_classNames, "anticon", true), _default$8(_classNames, "anticon-" + type, !!type), _classNames));
7787
7787
  var svgClassString = classNames(_default$8({}, "anticon-spin", !!spin || type === "loading"));
7788
7788
  var svgStyle = rotate ? {
@@ -7804,11 +7804,11 @@ function renderIcon(h, locale2, context) {
7804
7804
  return h(
7805
7805
  Component2,
7806
7806
  innerSvgProps,
7807
- [children]
7807
+ [children2]
7808
7808
  );
7809
7809
  }
7810
- if (children) {
7811
- warning$1(Boolean(viewBox) || children.length === 1 && children[0].tag === "use", "Icon", "Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon.");
7810
+ if (children2) {
7811
+ warning$1(Boolean(viewBox) || children2.length === 1 && children2[0].tag === "use", "Icon", "Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon.");
7812
7812
  var _innerSvgProps = {
7813
7813
  attrs: _default$7({}, svgBaseProps),
7814
7814
  "class": svgClassString,
@@ -7819,7 +7819,7 @@ function renderIcon(h, locale2, context) {
7819
7819
  _mergeJSXProps([_innerSvgProps, {
7820
7820
  attrs: { viewBox }
7821
7821
  }]),
7822
- [children]
7822
+ [children2]
7823
7823
  );
7824
7824
  }
7825
7825
  if (typeof type === "string") {
@@ -7946,8 +7946,8 @@ var Button = {
7946
7946
  break;
7947
7947
  }
7948
7948
  var iconType = sLoading ? "loading" : icon;
7949
- var children = filterEmpty($slots["default"]);
7950
- return _ref = {}, _default$8(_ref, "" + prefixCls2, true), _default$8(_ref, prefixCls2 + "-" + type, type), _default$8(_ref, prefixCls2 + "-" + shape2, shape2), _default$8(_ref, prefixCls2 + "-" + sizeCls, sizeCls), _default$8(_ref, prefixCls2 + "-icon-only", children.length === 0 && iconType), _default$8(_ref, prefixCls2 + "-loading", sLoading), _default$8(_ref, prefixCls2 + "-background-ghost", ghost || type === "ghost"), _default$8(_ref, prefixCls2 + "-two-chinese-chars", hasTwoCNChar && autoInsertSpace), _default$8(_ref, prefixCls2 + "-block", block), _ref;
7949
+ var children2 = filterEmpty($slots["default"]);
7950
+ return _ref = {}, _default$8(_ref, "" + prefixCls2, true), _default$8(_ref, prefixCls2 + "-" + type, type), _default$8(_ref, prefixCls2 + "-" + shape2, shape2), _default$8(_ref, prefixCls2 + "-" + sizeCls, sizeCls), _default$8(_ref, prefixCls2 + "-icon-only", children2.length === 0 && iconType), _default$8(_ref, prefixCls2 + "-loading", sLoading), _default$8(_ref, prefixCls2 + "-background-ghost", ghost || type === "ghost"), _default$8(_ref, prefixCls2 + "-two-chinese-chars", hasTwoCNChar && autoInsertSpace), _default$8(_ref, prefixCls2 + "-block", block), _ref;
7951
7951
  }
7952
7952
  },
7953
7953
  watch: {
@@ -8034,9 +8034,9 @@ var Button = {
8034
8034
  var iconNode = iconType ? h(Icon$1, {
8035
8035
  attrs: { type: iconType }
8036
8036
  }) : null;
8037
- var children = filterEmpty($slots["default"]);
8037
+ var children2 = filterEmpty($slots["default"]);
8038
8038
  var autoInsertSpace = this.configProvider.autoInsertSpaceInButton !== false;
8039
- var kids = children.map(function(child) {
8039
+ var kids = children2.map(function(child) {
8040
8040
  return _this2.insertSpace(child, _this2.isNeedInserted() && autoInsertSpace);
8041
8041
  });
8042
8042
  if ($attrs.href !== void 0) {
@@ -8334,16 +8334,16 @@ try {
8334
8334
  var re = /\s+/;
8335
8335
  var toString = Object.prototype.toString;
8336
8336
  var componentClasses = function(el) {
8337
- return new ClassList(el);
8337
+ return new ClassList$1(el);
8338
8338
  };
8339
- function ClassList(el) {
8339
+ function ClassList$1(el) {
8340
8340
  if (!el || !el.nodeType) {
8341
8341
  throw new Error("A DOM element reference is required");
8342
8342
  }
8343
8343
  this.el = el;
8344
8344
  this.list = el.classList;
8345
8345
  }
8346
- ClassList.prototype.add = function(name) {
8346
+ ClassList$1.prototype.add = function(name) {
8347
8347
  if (this.list) {
8348
8348
  this.list.add(name);
8349
8349
  return this;
@@ -8355,7 +8355,7 @@ ClassList.prototype.add = function(name) {
8355
8355
  this.el.className = arr.join(" ");
8356
8356
  return this;
8357
8357
  };
8358
- ClassList.prototype.remove = function(name) {
8358
+ ClassList$1.prototype.remove = function(name) {
8359
8359
  if ("[object RegExp]" == toString.call(name)) {
8360
8360
  return this.removeMatching(name);
8361
8361
  }
@@ -8370,7 +8370,7 @@ ClassList.prototype.remove = function(name) {
8370
8370
  this.el.className = arr.join(" ");
8371
8371
  return this;
8372
8372
  };
8373
- ClassList.prototype.removeMatching = function(re2) {
8373
+ ClassList$1.prototype.removeMatching = function(re2) {
8374
8374
  var arr = this.array();
8375
8375
  for (var i = 0; i < arr.length; i++) {
8376
8376
  if (re2.test(arr[i])) {
@@ -8379,7 +8379,7 @@ ClassList.prototype.removeMatching = function(re2) {
8379
8379
  }
8380
8380
  return this;
8381
8381
  };
8382
- ClassList.prototype.toggle = function(name, force) {
8382
+ ClassList$1.prototype.toggle = function(name, force) {
8383
8383
  if (this.list) {
8384
8384
  if ("undefined" !== typeof force) {
8385
8385
  if (force !== this.list.toggle(name, force)) {
@@ -8405,7 +8405,7 @@ ClassList.prototype.toggle = function(name, force) {
8405
8405
  }
8406
8406
  return this;
8407
8407
  };
8408
- ClassList.prototype.array = function() {
8408
+ ClassList$1.prototype.array = function() {
8409
8409
  var className = this.el.getAttribute("class") || "";
8410
8410
  var str = className.replace(/^\s+|\s+$/g, "");
8411
8411
  var arr = str.split(re);
@@ -8413,7 +8413,7 @@ ClassList.prototype.array = function() {
8413
8413
  arr.shift();
8414
8414
  return arr;
8415
8415
  };
8416
- ClassList.prototype.has = ClassList.prototype.contains = function(name) {
8416
+ ClassList$1.prototype.has = ClassList$1.prototype.contains = function(name) {
8417
8417
  return this.list ? this.list.contains(name) : !!~index$9(this.array(), name);
8418
8418
  };
8419
8419
  var availablePrefixs = ["moz", "ms", "webkit"];
@@ -9196,7 +9196,7 @@ function cloneElement(n) {
9196
9196
  return null;
9197
9197
  }
9198
9198
  var node = cloneVNode(ele, deep);
9199
- var _nodeProps$props = nodeProps.props, props2 = _nodeProps$props === void 0 ? {} : _nodeProps$props, key2 = nodeProps.key, _nodeProps$on = nodeProps.on, on = _nodeProps$on === void 0 ? {} : _nodeProps$on, _nodeProps$nativeOn = nodeProps.nativeOn, nativeOn = _nodeProps$nativeOn === void 0 ? {} : _nodeProps$nativeOn, children = nodeProps.children, _nodeProps$directives = nodeProps.directives, directives = _nodeProps$directives === void 0 ? [] : _nodeProps$directives;
9199
+ var _nodeProps$props = nodeProps.props, props2 = _nodeProps$props === void 0 ? {} : _nodeProps$props, key2 = nodeProps.key, _nodeProps$on = nodeProps.on, on = _nodeProps$on === void 0 ? {} : _nodeProps$on, _nodeProps$nativeOn = nodeProps.nativeOn, nativeOn = _nodeProps$nativeOn === void 0 ? {} : _nodeProps$nativeOn, children2 = nodeProps.children, _nodeProps$directives = nodeProps.directives, directives = _nodeProps$directives === void 0 ? [] : _nodeProps$directives;
9200
9200
  var data25 = node.data || {};
9201
9201
  var cls = {};
9202
9202
  var style = {};
@@ -9242,12 +9242,12 @@ function cloneElement(n) {
9242
9242
  node.componentOptions.listeners = node.componentOptions.listeners || {};
9243
9243
  node.componentOptions.propsData = _default$7({}, node.componentOptions.propsData, props2);
9244
9244
  node.componentOptions.listeners = _default$7({}, node.componentOptions.listeners, on);
9245
- if (children) {
9246
- node.componentOptions.children = children;
9245
+ if (children2) {
9246
+ node.componentOptions.children = children2;
9247
9247
  }
9248
9248
  } else {
9249
- if (children) {
9250
- node.children = children;
9249
+ if (children2) {
9250
+ node.children = children2;
9251
9251
  }
9252
9252
  node.data.on = _default$7({}, node.data.on || {}, on);
9253
9253
  }
@@ -9402,7 +9402,7 @@ var Portal = {
9402
9402
  },
9403
9403
  render: function render17() {
9404
9404
  var h = arguments[0];
9405
- var _$props = this.$props, children = _$props.children, forceRender = _$props.forceRender, visible6 = _$props.visible;
9405
+ var _$props = this.$props, children2 = _$props.children, forceRender = _$props.forceRender, visible6 = _$props.visible;
9406
9406
  var portal = null;
9407
9407
  var childProps = {
9408
9408
  getOpenCount: function getOpenCount2() {
@@ -9415,7 +9415,7 @@ var Portal = {
9415
9415
  portal = h(Portal$1, _mergeJSXProps([{
9416
9416
  attrs: {
9417
9417
  getContainer: this.getDomContainer,
9418
- children: children(childProps)
9418
+ children: children2(childProps)
9419
9419
  }
9420
9420
  }, {
9421
9421
  directives: [{
@@ -9462,7 +9462,7 @@ var DialogWrap = {
9462
9462
  visible: visible6,
9463
9463
  forceRender,
9464
9464
  getContainer: getContainer5,
9465
- children: function children(childProps) {
9465
+ children: function children2(childProps) {
9466
9466
  dialogProps.props = _default$7({}, dialogProps.props, childProps);
9467
9467
  return h(
9468
9468
  Dialog,
@@ -9807,7 +9807,7 @@ var objectAssign = shouldUseNative() ? Object.assign : function(target, source)
9807
9807
  target.addEventListener(eventType, wrapCallback, option || false);
9808
9808
  return {
9809
9809
  v: {
9810
- remove: function remove2() {
9810
+ remove: function remove3() {
9811
9811
  target.removeEventListener(eventType, wrapCallback, useCapture);
9812
9812
  }
9813
9813
  }
@@ -9818,7 +9818,7 @@ var objectAssign = shouldUseNative() ? Object.assign : function(target, source)
9818
9818
  } else if (target.attachEvent) {
9819
9819
  target.attachEvent("on" + eventType, wrapCallback);
9820
9820
  return {
9821
- remove: function remove2() {
9821
+ remove: function remove3() {
9822
9822
  target.detachEvent("on" + eventType, wrapCallback);
9823
9823
  }
9824
9824
  };
@@ -9953,7 +9953,7 @@ var Modal = {
9953
9953
  render: function render19() {
9954
9954
  var h = arguments[0];
9955
9955
  var customizePrefixCls = this.prefixCls, visible6 = this.sVisible, wrapClassName = this.wrapClassName, centered = this.centered, getContainer5 = this.getContainer, $slots = this.$slots, $scopedSlots = this.$scopedSlots, $attrs = this.$attrs;
9956
- var children = $scopedSlots["default"] ? $scopedSlots["default"]() : $slots["default"];
9956
+ var children2 = $scopedSlots["default"] ? $scopedSlots["default"]() : $slots["default"];
9957
9957
  var _configProvider = this.configProvider, getPrefixCls4 = _configProvider.getPrefixCls, getContextPopupContainer = _configProvider.getPopupContainer;
9958
9958
  var prefixCls2 = getPrefixCls4("modal", customizePrefixCls);
9959
9959
  var defaultFooter = h(LocaleReceiver, {
@@ -9995,7 +9995,7 @@ var Modal = {
9995
9995
  return h(
9996
9996
  DialogWrap$1,
9997
9997
  dialogProps,
9998
- [children]
9998
+ [children2]
9999
9999
  );
10000
10000
  }
10001
10001
  };
@@ -10528,13 +10528,13 @@ var Notification = {
10528
10528
  },
10529
10529
  render: function render23(h) {
10530
10530
  var _this = this;
10531
- var prefixCls2 = this.prefixCls, notices = this.notices, remove2 = this.remove, getTransitionName6 = this.getTransitionName;
10531
+ var prefixCls2 = this.prefixCls, notices = this.notices, remove3 = this.remove, getTransitionName6 = this.getTransitionName;
10532
10532
  var transitionProps = getTransitionProps$1(getTransitionName6());
10533
10533
  var noticeNodes = notices.map(function(notice2, index2) {
10534
10534
  var update = Boolean(index2 === notices.length - 1 && notice2.updateKey);
10535
10535
  var key2 = notice2.updateKey ? notice2.updateKey : notice2.key;
10536
10536
  var content = notice2.content, duration2 = notice2.duration, closable = notice2.closable, onClose = notice2.onClose, style2 = notice2.style, className2 = notice2["class"];
10537
- var close4 = createChainedFunction(remove2.bind(_this, notice2.key), onClose);
10537
+ var close4 = createChainedFunction(remove3.bind(_this, notice2.key), onClose);
10538
10538
  var noticeProps = {
10539
10539
  props: {
10540
10540
  prefixCls: prefixCls2,
@@ -13948,10 +13948,10 @@ function eq$2(value6, other) {
13948
13948
  }
13949
13949
  var eq_1 = eq$2;
13950
13950
  var eq$1 = eq_1;
13951
- function assocIndexOf$4(array, key2) {
13952
- var length2 = array.length;
13951
+ function assocIndexOf$4(array2, key2) {
13952
+ var length2 = array2.length;
13953
13953
  while (length2--) {
13954
- if (eq$1(array[length2][0], key2)) {
13954
+ if (eq$1(array2[length2][0], key2)) {
13955
13955
  return length2;
13956
13956
  }
13957
13957
  }
@@ -14049,8 +14049,8 @@ function isFunction$2(value6) {
14049
14049
  return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
14050
14050
  }
14051
14051
  var isFunction_1 = isFunction$2;
14052
- var root$6 = _root;
14053
- var coreJsData$1 = root$6["__core-js_shared__"];
14052
+ var root$7 = _root;
14053
+ var coreJsData$1 = root$7["__core-js_shared__"];
14054
14054
  var _coreJsData = coreJsData$1;
14055
14055
  var coreJsData = _coreJsData;
14056
14056
  var maskSrcKey = function() {
@@ -14104,8 +14104,8 @@ function getNative$7(object, key2) {
14104
14104
  return baseIsNative(value6) ? value6 : void 0;
14105
14105
  }
14106
14106
  var _getNative = getNative$7;
14107
- var getNative$6 = _getNative, root$5 = _root;
14108
- var Map$4 = getNative$6(root$5, "Map");
14107
+ var getNative$6 = _getNative, root$6 = _root;
14108
+ var Map$4 = getNative$6(root$6, "Map");
14109
14109
  var _Map = Map$4;
14110
14110
  var getNative$5 = _getNative;
14111
14111
  var nativeCreate$4 = getNative$5(Object, "create");
@@ -14257,14 +14257,14 @@ Stack$1.prototype.get = stackGet;
14257
14257
  Stack$1.prototype.has = stackHas;
14258
14258
  Stack$1.prototype.set = stackSet;
14259
14259
  var _Stack = Stack$1;
14260
- function arrayEach$1(array, iteratee) {
14261
- var index2 = -1, length2 = array == null ? 0 : array.length;
14260
+ function arrayEach$1(array2, iteratee) {
14261
+ var index2 = -1, length2 = array2 == null ? 0 : array2.length;
14262
14262
  while (++index2 < length2) {
14263
- if (iteratee(array[index2], index2, array) === false) {
14263
+ if (iteratee(array2[index2], index2, array2) === false) {
14264
14264
  break;
14265
14265
  }
14266
14266
  }
14267
- return array;
14267
+ return array2;
14268
14268
  }
14269
14269
  var _arrayEach = arrayEach$1;
14270
14270
  var getNative$4 = _getNative;
@@ -14520,20 +14520,20 @@ var _cloneBuffer = { exports: {} };
14520
14520
  }
14521
14521
  module.exports = cloneBuffer2;
14522
14522
  })(_cloneBuffer, _cloneBuffer.exports);
14523
- function copyArray$1(source, array) {
14523
+ function copyArray$1(source, array2) {
14524
14524
  var index2 = -1, length2 = source.length;
14525
- array || (array = Array(length2));
14525
+ array2 || (array2 = Array(length2));
14526
14526
  while (++index2 < length2) {
14527
- array[index2] = source[index2];
14527
+ array2[index2] = source[index2];
14528
14528
  }
14529
- return array;
14529
+ return array2;
14530
14530
  }
14531
14531
  var _copyArray = copyArray$1;
14532
- function arrayFilter$1(array, predicate) {
14533
- var index2 = -1, length2 = array == null ? 0 : array.length, resIndex = 0, result = [];
14532
+ function arrayFilter$1(array2, predicate) {
14533
+ var index2 = -1, length2 = array2 == null ? 0 : array2.length, resIndex = 0, result = [];
14534
14534
  while (++index2 < length2) {
14535
- var value6 = array[index2];
14536
- if (predicate(value6, index2, array)) {
14535
+ var value6 = array2[index2];
14536
+ if (predicate(value6, index2, array2)) {
14537
14537
  result[resIndex++] = value6;
14538
14538
  }
14539
14539
  }
@@ -14563,12 +14563,12 @@ function copySymbols$1(source, object) {
14563
14563
  return copyObject$1(source, getSymbols$2(source), object);
14564
14564
  }
14565
14565
  var _copySymbols = copySymbols$1;
14566
- function arrayPush$2(array, values) {
14567
- var index2 = -1, length2 = values.length, offset4 = array.length;
14566
+ function arrayPush$2(array2, values) {
14567
+ var index2 = -1, length2 = values.length, offset4 = array2.length;
14568
14568
  while (++index2 < length2) {
14569
- array[offset4 + index2] = values[index2];
14569
+ array2[offset4 + index2] = values[index2];
14570
14570
  }
14571
- return array;
14571
+ return array2;
14572
14572
  }
14573
14573
  var _arrayPush = arrayPush$2;
14574
14574
  var arrayPush$1 = _arrayPush, getPrototype$1 = _getPrototype, getSymbols$1 = _getSymbols, stubArray = stubArray_1;
@@ -14603,17 +14603,17 @@ function getAllKeysIn$1(object) {
14603
14603
  return baseGetAllKeys(object, keysIn$1, getSymbolsIn);
14604
14604
  }
14605
14605
  var _getAllKeysIn = getAllKeysIn$1;
14606
- var getNative$3 = _getNative, root$4 = _root;
14607
- var DataView$1 = getNative$3(root$4, "DataView");
14606
+ var getNative$3 = _getNative, root$5 = _root;
14607
+ var DataView$1 = getNative$3(root$5, "DataView");
14608
14608
  var _DataView = DataView$1;
14609
- var getNative$2 = _getNative, root$3 = _root;
14610
- var Promise$2 = getNative$2(root$3, "Promise");
14609
+ var getNative$2 = _getNative, root$4 = _root;
14610
+ var Promise$2 = getNative$2(root$4, "Promise");
14611
14611
  var _Promise = Promise$2;
14612
- var getNative$1 = _getNative, root$2 = _root;
14613
- var Set$2 = getNative$1(root$2, "Set");
14612
+ var getNative$1 = _getNative, root$3 = _root;
14613
+ var Set$2 = getNative$1(root$3, "Set");
14614
14614
  var _Set = Set$2;
14615
- var getNative = _getNative, root$1 = _root;
14616
- var WeakMap$2 = getNative(root$1, "WeakMap");
14615
+ var getNative = _getNative, root$2 = _root;
14616
+ var WeakMap$2 = getNative(root$2, "WeakMap");
14617
14617
  var _WeakMap = WeakMap$2;
14618
14618
  var DataView = _DataView, Map$1 = _Map, Promise$1 = _Promise, Set$1 = _Set, WeakMap$1 = _WeakMap, baseGetTag = _baseGetTag, toSource = _toSource;
14619
14619
  var mapTag$3 = "[object Map]", objectTag$1 = "[object Object]", promiseTag = "[object Promise]", setTag$3 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
@@ -14643,17 +14643,17 @@ if (DataView && getTag$3(new DataView(new ArrayBuffer(1))) != dataViewTag$2 || M
14643
14643
  var _getTag = getTag$3;
14644
14644
  var objectProto = Object.prototype;
14645
14645
  var hasOwnProperty = objectProto.hasOwnProperty;
14646
- function initCloneArray$1(array) {
14647
- var length2 = array.length, result = new array.constructor(length2);
14648
- if (length2 && typeof array[0] == "string" && hasOwnProperty.call(array, "index")) {
14649
- result.index = array.index;
14650
- result.input = array.input;
14646
+ function initCloneArray$1(array2) {
14647
+ var length2 = array2.length, result = new array2.constructor(length2);
14648
+ if (length2 && typeof array2[0] == "string" && hasOwnProperty.call(array2, "index")) {
14649
+ result.index = array2.index;
14650
+ result.input = array2.input;
14651
14651
  }
14652
14652
  return result;
14653
14653
  }
14654
14654
  var _initCloneArray = initCloneArray$1;
14655
- var root = _root;
14656
- var Uint8Array$1 = root.Uint8Array;
14655
+ var root$1 = _root;
14656
+ var Uint8Array$1 = root$1.Uint8Array;
14657
14657
  var _Uint8Array = Uint8Array$1;
14658
14658
  var Uint8Array = _Uint8Array;
14659
14659
  function cloneArrayBuffer$3(arrayBuffer) {
@@ -14973,18 +14973,18 @@ var LazyRenderBox = {
14973
14973
  var h = arguments[0];
14974
14974
  var _$props = this.$props, hiddenClassName = _$props.hiddenClassName;
14975
14975
  _$props.visible;
14976
- var children = null;
14976
+ var children2 = null;
14977
14977
  if (hiddenClassName || !this.$slots["default"] || this.$slots["default"].length > 1) {
14978
14978
  var cls = "";
14979
- children = h(
14979
+ children2 = h(
14980
14980
  "div",
14981
14981
  { "class": cls },
14982
14982
  [this.$slots["default"]]
14983
14983
  );
14984
14984
  } else {
14985
- children = this.$slots["default"][0];
14985
+ children2 = this.$slots["default"][0];
14986
14986
  }
14987
- return children;
14987
+ return children2;
14988
14988
  }
14989
14989
  };
14990
14990
  var PopupInner = {
@@ -15908,12 +15908,12 @@ var Trigger = {
15908
15908
  var _this6 = this;
15909
15909
  var h = arguments[0];
15910
15910
  var sPopupVisible = this.sPopupVisible;
15911
- var children = filterEmpty(this.$slots["default"]);
15911
+ var children2 = filterEmpty(this.$slots["default"]);
15912
15912
  var _$props8 = this.$props, forceRender = _$props8.forceRender, alignPoint2 = _$props8.alignPoint;
15913
- if (children.length > 1) {
15913
+ if (children2.length > 1) {
15914
15914
  warning$1(false, "Trigger $slots.default.length > 1, just support only one default", true);
15915
15915
  }
15916
- var child = children[0];
15916
+ var child = children2[0];
15917
15917
  this.childOriginEvents = getDataEvents(child);
15918
15918
  var newChildProps = {
15919
15919
  props: {},
@@ -15967,7 +15967,7 @@ var Trigger = {
15967
15967
  forceRender,
15968
15968
  getComponent: this.getComponent,
15969
15969
  getContainer: this.getContainer,
15970
- children: function children2(_ref) {
15970
+ children: function children3(_ref) {
15971
15971
  var renderComponent2 = _ref.renderComponent;
15972
15972
  _this6.renderComponent = renderComponent2;
15973
15973
  return _this6.trigger;
@@ -16152,9 +16152,9 @@ var Dropdown$2 = {
16152
16152
  }
16153
16153
  },
16154
16154
  renderChildren: function renderChildren() {
16155
- var children = this.$slots["default"] && this.$slots["default"][0];
16155
+ var children2 = this.$slots["default"] && this.$slots["default"][0];
16156
16156
  var sVisible = this.sVisible;
16157
- return sVisible && children ? cloneElement(children, { "class": this.getOpenClassName() }) : children;
16157
+ return sVisible && children2 ? cloneElement(children2, { "class": this.getOpenClassName() }) : children2;
16158
16158
  }
16159
16159
  },
16160
16160
  render: function render39() {
@@ -16751,9 +16751,9 @@ function getKeyFromChildrenIndex(child, menuEventKey, index2) {
16751
16751
  function getMenuIdFromSubMenuEventKey(eventKey) {
16752
16752
  return eventKey + "-menu-";
16753
16753
  }
16754
- function loopMenuItem(children, cb) {
16754
+ function loopMenuItem(children2, cb) {
16755
16755
  var index2 = -1;
16756
- children.forEach(function(c) {
16756
+ children2.forEach(function(c) {
16757
16757
  index2++;
16758
16758
  if (c && c.type && c.type.isMenuItemGroup) {
16759
16759
  c.$slots["default"].forEach(function(c2) {
@@ -16765,11 +16765,11 @@ function loopMenuItem(children, cb) {
16765
16765
  }
16766
16766
  });
16767
16767
  }
16768
- function loopMenuItemRecursively(children, keys3, ret) {
16769
- if (!children || ret.find) {
16768
+ function loopMenuItemRecursively(children2, keys3, ret) {
16769
+ if (!children2 || ret.find) {
16770
16770
  return;
16771
16771
  }
16772
- children.forEach(function(c) {
16772
+ children2.forEach(function(c) {
16773
16773
  if (ret.find) {
16774
16774
  return;
16775
16775
  }
@@ -17135,10 +17135,10 @@ var SubMenu$1 = {
17135
17135
  }
17136
17136
  popupMenu.style.minWidth = this.$refs.subMenuTitle.offsetWidth + "px";
17137
17137
  },
17138
- renderChildren: function renderChildren2(children) {
17138
+ renderChildren: function renderChildren2(children2) {
17139
17139
  var h = this.$createElement;
17140
17140
  var props2 = this.$props;
17141
- var _getListeners = getListeners(this), select2 = _getListeners.select, deselect = _getListeners.deselect, openChange = _getListeners.openChange;
17141
+ var _getListeners = getListeners(this), select3 = _getListeners.select, deselect = _getListeners.deselect, openChange = _getListeners.openChange;
17142
17142
  var subPopupMenuProps = {
17143
17143
  props: {
17144
17144
  mode: props2.mode === "horizontal" ? "vertical" : props2.mode,
@@ -17163,11 +17163,11 @@ var SubMenu$1 = {
17163
17163
  manualRef: this.saveMenuInstance,
17164
17164
  itemIcon: getComponentFromProp(this, "itemIcon"),
17165
17165
  expandIcon: getComponentFromProp(this, "expandIcon"),
17166
- children
17166
+ children: children2
17167
17167
  },
17168
17168
  on: {
17169
17169
  click: this.onSubMenuClick,
17170
- select: select2,
17170
+ select: select3,
17171
17171
  deselect,
17172
17172
  openChange
17173
17173
  },
@@ -17277,7 +17277,7 @@ var SubMenu$1 = {
17277
17277
  titleProps,
17278
17278
  [getComponentFromProp(this, "title"), icon || h("i", { "class": prefixCls2 + "-arrow" })]
17279
17279
  );
17280
- var children = this.renderChildren(filterEmpty(this.$slots["default"]));
17280
+ var children2 = this.renderChildren(filterEmpty(this.$slots["default"]));
17281
17281
  var getPopupContainer = this.parentMenu.isRootMenu ? this.parentMenu.getPopupContainer : function(triggerNode) {
17282
17282
  return triggerNode.parentNode;
17283
17283
  };
@@ -17293,7 +17293,7 @@ var SubMenu$1 = {
17293
17293
  _mergeJSXProps([liProps, {
17294
17294
  attrs: { role: "menuitem" }
17295
17295
  }]),
17296
- [isInlineMode && title, isInlineMode && children, !isInlineMode && h(
17296
+ [isInlineMode && title, isInlineMode && children2, !isInlineMode && h(
17297
17297
  Trigger,
17298
17298
  {
17299
17299
  attrs: (_attrs = {
@@ -17309,7 +17309,7 @@ var SubMenu$1 = {
17309
17309
  [h(
17310
17310
  "template",
17311
17311
  { slot: "popup" },
17312
- [children]
17312
+ [children2]
17313
17313
  ), title]
17314
17314
  )]
17315
17315
  );
@@ -17512,11 +17512,11 @@ var DOMWrap = {
17512
17512
  }
17513
17513
  this.setState({ lastVisibleIndex });
17514
17514
  },
17515
- renderChildren: function renderChildren3(children) {
17515
+ renderChildren: function renderChildren3(children2) {
17516
17516
  var _this3 = this;
17517
17517
  var lastVisibleIndex = this.$data.lastVisibleIndex;
17518
17518
  var className = getClass(this);
17519
- return (children || []).reduce(function(acc, childNode, index2) {
17519
+ return (children2 || []).reduce(function(acc, childNode, index2) {
17520
17520
  var item = childNode;
17521
17521
  var eventKey = getPropsData(childNode).eventKey;
17522
17522
  if (_this3.mode === "horizontal") {
@@ -17533,7 +17533,7 @@ var DOMWrap = {
17533
17533
  );
17534
17534
  }
17535
17535
  if (index2 === lastVisibleIndex + 1) {
17536
- _this3.overflowedItems = children.slice(lastVisibleIndex + 1).map(function(c) {
17536
+ _this3.overflowedItems = children2.slice(lastVisibleIndex + 1).map(function(c) {
17537
17537
  return cloneElement(
17538
17538
  c,
17539
17539
  {
@@ -17546,7 +17546,7 @@ var DOMWrap = {
17546
17546
  }
17547
17547
  }
17548
17548
  var ret = [].concat(_default$3(acc), [overflowed, item]);
17549
- if (index2 === children.length - 1) {
17549
+ if (index2 === children2.length - 1) {
17550
17550
  ret.push(_this3.getOverflowedSubMenuItem(eventKey, [], true));
17551
17551
  }
17552
17552
  return ret;
@@ -17604,10 +17604,10 @@ function saveRef(key2, c) {
17604
17604
  }
17605
17605
  function getActiveKey(props2, originalActiveKey) {
17606
17606
  var activeKey = originalActiveKey;
17607
- var eventKey = props2.eventKey, defaultActiveFirst = props2.defaultActiveFirst, children = props2.children;
17607
+ var eventKey = props2.eventKey, defaultActiveFirst = props2.defaultActiveFirst, children2 = props2.children;
17608
17608
  if (activeKey !== void 0 && activeKey !== null) {
17609
17609
  var found = void 0;
17610
- loopMenuItem(children, function(c, i) {
17610
+ loopMenuItem(children2, function(c, i) {
17611
17611
  var propsData = c.componentOptions.propsData || {};
17612
17612
  if (c && !propsData.disabled && activeKey === getKeyFromChildrenIndex(c, eventKey, i)) {
17613
17613
  found = true;
@@ -17619,7 +17619,7 @@ function getActiveKey(props2, originalActiveKey) {
17619
17619
  }
17620
17620
  activeKey = null;
17621
17621
  if (defaultActiveFirst) {
17622
- loopMenuItem(children, function(c, i) {
17622
+ loopMenuItem(children2, function(c, i) {
17623
17623
  var propsData = c.componentOptions.propsData || {};
17624
17624
  var noActiveKey = activeKey === null || activeKey === void 0;
17625
17625
  if (noActiveKey && c && !propsData.disabled) {
@@ -17749,30 +17749,30 @@ var SubPopupMenu = {
17749
17749
  return this.$props.openTransitionName;
17750
17750
  },
17751
17751
  step: function step2(direction) {
17752
- var children = this.getFlatInstanceArray();
17752
+ var children2 = this.getFlatInstanceArray();
17753
17753
  var activeKey = this.$props.store.getState().activeKey[getEventKey(this.$props)];
17754
- var len = children.length;
17754
+ var len = children2.length;
17755
17755
  if (!len) {
17756
17756
  return null;
17757
17757
  }
17758
17758
  if (direction < 0) {
17759
- children = children.concat().reverse();
17759
+ children2 = children2.concat().reverse();
17760
17760
  }
17761
17761
  var activeIndex = -1;
17762
- children.every(function(c, ci) {
17762
+ children2.every(function(c, ci) {
17763
17763
  if (c && c.eventKey === activeKey) {
17764
17764
  activeIndex = ci;
17765
17765
  return false;
17766
17766
  }
17767
17767
  return true;
17768
17768
  });
17769
- if (!this.defaultActiveFirst && activeIndex !== -1 && allDisabled(children.slice(activeIndex, len - 1))) {
17769
+ if (!this.defaultActiveFirst && activeIndex !== -1 && allDisabled(children2.slice(activeIndex, len - 1))) {
17770
17770
  return void 0;
17771
17771
  }
17772
17772
  var start = (activeIndex + 1) % len;
17773
17773
  var i = start;
17774
17774
  do {
17775
- var child = children[i];
17775
+ var child = children2[i];
17776
17776
  if (!child || child.disabled) {
17777
17777
  i = (i + 1) % len;
17778
17778
  } else {
@@ -19344,18 +19344,18 @@ var ToolTip = {
19344
19344
  var getContextPopupContainer = this.configProvider.getPopupContainer;
19345
19345
  var getPrefixCls4 = this.configProvider.getPrefixCls;
19346
19346
  var prefixCls2 = getPrefixCls4("tooltip", customizePrefixCls);
19347
- var children = ($slots["default"] || []).filter(function(c) {
19347
+ var children2 = ($slots["default"] || []).filter(function(c) {
19348
19348
  return c.tag || c.text.trim() !== "";
19349
19349
  });
19350
- children = children.length === 1 ? children[0] : children;
19350
+ children2 = children2.length === 1 ? children2[0] : children2;
19351
19351
  var sVisible = $data.sVisible;
19352
19352
  if (!hasProp(this, "visible") && this.isNoTitle()) {
19353
19353
  sVisible = false;
19354
19354
  }
19355
- if (!children) {
19355
+ if (!children2) {
19356
19356
  return null;
19357
19357
  }
19358
- var child = this.getDisabledCompatibleChildren(isValidElement(children) ? children : h("span", [children]));
19358
+ var child = this.getDisabledCompatibleChildren(isValidElement(children2) ? children2 : h("span", [children2]));
19359
19359
  var childCls = _default$8({}, openClassName || prefixCls2 + "-open", true);
19360
19360
  var tooltipProps = {
19361
19361
  props: _default$7({}, $props, {
@@ -19717,7 +19717,7 @@ var render56 = function() {
19717
19717
  "d": d
19718
19718
  }
19719
19719
  });
19720
- }), 0) : _vm._e(), _vm._v(" \xA0\xA0 "), _c("span", [_vm._v(_vm._s(item.name))])])] : [_c("Dropdown", {
19720
+ }), 0) : _vm._e(), _vm._v(" "), _c("span", [_vm._v(_vm._s(item.name))])])] : [_c("Dropdown", {
19721
19721
  attrs: {
19722
19722
  "trigger": ["click"],
19723
19723
  "placement": "bottomRight",
@@ -19745,7 +19745,7 @@ var render56 = function() {
19745
19745
  "d": d
19746
19746
  }
19747
19747
  });
19748
- }), 0) : _vm._e(), _vm._v(" \xA0\xA0 "), _c("span", [_vm._v(_vm._s(item.name))])]), _c("a-menu", {
19748
+ }), 0) : _vm._e(), _vm._v(" "), _c("span", [_vm._v(_vm._s(item.name))])]), _c("a-menu", {
19749
19749
  attrs: {
19750
19750
  "slot": "overlay"
19751
19751
  },
@@ -20286,10 +20286,846 @@ function length(geojson, options2) {
20286
20286
  }, 0);
20287
20287
  }
20288
20288
  var control$3 = "";
20289
+ var xhtml = "http://www.w3.org/1999/xhtml";
20290
+ var namespaces = {
20291
+ svg: "http://www.w3.org/2000/svg",
20292
+ xhtml,
20293
+ xlink: "http://www.w3.org/1999/xlink",
20294
+ xml: "http://www.w3.org/XML/1998/namespace",
20295
+ xmlns: "http://www.w3.org/2000/xmlns/"
20296
+ };
20297
+ function namespace(name) {
20298
+ var prefix = name += "", i = prefix.indexOf(":");
20299
+ if (i >= 0 && (prefix = name.slice(0, i)) !== "xmlns")
20300
+ name = name.slice(i + 1);
20301
+ return namespaces.hasOwnProperty(prefix) ? { space: namespaces[prefix], local: name } : name;
20302
+ }
20303
+ function creatorInherit(name) {
20304
+ return function() {
20305
+ var document2 = this.ownerDocument, uri = this.namespaceURI;
20306
+ return uri === xhtml && document2.documentElement.namespaceURI === xhtml ? document2.createElement(name) : document2.createElementNS(uri, name);
20307
+ };
20308
+ }
20309
+ function creatorFixed(fullname) {
20310
+ return function() {
20311
+ return this.ownerDocument.createElementNS(fullname.space, fullname.local);
20312
+ };
20313
+ }
20314
+ function creator(name) {
20315
+ var fullname = namespace(name);
20316
+ return (fullname.local ? creatorFixed : creatorInherit)(fullname);
20317
+ }
20318
+ function none() {
20319
+ }
20320
+ function selector(selector2) {
20321
+ return selector2 == null ? none : function() {
20322
+ return this.querySelector(selector2);
20323
+ };
20324
+ }
20325
+ function selection_select(select3) {
20326
+ if (typeof select3 !== "function")
20327
+ select3 = selector(select3);
20328
+ for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {
20329
+ for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {
20330
+ if ((node = group[i]) && (subnode = select3.call(node, node.__data__, i, group))) {
20331
+ if ("__data__" in node)
20332
+ subnode.__data__ = node.__data__;
20333
+ subgroup[i] = subnode;
20334
+ }
20335
+ }
20336
+ }
20337
+ return new Selection(subgroups, this._parents);
20338
+ }
20339
+ function array(x) {
20340
+ return x == null ? [] : Array.isArray(x) ? x : Array.from(x);
20341
+ }
20342
+ function empty() {
20343
+ return [];
20344
+ }
20345
+ function selectorAll(selector2) {
20346
+ return selector2 == null ? empty : function() {
20347
+ return this.querySelectorAll(selector2);
20348
+ };
20349
+ }
20350
+ function arrayAll(select3) {
20351
+ return function() {
20352
+ return array(select3.apply(this, arguments));
20353
+ };
20354
+ }
20355
+ function selection_selectAll(select3) {
20356
+ if (typeof select3 === "function")
20357
+ select3 = arrayAll(select3);
20358
+ else
20359
+ select3 = selectorAll(select3);
20360
+ for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {
20361
+ for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {
20362
+ if (node = group[i]) {
20363
+ subgroups.push(select3.call(node, node.__data__, i, group));
20364
+ parents.push(node);
20365
+ }
20366
+ }
20367
+ }
20368
+ return new Selection(subgroups, parents);
20369
+ }
20370
+ function matcher(selector2) {
20371
+ return function() {
20372
+ return this.matches(selector2);
20373
+ };
20374
+ }
20375
+ function childMatcher(selector2) {
20376
+ return function(node) {
20377
+ return node.matches(selector2);
20378
+ };
20379
+ }
20380
+ var find = Array.prototype.find;
20381
+ function childFind(match2) {
20382
+ return function() {
20383
+ return find.call(this.children, match2);
20384
+ };
20385
+ }
20386
+ function childFirst() {
20387
+ return this.firstElementChild;
20388
+ }
20389
+ function selection_selectChild(match2) {
20390
+ return this.select(match2 == null ? childFirst : childFind(typeof match2 === "function" ? match2 : childMatcher(match2)));
20391
+ }
20392
+ var filter = Array.prototype.filter;
20393
+ function children() {
20394
+ return Array.from(this.children);
20395
+ }
20396
+ function childrenFilter(match2) {
20397
+ return function() {
20398
+ return filter.call(this.children, match2);
20399
+ };
20400
+ }
20401
+ function selection_selectChildren(match2) {
20402
+ return this.selectAll(match2 == null ? children : childrenFilter(typeof match2 === "function" ? match2 : childMatcher(match2)));
20403
+ }
20404
+ function selection_filter(match2) {
20405
+ if (typeof match2 !== "function")
20406
+ match2 = matcher(match2);
20407
+ for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {
20408
+ for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {
20409
+ if ((node = group[i]) && match2.call(node, node.__data__, i, group)) {
20410
+ subgroup.push(node);
20411
+ }
20412
+ }
20413
+ }
20414
+ return new Selection(subgroups, this._parents);
20415
+ }
20416
+ function sparse(update) {
20417
+ return new Array(update.length);
20418
+ }
20419
+ function selection_enter() {
20420
+ return new Selection(this._enter || this._groups.map(sparse), this._parents);
20421
+ }
20422
+ function EnterNode(parent, datum2) {
20423
+ this.ownerDocument = parent.ownerDocument;
20424
+ this.namespaceURI = parent.namespaceURI;
20425
+ this._next = null;
20426
+ this._parent = parent;
20427
+ this.__data__ = datum2;
20428
+ }
20429
+ EnterNode.prototype = {
20430
+ constructor: EnterNode,
20431
+ appendChild: function(child) {
20432
+ return this._parent.insertBefore(child, this._next);
20433
+ },
20434
+ insertBefore: function(child, next) {
20435
+ return this._parent.insertBefore(child, next);
20436
+ },
20437
+ querySelector: function(selector2) {
20438
+ return this._parent.querySelector(selector2);
20439
+ },
20440
+ querySelectorAll: function(selector2) {
20441
+ return this._parent.querySelectorAll(selector2);
20442
+ }
20443
+ };
20444
+ function constant(x) {
20445
+ return function() {
20446
+ return x;
20447
+ };
20448
+ }
20449
+ function bindIndex(parent, group, enter2, update, exit, data25) {
20450
+ var i = 0, node, groupLength = group.length, dataLength = data25.length;
20451
+ for (; i < dataLength; ++i) {
20452
+ if (node = group[i]) {
20453
+ node.__data__ = data25[i];
20454
+ update[i] = node;
20455
+ } else {
20456
+ enter2[i] = new EnterNode(parent, data25[i]);
20457
+ }
20458
+ }
20459
+ for (; i < groupLength; ++i) {
20460
+ if (node = group[i]) {
20461
+ exit[i] = node;
20462
+ }
20463
+ }
20464
+ }
20465
+ function bindKey(parent, group, enter2, update, exit, data25, key2) {
20466
+ var i, node, nodeByKeyValue = /* @__PURE__ */ new Map(), groupLength = group.length, dataLength = data25.length, keyValues = new Array(groupLength), keyValue;
20467
+ for (i = 0; i < groupLength; ++i) {
20468
+ if (node = group[i]) {
20469
+ keyValues[i] = keyValue = key2.call(node, node.__data__, i, group) + "";
20470
+ if (nodeByKeyValue.has(keyValue)) {
20471
+ exit[i] = node;
20472
+ } else {
20473
+ nodeByKeyValue.set(keyValue, node);
20474
+ }
20475
+ }
20476
+ }
20477
+ for (i = 0; i < dataLength; ++i) {
20478
+ keyValue = key2.call(parent, data25[i], i, data25) + "";
20479
+ if (node = nodeByKeyValue.get(keyValue)) {
20480
+ update[i] = node;
20481
+ node.__data__ = data25[i];
20482
+ nodeByKeyValue.delete(keyValue);
20483
+ } else {
20484
+ enter2[i] = new EnterNode(parent, data25[i]);
20485
+ }
20486
+ }
20487
+ for (i = 0; i < groupLength; ++i) {
20488
+ if ((node = group[i]) && nodeByKeyValue.get(keyValues[i]) === node) {
20489
+ exit[i] = node;
20490
+ }
20491
+ }
20492
+ }
20493
+ function datum(node) {
20494
+ return node.__data__;
20495
+ }
20496
+ function selection_data(value6, key2) {
20497
+ if (!arguments.length)
20498
+ return Array.from(this, datum);
20499
+ var bind = key2 ? bindKey : bindIndex, parents = this._parents, groups = this._groups;
20500
+ if (typeof value6 !== "function")
20501
+ value6 = constant(value6);
20502
+ for (var m = groups.length, update = new Array(m), enter2 = new Array(m), exit = new Array(m), j = 0; j < m; ++j) {
20503
+ var parent = parents[j], group = groups[j], groupLength = group.length, data25 = arraylike(value6.call(parent, parent && parent.__data__, j, parents)), dataLength = data25.length, enterGroup = enter2[j] = new Array(dataLength), updateGroup = update[j] = new Array(dataLength), exitGroup = exit[j] = new Array(groupLength);
20504
+ bind(parent, group, enterGroup, updateGroup, exitGroup, data25, key2);
20505
+ for (var i0 = 0, i1 = 0, previous, next; i0 < dataLength; ++i0) {
20506
+ if (previous = enterGroup[i0]) {
20507
+ if (i0 >= i1)
20508
+ i1 = i0 + 1;
20509
+ while (!(next = updateGroup[i1]) && ++i1 < dataLength)
20510
+ ;
20511
+ previous._next = next || null;
20512
+ }
20513
+ }
20514
+ }
20515
+ update = new Selection(update, parents);
20516
+ update._enter = enter2;
20517
+ update._exit = exit;
20518
+ return update;
20519
+ }
20520
+ function arraylike(data25) {
20521
+ return typeof data25 === "object" && "length" in data25 ? data25 : Array.from(data25);
20522
+ }
20523
+ function selection_exit() {
20524
+ return new Selection(this._exit || this._groups.map(sparse), this._parents);
20525
+ }
20526
+ function selection_join(onenter, onupdate, onexit) {
20527
+ var enter2 = this.enter(), update = this, exit = this.exit();
20528
+ if (typeof onenter === "function") {
20529
+ enter2 = onenter(enter2);
20530
+ if (enter2)
20531
+ enter2 = enter2.selection();
20532
+ } else {
20533
+ enter2 = enter2.append(onenter + "");
20534
+ }
20535
+ if (onupdate != null) {
20536
+ update = onupdate(update);
20537
+ if (update)
20538
+ update = update.selection();
20539
+ }
20540
+ if (onexit == null)
20541
+ exit.remove();
20542
+ else
20543
+ onexit(exit);
20544
+ return enter2 && update ? enter2.merge(update).order() : update;
20545
+ }
20546
+ function selection_merge(context) {
20547
+ var selection = context.selection ? context.selection() : context;
20548
+ for (var groups0 = this._groups, groups1 = selection._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) {
20549
+ for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge2 = merges[j] = new Array(n), node, i = 0; i < n; ++i) {
20550
+ if (node = group0[i] || group1[i]) {
20551
+ merge2[i] = node;
20552
+ }
20553
+ }
20554
+ }
20555
+ for (; j < m0; ++j) {
20556
+ merges[j] = groups0[j];
20557
+ }
20558
+ return new Selection(merges, this._parents);
20559
+ }
20560
+ function selection_order() {
20561
+ for (var groups = this._groups, j = -1, m = groups.length; ++j < m; ) {
20562
+ for (var group = groups[j], i = group.length - 1, next = group[i], node; --i >= 0; ) {
20563
+ if (node = group[i]) {
20564
+ if (next && node.compareDocumentPosition(next) ^ 4)
20565
+ next.parentNode.insertBefore(node, next);
20566
+ next = node;
20567
+ }
20568
+ }
20569
+ }
20570
+ return this;
20571
+ }
20572
+ function selection_sort(compare) {
20573
+ if (!compare)
20574
+ compare = ascending;
20575
+ function compareNode(a, b) {
20576
+ return a && b ? compare(a.__data__, b.__data__) : !a - !b;
20577
+ }
20578
+ for (var groups = this._groups, m = groups.length, sortgroups = new Array(m), j = 0; j < m; ++j) {
20579
+ for (var group = groups[j], n = group.length, sortgroup = sortgroups[j] = new Array(n), node, i = 0; i < n; ++i) {
20580
+ if (node = group[i]) {
20581
+ sortgroup[i] = node;
20582
+ }
20583
+ }
20584
+ sortgroup.sort(compareNode);
20585
+ }
20586
+ return new Selection(sortgroups, this._parents).order();
20587
+ }
20588
+ function ascending(a, b) {
20589
+ return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
20590
+ }
20591
+ function selection_call() {
20592
+ var callback = arguments[0];
20593
+ arguments[0] = this;
20594
+ callback.apply(null, arguments);
20595
+ return this;
20596
+ }
20597
+ function selection_nodes() {
20598
+ return Array.from(this);
20599
+ }
20600
+ function selection_node() {
20601
+ for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {
20602
+ for (var group = groups[j], i = 0, n = group.length; i < n; ++i) {
20603
+ var node = group[i];
20604
+ if (node)
20605
+ return node;
20606
+ }
20607
+ }
20608
+ return null;
20609
+ }
20610
+ function selection_size() {
20611
+ let size = 0;
20612
+ for (const node of this)
20613
+ ++size;
20614
+ return size;
20615
+ }
20616
+ function selection_empty() {
20617
+ return !this.node();
20618
+ }
20619
+ function selection_each(callback) {
20620
+ for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {
20621
+ for (var group = groups[j], i = 0, n = group.length, node; i < n; ++i) {
20622
+ if (node = group[i])
20623
+ callback.call(node, node.__data__, i, group);
20624
+ }
20625
+ }
20626
+ return this;
20627
+ }
20628
+ function attrRemove(name) {
20629
+ return function() {
20630
+ this.removeAttribute(name);
20631
+ };
20632
+ }
20633
+ function attrRemoveNS(fullname) {
20634
+ return function() {
20635
+ this.removeAttributeNS(fullname.space, fullname.local);
20636
+ };
20637
+ }
20638
+ function attrConstant(name, value6) {
20639
+ return function() {
20640
+ this.setAttribute(name, value6);
20641
+ };
20642
+ }
20643
+ function attrConstantNS(fullname, value6) {
20644
+ return function() {
20645
+ this.setAttributeNS(fullname.space, fullname.local, value6);
20646
+ };
20647
+ }
20648
+ function attrFunction(name, value6) {
20649
+ return function() {
20650
+ var v = value6.apply(this, arguments);
20651
+ if (v == null)
20652
+ this.removeAttribute(name);
20653
+ else
20654
+ this.setAttribute(name, v);
20655
+ };
20656
+ }
20657
+ function attrFunctionNS(fullname, value6) {
20658
+ return function() {
20659
+ var v = value6.apply(this, arguments);
20660
+ if (v == null)
20661
+ this.removeAttributeNS(fullname.space, fullname.local);
20662
+ else
20663
+ this.setAttributeNS(fullname.space, fullname.local, v);
20664
+ };
20665
+ }
20666
+ function selection_attr(name, value6) {
20667
+ var fullname = namespace(name);
20668
+ if (arguments.length < 2) {
20669
+ var node = this.node();
20670
+ return fullname.local ? node.getAttributeNS(fullname.space, fullname.local) : node.getAttribute(fullname);
20671
+ }
20672
+ return this.each((value6 == null ? fullname.local ? attrRemoveNS : attrRemove : typeof value6 === "function" ? fullname.local ? attrFunctionNS : attrFunction : fullname.local ? attrConstantNS : attrConstant)(fullname, value6));
20673
+ }
20674
+ function defaultView(node) {
20675
+ return node.ownerDocument && node.ownerDocument.defaultView || node.document && node || node.defaultView;
20676
+ }
20677
+ function styleRemove(name) {
20678
+ return function() {
20679
+ this.style.removeProperty(name);
20680
+ };
20681
+ }
20682
+ function styleConstant(name, value6, priority) {
20683
+ return function() {
20684
+ this.style.setProperty(name, value6, priority);
20685
+ };
20686
+ }
20687
+ function styleFunction(name, value6, priority) {
20688
+ return function() {
20689
+ var v = value6.apply(this, arguments);
20690
+ if (v == null)
20691
+ this.style.removeProperty(name);
20692
+ else
20693
+ this.style.setProperty(name, v, priority);
20694
+ };
20695
+ }
20696
+ function selection_style(name, value6, priority) {
20697
+ return arguments.length > 1 ? this.each((value6 == null ? styleRemove : typeof value6 === "function" ? styleFunction : styleConstant)(name, value6, priority == null ? "" : priority)) : styleValue(this.node(), name);
20698
+ }
20699
+ function styleValue(node, name) {
20700
+ return node.style.getPropertyValue(name) || defaultView(node).getComputedStyle(node, null).getPropertyValue(name);
20701
+ }
20702
+ function propertyRemove(name) {
20703
+ return function() {
20704
+ delete this[name];
20705
+ };
20706
+ }
20707
+ function propertyConstant(name, value6) {
20708
+ return function() {
20709
+ this[name] = value6;
20710
+ };
20711
+ }
20712
+ function propertyFunction(name, value6) {
20713
+ return function() {
20714
+ var v = value6.apply(this, arguments);
20715
+ if (v == null)
20716
+ delete this[name];
20717
+ else
20718
+ this[name] = v;
20719
+ };
20720
+ }
20721
+ function selection_property(name, value6) {
20722
+ return arguments.length > 1 ? this.each((value6 == null ? propertyRemove : typeof value6 === "function" ? propertyFunction : propertyConstant)(name, value6)) : this.node()[name];
20723
+ }
20724
+ function classArray(string) {
20725
+ return string.trim().split(/^|\s+/);
20726
+ }
20727
+ function classList(node) {
20728
+ return node.classList || new ClassList(node);
20729
+ }
20730
+ function ClassList(node) {
20731
+ this._node = node;
20732
+ this._names = classArray(node.getAttribute("class") || "");
20733
+ }
20734
+ ClassList.prototype = {
20735
+ add: function(name) {
20736
+ var i = this._names.indexOf(name);
20737
+ if (i < 0) {
20738
+ this._names.push(name);
20739
+ this._node.setAttribute("class", this._names.join(" "));
20740
+ }
20741
+ },
20742
+ remove: function(name) {
20743
+ var i = this._names.indexOf(name);
20744
+ if (i >= 0) {
20745
+ this._names.splice(i, 1);
20746
+ this._node.setAttribute("class", this._names.join(" "));
20747
+ }
20748
+ },
20749
+ contains: function(name) {
20750
+ return this._names.indexOf(name) >= 0;
20751
+ }
20752
+ };
20753
+ function classedAdd(node, names) {
20754
+ var list = classList(node), i = -1, n = names.length;
20755
+ while (++i < n)
20756
+ list.add(names[i]);
20757
+ }
20758
+ function classedRemove(node, names) {
20759
+ var list = classList(node), i = -1, n = names.length;
20760
+ while (++i < n)
20761
+ list.remove(names[i]);
20762
+ }
20763
+ function classedTrue(names) {
20764
+ return function() {
20765
+ classedAdd(this, names);
20766
+ };
20767
+ }
20768
+ function classedFalse(names) {
20769
+ return function() {
20770
+ classedRemove(this, names);
20771
+ };
20772
+ }
20773
+ function classedFunction(names, value6) {
20774
+ return function() {
20775
+ (value6.apply(this, arguments) ? classedAdd : classedRemove)(this, names);
20776
+ };
20777
+ }
20778
+ function selection_classed(name, value6) {
20779
+ var names = classArray(name + "");
20780
+ if (arguments.length < 2) {
20781
+ var list = classList(this.node()), i = -1, n = names.length;
20782
+ while (++i < n)
20783
+ if (!list.contains(names[i]))
20784
+ return false;
20785
+ return true;
20786
+ }
20787
+ return this.each((typeof value6 === "function" ? classedFunction : value6 ? classedTrue : classedFalse)(names, value6));
20788
+ }
20789
+ function textRemove() {
20790
+ this.textContent = "";
20791
+ }
20792
+ function textConstant(value6) {
20793
+ return function() {
20794
+ this.textContent = value6;
20795
+ };
20796
+ }
20797
+ function textFunction(value6) {
20798
+ return function() {
20799
+ var v = value6.apply(this, arguments);
20800
+ this.textContent = v == null ? "" : v;
20801
+ };
20802
+ }
20803
+ function selection_text(value6) {
20804
+ return arguments.length ? this.each(value6 == null ? textRemove : (typeof value6 === "function" ? textFunction : textConstant)(value6)) : this.node().textContent;
20805
+ }
20806
+ function htmlRemove() {
20807
+ this.innerHTML = "";
20808
+ }
20809
+ function htmlConstant(value6) {
20810
+ return function() {
20811
+ this.innerHTML = value6;
20812
+ };
20813
+ }
20814
+ function htmlFunction(value6) {
20815
+ return function() {
20816
+ var v = value6.apply(this, arguments);
20817
+ this.innerHTML = v == null ? "" : v;
20818
+ };
20819
+ }
20820
+ function selection_html(value6) {
20821
+ return arguments.length ? this.each(value6 == null ? htmlRemove : (typeof value6 === "function" ? htmlFunction : htmlConstant)(value6)) : this.node().innerHTML;
20822
+ }
20823
+ function raise() {
20824
+ if (this.nextSibling)
20825
+ this.parentNode.appendChild(this);
20826
+ }
20827
+ function selection_raise() {
20828
+ return this.each(raise);
20829
+ }
20830
+ function lower() {
20831
+ if (this.previousSibling)
20832
+ this.parentNode.insertBefore(this, this.parentNode.firstChild);
20833
+ }
20834
+ function selection_lower() {
20835
+ return this.each(lower);
20836
+ }
20837
+ function selection_append(name) {
20838
+ var create4 = typeof name === "function" ? name : creator(name);
20839
+ return this.select(function() {
20840
+ return this.appendChild(create4.apply(this, arguments));
20841
+ });
20842
+ }
20843
+ function constantNull() {
20844
+ return null;
20845
+ }
20846
+ function selection_insert(name, before) {
20847
+ var create4 = typeof name === "function" ? name : creator(name), select3 = before == null ? constantNull : typeof before === "function" ? before : selector(before);
20848
+ return this.select(function() {
20849
+ return this.insertBefore(create4.apply(this, arguments), select3.apply(this, arguments) || null);
20850
+ });
20851
+ }
20852
+ function remove2() {
20853
+ var parent = this.parentNode;
20854
+ if (parent)
20855
+ parent.removeChild(this);
20856
+ }
20857
+ function selection_remove() {
20858
+ return this.each(remove2);
20859
+ }
20860
+ function selection_cloneShallow() {
20861
+ var clone3 = this.cloneNode(false), parent = this.parentNode;
20862
+ return parent ? parent.insertBefore(clone3, this.nextSibling) : clone3;
20863
+ }
20864
+ function selection_cloneDeep() {
20865
+ var clone3 = this.cloneNode(true), parent = this.parentNode;
20866
+ return parent ? parent.insertBefore(clone3, this.nextSibling) : clone3;
20867
+ }
20868
+ function selection_clone(deep) {
20869
+ return this.select(deep ? selection_cloneDeep : selection_cloneShallow);
20870
+ }
20871
+ function selection_datum(value6) {
20872
+ return arguments.length ? this.property("__data__", value6) : this.node().__data__;
20873
+ }
20874
+ function contextListener(listener) {
20875
+ return function(event) {
20876
+ listener.call(this, event, this.__data__);
20877
+ };
20878
+ }
20879
+ function parseTypenames(typenames) {
20880
+ return typenames.trim().split(/^|\s+/).map(function(t2) {
20881
+ var name = "", i = t2.indexOf(".");
20882
+ if (i >= 0)
20883
+ name = t2.slice(i + 1), t2 = t2.slice(0, i);
20884
+ return { type: t2, name };
20885
+ });
20886
+ }
20887
+ function onRemove(typename) {
20888
+ return function() {
20889
+ var on = this.__on;
20890
+ if (!on)
20891
+ return;
20892
+ for (var j = 0, i = -1, m = on.length, o; j < m; ++j) {
20893
+ if (o = on[j], (!typename.type || o.type === typename.type) && o.name === typename.name) {
20894
+ this.removeEventListener(o.type, o.listener, o.options);
20895
+ } else {
20896
+ on[++i] = o;
20897
+ }
20898
+ }
20899
+ if (++i)
20900
+ on.length = i;
20901
+ else
20902
+ delete this.__on;
20903
+ };
20904
+ }
20905
+ function onAdd(typename, value6, options2) {
20906
+ return function() {
20907
+ var on = this.__on, o, listener = contextListener(value6);
20908
+ if (on)
20909
+ for (var j = 0, m = on.length; j < m; ++j) {
20910
+ if ((o = on[j]).type === typename.type && o.name === typename.name) {
20911
+ this.removeEventListener(o.type, o.listener, o.options);
20912
+ this.addEventListener(o.type, o.listener = listener, o.options = options2);
20913
+ o.value = value6;
20914
+ return;
20915
+ }
20916
+ }
20917
+ this.addEventListener(typename.type, listener, options2);
20918
+ o = { type: typename.type, name: typename.name, value: value6, listener, options: options2 };
20919
+ if (!on)
20920
+ this.__on = [o];
20921
+ else
20922
+ on.push(o);
20923
+ };
20924
+ }
20925
+ function selection_on(typename, value6, options2) {
20926
+ var typenames = parseTypenames(typename + ""), i, n = typenames.length, t2;
20927
+ if (arguments.length < 2) {
20928
+ var on = this.node().__on;
20929
+ if (on)
20930
+ for (var j = 0, m = on.length, o; j < m; ++j) {
20931
+ for (i = 0, o = on[j]; i < n; ++i) {
20932
+ if ((t2 = typenames[i]).type === o.type && t2.name === o.name) {
20933
+ return o.value;
20934
+ }
20935
+ }
20936
+ }
20937
+ return;
20938
+ }
20939
+ on = value6 ? onAdd : onRemove;
20940
+ for (i = 0; i < n; ++i)
20941
+ this.each(on(typenames[i], value6, options2));
20942
+ return this;
20943
+ }
20944
+ function dispatchEvent(node, type, params) {
20945
+ var window2 = defaultView(node), event = window2.CustomEvent;
20946
+ if (typeof event === "function") {
20947
+ event = new event(type, params);
20948
+ } else {
20949
+ event = window2.document.createEvent("Event");
20950
+ if (params)
20951
+ event.initEvent(type, params.bubbles, params.cancelable), event.detail = params.detail;
20952
+ else
20953
+ event.initEvent(type, false, false);
20954
+ }
20955
+ node.dispatchEvent(event);
20956
+ }
20957
+ function dispatchConstant(type, params) {
20958
+ return function() {
20959
+ return dispatchEvent(this, type, params);
20960
+ };
20961
+ }
20962
+ function dispatchFunction(type, params) {
20963
+ return function() {
20964
+ return dispatchEvent(this, type, params.apply(this, arguments));
20965
+ };
20966
+ }
20967
+ function selection_dispatch(type, params) {
20968
+ return this.each((typeof params === "function" ? dispatchFunction : dispatchConstant)(type, params));
20969
+ }
20970
+ function* selection_iterator() {
20971
+ for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {
20972
+ for (var group = groups[j], i = 0, n = group.length, node; i < n; ++i) {
20973
+ if (node = group[i])
20974
+ yield node;
20975
+ }
20976
+ }
20977
+ }
20978
+ var root = [null];
20979
+ function Selection(groups, parents) {
20980
+ this._groups = groups;
20981
+ this._parents = parents;
20982
+ }
20983
+ function selection_selection() {
20984
+ return this;
20985
+ }
20986
+ Selection.prototype = {
20987
+ constructor: Selection,
20988
+ select: selection_select,
20989
+ selectAll: selection_selectAll,
20990
+ selectChild: selection_selectChild,
20991
+ selectChildren: selection_selectChildren,
20992
+ filter: selection_filter,
20993
+ data: selection_data,
20994
+ enter: selection_enter,
20995
+ exit: selection_exit,
20996
+ join: selection_join,
20997
+ merge: selection_merge,
20998
+ selection: selection_selection,
20999
+ order: selection_order,
21000
+ sort: selection_sort,
21001
+ call: selection_call,
21002
+ nodes: selection_nodes,
21003
+ node: selection_node,
21004
+ size: selection_size,
21005
+ empty: selection_empty,
21006
+ each: selection_each,
21007
+ attr: selection_attr,
21008
+ style: selection_style,
21009
+ property: selection_property,
21010
+ classed: selection_classed,
21011
+ text: selection_text,
21012
+ html: selection_html,
21013
+ raise: selection_raise,
21014
+ lower: selection_lower,
21015
+ append: selection_append,
21016
+ insert: selection_insert,
21017
+ remove: selection_remove,
21018
+ clone: selection_clone,
21019
+ datum: selection_datum,
21020
+ on: selection_on,
21021
+ dispatch: selection_dispatch,
21022
+ [Symbol.iterator]: selection_iterator
21023
+ };
21024
+ function select2(selector2) {
21025
+ return typeof selector2 === "string" ? new Selection([[document.querySelector(selector2)]], [document.documentElement]) : new Selection([[selector2]], root);
21026
+ }
21027
+ function t(e) {
21028
+ return Array.from(new Set(e));
21029
+ }
21030
+ function r(o, n) {
21031
+ var a = {};
21032
+ function f(e, t2) {
21033
+ var r2, o2, n2 = false, f2 = Object.keys(a).map(function(e2) {
21034
+ return a[e2];
21035
+ });
21036
+ for (r2 = 0; r2 < f2.length; r2++)
21037
+ if ((o2 = f2[r2]).event.modifiers.shiftKey && !!o2.capture === t2 && s2(e, o2, true)) {
21038
+ o2.callback(e), n2 = true, e.preventDefault();
21039
+ break;
21040
+ }
21041
+ if (!n2) {
21042
+ for (r2 = 0; r2 < f2.length; r2++)
21043
+ if (!(o2 = f2[r2]).event.modifiers.shiftKey && !!o2.capture === t2 && s2(e, o2, false)) {
21044
+ o2.callback(e), e.preventDefault();
21045
+ break;
21046
+ }
21047
+ }
21048
+ function s2(e2, t3, r3) {
21049
+ var o3 = e2, n3 = false, a2 = true;
21050
+ if (void 0 !== o3.key && (a2 = o3.key.charCodeAt(0) > 255, n3 = true, void 0 === t3.event.key ? n3 = false : Array.isArray(t3.event.key) ? -1 === t3.event.key.map(function(e3) {
21051
+ return e3.toLowerCase();
21052
+ }).indexOf(o3.key.toLowerCase()) && (n3 = false) : o3.key.toLowerCase() !== t3.event.key.toLowerCase() && (n3 = false)), n3 || !a2 && !t3.event.modifiers.shiftKey || (n3 = o3.keyCode === t3.event.keyCode), !n3)
21053
+ return false;
21054
+ if (!o3.ctrlKey || !o3.altKey) {
21055
+ if (o3.ctrlKey !== t3.event.modifiers.ctrlKey)
21056
+ return false;
21057
+ if (o3.altKey !== t3.event.modifiers.altKey)
21058
+ return false;
21059
+ }
21060
+ return o3.metaKey === t3.event.modifiers.metaKey && (!r3 || o3.shiftKey === t3.event.modifiers.shiftKey);
21061
+ }
21062
+ }
21063
+ function s(e) {
21064
+ f(e, true);
21065
+ }
21066
+ async function i(t2) {
21067
+ var r2 = select2(t2.target).node().tagName;
21068
+ if ("INPUT" !== r2 && "SELECT" !== r2 && "TEXTAREA" !== r2 && "true" !== String(t2.target.getAttribute("contenteditable"))) {
21069
+ if ("function" == typeof n) {
21070
+ if (await n(t2))
21071
+ return;
21072
+ }
21073
+ f(t2, false);
21074
+ }
21075
+ }
21076
+ function c(t2) {
21077
+ return (t2 = t2 || select2(document)).on("keydown.capture." + o, s, true), t2.on("keydown.bubble." + o, i, false), c;
21078
+ }
21079
+ return c.unbind = function(t2) {
21080
+ return a = [], (t2 = t2 || select2(document)).on("keydown.capture." + o, null), t2.on("keydown.bubble." + o, null), c;
21081
+ }, c.clear = function() {
21082
+ return a = {}, c;
21083
+ }, c.off = function(e, r2) {
21084
+ for (var o2 = t([].concat(e)), n2 = 0; n2 < o2.length; n2++) {
21085
+ var f2 = o2[n2] + (r2 ? "-capture" : "-bubble");
21086
+ delete a[f2];
21087
+ }
21088
+ return c;
21089
+ }, c.on = function(e, o2, n2) {
21090
+ if ("function" != typeof o2)
21091
+ return c.off(e, n2);
21092
+ for (var f2 = t([].concat(e)), s2 = 0; s2 < f2.length; s2++) {
21093
+ var i2 = f2[s2] + (n2 ? "-capture" : "-bubble"), u = { id: i2, capture: n2, callback: o2, event: { key: void 0, keyCode: 0, modifiers: { shiftKey: false, ctrlKey: false, altKey: false, metaKey: false } } };
21094
+ a[i2] && console.warn('warning: duplicate keybinding for "' + i2 + '"'), a[i2] = u;
21095
+ for (var l = f2[s2].toLowerCase().match(/(?:(?:[^+⇧⌃⌥⌘])+|[⇧⌃⌥⌘]|\+\+|^\+$)/g), p = 0; p < l.length; p++)
21096
+ if ("++" === l[p] && (l[p] = "+"), l[p] in r.modifierCodes) {
21097
+ var d = r.modifierProperties[r.modifierCodes[l[p]]];
21098
+ u.event.modifiers[d] = true;
21099
+ } else
21100
+ u.event.key = r.keys[l[p]] || l[p], l[p] in r.keyCodes && (u.event.keyCode = r.keyCodes[l[p]]);
21101
+ }
21102
+ return c;
21103
+ }, c;
21104
+ }
21105
+ r.modifierCodes = { "\u21E7": 16, shift: 16, "\u2303": 17, ctrl: 17, "\u2325": 18, alt: 18, option: 18, "\u2318": 91, meta: 91, cmd: 91, super: 91, win: 91 }, r.modifierProperties = { 16: "shiftKey", 17: "ctrlKey", 18: "altKey", 91: "metaKey" }, r.keys = { "\u232B": "Backspace", backspace: "Backspace", "\u21E5": "Tab", "\u21C6": "Tab", tab: "Tab", "\u21A9": "Enter", "\u21B5": "Enter", "\u23CE": "Enter", return: "Enter", enter: "Enter", "\u2305": "Enter", pause: "Pause", "pause-break": "Pause", "\u21EA": "CapsLock", caps: "CapsLock", "caps-lock": "CapsLock", "\u238B": ["Escape", "Esc"], escape: ["Escape", "Esc"], esc: ["Escape", "Esc"], space: [" ", "Spacebar"], "": "PageUp", pgup: "PageUp", "page-up": "PageUp", "": "PageDown", pgdown: "PageDown", "page-down": "PageDown", "\u21DF": "End", end: "End", "\u21DE": "Home", home: "Home", ins: "Insert", insert: "Insert", "\u2326": ["Delete", "Del"], del: ["Delete", "Del"], delete: ["Delete", "Del"], "\u2190": ["ArrowLeft", "Left"], left: ["ArrowLeft", "Left"], "arrow-left": ["ArrowLeft", "Left"], "\u2191": ["ArrowUp", "Up"], up: ["ArrowUp", "Up"], "arrow-up": ["ArrowUp", "Up"], "\u2192": ["ArrowRight", "Right"], right: ["ArrowRight", "Right"], "arrow-right": ["ArrowRight", "Right"], "\u2193": ["ArrowDown", "Down"], down: ["ArrowDown", "Down"], "arrow-down": ["ArrowDown", "Down"], "*": ["*", "Multiply"], star: ["*", "Multiply"], asterisk: ["*", "Multiply"], multiply: ["*", "Multiply"], "+": ["+", "Add"], plus: ["+", "Add"], "-": ["-", "Subtract"], subtract: ["-", "Subtract"], dash: ["-", "Subtract"], semicolon: ";", equals: "=", comma: ",", period: ".", "full-stop": ".", slash: "/", "forward-slash": "/", tick: "`", "back-quote": "`", "open-bracket": "[", "back-slash": "\\", "close-bracket": "]", quote: "'", apostrophe: "'", "num-0": "0", "num-1": "1", "num-2": "2", "num-3": "3", "num-4": "4", "num-5": "5", "num-6": "6", "num-7": "7", "num-8": "8", "num-9": "9", f1: "F1", f2: "F2", f3: "F3", f4: "F4", f5: "F5", f6: "F6", f7: "F7", f8: "F8", f9: "F9", f10: "F10", f11: "F11", f12: "F12", f13: "F13", f14: "F14", f15: "F15", f16: "F16", f17: "F17", f18: "F18", f19: "F19", f20: "F20", f21: "F21", f22: "F22", f23: "F23", f24: "F24", f25: "F25" }, r.keyCodes = { "\u232B": 8, backspace: 8, "\u21E5": 9, "\u21C6": 9, tab: 9, "\u21A9": 13, "\u21B5": 13, "\u23CE": 13, return: 13, enter: 13, "\u2305": 13, pause: 19, "pause-break": 19, "\u21EA": 20, caps: 20, "caps-lock": 20, "\u238B": 27, escape: 27, esc: 27, space: 32, "": 33, pgup: 33, "page-up": 33, "": 34, pgdown: 34, "page-down": 34, "\u21DF": 35, end: 35, "\u21DE": 36, home: 36, ins: 45, insert: 45, "\u2326": 46, del: 46, delete: 46, "\u2190": 37, left: 37, "arrow-left": 37, "\u2191": 38, up: 38, "arrow-up": 38, "\u2192": 39, right: 39, "arrow-right": 39, "\u2193": 40, down: 40, "arrow-down": 40, ffequals: 61, "*": 106, star: 106, asterisk: 106, multiply: 106, "+": 107, plus: 107, "-": 109, subtract: 109, "|": 124, ffplus: 171, ffminus: 173, ";": 186, semicolon: 186, "=": 187, equals: 187, ",": 188, comma: 188, dash: 189, ".": 190, period: 190, "full-stop": 190, "/": 191, slash: 191, "forward-slash": 191, "`": 192, tick: 192, "back-quote": 192, "[": 219, "open-bracket": 219, "\\": 220, "back-slash": 220, "]": 221, "close-bracket": 221, "'": 222, quote: 222, apostrophe: 222 };
21106
+ for (var o = 95, n = 0; ++o < 106; )
21107
+ r.keyCodes["num-" + n] = o, ++n;
21108
+ for (o = 47, n = 0; ++o < 58; )
21109
+ r.keyCodes[n] = o, ++n;
21110
+ for (o = 111, n = 1; ++o < 136; )
21111
+ r.keyCodes["f" + n] = o, ++n;
21112
+ for (o = 64; ++o < 91; )
21113
+ r.keyCodes[String.fromCharCode(o).toLowerCase()] = o;
21114
+ class Keyboard {
21115
+ _onBindKeyboards(actions, namespace2) {
21116
+ this.keybinding = r(namespace2);
21117
+ actions.forEach((o) => {
21118
+ this.keybinding.on(o.code, o.action);
21119
+ });
21120
+ select2(document).call(this.keybinding);
21121
+ }
21122
+ _onUnbindKeyboards() {
21123
+ this.keybinding.clear();
21124
+ select2(document).call(this.keybinding.unbind);
21125
+ }
21126
+ }
20289
21127
  const options$3 = {
20290
- showLine: true,
20291
- showPoly: true,
20292
- title: "\u6D4B\u91CF"
21128
+ title: "\u6D4B\u91CF\u8DDD\u79BB"
20293
21129
  };
20294
21130
  const WBK_SOURCE_POINTS = "WBK_SOURCE_POINTS";
20295
21131
  const WBK_SOURCE_LINE = "WBK_SOURCE_LINE";
@@ -20297,8 +21133,9 @@ const WBK_SOURCE_MOVE = "WBK_SOURCE_MOVE";
20297
21133
  const WBK_LAYER_POINTS = "WBK_LAYER_POINTS";
20298
21134
  const WBK_LAYER_LINE = "WBK_LAYER_LINE";
20299
21135
  const WBK_LAYER_MOVE = "WBK_LAYER_MOVE";
20300
- class MeasureDistanceControl {
21136
+ class MeasureDistanceControl extends Keyboard {
20301
21137
  constructor(e) {
21138
+ super();
20302
21139
  this.measureFlag = false;
20303
21140
  this.options = {
20304
21141
  ...options$3,
@@ -20328,14 +21165,16 @@ class MeasureDistanceControl {
20328
21165
  this._renderEntry();
20329
21166
  this._resetData();
20330
21167
  this._eventMeasure();
20331
- document.addEventListener("keyup", (e) => {
20332
- });
21168
+ this._onBindKeyboards([
21169
+ { code: "esc", action: this._closeMeasure.bind(this) }
21170
+ ], "distance");
20333
21171
  return this._container;
20334
21172
  }
20335
21173
  onRemove() {
20336
21174
  this._container.parentNode.removeChild(this._container);
20337
21175
  this._map = void 0;
20338
21176
  this._closeMeasure();
21177
+ this._onUnbindKeyboards();
20339
21178
  }
20340
21179
  _openMeasure() {
20341
21180
  this._map.doubleClickZoom.disable();
@@ -20559,17 +21398,16 @@ class MeasureDistanceControl {
20559
21398
  }
20560
21399
  var control$2 = "";
20561
21400
  const options$2 = {
20562
- showLine: true,
20563
- showPoly: true,
20564
- title: "\u6D4B\u91CF"
21401
+ title: "\u6D4B\u91CF\u9762\u79EF"
20565
21402
  };
20566
21403
  const WBK_AREA_SOURCE_POINTS = "WBK_AREA_SOURCE_POINTS";
20567
21404
  const WBK_AREA_SOURCE_LINE = "WBK_AREA_SOURCE_LINE";
20568
21405
  const WBK_AREA_LAYER_POINTS = "WBK_AREA_LAYER_POINTS";
20569
21406
  const WBK_AREA_LAYER_FILL = "WBK_AREA_LAYER_FILL";
20570
21407
  const WBK_AREA_LAYER_STROKE = "WBK_AREA_LAYER_STROKE";
20571
- class MeasureAreaControl {
21408
+ class MeasureAreaControl extends Keyboard {
20572
21409
  constructor(e) {
21410
+ super();
20573
21411
  this.measureFlag = false;
20574
21412
  this.options = {
20575
21413
  ...options$2,
@@ -20599,14 +21437,16 @@ class MeasureAreaControl {
20599
21437
  this._renderEntry();
20600
21438
  this._resetData();
20601
21439
  this._eventMeasure();
20602
- document.addEventListener("keyup", (e) => {
20603
- });
21440
+ this._onBindKeyboards([
21441
+ { code: "esc", action: this._closeMeasure.bind(this) }
21442
+ ], "area");
20604
21443
  return this._container;
20605
21444
  }
20606
21445
  onRemove() {
20607
21446
  this._container.parentNode.removeChild(this._container);
20608
21447
  this._map = void 0;
20609
21448
  this._closeMeasure();
21449
+ this._onUnbindKeyboards();
20610
21450
  }
20611
21451
  _openMeasure() {
20612
21452
  this._map.doubleClickZoom.disable();
@@ -20813,8 +21653,9 @@ const options$1 = {
20813
21653
  cb: () => {
20814
21654
  }
20815
21655
  };
20816
- class PickCoordControl {
21656
+ class PickCoordControl extends Keyboard {
20817
21657
  constructor(e) {
21658
+ super();
20818
21659
  this.flagValue = false;
20819
21660
  this.options = {
20820
21661
  ...options$1,
@@ -20841,12 +21682,16 @@ class PickCoordControl {
20841
21682
  this._renderContent();
20842
21683
  this._resetData();
20843
21684
  this._eventMeasure();
21685
+ this._onBindKeyboards([
21686
+ { code: "esc", action: () => this.flag = false }
21687
+ ], "pick");
20844
21688
  return this._container;
20845
21689
  }
20846
21690
  onRemove() {
20847
21691
  this._container.parentNode.removeChild(this._container);
20848
21692
  this._map = void 0;
20849
21693
  this._closePick();
21694
+ this._onUnbindKeyboards();
20850
21695
  }
20851
21696
  _eventMeasure() {
20852
21697
  this._map.on("click", (e) => {
@@ -20913,8 +21758,9 @@ const options = {
20913
21758
  onMousemove: () => {
20914
21759
  }
20915
21760
  };
20916
- class MouseRectControl {
21761
+ class MouseRectControl extends Keyboard {
20917
21762
  constructor(e) {
21763
+ super();
20918
21764
  this.flagValue = false;
20919
21765
  this.moving = false;
20920
21766
  this.options = {
@@ -20942,12 +21788,16 @@ class MouseRectControl {
20942
21788
  this._renderEntry();
20943
21789
  this._resetData();
20944
21790
  this._eventMeasure();
21791
+ this._onBindKeyboards([
21792
+ { code: "esc", action: this._close.bind(this) }
21793
+ ], "area");
20945
21794
  return this._container;
20946
21795
  }
20947
21796
  onRemove() {
20948
21797
  this._container.parentNode.removeChild(this._container);
20949
21798
  this._map = void 0;
20950
21799
  this._close();
21800
+ this._onUnbindKeyboards();
20951
21801
  }
20952
21802
  _eventMeasure() {
20953
21803
  this._map.on("click", (e) => {