@freelog/tools-lib 0.1.127 → 0.1.130
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/service-API/activities.d.ts +40 -0
- package/dist/service-API/contracts.d.ts +8 -0
- package/dist/service-API/index.d.ts +2 -0
- package/dist/service-API/policies.d.ts +3 -0
- package/dist/service-API/resources.d.ts +1 -4
- package/dist/service-API/testQualifications.d.ts +4 -0
- package/dist/tools-lib.cjs.development.js +445 -693
- package/dist/tools-lib.cjs.development.js.map +1 -1
- package/dist/tools-lib.cjs.production.min.js +1 -1
- package/dist/tools-lib.cjs.production.min.js.map +1 -1
- package/dist/tools-lib.esm.js +445 -693
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/utils/linkTo.d.ts +9 -0
- package/package.json +66 -66
- package/src/i18n/I18nNext.ts +2 -0
- package/src/service-API/activities.ts +121 -0
- package/src/service-API/contracts.ts +17 -0
- package/src/service-API/index.ts +2 -0
- package/src/service-API/policies.ts +12 -6
- package/src/service-API/resources.ts +4 -4
- package/src/service-API/testQualifications.ts +14 -1
- package/src/utils/linkTo.ts +24 -0
|
@@ -14,832 +14,422 @@ var CryptoJS = require('crypto-js');
|
|
|
14
14
|
var i18next = _interopDefault(require('i18next'));
|
|
15
15
|
var Cookies = _interopDefault(require('js-cookie'));
|
|
16
16
|
|
|
17
|
-
function
|
|
18
|
-
|
|
19
|
-
var info = gen[key](arg);
|
|
20
|
-
var value = info.value;
|
|
21
|
-
} catch (error) {
|
|
22
|
-
reject(error);
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
if (info.done) {
|
|
27
|
-
resolve(value);
|
|
28
|
-
} else {
|
|
29
|
-
Promise.resolve(value).then(_next, _throw);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function _asyncToGenerator(fn) {
|
|
34
|
-
return function () {
|
|
35
|
-
var self = this,
|
|
36
|
-
args = arguments;
|
|
37
|
-
return new Promise(function (resolve, reject) {
|
|
38
|
-
var gen = fn.apply(self, args);
|
|
39
|
-
|
|
40
|
-
function _next(value) {
|
|
41
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
42
|
-
}
|
|
17
|
+
function _regeneratorRuntime() {
|
|
18
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
43
19
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
_next(undefined);
|
|
49
|
-
});
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
function _extends() {
|
|
54
|
-
_extends = Object.assign || function (target) {
|
|
55
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
56
|
-
var source = arguments[i];
|
|
57
|
-
|
|
58
|
-
for (var key in source) {
|
|
59
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
60
|
-
target[key] = source[key];
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
return target;
|
|
20
|
+
_regeneratorRuntime = function () {
|
|
21
|
+
return exports;
|
|
66
22
|
};
|
|
67
23
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
function
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
76
|
-
if (source == null) return {};
|
|
77
|
-
var target = {};
|
|
78
|
-
var sourceKeys = Object.keys(source);
|
|
79
|
-
var key, i;
|
|
80
|
-
|
|
81
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
82
|
-
key = sourceKeys[i];
|
|
83
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
84
|
-
target[key] = source[key];
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
return target;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
function createCommonjsModule(fn, module) {
|
|
91
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
var runtime_1 = createCommonjsModule(function (module) {
|
|
95
|
-
/**
|
|
96
|
-
* Copyright (c) 2014-present, Facebook, Inc.
|
|
97
|
-
*
|
|
98
|
-
* This source code is licensed under the MIT license found in the
|
|
99
|
-
* LICENSE file in the root directory of this source tree.
|
|
100
|
-
*/
|
|
101
|
-
|
|
102
|
-
var runtime = (function (exports) {
|
|
103
|
-
|
|
104
|
-
var Op = Object.prototype;
|
|
105
|
-
var hasOwn = Op.hasOwnProperty;
|
|
106
|
-
var undefined$1; // More compressible than void 0.
|
|
107
|
-
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
108
|
-
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
109
|
-
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
110
|
-
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
24
|
+
var exports = {},
|
|
25
|
+
Op = Object.prototype,
|
|
26
|
+
hasOwn = Op.hasOwnProperty,
|
|
27
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
28
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
29
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
30
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
111
31
|
|
|
112
32
|
function define(obj, key, value) {
|
|
113
|
-
Object.defineProperty(obj, key, {
|
|
33
|
+
return Object.defineProperty(obj, key, {
|
|
114
34
|
value: value,
|
|
115
|
-
enumerable:
|
|
116
|
-
configurable:
|
|
117
|
-
writable:
|
|
118
|
-
});
|
|
119
|
-
return obj[key];
|
|
35
|
+
enumerable: !0,
|
|
36
|
+
configurable: !0,
|
|
37
|
+
writable: !0
|
|
38
|
+
}), obj[key];
|
|
120
39
|
}
|
|
40
|
+
|
|
121
41
|
try {
|
|
122
|
-
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
123
42
|
define({}, "");
|
|
124
43
|
} catch (err) {
|
|
125
|
-
define = function(obj, key, value) {
|
|
44
|
+
define = function (obj, key, value) {
|
|
126
45
|
return obj[key] = value;
|
|
127
46
|
};
|
|
128
47
|
}
|
|
129
48
|
|
|
130
49
|
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
50
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
51
|
+
generator = Object.create(protoGenerator.prototype),
|
|
52
|
+
context = new Context(tryLocsList || []);
|
|
53
|
+
return generator._invoke = function (innerFn, self, context) {
|
|
54
|
+
var state = "suspendedStart";
|
|
55
|
+
return function (method, arg) {
|
|
56
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
57
|
+
|
|
58
|
+
if ("completed" === state) {
|
|
59
|
+
if ("throw" === method) throw arg;
|
|
60
|
+
return doneResult();
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
for (context.method = method, context.arg = arg;;) {
|
|
64
|
+
var delegate = context.delegate;
|
|
135
65
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
66
|
+
if (delegate) {
|
|
67
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
139
68
|
|
|
140
|
-
|
|
69
|
+
if (delegateResult) {
|
|
70
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
71
|
+
return delegateResult;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
76
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
77
|
+
context.dispatchException(context.arg);
|
|
78
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
79
|
+
state = "executing";
|
|
80
|
+
var record = tryCatch(innerFn, self, context);
|
|
81
|
+
|
|
82
|
+
if ("normal" === record.type) {
|
|
83
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
84
|
+
return {
|
|
85
|
+
value: record.arg,
|
|
86
|
+
done: context.done
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
}(innerFn, self, context), generator;
|
|
141
94
|
}
|
|
142
|
-
exports.wrap = wrap;
|
|
143
95
|
|
|
144
|
-
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
145
|
-
// record like context.tryEntries[i].completion. This interface could
|
|
146
|
-
// have been (and was previously) designed to take a closure to be
|
|
147
|
-
// invoked without arguments, but in all the cases we care about we
|
|
148
|
-
// already have an existing method we want to call, so there's no need
|
|
149
|
-
// to create a new function object. We can even get away with assuming
|
|
150
|
-
// the method takes exactly one argument, since that happens to be true
|
|
151
|
-
// in every case, so we don't have to touch the arguments object. The
|
|
152
|
-
// only additional allocation required is the completion record, which
|
|
153
|
-
// has a stable shape and so hopefully should be cheap to allocate.
|
|
154
96
|
function tryCatch(fn, obj, arg) {
|
|
155
97
|
try {
|
|
156
|
-
return {
|
|
98
|
+
return {
|
|
99
|
+
type: "normal",
|
|
100
|
+
arg: fn.call(obj, arg)
|
|
101
|
+
};
|
|
157
102
|
} catch (err) {
|
|
158
|
-
return {
|
|
103
|
+
return {
|
|
104
|
+
type: "throw",
|
|
105
|
+
arg: err
|
|
106
|
+
};
|
|
159
107
|
}
|
|
160
108
|
}
|
|
161
109
|
|
|
162
|
-
|
|
163
|
-
var GenStateSuspendedYield = "suspendedYield";
|
|
164
|
-
var GenStateExecuting = "executing";
|
|
165
|
-
var GenStateCompleted = "completed";
|
|
166
|
-
|
|
167
|
-
// Returning this object from the innerFn has the same effect as
|
|
168
|
-
// breaking out of the dispatch switch statement.
|
|
110
|
+
exports.wrap = wrap;
|
|
169
111
|
var ContinueSentinel = {};
|
|
170
112
|
|
|
171
|
-
// Dummy constructor functions that we use as the .constructor and
|
|
172
|
-
// .constructor.prototype properties for functions that return Generator
|
|
173
|
-
// objects. For full spec compliance, you may wish to configure your
|
|
174
|
-
// minifier not to mangle the names of these two functions.
|
|
175
113
|
function Generator() {}
|
|
114
|
+
|
|
176
115
|
function GeneratorFunction() {}
|
|
116
|
+
|
|
177
117
|
function GeneratorFunctionPrototype() {}
|
|
178
118
|
|
|
179
|
-
// This is a polyfill for %IteratorPrototype% for environments that
|
|
180
|
-
// don't natively support it.
|
|
181
119
|
var IteratorPrototype = {};
|
|
182
|
-
IteratorPrototype
|
|
120
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
183
121
|
return this;
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
NativeIteratorPrototype !== Op &&
|
|
190
|
-
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
191
|
-
// This environment has a native %IteratorPrototype%; use it instead
|
|
192
|
-
// of the polyfill.
|
|
193
|
-
IteratorPrototype = NativeIteratorPrototype;
|
|
194
|
-
}
|
|
122
|
+
});
|
|
123
|
+
var getProto = Object.getPrototypeOf,
|
|
124
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
125
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
126
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
195
127
|
|
|
196
|
-
var Gp = GeneratorFunctionPrototype.prototype =
|
|
197
|
-
Generator.prototype = Object.create(IteratorPrototype);
|
|
198
|
-
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
|
199
|
-
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
|
200
|
-
GeneratorFunction.displayName = define(
|
|
201
|
-
GeneratorFunctionPrototype,
|
|
202
|
-
toStringTagSymbol,
|
|
203
|
-
"GeneratorFunction"
|
|
204
|
-
);
|
|
205
|
-
|
|
206
|
-
// Helper for defining the .next, .throw, and .return methods of the
|
|
207
|
-
// Iterator interface in terms of a single ._invoke method.
|
|
208
128
|
function defineIteratorMethods(prototype) {
|
|
209
|
-
["next", "throw", "return"].forEach(function(method) {
|
|
210
|
-
define(prototype, method, function(arg) {
|
|
129
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
130
|
+
define(prototype, method, function (arg) {
|
|
211
131
|
return this._invoke(method, arg);
|
|
212
132
|
});
|
|
213
133
|
});
|
|
214
134
|
}
|
|
215
135
|
|
|
216
|
-
exports.isGeneratorFunction = function(genFun) {
|
|
217
|
-
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
218
|
-
return ctor
|
|
219
|
-
? ctor === GeneratorFunction ||
|
|
220
|
-
// For the native GeneratorFunction constructor, the best we can
|
|
221
|
-
// do is to check its .name property.
|
|
222
|
-
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
|
223
|
-
: false;
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
exports.mark = function(genFun) {
|
|
227
|
-
if (Object.setPrototypeOf) {
|
|
228
|
-
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
229
|
-
} else {
|
|
230
|
-
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
231
|
-
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
232
|
-
}
|
|
233
|
-
genFun.prototype = Object.create(Gp);
|
|
234
|
-
return genFun;
|
|
235
|
-
};
|
|
236
|
-
|
|
237
|
-
// Within the body of any async function, `await x` is transformed to
|
|
238
|
-
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
239
|
-
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
240
|
-
// meant to be awaited.
|
|
241
|
-
exports.awrap = function(arg) {
|
|
242
|
-
return { __await: arg };
|
|
243
|
-
};
|
|
244
|
-
|
|
245
136
|
function AsyncIterator(generator, PromiseImpl) {
|
|
246
137
|
function invoke(method, arg, resolve, reject) {
|
|
247
138
|
var record = tryCatch(generator[method], generator, arg);
|
|
248
|
-
if (record.type === "throw") {
|
|
249
|
-
reject(record.arg);
|
|
250
|
-
} else {
|
|
251
|
-
var result = record.arg;
|
|
252
|
-
var value = result.value;
|
|
253
|
-
if (value &&
|
|
254
|
-
typeof value === "object" &&
|
|
255
|
-
hasOwn.call(value, "__await")) {
|
|
256
|
-
return PromiseImpl.resolve(value.__await).then(function(value) {
|
|
257
|
-
invoke("next", value, resolve, reject);
|
|
258
|
-
}, function(err) {
|
|
259
|
-
invoke("throw", err, resolve, reject);
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
139
|
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
140
|
+
if ("throw" !== record.type) {
|
|
141
|
+
var result = record.arg,
|
|
142
|
+
value = result.value;
|
|
143
|
+
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
144
|
+
invoke("next", value, resolve, reject);
|
|
145
|
+
}, function (err) {
|
|
146
|
+
invoke("throw", err, resolve, reject);
|
|
147
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
148
|
+
result.value = unwrapped, resolve(result);
|
|
149
|
+
}, function (error) {
|
|
272
150
|
return invoke("throw", error, resolve, reject);
|
|
273
151
|
});
|
|
274
152
|
}
|
|
153
|
+
|
|
154
|
+
reject(record.arg);
|
|
275
155
|
}
|
|
276
156
|
|
|
277
157
|
var previousPromise;
|
|
278
158
|
|
|
279
|
-
function
|
|
159
|
+
this._invoke = function (method, arg) {
|
|
280
160
|
function callInvokeWithMethodAndArg() {
|
|
281
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
161
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
282
162
|
invoke(method, arg, resolve, reject);
|
|
283
163
|
});
|
|
284
164
|
}
|
|
285
165
|
|
|
286
|
-
return previousPromise =
|
|
287
|
-
// If enqueue has been called before, then we want to wait until
|
|
288
|
-
// all previous Promises have been resolved before calling invoke,
|
|
289
|
-
// so that results are always delivered in the correct order. If
|
|
290
|
-
// enqueue has not been called before, then it is important to
|
|
291
|
-
// call invoke immediately, without waiting on a callback to fire,
|
|
292
|
-
// so that the async generator function has the opportunity to do
|
|
293
|
-
// any necessary setup in a predictable way. This predictability
|
|
294
|
-
// is why the Promise constructor synchronously invokes its
|
|
295
|
-
// executor callback, and why async functions synchronously
|
|
296
|
-
// execute code before the first await. Since we implement simple
|
|
297
|
-
// async functions in terms of async generators, it is especially
|
|
298
|
-
// important to get this right, even though it requires care.
|
|
299
|
-
previousPromise ? previousPromise.then(
|
|
300
|
-
callInvokeWithMethodAndArg,
|
|
301
|
-
// Avoid propagating failures to Promises returned by later
|
|
302
|
-
// invocations of the iterator.
|
|
303
|
-
callInvokeWithMethodAndArg
|
|
304
|
-
) : callInvokeWithMethodAndArg();
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
// Define the unified helper method that is used to implement .next,
|
|
308
|
-
// .throw, and .return (see defineIteratorMethods).
|
|
309
|
-
this._invoke = enqueue;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
defineIteratorMethods(AsyncIterator.prototype);
|
|
313
|
-
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
|
|
314
|
-
return this;
|
|
315
|
-
};
|
|
316
|
-
exports.AsyncIterator = AsyncIterator;
|
|
317
|
-
|
|
318
|
-
// Note that simple async functions are implemented on top of
|
|
319
|
-
// AsyncIterator objects; they just return a Promise for the value of
|
|
320
|
-
// the final result produced by the iterator.
|
|
321
|
-
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
322
|
-
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
323
|
-
|
|
324
|
-
var iter = new AsyncIterator(
|
|
325
|
-
wrap(innerFn, outerFn, self, tryLocsList),
|
|
326
|
-
PromiseImpl
|
|
327
|
-
);
|
|
328
|
-
|
|
329
|
-
return exports.isGeneratorFunction(outerFn)
|
|
330
|
-
? iter // If outerFn is a generator, return the full iterator.
|
|
331
|
-
: iter.next().then(function(result) {
|
|
332
|
-
return result.done ? result.value : iter.next();
|
|
333
|
-
});
|
|
334
|
-
};
|
|
335
|
-
|
|
336
|
-
function makeInvokeMethod(innerFn, self, context) {
|
|
337
|
-
var state = GenStateSuspendedStart;
|
|
338
|
-
|
|
339
|
-
return function invoke(method, arg) {
|
|
340
|
-
if (state === GenStateExecuting) {
|
|
341
|
-
throw new Error("Generator is already running");
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
if (state === GenStateCompleted) {
|
|
345
|
-
if (method === "throw") {
|
|
346
|
-
throw arg;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
// Be forgiving, per 25.3.3.3.3 of the spec:
|
|
350
|
-
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
351
|
-
return doneResult();
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
context.method = method;
|
|
355
|
-
context.arg = arg;
|
|
356
|
-
|
|
357
|
-
while (true) {
|
|
358
|
-
var delegate = context.delegate;
|
|
359
|
-
if (delegate) {
|
|
360
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
361
|
-
if (delegateResult) {
|
|
362
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
363
|
-
return delegateResult;
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
if (context.method === "next") {
|
|
368
|
-
// Setting context._sent for legacy support of Babel's
|
|
369
|
-
// function.sent implementation.
|
|
370
|
-
context.sent = context._sent = context.arg;
|
|
371
|
-
|
|
372
|
-
} else if (context.method === "throw") {
|
|
373
|
-
if (state === GenStateSuspendedStart) {
|
|
374
|
-
state = GenStateCompleted;
|
|
375
|
-
throw context.arg;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
context.dispatchException(context.arg);
|
|
379
|
-
|
|
380
|
-
} else if (context.method === "return") {
|
|
381
|
-
context.abrupt("return", context.arg);
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
state = GenStateExecuting;
|
|
385
|
-
|
|
386
|
-
var record = tryCatch(innerFn, self, context);
|
|
387
|
-
if (record.type === "normal") {
|
|
388
|
-
// If an exception is thrown from innerFn, we leave state ===
|
|
389
|
-
// GenStateExecuting and loop back for another invocation.
|
|
390
|
-
state = context.done
|
|
391
|
-
? GenStateCompleted
|
|
392
|
-
: GenStateSuspendedYield;
|
|
393
|
-
|
|
394
|
-
if (record.arg === ContinueSentinel) {
|
|
395
|
-
continue;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
return {
|
|
399
|
-
value: record.arg,
|
|
400
|
-
done: context.done
|
|
401
|
-
};
|
|
402
|
-
|
|
403
|
-
} else if (record.type === "throw") {
|
|
404
|
-
state = GenStateCompleted;
|
|
405
|
-
// Dispatch the exception by looping back around to the
|
|
406
|
-
// context.dispatchException(context.arg) call above.
|
|
407
|
-
context.method = "throw";
|
|
408
|
-
context.arg = record.arg;
|
|
409
|
-
}
|
|
410
|
-
}
|
|
166
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
411
167
|
};
|
|
412
168
|
}
|
|
413
169
|
|
|
414
|
-
// Call delegate.iterator[context.method](context.arg) and handle the
|
|
415
|
-
// result, either by returning a { value, done } result from the
|
|
416
|
-
// delegate iterator, or by modifying context.method and context.arg,
|
|
417
|
-
// setting context.delegate to null, and returning the ContinueSentinel.
|
|
418
170
|
function maybeInvokeDelegate(delegate, context) {
|
|
419
171
|
var method = delegate.iterator[context.method];
|
|
420
|
-
if (method === undefined$1) {
|
|
421
|
-
// A .throw or .return when the delegate iterator has no .throw
|
|
422
|
-
// method always terminates the yield* loop.
|
|
423
|
-
context.delegate = null;
|
|
424
|
-
|
|
425
|
-
if (context.method === "throw") {
|
|
426
|
-
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
427
|
-
if (delegate.iterator["return"]) {
|
|
428
|
-
// If the delegate iterator has a return method, give it a
|
|
429
|
-
// chance to clean up.
|
|
430
|
-
context.method = "return";
|
|
431
|
-
context.arg = undefined$1;
|
|
432
|
-
maybeInvokeDelegate(delegate, context);
|
|
433
|
-
|
|
434
|
-
if (context.method === "throw") {
|
|
435
|
-
// If maybeInvokeDelegate(context) changed context.method from
|
|
436
|
-
// "return" to "throw", let that override the TypeError below.
|
|
437
|
-
return ContinueSentinel;
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
172
|
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
173
|
+
if (undefined === method) {
|
|
174
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
175
|
+
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
176
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
444
177
|
}
|
|
445
178
|
|
|
446
179
|
return ContinueSentinel;
|
|
447
180
|
}
|
|
448
181
|
|
|
449
182
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
450
|
-
|
|
451
|
-
if (record.type === "throw") {
|
|
452
|
-
context.method = "throw";
|
|
453
|
-
context.arg = record.arg;
|
|
454
|
-
context.delegate = null;
|
|
455
|
-
return ContinueSentinel;
|
|
456
|
-
}
|
|
457
|
-
|
|
183
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
458
184
|
var info = record.arg;
|
|
459
|
-
|
|
460
|
-
if (! info) {
|
|
461
|
-
context.method = "throw";
|
|
462
|
-
context.arg = new TypeError("iterator result is not an object");
|
|
463
|
-
context.delegate = null;
|
|
464
|
-
return ContinueSentinel;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
if (info.done) {
|
|
468
|
-
// Assign the result of the finished delegate to the temporary
|
|
469
|
-
// variable specified by delegate.resultName (see delegateYield).
|
|
470
|
-
context[delegate.resultName] = info.value;
|
|
471
|
-
|
|
472
|
-
// Resume execution at the desired location (see delegateYield).
|
|
473
|
-
context.next = delegate.nextLoc;
|
|
474
|
-
|
|
475
|
-
// If context.method was "throw" but the delegate handled the
|
|
476
|
-
// exception, let the outer generator proceed normally. If
|
|
477
|
-
// context.method was "next", forget context.arg since it has been
|
|
478
|
-
// "consumed" by the delegate iterator. If context.method was
|
|
479
|
-
// "return", allow the original .return call to continue in the
|
|
480
|
-
// outer generator.
|
|
481
|
-
if (context.method !== "return") {
|
|
482
|
-
context.method = "next";
|
|
483
|
-
context.arg = undefined$1;
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
} else {
|
|
487
|
-
// Re-yield the result returned by the delegate method.
|
|
488
|
-
return info;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
// The delegate iterator is finished, so forget it and continue with
|
|
492
|
-
// the outer generator.
|
|
493
|
-
context.delegate = null;
|
|
494
|
-
return ContinueSentinel;
|
|
185
|
+
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);
|
|
495
186
|
}
|
|
496
187
|
|
|
497
|
-
// Define Generator.prototype.{next,throw,return} in terms of the
|
|
498
|
-
// unified ._invoke helper method.
|
|
499
|
-
defineIteratorMethods(Gp);
|
|
500
|
-
|
|
501
|
-
define(Gp, toStringTagSymbol, "Generator");
|
|
502
|
-
|
|
503
|
-
// A Generator should always return itself as the iterator object when the
|
|
504
|
-
// @@iterator function is called on it. Some browsers' implementations of the
|
|
505
|
-
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
506
|
-
// object to not be returned from this call. This ensures that doesn't happen.
|
|
507
|
-
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
508
|
-
Gp[iteratorSymbol] = function() {
|
|
509
|
-
return this;
|
|
510
|
-
};
|
|
511
|
-
|
|
512
|
-
Gp.toString = function() {
|
|
513
|
-
return "[object Generator]";
|
|
514
|
-
};
|
|
515
|
-
|
|
516
188
|
function pushTryEntry(locs) {
|
|
517
|
-
var entry = {
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
if (2 in locs) {
|
|
524
|
-
entry.finallyLoc = locs[2];
|
|
525
|
-
entry.afterLoc = locs[3];
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
this.tryEntries.push(entry);
|
|
189
|
+
var entry = {
|
|
190
|
+
tryLoc: locs[0]
|
|
191
|
+
};
|
|
192
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
529
193
|
}
|
|
530
194
|
|
|
531
195
|
function resetTryEntry(entry) {
|
|
532
196
|
var record = entry.completion || {};
|
|
533
|
-
record.type = "normal";
|
|
534
|
-
delete record.arg;
|
|
535
|
-
entry.completion = record;
|
|
197
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
536
198
|
}
|
|
537
199
|
|
|
538
200
|
function Context(tryLocsList) {
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
this.tryEntries = [{ tryLoc: "root" }];
|
|
543
|
-
tryLocsList.forEach(pushTryEntry, this);
|
|
544
|
-
this.reset(true);
|
|
201
|
+
this.tryEntries = [{
|
|
202
|
+
tryLoc: "root"
|
|
203
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
545
204
|
}
|
|
546
205
|
|
|
547
|
-
exports.keys = function(object) {
|
|
548
|
-
var keys = [];
|
|
549
|
-
for (var key in object) {
|
|
550
|
-
keys.push(key);
|
|
551
|
-
}
|
|
552
|
-
keys.reverse();
|
|
553
|
-
|
|
554
|
-
// Rather than returning an object with a next method, we keep
|
|
555
|
-
// things simple and return the next function itself.
|
|
556
|
-
return function next() {
|
|
557
|
-
while (keys.length) {
|
|
558
|
-
var key = keys.pop();
|
|
559
|
-
if (key in object) {
|
|
560
|
-
next.value = key;
|
|
561
|
-
next.done = false;
|
|
562
|
-
return next;
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
// To avoid creating an additional object, we just hang the .value
|
|
567
|
-
// and .done properties off the next function object itself. This
|
|
568
|
-
// also ensures that the minifier will not anonymize the function.
|
|
569
|
-
next.done = true;
|
|
570
|
-
return next;
|
|
571
|
-
};
|
|
572
|
-
};
|
|
573
|
-
|
|
574
206
|
function values(iterable) {
|
|
575
207
|
if (iterable) {
|
|
576
208
|
var iteratorMethod = iterable[iteratorSymbol];
|
|
577
|
-
if (iteratorMethod)
|
|
578
|
-
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
if (typeof iterable.next === "function") {
|
|
582
|
-
return iterable;
|
|
583
|
-
}
|
|
209
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
210
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
584
211
|
|
|
585
212
|
if (!isNaN(iterable.length)) {
|
|
586
|
-
var i = -1,
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
next.value = iterable[i];
|
|
590
|
-
next.done = false;
|
|
591
|
-
return next;
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
next.value = undefined$1;
|
|
596
|
-
next.done = true;
|
|
213
|
+
var i = -1,
|
|
214
|
+
next = function next() {
|
|
215
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
597
216
|
|
|
598
|
-
return next;
|
|
217
|
+
return next.value = undefined, next.done = !0, next;
|
|
599
218
|
};
|
|
600
219
|
|
|
601
220
|
return next.next = next;
|
|
602
221
|
}
|
|
603
222
|
}
|
|
604
223
|
|
|
605
|
-
|
|
606
|
-
|
|
224
|
+
return {
|
|
225
|
+
next: doneResult
|
|
226
|
+
};
|
|
607
227
|
}
|
|
608
|
-
exports.values = values;
|
|
609
228
|
|
|
610
229
|
function doneResult() {
|
|
611
|
-
return {
|
|
230
|
+
return {
|
|
231
|
+
value: undefined,
|
|
232
|
+
done: !0
|
|
233
|
+
};
|
|
612
234
|
}
|
|
613
235
|
|
|
614
|
-
|
|
615
|
-
constructor
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
this[name] = undefined$1;
|
|
638
|
-
}
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
},
|
|
236
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
237
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
238
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
239
|
+
}, exports.mark = function (genFun) {
|
|
240
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
241
|
+
}, exports.awrap = function (arg) {
|
|
242
|
+
return {
|
|
243
|
+
__await: arg
|
|
244
|
+
};
|
|
245
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
246
|
+
return this;
|
|
247
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
248
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
249
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
250
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
251
|
+
return result.done ? result.value : iter.next();
|
|
252
|
+
});
|
|
253
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
254
|
+
return this;
|
|
255
|
+
}), define(Gp, "toString", function () {
|
|
256
|
+
return "[object Generator]";
|
|
257
|
+
}), exports.keys = function (object) {
|
|
258
|
+
var keys = [];
|
|
642
259
|
|
|
643
|
-
|
|
644
|
-
this.done = true;
|
|
260
|
+
for (var key in object) keys.push(key);
|
|
645
261
|
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
262
|
+
return keys.reverse(), function next() {
|
|
263
|
+
for (; keys.length;) {
|
|
264
|
+
var key = keys.pop();
|
|
265
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
650
266
|
}
|
|
651
267
|
|
|
268
|
+
return next.done = !0, next;
|
|
269
|
+
};
|
|
270
|
+
}, exports.values = values, Context.prototype = {
|
|
271
|
+
constructor: Context,
|
|
272
|
+
reset: function (skipTempReset) {
|
|
273
|
+
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);
|
|
274
|
+
},
|
|
275
|
+
stop: function () {
|
|
276
|
+
this.done = !0;
|
|
277
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
278
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
652
279
|
return this.rval;
|
|
653
280
|
},
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
if (this.done) {
|
|
657
|
-
throw exception;
|
|
658
|
-
}
|
|
659
|
-
|
|
281
|
+
dispatchException: function (exception) {
|
|
282
|
+
if (this.done) throw exception;
|
|
660
283
|
var context = this;
|
|
661
|
-
function handle(loc, caught) {
|
|
662
|
-
record.type = "throw";
|
|
663
|
-
record.arg = exception;
|
|
664
|
-
context.next = loc;
|
|
665
|
-
|
|
666
|
-
if (caught) {
|
|
667
|
-
// If the dispatched exception was caught by a catch block,
|
|
668
|
-
// then let that catch block handle the exception normally.
|
|
669
|
-
context.method = "next";
|
|
670
|
-
context.arg = undefined$1;
|
|
671
|
-
}
|
|
672
284
|
|
|
673
|
-
|
|
285
|
+
function handle(loc, caught) {
|
|
286
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
674
287
|
}
|
|
675
288
|
|
|
676
289
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
677
|
-
var entry = this.tryEntries[i]
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
if (entry.tryLoc === "root") {
|
|
681
|
-
// Exception thrown outside of any try block that could handle
|
|
682
|
-
// it, so set the completion value of the entire function to
|
|
683
|
-
// throw the exception.
|
|
684
|
-
return handle("end");
|
|
685
|
-
}
|
|
290
|
+
var entry = this.tryEntries[i],
|
|
291
|
+
record = entry.completion;
|
|
292
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
686
293
|
|
|
687
294
|
if (entry.tryLoc <= this.prev) {
|
|
688
|
-
var hasCatch = hasOwn.call(entry, "catchLoc")
|
|
689
|
-
|
|
295
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
296
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
690
297
|
|
|
691
298
|
if (hasCatch && hasFinally) {
|
|
692
|
-
if (this.prev < entry.catchLoc)
|
|
693
|
-
|
|
694
|
-
} else if (this.prev < entry.finallyLoc) {
|
|
695
|
-
return handle(entry.finallyLoc);
|
|
696
|
-
}
|
|
697
|
-
|
|
299
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
300
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
698
301
|
} else if (hasCatch) {
|
|
699
|
-
if (this.prev < entry.catchLoc)
|
|
700
|
-
return handle(entry.catchLoc, true);
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
} else if (hasFinally) {
|
|
704
|
-
if (this.prev < entry.finallyLoc) {
|
|
705
|
-
return handle(entry.finallyLoc);
|
|
706
|
-
}
|
|
707
|
-
|
|
302
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
708
303
|
} else {
|
|
709
|
-
throw new Error("try statement without catch or finally");
|
|
304
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
305
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
710
306
|
}
|
|
711
307
|
}
|
|
712
308
|
}
|
|
713
309
|
},
|
|
714
|
-
|
|
715
|
-
abrupt: function(type, arg) {
|
|
310
|
+
abrupt: function (type, arg) {
|
|
716
311
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
717
312
|
var entry = this.tryEntries[i];
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
this.prev < entry.finallyLoc) {
|
|
313
|
+
|
|
314
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
721
315
|
var finallyEntry = entry;
|
|
722
316
|
break;
|
|
723
317
|
}
|
|
724
318
|
}
|
|
725
319
|
|
|
726
|
-
|
|
727
|
-
(type === "break" ||
|
|
728
|
-
type === "continue") &&
|
|
729
|
-
finallyEntry.tryLoc <= arg &&
|
|
730
|
-
arg <= finallyEntry.finallyLoc) {
|
|
731
|
-
// Ignore the finally entry if control is not jumping to a
|
|
732
|
-
// location outside the try/catch block.
|
|
733
|
-
finallyEntry = null;
|
|
734
|
-
}
|
|
735
|
-
|
|
320
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
736
321
|
var record = finallyEntry ? finallyEntry.completion : {};
|
|
737
|
-
record.type = type;
|
|
738
|
-
record.arg = arg;
|
|
739
|
-
|
|
740
|
-
if (finallyEntry) {
|
|
741
|
-
this.method = "next";
|
|
742
|
-
this.next = finallyEntry.finallyLoc;
|
|
743
|
-
return ContinueSentinel;
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
return this.complete(record);
|
|
322
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
747
323
|
},
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
throw record.arg;
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
if (record.type === "break" ||
|
|
755
|
-
record.type === "continue") {
|
|
756
|
-
this.next = record.arg;
|
|
757
|
-
} else if (record.type === "return") {
|
|
758
|
-
this.rval = this.arg = record.arg;
|
|
759
|
-
this.method = "return";
|
|
760
|
-
this.next = "end";
|
|
761
|
-
} else if (record.type === "normal" && afterLoc) {
|
|
762
|
-
this.next = afterLoc;
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
return ContinueSentinel;
|
|
324
|
+
complete: function (record, afterLoc) {
|
|
325
|
+
if ("throw" === record.type) throw record.arg;
|
|
326
|
+
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;
|
|
766
327
|
},
|
|
767
|
-
|
|
768
|
-
finish: function(finallyLoc) {
|
|
328
|
+
finish: function (finallyLoc) {
|
|
769
329
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
770
330
|
var entry = this.tryEntries[i];
|
|
771
|
-
if (entry.finallyLoc === finallyLoc)
|
|
772
|
-
this.complete(entry.completion, entry.afterLoc);
|
|
773
|
-
resetTryEntry(entry);
|
|
774
|
-
return ContinueSentinel;
|
|
775
|
-
}
|
|
331
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
776
332
|
}
|
|
777
333
|
},
|
|
778
|
-
|
|
779
|
-
"catch": function(tryLoc) {
|
|
334
|
+
catch: function (tryLoc) {
|
|
780
335
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
781
336
|
var entry = this.tryEntries[i];
|
|
337
|
+
|
|
782
338
|
if (entry.tryLoc === tryLoc) {
|
|
783
339
|
var record = entry.completion;
|
|
784
|
-
|
|
340
|
+
|
|
341
|
+
if ("throw" === record.type) {
|
|
785
342
|
var thrown = record.arg;
|
|
786
343
|
resetTryEntry(entry);
|
|
787
344
|
}
|
|
345
|
+
|
|
788
346
|
return thrown;
|
|
789
347
|
}
|
|
790
348
|
}
|
|
791
349
|
|
|
792
|
-
// The context.catch method must only be called with a location
|
|
793
|
-
// argument that corresponds to a known catch block.
|
|
794
350
|
throw new Error("illegal catch attempt");
|
|
795
351
|
},
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
this.delegate = {
|
|
352
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
|
353
|
+
return this.delegate = {
|
|
799
354
|
iterator: values(iterable),
|
|
800
355
|
resultName: resultName,
|
|
801
356
|
nextLoc: nextLoc
|
|
802
|
-
};
|
|
357
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
358
|
+
}
|
|
359
|
+
}, exports;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
363
|
+
try {
|
|
364
|
+
var info = gen[key](arg);
|
|
365
|
+
var value = info.value;
|
|
366
|
+
} catch (error) {
|
|
367
|
+
reject(error);
|
|
368
|
+
return;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
if (info.done) {
|
|
372
|
+
resolve(value);
|
|
373
|
+
} else {
|
|
374
|
+
Promise.resolve(value).then(_next, _throw);
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
function _asyncToGenerator(fn) {
|
|
379
|
+
return function () {
|
|
380
|
+
var self = this,
|
|
381
|
+
args = arguments;
|
|
382
|
+
return new Promise(function (resolve, reject) {
|
|
383
|
+
var gen = fn.apply(self, args);
|
|
803
384
|
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
// accidentally pass it on to the delegate.
|
|
807
|
-
this.arg = undefined$1;
|
|
385
|
+
function _next(value) {
|
|
386
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
808
387
|
}
|
|
809
388
|
|
|
810
|
-
|
|
389
|
+
function _throw(err) {
|
|
390
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
_next(undefined);
|
|
394
|
+
});
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
function _extends() {
|
|
399
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
400
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
401
|
+
var source = arguments[i];
|
|
402
|
+
|
|
403
|
+
for (var key in source) {
|
|
404
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
405
|
+
target[key] = source[key];
|
|
406
|
+
}
|
|
407
|
+
}
|
|
811
408
|
}
|
|
409
|
+
|
|
410
|
+
return target;
|
|
812
411
|
};
|
|
412
|
+
return _extends.apply(this, arguments);
|
|
413
|
+
}
|
|
813
414
|
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
));
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
// This module should not be running in strict mode, so the above
|
|
832
|
-
// assignment should always work unless something is misconfigured. Just
|
|
833
|
-
// in case runtime.js accidentally runs in strict mode, we can escape
|
|
834
|
-
// strict mode using a global Function call. This could conceivably fail
|
|
835
|
-
// if a Content Security Policy forbids using Function, but in that case
|
|
836
|
-
// the proper solution is to fix the accidental strict mode problem. If
|
|
837
|
-
// you've misconfigured your bundler to force strict mode and applied a
|
|
838
|
-
// CSP to forbid Function, and you're not willing to fix either of those
|
|
839
|
-
// problems, please detail your unique predicament in a GitHub issue.
|
|
840
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
|
415
|
+
function _objectDestructuringEmpty(obj) {
|
|
416
|
+
if (obj == null) throw new TypeError("Cannot destructure undefined");
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
420
|
+
if (source == null) return {};
|
|
421
|
+
var target = {};
|
|
422
|
+
var sourceKeys = Object.keys(source);
|
|
423
|
+
var key, i;
|
|
424
|
+
|
|
425
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
426
|
+
key = sourceKeys[i];
|
|
427
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
428
|
+
target[key] = source[key];
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
return target;
|
|
841
432
|
}
|
|
842
|
-
});
|
|
843
433
|
|
|
844
434
|
var _require = /*#__PURE__*/require('@freelog/resource-policy-lang'),
|
|
845
435
|
compile = _require.compile;
|
|
@@ -902,9 +492,9 @@ function policyCodeTranslationToText(_x, _x2) {
|
|
|
902
492
|
*/
|
|
903
493
|
|
|
904
494
|
function _policyCodeTranslationToText() {
|
|
905
|
-
_policyCodeTranslationToText = _asyncToGenerator( /*#__PURE__*/
|
|
495
|
+
_policyCodeTranslationToText = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(code, targetType) {
|
|
906
496
|
var result, contract, rrr;
|
|
907
|
-
return
|
|
497
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
908
498
|
while (1) {
|
|
909
499
|
switch (_context.prev = _context.next) {
|
|
910
500
|
case 0:
|
|
@@ -1248,20 +838,41 @@ function wallet(_temp18) {
|
|
|
1248
838
|
|
|
1249
839
|
return "/logged/wallet";
|
|
1250
840
|
}
|
|
1251
|
-
function
|
|
841
|
+
function reward(_temp19) {
|
|
1252
842
|
var _ref35 = _temp19 === void 0 ? {} : _temp19;
|
|
1253
843
|
|
|
1254
844
|
_objectDestructuringEmpty(_ref35);
|
|
1255
845
|
|
|
1256
|
-
return "/logged/
|
|
846
|
+
return "/logged/reward";
|
|
1257
847
|
}
|
|
1258
|
-
function
|
|
848
|
+
function contract(_temp20) {
|
|
1259
849
|
var _ref36 = _temp20 === void 0 ? {} : _temp20;
|
|
1260
850
|
|
|
1261
851
|
_objectDestructuringEmpty(_ref36);
|
|
1262
852
|
|
|
853
|
+
return "/logged/contract";
|
|
854
|
+
}
|
|
855
|
+
function setting(_temp21) {
|
|
856
|
+
var _ref37 = _temp21 === void 0 ? {} : _temp21;
|
|
857
|
+
|
|
858
|
+
_objectDestructuringEmpty(_ref37);
|
|
859
|
+
|
|
1263
860
|
return "/logged/setting";
|
|
1264
861
|
}
|
|
862
|
+
function binding(_temp22) {
|
|
863
|
+
var _ref38 = _temp22 === void 0 ? {} : _temp22;
|
|
864
|
+
|
|
865
|
+
_objectDestructuringEmpty(_ref38);
|
|
866
|
+
|
|
867
|
+
return "/logged/binding";
|
|
868
|
+
}
|
|
869
|
+
function resultBindingSuccess(_temp23) {
|
|
870
|
+
var _ref39 = _temp23 === void 0 ? {} : _temp23;
|
|
871
|
+
|
|
872
|
+
_objectDestructuringEmpty(_ref39);
|
|
873
|
+
|
|
874
|
+
return "/result/binding";
|
|
875
|
+
}
|
|
1265
876
|
/************** user End ******************************************************/
|
|
1266
877
|
|
|
1267
878
|
function handleQuery(query) {
|
|
@@ -1317,8 +928,11 @@ var LinkTo = {
|
|
|
1317
928
|
retrievePayPassword: retrievePayPassword,
|
|
1318
929
|
userFreeze: userFreeze,
|
|
1319
930
|
wallet: wallet,
|
|
931
|
+
reward: reward,
|
|
1320
932
|
contract: contract,
|
|
1321
|
-
setting: setting
|
|
933
|
+
setting: setting,
|
|
934
|
+
binding: binding,
|
|
935
|
+
resultBindingSuccess: resultBindingSuccess
|
|
1322
936
|
};
|
|
1323
937
|
|
|
1324
938
|
// export const apiHost = `${window.location.protocol}//qi.${(window.location.host.match(/(?<=\.).*/) || [''])[0]}`;
|
|
@@ -1921,7 +1535,10 @@ function update(params) {
|
|
|
1921
1535
|
url: "/v2/resources/" + params.resourceId,
|
|
1922
1536
|
data: params
|
|
1923
1537
|
});
|
|
1924
|
-
}
|
|
1538
|
+
} // interface ListReturnType extends CommonReturn {
|
|
1539
|
+
// data: IResourceInfo[];
|
|
1540
|
+
// }
|
|
1541
|
+
|
|
1925
1542
|
function list(params) {
|
|
1926
1543
|
return FUtil.Request({
|
|
1927
1544
|
method: 'GET',
|
|
@@ -2586,13 +2203,21 @@ function transitionRecords(_ref2) {
|
|
|
2586
2203
|
params: params
|
|
2587
2204
|
});
|
|
2588
2205
|
}
|
|
2206
|
+
function contractsSignCount(params) {
|
|
2207
|
+
return FUtil.Request({
|
|
2208
|
+
method: 'GET',
|
|
2209
|
+
url: "/v2/contracts/signCount",
|
|
2210
|
+
params: params
|
|
2211
|
+
});
|
|
2212
|
+
}
|
|
2589
2213
|
|
|
2590
2214
|
var Contract = {
|
|
2591
2215
|
__proto__: null,
|
|
2592
2216
|
contractDetails: contractDetails,
|
|
2593
2217
|
contracts: contracts,
|
|
2594
2218
|
batchContracts: batchContracts,
|
|
2595
|
-
transitionRecords: transitionRecords
|
|
2219
|
+
transitionRecords: transitionRecords,
|
|
2220
|
+
contractsSignCount: contractsSignCount
|
|
2596
2221
|
};
|
|
2597
2222
|
|
|
2598
2223
|
var _excluded$7 = ["accountId"],
|
|
@@ -2771,6 +2396,77 @@ function getNodeTaskInfo(params) {
|
|
|
2771
2396
|
params: params
|
|
2772
2397
|
});
|
|
2773
2398
|
}
|
|
2399
|
+
function getRewardRecordInfo(params) {
|
|
2400
|
+
return FUtil.Request({
|
|
2401
|
+
method: 'GET',
|
|
2402
|
+
url: "/v2/activities/facade/getRewardRecordInfo",
|
|
2403
|
+
params: params
|
|
2404
|
+
});
|
|
2405
|
+
}
|
|
2406
|
+
function pushMessageTask(params) {
|
|
2407
|
+
return FUtil.Request({
|
|
2408
|
+
method: 'POST',
|
|
2409
|
+
url: "/v2/activities/facade/pushMessage4Task",
|
|
2410
|
+
data: params
|
|
2411
|
+
});
|
|
2412
|
+
}
|
|
2413
|
+
function getCoinAccount(params) {
|
|
2414
|
+
return FUtil.Request({
|
|
2415
|
+
method: 'GET',
|
|
2416
|
+
url: "/v2/activities/coin/account/find4Client",
|
|
2417
|
+
params: params
|
|
2418
|
+
});
|
|
2419
|
+
}
|
|
2420
|
+
function withdrawCoinAccount(params) {
|
|
2421
|
+
return FUtil.Request({
|
|
2422
|
+
method: 'POST',
|
|
2423
|
+
url: "/v2/activities/coin/account/cash4Client",
|
|
2424
|
+
data: params
|
|
2425
|
+
});
|
|
2426
|
+
}
|
|
2427
|
+
function getCoinAccountRecords(params) {
|
|
2428
|
+
return FUtil.Request({
|
|
2429
|
+
method: 'GET',
|
|
2430
|
+
url: "/v2/activities/coin/record/list4Client",
|
|
2431
|
+
params: params
|
|
2432
|
+
});
|
|
2433
|
+
}
|
|
2434
|
+
function getWechatOfficialAccountInfo(params) {
|
|
2435
|
+
if (params === void 0) {
|
|
2436
|
+
params = {};
|
|
2437
|
+
}
|
|
2438
|
+
|
|
2439
|
+
return FUtil.Request({
|
|
2440
|
+
method: 'GET',
|
|
2441
|
+
url: "/v2/extensions/wechat/getRelationship4Client",
|
|
2442
|
+
params: params
|
|
2443
|
+
});
|
|
2444
|
+
}
|
|
2445
|
+
function lotteryList(params) {
|
|
2446
|
+
if (params === void 0) {
|
|
2447
|
+
params = {};
|
|
2448
|
+
}
|
|
2449
|
+
|
|
2450
|
+
return FUtil.Request({
|
|
2451
|
+
method: 'GET',
|
|
2452
|
+
url: "/v2/activities/lottery/resource/list",
|
|
2453
|
+
params: params
|
|
2454
|
+
});
|
|
2455
|
+
}
|
|
2456
|
+
function lotteryShow(params) {
|
|
2457
|
+
return FUtil.Request({
|
|
2458
|
+
method: 'GET',
|
|
2459
|
+
url: "/v2/activities/lottery/resource/show",
|
|
2460
|
+
params: params
|
|
2461
|
+
});
|
|
2462
|
+
}
|
|
2463
|
+
function listInviteFriendInfos(params) {
|
|
2464
|
+
return FUtil.Request({
|
|
2465
|
+
method: 'POST',
|
|
2466
|
+
url: "/v2/activities/facade/listInviteFriendInfos",
|
|
2467
|
+
data: params
|
|
2468
|
+
});
|
|
2469
|
+
}
|
|
2774
2470
|
|
|
2775
2471
|
var Activity = {
|
|
2776
2472
|
__proto__: null,
|
|
@@ -2780,7 +2476,16 @@ var Activity = {
|
|
|
2780
2476
|
adsDetails: adsDetails,
|
|
2781
2477
|
getBaseTaskInfo: getBaseTaskInfo,
|
|
2782
2478
|
getResourceTaskInfo: getResourceTaskInfo,
|
|
2783
|
-
getNodeTaskInfo: getNodeTaskInfo
|
|
2479
|
+
getNodeTaskInfo: getNodeTaskInfo,
|
|
2480
|
+
getRewardRecordInfo: getRewardRecordInfo,
|
|
2481
|
+
pushMessageTask: pushMessageTask,
|
|
2482
|
+
getCoinAccount: getCoinAccount,
|
|
2483
|
+
withdrawCoinAccount: withdrawCoinAccount,
|
|
2484
|
+
getCoinAccountRecords: getCoinAccountRecords,
|
|
2485
|
+
getWechatOfficialAccountInfo: getWechatOfficialAccountInfo,
|
|
2486
|
+
lotteryList: lotteryList,
|
|
2487
|
+
lotteryShow: lotteryShow,
|
|
2488
|
+
listInviteFriendInfos: listInviteFriendInfos
|
|
2784
2489
|
};
|
|
2785
2490
|
|
|
2786
2491
|
var _excluded$9 = ["recordId"];
|
|
@@ -2843,7 +2548,16 @@ function getBetaApply2(_ref7) {
|
|
|
2843
2548
|
return FUtil.Request({
|
|
2844
2549
|
method: 'GET',
|
|
2845
2550
|
url: "/v2/testQualifications/beta/apply/" + recordId,
|
|
2846
|
-
|
|
2551
|
+
params: params
|
|
2552
|
+
});
|
|
2553
|
+
}
|
|
2554
|
+
function invitees(_ref8) {
|
|
2555
|
+
var params = _extends({}, _ref8);
|
|
2556
|
+
|
|
2557
|
+
return FUtil.Request({
|
|
2558
|
+
method: 'GET',
|
|
2559
|
+
url: "/v2/testQualifications/beta/codes/invitees",
|
|
2560
|
+
params: params
|
|
2847
2561
|
});
|
|
2848
2562
|
}
|
|
2849
2563
|
|
|
@@ -2855,7 +2569,8 @@ var TestQualification = {
|
|
|
2855
2569
|
usedRecords: usedRecords,
|
|
2856
2570
|
betaApply: betaApply,
|
|
2857
2571
|
getBetaApply1: getBetaApply1,
|
|
2858
|
-
getBetaApply2: getBetaApply2
|
|
2572
|
+
getBetaApply2: getBetaApply2,
|
|
2573
|
+
invitees: invitees
|
|
2859
2574
|
};
|
|
2860
2575
|
|
|
2861
2576
|
function transactionsCommon(params) {
|
|
@@ -2900,6 +2615,39 @@ var I18n = {
|
|
|
2900
2615
|
configsList: configsList
|
|
2901
2616
|
};
|
|
2902
2617
|
|
|
2618
|
+
function policies(params) {
|
|
2619
|
+
return FUtil.Request({
|
|
2620
|
+
method: 'GET',
|
|
2621
|
+
url: "/v2/policies",
|
|
2622
|
+
params: params
|
|
2623
|
+
});
|
|
2624
|
+
}
|
|
2625
|
+
function policiesList(params) {
|
|
2626
|
+
return FUtil.Request({
|
|
2627
|
+
method: 'GET',
|
|
2628
|
+
url: "/v2/policies/list",
|
|
2629
|
+
params: params
|
|
2630
|
+
});
|
|
2631
|
+
}
|
|
2632
|
+
function policyTemplates(params) {
|
|
2633
|
+
if (params === void 0) {
|
|
2634
|
+
params = {};
|
|
2635
|
+
}
|
|
2636
|
+
|
|
2637
|
+
return FUtil.Request({
|
|
2638
|
+
method: 'GET',
|
|
2639
|
+
url: "/v2/translate/translate-config/list4Client",
|
|
2640
|
+
params: params
|
|
2641
|
+
});
|
|
2642
|
+
}
|
|
2643
|
+
|
|
2644
|
+
var Policy = {
|
|
2645
|
+
__proto__: null,
|
|
2646
|
+
policies: policies,
|
|
2647
|
+
policiesList: policiesList,
|
|
2648
|
+
policyTemplates: policyTemplates
|
|
2649
|
+
};
|
|
2650
|
+
|
|
2903
2651
|
/**
|
|
2904
2652
|
* 根据 File 获取 SHA1 Hash 字符串
|
|
2905
2653
|
* @param file
|
|
@@ -3007,10 +2755,10 @@ function getFilesSha1Info(_x, _x2) {
|
|
|
3007
2755
|
}
|
|
3008
2756
|
|
|
3009
2757
|
function _getFilesSha1Info() {
|
|
3010
|
-
_getFilesSha1Info = _asyncToGenerator( /*#__PURE__*/
|
|
2758
|
+
_getFilesSha1Info = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref, cdPartially) {
|
|
3011
2759
|
var sha1, delay, needHandleSha1, allData, _yield$Storage$filesL, data, finishedInfo;
|
|
3012
2760
|
|
|
3013
|
-
return
|
|
2761
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
3014
2762
|
while (1) {
|
|
3015
2763
|
switch (_context.prev = _context.next) {
|
|
3016
2764
|
case 0:
|
|
@@ -3118,6 +2866,7 @@ var FServiceAPI = {
|
|
|
3118
2866
|
TestQualification: TestQualification,
|
|
3119
2867
|
Statistic: Statistic,
|
|
3120
2868
|
I18n: I18n,
|
|
2869
|
+
Policy: Policy,
|
|
3121
2870
|
recombination: recombination
|
|
3122
2871
|
};
|
|
3123
2872
|
|
|
@@ -3235,10 +2984,10 @@ function request(_x, _x2) {
|
|
|
3235
2984
|
// }
|
|
3236
2985
|
|
|
3237
2986
|
function _request() {
|
|
3238
|
-
_request = _asyncToGenerator( /*#__PURE__*/
|
|
2987
|
+
_request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(config, _temp) {
|
|
3239
2988
|
var _ref, _ref$noRedirect, noRedirect, _ref$noErrorAlert, noErrorAlert, result;
|
|
3240
2989
|
|
|
3241
|
-
return
|
|
2990
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
3242
2991
|
while (1) {
|
|
3243
2992
|
switch (_context.prev = _context.next) {
|
|
3244
2993
|
case 0:
|
|
@@ -3320,11 +3069,11 @@ var I18nNext = /*#__PURE__*/function () {
|
|
|
3320
3069
|
var _proto = I18nNext.prototype;
|
|
3321
3070
|
|
|
3322
3071
|
_proto.ready = /*#__PURE__*/function () {
|
|
3323
|
-
var _ready = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
3072
|
+
var _ready = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
3324
3073
|
var _this = this;
|
|
3325
3074
|
|
|
3326
3075
|
var exc, handleTasks, promise;
|
|
3327
|
-
return
|
|
3076
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
3328
3077
|
while (1) {
|
|
3329
3078
|
switch (_context2.prev = _context2.next) {
|
|
3330
3079
|
case 0:
|
|
@@ -3337,8 +3086,8 @@ var I18nNext = /*#__PURE__*/function () {
|
|
|
3337
3086
|
};
|
|
3338
3087
|
|
|
3339
3088
|
handleTasks = /*#__PURE__*/function () {
|
|
3340
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
3341
|
-
return
|
|
3089
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
3090
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
3342
3091
|
while (1) {
|
|
3343
3092
|
switch (_context.prev = _context.next) {
|
|
3344
3093
|
case 0:
|
|
@@ -3424,9 +3173,9 @@ var I18nNext = /*#__PURE__*/function () {
|
|
|
3424
3173
|
};
|
|
3425
3174
|
|
|
3426
3175
|
_proto._handleData = /*#__PURE__*/function () {
|
|
3427
|
-
var _handleData2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
3176
|
+
var _handleData2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
3428
3177
|
var lng, resource, i18nextResources;
|
|
3429
|
-
return
|
|
3178
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
3430
3179
|
while (1) {
|
|
3431
3180
|
switch (_context3.prev = _context3.next) {
|
|
3432
3181
|
case 0:
|
|
@@ -3468,6 +3217,9 @@ var I18nNext = /*#__PURE__*/function () {
|
|
|
3468
3217
|
});
|
|
3469
3218
|
|
|
3470
3219
|
case 12:
|
|
3220
|
+
this._loadingData = 'End';
|
|
3221
|
+
|
|
3222
|
+
case 13:
|
|
3471
3223
|
case "end":
|
|
3472
3224
|
return _context3.stop();
|
|
3473
3225
|
}
|
|
@@ -3483,10 +3235,10 @@ var I18nNext = /*#__PURE__*/function () {
|
|
|
3483
3235
|
}();
|
|
3484
3236
|
|
|
3485
3237
|
_proto._fetchData = /*#__PURE__*/function () {
|
|
3486
|
-
var _fetchData2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
3238
|
+
var _fetchData2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
3487
3239
|
var res, en_US, zh_CN, _i, _Object$entries, _Object$entries$_i, key, value, result;
|
|
3488
3240
|
|
|
3489
|
-
return
|
|
3241
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
3490
3242
|
while (1) {
|
|
3491
3243
|
switch (_context4.prev = _context4.next) {
|
|
3492
3244
|
case 0:
|