bm-admin-ui 1.0.20-alpha → 1.0.21-alpha

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 (158) hide show
  1. package/es/components/button/index.d.ts +307 -0
  2. package/es/components/button/src/button.d.ts +12 -0
  3. package/es/components/button/src/button.vue.d.ts +308 -0
  4. package/es/components/feedback/index.d.ts +1037 -0
  5. package/es/components/feedback/index.js +4 -4
  6. package/es/components/feedback/src/bmAlert.vue.d.ts +193 -0
  7. package/es/components/feedback/src/bmModal.vue.d.ts +839 -0
  8. package/es/components/float-table/index.d.ts +70 -0
  9. package/es/components/float-table/index.js +1 -1
  10. package/es/components/float-table/src/float-table.vue.d.ts +69 -0
  11. package/es/components/flow-designer/index.d.ts +7 -0
  12. package/es/components/flow-designer/src/flow-designer.vue.d.ts +6 -0
  13. package/es/components/form-designer/index.d.ts +9 -0
  14. package/es/components/form-designer/src/form-designer.vue.d.ts +8 -0
  15. package/es/components/index.d.ts +13 -0
  16. package/es/components/input-tags-display/index.d.ts +113 -0
  17. package/es/components/input-tags-display/index.js +5 -5
  18. package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +110 -0
  19. package/es/components/multi-cascader-compose/index.d.ts +164 -0
  20. package/es/components/multi-cascader-compose/index.js +4 -4
  21. package/es/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +164 -0
  22. package/es/components/multi-cascader-compose/src/props.d.ts +40 -0
  23. package/es/components/multi-cascader-compose/types.d.ts +10 -0
  24. package/es/components/over-tooltips/index.d.ts +35 -0
  25. package/es/components/over-tooltips/src/over-tooltips.vue.d.ts +34 -0
  26. package/es/components/search-filter/index.d.ts +218 -0
  27. package/es/components/search-filter/index.js +19 -9
  28. package/es/components/search-filter/src/search-filter.d.ts +77 -0
  29. package/es/components/search-filter/src/search-filter.vue.d.ts +217 -0
  30. package/es/components/search-filter/src/search-reset-btn.vue.d.ts +89 -0
  31. package/es/components/shops-filter/index.d.ts +99 -0
  32. package/es/components/shops-filter/index.js +4 -4
  33. package/es/components/shops-filter/src/shops-filter.d.ts +25 -0
  34. package/es/components/shops-filter/src/shops-filter.vue.d.ts +98 -0
  35. package/es/components/staffs-selector/index.d.ts +109 -0
  36. package/es/components/staffs-selector/index.js +5 -5
  37. package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +97 -0
  38. package/es/components/staffs-selector/src/radioCmp.vue.d.ts +31 -0
  39. package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +108 -0
  40. package/es/components/staffs-selector/src/variedCmp.vue.d.ts +62 -0
  41. package/es/components/timeline/index.d.ts +107 -0
  42. package/es/components/timeline/src/props.d.ts +24 -0
  43. package/es/components/timeline/src/timeline-item.vue.d.ts +65 -0
  44. package/es/components/timeline/src/timeline.vue.d.ts +42 -0
  45. package/es/components/upload/index.d.ts +136 -0
  46. package/es/components/upload/index.js +11 -9
  47. package/es/components/upload/src/icons.d.ts +13 -0
  48. package/es/components/upload/src/upload.vue.d.ts +135 -0
  49. package/es/components/upload/utils/index.d.ts +7 -0
  50. package/es/index.d.ts +6 -0
  51. package/es/utils/bm-admin-ui-resolver.d.ts +9 -0
  52. package/es/utils/vxe-table.d.ts +6 -0
  53. package/es/utils/with-install.d.ts +3 -0
  54. package/index.esm.js +787 -388
  55. package/index.js +709 -310
  56. package/lib/components/button/index.d.ts +307 -0
  57. package/lib/components/button/src/button.d.ts +12 -0
  58. package/lib/components/button/src/button.vue.d.ts +308 -0
  59. package/lib/components/feedback/index.d.ts +1037 -0
  60. package/lib/components/feedback/index.js +4 -4
  61. package/lib/components/feedback/src/bmAlert.vue.d.ts +193 -0
  62. package/lib/components/feedback/src/bmModal.vue.d.ts +839 -0
  63. package/lib/components/float-table/index.d.ts +70 -0
  64. package/lib/components/float-table/index.js +1 -1
  65. package/lib/components/float-table/src/float-table.vue.d.ts +69 -0
  66. package/lib/components/flow-designer/index.d.ts +7 -0
  67. package/lib/components/flow-designer/src/flow-designer.vue.d.ts +6 -0
  68. package/lib/components/form-designer/index.d.ts +9 -0
  69. package/lib/components/form-designer/src/form-designer.vue.d.ts +8 -0
  70. package/lib/components/index.d.ts +13 -0
  71. package/lib/components/input-tags-display/index.d.ts +113 -0
  72. package/lib/components/input-tags-display/index.js +7 -7
  73. package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +110 -0
  74. package/lib/components/multi-cascader-compose/index.d.ts +164 -0
  75. package/lib/components/multi-cascader-compose/index.js +4 -4
  76. package/lib/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +164 -0
  77. package/lib/components/multi-cascader-compose/src/props.d.ts +40 -0
  78. package/lib/components/multi-cascader-compose/types.d.ts +10 -0
  79. package/lib/components/over-tooltips/index.d.ts +35 -0
  80. package/lib/components/over-tooltips/src/over-tooltips.vue.d.ts +34 -0
  81. package/lib/components/search-filter/index.d.ts +218 -0
  82. package/lib/components/search-filter/index.js +19 -9
  83. package/lib/components/search-filter/src/search-filter.d.ts +77 -0
  84. package/lib/components/search-filter/src/search-filter.vue.d.ts +217 -0
  85. package/lib/components/search-filter/src/search-reset-btn.vue.d.ts +89 -0
  86. package/lib/components/shops-filter/index.d.ts +99 -0
  87. package/lib/components/shops-filter/index.js +4 -4
  88. package/lib/components/shops-filter/src/shops-filter.d.ts +25 -0
  89. package/lib/components/shops-filter/src/shops-filter.vue.d.ts +98 -0
  90. package/lib/components/staffs-selector/index.d.ts +109 -0
  91. package/lib/components/staffs-selector/index.js +5 -5
  92. package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +97 -0
  93. package/lib/components/staffs-selector/src/radioCmp.vue.d.ts +31 -0
  94. package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +108 -0
  95. package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +62 -0
  96. package/lib/components/timeline/index.d.ts +107 -0
  97. package/lib/components/timeline/src/props.d.ts +24 -0
  98. package/lib/components/timeline/src/timeline-item.vue.d.ts +65 -0
  99. package/lib/components/timeline/src/timeline.vue.d.ts +42 -0
  100. package/lib/components/upload/index.d.ts +136 -0
  101. package/lib/components/upload/index.js +11 -9
  102. package/lib/components/upload/src/icons.d.ts +13 -0
  103. package/lib/components/upload/src/upload.vue.d.ts +135 -0
  104. package/lib/components/upload/utils/index.d.ts +7 -0
  105. package/lib/index.d.ts +6 -0
  106. package/lib/utils/bm-admin-ui-resolver.d.ts +9 -0
  107. package/lib/utils/vxe-table.d.ts +6 -0
  108. package/lib/utils/with-install.d.ts +3 -0
  109. package/package.json +1 -1
  110. package/theme-chalk/feedback.css +1 -1
  111. package/theme-chalk/float-table.css +1 -1
  112. package/theme-chalk/index.css +1 -1
  113. package/theme-chalk/upload.css +1 -1
  114. package/types/components/button/index.d.ts +307 -0
  115. package/types/components/button/src/button.d.ts +12 -0
  116. package/types/components/button/src/button.vue.d.ts +308 -0
  117. package/types/components/feedback/index.d.ts +1037 -0
  118. package/types/components/feedback/src/bmAlert.vue.d.ts +193 -0
  119. package/types/components/feedback/src/bmModal.vue.d.ts +839 -0
  120. package/types/components/float-table/index.d.ts +70 -0
  121. package/types/components/float-table/src/float-table.vue.d.ts +69 -0
  122. package/types/components/flow-designer/index.d.ts +7 -0
  123. package/types/components/flow-designer/src/flow-designer.vue.d.ts +6 -0
  124. package/types/components/form-designer/index.d.ts +9 -0
  125. package/types/components/form-designer/src/form-designer.vue.d.ts +8 -0
  126. package/types/components/index.d.ts +13 -0
  127. package/types/components/input-tags-display/index.d.ts +113 -0
  128. package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +110 -0
  129. package/types/components/multi-cascader-compose/index.d.ts +164 -0
  130. package/types/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +164 -0
  131. package/types/components/multi-cascader-compose/src/props.d.ts +40 -0
  132. package/types/components/multi-cascader-compose/types.d.ts +10 -0
  133. package/types/components/over-tooltips/index.d.ts +35 -0
  134. package/types/components/over-tooltips/src/over-tooltips.vue.d.ts +34 -0
  135. package/types/components/search-filter/index.d.ts +218 -0
  136. package/types/components/search-filter/src/search-filter.d.ts +77 -0
  137. package/types/components/search-filter/src/search-filter.vue.d.ts +217 -0
  138. package/types/components/search-filter/src/search-reset-btn.vue.d.ts +89 -0
  139. package/types/components/shops-filter/index.d.ts +99 -0
  140. package/types/components/shops-filter/src/shops-filter.d.ts +25 -0
  141. package/types/components/shops-filter/src/shops-filter.vue.d.ts +98 -0
  142. package/types/components/staffs-selector/index.d.ts +109 -0
  143. package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +97 -0
  144. package/types/components/staffs-selector/src/radioCmp.vue.d.ts +31 -0
  145. package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +108 -0
  146. package/types/components/staffs-selector/src/variedCmp.vue.d.ts +62 -0
  147. package/types/components/timeline/index.d.ts +107 -0
  148. package/types/components/timeline/src/props.d.ts +24 -0
  149. package/types/components/timeline/src/timeline-item.vue.d.ts +65 -0
  150. package/types/components/timeline/src/timeline.vue.d.ts +42 -0
  151. package/types/components/upload/index.d.ts +136 -0
  152. package/types/components/upload/src/icons.d.ts +13 -0
  153. package/types/components/upload/src/upload.vue.d.ts +135 -0
  154. package/types/components/upload/utils/index.d.ts +7 -0
  155. package/types/index.d.ts +6 -0
  156. package/types/utils/bm-admin-ui-resolver.d.ts +9 -0
  157. package/types/utils/vxe-table.d.ts +6 -0
  158. package/types/utils/with-install.d.ts +3 -0
package/index.js CHANGED
@@ -127,7 +127,7 @@ var process = {
127
127
 
128
128
  (function (module) {
129
129
  function _extends() {
130
- module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) {
130
+ module.exports = _extends = Object.assign || function (target) {
131
131
  for (var i = 1; i < arguments.length; i++) {
132
132
  var source = arguments[i];
133
133
 
@@ -1504,8 +1504,8 @@ var process = {
1504
1504
  children.forEach(function (child) {
1505
1505
  if (Array.isArray(child)) {
1506
1506
  res.push.apply(res, (0, _toConsumableArray2.default)(child));
1507
- } else if (child.type === _vue.Fragment) {
1508
- res.push.apply(res, (0, _toConsumableArray2.default)(child.children));
1507
+ } else if ((child === null || child === void 0 ? void 0 : child.type) === _vue.Fragment) {
1508
+ res.push.apply(res, (0, _toConsumableArray2.default)(filterEmpty(child.children)));
1509
1509
  } else {
1510
1510
  res.push(child);
1511
1511
  }
@@ -3186,7 +3186,7 @@ var process = {
3186
3186
  */
3187
3187
  function convertToPercentage(n) {
3188
3188
  if (n <= 1) {
3189
- return "".concat(Number(n) * 100, "%");
3189
+ return Number(n) * 100 + "%";
3190
3190
  }
3191
3191
  return n;
3192
3192
  }
@@ -3652,12 +3652,12 @@ var process = {
3652
3652
  // <http://www.w3.org/TR/css3-values/#number-value>
3653
3653
  var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
3654
3654
  // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
3655
- var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
3655
+ var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
3656
3656
  // Actual matching.
3657
3657
  // Parentheses and commas are optional, but not required.
3658
3658
  // Whitespace can take the place of commas or opening paren
3659
- var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
3660
- var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
3659
+ var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
3660
+ var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
3661
3661
  var matchers = {
3662
3662
  CSS_UNIT: new RegExp(CSS_UNIT),
3663
3663
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -3883,7 +3883,7 @@ var process = {
3883
3883
  var h = Math.round(hsv.h * 360);
3884
3884
  var s = Math.round(hsv.s * 100);
3885
3885
  var v = Math.round(hsv.v * 100);
3886
- return this.a === 1 ? "hsv(".concat(h, ", ").concat(s, "%, ").concat(v, "%)") : "hsva(".concat(h, ", ").concat(s, "%, ").concat(v, "%, ").concat(this.roundA, ")");
3886
+ return this.a === 1 ? "hsv(" + h + ", " + s + "%, " + v + "%)" : "hsva(" + h + ", " + s + "%, " + v + "%, " + this.roundA + ")";
3887
3887
  };
3888
3888
  /**
3889
3889
  * Returns the object as a HSLA object.
@@ -3901,7 +3901,7 @@ var process = {
3901
3901
  var h = Math.round(hsl.h * 360);
3902
3902
  var s = Math.round(hsl.s * 100);
3903
3903
  var l = Math.round(hsl.l * 100);
3904
- return this.a === 1 ? "hsl(".concat(h, ", ").concat(s, "%, ").concat(l, "%)") : "hsla(".concat(h, ", ").concat(s, "%, ").concat(l, "%, ").concat(this.roundA, ")");
3904
+ return this.a === 1 ? "hsl(" + h + ", " + s + "%, " + l + "%)" : "hsla(" + h + ", " + s + "%, " + l + "%, " + this.roundA + ")";
3905
3905
  };
3906
3906
  /**
3907
3907
  * Returns the hex value of the color.
@@ -3954,13 +3954,13 @@ var process = {
3954
3954
  var r = Math.round(this.r);
3955
3955
  var g = Math.round(this.g);
3956
3956
  var b = Math.round(this.b);
3957
- return this.a === 1 ? "rgb(".concat(r, ", ").concat(g, ", ").concat(b, ")") : "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(this.roundA, ")");
3957
+ return this.a === 1 ? "rgb(" + r + ", " + g + ", " + b + ")" : "rgba(" + r + ", " + g + ", " + b + ", " + this.roundA + ")";
3958
3958
  };
3959
3959
  /**
3960
3960
  * Returns the object as a RGBA object.
3961
3961
  */
3962
3962
  TinyColor.prototype.toPercentageRgb = function () {
3963
- var fmt = function (x) { return "".concat(Math.round(bound01(x, 255) * 100), "%"); };
3963
+ var fmt = function (x) { return Math.round(bound01(x, 255) * 100) + "%"; };
3964
3964
  return {
3965
3965
  r: fmt(this.r),
3966
3966
  g: fmt(this.g),
@@ -3974,8 +3974,8 @@ var process = {
3974
3974
  TinyColor.prototype.toPercentageRgbString = function () {
3975
3975
  var rnd = function (x) { return Math.round(bound01(x, 255) * 100); };
3976
3976
  return this.a === 1
3977
- ? "rgb(".concat(rnd(this.r), "%, ").concat(rnd(this.g), "%, ").concat(rnd(this.b), "%)")
3978
- : "rgba(".concat(rnd(this.r), "%, ").concat(rnd(this.g), "%, ").concat(rnd(this.b), "%, ").concat(this.roundA, ")");
3977
+ ? "rgb(" + rnd(this.r) + "%, " + rnd(this.g) + "%, " + rnd(this.b) + "%)"
3978
+ : "rgba(" + rnd(this.r) + "%, " + rnd(this.g) + "%, " + rnd(this.b) + "%, " + this.roundA + ")";
3979
3979
  };
3980
3980
  /**
3981
3981
  * The 'real' name of the color -if there is one.
@@ -4343,7 +4343,7 @@ var process = {
4343
4343
  var s = new TinyColor(secondColor);
4344
4344
  secondHex8String = '#' + rgbaToArgbHex(s.r, s.g, s.b, s.a);
4345
4345
  }
4346
- return "progid:DXImageTransform.Microsoft.gradient(".concat(gradientType, "startColorstr=").concat(hex8String, ",endColorstr=").concat(secondHex8String, ")");
4346
+ return "progid:DXImageTransform.Microsoft.gradient(" + gradientType + "startColorstr=" + hex8String + ",endColorstr=" + secondHex8String + ")";
4347
4347
  }
4348
4348
 
4349
4349
  /**
@@ -5795,379 +5795,765 @@ var process = {
5795
5795
 
5796
5796
  var notification$1 = {};
5797
5797
 
5798
- var regeneratorRuntime$1 = {exports: {}};
5798
+ var runtime = {exports: {}};
5799
5799
 
5800
- (function (module) {
5801
- var _typeof = _typeof$c.exports["default"];
5800
+ /**
5801
+ * Copyright (c) 2014-present, Facebook, Inc.
5802
+ *
5803
+ * This source code is licensed under the MIT license found in the
5804
+ * LICENSE file in the root directory of this source tree.
5805
+ */
5802
5806
 
5803
- function _regeneratorRuntime() {
5804
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
5807
+ (function (module) {
5808
+ var runtime = (function (exports) {
5805
5809
 
5806
- module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
5807
- return exports;
5808
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
5809
- var exports = {},
5810
- Op = Object.prototype,
5811
- hasOwn = Op.hasOwnProperty,
5812
- $Symbol = "function" == typeof Symbol ? Symbol : {},
5813
- iteratorSymbol = $Symbol.iterator || "@@iterator",
5814
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
5815
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
5810
+ var Op = Object.prototype;
5811
+ var hasOwn = Op.hasOwnProperty;
5812
+ var undefined$1; // More compressible than void 0.
5813
+ var $Symbol = typeof Symbol === "function" ? Symbol : {};
5814
+ var iteratorSymbol = $Symbol.iterator || "@@iterator";
5815
+ var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
5816
+ var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
5816
5817
 
5817
5818
  function define(obj, key, value) {
5818
- return Object.defineProperty(obj, key, {
5819
+ Object.defineProperty(obj, key, {
5819
5820
  value: value,
5820
- enumerable: !0,
5821
- configurable: !0,
5822
- writable: !0
5823
- }), obj[key];
5821
+ enumerable: true,
5822
+ configurable: true,
5823
+ writable: true
5824
+ });
5825
+ return obj[key];
5824
5826
  }
5825
-
5826
5827
  try {
5828
+ // IE 8 has a broken Object.defineProperty that only works on DOM objects.
5827
5829
  define({}, "");
5828
5830
  } catch (err) {
5829
- define = function define(obj, key, value) {
5831
+ define = function(obj, key, value) {
5830
5832
  return obj[key] = value;
5831
5833
  };
5832
5834
  }
5833
5835
 
5834
5836
  function wrap(innerFn, outerFn, self, tryLocsList) {
5835
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
5836
- generator = Object.create(protoGenerator.prototype),
5837
- context = new Context(tryLocsList || []);
5838
- return generator._invoke = function (innerFn, self, context) {
5839
- var state = "suspendedStart";
5840
- return function (method, arg) {
5841
- if ("executing" === state) throw new Error("Generator is already running");
5842
-
5843
- if ("completed" === state) {
5844
- if ("throw" === method) throw arg;
5845
- return doneResult();
5846
- }
5847
-
5848
- for (context.method = method, context.arg = arg;;) {
5849
- var delegate = context.delegate;
5850
-
5851
- if (delegate) {
5852
- var delegateResult = maybeInvokeDelegate(delegate, context);
5837
+ // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
5838
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
5839
+ var generator = Object.create(protoGenerator.prototype);
5840
+ var context = new Context(tryLocsList || []);
5853
5841
 
5854
- if (delegateResult) {
5855
- if (delegateResult === ContinueSentinel) continue;
5856
- return delegateResult;
5857
- }
5858
- }
5859
-
5860
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
5861
- if ("suspendedStart" === state) throw state = "completed", context.arg;
5862
- context.dispatchException(context.arg);
5863
- } else "return" === context.method && context.abrupt("return", context.arg);
5864
- state = "executing";
5865
- var record = tryCatch(innerFn, self, context);
5866
-
5867
- if ("normal" === record.type) {
5868
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
5869
- return {
5870
- value: record.arg,
5871
- done: context.done
5872
- };
5873
- }
5842
+ // The ._invoke method unifies the implementations of the .next,
5843
+ // .throw, and .return methods.
5844
+ generator._invoke = makeInvokeMethod(innerFn, self, context);
5874
5845
 
5875
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
5876
- }
5877
- };
5878
- }(innerFn, self, context), generator;
5846
+ return generator;
5879
5847
  }
5848
+ exports.wrap = wrap;
5880
5849
 
5850
+ // Try/catch helper to minimize deoptimizations. Returns a completion
5851
+ // record like context.tryEntries[i].completion. This interface could
5852
+ // have been (and was previously) designed to take a closure to be
5853
+ // invoked without arguments, but in all the cases we care about we
5854
+ // already have an existing method we want to call, so there's no need
5855
+ // to create a new function object. We can even get away with assuming
5856
+ // the method takes exactly one argument, since that happens to be true
5857
+ // in every case, so we don't have to touch the arguments object. The
5858
+ // only additional allocation required is the completion record, which
5859
+ // has a stable shape and so hopefully should be cheap to allocate.
5881
5860
  function tryCatch(fn, obj, arg) {
5882
5861
  try {
5883
- return {
5884
- type: "normal",
5885
- arg: fn.call(obj, arg)
5886
- };
5862
+ return { type: "normal", arg: fn.call(obj, arg) };
5887
5863
  } catch (err) {
5888
- return {
5889
- type: "throw",
5890
- arg: err
5891
- };
5864
+ return { type: "throw", arg: err };
5892
5865
  }
5893
5866
  }
5894
5867
 
5895
- exports.wrap = wrap;
5868
+ var GenStateSuspendedStart = "suspendedStart";
5869
+ var GenStateSuspendedYield = "suspendedYield";
5870
+ var GenStateExecuting = "executing";
5871
+ var GenStateCompleted = "completed";
5872
+
5873
+ // Returning this object from the innerFn has the same effect as
5874
+ // breaking out of the dispatch switch statement.
5896
5875
  var ContinueSentinel = {};
5897
5876
 
5877
+ // Dummy constructor functions that we use as the .constructor and
5878
+ // .constructor.prototype properties for functions that return Generator
5879
+ // objects. For full spec compliance, you may wish to configure your
5880
+ // minifier not to mangle the names of these two functions.
5898
5881
  function Generator() {}
5899
-
5900
5882
  function GeneratorFunction() {}
5901
-
5902
5883
  function GeneratorFunctionPrototype() {}
5903
5884
 
5885
+ // This is a polyfill for %IteratorPrototype% for environments that
5886
+ // don't natively support it.
5904
5887
  var IteratorPrototype = {};
5905
5888
  define(IteratorPrototype, iteratorSymbol, function () {
5906
5889
  return this;
5907
5890
  });
5908
- var getProto = Object.getPrototypeOf,
5909
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
5910
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
5911
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
5912
5891
 
5892
+ var getProto = Object.getPrototypeOf;
5893
+ var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
5894
+ if (NativeIteratorPrototype &&
5895
+ NativeIteratorPrototype !== Op &&
5896
+ hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
5897
+ // This environment has a native %IteratorPrototype%; use it instead
5898
+ // of the polyfill.
5899
+ IteratorPrototype = NativeIteratorPrototype;
5900
+ }
5901
+
5902
+ var Gp = GeneratorFunctionPrototype.prototype =
5903
+ Generator.prototype = Object.create(IteratorPrototype);
5904
+ GeneratorFunction.prototype = GeneratorFunctionPrototype;
5905
+ define(Gp, "constructor", GeneratorFunctionPrototype);
5906
+ define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
5907
+ GeneratorFunction.displayName = define(
5908
+ GeneratorFunctionPrototype,
5909
+ toStringTagSymbol,
5910
+ "GeneratorFunction"
5911
+ );
5912
+
5913
+ // Helper for defining the .next, .throw, and .return methods of the
5914
+ // Iterator interface in terms of a single ._invoke method.
5913
5915
  function defineIteratorMethods(prototype) {
5914
- ["next", "throw", "return"].forEach(function (method) {
5915
- define(prototype, method, function (arg) {
5916
+ ["next", "throw", "return"].forEach(function(method) {
5917
+ define(prototype, method, function(arg) {
5916
5918
  return this._invoke(method, arg);
5917
5919
  });
5918
5920
  });
5919
5921
  }
5920
5922
 
5923
+ exports.isGeneratorFunction = function(genFun) {
5924
+ var ctor = typeof genFun === "function" && genFun.constructor;
5925
+ return ctor
5926
+ ? ctor === GeneratorFunction ||
5927
+ // For the native GeneratorFunction constructor, the best we can
5928
+ // do is to check its .name property.
5929
+ (ctor.displayName || ctor.name) === "GeneratorFunction"
5930
+ : false;
5931
+ };
5932
+
5933
+ exports.mark = function(genFun) {
5934
+ if (Object.setPrototypeOf) {
5935
+ Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
5936
+ } else {
5937
+ genFun.__proto__ = GeneratorFunctionPrototype;
5938
+ define(genFun, toStringTagSymbol, "GeneratorFunction");
5939
+ }
5940
+ genFun.prototype = Object.create(Gp);
5941
+ return genFun;
5942
+ };
5943
+
5944
+ // Within the body of any async function, `await x` is transformed to
5945
+ // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
5946
+ // `hasOwn.call(value, "__await")` to determine if the yielded value is
5947
+ // meant to be awaited.
5948
+ exports.awrap = function(arg) {
5949
+ return { __await: arg };
5950
+ };
5951
+
5921
5952
  function AsyncIterator(generator, PromiseImpl) {
5922
5953
  function invoke(method, arg, resolve, reject) {
5923
5954
  var record = tryCatch(generator[method], generator, arg);
5955
+ if (record.type === "throw") {
5956
+ reject(record.arg);
5957
+ } else {
5958
+ var result = record.arg;
5959
+ var value = result.value;
5960
+ if (value &&
5961
+ typeof value === "object" &&
5962
+ hasOwn.call(value, "__await")) {
5963
+ return PromiseImpl.resolve(value.__await).then(function(value) {
5964
+ invoke("next", value, resolve, reject);
5965
+ }, function(err) {
5966
+ invoke("throw", err, resolve, reject);
5967
+ });
5968
+ }
5924
5969
 
5925
- if ("throw" !== record.type) {
5926
- var result = record.arg,
5927
- value = result.value;
5928
- return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
5929
- invoke("next", value, resolve, reject);
5930
- }, function (err) {
5931
- invoke("throw", err, resolve, reject);
5932
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
5933
- result.value = unwrapped, resolve(result);
5934
- }, function (error) {
5970
+ return PromiseImpl.resolve(value).then(function(unwrapped) {
5971
+ // When a yielded Promise is resolved, its final value becomes
5972
+ // the .value of the Promise<{value,done}> result for the
5973
+ // current iteration.
5974
+ result.value = unwrapped;
5975
+ resolve(result);
5976
+ }, function(error) {
5977
+ // If a rejected Promise was yielded, throw the rejection back
5978
+ // into the async generator function so it can be handled there.
5935
5979
  return invoke("throw", error, resolve, reject);
5936
5980
  });
5937
5981
  }
5938
-
5939
- reject(record.arg);
5940
5982
  }
5941
5983
 
5942
5984
  var previousPromise;
5943
5985
 
5944
- this._invoke = function (method, arg) {
5986
+ function enqueue(method, arg) {
5945
5987
  function callInvokeWithMethodAndArg() {
5946
- return new PromiseImpl(function (resolve, reject) {
5988
+ return new PromiseImpl(function(resolve, reject) {
5947
5989
  invoke(method, arg, resolve, reject);
5948
5990
  });
5949
5991
  }
5950
5992
 
5951
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
5993
+ return previousPromise =
5994
+ // If enqueue has been called before, then we want to wait until
5995
+ // all previous Promises have been resolved before calling invoke,
5996
+ // so that results are always delivered in the correct order. If
5997
+ // enqueue has not been called before, then it is important to
5998
+ // call invoke immediately, without waiting on a callback to fire,
5999
+ // so that the async generator function has the opportunity to do
6000
+ // any necessary setup in a predictable way. This predictability
6001
+ // is why the Promise constructor synchronously invokes its
6002
+ // executor callback, and why async functions synchronously
6003
+ // execute code before the first await. Since we implement simple
6004
+ // async functions in terms of async generators, it is especially
6005
+ // important to get this right, even though it requires care.
6006
+ previousPromise ? previousPromise.then(
6007
+ callInvokeWithMethodAndArg,
6008
+ // Avoid propagating failures to Promises returned by later
6009
+ // invocations of the iterator.
6010
+ callInvokeWithMethodAndArg
6011
+ ) : callInvokeWithMethodAndArg();
6012
+ }
6013
+
6014
+ // Define the unified helper method that is used to implement .next,
6015
+ // .throw, and .return (see defineIteratorMethods).
6016
+ this._invoke = enqueue;
6017
+ }
6018
+
6019
+ defineIteratorMethods(AsyncIterator.prototype);
6020
+ define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
6021
+ return this;
6022
+ });
6023
+ exports.AsyncIterator = AsyncIterator;
6024
+
6025
+ // Note that simple async functions are implemented on top of
6026
+ // AsyncIterator objects; they just return a Promise for the value of
6027
+ // the final result produced by the iterator.
6028
+ exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
6029
+ if (PromiseImpl === void 0) PromiseImpl = Promise;
6030
+
6031
+ var iter = new AsyncIterator(
6032
+ wrap(innerFn, outerFn, self, tryLocsList),
6033
+ PromiseImpl
6034
+ );
6035
+
6036
+ return exports.isGeneratorFunction(outerFn)
6037
+ ? iter // If outerFn is a generator, return the full iterator.
6038
+ : iter.next().then(function(result) {
6039
+ return result.done ? result.value : iter.next();
6040
+ });
6041
+ };
6042
+
6043
+ function makeInvokeMethod(innerFn, self, context) {
6044
+ var state = GenStateSuspendedStart;
6045
+
6046
+ return function invoke(method, arg) {
6047
+ if (state === GenStateExecuting) {
6048
+ throw new Error("Generator is already running");
6049
+ }
6050
+
6051
+ if (state === GenStateCompleted) {
6052
+ if (method === "throw") {
6053
+ throw arg;
6054
+ }
6055
+
6056
+ // Be forgiving, per 25.3.3.3.3 of the spec:
6057
+ // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
6058
+ return doneResult();
6059
+ }
6060
+
6061
+ context.method = method;
6062
+ context.arg = arg;
6063
+
6064
+ while (true) {
6065
+ var delegate = context.delegate;
6066
+ if (delegate) {
6067
+ var delegateResult = maybeInvokeDelegate(delegate, context);
6068
+ if (delegateResult) {
6069
+ if (delegateResult === ContinueSentinel) continue;
6070
+ return delegateResult;
6071
+ }
6072
+ }
6073
+
6074
+ if (context.method === "next") {
6075
+ // Setting context._sent for legacy support of Babel's
6076
+ // function.sent implementation.
6077
+ context.sent = context._sent = context.arg;
6078
+
6079
+ } else if (context.method === "throw") {
6080
+ if (state === GenStateSuspendedStart) {
6081
+ state = GenStateCompleted;
6082
+ throw context.arg;
6083
+ }
6084
+
6085
+ context.dispatchException(context.arg);
6086
+
6087
+ } else if (context.method === "return") {
6088
+ context.abrupt("return", context.arg);
6089
+ }
6090
+
6091
+ state = GenStateExecuting;
6092
+
6093
+ var record = tryCatch(innerFn, self, context);
6094
+ if (record.type === "normal") {
6095
+ // If an exception is thrown from innerFn, we leave state ===
6096
+ // GenStateExecuting and loop back for another invocation.
6097
+ state = context.done
6098
+ ? GenStateCompleted
6099
+ : GenStateSuspendedYield;
6100
+
6101
+ if (record.arg === ContinueSentinel) {
6102
+ continue;
6103
+ }
6104
+
6105
+ return {
6106
+ value: record.arg,
6107
+ done: context.done
6108
+ };
6109
+
6110
+ } else if (record.type === "throw") {
6111
+ state = GenStateCompleted;
6112
+ // Dispatch the exception by looping back around to the
6113
+ // context.dispatchException(context.arg) call above.
6114
+ context.method = "throw";
6115
+ context.arg = record.arg;
6116
+ }
6117
+ }
5952
6118
  };
5953
6119
  }
5954
6120
 
6121
+ // Call delegate.iterator[context.method](context.arg) and handle the
6122
+ // result, either by returning a { value, done } result from the
6123
+ // delegate iterator, or by modifying context.method and context.arg,
6124
+ // setting context.delegate to null, and returning the ContinueSentinel.
5955
6125
  function maybeInvokeDelegate(delegate, context) {
5956
6126
  var method = delegate.iterator[context.method];
6127
+ if (method === undefined$1) {
6128
+ // A .throw or .return when the delegate iterator has no .throw
6129
+ // method always terminates the yield* loop.
6130
+ context.delegate = null;
6131
+
6132
+ if (context.method === "throw") {
6133
+ // Note: ["return"] must be used for ES3 parsing compatibility.
6134
+ if (delegate.iterator["return"]) {
6135
+ // If the delegate iterator has a return method, give it a
6136
+ // chance to clean up.
6137
+ context.method = "return";
6138
+ context.arg = undefined$1;
6139
+ maybeInvokeDelegate(delegate, context);
6140
+
6141
+ if (context.method === "throw") {
6142
+ // If maybeInvokeDelegate(context) changed context.method from
6143
+ // "return" to "throw", let that override the TypeError below.
6144
+ return ContinueSentinel;
6145
+ }
6146
+ }
5957
6147
 
5958
- if (undefined === method) {
5959
- if (context.delegate = null, "throw" === context.method) {
5960
- if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
5961
- context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
6148
+ context.method = "throw";
6149
+ context.arg = new TypeError(
6150
+ "The iterator does not provide a 'throw' method");
5962
6151
  }
5963
6152
 
5964
6153
  return ContinueSentinel;
5965
6154
  }
5966
6155
 
5967
6156
  var record = tryCatch(method, delegate.iterator, context.arg);
5968
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
6157
+
6158
+ if (record.type === "throw") {
6159
+ context.method = "throw";
6160
+ context.arg = record.arg;
6161
+ context.delegate = null;
6162
+ return ContinueSentinel;
6163
+ }
6164
+
5969
6165
  var info = record.arg;
5970
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
6166
+
6167
+ if (! info) {
6168
+ context.method = "throw";
6169
+ context.arg = new TypeError("iterator result is not an object");
6170
+ context.delegate = null;
6171
+ return ContinueSentinel;
6172
+ }
6173
+
6174
+ if (info.done) {
6175
+ // Assign the result of the finished delegate to the temporary
6176
+ // variable specified by delegate.resultName (see delegateYield).
6177
+ context[delegate.resultName] = info.value;
6178
+
6179
+ // Resume execution at the desired location (see delegateYield).
6180
+ context.next = delegate.nextLoc;
6181
+
6182
+ // If context.method was "throw" but the delegate handled the
6183
+ // exception, let the outer generator proceed normally. If
6184
+ // context.method was "next", forget context.arg since it has been
6185
+ // "consumed" by the delegate iterator. If context.method was
6186
+ // "return", allow the original .return call to continue in the
6187
+ // outer generator.
6188
+ if (context.method !== "return") {
6189
+ context.method = "next";
6190
+ context.arg = undefined$1;
6191
+ }
6192
+
6193
+ } else {
6194
+ // Re-yield the result returned by the delegate method.
6195
+ return info;
6196
+ }
6197
+
6198
+ // The delegate iterator is finished, so forget it and continue with
6199
+ // the outer generator.
6200
+ context.delegate = null;
6201
+ return ContinueSentinel;
5971
6202
  }
5972
6203
 
6204
+ // Define Generator.prototype.{next,throw,return} in terms of the
6205
+ // unified ._invoke helper method.
6206
+ defineIteratorMethods(Gp);
6207
+
6208
+ define(Gp, toStringTagSymbol, "Generator");
6209
+
6210
+ // A Generator should always return itself as the iterator object when the
6211
+ // @@iterator function is called on it. Some browsers' implementations of the
6212
+ // iterator prototype chain incorrectly implement this, causing the Generator
6213
+ // object to not be returned from this call. This ensures that doesn't happen.
6214
+ // See https://github.com/facebook/regenerator/issues/274 for more details.
6215
+ define(Gp, iteratorSymbol, function() {
6216
+ return this;
6217
+ });
6218
+
6219
+ define(Gp, "toString", function() {
6220
+ return "[object Generator]";
6221
+ });
6222
+
5973
6223
  function pushTryEntry(locs) {
5974
- var entry = {
5975
- tryLoc: locs[0]
5976
- };
5977
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
6224
+ var entry = { tryLoc: locs[0] };
6225
+
6226
+ if (1 in locs) {
6227
+ entry.catchLoc = locs[1];
6228
+ }
6229
+
6230
+ if (2 in locs) {
6231
+ entry.finallyLoc = locs[2];
6232
+ entry.afterLoc = locs[3];
6233
+ }
6234
+
6235
+ this.tryEntries.push(entry);
5978
6236
  }
5979
6237
 
5980
6238
  function resetTryEntry(entry) {
5981
6239
  var record = entry.completion || {};
5982
- record.type = "normal", delete record.arg, entry.completion = record;
6240
+ record.type = "normal";
6241
+ delete record.arg;
6242
+ entry.completion = record;
5983
6243
  }
5984
6244
 
5985
6245
  function Context(tryLocsList) {
5986
- this.tryEntries = [{
5987
- tryLoc: "root"
5988
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
6246
+ // The root entry object (effectively a try statement without a catch
6247
+ // or a finally block) gives us a place to store values thrown from
6248
+ // locations where there is no enclosing try statement.
6249
+ this.tryEntries = [{ tryLoc: "root" }];
6250
+ tryLocsList.forEach(pushTryEntry, this);
6251
+ this.reset(true);
5989
6252
  }
5990
6253
 
6254
+ exports.keys = function(object) {
6255
+ var keys = [];
6256
+ for (var key in object) {
6257
+ keys.push(key);
6258
+ }
6259
+ keys.reverse();
6260
+
6261
+ // Rather than returning an object with a next method, we keep
6262
+ // things simple and return the next function itself.
6263
+ return function next() {
6264
+ while (keys.length) {
6265
+ var key = keys.pop();
6266
+ if (key in object) {
6267
+ next.value = key;
6268
+ next.done = false;
6269
+ return next;
6270
+ }
6271
+ }
6272
+
6273
+ // To avoid creating an additional object, we just hang the .value
6274
+ // and .done properties off the next function object itself. This
6275
+ // also ensures that the minifier will not anonymize the function.
6276
+ next.done = true;
6277
+ return next;
6278
+ };
6279
+ };
6280
+
5991
6281
  function values(iterable) {
5992
6282
  if (iterable) {
5993
6283
  var iteratorMethod = iterable[iteratorSymbol];
5994
- if (iteratorMethod) return iteratorMethod.call(iterable);
5995
- if ("function" == typeof iterable.next) return iterable;
6284
+ if (iteratorMethod) {
6285
+ return iteratorMethod.call(iterable);
6286
+ }
6287
+
6288
+ if (typeof iterable.next === "function") {
6289
+ return iterable;
6290
+ }
5996
6291
 
5997
6292
  if (!isNaN(iterable.length)) {
5998
- var i = -1,
5999
- next = function next() {
6000
- for (; ++i < iterable.length;) {
6001
- if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
6293
+ var i = -1, next = function next() {
6294
+ while (++i < iterable.length) {
6295
+ if (hasOwn.call(iterable, i)) {
6296
+ next.value = iterable[i];
6297
+ next.done = false;
6298
+ return next;
6299
+ }
6002
6300
  }
6003
6301
 
6004
- return next.value = undefined, next.done = !0, next;
6302
+ next.value = undefined$1;
6303
+ next.done = true;
6304
+
6305
+ return next;
6005
6306
  };
6006
6307
 
6007
6308
  return next.next = next;
6008
6309
  }
6009
6310
  }
6010
6311
 
6011
- return {
6012
- next: doneResult
6013
- };
6312
+ // Return an iterator with no values.
6313
+ return { next: doneResult };
6014
6314
  }
6315
+ exports.values = values;
6015
6316
 
6016
6317
  function doneResult() {
6017
- return {
6018
- value: undefined,
6019
- done: !0
6020
- };
6318
+ return { value: undefined$1, done: true };
6021
6319
  }
6022
6320
 
6023
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
6024
- var ctor = "function" == typeof genFun && genFun.constructor;
6025
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
6026
- }, exports.mark = function (genFun) {
6027
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
6028
- }, exports.awrap = function (arg) {
6029
- return {
6030
- __await: arg
6031
- };
6032
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
6033
- return this;
6034
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
6035
- void 0 === PromiseImpl && (PromiseImpl = Promise);
6036
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
6037
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
6038
- return result.done ? result.value : iter.next();
6039
- });
6040
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
6041
- return this;
6042
- }), define(Gp, "toString", function () {
6043
- return "[object Generator]";
6044
- }), exports.keys = function (object) {
6045
- var keys = [];
6046
-
6047
- for (var key in object) {
6048
- keys.push(key);
6049
- }
6321
+ Context.prototype = {
6322
+ constructor: Context,
6050
6323
 
6051
- return keys.reverse(), function next() {
6052
- for (; keys.length;) {
6053
- var key = keys.pop();
6054
- if (key in object) return next.value = key, next.done = !1, next;
6324
+ reset: function(skipTempReset) {
6325
+ this.prev = 0;
6326
+ this.next = 0;
6327
+ // Resetting context._sent for legacy support of Babel's
6328
+ // function.sent implementation.
6329
+ this.sent = this._sent = undefined$1;
6330
+ this.done = false;
6331
+ this.delegate = null;
6332
+
6333
+ this.method = "next";
6334
+ this.arg = undefined$1;
6335
+
6336
+ this.tryEntries.forEach(resetTryEntry);
6337
+
6338
+ if (!skipTempReset) {
6339
+ for (var name in this) {
6340
+ // Not sure about the optimal order of these conditions:
6341
+ if (name.charAt(0) === "t" &&
6342
+ hasOwn.call(this, name) &&
6343
+ !isNaN(+name.slice(1))) {
6344
+ this[name] = undefined$1;
6345
+ }
6346
+ }
6055
6347
  }
6348
+ },
6056
6349
 
6057
- return next.done = !0, next;
6058
- };
6059
- }, exports.values = values, Context.prototype = {
6060
- constructor: Context,
6061
- reset: function reset(skipTempReset) {
6062
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
6063
- "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
6350
+ stop: function() {
6351
+ this.done = true;
6352
+
6353
+ var rootEntry = this.tryEntries[0];
6354
+ var rootRecord = rootEntry.completion;
6355
+ if (rootRecord.type === "throw") {
6356
+ throw rootRecord.arg;
6064
6357
  }
6065
- },
6066
- stop: function stop() {
6067
- this.done = !0;
6068
- var rootRecord = this.tryEntries[0].completion;
6069
- if ("throw" === rootRecord.type) throw rootRecord.arg;
6358
+
6070
6359
  return this.rval;
6071
6360
  },
6072
- dispatchException: function dispatchException(exception) {
6073
- if (this.done) throw exception;
6074
- var context = this;
6075
6361
 
6362
+ dispatchException: function(exception) {
6363
+ if (this.done) {
6364
+ throw exception;
6365
+ }
6366
+
6367
+ var context = this;
6076
6368
  function handle(loc, caught) {
6077
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
6369
+ record.type = "throw";
6370
+ record.arg = exception;
6371
+ context.next = loc;
6372
+
6373
+ if (caught) {
6374
+ // If the dispatched exception was caught by a catch block,
6375
+ // then let that catch block handle the exception normally.
6376
+ context.method = "next";
6377
+ context.arg = undefined$1;
6378
+ }
6379
+
6380
+ return !! caught;
6078
6381
  }
6079
6382
 
6080
6383
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
6081
- var entry = this.tryEntries[i],
6082
- record = entry.completion;
6083
- if ("root" === entry.tryLoc) return handle("end");
6384
+ var entry = this.tryEntries[i];
6385
+ var record = entry.completion;
6386
+
6387
+ if (entry.tryLoc === "root") {
6388
+ // Exception thrown outside of any try block that could handle
6389
+ // it, so set the completion value of the entire function to
6390
+ // throw the exception.
6391
+ return handle("end");
6392
+ }
6084
6393
 
6085
6394
  if (entry.tryLoc <= this.prev) {
6086
- var hasCatch = hasOwn.call(entry, "catchLoc"),
6087
- hasFinally = hasOwn.call(entry, "finallyLoc");
6395
+ var hasCatch = hasOwn.call(entry, "catchLoc");
6396
+ var hasFinally = hasOwn.call(entry, "finallyLoc");
6088
6397
 
6089
6398
  if (hasCatch && hasFinally) {
6090
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
6091
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
6399
+ if (this.prev < entry.catchLoc) {
6400
+ return handle(entry.catchLoc, true);
6401
+ } else if (this.prev < entry.finallyLoc) {
6402
+ return handle(entry.finallyLoc);
6403
+ }
6404
+
6092
6405
  } else if (hasCatch) {
6093
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
6406
+ if (this.prev < entry.catchLoc) {
6407
+ return handle(entry.catchLoc, true);
6408
+ }
6409
+
6410
+ } else if (hasFinally) {
6411
+ if (this.prev < entry.finallyLoc) {
6412
+ return handle(entry.finallyLoc);
6413
+ }
6414
+
6094
6415
  } else {
6095
- if (!hasFinally) throw new Error("try statement without catch or finally");
6096
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
6416
+ throw new Error("try statement without catch or finally");
6097
6417
  }
6098
6418
  }
6099
6419
  }
6100
6420
  },
6101
- abrupt: function abrupt(type, arg) {
6421
+
6422
+ abrupt: function(type, arg) {
6102
6423
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
6103
6424
  var entry = this.tryEntries[i];
6104
-
6105
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
6425
+ if (entry.tryLoc <= this.prev &&
6426
+ hasOwn.call(entry, "finallyLoc") &&
6427
+ this.prev < entry.finallyLoc) {
6106
6428
  var finallyEntry = entry;
6107
6429
  break;
6108
6430
  }
6109
6431
  }
6110
6432
 
6111
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
6433
+ if (finallyEntry &&
6434
+ (type === "break" ||
6435
+ type === "continue") &&
6436
+ finallyEntry.tryLoc <= arg &&
6437
+ arg <= finallyEntry.finallyLoc) {
6438
+ // Ignore the finally entry if control is not jumping to a
6439
+ // location outside the try/catch block.
6440
+ finallyEntry = null;
6441
+ }
6442
+
6112
6443
  var record = finallyEntry ? finallyEntry.completion : {};
6113
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
6444
+ record.type = type;
6445
+ record.arg = arg;
6446
+
6447
+ if (finallyEntry) {
6448
+ this.method = "next";
6449
+ this.next = finallyEntry.finallyLoc;
6450
+ return ContinueSentinel;
6451
+ }
6452
+
6453
+ return this.complete(record);
6114
6454
  },
6115
- complete: function complete(record, afterLoc) {
6116
- if ("throw" === record.type) throw record.arg;
6117
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
6455
+
6456
+ complete: function(record, afterLoc) {
6457
+ if (record.type === "throw") {
6458
+ throw record.arg;
6459
+ }
6460
+
6461
+ if (record.type === "break" ||
6462
+ record.type === "continue") {
6463
+ this.next = record.arg;
6464
+ } else if (record.type === "return") {
6465
+ this.rval = this.arg = record.arg;
6466
+ this.method = "return";
6467
+ this.next = "end";
6468
+ } else if (record.type === "normal" && afterLoc) {
6469
+ this.next = afterLoc;
6470
+ }
6471
+
6472
+ return ContinueSentinel;
6118
6473
  },
6119
- finish: function finish(finallyLoc) {
6474
+
6475
+ finish: function(finallyLoc) {
6120
6476
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
6121
6477
  var entry = this.tryEntries[i];
6122
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
6478
+ if (entry.finallyLoc === finallyLoc) {
6479
+ this.complete(entry.completion, entry.afterLoc);
6480
+ resetTryEntry(entry);
6481
+ return ContinueSentinel;
6482
+ }
6123
6483
  }
6124
6484
  },
6125
- "catch": function _catch(tryLoc) {
6485
+
6486
+ "catch": function(tryLoc) {
6126
6487
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
6127
6488
  var entry = this.tryEntries[i];
6128
-
6129
6489
  if (entry.tryLoc === tryLoc) {
6130
6490
  var record = entry.completion;
6131
-
6132
- if ("throw" === record.type) {
6491
+ if (record.type === "throw") {
6133
6492
  var thrown = record.arg;
6134
6493
  resetTryEntry(entry);
6135
6494
  }
6136
-
6137
6495
  return thrown;
6138
6496
  }
6139
6497
  }
6140
6498
 
6499
+ // The context.catch method must only be called with a location
6500
+ // argument that corresponds to a known catch block.
6141
6501
  throw new Error("illegal catch attempt");
6142
6502
  },
6143
- delegateYield: function delegateYield(iterable, resultName, nextLoc) {
6144
- return this.delegate = {
6503
+
6504
+ delegateYield: function(iterable, resultName, nextLoc) {
6505
+ this.delegate = {
6145
6506
  iterator: values(iterable),
6146
6507
  resultName: resultName,
6147
6508
  nextLoc: nextLoc
6148
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
6149
- }
6150
- }, exports;
6151
- }
6509
+ };
6510
+
6511
+ if (this.method === "next") {
6512
+ // Deliberately forget the last sent value so that we don't
6513
+ // accidentally pass it on to the delegate.
6514
+ this.arg = undefined$1;
6515
+ }
6152
6516
 
6153
- module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
6154
- }(regeneratorRuntime$1));
6517
+ return ContinueSentinel;
6518
+ }
6519
+ };
6155
6520
 
6156
- // TODO(Babel 8): Remove this file.
6521
+ // Regardless of whether this script is executing as a CommonJS module
6522
+ // or not, return the runtime object so that we can declare the variable
6523
+ // regeneratorRuntime in the outer scope, which allows this module to be
6524
+ // injected easily by `bin/regenerator --include-runtime script.js`.
6525
+ return exports;
6157
6526
 
6158
- var runtime = regeneratorRuntime$1.exports();
6159
- var regenerator = runtime;
6527
+ }(
6528
+ // If this script is executing as a CommonJS module, use module.exports
6529
+ // as the regeneratorRuntime namespace. Otherwise create a new empty
6530
+ // object. Either way, the resulting object will be used to initialize
6531
+ // the regeneratorRuntime variable at the top of this file.
6532
+ module.exports
6533
+ ));
6160
6534
 
6161
- // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
6162
6535
  try {
6163
6536
  regeneratorRuntime = runtime;
6164
6537
  } catch (accidentalStrictMode) {
6538
+ // This module should not be running in strict mode, so the above
6539
+ // assignment should always work unless something is misconfigured. Just
6540
+ // in case runtime.js accidentally runs in strict mode, in modern engines
6541
+ // we can explicitly access globalThis. In older engines we can escape
6542
+ // strict mode using a global Function call. This could conceivably fail
6543
+ // if a Content Security Policy forbids using Function, but in that case
6544
+ // the proper solution is to fix the accidental strict mode problem. If
6545
+ // you've misconfigured your bundler to force strict mode and applied a
6546
+ // CSP to forbid Function, and you're not willing to fix either of those
6547
+ // problems, please detail your unique predicament in a GitHub issue.
6165
6548
  if (typeof globalThis === "object") {
6166
6549
  globalThis.regeneratorRuntime = runtime;
6167
6550
  } else {
6168
6551
  Function("r", "regeneratorRuntime = r")(runtime);
6169
6552
  }
6170
6553
  }
6554
+ }(runtime));
6555
+
6556
+ var regenerator = runtime.exports;
6171
6557
 
6172
6558
  var CheckCircleOutlined$5 = {};
6173
6559
 
@@ -6912,7 +7298,7 @@ var process = {
6912
7298
  variables["".concat(type, "-color")] = formatColor(baseColor);
6913
7299
  variables["".concat(type, "-color-disabled")] = colorPalettes[1];
6914
7300
  variables["".concat(type, "-color-hover")] = colorPalettes[4];
6915
- variables["".concat(type, "-color-active")] = colorPalettes[7];
7301
+ variables["".concat(type, "-color-active")] = colorPalettes[6];
6916
7302
  variables["".concat(type, "-color-outline")] = baseColor.clone().setAlpha(0.2).toRgbString();
6917
7303
  variables["".concat(type, "-color-deprecated-bg")] = colorPalettes[1];
6918
7304
  variables["".concat(type, "-color-deprecated-border")] = colorPalettes[3];
@@ -8357,7 +8743,7 @@ var process = {
8357
8743
  }
8358
8744
 
8359
8745
  function _extends$1() {
8360
- _extends$1 = Object.assign ? Object.assign.bind() : function (target) {
8746
+ _extends$1 = Object.assign || function (target) {
8361
8747
  for (var i = 1; i < arguments.length; i++) {
8362
8748
  var source = arguments[i];
8363
8749
 
@@ -8370,6 +8756,7 @@ var process = {
8370
8756
 
8371
8757
  return target;
8372
8758
  };
8759
+
8373
8760
  return _extends$1.apply(this, arguments);
8374
8761
  }
8375
8762
 
@@ -9514,8 +9901,8 @@ var process = {
9514
9901
  children.forEach(function (child) {
9515
9902
  if (Array.isArray(child)) {
9516
9903
  res.push.apply(res, _toConsumableArray$1(child));
9517
- } else if (child.type === require$$1$1.Fragment) {
9518
- res.push.apply(res, _toConsumableArray$1(child.children));
9904
+ } else if ((child === null || child === void 0 ? void 0 : child.type) === require$$1$1.Fragment) {
9905
+ res.push.apply(res, _toConsumableArray$1(filterEmpty(child.children)));
9519
9906
  } else {
9520
9907
  res.push(child);
9521
9908
  }
@@ -11729,7 +12116,7 @@ var process = {
11729
12116
  variables["".concat(type, "-color")] = formatColor(baseColor);
11730
12117
  variables["".concat(type, "-color-disabled")] = colorPalettes[1];
11731
12118
  variables["".concat(type, "-color-hover")] = colorPalettes[4];
11732
- variables["".concat(type, "-color-active")] = colorPalettes[7];
12119
+ variables["".concat(type, "-color-active")] = colorPalettes[6];
11733
12120
  variables["".concat(type, "-color-outline")] = baseColor.clone().setAlpha(0.2).toRgbString();
11734
12121
  variables["".concat(type, "-color-deprecated-bg")] = colorPalettes[1];
11735
12122
  variables["".concat(type, "-color-deprecated-border")] = colorPalettes[3];
@@ -12384,8 +12771,8 @@ var process = {
12384
12771
  // 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确
12385
12772
  // 此外,ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin
12386
12773
 
12387
- x = Math.floor(box.left);
12388
- y = Math.floor(box.top); // In IE, most of the time, 2 extra pixels are added to the top and left
12774
+ x = box.left;
12775
+ y = box.top; // In IE, most of the time, 2 extra pixels are added to the top and left
12389
12776
  // due to the implicit 2-pixel inset border. In IE6/7 quirks mode and
12390
12777
  // IE6 standards mode, this border can be overridden by setting the
12391
12778
  // document element's border to zero -- thus, we cannot rely on the
@@ -12792,7 +13179,7 @@ var process = {
12792
13179
  }
12793
13180
 
12794
13181
  var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];
12795
- var borderBoxValue = name === 'width' ? Math.floor(elem.getBoundingClientRect().width) : Math.floor(elem.getBoundingClientRect().height);
13182
+ var borderBoxValue = name === 'width' ? elem.getBoundingClientRect().width : elem.getBoundingClientRect().height;
12796
13183
  var isBorderBox = isBorderBoxFn(elem);
12797
13184
  var cssBoxValue = 0;
12798
13185
 
@@ -15082,37 +15469,17 @@ var process = {
15082
15469
  var RightOutlined$1 = RightOutlined;
15083
15470
 
15084
15471
  // This icon file is generated automatically.
15085
- var DeleteOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" } }] }, "name": "delete", "theme": "outlined" };
15086
- var DeleteOutlinedSvg = DeleteOutlined$2;
15472
+ var PlusOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "defs", "attrs": {}, "children": [{ "tag": "style", "attrs": {} }] }, { "tag": "path", "attrs": { "d": "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { "tag": "path", "attrs": { "d": "M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z" } }] }, "name": "plus", "theme": "outlined" };
15473
+ var PlusOutlinedSvg = PlusOutlined$2;
15087
15474
 
15088
15475
  function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$4(target, key, source[key]); }); } return target; }
15089
15476
 
15090
15477
  function _defineProperty$4(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15091
15478
 
15092
- var DeleteOutlined = function DeleteOutlined(props, context) {
15479
+ var PlusOutlined = function PlusOutlined(props, context) {
15093
15480
  var p = _objectSpread$3({}, props, context.attrs);
15094
15481
 
15095
15482
  return require$$1$1.createVNode(AntdIcon, _objectSpread$3({}, p, {
15096
- "icon": DeleteOutlinedSvg
15097
- }), null);
15098
- };
15099
-
15100
- DeleteOutlined.displayName = 'DeleteOutlined';
15101
- DeleteOutlined.inheritAttrs = false;
15102
- var DeleteOutlined$1 = DeleteOutlined;
15103
-
15104
- // This icon file is generated automatically.
15105
- var PlusOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "defs", "attrs": {}, "children": [{ "tag": "style", "attrs": {} }] }, { "tag": "path", "attrs": { "d": "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { "tag": "path", "attrs": { "d": "M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z" } }] }, "name": "plus", "theme": "outlined" };
15106
- var PlusOutlinedSvg = PlusOutlined$2;
15107
-
15108
- function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$3(target, key, source[key]); }); } return target; }
15109
-
15110
- function _defineProperty$3(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15111
-
15112
- var PlusOutlined = function PlusOutlined(props, context) {
15113
- var p = _objectSpread$2({}, props, context.attrs);
15114
-
15115
- return require$$1$1.createVNode(AntdIcon, _objectSpread$2({}, p, {
15116
15483
  "icon": PlusOutlinedSvg
15117
15484
  }), null);
15118
15485
  };
@@ -15121,46 +15488,6 @@ var process = {
15121
15488
  PlusOutlined.inheritAttrs = false;
15122
15489
  var PlusOutlined$1 = PlusOutlined;
15123
15490
 
15124
- // This icon file is generated automatically.
15125
- var UpOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" } }] }, "name": "up", "theme": "outlined" };
15126
- var UpOutlinedSvg = UpOutlined$2;
15127
-
15128
- function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$2(target, key, source[key]); }); } return target; }
15129
-
15130
- function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15131
-
15132
- var UpOutlined = function UpOutlined(props, context) {
15133
- var p = _objectSpread$1({}, props, context.attrs);
15134
-
15135
- return require$$1$1.createVNode(AntdIcon, _objectSpread$1({}, p, {
15136
- "icon": UpOutlinedSvg
15137
- }), null);
15138
- };
15139
-
15140
- UpOutlined.displayName = 'UpOutlined';
15141
- UpOutlined.inheritAttrs = false;
15142
- var UpOutlined$1 = UpOutlined;
15143
-
15144
- // This icon file is generated automatically.
15145
- var UploadOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" } }] }, "name": "upload", "theme": "outlined" };
15146
- var UploadOutlinedSvg = UploadOutlined$2;
15147
-
15148
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } return target; }
15149
-
15150
- function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15151
-
15152
- var UploadOutlined = function UploadOutlined(props, context) {
15153
- var p = _objectSpread({}, props, context.attrs);
15154
-
15155
- return require$$1$1.createVNode(AntdIcon, _objectSpread({}, p, {
15156
- "icon": UploadOutlinedSvg
15157
- }), null);
15158
- };
15159
-
15160
- UploadOutlined.displayName = 'UploadOutlined';
15161
- UploadOutlined.inheritAttrs = false;
15162
- var UploadOutlined$1 = UploadOutlined;
15163
-
15164
15491
  var canUseDocElement$1 = function canUseDocElement() {
15165
15492
  return canUseDom() && window.document.documentElement;
15166
15493
  };
@@ -16219,6 +16546,26 @@ var process = {
16219
16546
  });
16220
16547
  var DialogWrap$3 = DialogWrap$2;
16221
16548
 
16549
+ // This icon file is generated automatically.
16550
+ var UpOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" } }] }, "name": "up", "theme": "outlined" };
16551
+ var UpOutlinedSvg = UpOutlined$2;
16552
+
16553
+ function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$3(target, key, source[key]); }); } return target; }
16554
+
16555
+ function _defineProperty$3(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16556
+
16557
+ var UpOutlined = function UpOutlined(props, context) {
16558
+ var p = _objectSpread$2({}, props, context.attrs);
16559
+
16560
+ return require$$1$1.createVNode(AntdIcon, _objectSpread$2({}, p, {
16561
+ "icon": UpOutlinedSvg
16562
+ }), null);
16563
+ };
16564
+
16565
+ UpOutlined.displayName = 'UpOutlined';
16566
+ UpOutlined.inheritAttrs = false;
16567
+ var UpOutlined$1 = UpOutlined;
16568
+
16222
16569
  var __rest$e = undefined && undefined.__rest || function (s, e) {
16223
16570
  var t = {};
16224
16571
 
@@ -16898,6 +17245,46 @@ var process = {
16898
17245
  return app;
16899
17246
  };
16900
17247
 
17248
+ // This icon file is generated automatically.
17249
+ var DeleteOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" } }] }, "name": "delete", "theme": "outlined" };
17250
+ var DeleteOutlinedSvg = DeleteOutlined$2;
17251
+
17252
+ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$2(target, key, source[key]); }); } return target; }
17253
+
17254
+ function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
17255
+
17256
+ var DeleteOutlined = function DeleteOutlined(props, context) {
17257
+ var p = _objectSpread$1({}, props, context.attrs);
17258
+
17259
+ return require$$1$1.createVNode(AntdIcon, _objectSpread$1({}, p, {
17260
+ "icon": DeleteOutlinedSvg
17261
+ }), null);
17262
+ };
17263
+
17264
+ DeleteOutlined.displayName = 'DeleteOutlined';
17265
+ DeleteOutlined.inheritAttrs = false;
17266
+ var DeleteOutlined$1 = DeleteOutlined;
17267
+
17268
+ // This icon file is generated automatically.
17269
+ var UploadOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" } }] }, "name": "upload", "theme": "outlined" };
17270
+ var UploadOutlinedSvg = UploadOutlined$2;
17271
+
17272
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } return target; }
17273
+
17274
+ function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
17275
+
17276
+ var UploadOutlined = function UploadOutlined(props, context) {
17277
+ var p = _objectSpread({}, props, context.attrs);
17278
+
17279
+ return require$$1$1.createVNode(AntdIcon, _objectSpread({}, p, {
17280
+ "icon": UploadOutlinedSvg
17281
+ }), null);
17282
+ };
17283
+
17284
+ UploadOutlined.displayName = 'UploadOutlined';
17285
+ UploadOutlined.inheritAttrs = false;
17286
+ var UploadOutlined$1 = UploadOutlined;
17287
+
16901
17288
  var alert = {};
16902
17289
 
16903
17290
  var vnode = {};
@@ -27033,6 +27420,18 @@ var process = {
27033
27420
  type: Boolean,
27034
27421
  default: false,
27035
27422
  },
27423
+ expandPlacement: {
27424
+ type: String,
27425
+ default: 'left',
27426
+ },
27427
+ expandText: {
27428
+ type: String,
27429
+ default: '展开',
27430
+ },
27431
+ collapseText: {
27432
+ type: String,
27433
+ default: '收起',
27434
+ },
27036
27435
  };
27037
27436
  const searchFilterProps = Object.assign({ userRule: {
27038
27437
  type: Array,
@@ -27069,9 +27468,6 @@ var process = {
27069
27468
  default() {
27070
27469
  return [];
27071
27470
  },
27072
- }, expandPlacement: {
27073
- type: String,
27074
- default: 'left',
27075
27471
  } }, searchResetBtnProps);
27076
27472
 
27077
27473
  const _hoisted_1$a = { class: "bm-search-filter-btn" };
@@ -27079,6 +27475,7 @@ var process = {
27079
27475
  const _hoisted_3$7 = /* @__PURE__ */ require$$1$1.createTextVNode("\u91CD\u7F6E");
27080
27476
  const _hoisted_4$7 = /* @__PURE__ */ require$$1$1.createTextVNode("\u67E5\u8BE2");
27081
27477
  const _sfc_main$d = /* @__PURE__ */ require$$1$1.defineComponent({
27478
+ name: "search-reset-btn",
27082
27479
  props: searchResetBtnProps,
27083
27480
  emits: ["submit", "reset", "expand"],
27084
27481
  setup(__props, { emit: emits }) {
@@ -27102,7 +27499,7 @@ var process = {
27102
27499
  class: "bm-search-filter-expand",
27103
27500
  onClick: handleExpandBtnChange
27104
27501
  }, [
27105
- require$$1$1.createTextVNode(require$$1$1.toDisplayString(isExpand.value ? "\u6536\u8D77" : "\u5C55\u5F00"), 1),
27502
+ require$$1$1.createTextVNode(require$$1$1.toDisplayString(isExpand.value ? props.collapseText : props.expandText), 1),
27106
27503
  isExpand.value ? (require$$1$1.openBlock(), require$$1$1.createBlock(require$$1$1.unref(UpOutlined$1), { key: 0 })) : (require$$1$1.openBlock(), require$$1$1.createBlock(require$$1$1.unref(DownOutlined$1), { key: 1 }))
27107
27504
  ])) : require$$1$1.createCommentVNode("v-if", true),
27108
27505
  require$$1$1.createElementVNode("span", _hoisted_2$8, [
@@ -27768,7 +28165,7 @@ var process = {
27768
28165
  "onUpdate:api": _cache[0] || (_cache[0] = ($event) => fApi.value = $event),
27769
28166
  "model-value": props.value,
27770
28167
  rule: require$$1$1.unref(rule),
27771
- option: require$$1$1.unref(option),
28168
+ option,
27772
28169
  onChange: handleChange
27773
28170
  }, null, 8, ["api", "model-value", "rule", "option"])
27774
28171
  ], 2);
@@ -28788,8 +29185,8 @@ var process = {
28788
29185
 
28789
29186
  return (0, _vue$K.createVNode)("span", {
28790
29187
  "class": cls.value,
28791
- "onMouseenter": props.onMouseEnter,
28792
- "onMouseleave": props.onMouseLeave,
29188
+ "onMouseenter": props.onMouseenter,
29189
+ "onMouseleave": props.onMouseleave,
28793
29190
  "onFocus": props.onFocus,
28794
29191
  "onBlur": props.onBlur
28795
29192
  }, [(_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots)]);
@@ -39246,7 +39643,7 @@ var process = {
39246
39643
  });
39247
39644
  };
39248
39645
 
39249
- syncScroll(3);
39646
+ syncScroll(5);
39250
39647
  }
39251
39648
  };
39252
39649
  }
@@ -44879,7 +45276,7 @@ var process = {
44879
45276
  ]);
44880
45277
  }), 128))
44881
45278
  ])) : require$$1$1.createCommentVNode("v-if", true)
44882
- ], 2112))
45279
+ ], 64))
44883
45280
  ])
44884
45281
  ]),
44885
45282
  require$$1$1.createElementVNode("div", _hoisted_14$1, [
@@ -45143,7 +45540,7 @@ var process = {
45143
45540
  showHeaderOverflow: true,
45144
45541
  align: null,
45145
45542
  columns: [],
45146
- tooltipConfig: { leaveDelay: 1e6 },
45543
+ tooltipConfig: { leaveDelay: 10 },
45147
45544
  data: [],
45148
45545
  pagerConfig: {},
45149
45546
  emptyText: "\u6682\u65E0\u6570\u636E",
@@ -45834,10 +46231,12 @@ var process = {
45834
46231
  emit("update", state.uploadedList);
45835
46232
  },
45836
46233
  uploadError(error, file = {}) {
45837
- if (methods.fileIsDelete(file)) {
45838
- return;
46234
+ if (file) {
46235
+ if (methods.fileIsDelete(file)) {
46236
+ return;
46237
+ }
46238
+ state.fileList[file.uid].status = "error";
45839
46239
  }
45840
- state.fileList[file.uid].status = "error";
45841
46240
  emit("error", error);
45842
46241
  },
45843
46242
  async deleteFile(uid) {
@@ -46165,7 +46564,7 @@ var process = {
46165
46564
  key: 1,
46166
46565
  file: item
46167
46566
  })
46168
- ], 2112)) : require$$1$1.createCommentVNode("v-if", true),
46567
+ ], 64)) : require$$1$1.createCommentVNode("v-if", true),
46169
46568
  require$$1$1.createCommentVNode(" \u56FE\u7247\u9519\u8BEF\u5C55\u793A "),
46170
46569
  item.status === "error" ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", {
46171
46570
  key: 2,
@@ -46211,7 +46610,7 @@ var process = {
46211
46610
  }, 8, ["class", "disabled"]),
46212
46611
  _ctx.extraConfigs.tips && _ctx.extraConfigs.showTips ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_23, require$$1$1.toDisplayString(_ctx.extraConfigs.tips), 1)) : require$$1$1.createCommentVNode("v-if", true)
46213
46612
  ])) : require$$1$1.createCommentVNode("v-if", true)
46214
- ], 2112))
46613
+ ], 64))
46215
46614
  ]),
46216
46615
  _: 3
46217
46616
  }, 16, ["class"])) : require$$1$1.createCommentVNode("v-if", true),
@@ -46505,7 +46904,7 @@ var process = {
46505
46904
  if (!props.list.length || props.alwaysInvoke)
46506
46905
  emit("addClick");
46507
46906
  }
46508
- const tooltipConfig = ref({
46907
+ const tooltipConfig = require$$1$1.ref({
46509
46908
  align: void 0,
46510
46909
  arrowPointAtCenter: false,
46511
46910
  autoAdjustOverflow: true,
@@ -46520,7 +46919,7 @@ var process = {
46520
46919
  placement: props.placement,
46521
46920
  trigger: "hover"
46522
46921
  });
46523
- watch(() => props.toolTipProps, (tooltipprop) => {
46922
+ require$$1$1.watch(() => props.toolTipProps, (tooltipprop) => {
46524
46923
  tooltipConfig.value = {
46525
46924
  ...tooltipConfig.value,
46526
46925
  ...tooltipprop