oro-sdk 2.24.0 → 2.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/oro-sdk.cjs.development.js +491 -912
- package/dist/oro-sdk.cjs.development.js.map +1 -1
- package/dist/oro-sdk.cjs.production.min.js +1 -1
- package/dist/oro-sdk.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk.esm.js +491 -912
- package/dist/oro-sdk.esm.js.map +1 -1
- package/package.json +2 -2
@@ -9,6 +9,351 @@ var initApis__default = _interopDefault(initApis);
|
|
9
9
|
var oroToolbox = require('oro-toolbox');
|
10
10
|
var idbKeyval = require('idb-keyval');
|
11
11
|
|
12
|
+
function _regeneratorRuntime() {
|
13
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
14
|
+
|
15
|
+
_regeneratorRuntime = function () {
|
16
|
+
return exports;
|
17
|
+
};
|
18
|
+
|
19
|
+
var exports = {},
|
20
|
+
Op = Object.prototype,
|
21
|
+
hasOwn = Op.hasOwnProperty,
|
22
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
23
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
24
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
25
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
26
|
+
|
27
|
+
function define(obj, key, value) {
|
28
|
+
return Object.defineProperty(obj, key, {
|
29
|
+
value: value,
|
30
|
+
enumerable: !0,
|
31
|
+
configurable: !0,
|
32
|
+
writable: !0
|
33
|
+
}), obj[key];
|
34
|
+
}
|
35
|
+
|
36
|
+
try {
|
37
|
+
define({}, "");
|
38
|
+
} catch (err) {
|
39
|
+
define = function (obj, key, value) {
|
40
|
+
return obj[key] = value;
|
41
|
+
};
|
42
|
+
}
|
43
|
+
|
44
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
45
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
46
|
+
generator = Object.create(protoGenerator.prototype),
|
47
|
+
context = new Context(tryLocsList || []);
|
48
|
+
return generator._invoke = function (innerFn, self, context) {
|
49
|
+
var state = "suspendedStart";
|
50
|
+
return function (method, arg) {
|
51
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
52
|
+
|
53
|
+
if ("completed" === state) {
|
54
|
+
if ("throw" === method) throw arg;
|
55
|
+
return doneResult();
|
56
|
+
}
|
57
|
+
|
58
|
+
for (context.method = method, context.arg = arg;;) {
|
59
|
+
var delegate = context.delegate;
|
60
|
+
|
61
|
+
if (delegate) {
|
62
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
63
|
+
|
64
|
+
if (delegateResult) {
|
65
|
+
if (delegateResult === ContinueSentinel) continue;
|
66
|
+
return delegateResult;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
71
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
72
|
+
context.dispatchException(context.arg);
|
73
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
74
|
+
state = "executing";
|
75
|
+
var record = tryCatch(innerFn, self, context);
|
76
|
+
|
77
|
+
if ("normal" === record.type) {
|
78
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
79
|
+
return {
|
80
|
+
value: record.arg,
|
81
|
+
done: context.done
|
82
|
+
};
|
83
|
+
}
|
84
|
+
|
85
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
86
|
+
}
|
87
|
+
};
|
88
|
+
}(innerFn, self, context), generator;
|
89
|
+
}
|
90
|
+
|
91
|
+
function tryCatch(fn, obj, arg) {
|
92
|
+
try {
|
93
|
+
return {
|
94
|
+
type: "normal",
|
95
|
+
arg: fn.call(obj, arg)
|
96
|
+
};
|
97
|
+
} catch (err) {
|
98
|
+
return {
|
99
|
+
type: "throw",
|
100
|
+
arg: err
|
101
|
+
};
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
exports.wrap = wrap;
|
106
|
+
var ContinueSentinel = {};
|
107
|
+
|
108
|
+
function Generator() {}
|
109
|
+
|
110
|
+
function GeneratorFunction() {}
|
111
|
+
|
112
|
+
function GeneratorFunctionPrototype() {}
|
113
|
+
|
114
|
+
var IteratorPrototype = {};
|
115
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
116
|
+
return this;
|
117
|
+
});
|
118
|
+
var getProto = Object.getPrototypeOf,
|
119
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
120
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
121
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
122
|
+
|
123
|
+
function defineIteratorMethods(prototype) {
|
124
|
+
["next", "throw", "return"].forEach(function (method) {
|
125
|
+
define(prototype, method, function (arg) {
|
126
|
+
return this._invoke(method, arg);
|
127
|
+
});
|
128
|
+
});
|
129
|
+
}
|
130
|
+
|
131
|
+
function AsyncIterator(generator, PromiseImpl) {
|
132
|
+
function invoke(method, arg, resolve, reject) {
|
133
|
+
var record = tryCatch(generator[method], generator, arg);
|
134
|
+
|
135
|
+
if ("throw" !== record.type) {
|
136
|
+
var result = record.arg,
|
137
|
+
value = result.value;
|
138
|
+
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
139
|
+
invoke("next", value, resolve, reject);
|
140
|
+
}, function (err) {
|
141
|
+
invoke("throw", err, resolve, reject);
|
142
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
143
|
+
result.value = unwrapped, resolve(result);
|
144
|
+
}, function (error) {
|
145
|
+
return invoke("throw", error, resolve, reject);
|
146
|
+
});
|
147
|
+
}
|
148
|
+
|
149
|
+
reject(record.arg);
|
150
|
+
}
|
151
|
+
|
152
|
+
var previousPromise;
|
153
|
+
|
154
|
+
this._invoke = function (method, arg) {
|
155
|
+
function callInvokeWithMethodAndArg() {
|
156
|
+
return new PromiseImpl(function (resolve, reject) {
|
157
|
+
invoke(method, arg, resolve, reject);
|
158
|
+
});
|
159
|
+
}
|
160
|
+
|
161
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
162
|
+
};
|
163
|
+
}
|
164
|
+
|
165
|
+
function maybeInvokeDelegate(delegate, context) {
|
166
|
+
var method = delegate.iterator[context.method];
|
167
|
+
|
168
|
+
if (undefined === method) {
|
169
|
+
if (context.delegate = null, "throw" === context.method) {
|
170
|
+
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
171
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
172
|
+
}
|
173
|
+
|
174
|
+
return ContinueSentinel;
|
175
|
+
}
|
176
|
+
|
177
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
178
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
179
|
+
var info = record.arg;
|
180
|
+
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);
|
181
|
+
}
|
182
|
+
|
183
|
+
function pushTryEntry(locs) {
|
184
|
+
var entry = {
|
185
|
+
tryLoc: locs[0]
|
186
|
+
};
|
187
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
188
|
+
}
|
189
|
+
|
190
|
+
function resetTryEntry(entry) {
|
191
|
+
var record = entry.completion || {};
|
192
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
193
|
+
}
|
194
|
+
|
195
|
+
function Context(tryLocsList) {
|
196
|
+
this.tryEntries = [{
|
197
|
+
tryLoc: "root"
|
198
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
199
|
+
}
|
200
|
+
|
201
|
+
function values(iterable) {
|
202
|
+
if (iterable) {
|
203
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
204
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
205
|
+
if ("function" == typeof iterable.next) return iterable;
|
206
|
+
|
207
|
+
if (!isNaN(iterable.length)) {
|
208
|
+
var i = -1,
|
209
|
+
next = function next() {
|
210
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
211
|
+
|
212
|
+
return next.value = undefined, next.done = !0, next;
|
213
|
+
};
|
214
|
+
|
215
|
+
return next.next = next;
|
216
|
+
}
|
217
|
+
}
|
218
|
+
|
219
|
+
return {
|
220
|
+
next: doneResult
|
221
|
+
};
|
222
|
+
}
|
223
|
+
|
224
|
+
function doneResult() {
|
225
|
+
return {
|
226
|
+
value: undefined,
|
227
|
+
done: !0
|
228
|
+
};
|
229
|
+
}
|
230
|
+
|
231
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
232
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
233
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
234
|
+
}, exports.mark = function (genFun) {
|
235
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
236
|
+
}, exports.awrap = function (arg) {
|
237
|
+
return {
|
238
|
+
__await: arg
|
239
|
+
};
|
240
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
241
|
+
return this;
|
242
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
243
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
244
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
245
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
246
|
+
return result.done ? result.value : iter.next();
|
247
|
+
});
|
248
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
249
|
+
return this;
|
250
|
+
}), define(Gp, "toString", function () {
|
251
|
+
return "[object Generator]";
|
252
|
+
}), exports.keys = function (object) {
|
253
|
+
var keys = [];
|
254
|
+
|
255
|
+
for (var key in object) keys.push(key);
|
256
|
+
|
257
|
+
return keys.reverse(), function next() {
|
258
|
+
for (; keys.length;) {
|
259
|
+
var key = keys.pop();
|
260
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
261
|
+
}
|
262
|
+
|
263
|
+
return next.done = !0, next;
|
264
|
+
};
|
265
|
+
}, exports.values = values, Context.prototype = {
|
266
|
+
constructor: Context,
|
267
|
+
reset: function (skipTempReset) {
|
268
|
+
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);
|
269
|
+
},
|
270
|
+
stop: function () {
|
271
|
+
this.done = !0;
|
272
|
+
var rootRecord = this.tryEntries[0].completion;
|
273
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
274
|
+
return this.rval;
|
275
|
+
},
|
276
|
+
dispatchException: function (exception) {
|
277
|
+
if (this.done) throw exception;
|
278
|
+
var context = this;
|
279
|
+
|
280
|
+
function handle(loc, caught) {
|
281
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
282
|
+
}
|
283
|
+
|
284
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
285
|
+
var entry = this.tryEntries[i],
|
286
|
+
record = entry.completion;
|
287
|
+
if ("root" === entry.tryLoc) return handle("end");
|
288
|
+
|
289
|
+
if (entry.tryLoc <= this.prev) {
|
290
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
291
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
292
|
+
|
293
|
+
if (hasCatch && hasFinally) {
|
294
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
295
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
296
|
+
} else if (hasCatch) {
|
297
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
298
|
+
} else {
|
299
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
300
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
301
|
+
}
|
302
|
+
}
|
303
|
+
}
|
304
|
+
},
|
305
|
+
abrupt: function (type, arg) {
|
306
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
307
|
+
var entry = this.tryEntries[i];
|
308
|
+
|
309
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
310
|
+
var finallyEntry = entry;
|
311
|
+
break;
|
312
|
+
}
|
313
|
+
}
|
314
|
+
|
315
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
316
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
317
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
318
|
+
},
|
319
|
+
complete: function (record, afterLoc) {
|
320
|
+
if ("throw" === record.type) throw record.arg;
|
321
|
+
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;
|
322
|
+
},
|
323
|
+
finish: function (finallyLoc) {
|
324
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
325
|
+
var entry = this.tryEntries[i];
|
326
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
327
|
+
}
|
328
|
+
},
|
329
|
+
catch: function (tryLoc) {
|
330
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
331
|
+
var entry = this.tryEntries[i];
|
332
|
+
|
333
|
+
if (entry.tryLoc === tryLoc) {
|
334
|
+
var record = entry.completion;
|
335
|
+
|
336
|
+
if ("throw" === record.type) {
|
337
|
+
var thrown = record.arg;
|
338
|
+
resetTryEntry(entry);
|
339
|
+
}
|
340
|
+
|
341
|
+
return thrown;
|
342
|
+
}
|
343
|
+
}
|
344
|
+
|
345
|
+
throw new Error("illegal catch attempt");
|
346
|
+
},
|
347
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
348
|
+
return this.delegate = {
|
349
|
+
iterator: values(iterable),
|
350
|
+
resultName: resultName,
|
351
|
+
nextLoc: nextLoc
|
352
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
353
|
+
}
|
354
|
+
}, exports;
|
355
|
+
}
|
356
|
+
|
12
357
|
function _wrapRegExp() {
|
13
358
|
_wrapRegExp = function (re, groups) {
|
14
359
|
return new BabelRegExp(re, void 0, groups);
|
@@ -273,766 +618,6 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
273
618
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
274
619
|
}
|
275
620
|
|
276
|
-
function createCommonjsModule(fn, module) {
|
277
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
278
|
-
}
|
279
|
-
|
280
|
-
var runtime_1 = createCommonjsModule(function (module) {
|
281
|
-
/**
|
282
|
-
* Copyright (c) 2014-present, Facebook, Inc.
|
283
|
-
*
|
284
|
-
* This source code is licensed under the MIT license found in the
|
285
|
-
* LICENSE file in the root directory of this source tree.
|
286
|
-
*/
|
287
|
-
|
288
|
-
var runtime = (function (exports) {
|
289
|
-
|
290
|
-
var Op = Object.prototype;
|
291
|
-
var hasOwn = Op.hasOwnProperty;
|
292
|
-
var undefined$1; // More compressible than void 0.
|
293
|
-
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
294
|
-
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
295
|
-
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
296
|
-
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
297
|
-
|
298
|
-
function define(obj, key, value) {
|
299
|
-
Object.defineProperty(obj, key, {
|
300
|
-
value: value,
|
301
|
-
enumerable: true,
|
302
|
-
configurable: true,
|
303
|
-
writable: true
|
304
|
-
});
|
305
|
-
return obj[key];
|
306
|
-
}
|
307
|
-
try {
|
308
|
-
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
309
|
-
define({}, "");
|
310
|
-
} catch (err) {
|
311
|
-
define = function(obj, key, value) {
|
312
|
-
return obj[key] = value;
|
313
|
-
};
|
314
|
-
}
|
315
|
-
|
316
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
317
|
-
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
318
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
319
|
-
var generator = Object.create(protoGenerator.prototype);
|
320
|
-
var context = new Context(tryLocsList || []);
|
321
|
-
|
322
|
-
// The ._invoke method unifies the implementations of the .next,
|
323
|
-
// .throw, and .return methods.
|
324
|
-
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
325
|
-
|
326
|
-
return generator;
|
327
|
-
}
|
328
|
-
exports.wrap = wrap;
|
329
|
-
|
330
|
-
// Try/catch helper to minimize deoptimizations. Returns a completion
|
331
|
-
// record like context.tryEntries[i].completion. This interface could
|
332
|
-
// have been (and was previously) designed to take a closure to be
|
333
|
-
// invoked without arguments, but in all the cases we care about we
|
334
|
-
// already have an existing method we want to call, so there's no need
|
335
|
-
// to create a new function object. We can even get away with assuming
|
336
|
-
// the method takes exactly one argument, since that happens to be true
|
337
|
-
// in every case, so we don't have to touch the arguments object. The
|
338
|
-
// only additional allocation required is the completion record, which
|
339
|
-
// has a stable shape and so hopefully should be cheap to allocate.
|
340
|
-
function tryCatch(fn, obj, arg) {
|
341
|
-
try {
|
342
|
-
return { type: "normal", arg: fn.call(obj, arg) };
|
343
|
-
} catch (err) {
|
344
|
-
return { type: "throw", arg: err };
|
345
|
-
}
|
346
|
-
}
|
347
|
-
|
348
|
-
var GenStateSuspendedStart = "suspendedStart";
|
349
|
-
var GenStateSuspendedYield = "suspendedYield";
|
350
|
-
var GenStateExecuting = "executing";
|
351
|
-
var GenStateCompleted = "completed";
|
352
|
-
|
353
|
-
// Returning this object from the innerFn has the same effect as
|
354
|
-
// breaking out of the dispatch switch statement.
|
355
|
-
var ContinueSentinel = {};
|
356
|
-
|
357
|
-
// Dummy constructor functions that we use as the .constructor and
|
358
|
-
// .constructor.prototype properties for functions that return Generator
|
359
|
-
// objects. For full spec compliance, you may wish to configure your
|
360
|
-
// minifier not to mangle the names of these two functions.
|
361
|
-
function Generator() {}
|
362
|
-
function GeneratorFunction() {}
|
363
|
-
function GeneratorFunctionPrototype() {}
|
364
|
-
|
365
|
-
// This is a polyfill for %IteratorPrototype% for environments that
|
366
|
-
// don't natively support it.
|
367
|
-
var IteratorPrototype = {};
|
368
|
-
define(IteratorPrototype, iteratorSymbol, function () {
|
369
|
-
return this;
|
370
|
-
});
|
371
|
-
|
372
|
-
var getProto = Object.getPrototypeOf;
|
373
|
-
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
374
|
-
if (NativeIteratorPrototype &&
|
375
|
-
NativeIteratorPrototype !== Op &&
|
376
|
-
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
377
|
-
// This environment has a native %IteratorPrototype%; use it instead
|
378
|
-
// of the polyfill.
|
379
|
-
IteratorPrototype = NativeIteratorPrototype;
|
380
|
-
}
|
381
|
-
|
382
|
-
var Gp = GeneratorFunctionPrototype.prototype =
|
383
|
-
Generator.prototype = Object.create(IteratorPrototype);
|
384
|
-
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
385
|
-
define(Gp, "constructor", GeneratorFunctionPrototype);
|
386
|
-
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
387
|
-
GeneratorFunction.displayName = define(
|
388
|
-
GeneratorFunctionPrototype,
|
389
|
-
toStringTagSymbol,
|
390
|
-
"GeneratorFunction"
|
391
|
-
);
|
392
|
-
|
393
|
-
// Helper for defining the .next, .throw, and .return methods of the
|
394
|
-
// Iterator interface in terms of a single ._invoke method.
|
395
|
-
function defineIteratorMethods(prototype) {
|
396
|
-
["next", "throw", "return"].forEach(function(method) {
|
397
|
-
define(prototype, method, function(arg) {
|
398
|
-
return this._invoke(method, arg);
|
399
|
-
});
|
400
|
-
});
|
401
|
-
}
|
402
|
-
|
403
|
-
exports.isGeneratorFunction = function(genFun) {
|
404
|
-
var ctor = typeof genFun === "function" && genFun.constructor;
|
405
|
-
return ctor
|
406
|
-
? ctor === GeneratorFunction ||
|
407
|
-
// For the native GeneratorFunction constructor, the best we can
|
408
|
-
// do is to check its .name property.
|
409
|
-
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
410
|
-
: false;
|
411
|
-
};
|
412
|
-
|
413
|
-
exports.mark = function(genFun) {
|
414
|
-
if (Object.setPrototypeOf) {
|
415
|
-
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
416
|
-
} else {
|
417
|
-
genFun.__proto__ = GeneratorFunctionPrototype;
|
418
|
-
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
419
|
-
}
|
420
|
-
genFun.prototype = Object.create(Gp);
|
421
|
-
return genFun;
|
422
|
-
};
|
423
|
-
|
424
|
-
// Within the body of any async function, `await x` is transformed to
|
425
|
-
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
426
|
-
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
427
|
-
// meant to be awaited.
|
428
|
-
exports.awrap = function(arg) {
|
429
|
-
return { __await: arg };
|
430
|
-
};
|
431
|
-
|
432
|
-
function AsyncIterator(generator, PromiseImpl) {
|
433
|
-
function invoke(method, arg, resolve, reject) {
|
434
|
-
var record = tryCatch(generator[method], generator, arg);
|
435
|
-
if (record.type === "throw") {
|
436
|
-
reject(record.arg);
|
437
|
-
} else {
|
438
|
-
var result = record.arg;
|
439
|
-
var value = result.value;
|
440
|
-
if (value &&
|
441
|
-
typeof value === "object" &&
|
442
|
-
hasOwn.call(value, "__await")) {
|
443
|
-
return PromiseImpl.resolve(value.__await).then(function(value) {
|
444
|
-
invoke("next", value, resolve, reject);
|
445
|
-
}, function(err) {
|
446
|
-
invoke("throw", err, resolve, reject);
|
447
|
-
});
|
448
|
-
}
|
449
|
-
|
450
|
-
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
451
|
-
// When a yielded Promise is resolved, its final value becomes
|
452
|
-
// the .value of the Promise<{value,done}> result for the
|
453
|
-
// current iteration.
|
454
|
-
result.value = unwrapped;
|
455
|
-
resolve(result);
|
456
|
-
}, function(error) {
|
457
|
-
// If a rejected Promise was yielded, throw the rejection back
|
458
|
-
// into the async generator function so it can be handled there.
|
459
|
-
return invoke("throw", error, resolve, reject);
|
460
|
-
});
|
461
|
-
}
|
462
|
-
}
|
463
|
-
|
464
|
-
var previousPromise;
|
465
|
-
|
466
|
-
function enqueue(method, arg) {
|
467
|
-
function callInvokeWithMethodAndArg() {
|
468
|
-
return new PromiseImpl(function(resolve, reject) {
|
469
|
-
invoke(method, arg, resolve, reject);
|
470
|
-
});
|
471
|
-
}
|
472
|
-
|
473
|
-
return previousPromise =
|
474
|
-
// If enqueue has been called before, then we want to wait until
|
475
|
-
// all previous Promises have been resolved before calling invoke,
|
476
|
-
// so that results are always delivered in the correct order. If
|
477
|
-
// enqueue has not been called before, then it is important to
|
478
|
-
// call invoke immediately, without waiting on a callback to fire,
|
479
|
-
// so that the async generator function has the opportunity to do
|
480
|
-
// any necessary setup in a predictable way. This predictability
|
481
|
-
// is why the Promise constructor synchronously invokes its
|
482
|
-
// executor callback, and why async functions synchronously
|
483
|
-
// execute code before the first await. Since we implement simple
|
484
|
-
// async functions in terms of async generators, it is especially
|
485
|
-
// important to get this right, even though it requires care.
|
486
|
-
previousPromise ? previousPromise.then(
|
487
|
-
callInvokeWithMethodAndArg,
|
488
|
-
// Avoid propagating failures to Promises returned by later
|
489
|
-
// invocations of the iterator.
|
490
|
-
callInvokeWithMethodAndArg
|
491
|
-
) : callInvokeWithMethodAndArg();
|
492
|
-
}
|
493
|
-
|
494
|
-
// Define the unified helper method that is used to implement .next,
|
495
|
-
// .throw, and .return (see defineIteratorMethods).
|
496
|
-
this._invoke = enqueue;
|
497
|
-
}
|
498
|
-
|
499
|
-
defineIteratorMethods(AsyncIterator.prototype);
|
500
|
-
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
501
|
-
return this;
|
502
|
-
});
|
503
|
-
exports.AsyncIterator = AsyncIterator;
|
504
|
-
|
505
|
-
// Note that simple async functions are implemented on top of
|
506
|
-
// AsyncIterator objects; they just return a Promise for the value of
|
507
|
-
// the final result produced by the iterator.
|
508
|
-
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
509
|
-
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
510
|
-
|
511
|
-
var iter = new AsyncIterator(
|
512
|
-
wrap(innerFn, outerFn, self, tryLocsList),
|
513
|
-
PromiseImpl
|
514
|
-
);
|
515
|
-
|
516
|
-
return exports.isGeneratorFunction(outerFn)
|
517
|
-
? iter // If outerFn is a generator, return the full iterator.
|
518
|
-
: iter.next().then(function(result) {
|
519
|
-
return result.done ? result.value : iter.next();
|
520
|
-
});
|
521
|
-
};
|
522
|
-
|
523
|
-
function makeInvokeMethod(innerFn, self, context) {
|
524
|
-
var state = GenStateSuspendedStart;
|
525
|
-
|
526
|
-
return function invoke(method, arg) {
|
527
|
-
if (state === GenStateExecuting) {
|
528
|
-
throw new Error("Generator is already running");
|
529
|
-
}
|
530
|
-
|
531
|
-
if (state === GenStateCompleted) {
|
532
|
-
if (method === "throw") {
|
533
|
-
throw arg;
|
534
|
-
}
|
535
|
-
|
536
|
-
// Be forgiving, per 25.3.3.3.3 of the spec:
|
537
|
-
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
538
|
-
return doneResult();
|
539
|
-
}
|
540
|
-
|
541
|
-
context.method = method;
|
542
|
-
context.arg = arg;
|
543
|
-
|
544
|
-
while (true) {
|
545
|
-
var delegate = context.delegate;
|
546
|
-
if (delegate) {
|
547
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
548
|
-
if (delegateResult) {
|
549
|
-
if (delegateResult === ContinueSentinel) continue;
|
550
|
-
return delegateResult;
|
551
|
-
}
|
552
|
-
}
|
553
|
-
|
554
|
-
if (context.method === "next") {
|
555
|
-
// Setting context._sent for legacy support of Babel's
|
556
|
-
// function.sent implementation.
|
557
|
-
context.sent = context._sent = context.arg;
|
558
|
-
|
559
|
-
} else if (context.method === "throw") {
|
560
|
-
if (state === GenStateSuspendedStart) {
|
561
|
-
state = GenStateCompleted;
|
562
|
-
throw context.arg;
|
563
|
-
}
|
564
|
-
|
565
|
-
context.dispatchException(context.arg);
|
566
|
-
|
567
|
-
} else if (context.method === "return") {
|
568
|
-
context.abrupt("return", context.arg);
|
569
|
-
}
|
570
|
-
|
571
|
-
state = GenStateExecuting;
|
572
|
-
|
573
|
-
var record = tryCatch(innerFn, self, context);
|
574
|
-
if (record.type === "normal") {
|
575
|
-
// If an exception is thrown from innerFn, we leave state ===
|
576
|
-
// GenStateExecuting and loop back for another invocation.
|
577
|
-
state = context.done
|
578
|
-
? GenStateCompleted
|
579
|
-
: GenStateSuspendedYield;
|
580
|
-
|
581
|
-
if (record.arg === ContinueSentinel) {
|
582
|
-
continue;
|
583
|
-
}
|
584
|
-
|
585
|
-
return {
|
586
|
-
value: record.arg,
|
587
|
-
done: context.done
|
588
|
-
};
|
589
|
-
|
590
|
-
} else if (record.type === "throw") {
|
591
|
-
state = GenStateCompleted;
|
592
|
-
// Dispatch the exception by looping back around to the
|
593
|
-
// context.dispatchException(context.arg) call above.
|
594
|
-
context.method = "throw";
|
595
|
-
context.arg = record.arg;
|
596
|
-
}
|
597
|
-
}
|
598
|
-
};
|
599
|
-
}
|
600
|
-
|
601
|
-
// Call delegate.iterator[context.method](context.arg) and handle the
|
602
|
-
// result, either by returning a { value, done } result from the
|
603
|
-
// delegate iterator, or by modifying context.method and context.arg,
|
604
|
-
// setting context.delegate to null, and returning the ContinueSentinel.
|
605
|
-
function maybeInvokeDelegate(delegate, context) {
|
606
|
-
var method = delegate.iterator[context.method];
|
607
|
-
if (method === undefined$1) {
|
608
|
-
// A .throw or .return when the delegate iterator has no .throw
|
609
|
-
// method always terminates the yield* loop.
|
610
|
-
context.delegate = null;
|
611
|
-
|
612
|
-
if (context.method === "throw") {
|
613
|
-
// Note: ["return"] must be used for ES3 parsing compatibility.
|
614
|
-
if (delegate.iterator["return"]) {
|
615
|
-
// If the delegate iterator has a return method, give it a
|
616
|
-
// chance to clean up.
|
617
|
-
context.method = "return";
|
618
|
-
context.arg = undefined$1;
|
619
|
-
maybeInvokeDelegate(delegate, context);
|
620
|
-
|
621
|
-
if (context.method === "throw") {
|
622
|
-
// If maybeInvokeDelegate(context) changed context.method from
|
623
|
-
// "return" to "throw", let that override the TypeError below.
|
624
|
-
return ContinueSentinel;
|
625
|
-
}
|
626
|
-
}
|
627
|
-
|
628
|
-
context.method = "throw";
|
629
|
-
context.arg = new TypeError(
|
630
|
-
"The iterator does not provide a 'throw' method");
|
631
|
-
}
|
632
|
-
|
633
|
-
return ContinueSentinel;
|
634
|
-
}
|
635
|
-
|
636
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
637
|
-
|
638
|
-
if (record.type === "throw") {
|
639
|
-
context.method = "throw";
|
640
|
-
context.arg = record.arg;
|
641
|
-
context.delegate = null;
|
642
|
-
return ContinueSentinel;
|
643
|
-
}
|
644
|
-
|
645
|
-
var info = record.arg;
|
646
|
-
|
647
|
-
if (! info) {
|
648
|
-
context.method = "throw";
|
649
|
-
context.arg = new TypeError("iterator result is not an object");
|
650
|
-
context.delegate = null;
|
651
|
-
return ContinueSentinel;
|
652
|
-
}
|
653
|
-
|
654
|
-
if (info.done) {
|
655
|
-
// Assign the result of the finished delegate to the temporary
|
656
|
-
// variable specified by delegate.resultName (see delegateYield).
|
657
|
-
context[delegate.resultName] = info.value;
|
658
|
-
|
659
|
-
// Resume execution at the desired location (see delegateYield).
|
660
|
-
context.next = delegate.nextLoc;
|
661
|
-
|
662
|
-
// If context.method was "throw" but the delegate handled the
|
663
|
-
// exception, let the outer generator proceed normally. If
|
664
|
-
// context.method was "next", forget context.arg since it has been
|
665
|
-
// "consumed" by the delegate iterator. If context.method was
|
666
|
-
// "return", allow the original .return call to continue in the
|
667
|
-
// outer generator.
|
668
|
-
if (context.method !== "return") {
|
669
|
-
context.method = "next";
|
670
|
-
context.arg = undefined$1;
|
671
|
-
}
|
672
|
-
|
673
|
-
} else {
|
674
|
-
// Re-yield the result returned by the delegate method.
|
675
|
-
return info;
|
676
|
-
}
|
677
|
-
|
678
|
-
// The delegate iterator is finished, so forget it and continue with
|
679
|
-
// the outer generator.
|
680
|
-
context.delegate = null;
|
681
|
-
return ContinueSentinel;
|
682
|
-
}
|
683
|
-
|
684
|
-
// Define Generator.prototype.{next,throw,return} in terms of the
|
685
|
-
// unified ._invoke helper method.
|
686
|
-
defineIteratorMethods(Gp);
|
687
|
-
|
688
|
-
define(Gp, toStringTagSymbol, "Generator");
|
689
|
-
|
690
|
-
// A Generator should always return itself as the iterator object when the
|
691
|
-
// @@iterator function is called on it. Some browsers' implementations of the
|
692
|
-
// iterator prototype chain incorrectly implement this, causing the Generator
|
693
|
-
// object to not be returned from this call. This ensures that doesn't happen.
|
694
|
-
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
695
|
-
define(Gp, iteratorSymbol, function() {
|
696
|
-
return this;
|
697
|
-
});
|
698
|
-
|
699
|
-
define(Gp, "toString", function() {
|
700
|
-
return "[object Generator]";
|
701
|
-
});
|
702
|
-
|
703
|
-
function pushTryEntry(locs) {
|
704
|
-
var entry = { tryLoc: locs[0] };
|
705
|
-
|
706
|
-
if (1 in locs) {
|
707
|
-
entry.catchLoc = locs[1];
|
708
|
-
}
|
709
|
-
|
710
|
-
if (2 in locs) {
|
711
|
-
entry.finallyLoc = locs[2];
|
712
|
-
entry.afterLoc = locs[3];
|
713
|
-
}
|
714
|
-
|
715
|
-
this.tryEntries.push(entry);
|
716
|
-
}
|
717
|
-
|
718
|
-
function resetTryEntry(entry) {
|
719
|
-
var record = entry.completion || {};
|
720
|
-
record.type = "normal";
|
721
|
-
delete record.arg;
|
722
|
-
entry.completion = record;
|
723
|
-
}
|
724
|
-
|
725
|
-
function Context(tryLocsList) {
|
726
|
-
// The root entry object (effectively a try statement without a catch
|
727
|
-
// or a finally block) gives us a place to store values thrown from
|
728
|
-
// locations where there is no enclosing try statement.
|
729
|
-
this.tryEntries = [{ tryLoc: "root" }];
|
730
|
-
tryLocsList.forEach(pushTryEntry, this);
|
731
|
-
this.reset(true);
|
732
|
-
}
|
733
|
-
|
734
|
-
exports.keys = function(object) {
|
735
|
-
var keys = [];
|
736
|
-
for (var key in object) {
|
737
|
-
keys.push(key);
|
738
|
-
}
|
739
|
-
keys.reverse();
|
740
|
-
|
741
|
-
// Rather than returning an object with a next method, we keep
|
742
|
-
// things simple and return the next function itself.
|
743
|
-
return function next() {
|
744
|
-
while (keys.length) {
|
745
|
-
var key = keys.pop();
|
746
|
-
if (key in object) {
|
747
|
-
next.value = key;
|
748
|
-
next.done = false;
|
749
|
-
return next;
|
750
|
-
}
|
751
|
-
}
|
752
|
-
|
753
|
-
// To avoid creating an additional object, we just hang the .value
|
754
|
-
// and .done properties off the next function object itself. This
|
755
|
-
// also ensures that the minifier will not anonymize the function.
|
756
|
-
next.done = true;
|
757
|
-
return next;
|
758
|
-
};
|
759
|
-
};
|
760
|
-
|
761
|
-
function values(iterable) {
|
762
|
-
if (iterable) {
|
763
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
764
|
-
if (iteratorMethod) {
|
765
|
-
return iteratorMethod.call(iterable);
|
766
|
-
}
|
767
|
-
|
768
|
-
if (typeof iterable.next === "function") {
|
769
|
-
return iterable;
|
770
|
-
}
|
771
|
-
|
772
|
-
if (!isNaN(iterable.length)) {
|
773
|
-
var i = -1, next = function next() {
|
774
|
-
while (++i < iterable.length) {
|
775
|
-
if (hasOwn.call(iterable, i)) {
|
776
|
-
next.value = iterable[i];
|
777
|
-
next.done = false;
|
778
|
-
return next;
|
779
|
-
}
|
780
|
-
}
|
781
|
-
|
782
|
-
next.value = undefined$1;
|
783
|
-
next.done = true;
|
784
|
-
|
785
|
-
return next;
|
786
|
-
};
|
787
|
-
|
788
|
-
return next.next = next;
|
789
|
-
}
|
790
|
-
}
|
791
|
-
|
792
|
-
// Return an iterator with no values.
|
793
|
-
return { next: doneResult };
|
794
|
-
}
|
795
|
-
exports.values = values;
|
796
|
-
|
797
|
-
function doneResult() {
|
798
|
-
return { value: undefined$1, done: true };
|
799
|
-
}
|
800
|
-
|
801
|
-
Context.prototype = {
|
802
|
-
constructor: Context,
|
803
|
-
|
804
|
-
reset: function(skipTempReset) {
|
805
|
-
this.prev = 0;
|
806
|
-
this.next = 0;
|
807
|
-
// Resetting context._sent for legacy support of Babel's
|
808
|
-
// function.sent implementation.
|
809
|
-
this.sent = this._sent = undefined$1;
|
810
|
-
this.done = false;
|
811
|
-
this.delegate = null;
|
812
|
-
|
813
|
-
this.method = "next";
|
814
|
-
this.arg = undefined$1;
|
815
|
-
|
816
|
-
this.tryEntries.forEach(resetTryEntry);
|
817
|
-
|
818
|
-
if (!skipTempReset) {
|
819
|
-
for (var name in this) {
|
820
|
-
// Not sure about the optimal order of these conditions:
|
821
|
-
if (name.charAt(0) === "t" &&
|
822
|
-
hasOwn.call(this, name) &&
|
823
|
-
!isNaN(+name.slice(1))) {
|
824
|
-
this[name] = undefined$1;
|
825
|
-
}
|
826
|
-
}
|
827
|
-
}
|
828
|
-
},
|
829
|
-
|
830
|
-
stop: function() {
|
831
|
-
this.done = true;
|
832
|
-
|
833
|
-
var rootEntry = this.tryEntries[0];
|
834
|
-
var rootRecord = rootEntry.completion;
|
835
|
-
if (rootRecord.type === "throw") {
|
836
|
-
throw rootRecord.arg;
|
837
|
-
}
|
838
|
-
|
839
|
-
return this.rval;
|
840
|
-
},
|
841
|
-
|
842
|
-
dispatchException: function(exception) {
|
843
|
-
if (this.done) {
|
844
|
-
throw exception;
|
845
|
-
}
|
846
|
-
|
847
|
-
var context = this;
|
848
|
-
function handle(loc, caught) {
|
849
|
-
record.type = "throw";
|
850
|
-
record.arg = exception;
|
851
|
-
context.next = loc;
|
852
|
-
|
853
|
-
if (caught) {
|
854
|
-
// If the dispatched exception was caught by a catch block,
|
855
|
-
// then let that catch block handle the exception normally.
|
856
|
-
context.method = "next";
|
857
|
-
context.arg = undefined$1;
|
858
|
-
}
|
859
|
-
|
860
|
-
return !! caught;
|
861
|
-
}
|
862
|
-
|
863
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
864
|
-
var entry = this.tryEntries[i];
|
865
|
-
var record = entry.completion;
|
866
|
-
|
867
|
-
if (entry.tryLoc === "root") {
|
868
|
-
// Exception thrown outside of any try block that could handle
|
869
|
-
// it, so set the completion value of the entire function to
|
870
|
-
// throw the exception.
|
871
|
-
return handle("end");
|
872
|
-
}
|
873
|
-
|
874
|
-
if (entry.tryLoc <= this.prev) {
|
875
|
-
var hasCatch = hasOwn.call(entry, "catchLoc");
|
876
|
-
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
877
|
-
|
878
|
-
if (hasCatch && hasFinally) {
|
879
|
-
if (this.prev < entry.catchLoc) {
|
880
|
-
return handle(entry.catchLoc, true);
|
881
|
-
} else if (this.prev < entry.finallyLoc) {
|
882
|
-
return handle(entry.finallyLoc);
|
883
|
-
}
|
884
|
-
|
885
|
-
} else if (hasCatch) {
|
886
|
-
if (this.prev < entry.catchLoc) {
|
887
|
-
return handle(entry.catchLoc, true);
|
888
|
-
}
|
889
|
-
|
890
|
-
} else if (hasFinally) {
|
891
|
-
if (this.prev < entry.finallyLoc) {
|
892
|
-
return handle(entry.finallyLoc);
|
893
|
-
}
|
894
|
-
|
895
|
-
} else {
|
896
|
-
throw new Error("try statement without catch or finally");
|
897
|
-
}
|
898
|
-
}
|
899
|
-
}
|
900
|
-
},
|
901
|
-
|
902
|
-
abrupt: function(type, arg) {
|
903
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
904
|
-
var entry = this.tryEntries[i];
|
905
|
-
if (entry.tryLoc <= this.prev &&
|
906
|
-
hasOwn.call(entry, "finallyLoc") &&
|
907
|
-
this.prev < entry.finallyLoc) {
|
908
|
-
var finallyEntry = entry;
|
909
|
-
break;
|
910
|
-
}
|
911
|
-
}
|
912
|
-
|
913
|
-
if (finallyEntry &&
|
914
|
-
(type === "break" ||
|
915
|
-
type === "continue") &&
|
916
|
-
finallyEntry.tryLoc <= arg &&
|
917
|
-
arg <= finallyEntry.finallyLoc) {
|
918
|
-
// Ignore the finally entry if control is not jumping to a
|
919
|
-
// location outside the try/catch block.
|
920
|
-
finallyEntry = null;
|
921
|
-
}
|
922
|
-
|
923
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
924
|
-
record.type = type;
|
925
|
-
record.arg = arg;
|
926
|
-
|
927
|
-
if (finallyEntry) {
|
928
|
-
this.method = "next";
|
929
|
-
this.next = finallyEntry.finallyLoc;
|
930
|
-
return ContinueSentinel;
|
931
|
-
}
|
932
|
-
|
933
|
-
return this.complete(record);
|
934
|
-
},
|
935
|
-
|
936
|
-
complete: function(record, afterLoc) {
|
937
|
-
if (record.type === "throw") {
|
938
|
-
throw record.arg;
|
939
|
-
}
|
940
|
-
|
941
|
-
if (record.type === "break" ||
|
942
|
-
record.type === "continue") {
|
943
|
-
this.next = record.arg;
|
944
|
-
} else if (record.type === "return") {
|
945
|
-
this.rval = this.arg = record.arg;
|
946
|
-
this.method = "return";
|
947
|
-
this.next = "end";
|
948
|
-
} else if (record.type === "normal" && afterLoc) {
|
949
|
-
this.next = afterLoc;
|
950
|
-
}
|
951
|
-
|
952
|
-
return ContinueSentinel;
|
953
|
-
},
|
954
|
-
|
955
|
-
finish: function(finallyLoc) {
|
956
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
957
|
-
var entry = this.tryEntries[i];
|
958
|
-
if (entry.finallyLoc === finallyLoc) {
|
959
|
-
this.complete(entry.completion, entry.afterLoc);
|
960
|
-
resetTryEntry(entry);
|
961
|
-
return ContinueSentinel;
|
962
|
-
}
|
963
|
-
}
|
964
|
-
},
|
965
|
-
|
966
|
-
"catch": function(tryLoc) {
|
967
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
968
|
-
var entry = this.tryEntries[i];
|
969
|
-
if (entry.tryLoc === tryLoc) {
|
970
|
-
var record = entry.completion;
|
971
|
-
if (record.type === "throw") {
|
972
|
-
var thrown = record.arg;
|
973
|
-
resetTryEntry(entry);
|
974
|
-
}
|
975
|
-
return thrown;
|
976
|
-
}
|
977
|
-
}
|
978
|
-
|
979
|
-
// The context.catch method must only be called with a location
|
980
|
-
// argument that corresponds to a known catch block.
|
981
|
-
throw new Error("illegal catch attempt");
|
982
|
-
},
|
983
|
-
|
984
|
-
delegateYield: function(iterable, resultName, nextLoc) {
|
985
|
-
this.delegate = {
|
986
|
-
iterator: values(iterable),
|
987
|
-
resultName: resultName,
|
988
|
-
nextLoc: nextLoc
|
989
|
-
};
|
990
|
-
|
991
|
-
if (this.method === "next") {
|
992
|
-
// Deliberately forget the last sent value so that we don't
|
993
|
-
// accidentally pass it on to the delegate.
|
994
|
-
this.arg = undefined$1;
|
995
|
-
}
|
996
|
-
|
997
|
-
return ContinueSentinel;
|
998
|
-
}
|
999
|
-
};
|
1000
|
-
|
1001
|
-
// Regardless of whether this script is executing as a CommonJS module
|
1002
|
-
// or not, return the runtime object so that we can declare the variable
|
1003
|
-
// regeneratorRuntime in the outer scope, which allows this module to be
|
1004
|
-
// injected easily by `bin/regenerator --include-runtime script.js`.
|
1005
|
-
return exports;
|
1006
|
-
|
1007
|
-
}(
|
1008
|
-
// If this script is executing as a CommonJS module, use module.exports
|
1009
|
-
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
1010
|
-
// object. Either way, the resulting object will be used to initialize
|
1011
|
-
// the regeneratorRuntime variable at the top of this file.
|
1012
|
-
module.exports
|
1013
|
-
));
|
1014
|
-
|
1015
|
-
try {
|
1016
|
-
regeneratorRuntime = runtime;
|
1017
|
-
} catch (accidentalStrictMode) {
|
1018
|
-
// This module should not be running in strict mode, so the above
|
1019
|
-
// assignment should always work unless something is misconfigured. Just
|
1020
|
-
// in case runtime.js accidentally runs in strict mode, in modern engines
|
1021
|
-
// we can explicitly access globalThis. In older engines we can escape
|
1022
|
-
// strict mode using a global Function call. This could conceivably fail
|
1023
|
-
// if a Content Security Policy forbids using Function, but in that case
|
1024
|
-
// the proper solution is to fix the accidental strict mode problem. If
|
1025
|
-
// you've misconfigured your bundler to force strict mode and applied a
|
1026
|
-
// CSP to forbid Function, and you're not willing to fix either of those
|
1027
|
-
// problems, please detail your unique predicament in a GitHub issue.
|
1028
|
-
if (typeof globalThis === "object") {
|
1029
|
-
globalThis.regeneratorRuntime = runtime;
|
1030
|
-
} else {
|
1031
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
1032
|
-
}
|
1033
|
-
}
|
1034
|
-
});
|
1035
|
-
|
1036
621
|
var _personalMetaToPrefix;
|
1037
622
|
var personalMetaToPrefix = (_personalMetaToPrefix = {}, _personalMetaToPrefix[initApis.MetadataCategory.Personal] = 'you', _personalMetaToPrefix[initApis.MetadataCategory.ChildPersonal] = 'child', _personalMetaToPrefix[initApis.MetadataCategory.OtherPersonal] = 'other', _personalMetaToPrefix);
|
1038
623
|
/**
|
@@ -1252,9 +837,9 @@ function filterTriggeredAnsweredWithKind(_x, _x2) {
|
|
1252
837
|
*/
|
1253
838
|
|
1254
839
|
function _filterTriggeredAnsweredWithKind() {
|
1255
|
-
_filterTriggeredAnsweredWithKind = _asyncToGenerator( /*#__PURE__*/
|
840
|
+
_filterTriggeredAnsweredWithKind = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(workflowData, kind) {
|
1256
841
|
var flattenedAnswers, triggeredQuestionsWithKind, samePageAnswers, res;
|
1257
|
-
return
|
842
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
1258
843
|
while (1) {
|
1259
844
|
switch (_context.prev = _context.next) {
|
1260
845
|
case 0:
|
@@ -1298,9 +883,9 @@ function getWorkflowDataByCategory(_x3, _x4) {
|
|
1298
883
|
}
|
1299
884
|
|
1300
885
|
function _getWorkflowDataByCategory() {
|
1301
|
-
_getWorkflowDataByCategory = _asyncToGenerator( /*#__PURE__*/
|
886
|
+
_getWorkflowDataByCategory = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(workflowData, category) {
|
1302
887
|
var flattenedAnswers, triggeredQuestions, fields;
|
1303
|
-
return
|
888
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
1304
889
|
while (1) {
|
1305
890
|
switch (_context2.prev = _context2.next) {
|
1306
891
|
case 0:
|
@@ -1371,8 +956,8 @@ function getImagesFromIndexDb(_x5) {
|
|
1371
956
|
*/
|
1372
957
|
|
1373
958
|
function _getImagesFromIndexDb() {
|
1374
|
-
_getImagesFromIndexDb = _asyncToGenerator( /*#__PURE__*/
|
1375
|
-
return
|
959
|
+
_getImagesFromIndexDb = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(answer) {
|
960
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
1376
961
|
while (1) {
|
1377
962
|
switch (_context3.prev = _context3.next) {
|
1378
963
|
case 0:
|
@@ -1401,9 +986,9 @@ function populateWorkflowField(_x6, _x7) {
|
|
1401
986
|
}
|
1402
987
|
|
1403
988
|
function _populateWorkflowField() {
|
1404
|
-
_populateWorkflowField = _asyncToGenerator( /*#__PURE__*/
|
989
|
+
_populateWorkflowField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(question, answerValue) {
|
1405
990
|
var answer, displayedAnswer;
|
1406
|
-
return
|
991
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
1407
992
|
while (1) {
|
1408
993
|
switch (_context4.prev = _context4.next) {
|
1409
994
|
case 0:
|
@@ -1581,10 +1166,10 @@ function registerPatient(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
1581
1166
|
*/
|
1582
1167
|
|
1583
1168
|
function _registerPatient() {
|
1584
|
-
_registerPatient = _asyncToGenerator( /*#__PURE__*/
|
1169
|
+
_registerPatient = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(patientUuid, consultRequest, workflow, oroClient, masterKey, recoveryQA) {
|
1585
1170
|
var consult, lockboxUuid, practitionerAdmin, retry, identity, errorsThrown, _ret;
|
1586
1171
|
|
1587
|
-
return
|
1172
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
1588
1173
|
while (1) {
|
1589
1174
|
switch (_context4.prev = _context4.next) {
|
1590
1175
|
case 0:
|
@@ -1602,11 +1187,11 @@ function _registerPatient() {
|
|
1602
1187
|
}
|
1603
1188
|
|
1604
1189
|
_context4.prev = 7;
|
1605
|
-
return _context4.delegateYield( /*#__PURE__*/
|
1190
|
+
return _context4.delegateYield( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
1606
1191
|
var _consultIndex, _identity, _identity2;
|
1607
1192
|
|
1608
1193
|
var practitioners, grantPromises, consultIndex, consultIndexPromises;
|
1609
|
-
return
|
1194
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
1610
1195
|
while (1) {
|
1611
1196
|
switch (_context3.prev = _context3.next) {
|
1612
1197
|
case 0:
|
@@ -1677,7 +1262,6 @@ function _registerPatient() {
|
|
1677
1262
|
return oroClient.grantLockbox(practitionerAdmin, lockboxUuid)["catch"](function (err) {
|
1678
1263
|
console.error("Error while granting lockbox to practitioner admin " + practitionerAdmin, err); // if we cannot grant to the admin, then the registration will fail
|
1679
1264
|
|
1680
|
-
// if we cannot grant to the admin, then the registration will fail
|
1681
1265
|
errorsThrown.push(err);
|
1682
1266
|
});
|
1683
1267
|
|
@@ -1686,15 +1270,14 @@ function _registerPatient() {
|
|
1686
1270
|
grantPromises = practitioners.filter(function (practitioner) {
|
1687
1271
|
return practitioner.uuid !== practitionerAdmin;
|
1688
1272
|
}).map( /*#__PURE__*/function () {
|
1689
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
1690
|
-
return
|
1273
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(practitioner) {
|
1274
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
1691
1275
|
while (1) {
|
1692
1276
|
switch (_context.prev = _context.next) {
|
1693
1277
|
case 0:
|
1694
1278
|
return _context.abrupt("return", oroClient.grantLockbox(practitioner.uuid, lockboxUuid)["catch"](function (err) {
|
1695
1279
|
console.error("Error while granting lockbox to practitioner", err); // Acceptable to continue as admin has already been granted, but we should still retry until the last retry remains
|
1696
1280
|
|
1697
|
-
// Acceptable to continue as admin has already been granted, but we should still retry until the last retry remains
|
1698
1281
|
if (retry <= 1) return;
|
1699
1282
|
errorsThrown.push(err);
|
1700
1283
|
}));
|
@@ -1720,15 +1303,14 @@ function _registerPatient() {
|
|
1720
1303
|
}], _consultIndex); // the index will identify in which lockbox a consultation resides
|
1721
1304
|
|
1722
1305
|
consultIndexPromises = practitioners.map( /*#__PURE__*/function () {
|
1723
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
1724
|
-
return
|
1306
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(practitioner) {
|
1307
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
1725
1308
|
while (1) {
|
1726
1309
|
switch (_context2.prev = _context2.next) {
|
1727
1310
|
case 0:
|
1728
1311
|
return _context2.abrupt("return", oroClient.vaultIndexAdd(consultIndex, practitioner.uuid)["catch"](function (err) {
|
1729
1312
|
console.error("[SDK: registration] Error while adding to the practitioner's index " + practitioner.uuid, err); // Acceptable to continue as the index can be rebuilt, but we should still retry until the last retry remains
|
1730
1313
|
|
1731
|
-
// Acceptable to continue as the index can be rebuilt, but we should still retry until the last retry remains
|
1732
1314
|
if (retry <= 1) return;else errorsThrown.push(err);
|
1733
1315
|
}));
|
1734
1316
|
|
@@ -1748,7 +1330,6 @@ function _registerPatient() {
|
|
1748
1330
|
return storeImageAliases(consult.uuid, lockboxUuid, workflow, oroClient)["catch"](function (err) {
|
1749
1331
|
console.error('[SDK: registration] Some errors happened during image upload', err); // Acceptable to continue as images can be requested during the consultation, but we should still retry until the last retry remains
|
1750
1332
|
|
1751
|
-
// Acceptable to continue as images can be requested during the consultation, but we should still retry until the last retry remains
|
1752
1333
|
if (retry <= 1) return;else errorsThrown.push(err);
|
1753
1334
|
});
|
1754
1335
|
|
@@ -1769,7 +1350,6 @@ function _registerPatient() {
|
|
1769
1350
|
return oroClient.updateMasterKey(patientUuid, masterKey, lockboxUuid)["catch"](function (err) {
|
1770
1351
|
console.error("[SDK: registration] Error while updating master key", err); /// it's acceptable to continue registration (return old identity)
|
1771
1352
|
|
1772
|
-
/// it's acceptable to continue registration (return old identity)
|
1773
1353
|
if (retry <= 1) return;
|
1774
1354
|
errorsThrown.push(err);
|
1775
1355
|
return identity;
|
@@ -1794,7 +1374,6 @@ function _registerPatient() {
|
|
1794
1374
|
return oroClient.updateSecurityQuestions(patientUuid, recoveryQA.recoverySecurityQuestions, recoveryQA.recoverySecurityAnswers, 2)["catch"](function (err) {
|
1795
1375
|
console.error("[SDK: registration] Error while updating security questions", err); /// it's acceptable to continue registration (return old identity)
|
1796
1376
|
|
1797
|
-
/// it's acceptable to continue registration (return old identity)
|
1798
1377
|
if (retry <= 1) return;
|
1799
1378
|
errorsThrown.push(err);
|
1800
1379
|
return identity;
|
@@ -1900,9 +1479,9 @@ function getOrCreatePatientConsultationUuid(_x7, _x8) {
|
|
1900
1479
|
|
1901
1480
|
|
1902
1481
|
function _getOrCreatePatientConsultationUuid() {
|
1903
|
-
_getOrCreatePatientConsultationUuid = _asyncToGenerator( /*#__PURE__*/
|
1482
|
+
_getOrCreatePatientConsultationUuid = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(consult, oroClient) {
|
1904
1483
|
var payment;
|
1905
|
-
return
|
1484
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
1906
1485
|
while (1) {
|
1907
1486
|
switch (_context5.prev = _context5.next) {
|
1908
1487
|
case 0:
|
@@ -1957,9 +1536,9 @@ function getOrCreatePatientLockbox(_x9) {
|
|
1957
1536
|
|
1958
1537
|
|
1959
1538
|
function _getOrCreatePatientLockbox() {
|
1960
|
-
_getOrCreatePatientLockbox = _asyncToGenerator( /*#__PURE__*/
|
1539
|
+
_getOrCreatePatientLockbox = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(oroClient) {
|
1961
1540
|
var grants;
|
1962
|
-
return
|
1541
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
1963
1542
|
while (1) {
|
1964
1543
|
switch (_context6.prev = _context6.next) {
|
1965
1544
|
case 0:
|
@@ -2002,8 +1581,8 @@ function storePatientData(_x10, _x11, _x12, _x13, _x14) {
|
|
2002
1581
|
}
|
2003
1582
|
|
2004
1583
|
function _storePatientData() {
|
2005
|
-
_storePatientData = _asyncToGenerator( /*#__PURE__*/
|
2006
|
-
return
|
1584
|
+
_storePatientData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(consultationId, isoLanguage, lockboxUuid, workflow, oroClient) {
|
1585
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
2007
1586
|
while (1) {
|
2008
1587
|
switch (_context7.prev = _context7.next) {
|
2009
1588
|
case 0:
|
@@ -2060,9 +1639,9 @@ function storeImageAliases(_x15, _x16, _x17, _x18) {
|
|
2060
1639
|
|
2061
1640
|
|
2062
1641
|
function _storeImageAliases() {
|
2063
|
-
_storeImageAliases = _asyncToGenerator( /*#__PURE__*/
|
1642
|
+
_storeImageAliases = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(consultationId, lockboxUuid, workflow, oroClient) {
|
2064
1643
|
var images, nonNullImages, promises;
|
2065
|
-
return
|
1644
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
2066
1645
|
while (1) {
|
2067
1646
|
switch (_context8.prev = _context8.next) {
|
2068
1647
|
case 0:
|
@@ -2110,8 +1689,8 @@ function extractAndStorePersonalWorkflowData(_x19, _x20, _x21, _x22, _x23) {
|
|
2110
1689
|
}
|
2111
1690
|
|
2112
1691
|
function _extractAndStorePersonalWorkflowData() {
|
2113
|
-
_extractAndStorePersonalWorkflowData = _asyncToGenerator( /*#__PURE__*/
|
2114
|
-
return
|
1692
|
+
_extractAndStorePersonalWorkflowData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(workflow, lockboxUuid, consultationId, category, oroClient) {
|
1693
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
2115
1694
|
while (1) {
|
2116
1695
|
switch (_context9.prev = _context9.next) {
|
2117
1696
|
case 0:
|
@@ -2203,10 +1782,10 @@ function filterGrantsWithLockboxMetadata(_x, _x2, _x3, _x4) {
|
|
2203
1782
|
*/
|
2204
1783
|
|
2205
1784
|
function _filterGrantsWithLockboxMetadata() {
|
2206
|
-
_filterGrantsWithLockboxMetadata = _asyncToGenerator( /*#__PURE__*/
|
1785
|
+
_filterGrantsWithLockboxMetadata = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(oroClient, filter, vaultIndex, forceRefresh) {
|
2207
1786
|
var _vaultIndex$IndexKey$, indexConsults;
|
2208
1787
|
|
2209
|
-
return
|
1788
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
2210
1789
|
while (1) {
|
2211
1790
|
switch (_context.prev = _context.next) {
|
2212
1791
|
case 0:
|
@@ -2256,12 +1835,12 @@ function buildLegacyVaultIndex(_x5) {
|
|
2256
1835
|
}
|
2257
1836
|
|
2258
1837
|
function _buildLegacyVaultIndex() {
|
2259
|
-
_buildLegacyVaultIndex = _asyncToGenerator( /*#__PURE__*/
|
1838
|
+
_buildLegacyVaultIndex = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(oroClient) {
|
2260
1839
|
var _vaultIndex;
|
2261
1840
|
|
2262
1841
|
var grants, consultGrants, _loop, _iterator, _step, vaultIndex;
|
2263
1842
|
|
2264
|
-
return
|
1843
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context3) {
|
2265
1844
|
while (1) {
|
2266
1845
|
switch (_context3.prev = _context3.next) {
|
2267
1846
|
case 0:
|
@@ -2271,9 +1850,9 @@ function _buildLegacyVaultIndex() {
|
|
2271
1850
|
case 2:
|
2272
1851
|
grants = _context3.sent;
|
2273
1852
|
consultGrants = [];
|
2274
|
-
_loop = /*#__PURE__*/
|
1853
|
+
_loop = /*#__PURE__*/_regeneratorRuntime().mark(function _loop() {
|
2275
1854
|
var grant, consults;
|
2276
|
-
return
|
1855
|
+
return _regeneratorRuntime().wrap(function _loop$(_context2) {
|
2277
1856
|
while (1) {
|
2278
1857
|
switch (_context2.prev = _context2.next) {
|
2279
1858
|
case 0:
|
@@ -2356,8 +1935,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2356
1935
|
_proto.cleanIndex =
|
2357
1936
|
/*#__PURE__*/
|
2358
1937
|
function () {
|
2359
|
-
var _cleanIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2360
|
-
return
|
1938
|
+
var _cleanIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
1939
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
2361
1940
|
while (1) {
|
2362
1941
|
switch (_context.prev = _context.next) {
|
2363
1942
|
case 0:
|
@@ -2395,9 +1974,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2395
1974
|
_proto.signUp =
|
2396
1975
|
/*#__PURE__*/
|
2397
1976
|
function () {
|
2398
|
-
var _signUp = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
1977
|
+
var _signUp = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(email, password, practice, tosAndCpAcceptance, tokenData, subscription, skipEmailValidation) {
|
2399
1978
|
var privateKey, symmetricEncryptor, recoveryPassword, hashedPassword, emailConfirmed, signupRequest, identity, symetricEncryptor;
|
2400
|
-
return
|
1979
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
2401
1980
|
while (1) {
|
2402
1981
|
switch (_context2.prev = _context2.next) {
|
2403
1982
|
case 0:
|
@@ -2456,9 +2035,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2456
2035
|
_proto.confirmEmail =
|
2457
2036
|
/*#__PURE__*/
|
2458
2037
|
function () {
|
2459
|
-
var _confirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2038
|
+
var _confirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(accessToken) {
|
2460
2039
|
var claims;
|
2461
|
-
return
|
2040
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
2462
2041
|
while (1) {
|
2463
2042
|
switch (_context3.prev = _context3.next) {
|
2464
2043
|
case 0:
|
@@ -2503,9 +2082,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2503
2082
|
_proto.signIn =
|
2504
2083
|
/*#__PURE__*/
|
2505
2084
|
function () {
|
2506
|
-
var _signIn = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2085
|
+
var _signIn = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(practiceUuid, email, password, otp) {
|
2507
2086
|
var hashedPassword, tokenRequest, userUuid;
|
2508
|
-
return
|
2087
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
2509
2088
|
while (1) {
|
2510
2089
|
switch (_context4.prev = _context4.next) {
|
2511
2090
|
case 0:
|
@@ -2558,9 +2137,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2558
2137
|
_proto.resumeSession =
|
2559
2138
|
/*#__PURE__*/
|
2560
2139
|
function () {
|
2561
|
-
var _resumeSession = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2140
|
+
var _resumeSession = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
2562
2141
|
var id, recoveryPayload, recoveryKey, symmetricDecryptor, privateKey;
|
2563
|
-
return
|
2142
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
2564
2143
|
while (1) {
|
2565
2144
|
switch (_context5.prev = _context5.next) {
|
2566
2145
|
case 0:
|
@@ -2661,8 +2240,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2661
2240
|
_proto.signOut =
|
2662
2241
|
/*#__PURE__*/
|
2663
2242
|
function () {
|
2664
|
-
var _signOut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2665
|
-
return
|
2243
|
+
var _signOut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
2244
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
2666
2245
|
while (1) {
|
2667
2246
|
switch (_context6.prev = _context6.next) {
|
2668
2247
|
case 0:
|
@@ -2711,8 +2290,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2711
2290
|
_proto.registerPatient =
|
2712
2291
|
/*#__PURE__*/
|
2713
2292
|
function () {
|
2714
|
-
var _registerPatient2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2715
|
-
return
|
2293
|
+
var _registerPatient2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(patientUuid, consult, workflow, recoveryQA) {
|
2294
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
2716
2295
|
while (1) {
|
2717
2296
|
switch (_context7.prev = _context7.next) {
|
2718
2297
|
case 0:
|
@@ -2755,8 +2334,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2755
2334
|
_proto.buildVaultIndex =
|
2756
2335
|
/*#__PURE__*/
|
2757
2336
|
function () {
|
2758
|
-
var _buildVaultIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2759
|
-
return
|
2337
|
+
var _buildVaultIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(forceRefresh) {
|
2338
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
2760
2339
|
while (1) {
|
2761
2340
|
switch (_context8.prev = _context8.next) {
|
2762
2341
|
case 0:
|
@@ -2804,12 +2383,12 @@ var OroClient = /*#__PURE__*/function () {
|
|
2804
2383
|
_proto.forceUpdateIndexEntries =
|
2805
2384
|
/*#__PURE__*/
|
2806
2385
|
function () {
|
2807
|
-
var _forceUpdateIndexEntries = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2386
|
+
var _forceUpdateIndexEntries = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
|
2808
2387
|
var _this = this,
|
2809
2388
|
_this$vaultIndexAdd;
|
2810
2389
|
|
2811
2390
|
var grants, indexConsultLockbox;
|
2812
|
-
return
|
2391
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
2813
2392
|
while (1) {
|
2814
2393
|
switch (_context10.prev = _context10.next) {
|
2815
2394
|
case 0:
|
@@ -2820,8 +2399,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2820
2399
|
grants = _context10.sent;
|
2821
2400
|
_context10.next = 5;
|
2822
2401
|
return Promise.all(grants.map( /*#__PURE__*/function () {
|
2823
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
2824
|
-
return
|
2402
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(grant) {
|
2403
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
2825
2404
|
while (1) {
|
2826
2405
|
switch (_context9.prev = _context9.next) {
|
2827
2406
|
case 0:
|
@@ -2897,12 +2476,12 @@ var OroClient = /*#__PURE__*/function () {
|
|
2897
2476
|
_proto.vaultIndexAdd =
|
2898
2477
|
/*#__PURE__*/
|
2899
2478
|
function () {
|
2900
|
-
var _vaultIndexAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2479
|
+
var _vaultIndexAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(entries, indexOwnerUuid) {
|
2901
2480
|
var _this2 = this;
|
2902
2481
|
|
2903
2482
|
var rsaPub, base64IndexOwnerPubKey, encryptedIndex, _i, _Object$keys, keyString, key;
|
2904
2483
|
|
2905
|
-
return
|
2484
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
2906
2485
|
while (1) {
|
2907
2486
|
switch (_context11.prev = _context11.next) {
|
2908
2487
|
case 0:
|
@@ -3024,11 +2603,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
3024
2603
|
_proto.indexSnapshotAdd =
|
3025
2604
|
/*#__PURE__*/
|
3026
2605
|
function () {
|
3027
|
-
var _indexSnapshotAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2606
|
+
var _indexSnapshotAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(index) {
|
3028
2607
|
var _index$IndexKey$Consu, _cleanedIndex;
|
3029
2608
|
|
3030
2609
|
var rsaPub, cleanedIndex, encryptedIndexEntry, encryptedIndex;
|
3031
|
-
return
|
2610
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
3032
2611
|
while (1) {
|
3033
2612
|
switch (_context12.prev = _context12.next) {
|
3034
2613
|
case 0:
|
@@ -3086,9 +2665,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3086
2665
|
_proto.grantLockbox =
|
3087
2666
|
/*#__PURE__*/
|
3088
2667
|
function () {
|
3089
|
-
var _grantLockbox = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2668
|
+
var _grantLockbox = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(granteeUuid, lockboxUuid, lockboxOwnerUuid) {
|
3090
2669
|
var secret, base64GranteePublicKey, granteePublicKey, granteeEncryptedSecret, request;
|
3091
|
-
return
|
2670
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
3092
2671
|
while (1) {
|
3093
2672
|
switch (_context13.prev = _context13.next) {
|
3094
2673
|
case 0:
|
@@ -3148,9 +2727,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3148
2727
|
_proto.createMessageData =
|
3149
2728
|
/*#__PURE__*/
|
3150
2729
|
function () {
|
3151
|
-
var _createMessageData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2730
|
+
var _createMessageData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(lockboxUuid, message, consultationId, lockboxOwnerUuid, previousDataUuid) {
|
3152
2731
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, meta, request;
|
3153
|
-
return
|
2732
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
3154
2733
|
while (1) {
|
3155
2734
|
switch (_context14.prev = _context14.next) {
|
3156
2735
|
case 0:
|
@@ -3220,9 +2799,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3220
2799
|
_proto.createMessageAttachmentData =
|
3221
2800
|
/*#__PURE__*/
|
3222
2801
|
function () {
|
3223
|
-
var _createMessageAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2802
|
+
var _createMessageAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(lockboxUuid, data, consultationId, lockboxOwnerUuid, previousDataUuid) {
|
3224
2803
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, meta, request;
|
3225
|
-
return
|
2804
|
+
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
3226
2805
|
while (1) {
|
3227
2806
|
switch (_context15.prev = _context15.next) {
|
3228
2807
|
case 0:
|
@@ -3307,8 +2886,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3307
2886
|
_proto.createConsultationAttachmentData =
|
3308
2887
|
/*#__PURE__*/
|
3309
2888
|
function () {
|
3310
|
-
var _createConsultationAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3311
|
-
return
|
2889
|
+
var _createConsultationAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(lockboxUuid, data, consultationId, documentType, lockboxOwnerUuid, previousDataUuid) {
|
2890
|
+
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
3312
2891
|
while (1) {
|
3313
2892
|
switch (_context16.prev = _context16.next) {
|
3314
2893
|
case 0:
|
@@ -3379,9 +2958,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3379
2958
|
_proto.createJsonData =
|
3380
2959
|
/*#__PURE__*/
|
3381
2960
|
function () {
|
3382
|
-
var _createJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2961
|
+
var _createJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
|
3383
2962
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, request;
|
3384
|
-
return
|
2963
|
+
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
3385
2964
|
while (1) {
|
3386
2965
|
switch (_context17.prev = _context17.next) {
|
3387
2966
|
case 0:
|
@@ -3435,9 +3014,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3435
3014
|
_proto.getOrInsertJsonData =
|
3436
3015
|
/*#__PURE__*/
|
3437
3016
|
function () {
|
3438
|
-
var _getOrInsertJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3017
|
+
var _getOrInsertJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(lockboxUuid, data, publicMetadata, privateMetadata, forceReplace) {
|
3439
3018
|
var manifest;
|
3440
|
-
return
|
3019
|
+
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
3441
3020
|
while (1) {
|
3442
3021
|
switch (_context18.prev = _context18.next) {
|
3443
3022
|
case 0:
|
@@ -3500,9 +3079,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3500
3079
|
_proto.createBytesData =
|
3501
3080
|
/*#__PURE__*/
|
3502
3081
|
function () {
|
3503
|
-
var _createBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3082
|
+
var _createBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
|
3504
3083
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, request;
|
3505
|
-
return
|
3084
|
+
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
3506
3085
|
while (1) {
|
3507
3086
|
switch (_context19.prev = _context19.next) {
|
3508
3087
|
case 0:
|
@@ -3558,10 +3137,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
3558
3137
|
_proto.getJsonData =
|
3559
3138
|
/*#__PURE__*/
|
3560
3139
|
function () {
|
3561
|
-
var _getJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3140
|
+
var _getJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(lockboxUuid, dataUuid, lockboxOwnerUuid) {
|
3562
3141
|
var _yield$Promise$all, encryptedPayload, symmetricDecryptor;
|
3563
3142
|
|
3564
|
-
return
|
3143
|
+
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
3565
3144
|
while (1) {
|
3566
3145
|
switch (_context20.prev = _context20.next) {
|
3567
3146
|
case 0:
|
@@ -3608,10 +3187,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
3608
3187
|
_proto.getBytesData =
|
3609
3188
|
/*#__PURE__*/
|
3610
3189
|
function () {
|
3611
|
-
var _getBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3190
|
+
var _getBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21(lockboxUuid, dataUuid, lockboxOwnerUuid) {
|
3612
3191
|
var _yield$Promise$all2, encryptedPayload, symmetricDecryptor;
|
3613
3192
|
|
3614
|
-
return
|
3193
|
+
return _regeneratorRuntime().wrap(function _callee21$(_context21) {
|
3615
3194
|
while (1) {
|
3616
3195
|
switch (_context21.prev = _context21.next) {
|
3617
3196
|
case 0:
|
@@ -3661,9 +3240,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3661
3240
|
_proto.getGrants =
|
3662
3241
|
/*#__PURE__*/
|
3663
3242
|
function () {
|
3664
|
-
var _getGrants = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3243
|
+
var _getGrants = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(filter, forceRefresh) {
|
3665
3244
|
var filterString, grantsByConsultLockbox, decryptedConsults, encryptedGrants, decryptedGrants;
|
3666
|
-
return
|
3245
|
+
return _regeneratorRuntime().wrap(function _callee22$(_context22) {
|
3667
3246
|
while (1) {
|
3668
3247
|
switch (_context22.prev = _context22.next) {
|
3669
3248
|
case 0:
|
@@ -3781,9 +3360,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3781
3360
|
_proto.getCachedSecretCryptor =
|
3782
3361
|
/*#__PURE__*/
|
3783
3362
|
function () {
|
3784
|
-
var _getCachedSecretCryptor = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3363
|
+
var _getCachedSecretCryptor = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23(lockboxUuid, lockboxOwnerUuid) {
|
3785
3364
|
var index, encryptedSecret, secret, cryptor;
|
3786
|
-
return
|
3365
|
+
return _regeneratorRuntime().wrap(function _callee23$(_context23) {
|
3787
3366
|
while (1) {
|
3788
3367
|
switch (_context23.prev = _context23.next) {
|
3789
3368
|
case 0:
|
@@ -3848,8 +3427,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3848
3427
|
_proto.getPersonalInformationsFromConsultId =
|
3849
3428
|
/*#__PURE__*/
|
3850
3429
|
function () {
|
3851
|
-
var _getPersonalInformationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3852
|
-
return
|
3430
|
+
var _getPersonalInformationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24(consultationId, category, forceRefresh) {
|
3431
|
+
return _regeneratorRuntime().wrap(function _callee24$(_context24) {
|
3853
3432
|
while (1) {
|
3854
3433
|
switch (_context24.prev = _context24.next) {
|
3855
3434
|
case 0:
|
@@ -3886,8 +3465,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3886
3465
|
_proto.getMedicalDataFromConsultId =
|
3887
3466
|
/*#__PURE__*/
|
3888
3467
|
function () {
|
3889
|
-
var _getMedicalDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3890
|
-
return
|
3468
|
+
var _getMedicalDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25(consultationId, forceRefresh) {
|
3469
|
+
return _regeneratorRuntime().wrap(function _callee25$(_context25) {
|
3891
3470
|
while (1) {
|
3892
3471
|
switch (_context25.prev = _context25.next) {
|
3893
3472
|
case 0:
|
@@ -3913,12 +3492,12 @@ var OroClient = /*#__PURE__*/function () {
|
|
3913
3492
|
}();
|
3914
3493
|
|
3915
3494
|
_proto.getMetaCategoryFromConsultId = /*#__PURE__*/function () {
|
3916
|
-
var _getMetaCategoryFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3495
|
+
var _getMetaCategoryFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee27(consultationId, category, forceRefresh) {
|
3917
3496
|
var _this3 = this;
|
3918
3497
|
|
3919
3498
|
var grants, workflowData, _loop, _iterator, _step;
|
3920
3499
|
|
3921
|
-
return
|
3500
|
+
return _regeneratorRuntime().wrap(function _callee27$(_context28) {
|
3922
3501
|
while (1) {
|
3923
3502
|
switch (_context28.prev = _context28.next) {
|
3924
3503
|
case 0:
|
@@ -3934,9 +3513,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3934
3513
|
case 3:
|
3935
3514
|
grants = _context28.sent;
|
3936
3515
|
workflowData = [];
|
3937
|
-
_loop = /*#__PURE__*/
|
3516
|
+
_loop = /*#__PURE__*/_regeneratorRuntime().mark(function _loop() {
|
3938
3517
|
var grant, manifest, data;
|
3939
|
-
return
|
3518
|
+
return _regeneratorRuntime().wrap(function _loop$(_context27) {
|
3940
3519
|
while (1) {
|
3941
3520
|
switch (_context27.prev = _context27.next) {
|
3942
3521
|
case 0:
|
@@ -3970,8 +3549,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3970
3549
|
case 8:
|
3971
3550
|
_context27.next = 10;
|
3972
3551
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
3973
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/
|
3974
|
-
return
|
3552
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26(entry) {
|
3553
|
+
return _regeneratorRuntime().wrap(function _callee26$(_context26) {
|
3975
3554
|
while (1) {
|
3976
3555
|
switch (_context26.prev = _context26.next) {
|
3977
3556
|
case 0:
|
@@ -4055,9 +3634,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4055
3634
|
_proto.getPersonalInformations =
|
4056
3635
|
/*#__PURE__*/
|
4057
3636
|
function () {
|
4058
|
-
var _getPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3637
|
+
var _getPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee28(userId) {
|
4059
3638
|
var grant, lockboxUuid, lockboxOwnerUuid, identificationDataUuid;
|
4060
|
-
return
|
3639
|
+
return _regeneratorRuntime().wrap(function _callee28$(_context29) {
|
4061
3640
|
while (1) {
|
4062
3641
|
switch (_context29.prev = _context29.next) {
|
4063
3642
|
case 0:
|
@@ -4143,9 +3722,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4143
3722
|
_proto.getGrantFromConsultId =
|
4144
3723
|
/*#__PURE__*/
|
4145
3724
|
function () {
|
4146
|
-
var _getGrantFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3725
|
+
var _getGrantFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee29(consultationId) {
|
4147
3726
|
var grants;
|
4148
|
-
return
|
3727
|
+
return _regeneratorRuntime().wrap(function _callee29$(_context30) {
|
4149
3728
|
while (1) {
|
4150
3729
|
switch (_context30.prev = _context30.next) {
|
4151
3730
|
case 0:
|
@@ -4191,9 +3770,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4191
3770
|
_proto.getIdentityFromConsultId =
|
4192
3771
|
/*#__PURE__*/
|
4193
3772
|
function () {
|
4194
|
-
var _getIdentityFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3773
|
+
var _getIdentityFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee30(consultationId) {
|
4195
3774
|
var grant;
|
4196
|
-
return
|
3775
|
+
return _regeneratorRuntime().wrap(function _callee30$(_context31) {
|
4197
3776
|
while (1) {
|
4198
3777
|
switch (_context31.prev = _context31.next) {
|
4199
3778
|
case 0:
|
@@ -4246,11 +3825,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4246
3825
|
_proto.getLockboxManifest =
|
4247
3826
|
/*#__PURE__*/
|
4248
3827
|
function () {
|
4249
|
-
var _getLockboxManifest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3828
|
+
var _getLockboxManifest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee32(lockboxUuid, filter, expandPrivateMetadata, lockboxOwnerUuid, forceRefresh) {
|
4250
3829
|
var _this4 = this;
|
4251
3830
|
|
4252
3831
|
var manifestKey;
|
4253
|
-
return
|
3832
|
+
return _regeneratorRuntime().wrap(function _callee32$(_context33) {
|
4254
3833
|
while (1) {
|
4255
3834
|
switch (_context33.prev = _context33.next) {
|
4256
3835
|
case 0:
|
@@ -4275,9 +3854,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4275
3854
|
case 4:
|
4276
3855
|
return _context33.abrupt("return", this.vaultClient.lockboxManifestGet(lockboxUuid, filter, lockboxOwnerUuid).then(function (manifest) {
|
4277
3856
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
4278
|
-
var _ref4 = _asyncToGenerator( /*#__PURE__*/
|
3857
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee31(entry) {
|
4279
3858
|
var privateMeta;
|
4280
|
-
return
|
3859
|
+
return _regeneratorRuntime().wrap(function _callee31$(_context32) {
|
4281
3860
|
while (1) {
|
4282
3861
|
switch (_context32.prev = _context32.next) {
|
4283
3862
|
case 0:
|
@@ -4338,11 +3917,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4338
3917
|
_proto.createPersonalInformations =
|
4339
3918
|
/*#__PURE__*/
|
4340
3919
|
function () {
|
4341
|
-
var _createPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3920
|
+
var _createPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee33(identity, data, dataUuid) {
|
4342
3921
|
var _yield$this$getGrants;
|
4343
3922
|
|
4344
3923
|
var lockboxUuid;
|
4345
|
-
return
|
3924
|
+
return _regeneratorRuntime().wrap(function _callee33$(_context34) {
|
4346
3925
|
while (1) {
|
4347
3926
|
switch (_context34.prev = _context34.next) {
|
4348
3927
|
case 0:
|
@@ -4408,11 +3987,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4408
3987
|
_proto.createUserPreference =
|
4409
3988
|
/*#__PURE__*/
|
4410
3989
|
function () {
|
4411
|
-
var _createUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3990
|
+
var _createUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee34(identity, preference, dataUuid) {
|
4412
3991
|
var _yield$this$getGrants2;
|
4413
3992
|
|
4414
3993
|
var lockboxUuid;
|
4415
|
-
return
|
3994
|
+
return _regeneratorRuntime().wrap(function _callee34$(_context35) {
|
4416
3995
|
while (1) {
|
4417
3996
|
switch (_context35.prev = _context35.next) {
|
4418
3997
|
case 0:
|
@@ -4476,9 +4055,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4476
4055
|
_proto.getDataFromGrant =
|
4477
4056
|
/*#__PURE__*/
|
4478
4057
|
function () {
|
4479
|
-
var _getDataFromGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4058
|
+
var _getDataFromGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee35(grant, filter) {
|
4480
4059
|
var lockboxUuid, lockboxOwnerUuid, identificationDataUuid;
|
4481
|
-
return
|
4060
|
+
return _regeneratorRuntime().wrap(function _callee35$(_context36) {
|
4482
4061
|
while (1) {
|
4483
4062
|
switch (_context36.prev = _context36.next) {
|
4484
4063
|
case 0:
|
@@ -4544,9 +4123,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4544
4123
|
_proto.getUserPreferenceFromConsultId =
|
4545
4124
|
/*#__PURE__*/
|
4546
4125
|
function () {
|
4547
|
-
var _getUserPreferenceFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4126
|
+
var _getUserPreferenceFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee36(consultationId) {
|
4548
4127
|
var grant;
|
4549
|
-
return
|
4128
|
+
return _regeneratorRuntime().wrap(function _callee36$(_context37) {
|
4550
4129
|
while (1) {
|
4551
4130
|
switch (_context37.prev = _context37.next) {
|
4552
4131
|
case 0:
|
@@ -4593,9 +4172,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4593
4172
|
_proto.getUserPreference =
|
4594
4173
|
/*#__PURE__*/
|
4595
4174
|
function () {
|
4596
|
-
var _getUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4175
|
+
var _getUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee37(identity) {
|
4597
4176
|
var grant;
|
4598
|
-
return
|
4177
|
+
return _regeneratorRuntime().wrap(function _callee37$(_context38) {
|
4599
4178
|
while (1) {
|
4600
4179
|
switch (_context38.prev = _context38.next) {
|
4601
4180
|
case 0:
|
@@ -4644,9 +4223,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4644
4223
|
_proto.getRecoveryDataFromConsultId =
|
4645
4224
|
/*#__PURE__*/
|
4646
4225
|
function () {
|
4647
|
-
var _getRecoveryDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4226
|
+
var _getRecoveryDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee38(consultationId) {
|
4648
4227
|
var grant;
|
4649
|
-
return
|
4228
|
+
return _regeneratorRuntime().wrap(function _callee38$(_context39) {
|
4650
4229
|
while (1) {
|
4651
4230
|
switch (_context39.prev = _context39.next) {
|
4652
4231
|
case 0:
|
@@ -4693,9 +4272,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4693
4272
|
_proto.getRecoveryData =
|
4694
4273
|
/*#__PURE__*/
|
4695
4274
|
function () {
|
4696
|
-
var _getRecoveryData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4275
|
+
var _getRecoveryData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee39(identity) {
|
4697
4276
|
var grant;
|
4698
|
-
return
|
4277
|
+
return _regeneratorRuntime().wrap(function _callee39$(_context40) {
|
4699
4278
|
while (1) {
|
4700
4279
|
switch (_context40.prev = _context40.next) {
|
4701
4280
|
case 0:
|
@@ -4749,10 +4328,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
4749
4328
|
_proto.getAssignedConsultations =
|
4750
4329
|
/*#__PURE__*/
|
4751
4330
|
function () {
|
4752
|
-
var _getAssignedConsultations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4331
|
+
var _getAssignedConsultations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee41(practiceUuid, forceRefresh) {
|
4753
4332
|
var _this5 = this;
|
4754
4333
|
|
4755
|
-
return
|
4334
|
+
return _regeneratorRuntime().wrap(function _callee41$(_context42) {
|
4756
4335
|
while (1) {
|
4757
4336
|
switch (_context42.prev = _context42.next) {
|
4758
4337
|
case 0:
|
@@ -4771,8 +4350,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4771
4350
|
documentType: initApis.DocumentType.PopulatedWorkflowData
|
4772
4351
|
}, true, undefined, forceRefresh).then(function (manifest) {
|
4773
4352
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
4774
|
-
var _ref5 = _asyncToGenerator( /*#__PURE__*/
|
4775
|
-
return
|
4353
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee40(entry) {
|
4354
|
+
return _regeneratorRuntime().wrap(function _callee40$(_context41) {
|
4776
4355
|
while (1) {
|
4777
4356
|
switch (_context41.prev = _context41.next) {
|
4778
4357
|
case 0:
|
@@ -4826,11 +4405,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4826
4405
|
_proto.getPastConsultationsFromConsultId =
|
4827
4406
|
/*#__PURE__*/
|
4828
4407
|
function () {
|
4829
|
-
var _getPastConsultationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4408
|
+
var _getPastConsultationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee43(consultationId, practiceUuid) {
|
4830
4409
|
var _this6 = this;
|
4831
4410
|
|
4832
4411
|
var grant, consultationsInLockbox;
|
4833
|
-
return
|
4412
|
+
return _regeneratorRuntime().wrap(function _callee43$(_context44) {
|
4834
4413
|
while (1) {
|
4835
4414
|
switch (_context44.prev = _context44.next) {
|
4836
4415
|
case 0:
|
@@ -4869,8 +4448,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4869
4448
|
case 10:
|
4870
4449
|
_context44.next = 12;
|
4871
4450
|
return Promise.all(consultationsInLockbox.map( /*#__PURE__*/function () {
|
4872
|
-
var _ref6 = _asyncToGenerator( /*#__PURE__*/
|
4873
|
-
return
|
4451
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee42(consultId) {
|
4452
|
+
return _regeneratorRuntime().wrap(function _callee42$(_context43) {
|
4874
4453
|
while (1) {
|
4875
4454
|
switch (_context43.prev = _context43.next) {
|
4876
4455
|
case 0:
|
@@ -4921,10 +4500,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
4921
4500
|
_proto.getPatientConsultationData =
|
4922
4501
|
/*#__PURE__*/
|
4923
4502
|
function () {
|
4924
|
-
var _getPatientConsultationData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4503
|
+
var _getPatientConsultationData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee44(consultationId, forceRefresh) {
|
4925
4504
|
var _this7 = this;
|
4926
4505
|
|
4927
|
-
return
|
4506
|
+
return _regeneratorRuntime().wrap(function _callee44$(_context45) {
|
4928
4507
|
while (1) {
|
4929
4508
|
switch (_context45.prev = _context45.next) {
|
4930
4509
|
case 0:
|
@@ -4978,8 +4557,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4978
4557
|
_proto.getPatientPrescriptionsList =
|
4979
4558
|
/*#__PURE__*/
|
4980
4559
|
function () {
|
4981
|
-
var _getPatientPrescriptionsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4982
|
-
return
|
4560
|
+
var _getPatientPrescriptionsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee45(consultationId) {
|
4561
|
+
return _regeneratorRuntime().wrap(function _callee45$(_context46) {
|
4983
4562
|
while (1) {
|
4984
4563
|
switch (_context46.prev = _context46.next) {
|
4985
4564
|
case 0:
|
@@ -5012,8 +4591,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5012
4591
|
_proto.getPatientResultsList =
|
5013
4592
|
/*#__PURE__*/
|
5014
4593
|
function () {
|
5015
|
-
var _getPatientResultsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5016
|
-
return
|
4594
|
+
var _getPatientResultsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee46(consultationId) {
|
4595
|
+
return _regeneratorRuntime().wrap(function _callee46$(_context47) {
|
5017
4596
|
while (1) {
|
5018
4597
|
switch (_context47.prev = _context47.next) {
|
5019
4598
|
case 0:
|
@@ -5046,8 +4625,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5046
4625
|
_proto.getPatientTreatmentPlans =
|
5047
4626
|
/*#__PURE__*/
|
5048
4627
|
function () {
|
5049
|
-
var _getPatientTreatmentPlans = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5050
|
-
return
|
4628
|
+
var _getPatientTreatmentPlans = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee47(consultationId) {
|
4629
|
+
return _regeneratorRuntime().wrap(function _callee47$(_context48) {
|
5051
4630
|
while (1) {
|
5052
4631
|
switch (_context48.prev = _context48.next) {
|
5053
4632
|
case 0:
|
@@ -5081,8 +4660,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5081
4660
|
_proto.getPatientTreatmentPlanByUuid =
|
5082
4661
|
/*#__PURE__*/
|
5083
4662
|
function () {
|
5084
|
-
var _getPatientTreatmentPlanByUuid = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5085
|
-
return
|
4663
|
+
var _getPatientTreatmentPlanByUuid = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee48(consultationId, treatmentPlanId) {
|
4664
|
+
return _regeneratorRuntime().wrap(function _callee48$(_context49) {
|
5086
4665
|
while (1) {
|
5087
4666
|
switch (_context49.prev = _context49.next) {
|
5088
4667
|
case 0:
|
@@ -5120,10 +4699,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
5120
4699
|
_proto.getPatientDocumentsList =
|
5121
4700
|
/*#__PURE__*/
|
5122
4701
|
function () {
|
5123
|
-
var _getPatientDocumentsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4702
|
+
var _getPatientDocumentsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee50(filters, expandPrivateMetadata, consultationId) {
|
5124
4703
|
var _this8 = this;
|
5125
4704
|
|
5126
|
-
return
|
4705
|
+
return _regeneratorRuntime().wrap(function _callee50$(_context51) {
|
5127
4706
|
while (1) {
|
5128
4707
|
switch (_context51.prev = _context51.next) {
|
5129
4708
|
case 0:
|
@@ -5139,8 +4718,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5139
4718
|
consultationId: consultationId
|
5140
4719
|
}), expandPrivateMetadata, grant.lockboxOwnerUuid, true).then(function (manifest) {
|
5141
4720
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
5142
|
-
var _ref7 = _asyncToGenerator( /*#__PURE__*/
|
5143
|
-
return
|
4721
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee49(entry) {
|
4722
|
+
return _regeneratorRuntime().wrap(function _callee49$(_context50) {
|
5144
4723
|
while (1) {
|
5145
4724
|
switch (_context50.prev = _context50.next) {
|
5146
4725
|
case 0:
|
@@ -5198,9 +4777,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5198
4777
|
_proto.recoverPrivateKeyFromSecurityQuestions =
|
5199
4778
|
/*#__PURE__*/
|
5200
4779
|
function () {
|
5201
|
-
var _recoverPrivateKeyFromSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4780
|
+
var _recoverPrivateKeyFromSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee51(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
|
5202
4781
|
var shards, answeredShards, privateKey;
|
5203
|
-
return
|
4782
|
+
return _regeneratorRuntime().wrap(function _callee51$(_context52) {
|
5204
4783
|
while (1) {
|
5205
4784
|
switch (_context52.prev = _context52.next) {
|
5206
4785
|
case 0:
|
@@ -5254,9 +4833,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5254
4833
|
_proto.recoverPrivateKeyFromPassword =
|
5255
4834
|
/*#__PURE__*/
|
5256
4835
|
function () {
|
5257
|
-
var _recoverPrivateKeyFromPassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4836
|
+
var _recoverPrivateKeyFromPassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee52(id, password) {
|
5258
4837
|
var identity, recoveryPayload, symmetricDecryptor, privateKey, symetricEncryptor;
|
5259
|
-
return
|
4838
|
+
return _regeneratorRuntime().wrap(function _callee52$(_context53) {
|
5260
4839
|
while (1) {
|
5261
4840
|
switch (_context53.prev = _context53.next) {
|
5262
4841
|
case 0:
|
@@ -5302,9 +4881,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5302
4881
|
_proto.recoverPrivateKeyFromMasterKey =
|
5303
4882
|
/*#__PURE__*/
|
5304
4883
|
function () {
|
5305
|
-
var _recoverPrivateKeyFromMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4884
|
+
var _recoverPrivateKeyFromMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee53(id, masterKey) {
|
5306
4885
|
var recoveryPayload, symmetricDecryptor, privateKey;
|
5307
|
-
return
|
4886
|
+
return _regeneratorRuntime().wrap(function _callee53$(_context54) {
|
5308
4887
|
while (1) {
|
5309
4888
|
switch (_context54.prev = _context54.next) {
|
5310
4889
|
case 0:
|
@@ -5344,9 +4923,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5344
4923
|
_proto.updateSecurityQuestions =
|
5345
4924
|
/*#__PURE__*/
|
5346
4925
|
function () {
|
5347
|
-
var _updateSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4926
|
+
var _updateSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee54(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
|
5348
4927
|
var securityQuestionPayload, updateRequest;
|
5349
|
-
return
|
4928
|
+
return _regeneratorRuntime().wrap(function _callee54$(_context55) {
|
5350
4929
|
while (1) {
|
5351
4930
|
switch (_context55.prev = _context55.next) {
|
5352
4931
|
case 0:
|
@@ -5398,9 +4977,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5398
4977
|
_proto.updatePassword =
|
5399
4978
|
/*#__PURE__*/
|
5400
4979
|
function () {
|
5401
|
-
var _updatePassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4980
|
+
var _updatePassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee55(id, newPassword, oldPassword) {
|
5402
4981
|
var symmetricEncryptor, passwordPayload, updateRequest;
|
5403
|
-
return
|
4982
|
+
return _regeneratorRuntime().wrap(function _callee55$(_context56) {
|
5404
4983
|
while (1) {
|
5405
4984
|
switch (_context56.prev = _context56.next) {
|
5406
4985
|
case 0:
|
@@ -5460,9 +5039,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5460
5039
|
_proto.updateMasterKey =
|
5461
5040
|
/*#__PURE__*/
|
5462
5041
|
function () {
|
5463
|
-
var _updateMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5042
|
+
var _updateMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee56(id, masterKey, lockboxUuid) {
|
5464
5043
|
var symmetricEncryptor, masterKeyPayload, updateRequest, updatedIdentity;
|
5465
|
-
return
|
5044
|
+
return _regeneratorRuntime().wrap(function _callee56$(_context57) {
|
5466
5045
|
while (1) {
|
5467
5046
|
switch (_context57.prev = _context57.next) {
|
5468
5047
|
case 0:
|