@kmkf-fe-packages/basic-components 1.4.0 → 1.4.2
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/README.md +10 -2
- package/dist/index.esm.js +259 -259
- package/dist/index.js +259 -259
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -20,377 +20,363 @@ var request__default = /*#__PURE__*/_interopDefaultLegacy(request);
|
|
|
20
20
|
var zhCN__default = /*#__PURE__*/_interopDefaultLegacy(zhCN);
|
|
21
21
|
var pubsub__default = /*#__PURE__*/_interopDefaultLegacy(pubsub);
|
|
22
22
|
|
|
23
|
-
function _iterableToArrayLimit(
|
|
24
|
-
var
|
|
25
|
-
if (null !=
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
23
|
+
function _iterableToArrayLimit(arr, i) {
|
|
24
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
25
|
+
if (null != _i) {
|
|
26
|
+
var _s,
|
|
27
|
+
_e,
|
|
28
|
+
_x,
|
|
29
|
+
_r,
|
|
30
|
+
_arr = [],
|
|
31
|
+
_n = !0,
|
|
32
|
+
_d = !1;
|
|
33
33
|
try {
|
|
34
|
-
if (
|
|
35
|
-
if (Object(
|
|
36
|
-
|
|
37
|
-
} else for (; !(
|
|
38
|
-
} catch (
|
|
39
|
-
|
|
34
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
35
|
+
if (Object(_i) !== _i) return;
|
|
36
|
+
_n = !1;
|
|
37
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
38
|
+
} catch (err) {
|
|
39
|
+
_d = !0, _e = err;
|
|
40
40
|
} finally {
|
|
41
41
|
try {
|
|
42
|
-
if (!
|
|
42
|
+
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
|
43
43
|
} finally {
|
|
44
|
-
if (
|
|
44
|
+
if (_d) throw _e;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
return
|
|
47
|
+
return _arr;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
function ownKeys(
|
|
51
|
-
var
|
|
50
|
+
function ownKeys(object, enumerableOnly) {
|
|
51
|
+
var keys = Object.keys(object);
|
|
52
52
|
if (Object.getOwnPropertySymbols) {
|
|
53
|
-
var
|
|
54
|
-
|
|
55
|
-
return Object.getOwnPropertyDescriptor(
|
|
56
|
-
})),
|
|
53
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
54
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
55
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
56
|
+
})), keys.push.apply(keys, symbols);
|
|
57
57
|
}
|
|
58
|
-
return
|
|
59
|
-
}
|
|
60
|
-
function _objectSpread2(
|
|
61
|
-
for (var
|
|
62
|
-
var
|
|
63
|
-
|
|
64
|
-
_defineProperty(
|
|
65
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
66
|
-
Object.defineProperty(
|
|
58
|
+
return keys;
|
|
59
|
+
}
|
|
60
|
+
function _objectSpread2(target) {
|
|
61
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
62
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
63
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
64
|
+
_defineProperty(target, key, source[key]);
|
|
65
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
66
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
return
|
|
69
|
+
return target;
|
|
70
70
|
}
|
|
71
71
|
function _regeneratorRuntime() {
|
|
72
72
|
_regeneratorRuntime = function () {
|
|
73
|
-
return
|
|
74
|
-
};
|
|
75
|
-
var
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
t[e] = r.value;
|
|
73
|
+
return exports;
|
|
74
|
+
};
|
|
75
|
+
var exports = {},
|
|
76
|
+
Op = Object.prototype,
|
|
77
|
+
hasOwn = Op.hasOwnProperty,
|
|
78
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
79
|
+
obj[key] = desc.value;
|
|
81
80
|
},
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
function define(
|
|
87
|
-
return Object.defineProperty(
|
|
88
|
-
value:
|
|
81
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
82
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
83
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
84
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
85
|
+
function define(obj, key, value) {
|
|
86
|
+
return Object.defineProperty(obj, key, {
|
|
87
|
+
value: value,
|
|
89
88
|
enumerable: !0,
|
|
90
89
|
configurable: !0,
|
|
91
90
|
writable: !0
|
|
92
|
-
}),
|
|
91
|
+
}), obj[key];
|
|
93
92
|
}
|
|
94
93
|
try {
|
|
95
94
|
define({}, "");
|
|
96
|
-
} catch (
|
|
97
|
-
define = function (
|
|
98
|
-
return
|
|
95
|
+
} catch (err) {
|
|
96
|
+
define = function (obj, key, value) {
|
|
97
|
+
return obj[key] = value;
|
|
99
98
|
};
|
|
100
99
|
}
|
|
101
|
-
function wrap(
|
|
102
|
-
var
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
return
|
|
106
|
-
value: makeInvokeMethod(
|
|
107
|
-
}),
|
|
100
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
101
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
102
|
+
generator = Object.create(protoGenerator.prototype),
|
|
103
|
+
context = new Context(tryLocsList || []);
|
|
104
|
+
return defineProperty(generator, "_invoke", {
|
|
105
|
+
value: makeInvokeMethod(innerFn, self, context)
|
|
106
|
+
}), generator;
|
|
108
107
|
}
|
|
109
|
-
function tryCatch(
|
|
108
|
+
function tryCatch(fn, obj, arg) {
|
|
110
109
|
try {
|
|
111
110
|
return {
|
|
112
111
|
type: "normal",
|
|
113
|
-
arg:
|
|
112
|
+
arg: fn.call(obj, arg)
|
|
114
113
|
};
|
|
115
|
-
} catch (
|
|
114
|
+
} catch (err) {
|
|
116
115
|
return {
|
|
117
116
|
type: "throw",
|
|
118
|
-
arg:
|
|
117
|
+
arg: err
|
|
119
118
|
};
|
|
120
119
|
}
|
|
121
120
|
}
|
|
122
|
-
|
|
123
|
-
var
|
|
124
|
-
l = "suspendedYield",
|
|
125
|
-
f = "executing",
|
|
126
|
-
s = "completed",
|
|
127
|
-
y = {};
|
|
121
|
+
exports.wrap = wrap;
|
|
122
|
+
var ContinueSentinel = {};
|
|
128
123
|
function Generator() {}
|
|
129
124
|
function GeneratorFunction() {}
|
|
130
125
|
function GeneratorFunctionPrototype() {}
|
|
131
|
-
var
|
|
132
|
-
define(
|
|
126
|
+
var IteratorPrototype = {};
|
|
127
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
133
128
|
return this;
|
|
134
129
|
});
|
|
135
|
-
var
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
var
|
|
139
|
-
function defineIteratorMethods(
|
|
140
|
-
["next", "throw", "return"].forEach(function (
|
|
141
|
-
define(
|
|
142
|
-
return this._invoke(
|
|
130
|
+
var getProto = Object.getPrototypeOf,
|
|
131
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
132
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
133
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
134
|
+
function defineIteratorMethods(prototype) {
|
|
135
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
136
|
+
define(prototype, method, function (arg) {
|
|
137
|
+
return this._invoke(method, arg);
|
|
143
138
|
});
|
|
144
139
|
});
|
|
145
140
|
}
|
|
146
|
-
function AsyncIterator(
|
|
147
|
-
function invoke(
|
|
148
|
-
var
|
|
149
|
-
if ("throw" !==
|
|
150
|
-
var
|
|
151
|
-
|
|
152
|
-
return
|
|
153
|
-
invoke("next",
|
|
154
|
-
}, function (
|
|
155
|
-
invoke("throw",
|
|
156
|
-
}) :
|
|
157
|
-
|
|
158
|
-
}, function (
|
|
159
|
-
return invoke("throw",
|
|
141
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
142
|
+
function invoke(method, arg, resolve, reject) {
|
|
143
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
144
|
+
if ("throw" !== record.type) {
|
|
145
|
+
var result = record.arg,
|
|
146
|
+
value = result.value;
|
|
147
|
+
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
148
|
+
invoke("next", value, resolve, reject);
|
|
149
|
+
}, function (err) {
|
|
150
|
+
invoke("throw", err, resolve, reject);
|
|
151
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
152
|
+
result.value = unwrapped, resolve(result);
|
|
153
|
+
}, function (error) {
|
|
154
|
+
return invoke("throw", error, resolve, reject);
|
|
160
155
|
});
|
|
161
156
|
}
|
|
162
|
-
|
|
157
|
+
reject(record.arg);
|
|
163
158
|
}
|
|
164
|
-
var
|
|
165
|
-
|
|
166
|
-
value: function (
|
|
159
|
+
var previousPromise;
|
|
160
|
+
defineProperty(this, "_invoke", {
|
|
161
|
+
value: function (method, arg) {
|
|
167
162
|
function callInvokeWithMethodAndArg() {
|
|
168
|
-
return new
|
|
169
|
-
invoke(
|
|
163
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
164
|
+
invoke(method, arg, resolve, reject);
|
|
170
165
|
});
|
|
171
166
|
}
|
|
172
|
-
return
|
|
167
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
173
168
|
}
|
|
174
169
|
});
|
|
175
170
|
}
|
|
176
|
-
function makeInvokeMethod(
|
|
177
|
-
var
|
|
178
|
-
return function (
|
|
179
|
-
if (
|
|
180
|
-
if (
|
|
181
|
-
if ("throw" ===
|
|
182
|
-
return
|
|
183
|
-
value: t,
|
|
184
|
-
done: !0
|
|
185
|
-
};
|
|
171
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
172
|
+
var state = "suspendedStart";
|
|
173
|
+
return function (method, arg) {
|
|
174
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
175
|
+
if ("completed" === state) {
|
|
176
|
+
if ("throw" === method) throw arg;
|
|
177
|
+
return doneResult();
|
|
186
178
|
}
|
|
187
|
-
for (
|
|
188
|
-
var
|
|
189
|
-
if (
|
|
190
|
-
var
|
|
191
|
-
if (
|
|
192
|
-
if (
|
|
193
|
-
return
|
|
179
|
+
for (context.method = method, context.arg = arg;;) {
|
|
180
|
+
var delegate = context.delegate;
|
|
181
|
+
if (delegate) {
|
|
182
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
183
|
+
if (delegateResult) {
|
|
184
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
185
|
+
return delegateResult;
|
|
194
186
|
}
|
|
195
187
|
}
|
|
196
|
-
if ("next" ===
|
|
197
|
-
if (
|
|
198
|
-
|
|
199
|
-
} else "return" ===
|
|
200
|
-
|
|
201
|
-
var
|
|
202
|
-
if ("normal" ===
|
|
203
|
-
if (
|
|
188
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
189
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
190
|
+
context.dispatchException(context.arg);
|
|
191
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
192
|
+
state = "executing";
|
|
193
|
+
var record = tryCatch(innerFn, self, context);
|
|
194
|
+
if ("normal" === record.type) {
|
|
195
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
204
196
|
return {
|
|
205
|
-
value:
|
|
206
|
-
done:
|
|
197
|
+
value: record.arg,
|
|
198
|
+
done: context.done
|
|
207
199
|
};
|
|
208
200
|
}
|
|
209
|
-
"throw" ===
|
|
201
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
210
202
|
}
|
|
211
203
|
};
|
|
212
204
|
}
|
|
213
|
-
function maybeInvokeDelegate(
|
|
214
|
-
var
|
|
215
|
-
|
|
216
|
-
if (
|
|
217
|
-
var
|
|
218
|
-
if ("throw" ===
|
|
219
|
-
var
|
|
220
|
-
return
|
|
205
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
206
|
+
var methodName = context.method,
|
|
207
|
+
method = delegate.iterator[methodName];
|
|
208
|
+
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
|
209
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
210
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
211
|
+
var info = record.arg;
|
|
212
|
+
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);
|
|
221
213
|
}
|
|
222
|
-
function pushTryEntry(
|
|
223
|
-
var
|
|
224
|
-
tryLoc:
|
|
214
|
+
function pushTryEntry(locs) {
|
|
215
|
+
var entry = {
|
|
216
|
+
tryLoc: locs[0]
|
|
225
217
|
};
|
|
226
|
-
1 in
|
|
218
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
227
219
|
}
|
|
228
|
-
function resetTryEntry(
|
|
229
|
-
var
|
|
230
|
-
|
|
220
|
+
function resetTryEntry(entry) {
|
|
221
|
+
var record = entry.completion || {};
|
|
222
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
231
223
|
}
|
|
232
|
-
function Context(
|
|
224
|
+
function Context(tryLocsList) {
|
|
233
225
|
this.tryEntries = [{
|
|
234
226
|
tryLoc: "root"
|
|
235
|
-
}],
|
|
227
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
236
228
|
}
|
|
237
|
-
function values(
|
|
238
|
-
if (
|
|
239
|
-
var
|
|
240
|
-
if (
|
|
241
|
-
if ("function" == typeof
|
|
242
|
-
if (!isNaN(
|
|
243
|
-
var
|
|
244
|
-
|
|
245
|
-
for (; ++
|
|
246
|
-
return next.value =
|
|
229
|
+
function values(iterable) {
|
|
230
|
+
if (iterable) {
|
|
231
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
232
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
233
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
234
|
+
if (!isNaN(iterable.length)) {
|
|
235
|
+
var i = -1,
|
|
236
|
+
next = function next() {
|
|
237
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
238
|
+
return next.value = undefined, next.done = !0, next;
|
|
247
239
|
};
|
|
248
|
-
return
|
|
240
|
+
return next.next = next;
|
|
249
241
|
}
|
|
250
242
|
}
|
|
251
|
-
|
|
243
|
+
return {
|
|
244
|
+
next: doneResult
|
|
245
|
+
};
|
|
252
246
|
}
|
|
253
|
-
|
|
247
|
+
function doneResult() {
|
|
248
|
+
return {
|
|
249
|
+
value: undefined,
|
|
250
|
+
done: !0
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
254
254
|
value: GeneratorFunctionPrototype,
|
|
255
255
|
configurable: !0
|
|
256
|
-
}),
|
|
256
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
257
257
|
value: GeneratorFunction,
|
|
258
258
|
configurable: !0
|
|
259
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
|
260
|
-
var
|
|
261
|
-
return !!
|
|
262
|
-
},
|
|
263
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
264
|
-
},
|
|
259
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
260
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
261
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
262
|
+
}, exports.mark = function (genFun) {
|
|
263
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
264
|
+
}, exports.awrap = function (arg) {
|
|
265
265
|
return {
|
|
266
|
-
__await:
|
|
266
|
+
__await: arg
|
|
267
267
|
};
|
|
268
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
|
268
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
269
269
|
return this;
|
|
270
|
-
}),
|
|
271
|
-
void 0 ===
|
|
272
|
-
var
|
|
273
|
-
return
|
|
274
|
-
return
|
|
270
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
271
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
272
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
273
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
274
|
+
return result.done ? result.value : iter.next();
|
|
275
275
|
});
|
|
276
|
-
}, defineIteratorMethods(
|
|
276
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
277
277
|
return this;
|
|
278
|
-
}), define(
|
|
278
|
+
}), define(Gp, "toString", function () {
|
|
279
279
|
return "[object Generator]";
|
|
280
|
-
}),
|
|
281
|
-
var
|
|
282
|
-
|
|
283
|
-
for (var
|
|
284
|
-
return
|
|
285
|
-
for (;
|
|
286
|
-
var
|
|
287
|
-
if (
|
|
280
|
+
}), exports.keys = function (val) {
|
|
281
|
+
var object = Object(val),
|
|
282
|
+
keys = [];
|
|
283
|
+
for (var key in object) keys.push(key);
|
|
284
|
+
return keys.reverse(), function next() {
|
|
285
|
+
for (; keys.length;) {
|
|
286
|
+
var key = keys.pop();
|
|
287
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
288
288
|
}
|
|
289
289
|
return next.done = !0, next;
|
|
290
290
|
};
|
|
291
|
-
},
|
|
291
|
+
}, exports.values = values, Context.prototype = {
|
|
292
292
|
constructor: Context,
|
|
293
|
-
reset: function (
|
|
294
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
|
293
|
+
reset: function (skipTempReset) {
|
|
294
|
+
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) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
295
295
|
},
|
|
296
296
|
stop: function () {
|
|
297
297
|
this.done = !0;
|
|
298
|
-
var
|
|
299
|
-
if ("throw" ===
|
|
298
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
299
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
300
300
|
return this.rval;
|
|
301
301
|
},
|
|
302
|
-
dispatchException: function (
|
|
303
|
-
if (this.done) throw
|
|
304
|
-
var
|
|
305
|
-
function handle(
|
|
306
|
-
return
|
|
302
|
+
dispatchException: function (exception) {
|
|
303
|
+
if (this.done) throw exception;
|
|
304
|
+
var context = this;
|
|
305
|
+
function handle(loc, caught) {
|
|
306
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
307
307
|
}
|
|
308
|
-
for (var
|
|
309
|
-
var
|
|
310
|
-
|
|
311
|
-
if ("root" ===
|
|
312
|
-
if (
|
|
313
|
-
var
|
|
314
|
-
|
|
315
|
-
if (
|
|
316
|
-
if (this.prev <
|
|
317
|
-
if (this.prev <
|
|
318
|
-
} else if (
|
|
319
|
-
if (this.prev <
|
|
308
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
309
|
+
var entry = this.tryEntries[i],
|
|
310
|
+
record = entry.completion;
|
|
311
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
312
|
+
if (entry.tryLoc <= this.prev) {
|
|
313
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
314
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
315
|
+
if (hasCatch && hasFinally) {
|
|
316
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
317
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
318
|
+
} else if (hasCatch) {
|
|
319
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
320
320
|
} else {
|
|
321
|
-
if (!
|
|
322
|
-
if (this.prev <
|
|
321
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
322
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
},
|
|
327
|
-
abrupt: function (
|
|
328
|
-
for (var
|
|
329
|
-
var
|
|
330
|
-
if (
|
|
331
|
-
var
|
|
327
|
+
abrupt: function (type, arg) {
|
|
328
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
329
|
+
var entry = this.tryEntries[i];
|
|
330
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
331
|
+
var finallyEntry = entry;
|
|
332
332
|
break;
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
|
-
|
|
336
|
-
var
|
|
337
|
-
return
|
|
335
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
336
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
337
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
338
338
|
},
|
|
339
|
-
complete: function (
|
|
340
|
-
if ("throw" ===
|
|
341
|
-
return "break" ===
|
|
339
|
+
complete: function (record, afterLoc) {
|
|
340
|
+
if ("throw" === record.type) throw record.arg;
|
|
341
|
+
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;
|
|
342
342
|
},
|
|
343
|
-
finish: function (
|
|
344
|
-
for (var
|
|
345
|
-
var
|
|
346
|
-
if (
|
|
343
|
+
finish: function (finallyLoc) {
|
|
344
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
345
|
+
var entry = this.tryEntries[i];
|
|
346
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
347
347
|
}
|
|
348
348
|
},
|
|
349
|
-
catch: function (
|
|
350
|
-
for (var
|
|
351
|
-
var
|
|
352
|
-
if (
|
|
353
|
-
var
|
|
354
|
-
if ("throw" ===
|
|
355
|
-
var
|
|
356
|
-
resetTryEntry(
|
|
349
|
+
catch: function (tryLoc) {
|
|
350
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
351
|
+
var entry = this.tryEntries[i];
|
|
352
|
+
if (entry.tryLoc === tryLoc) {
|
|
353
|
+
var record = entry.completion;
|
|
354
|
+
if ("throw" === record.type) {
|
|
355
|
+
var thrown = record.arg;
|
|
356
|
+
resetTryEntry(entry);
|
|
357
357
|
}
|
|
358
|
-
return
|
|
358
|
+
return thrown;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
361
|
throw new Error("illegal catch attempt");
|
|
362
362
|
},
|
|
363
|
-
delegateYield: function (
|
|
363
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
|
364
364
|
return this.delegate = {
|
|
365
|
-
iterator: values(
|
|
366
|
-
resultName:
|
|
367
|
-
nextLoc:
|
|
368
|
-
}, "next" === this.method && (this.arg =
|
|
369
|
-
}
|
|
370
|
-
},
|
|
371
|
-
}
|
|
372
|
-
function _toPrimitive(t, r) {
|
|
373
|
-
if ("object" != typeof t || !t) return t;
|
|
374
|
-
var e = t[Symbol.toPrimitive];
|
|
375
|
-
if (void 0 !== e) {
|
|
376
|
-
var i = e.call(t, r || "default");
|
|
377
|
-
if ("object" != typeof i) return i;
|
|
378
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
379
|
-
}
|
|
380
|
-
return ("string" === r ? String : Number)(t);
|
|
381
|
-
}
|
|
382
|
-
function _toPropertyKey(t) {
|
|
383
|
-
var i = _toPrimitive(t, "string");
|
|
384
|
-
return "symbol" == typeof i ? i : String(i);
|
|
365
|
+
iterator: values(iterable),
|
|
366
|
+
resultName: resultName,
|
|
367
|
+
nextLoc: nextLoc
|
|
368
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
369
|
+
}
|
|
370
|
+
}, exports;
|
|
385
371
|
}
|
|
386
|
-
function _typeof(
|
|
372
|
+
function _typeof(obj) {
|
|
387
373
|
"@babel/helpers - typeof";
|
|
388
374
|
|
|
389
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
390
|
-
return typeof
|
|
391
|
-
} : function (
|
|
392
|
-
return
|
|
393
|
-
}, _typeof(
|
|
375
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
376
|
+
return typeof obj;
|
|
377
|
+
} : function (obj) {
|
|
378
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
379
|
+
}, _typeof(obj);
|
|
394
380
|
}
|
|
395
381
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
396
382
|
try {
|
|
@@ -497,6 +483,20 @@ function _nonIterableSpread() {
|
|
|
497
483
|
function _nonIterableRest() {
|
|
498
484
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
499
485
|
}
|
|
486
|
+
function _toPrimitive(input, hint) {
|
|
487
|
+
if (typeof input !== "object" || input === null) return input;
|
|
488
|
+
var prim = input[Symbol.toPrimitive];
|
|
489
|
+
if (prim !== undefined) {
|
|
490
|
+
var res = prim.call(input, hint || "default");
|
|
491
|
+
if (typeof res !== "object") return res;
|
|
492
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
493
|
+
}
|
|
494
|
+
return (hint === "string" ? String : Number)(input);
|
|
495
|
+
}
|
|
496
|
+
function _toPropertyKey(arg) {
|
|
497
|
+
var key = _toPrimitive(arg, "string");
|
|
498
|
+
return typeof key === "symbol" ? key : String(key);
|
|
499
|
+
}
|
|
500
500
|
|
|
501
501
|
function ApaasCascader(props) {
|
|
502
502
|
return /*#__PURE__*/React__default['default'].createElement(antd.Cascader, _objectSpread2({
|