oro-sdk-apis 1.44.0 → 1.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/models/practice.d.ts +23 -4
- package/dist/oro-sdk-apis.cjs.development.js +818 -399
- package/dist/oro-sdk-apis.cjs.development.js.map +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk-apis.esm.js +818 -399
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/models/practice.ts +30 -4
package/dist/oro-sdk-apis.esm.js
CHANGED
@@ -13,501 +13,918 @@ function hashToBase64String(value) {
|
|
13
13
|
return Buffer.from(sha256().update(value).digest('hex'), 'hex').toString('base64');
|
14
14
|
}
|
15
15
|
|
16
|
-
function
|
17
|
-
|
16
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
17
|
+
try {
|
18
|
+
var info = gen[key](arg);
|
19
|
+
var value = info.value;
|
20
|
+
} catch (error) {
|
21
|
+
reject(error);
|
22
|
+
return;
|
23
|
+
}
|
24
|
+
|
25
|
+
if (info.done) {
|
26
|
+
resolve(value);
|
27
|
+
} else {
|
28
|
+
Promise.resolve(value).then(_next, _throw);
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
function _asyncToGenerator(fn) {
|
33
|
+
return function () {
|
34
|
+
var self = this,
|
35
|
+
args = arguments;
|
36
|
+
return new Promise(function (resolve, reject) {
|
37
|
+
var gen = fn.apply(self, args);
|
38
|
+
|
39
|
+
function _next(value) {
|
40
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
41
|
+
}
|
42
|
+
|
43
|
+
function _throw(err) {
|
44
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
45
|
+
}
|
46
|
+
|
47
|
+
_next(undefined);
|
48
|
+
});
|
49
|
+
};
|
50
|
+
}
|
51
|
+
|
52
|
+
function _extends() {
|
53
|
+
_extends = Object.assign || function (target) {
|
54
|
+
for (var i = 1; i < arguments.length; i++) {
|
55
|
+
var source = arguments[i];
|
56
|
+
|
57
|
+
for (var key in source) {
|
58
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
59
|
+
target[key] = source[key];
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
return target;
|
65
|
+
};
|
66
|
+
|
67
|
+
return _extends.apply(this, arguments);
|
68
|
+
}
|
69
|
+
|
70
|
+
function _inheritsLoose(subClass, superClass) {
|
71
|
+
subClass.prototype = Object.create(superClass.prototype);
|
72
|
+
subClass.prototype.constructor = subClass;
|
73
|
+
|
74
|
+
_setPrototypeOf(subClass, superClass);
|
75
|
+
}
|
18
76
|
|
19
|
-
|
20
|
-
|
77
|
+
function _getPrototypeOf(o) {
|
78
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
79
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
21
80
|
};
|
81
|
+
return _getPrototypeOf(o);
|
82
|
+
}
|
22
83
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
84
|
+
function _setPrototypeOf(o, p) {
|
85
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
86
|
+
o.__proto__ = p;
|
87
|
+
return o;
|
88
|
+
};
|
89
|
+
|
90
|
+
return _setPrototypeOf(o, p);
|
91
|
+
}
|
92
|
+
|
93
|
+
function _isNativeReflectConstruct() {
|
94
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
95
|
+
if (Reflect.construct.sham) return false;
|
96
|
+
if (typeof Proxy === "function") return true;
|
97
|
+
|
98
|
+
try {
|
99
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
100
|
+
return true;
|
101
|
+
} catch (e) {
|
102
|
+
return false;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
function _construct(Parent, args, Class) {
|
107
|
+
if (_isNativeReflectConstruct()) {
|
108
|
+
_construct = Reflect.construct;
|
109
|
+
} else {
|
110
|
+
_construct = function _construct(Parent, args, Class) {
|
111
|
+
var a = [null];
|
112
|
+
a.push.apply(a, args);
|
113
|
+
var Constructor = Function.bind.apply(Parent, a);
|
114
|
+
var instance = new Constructor();
|
115
|
+
if (Class) _setPrototypeOf(instance, Class.prototype);
|
116
|
+
return instance;
|
117
|
+
};
|
118
|
+
}
|
119
|
+
|
120
|
+
return _construct.apply(null, arguments);
|
121
|
+
}
|
122
|
+
|
123
|
+
function _isNativeFunction(fn) {
|
124
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
125
|
+
}
|
126
|
+
|
127
|
+
function _wrapNativeSuper(Class) {
|
128
|
+
var _cache = typeof Map === "function" ? new Map() : undefined;
|
129
|
+
|
130
|
+
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
131
|
+
if (Class === null || !_isNativeFunction(Class)) return Class;
|
132
|
+
|
133
|
+
if (typeof Class !== "function") {
|
134
|
+
throw new TypeError("Super expression must either be null or a function");
|
135
|
+
}
|
136
|
+
|
137
|
+
if (typeof _cache !== "undefined") {
|
138
|
+
if (_cache.has(Class)) return _cache.get(Class);
|
139
|
+
|
140
|
+
_cache.set(Class, Wrapper);
|
141
|
+
}
|
142
|
+
|
143
|
+
function Wrapper() {
|
144
|
+
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
145
|
+
}
|
146
|
+
|
147
|
+
Wrapper.prototype = Object.create(Class.prototype, {
|
148
|
+
constructor: {
|
149
|
+
value: Wrapper,
|
150
|
+
enumerable: false,
|
151
|
+
writable: true,
|
152
|
+
configurable: true
|
153
|
+
}
|
154
|
+
});
|
155
|
+
return _setPrototypeOf(Wrapper, Class);
|
156
|
+
};
|
157
|
+
|
158
|
+
return _wrapNativeSuper(Class);
|
159
|
+
}
|
160
|
+
|
161
|
+
function _assertThisInitialized(self) {
|
162
|
+
if (self === void 0) {
|
163
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
164
|
+
}
|
165
|
+
|
166
|
+
return self;
|
167
|
+
}
|
168
|
+
|
169
|
+
function createCommonjsModule(fn, module) {
|
170
|
+
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
171
|
+
}
|
172
|
+
|
173
|
+
var runtime_1 = createCommonjsModule(function (module) {
|
174
|
+
/**
|
175
|
+
* Copyright (c) 2014-present, Facebook, Inc.
|
176
|
+
*
|
177
|
+
* This source code is licensed under the MIT license found in the
|
178
|
+
* LICENSE file in the root directory of this source tree.
|
179
|
+
*/
|
180
|
+
|
181
|
+
var runtime = (function (exports) {
|
182
|
+
|
183
|
+
var Op = Object.prototype;
|
184
|
+
var hasOwn = Op.hasOwnProperty;
|
185
|
+
var undefined$1; // More compressible than void 0.
|
186
|
+
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
187
|
+
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
188
|
+
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
189
|
+
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
30
190
|
|
31
191
|
function define(obj, key, value) {
|
32
|
-
|
192
|
+
Object.defineProperty(obj, key, {
|
33
193
|
value: value,
|
34
|
-
enumerable:
|
35
|
-
configurable:
|
36
|
-
writable:
|
37
|
-
})
|
194
|
+
enumerable: true,
|
195
|
+
configurable: true,
|
196
|
+
writable: true
|
197
|
+
});
|
198
|
+
return obj[key];
|
38
199
|
}
|
39
|
-
|
40
200
|
try {
|
201
|
+
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
41
202
|
define({}, "");
|
42
203
|
} catch (err) {
|
43
|
-
define = function
|
204
|
+
define = function(obj, key, value) {
|
44
205
|
return obj[key] = value;
|
45
206
|
};
|
46
207
|
}
|
47
208
|
|
48
209
|
function wrap(innerFn, outerFn, self, tryLocsList) {
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
var state = "suspendedStart";
|
54
|
-
return function (method, arg) {
|
55
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
56
|
-
|
57
|
-
if ("completed" === state) {
|
58
|
-
if ("throw" === method) throw arg;
|
59
|
-
return doneResult();
|
60
|
-
}
|
61
|
-
|
62
|
-
for (context.method = method, context.arg = arg;;) {
|
63
|
-
var delegate = context.delegate;
|
64
|
-
|
65
|
-
if (delegate) {
|
66
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
67
|
-
|
68
|
-
if (delegateResult) {
|
69
|
-
if (delegateResult === ContinueSentinel) continue;
|
70
|
-
return delegateResult;
|
71
|
-
}
|
72
|
-
}
|
210
|
+
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
211
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
212
|
+
var generator = Object.create(protoGenerator.prototype);
|
213
|
+
var context = new Context(tryLocsList || []);
|
73
214
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
78
|
-
state = "executing";
|
79
|
-
var record = tryCatch(innerFn, self, context);
|
80
|
-
|
81
|
-
if ("normal" === record.type) {
|
82
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
83
|
-
return {
|
84
|
-
value: record.arg,
|
85
|
-
done: context.done
|
86
|
-
};
|
87
|
-
}
|
215
|
+
// The ._invoke method unifies the implementations of the .next,
|
216
|
+
// .throw, and .return methods.
|
217
|
+
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
88
218
|
|
89
|
-
|
90
|
-
}
|
91
|
-
};
|
92
|
-
}(innerFn, self, context), generator;
|
219
|
+
return generator;
|
93
220
|
}
|
221
|
+
exports.wrap = wrap;
|
94
222
|
|
223
|
+
// Try/catch helper to minimize deoptimizations. Returns a completion
|
224
|
+
// record like context.tryEntries[i].completion. This interface could
|
225
|
+
// have been (and was previously) designed to take a closure to be
|
226
|
+
// invoked without arguments, but in all the cases we care about we
|
227
|
+
// already have an existing method we want to call, so there's no need
|
228
|
+
// to create a new function object. We can even get away with assuming
|
229
|
+
// the method takes exactly one argument, since that happens to be true
|
230
|
+
// in every case, so we don't have to touch the arguments object. The
|
231
|
+
// only additional allocation required is the completion record, which
|
232
|
+
// has a stable shape and so hopefully should be cheap to allocate.
|
95
233
|
function tryCatch(fn, obj, arg) {
|
96
234
|
try {
|
97
|
-
return {
|
98
|
-
type: "normal",
|
99
|
-
arg: fn.call(obj, arg)
|
100
|
-
};
|
235
|
+
return { type: "normal", arg: fn.call(obj, arg) };
|
101
236
|
} catch (err) {
|
102
|
-
return {
|
103
|
-
type: "throw",
|
104
|
-
arg: err
|
105
|
-
};
|
237
|
+
return { type: "throw", arg: err };
|
106
238
|
}
|
107
239
|
}
|
108
240
|
|
109
|
-
|
241
|
+
var GenStateSuspendedStart = "suspendedStart";
|
242
|
+
var GenStateSuspendedYield = "suspendedYield";
|
243
|
+
var GenStateExecuting = "executing";
|
244
|
+
var GenStateCompleted = "completed";
|
245
|
+
|
246
|
+
// Returning this object from the innerFn has the same effect as
|
247
|
+
// breaking out of the dispatch switch statement.
|
110
248
|
var ContinueSentinel = {};
|
111
249
|
|
250
|
+
// Dummy constructor functions that we use as the .constructor and
|
251
|
+
// .constructor.prototype properties for functions that return Generator
|
252
|
+
// objects. For full spec compliance, you may wish to configure your
|
253
|
+
// minifier not to mangle the names of these two functions.
|
112
254
|
function Generator() {}
|
113
|
-
|
114
255
|
function GeneratorFunction() {}
|
115
|
-
|
116
256
|
function GeneratorFunctionPrototype() {}
|
117
257
|
|
258
|
+
// This is a polyfill for %IteratorPrototype% for environments that
|
259
|
+
// don't natively support it.
|
118
260
|
var IteratorPrototype = {};
|
119
261
|
define(IteratorPrototype, iteratorSymbol, function () {
|
120
262
|
return this;
|
121
263
|
});
|
122
|
-
var getProto = Object.getPrototypeOf,
|
123
|
-
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
124
|
-
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
125
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
126
264
|
|
265
|
+
var getProto = Object.getPrototypeOf;
|
266
|
+
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
267
|
+
if (NativeIteratorPrototype &&
|
268
|
+
NativeIteratorPrototype !== Op &&
|
269
|
+
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
270
|
+
// This environment has a native %IteratorPrototype%; use it instead
|
271
|
+
// of the polyfill.
|
272
|
+
IteratorPrototype = NativeIteratorPrototype;
|
273
|
+
}
|
274
|
+
|
275
|
+
var Gp = GeneratorFunctionPrototype.prototype =
|
276
|
+
Generator.prototype = Object.create(IteratorPrototype);
|
277
|
+
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
278
|
+
define(Gp, "constructor", GeneratorFunctionPrototype);
|
279
|
+
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
280
|
+
GeneratorFunction.displayName = define(
|
281
|
+
GeneratorFunctionPrototype,
|
282
|
+
toStringTagSymbol,
|
283
|
+
"GeneratorFunction"
|
284
|
+
);
|
285
|
+
|
286
|
+
// Helper for defining the .next, .throw, and .return methods of the
|
287
|
+
// Iterator interface in terms of a single ._invoke method.
|
127
288
|
function defineIteratorMethods(prototype) {
|
128
|
-
["next", "throw", "return"].forEach(function
|
129
|
-
define(prototype, method, function
|
289
|
+
["next", "throw", "return"].forEach(function(method) {
|
290
|
+
define(prototype, method, function(arg) {
|
130
291
|
return this._invoke(method, arg);
|
131
292
|
});
|
132
293
|
});
|
133
294
|
}
|
134
295
|
|
296
|
+
exports.isGeneratorFunction = function(genFun) {
|
297
|
+
var ctor = typeof genFun === "function" && genFun.constructor;
|
298
|
+
return ctor
|
299
|
+
? ctor === GeneratorFunction ||
|
300
|
+
// For the native GeneratorFunction constructor, the best we can
|
301
|
+
// do is to check its .name property.
|
302
|
+
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
303
|
+
: false;
|
304
|
+
};
|
305
|
+
|
306
|
+
exports.mark = function(genFun) {
|
307
|
+
if (Object.setPrototypeOf) {
|
308
|
+
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
309
|
+
} else {
|
310
|
+
genFun.__proto__ = GeneratorFunctionPrototype;
|
311
|
+
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
312
|
+
}
|
313
|
+
genFun.prototype = Object.create(Gp);
|
314
|
+
return genFun;
|
315
|
+
};
|
316
|
+
|
317
|
+
// Within the body of any async function, `await x` is transformed to
|
318
|
+
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
319
|
+
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
320
|
+
// meant to be awaited.
|
321
|
+
exports.awrap = function(arg) {
|
322
|
+
return { __await: arg };
|
323
|
+
};
|
324
|
+
|
135
325
|
function AsyncIterator(generator, PromiseImpl) {
|
136
326
|
function invoke(method, arg, resolve, reject) {
|
137
327
|
var record = tryCatch(generator[method], generator, arg);
|
328
|
+
if (record.type === "throw") {
|
329
|
+
reject(record.arg);
|
330
|
+
} else {
|
331
|
+
var result = record.arg;
|
332
|
+
var value = result.value;
|
333
|
+
if (value &&
|
334
|
+
typeof value === "object" &&
|
335
|
+
hasOwn.call(value, "__await")) {
|
336
|
+
return PromiseImpl.resolve(value.__await).then(function(value) {
|
337
|
+
invoke("next", value, resolve, reject);
|
338
|
+
}, function(err) {
|
339
|
+
invoke("throw", err, resolve, reject);
|
340
|
+
});
|
341
|
+
}
|
138
342
|
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
}, function (error) {
|
343
|
+
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
344
|
+
// When a yielded Promise is resolved, its final value becomes
|
345
|
+
// the .value of the Promise<{value,done}> result for the
|
346
|
+
// current iteration.
|
347
|
+
result.value = unwrapped;
|
348
|
+
resolve(result);
|
349
|
+
}, function(error) {
|
350
|
+
// If a rejected Promise was yielded, throw the rejection back
|
351
|
+
// into the async generator function so it can be handled there.
|
149
352
|
return invoke("throw", error, resolve, reject);
|
150
353
|
});
|
151
354
|
}
|
152
|
-
|
153
|
-
reject(record.arg);
|
154
355
|
}
|
155
356
|
|
156
357
|
var previousPromise;
|
157
358
|
|
158
|
-
|
359
|
+
function enqueue(method, arg) {
|
159
360
|
function callInvokeWithMethodAndArg() {
|
160
|
-
return new PromiseImpl(function
|
361
|
+
return new PromiseImpl(function(resolve, reject) {
|
161
362
|
invoke(method, arg, resolve, reject);
|
162
363
|
});
|
163
364
|
}
|
164
365
|
|
165
|
-
return previousPromise =
|
366
|
+
return previousPromise =
|
367
|
+
// If enqueue has been called before, then we want to wait until
|
368
|
+
// all previous Promises have been resolved before calling invoke,
|
369
|
+
// so that results are always delivered in the correct order. If
|
370
|
+
// enqueue has not been called before, then it is important to
|
371
|
+
// call invoke immediately, without waiting on a callback to fire,
|
372
|
+
// so that the async generator function has the opportunity to do
|
373
|
+
// any necessary setup in a predictable way. This predictability
|
374
|
+
// is why the Promise constructor synchronously invokes its
|
375
|
+
// executor callback, and why async functions synchronously
|
376
|
+
// execute code before the first await. Since we implement simple
|
377
|
+
// async functions in terms of async generators, it is especially
|
378
|
+
// important to get this right, even though it requires care.
|
379
|
+
previousPromise ? previousPromise.then(
|
380
|
+
callInvokeWithMethodAndArg,
|
381
|
+
// Avoid propagating failures to Promises returned by later
|
382
|
+
// invocations of the iterator.
|
383
|
+
callInvokeWithMethodAndArg
|
384
|
+
) : callInvokeWithMethodAndArg();
|
385
|
+
}
|
386
|
+
|
387
|
+
// Define the unified helper method that is used to implement .next,
|
388
|
+
// .throw, and .return (see defineIteratorMethods).
|
389
|
+
this._invoke = enqueue;
|
390
|
+
}
|
391
|
+
|
392
|
+
defineIteratorMethods(AsyncIterator.prototype);
|
393
|
+
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
394
|
+
return this;
|
395
|
+
});
|
396
|
+
exports.AsyncIterator = AsyncIterator;
|
397
|
+
|
398
|
+
// Note that simple async functions are implemented on top of
|
399
|
+
// AsyncIterator objects; they just return a Promise for the value of
|
400
|
+
// the final result produced by the iterator.
|
401
|
+
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
402
|
+
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
403
|
+
|
404
|
+
var iter = new AsyncIterator(
|
405
|
+
wrap(innerFn, outerFn, self, tryLocsList),
|
406
|
+
PromiseImpl
|
407
|
+
);
|
408
|
+
|
409
|
+
return exports.isGeneratorFunction(outerFn)
|
410
|
+
? iter // If outerFn is a generator, return the full iterator.
|
411
|
+
: iter.next().then(function(result) {
|
412
|
+
return result.done ? result.value : iter.next();
|
413
|
+
});
|
414
|
+
};
|
415
|
+
|
416
|
+
function makeInvokeMethod(innerFn, self, context) {
|
417
|
+
var state = GenStateSuspendedStart;
|
418
|
+
|
419
|
+
return function invoke(method, arg) {
|
420
|
+
if (state === GenStateExecuting) {
|
421
|
+
throw new Error("Generator is already running");
|
422
|
+
}
|
423
|
+
|
424
|
+
if (state === GenStateCompleted) {
|
425
|
+
if (method === "throw") {
|
426
|
+
throw arg;
|
427
|
+
}
|
428
|
+
|
429
|
+
// Be forgiving, per 25.3.3.3.3 of the spec:
|
430
|
+
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
431
|
+
return doneResult();
|
432
|
+
}
|
433
|
+
|
434
|
+
context.method = method;
|
435
|
+
context.arg = arg;
|
436
|
+
|
437
|
+
while (true) {
|
438
|
+
var delegate = context.delegate;
|
439
|
+
if (delegate) {
|
440
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
441
|
+
if (delegateResult) {
|
442
|
+
if (delegateResult === ContinueSentinel) continue;
|
443
|
+
return delegateResult;
|
444
|
+
}
|
445
|
+
}
|
446
|
+
|
447
|
+
if (context.method === "next") {
|
448
|
+
// Setting context._sent for legacy support of Babel's
|
449
|
+
// function.sent implementation.
|
450
|
+
context.sent = context._sent = context.arg;
|
451
|
+
|
452
|
+
} else if (context.method === "throw") {
|
453
|
+
if (state === GenStateSuspendedStart) {
|
454
|
+
state = GenStateCompleted;
|
455
|
+
throw context.arg;
|
456
|
+
}
|
457
|
+
|
458
|
+
context.dispatchException(context.arg);
|
459
|
+
|
460
|
+
} else if (context.method === "return") {
|
461
|
+
context.abrupt("return", context.arg);
|
462
|
+
}
|
463
|
+
|
464
|
+
state = GenStateExecuting;
|
465
|
+
|
466
|
+
var record = tryCatch(innerFn, self, context);
|
467
|
+
if (record.type === "normal") {
|
468
|
+
// If an exception is thrown from innerFn, we leave state ===
|
469
|
+
// GenStateExecuting and loop back for another invocation.
|
470
|
+
state = context.done
|
471
|
+
? GenStateCompleted
|
472
|
+
: GenStateSuspendedYield;
|
473
|
+
|
474
|
+
if (record.arg === ContinueSentinel) {
|
475
|
+
continue;
|
476
|
+
}
|
477
|
+
|
478
|
+
return {
|
479
|
+
value: record.arg,
|
480
|
+
done: context.done
|
481
|
+
};
|
482
|
+
|
483
|
+
} else if (record.type === "throw") {
|
484
|
+
state = GenStateCompleted;
|
485
|
+
// Dispatch the exception by looping back around to the
|
486
|
+
// context.dispatchException(context.arg) call above.
|
487
|
+
context.method = "throw";
|
488
|
+
context.arg = record.arg;
|
489
|
+
}
|
490
|
+
}
|
166
491
|
};
|
167
492
|
}
|
168
493
|
|
494
|
+
// Call delegate.iterator[context.method](context.arg) and handle the
|
495
|
+
// result, either by returning a { value, done } result from the
|
496
|
+
// delegate iterator, or by modifying context.method and context.arg,
|
497
|
+
// setting context.delegate to null, and returning the ContinueSentinel.
|
169
498
|
function maybeInvokeDelegate(delegate, context) {
|
170
499
|
var method = delegate.iterator[context.method];
|
500
|
+
if (method === undefined$1) {
|
501
|
+
// A .throw or .return when the delegate iterator has no .throw
|
502
|
+
// method always terminates the yield* loop.
|
503
|
+
context.delegate = null;
|
504
|
+
|
505
|
+
if (context.method === "throw") {
|
506
|
+
// Note: ["return"] must be used for ES3 parsing compatibility.
|
507
|
+
if (delegate.iterator["return"]) {
|
508
|
+
// If the delegate iterator has a return method, give it a
|
509
|
+
// chance to clean up.
|
510
|
+
context.method = "return";
|
511
|
+
context.arg = undefined$1;
|
512
|
+
maybeInvokeDelegate(delegate, context);
|
513
|
+
|
514
|
+
if (context.method === "throw") {
|
515
|
+
// If maybeInvokeDelegate(context) changed context.method from
|
516
|
+
// "return" to "throw", let that override the TypeError below.
|
517
|
+
return ContinueSentinel;
|
518
|
+
}
|
519
|
+
}
|
171
520
|
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
521
|
+
context.method = "throw";
|
522
|
+
context.arg = new TypeError(
|
523
|
+
"The iterator does not provide a 'throw' method");
|
176
524
|
}
|
177
525
|
|
178
526
|
return ContinueSentinel;
|
179
527
|
}
|
180
528
|
|
181
529
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
182
|
-
|
530
|
+
|
531
|
+
if (record.type === "throw") {
|
532
|
+
context.method = "throw";
|
533
|
+
context.arg = record.arg;
|
534
|
+
context.delegate = null;
|
535
|
+
return ContinueSentinel;
|
536
|
+
}
|
537
|
+
|
183
538
|
var info = record.arg;
|
184
|
-
|
539
|
+
|
540
|
+
if (! info) {
|
541
|
+
context.method = "throw";
|
542
|
+
context.arg = new TypeError("iterator result is not an object");
|
543
|
+
context.delegate = null;
|
544
|
+
return ContinueSentinel;
|
545
|
+
}
|
546
|
+
|
547
|
+
if (info.done) {
|
548
|
+
// Assign the result of the finished delegate to the temporary
|
549
|
+
// variable specified by delegate.resultName (see delegateYield).
|
550
|
+
context[delegate.resultName] = info.value;
|
551
|
+
|
552
|
+
// Resume execution at the desired location (see delegateYield).
|
553
|
+
context.next = delegate.nextLoc;
|
554
|
+
|
555
|
+
// If context.method was "throw" but the delegate handled the
|
556
|
+
// exception, let the outer generator proceed normally. If
|
557
|
+
// context.method was "next", forget context.arg since it has been
|
558
|
+
// "consumed" by the delegate iterator. If context.method was
|
559
|
+
// "return", allow the original .return call to continue in the
|
560
|
+
// outer generator.
|
561
|
+
if (context.method !== "return") {
|
562
|
+
context.method = "next";
|
563
|
+
context.arg = undefined$1;
|
564
|
+
}
|
565
|
+
|
566
|
+
} else {
|
567
|
+
// Re-yield the result returned by the delegate method.
|
568
|
+
return info;
|
569
|
+
}
|
570
|
+
|
571
|
+
// The delegate iterator is finished, so forget it and continue with
|
572
|
+
// the outer generator.
|
573
|
+
context.delegate = null;
|
574
|
+
return ContinueSentinel;
|
185
575
|
}
|
186
576
|
|
577
|
+
// Define Generator.prototype.{next,throw,return} in terms of the
|
578
|
+
// unified ._invoke helper method.
|
579
|
+
defineIteratorMethods(Gp);
|
580
|
+
|
581
|
+
define(Gp, toStringTagSymbol, "Generator");
|
582
|
+
|
583
|
+
// A Generator should always return itself as the iterator object when the
|
584
|
+
// @@iterator function is called on it. Some browsers' implementations of the
|
585
|
+
// iterator prototype chain incorrectly implement this, causing the Generator
|
586
|
+
// object to not be returned from this call. This ensures that doesn't happen.
|
587
|
+
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
588
|
+
define(Gp, iteratorSymbol, function() {
|
589
|
+
return this;
|
590
|
+
});
|
591
|
+
|
592
|
+
define(Gp, "toString", function() {
|
593
|
+
return "[object Generator]";
|
594
|
+
});
|
595
|
+
|
187
596
|
function pushTryEntry(locs) {
|
188
|
-
var entry = {
|
189
|
-
|
190
|
-
|
191
|
-
|
597
|
+
var entry = { tryLoc: locs[0] };
|
598
|
+
|
599
|
+
if (1 in locs) {
|
600
|
+
entry.catchLoc = locs[1];
|
601
|
+
}
|
602
|
+
|
603
|
+
if (2 in locs) {
|
604
|
+
entry.finallyLoc = locs[2];
|
605
|
+
entry.afterLoc = locs[3];
|
606
|
+
}
|
607
|
+
|
608
|
+
this.tryEntries.push(entry);
|
192
609
|
}
|
193
610
|
|
194
611
|
function resetTryEntry(entry) {
|
195
612
|
var record = entry.completion || {};
|
196
|
-
record.type = "normal"
|
613
|
+
record.type = "normal";
|
614
|
+
delete record.arg;
|
615
|
+
entry.completion = record;
|
197
616
|
}
|
198
617
|
|
199
618
|
function Context(tryLocsList) {
|
200
|
-
|
201
|
-
|
202
|
-
|
619
|
+
// The root entry object (effectively a try statement without a catch
|
620
|
+
// or a finally block) gives us a place to store values thrown from
|
621
|
+
// locations where there is no enclosing try statement.
|
622
|
+
this.tryEntries = [{ tryLoc: "root" }];
|
623
|
+
tryLocsList.forEach(pushTryEntry, this);
|
624
|
+
this.reset(true);
|
203
625
|
}
|
204
626
|
|
627
|
+
exports.keys = function(object) {
|
628
|
+
var keys = [];
|
629
|
+
for (var key in object) {
|
630
|
+
keys.push(key);
|
631
|
+
}
|
632
|
+
keys.reverse();
|
633
|
+
|
634
|
+
// Rather than returning an object with a next method, we keep
|
635
|
+
// things simple and return the next function itself.
|
636
|
+
return function next() {
|
637
|
+
while (keys.length) {
|
638
|
+
var key = keys.pop();
|
639
|
+
if (key in object) {
|
640
|
+
next.value = key;
|
641
|
+
next.done = false;
|
642
|
+
return next;
|
643
|
+
}
|
644
|
+
}
|
645
|
+
|
646
|
+
// To avoid creating an additional object, we just hang the .value
|
647
|
+
// and .done properties off the next function object itself. This
|
648
|
+
// also ensures that the minifier will not anonymize the function.
|
649
|
+
next.done = true;
|
650
|
+
return next;
|
651
|
+
};
|
652
|
+
};
|
653
|
+
|
205
654
|
function values(iterable) {
|
206
655
|
if (iterable) {
|
207
656
|
var iteratorMethod = iterable[iteratorSymbol];
|
208
|
-
if (iteratorMethod)
|
209
|
-
|
657
|
+
if (iteratorMethod) {
|
658
|
+
return iteratorMethod.call(iterable);
|
659
|
+
}
|
660
|
+
|
661
|
+
if (typeof iterable.next === "function") {
|
662
|
+
return iterable;
|
663
|
+
}
|
210
664
|
|
211
665
|
if (!isNaN(iterable.length)) {
|
212
|
-
var i = -1,
|
213
|
-
|
214
|
-
|
666
|
+
var i = -1, next = function next() {
|
667
|
+
while (++i < iterable.length) {
|
668
|
+
if (hasOwn.call(iterable, i)) {
|
669
|
+
next.value = iterable[i];
|
670
|
+
next.done = false;
|
671
|
+
return next;
|
672
|
+
}
|
673
|
+
}
|
674
|
+
|
675
|
+
next.value = undefined$1;
|
676
|
+
next.done = true;
|
215
677
|
|
216
|
-
return next
|
678
|
+
return next;
|
217
679
|
};
|
218
680
|
|
219
681
|
return next.next = next;
|
220
682
|
}
|
221
683
|
}
|
222
684
|
|
223
|
-
|
224
|
-
|
225
|
-
};
|
685
|
+
// Return an iterator with no values.
|
686
|
+
return { next: doneResult };
|
226
687
|
}
|
688
|
+
exports.values = values;
|
227
689
|
|
228
690
|
function doneResult() {
|
229
|
-
return {
|
230
|
-
value: undefined,
|
231
|
-
done: !0
|
232
|
-
};
|
691
|
+
return { value: undefined$1, done: true };
|
233
692
|
}
|
234
693
|
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
694
|
+
Context.prototype = {
|
695
|
+
constructor: Context,
|
696
|
+
|
697
|
+
reset: function(skipTempReset) {
|
698
|
+
this.prev = 0;
|
699
|
+
this.next = 0;
|
700
|
+
// Resetting context._sent for legacy support of Babel's
|
701
|
+
// function.sent implementation.
|
702
|
+
this.sent = this._sent = undefined$1;
|
703
|
+
this.done = false;
|
704
|
+
this.delegate = null;
|
705
|
+
|
706
|
+
this.method = "next";
|
707
|
+
this.arg = undefined$1;
|
708
|
+
|
709
|
+
this.tryEntries.forEach(resetTryEntry);
|
710
|
+
|
711
|
+
if (!skipTempReset) {
|
712
|
+
for (var name in this) {
|
713
|
+
// Not sure about the optimal order of these conditions:
|
714
|
+
if (name.charAt(0) === "t" &&
|
715
|
+
hasOwn.call(this, name) &&
|
716
|
+
!isNaN(+name.slice(1))) {
|
717
|
+
this[name] = undefined$1;
|
718
|
+
}
|
719
|
+
}
|
720
|
+
}
|
721
|
+
},
|
258
722
|
|
259
|
-
|
723
|
+
stop: function() {
|
724
|
+
this.done = true;
|
260
725
|
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
726
|
+
var rootEntry = this.tryEntries[0];
|
727
|
+
var rootRecord = rootEntry.completion;
|
728
|
+
if (rootRecord.type === "throw") {
|
729
|
+
throw rootRecord.arg;
|
265
730
|
}
|
266
731
|
|
267
|
-
return next.done = !0, next;
|
268
|
-
};
|
269
|
-
}, exports.values = values, Context.prototype = {
|
270
|
-
constructor: Context,
|
271
|
-
reset: function (skipTempReset) {
|
272
|
-
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);
|
273
|
-
},
|
274
|
-
stop: function () {
|
275
|
-
this.done = !0;
|
276
|
-
var rootRecord = this.tryEntries[0].completion;
|
277
|
-
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
278
732
|
return this.rval;
|
279
733
|
},
|
280
|
-
dispatchException: function (exception) {
|
281
|
-
if (this.done) throw exception;
|
282
|
-
var context = this;
|
283
734
|
|
735
|
+
dispatchException: function(exception) {
|
736
|
+
if (this.done) {
|
737
|
+
throw exception;
|
738
|
+
}
|
739
|
+
|
740
|
+
var context = this;
|
284
741
|
function handle(loc, caught) {
|
285
|
-
|
742
|
+
record.type = "throw";
|
743
|
+
record.arg = exception;
|
744
|
+
context.next = loc;
|
745
|
+
|
746
|
+
if (caught) {
|
747
|
+
// If the dispatched exception was caught by a catch block,
|
748
|
+
// then let that catch block handle the exception normally.
|
749
|
+
context.method = "next";
|
750
|
+
context.arg = undefined$1;
|
751
|
+
}
|
752
|
+
|
753
|
+
return !! caught;
|
286
754
|
}
|
287
755
|
|
288
756
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
289
|
-
var entry = this.tryEntries[i]
|
290
|
-
|
291
|
-
|
757
|
+
var entry = this.tryEntries[i];
|
758
|
+
var record = entry.completion;
|
759
|
+
|
760
|
+
if (entry.tryLoc === "root") {
|
761
|
+
// Exception thrown outside of any try block that could handle
|
762
|
+
// it, so set the completion value of the entire function to
|
763
|
+
// throw the exception.
|
764
|
+
return handle("end");
|
765
|
+
}
|
292
766
|
|
293
767
|
if (entry.tryLoc <= this.prev) {
|
294
|
-
var hasCatch = hasOwn.call(entry, "catchLoc")
|
295
|
-
|
768
|
+
var hasCatch = hasOwn.call(entry, "catchLoc");
|
769
|
+
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
296
770
|
|
297
771
|
if (hasCatch && hasFinally) {
|
298
|
-
if (this.prev < entry.catchLoc)
|
299
|
-
|
772
|
+
if (this.prev < entry.catchLoc) {
|
773
|
+
return handle(entry.catchLoc, true);
|
774
|
+
} else if (this.prev < entry.finallyLoc) {
|
775
|
+
return handle(entry.finallyLoc);
|
776
|
+
}
|
777
|
+
|
300
778
|
} else if (hasCatch) {
|
301
|
-
if (this.prev < entry.catchLoc)
|
779
|
+
if (this.prev < entry.catchLoc) {
|
780
|
+
return handle(entry.catchLoc, true);
|
781
|
+
}
|
782
|
+
|
783
|
+
} else if (hasFinally) {
|
784
|
+
if (this.prev < entry.finallyLoc) {
|
785
|
+
return handle(entry.finallyLoc);
|
786
|
+
}
|
787
|
+
|
302
788
|
} else {
|
303
|
-
|
304
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
789
|
+
throw new Error("try statement without catch or finally");
|
305
790
|
}
|
306
791
|
}
|
307
792
|
}
|
308
793
|
},
|
309
|
-
|
794
|
+
|
795
|
+
abrupt: function(type, arg) {
|
310
796
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
311
797
|
var entry = this.tryEntries[i];
|
312
|
-
|
313
|
-
|
798
|
+
if (entry.tryLoc <= this.prev &&
|
799
|
+
hasOwn.call(entry, "finallyLoc") &&
|
800
|
+
this.prev < entry.finallyLoc) {
|
314
801
|
var finallyEntry = entry;
|
315
802
|
break;
|
316
803
|
}
|
317
804
|
}
|
318
805
|
|
319
|
-
|
806
|
+
if (finallyEntry &&
|
807
|
+
(type === "break" ||
|
808
|
+
type === "continue") &&
|
809
|
+
finallyEntry.tryLoc <= arg &&
|
810
|
+
arg <= finallyEntry.finallyLoc) {
|
811
|
+
// Ignore the finally entry if control is not jumping to a
|
812
|
+
// location outside the try/catch block.
|
813
|
+
finallyEntry = null;
|
814
|
+
}
|
815
|
+
|
320
816
|
var record = finallyEntry ? finallyEntry.completion : {};
|
321
|
-
|
817
|
+
record.type = type;
|
818
|
+
record.arg = arg;
|
819
|
+
|
820
|
+
if (finallyEntry) {
|
821
|
+
this.method = "next";
|
822
|
+
this.next = finallyEntry.finallyLoc;
|
823
|
+
return ContinueSentinel;
|
824
|
+
}
|
825
|
+
|
826
|
+
return this.complete(record);
|
322
827
|
},
|
323
|
-
|
324
|
-
|
325
|
-
|
828
|
+
|
829
|
+
complete: function(record, afterLoc) {
|
830
|
+
if (record.type === "throw") {
|
831
|
+
throw record.arg;
|
832
|
+
}
|
833
|
+
|
834
|
+
if (record.type === "break" ||
|
835
|
+
record.type === "continue") {
|
836
|
+
this.next = record.arg;
|
837
|
+
} else if (record.type === "return") {
|
838
|
+
this.rval = this.arg = record.arg;
|
839
|
+
this.method = "return";
|
840
|
+
this.next = "end";
|
841
|
+
} else if (record.type === "normal" && afterLoc) {
|
842
|
+
this.next = afterLoc;
|
843
|
+
}
|
844
|
+
|
845
|
+
return ContinueSentinel;
|
326
846
|
},
|
327
|
-
|
847
|
+
|
848
|
+
finish: function(finallyLoc) {
|
328
849
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
329
850
|
var entry = this.tryEntries[i];
|
330
|
-
if (entry.finallyLoc === finallyLoc)
|
851
|
+
if (entry.finallyLoc === finallyLoc) {
|
852
|
+
this.complete(entry.completion, entry.afterLoc);
|
853
|
+
resetTryEntry(entry);
|
854
|
+
return ContinueSentinel;
|
855
|
+
}
|
331
856
|
}
|
332
857
|
},
|
333
|
-
|
858
|
+
|
859
|
+
"catch": function(tryLoc) {
|
334
860
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
335
861
|
var entry = this.tryEntries[i];
|
336
|
-
|
337
862
|
if (entry.tryLoc === tryLoc) {
|
338
863
|
var record = entry.completion;
|
339
|
-
|
340
|
-
if ("throw" === record.type) {
|
864
|
+
if (record.type === "throw") {
|
341
865
|
var thrown = record.arg;
|
342
866
|
resetTryEntry(entry);
|
343
867
|
}
|
344
|
-
|
345
868
|
return thrown;
|
346
869
|
}
|
347
870
|
}
|
348
871
|
|
872
|
+
// The context.catch method must only be called with a location
|
873
|
+
// argument that corresponds to a known catch block.
|
349
874
|
throw new Error("illegal catch attempt");
|
350
875
|
},
|
351
|
-
|
352
|
-
|
876
|
+
|
877
|
+
delegateYield: function(iterable, resultName, nextLoc) {
|
878
|
+
this.delegate = {
|
353
879
|
iterator: values(iterable),
|
354
880
|
resultName: resultName,
|
355
881
|
nextLoc: nextLoc
|
356
|
-
}
|
357
|
-
}
|
358
|
-
}, exports;
|
359
|
-
}
|
360
|
-
|
361
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
362
|
-
try {
|
363
|
-
var info = gen[key](arg);
|
364
|
-
var value = info.value;
|
365
|
-
} catch (error) {
|
366
|
-
reject(error);
|
367
|
-
return;
|
368
|
-
}
|
369
|
-
|
370
|
-
if (info.done) {
|
371
|
-
resolve(value);
|
372
|
-
} else {
|
373
|
-
Promise.resolve(value).then(_next, _throw);
|
374
|
-
}
|
375
|
-
}
|
376
|
-
|
377
|
-
function _asyncToGenerator(fn) {
|
378
|
-
return function () {
|
379
|
-
var self = this,
|
380
|
-
args = arguments;
|
381
|
-
return new Promise(function (resolve, reject) {
|
382
|
-
var gen = fn.apply(self, args);
|
383
|
-
|
384
|
-
function _next(value) {
|
385
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
386
|
-
}
|
882
|
+
};
|
387
883
|
|
388
|
-
|
389
|
-
|
884
|
+
if (this.method === "next") {
|
885
|
+
// Deliberately forget the last sent value so that we don't
|
886
|
+
// accidentally pass it on to the delegate.
|
887
|
+
this.arg = undefined$1;
|
390
888
|
}
|
391
889
|
|
392
|
-
|
393
|
-
});
|
394
|
-
};
|
395
|
-
}
|
396
|
-
|
397
|
-
function _extends() {
|
398
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
399
|
-
for (var i = 1; i < arguments.length; i++) {
|
400
|
-
var source = arguments[i];
|
401
|
-
|
402
|
-
for (var key in source) {
|
403
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
404
|
-
target[key] = source[key];
|
405
|
-
}
|
406
|
-
}
|
890
|
+
return ContinueSentinel;
|
407
891
|
}
|
408
|
-
|
409
|
-
return target;
|
410
892
|
};
|
411
|
-
return _extends.apply(this, arguments);
|
412
|
-
}
|
413
|
-
|
414
|
-
function _inheritsLoose(subClass, superClass) {
|
415
|
-
subClass.prototype = Object.create(superClass.prototype);
|
416
|
-
subClass.prototype.constructor = subClass;
|
417
|
-
|
418
|
-
_setPrototypeOf(subClass, superClass);
|
419
|
-
}
|
420
893
|
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
return
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
if (_isNativeReflectConstruct()) {
|
451
|
-
_construct = Reflect.construct.bind();
|
894
|
+
// Regardless of whether this script is executing as a CommonJS module
|
895
|
+
// or not, return the runtime object so that we can declare the variable
|
896
|
+
// regeneratorRuntime in the outer scope, which allows this module to be
|
897
|
+
// injected easily by `bin/regenerator --include-runtime script.js`.
|
898
|
+
return exports;
|
899
|
+
|
900
|
+
}(
|
901
|
+
// If this script is executing as a CommonJS module, use module.exports
|
902
|
+
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
903
|
+
// object. Either way, the resulting object will be used to initialize
|
904
|
+
// the regeneratorRuntime variable at the top of this file.
|
905
|
+
module.exports
|
906
|
+
));
|
907
|
+
|
908
|
+
try {
|
909
|
+
regeneratorRuntime = runtime;
|
910
|
+
} catch (accidentalStrictMode) {
|
911
|
+
// This module should not be running in strict mode, so the above
|
912
|
+
// assignment should always work unless something is misconfigured. Just
|
913
|
+
// in case runtime.js accidentally runs in strict mode, in modern engines
|
914
|
+
// we can explicitly access globalThis. In older engines we can escape
|
915
|
+
// strict mode using a global Function call. This could conceivably fail
|
916
|
+
// if a Content Security Policy forbids using Function, but in that case
|
917
|
+
// the proper solution is to fix the accidental strict mode problem. If
|
918
|
+
// you've misconfigured your bundler to force strict mode and applied a
|
919
|
+
// CSP to forbid Function, and you're not willing to fix either of those
|
920
|
+
// problems, please detail your unique predicament in a GitHub issue.
|
921
|
+
if (typeof globalThis === "object") {
|
922
|
+
globalThis.regeneratorRuntime = runtime;
|
452
923
|
} else {
|
453
|
-
|
454
|
-
var a = [null];
|
455
|
-
a.push.apply(a, args);
|
456
|
-
var Constructor = Function.bind.apply(Parent, a);
|
457
|
-
var instance = new Constructor();
|
458
|
-
if (Class) _setPrototypeOf(instance, Class.prototype);
|
459
|
-
return instance;
|
460
|
-
};
|
461
|
-
}
|
462
|
-
|
463
|
-
return _construct.apply(null, arguments);
|
464
|
-
}
|
465
|
-
|
466
|
-
function _isNativeFunction(fn) {
|
467
|
-
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
468
|
-
}
|
469
|
-
|
470
|
-
function _wrapNativeSuper(Class) {
|
471
|
-
var _cache = typeof Map === "function" ? new Map() : undefined;
|
472
|
-
|
473
|
-
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
474
|
-
if (Class === null || !_isNativeFunction(Class)) return Class;
|
475
|
-
|
476
|
-
if (typeof Class !== "function") {
|
477
|
-
throw new TypeError("Super expression must either be null or a function");
|
478
|
-
}
|
479
|
-
|
480
|
-
if (typeof _cache !== "undefined") {
|
481
|
-
if (_cache.has(Class)) return _cache.get(Class);
|
482
|
-
|
483
|
-
_cache.set(Class, Wrapper);
|
484
|
-
}
|
485
|
-
|
486
|
-
function Wrapper() {
|
487
|
-
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
488
|
-
}
|
489
|
-
|
490
|
-
Wrapper.prototype = Object.create(Class.prototype, {
|
491
|
-
constructor: {
|
492
|
-
value: Wrapper,
|
493
|
-
enumerable: false,
|
494
|
-
writable: true,
|
495
|
-
configurable: true
|
496
|
-
}
|
497
|
-
});
|
498
|
-
return _setPrototypeOf(Wrapper, Class);
|
499
|
-
};
|
500
|
-
|
501
|
-
return _wrapNativeSuper(Class);
|
502
|
-
}
|
503
|
-
|
504
|
-
function _assertThisInitialized(self) {
|
505
|
-
if (self === void 0) {
|
506
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
924
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
507
925
|
}
|
508
|
-
|
509
|
-
return self;
|
510
926
|
}
|
927
|
+
});
|
511
928
|
|
512
929
|
var AxiosService = /*#__PURE__*/function () {
|
513
930
|
function AxiosService(config) {
|
@@ -518,8 +935,8 @@ var AxiosService = /*#__PURE__*/function () {
|
|
518
935
|
var _proto = AxiosService.prototype;
|
519
936
|
|
520
937
|
_proto.apiRequest = /*#__PURE__*/function () {
|
521
|
-
var _apiRequest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
522
|
-
return
|
938
|
+
var _apiRequest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(config, url, data) {
|
939
|
+
return runtime_1.wrap(function _callee$(_context) {
|
523
940
|
while (1) {
|
524
941
|
switch (_context.prev = _context.next) {
|
525
942
|
case 0:
|
@@ -548,8 +965,8 @@ var AxiosService = /*#__PURE__*/function () {
|
|
548
965
|
}();
|
549
966
|
|
550
967
|
_proto.apiRequestHeader = /*#__PURE__*/function () {
|
551
|
-
var _apiRequestHeader = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
552
|
-
return
|
968
|
+
var _apiRequestHeader = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(config, url, headerToRetrieve, data) {
|
969
|
+
return runtime_1.wrap(function _callee2$(_context2) {
|
553
970
|
while (1) {
|
554
971
|
switch (_context2.prev = _context2.next) {
|
555
972
|
case 0:
|
@@ -652,9 +1069,9 @@ var APIService = /*#__PURE__*/function (_AxiosService) {
|
|
652
1069
|
});
|
653
1070
|
|
654
1071
|
createAuthRefreshInterceptor(_this.axios, /*#__PURE__*/function () {
|
655
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
1072
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(failedRequest) {
|
656
1073
|
var tokenResp;
|
657
|
-
return
|
1074
|
+
return runtime_1.wrap(function _callee$(_context) {
|
658
1075
|
while (1) {
|
659
1076
|
switch (_context.prev = _context.next) {
|
660
1077
|
case 0:
|
@@ -770,11 +1187,11 @@ var ApisPracticeManager = /*#__PURE__*/function () {
|
|
770
1187
|
_proto.get =
|
771
1188
|
/*#__PURE__*/
|
772
1189
|
function () {
|
773
|
-
var _get = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
1190
|
+
var _get = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(practiceUuid) {
|
774
1191
|
var _this = this;
|
775
1192
|
|
776
1193
|
var practiceInstance, newPracticeInstance, authTokenFunc;
|
777
|
-
return
|
1194
|
+
return runtime_1.wrap(function _callee2$(_context2) {
|
778
1195
|
while (1) {
|
779
1196
|
switch (_context2.prev = _context2.next) {
|
780
1197
|
case 0:
|
@@ -791,8 +1208,8 @@ var ApisPracticeManager = /*#__PURE__*/function () {
|
|
791
1208
|
newPracticeInstance = init(this.serviceCollReq, undefined, this.useLocalStorage); // Create one auth token callback per practice since the practice uuid needs to change
|
792
1209
|
|
793
1210
|
authTokenFunc = /*#__PURE__*/function () {
|
794
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
795
|
-
return
|
1211
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee() {
|
1212
|
+
return runtime_1.wrap(function _callee$(_context) {
|
796
1213
|
while (1) {
|
797
1214
|
switch (_context.prev = _context.next) {
|
798
1215
|
case 0:
|
@@ -1209,7 +1626,9 @@ var PracticeEmailKind;
|
|
1209
1626
|
var PracticeConfigKind;
|
1210
1627
|
|
1211
1628
|
(function (PracticeConfigKind) {
|
1629
|
+
PracticeConfigKind["PatientConsultCard"] = "PatientConsultCard";
|
1212
1630
|
PracticeConfigKind["PracticeCloseConsultationTypes"] = "PracticeCloseConsultationTypes";
|
1631
|
+
PracticeConfigKind["PracticeConsultTabs"] = "PracticeConsultTabs";
|
1213
1632
|
PracticeConfigKind["PracticeConfigExample"] = "PracticeConfigExample";
|
1214
1633
|
PracticeConfigKind["PracticeCookieBanner"] = "PracticeCookieBanner";
|
1215
1634
|
PracticeConfigKind["PracticeCssVariables"] = "PracticeCssVariables";
|
@@ -1565,9 +1984,9 @@ var DiagnosisService = /*#__PURE__*/function () {
|
|
1565
1984
|
_proto.getAllDrugs =
|
1566
1985
|
/*#__PURE__*/
|
1567
1986
|
function () {
|
1568
|
-
var _getAllDrugs = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
1987
|
+
var _getAllDrugs = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(uuidPractice) {
|
1569
1988
|
var res;
|
1570
|
-
return
|
1989
|
+
return runtime_1.wrap(function _callee$(_context) {
|
1571
1990
|
while (1) {
|
1572
1991
|
switch (_context.prev = _context.next) {
|
1573
1992
|
case 0:
|
@@ -1643,10 +2062,10 @@ var GuardService = /*#__PURE__*/function () {
|
|
1643
2062
|
_proto.m2mToken =
|
1644
2063
|
/*#__PURE__*/
|
1645
2064
|
function () {
|
1646
|
-
var _m2mToken = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2065
|
+
var _m2mToken = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(req) {
|
1647
2066
|
var resp, config, _e$response, code;
|
1648
2067
|
|
1649
|
-
return
|
2068
|
+
return runtime_1.wrap(function _callee$(_context) {
|
1650
2069
|
while (1) {
|
1651
2070
|
switch (_context.prev = _context.next) {
|
1652
2071
|
case 0:
|
@@ -1721,10 +2140,10 @@ var GuardService = /*#__PURE__*/function () {
|
|
1721
2140
|
_proto.authToken =
|
1722
2141
|
/*#__PURE__*/
|
1723
2142
|
function () {
|
1724
|
-
var _authToken = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2143
|
+
var _authToken = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(req) {
|
1725
2144
|
var resp, config, _e$response2, code;
|
1726
2145
|
|
1727
|
-
return
|
2146
|
+
return runtime_1.wrap(function _callee2$(_context2) {
|
1728
2147
|
while (1) {
|
1729
2148
|
switch (_context2.prev = _context2.next) {
|
1730
2149
|
case 0:
|
@@ -1801,9 +2220,9 @@ var GuardService = /*#__PURE__*/function () {
|
|
1801
2220
|
_proto.authRefresh =
|
1802
2221
|
/*#__PURE__*/
|
1803
2222
|
function () {
|
1804
|
-
var _authRefresh = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2223
|
+
var _authRefresh = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3(refreshToken) {
|
1805
2224
|
var config;
|
1806
|
-
return
|
2225
|
+
return runtime_1.wrap(function _callee3$(_context3) {
|
1807
2226
|
while (1) {
|
1808
2227
|
switch (_context3.prev = _context3.next) {
|
1809
2228
|
case 0:
|
@@ -1837,8 +2256,8 @@ var GuardService = /*#__PURE__*/function () {
|
|
1837
2256
|
_proto.authLogout =
|
1838
2257
|
/*#__PURE__*/
|
1839
2258
|
function () {
|
1840
|
-
var _authLogout = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
1841
|
-
return
|
2259
|
+
var _authLogout = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4() {
|
2260
|
+
return runtime_1.wrap(function _callee4$(_context4) {
|
1842
2261
|
while (1) {
|
1843
2262
|
switch (_context4.prev = _context4.next) {
|
1844
2263
|
case 0:
|
@@ -1869,8 +2288,8 @@ var GuardService = /*#__PURE__*/function () {
|
|
1869
2288
|
_proto.authRecover =
|
1870
2289
|
/*#__PURE__*/
|
1871
2290
|
function () {
|
1872
|
-
var _authRecover = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
1873
|
-
return
|
2291
|
+
var _authRecover = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee5(req) {
|
2292
|
+
return runtime_1.wrap(function _callee5$(_context5) {
|
1874
2293
|
while (1) {
|
1875
2294
|
switch (_context5.prev = _context5.next) {
|
1876
2295
|
case 0:
|
@@ -1902,10 +2321,10 @@ var GuardService = /*#__PURE__*/function () {
|
|
1902
2321
|
_proto.identityCreate =
|
1903
2322
|
/*#__PURE__*/
|
1904
2323
|
function () {
|
1905
|
-
var _identityCreate = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2324
|
+
var _identityCreate = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee6(req) {
|
1906
2325
|
var resp, _e$response3, code;
|
1907
2326
|
|
1908
|
-
return
|
2327
|
+
return runtime_1.wrap(function _callee6$(_context6) {
|
1909
2328
|
while (1) {
|
1910
2329
|
switch (_context6.prev = _context6.next) {
|
1911
2330
|
case 0:
|
@@ -1977,11 +2396,11 @@ var GuardService = /*#__PURE__*/function () {
|
|
1977
2396
|
_proto.identityGet =
|
1978
2397
|
/*#__PURE__*/
|
1979
2398
|
function () {
|
1980
|
-
var _identityGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2399
|
+
var _identityGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee7(identityID, skipCache) {
|
1981
2400
|
var _tokens$accessToken, _tokens$refreshToken;
|
1982
2401
|
|
1983
2402
|
var tokens, cacheKey, identity;
|
1984
|
-
return
|
2403
|
+
return runtime_1.wrap(function _callee7$(_context7) {
|
1985
2404
|
while (1) {
|
1986
2405
|
switch (_context7.prev = _context7.next) {
|
1987
2406
|
case 0:
|
@@ -2041,11 +2460,11 @@ var GuardService = /*#__PURE__*/function () {
|
|
2041
2460
|
_proto.whoAmI =
|
2042
2461
|
/*#__PURE__*/
|
2043
2462
|
function () {
|
2044
|
-
var _whoAmI = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2463
|
+
var _whoAmI = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8(refreshCache) {
|
2045
2464
|
var _this$api$getTokens$a;
|
2046
2465
|
|
2047
2466
|
var cacheKey;
|
2048
|
-
return
|
2467
|
+
return runtime_1.wrap(function _callee8$(_context8) {
|
2049
2468
|
while (1) {
|
2050
2469
|
switch (_context8.prev = _context8.next) {
|
2051
2470
|
case 0:
|
@@ -2095,8 +2514,8 @@ var GuardService = /*#__PURE__*/function () {
|
|
2095
2514
|
_proto.identityUpdate =
|
2096
2515
|
/*#__PURE__*/
|
2097
2516
|
function () {
|
2098
|
-
var _identityUpdate = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2099
|
-
return
|
2517
|
+
var _identityUpdate = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9(identityID, req) {
|
2518
|
+
return runtime_1.wrap(function _callee9$(_context9) {
|
2100
2519
|
while (1) {
|
2101
2520
|
switch (_context9.prev = _context9.next) {
|
2102
2521
|
case 0:
|
@@ -2129,9 +2548,9 @@ var GuardService = /*#__PURE__*/function () {
|
|
2129
2548
|
_proto.identityMFAQRCode =
|
2130
2549
|
/*#__PURE__*/
|
2131
2550
|
function () {
|
2132
|
-
var _identityMFAQRCode = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2551
|
+
var _identityMFAQRCode = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee10(identityID, password) {
|
2133
2552
|
var req;
|
2134
|
-
return
|
2553
|
+
return runtime_1.wrap(function _callee10$(_context10) {
|
2135
2554
|
while (1) {
|
2136
2555
|
switch (_context10.prev = _context10.next) {
|
2137
2556
|
case 0:
|
@@ -2169,8 +2588,8 @@ var GuardService = /*#__PURE__*/function () {
|
|
2169
2588
|
_proto.identitySendConfirmEmail =
|
2170
2589
|
/*#__PURE__*/
|
2171
2590
|
function () {
|
2172
|
-
var _identitySendConfirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2173
|
-
return
|
2591
|
+
var _identitySendConfirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee11(req) {
|
2592
|
+
return runtime_1.wrap(function _callee11$(_context11) {
|
2174
2593
|
while (1) {
|
2175
2594
|
switch (_context11.prev = _context11.next) {
|
2176
2595
|
case 0:
|
@@ -2201,8 +2620,8 @@ var GuardService = /*#__PURE__*/function () {
|
|
2201
2620
|
_proto.identityGetByCustomerEmail =
|
2202
2621
|
/*#__PURE__*/
|
2203
2622
|
function () {
|
2204
|
-
var _identityGetByCustomerEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2205
|
-
return
|
2623
|
+
var _identityGetByCustomerEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee12(email) {
|
2624
|
+
return runtime_1.wrap(function _callee12$(_context12) {
|
2206
2625
|
while (1) {
|
2207
2626
|
switch (_context12.prev = _context12.next) {
|
2208
2627
|
case 0:
|
@@ -2233,8 +2652,8 @@ var GuardService = /*#__PURE__*/function () {
|
|
2233
2652
|
_proto.identityGetByHash =
|
2234
2653
|
/*#__PURE__*/
|
2235
2654
|
function () {
|
2236
|
-
var _identityGetByHash = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2237
|
-
return
|
2655
|
+
var _identityGetByHash = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee13(b64Hash) {
|
2656
|
+
return runtime_1.wrap(function _callee13$(_context13) {
|
2238
2657
|
while (1) {
|
2239
2658
|
switch (_context13.prev = _context13.next) {
|
2240
2659
|
case 0:
|
@@ -2637,8 +3056,8 @@ var TellerService = /*#__PURE__*/function () {
|
|
2637
3056
|
var _proto = TellerService.prototype;
|
2638
3057
|
|
2639
3058
|
_proto.lockboxDataStore = /*#__PURE__*/function () {
|
2640
|
-
var _lockboxDataStore = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2641
|
-
return
|
3059
|
+
var _lockboxDataStore = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(lockboxUuid, req, lockboxOwnerUuid, previousDataUuid) {
|
3060
|
+
return runtime_1.wrap(function _callee$(_context) {
|
2642
3061
|
while (1) {
|
2643
3062
|
switch (_context.prev = _context.next) {
|
2644
3063
|
case 0:
|
@@ -2746,8 +3165,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
2746
3165
|
var _proto = VaultService.prototype;
|
2747
3166
|
|
2748
3167
|
_proto.lockboxCreate = /*#__PURE__*/function () {
|
2749
|
-
var _lockboxCreate = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2750
|
-
return
|
3168
|
+
var _lockboxCreate = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(lockboxMetadata) {
|
3169
|
+
return runtime_1.wrap(function _callee$(_context) {
|
2751
3170
|
while (1) {
|
2752
3171
|
switch (_context.prev = _context.next) {
|
2753
3172
|
case 0:
|
@@ -2769,8 +3188,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
2769
3188
|
}();
|
2770
3189
|
|
2771
3190
|
_proto.lockboxMetadataAdd = /*#__PURE__*/function () {
|
2772
|
-
var _lockboxMetadataAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2773
|
-
return
|
3191
|
+
var _lockboxMetadataAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(lockboxUuid, lockboxMetadata, lockboxOwnerUuid) {
|
3192
|
+
return runtime_1.wrap(function _callee2$(_context2) {
|
2774
3193
|
while (1) {
|
2775
3194
|
switch (_context2.prev = _context2.next) {
|
2776
3195
|
case 0:
|
@@ -2796,8 +3215,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
2796
3215
|
}();
|
2797
3216
|
|
2798
3217
|
_proto.lockboxSecretGet = /*#__PURE__*/function () {
|
2799
|
-
var _lockboxSecretGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2800
|
-
return
|
3218
|
+
var _lockboxSecretGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3(lockboxUuid, lockboxOwnerUuid) {
|
3219
|
+
return runtime_1.wrap(function _callee3$(_context3) {
|
2801
3220
|
while (1) {
|
2802
3221
|
switch (_context3.prev = _context3.next) {
|
2803
3222
|
case 0:
|
@@ -2823,8 +3242,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
2823
3242
|
}();
|
2824
3243
|
|
2825
3244
|
_proto.lockboxGrant = /*#__PURE__*/function () {
|
2826
|
-
var _lockboxGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2827
|
-
return
|
3245
|
+
var _lockboxGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(lockboxUuid, req, lockboxOwnerUuid) {
|
3246
|
+
return runtime_1.wrap(function _callee4$(_context4) {
|
2828
3247
|
while (1) {
|
2829
3248
|
switch (_context4.prev = _context4.next) {
|
2830
3249
|
case 0:
|
@@ -2858,8 +3277,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
2858
3277
|
_proto.grantsGet =
|
2859
3278
|
/*#__PURE__*/
|
2860
3279
|
function () {
|
2861
|
-
var _grantsGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2862
|
-
return
|
3280
|
+
var _grantsGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee5() {
|
3281
|
+
return runtime_1.wrap(function _callee5$(_context5) {
|
2863
3282
|
while (1) {
|
2864
3283
|
switch (_context5.prev = _context5.next) {
|
2865
3284
|
case 0:
|
@@ -2894,8 +3313,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
2894
3313
|
_proto.lockboxDataStore =
|
2895
3314
|
/*#__PURE__*/
|
2896
3315
|
function () {
|
2897
|
-
var _lockboxDataStore = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2898
|
-
return
|
3316
|
+
var _lockboxDataStore = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee6(lockboxUuid, req, lockboxOwnerUuid, previousDataUuid) {
|
3317
|
+
return runtime_1.wrap(function _callee6$(_context6) {
|
2899
3318
|
while (1) {
|
2900
3319
|
switch (_context6.prev = _context6.next) {
|
2901
3320
|
case 0:
|
@@ -2922,9 +3341,9 @@ var VaultService = /*#__PURE__*/function () {
|
|
2922
3341
|
}();
|
2923
3342
|
|
2924
3343
|
_proto.lockboxDataGet = /*#__PURE__*/function () {
|
2925
|
-
var _lockboxDataGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3344
|
+
var _lockboxDataGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee7(lockboxUuid, dataUuid, lockboxOwnerUuid, stream) {
|
2926
3345
|
var data;
|
2927
|
-
return
|
3346
|
+
return runtime_1.wrap(function _callee7$(_context7) {
|
2928
3347
|
while (1) {
|
2929
3348
|
switch (_context7.prev = _context7.next) {
|
2930
3349
|
case 0:
|
@@ -2971,8 +3390,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
2971
3390
|
}();
|
2972
3391
|
|
2973
3392
|
_proto.lockboxManifestGet = /*#__PURE__*/function () {
|
2974
|
-
var _lockboxManifestGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2975
|
-
return
|
3393
|
+
var _lockboxManifestGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8(lockboxUuid, filter, lockboxOwnerUuid) {
|
3394
|
+
return runtime_1.wrap(function _callee8$(_context8) {
|
2976
3395
|
while (1) {
|
2977
3396
|
switch (_context8.prev = _context8.next) {
|
2978
3397
|
case 0:
|
@@ -2999,8 +3418,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
2999
3418
|
}();
|
3000
3419
|
|
3001
3420
|
_proto.lockboxMetadataGet = /*#__PURE__*/function () {
|
3002
|
-
var _lockboxMetadataGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3003
|
-
return
|
3421
|
+
var _lockboxMetadataGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9(lockboxUuid, fields, groupby, filter, lockboxOwnerUuid) {
|
3422
|
+
return runtime_1.wrap(function _callee9$(_context9) {
|
3004
3423
|
while (1) {
|
3005
3424
|
switch (_context9.prev = _context9.next) {
|
3006
3425
|
case 0:
|
@@ -3039,8 +3458,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
3039
3458
|
_proto.vaultIndexPut =
|
3040
3459
|
/*#__PURE__*/
|
3041
3460
|
function () {
|
3042
|
-
var _vaultIndexPut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3043
|
-
return
|
3461
|
+
var _vaultIndexPut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee10(entries, indexOwnerUuid) {
|
3462
|
+
return runtime_1.wrap(function _callee10$(_context10) {
|
3044
3463
|
while (1) {
|
3045
3464
|
switch (_context10.prev = _context10.next) {
|
3046
3465
|
case 0:
|
@@ -3074,8 +3493,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
3074
3493
|
_proto.vaultIndexSnapshotPut =
|
3075
3494
|
/*#__PURE__*/
|
3076
3495
|
function () {
|
3077
|
-
var _vaultIndexSnapshotPut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3078
|
-
return
|
3496
|
+
var _vaultIndexSnapshotPut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee11(entry) {
|
3497
|
+
return runtime_1.wrap(function _callee11$(_context11) {
|
3079
3498
|
while (1) {
|
3080
3499
|
switch (_context11.prev = _context11.next) {
|
3081
3500
|
case 0:
|
@@ -3108,8 +3527,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
3108
3527
|
_proto.vaultIndexGet =
|
3109
3528
|
/*#__PURE__*/
|
3110
3529
|
function () {
|
3111
|
-
var _vaultIndexGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3112
|
-
return
|
3530
|
+
var _vaultIndexGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee12(indexKeys, identifiers, timestamp) {
|
3531
|
+
return runtime_1.wrap(function _callee12$(_context12) {
|
3113
3532
|
while (1) {
|
3114
3533
|
switch (_context12.prev = _context12.next) {
|
3115
3534
|
case 0:
|