oro-sdk 8.0.0 → 8.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,350 +11,350 @@ var idbKeyval = require('idb-keyval');
11
11
 
12
12
  function _regeneratorRuntime() {
13
13
  _regeneratorRuntime = function () {
14
- return exports;
14
+ return e;
15
15
  };
16
- var exports = {},
17
- Op = Object.prototype,
18
- hasOwn = Op.hasOwnProperty,
19
- defineProperty = Object.defineProperty || function (obj, key, desc) {
20
- obj[key] = desc.value;
16
+ var t,
17
+ e = {},
18
+ r = Object.prototype,
19
+ n = r.hasOwnProperty,
20
+ o = Object.defineProperty || function (t, e, r) {
21
+ t[e] = r.value;
21
22
  },
22
- $Symbol = "function" == typeof Symbol ? Symbol : {},
23
- iteratorSymbol = $Symbol.iterator || "@@iterator",
24
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
25
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
26
- function define(obj, key, value) {
27
- return Object.defineProperty(obj, key, {
28
- value: value,
23
+ i = "function" == typeof Symbol ? Symbol : {},
24
+ a = i.iterator || "@@iterator",
25
+ c = i.asyncIterator || "@@asyncIterator",
26
+ u = i.toStringTag || "@@toStringTag";
27
+ function define(t, e, r) {
28
+ return Object.defineProperty(t, e, {
29
+ value: r,
29
30
  enumerable: !0,
30
31
  configurable: !0,
31
32
  writable: !0
32
- }), obj[key];
33
+ }), t[e];
33
34
  }
34
35
  try {
35
36
  define({}, "");
36
- } catch (err) {
37
- define = function (obj, key, value) {
38
- return obj[key] = value;
37
+ } catch (t) {
38
+ define = function (t, e, r) {
39
+ return t[e] = r;
39
40
  };
40
41
  }
41
- function wrap(innerFn, outerFn, self, tryLocsList) {
42
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
43
- generator = Object.create(protoGenerator.prototype),
44
- context = new Context(tryLocsList || []);
45
- return defineProperty(generator, "_invoke", {
46
- value: makeInvokeMethod(innerFn, self, context)
47
- }), generator;
42
+ function wrap(t, e, r, n) {
43
+ var i = e && e.prototype instanceof Generator ? e : Generator,
44
+ a = Object.create(i.prototype),
45
+ c = new Context(n || []);
46
+ return o(a, "_invoke", {
47
+ value: makeInvokeMethod(t, r, c)
48
+ }), a;
48
49
  }
49
- function tryCatch(fn, obj, arg) {
50
+ function tryCatch(t, e, r) {
50
51
  try {
51
52
  return {
52
53
  type: "normal",
53
- arg: fn.call(obj, arg)
54
+ arg: t.call(e, r)
54
55
  };
55
- } catch (err) {
56
+ } catch (t) {
56
57
  return {
57
58
  type: "throw",
58
- arg: err
59
+ arg: t
59
60
  };
60
61
  }
61
62
  }
62
- exports.wrap = wrap;
63
- var ContinueSentinel = {};
63
+ e.wrap = wrap;
64
+ var h = "suspendedStart",
65
+ l = "suspendedYield",
66
+ f = "executing",
67
+ s = "completed",
68
+ y = {};
64
69
  function Generator() {}
65
70
  function GeneratorFunction() {}
66
71
  function GeneratorFunctionPrototype() {}
67
- var IteratorPrototype = {};
68
- define(IteratorPrototype, iteratorSymbol, function () {
72
+ var p = {};
73
+ define(p, a, function () {
69
74
  return this;
70
75
  });
71
- var getProto = Object.getPrototypeOf,
72
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
73
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
74
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
75
- function defineIteratorMethods(prototype) {
76
- ["next", "throw", "return"].forEach(function (method) {
77
- define(prototype, method, function (arg) {
78
- return this._invoke(method, arg);
76
+ var d = Object.getPrototypeOf,
77
+ v = d && d(d(values([])));
78
+ v && v !== r && n.call(v, a) && (p = v);
79
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
80
+ function defineIteratorMethods(t) {
81
+ ["next", "throw", "return"].forEach(function (e) {
82
+ define(t, e, function (t) {
83
+ return this._invoke(e, t);
79
84
  });
80
85
  });
81
86
  }
82
- function AsyncIterator(generator, PromiseImpl) {
83
- function invoke(method, arg, resolve, reject) {
84
- var record = tryCatch(generator[method], generator, arg);
85
- if ("throw" !== record.type) {
86
- var result = record.arg,
87
- value = result.value;
88
- return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
89
- invoke("next", value, resolve, reject);
90
- }, function (err) {
91
- invoke("throw", err, resolve, reject);
92
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
93
- result.value = unwrapped, resolve(result);
94
- }, function (error) {
95
- return invoke("throw", error, resolve, reject);
87
+ function AsyncIterator(t, e) {
88
+ function invoke(r, o, i, a) {
89
+ var c = tryCatch(t[r], t, o);
90
+ if ("throw" !== c.type) {
91
+ var u = c.arg,
92
+ h = u.value;
93
+ return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
94
+ invoke("next", t, i, a);
95
+ }, function (t) {
96
+ invoke("throw", t, i, a);
97
+ }) : e.resolve(h).then(function (t) {
98
+ u.value = t, i(u);
99
+ }, function (t) {
100
+ return invoke("throw", t, i, a);
96
101
  });
97
102
  }
98
- reject(record.arg);
103
+ a(c.arg);
99
104
  }
100
- var previousPromise;
101
- defineProperty(this, "_invoke", {
102
- value: function (method, arg) {
105
+ var r;
106
+ o(this, "_invoke", {
107
+ value: function (t, n) {
103
108
  function callInvokeWithMethodAndArg() {
104
- return new PromiseImpl(function (resolve, reject) {
105
- invoke(method, arg, resolve, reject);
109
+ return new e(function (e, r) {
110
+ invoke(t, n, e, r);
106
111
  });
107
112
  }
108
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
113
+ return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
109
114
  }
110
115
  });
111
116
  }
112
- function makeInvokeMethod(innerFn, self, context) {
113
- var state = "suspendedStart";
114
- return function (method, arg) {
115
- if ("executing" === state) throw new Error("Generator is already running");
116
- if ("completed" === state) {
117
- if ("throw" === method) throw arg;
118
- return doneResult();
117
+ function makeInvokeMethod(e, r, n) {
118
+ var o = h;
119
+ return function (i, a) {
120
+ if (o === f) throw new Error("Generator is already running");
121
+ if (o === s) {
122
+ if ("throw" === i) throw a;
123
+ return {
124
+ value: t,
125
+ done: !0
126
+ };
119
127
  }
120
- for (context.method = method, context.arg = arg;;) {
121
- var delegate = context.delegate;
122
- if (delegate) {
123
- var delegateResult = maybeInvokeDelegate(delegate, context);
124
- if (delegateResult) {
125
- if (delegateResult === ContinueSentinel) continue;
126
- return delegateResult;
128
+ for (n.method = i, n.arg = a;;) {
129
+ var c = n.delegate;
130
+ if (c) {
131
+ var u = maybeInvokeDelegate(c, n);
132
+ if (u) {
133
+ if (u === y) continue;
134
+ return u;
127
135
  }
128
136
  }
129
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
130
- if ("suspendedStart" === state) throw state = "completed", context.arg;
131
- context.dispatchException(context.arg);
132
- } else "return" === context.method && context.abrupt("return", context.arg);
133
- state = "executing";
134
- var record = tryCatch(innerFn, self, context);
135
- if ("normal" === record.type) {
136
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
137
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
138
+ if (o === h) throw o = s, n.arg;
139
+ n.dispatchException(n.arg);
140
+ } else "return" === n.method && n.abrupt("return", n.arg);
141
+ o = f;
142
+ var p = tryCatch(e, r, n);
143
+ if ("normal" === p.type) {
144
+ if (o = n.done ? s : l, p.arg === y) continue;
137
145
  return {
138
- value: record.arg,
139
- done: context.done
146
+ value: p.arg,
147
+ done: n.done
140
148
  };
141
149
  }
142
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
150
+ "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
143
151
  }
144
152
  };
145
153
  }
146
- function maybeInvokeDelegate(delegate, context) {
147
- var methodName = context.method,
148
- method = delegate.iterator[methodName];
149
- if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
150
- var record = tryCatch(method, delegate.iterator, context.arg);
151
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
152
- var info = record.arg;
153
- 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);
154
+ function maybeInvokeDelegate(e, r) {
155
+ var n = r.method,
156
+ o = e.iterator[n];
157
+ if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
158
+ var i = tryCatch(o, e.iterator, r.arg);
159
+ if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
160
+ var a = i.arg;
161
+ return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
154
162
  }
155
- function pushTryEntry(locs) {
156
- var entry = {
157
- tryLoc: locs[0]
163
+ function pushTryEntry(t) {
164
+ var e = {
165
+ tryLoc: t[0]
158
166
  };
159
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
167
+ 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
160
168
  }
161
- function resetTryEntry(entry) {
162
- var record = entry.completion || {};
163
- record.type = "normal", delete record.arg, entry.completion = record;
169
+ function resetTryEntry(t) {
170
+ var e = t.completion || {};
171
+ e.type = "normal", delete e.arg, t.completion = e;
164
172
  }
165
- function Context(tryLocsList) {
173
+ function Context(t) {
166
174
  this.tryEntries = [{
167
175
  tryLoc: "root"
168
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
176
+ }], t.forEach(pushTryEntry, this), this.reset(!0);
169
177
  }
170
- function values(iterable) {
171
- if (iterable) {
172
- var iteratorMethod = iterable[iteratorSymbol];
173
- if (iteratorMethod) return iteratorMethod.call(iterable);
174
- if ("function" == typeof iterable.next) return iterable;
175
- if (!isNaN(iterable.length)) {
176
- var i = -1,
177
- next = function next() {
178
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
179
- return next.value = undefined, next.done = !0, next;
178
+ function values(e) {
179
+ if (e || "" === e) {
180
+ var r = e[a];
181
+ if (r) return r.call(e);
182
+ if ("function" == typeof e.next) return e;
183
+ if (!isNaN(e.length)) {
184
+ var o = -1,
185
+ i = function next() {
186
+ for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
187
+ return next.value = t, next.done = !0, next;
180
188
  };
181
- return next.next = next;
189
+ return i.next = i;
182
190
  }
183
191
  }
184
- return {
185
- next: doneResult
186
- };
187
- }
188
- function doneResult() {
189
- return {
190
- value: undefined,
191
- done: !0
192
- };
192
+ throw new TypeError(typeof e + " is not iterable");
193
193
  }
194
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
194
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
195
195
  value: GeneratorFunctionPrototype,
196
196
  configurable: !0
197
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
197
+ }), o(GeneratorFunctionPrototype, "constructor", {
198
198
  value: GeneratorFunction,
199
199
  configurable: !0
200
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
201
- var ctor = "function" == typeof genFun && genFun.constructor;
202
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
203
- }, exports.mark = function (genFun) {
204
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
205
- }, exports.awrap = function (arg) {
200
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
201
+ var e = "function" == typeof t && t.constructor;
202
+ return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
203
+ }, e.mark = function (t) {
204
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
205
+ }, e.awrap = function (t) {
206
206
  return {
207
- __await: arg
207
+ __await: t
208
208
  };
209
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
209
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
210
210
  return this;
211
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
212
- void 0 === PromiseImpl && (PromiseImpl = Promise);
213
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
214
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
215
- return result.done ? result.value : iter.next();
211
+ }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
212
+ void 0 === i && (i = Promise);
213
+ var a = new AsyncIterator(wrap(t, r, n, o), i);
214
+ return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
215
+ return t.done ? t.value : a.next();
216
216
  });
217
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
217
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
218
218
  return this;
219
- }), define(Gp, "toString", function () {
219
+ }), define(g, "toString", function () {
220
220
  return "[object Generator]";
221
- }), exports.keys = function (val) {
222
- var object = Object(val),
223
- keys = [];
224
- for (var key in object) keys.push(key);
225
- return keys.reverse(), function next() {
226
- for (; keys.length;) {
227
- var key = keys.pop();
228
- if (key in object) return next.value = key, next.done = !1, next;
221
+ }), e.keys = function (t) {
222
+ var e = Object(t),
223
+ r = [];
224
+ for (var n in e) r.push(n);
225
+ return r.reverse(), function next() {
226
+ for (; r.length;) {
227
+ var t = r.pop();
228
+ if (t in e) return next.value = t, next.done = !1, next;
229
229
  }
230
230
  return next.done = !0, next;
231
231
  };
232
- }, exports.values = values, Context.prototype = {
232
+ }, e.values = values, Context.prototype = {
233
233
  constructor: Context,
234
- reset: function (skipTempReset) {
235
- 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);
234
+ reset: function (e) {
235
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
236
236
  },
237
237
  stop: function () {
238
238
  this.done = !0;
239
- var rootRecord = this.tryEntries[0].completion;
240
- if ("throw" === rootRecord.type) throw rootRecord.arg;
239
+ var t = this.tryEntries[0].completion;
240
+ if ("throw" === t.type) throw t.arg;
241
241
  return this.rval;
242
242
  },
243
- dispatchException: function (exception) {
244
- if (this.done) throw exception;
245
- var context = this;
246
- function handle(loc, caught) {
247
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
243
+ dispatchException: function (e) {
244
+ if (this.done) throw e;
245
+ var r = this;
246
+ function handle(n, o) {
247
+ return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
248
248
  }
249
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
250
- var entry = this.tryEntries[i],
251
- record = entry.completion;
252
- if ("root" === entry.tryLoc) return handle("end");
253
- if (entry.tryLoc <= this.prev) {
254
- var hasCatch = hasOwn.call(entry, "catchLoc"),
255
- hasFinally = hasOwn.call(entry, "finallyLoc");
256
- if (hasCatch && hasFinally) {
257
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
258
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
259
- } else if (hasCatch) {
260
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
249
+ for (var o = this.tryEntries.length - 1; o >= 0; --o) {
250
+ var i = this.tryEntries[o],
251
+ a = i.completion;
252
+ if ("root" === i.tryLoc) return handle("end");
253
+ if (i.tryLoc <= this.prev) {
254
+ var c = n.call(i, "catchLoc"),
255
+ u = n.call(i, "finallyLoc");
256
+ if (c && u) {
257
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
258
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
259
+ } else if (c) {
260
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
261
261
  } else {
262
- if (!hasFinally) throw new Error("try statement without catch or finally");
263
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
262
+ if (!u) throw new Error("try statement without catch or finally");
263
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
264
264
  }
265
265
  }
266
266
  }
267
267
  },
268
- abrupt: function (type, arg) {
269
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
270
- var entry = this.tryEntries[i];
271
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
272
- var finallyEntry = entry;
268
+ abrupt: function (t, e) {
269
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
270
+ var o = this.tryEntries[r];
271
+ if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
272
+ var i = o;
273
273
  break;
274
274
  }
275
275
  }
276
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
277
- var record = finallyEntry ? finallyEntry.completion : {};
278
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
276
+ i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
277
+ var a = i ? i.completion : {};
278
+ return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
279
279
  },
280
- complete: function (record, afterLoc) {
281
- if ("throw" === record.type) throw record.arg;
282
- 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;
280
+ complete: function (t, e) {
281
+ if ("throw" === t.type) throw t.arg;
282
+ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
283
283
  },
284
- finish: function (finallyLoc) {
285
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
286
- var entry = this.tryEntries[i];
287
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
284
+ finish: function (t) {
285
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
286
+ var r = this.tryEntries[e];
287
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
288
288
  }
289
289
  },
290
- catch: function (tryLoc) {
291
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
292
- var entry = this.tryEntries[i];
293
- if (entry.tryLoc === tryLoc) {
294
- var record = entry.completion;
295
- if ("throw" === record.type) {
296
- var thrown = record.arg;
297
- resetTryEntry(entry);
290
+ catch: function (t) {
291
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
292
+ var r = this.tryEntries[e];
293
+ if (r.tryLoc === t) {
294
+ var n = r.completion;
295
+ if ("throw" === n.type) {
296
+ var o = n.arg;
297
+ resetTryEntry(r);
298
298
  }
299
- return thrown;
299
+ return o;
300
300
  }
301
301
  }
302
302
  throw new Error("illegal catch attempt");
303
303
  },
304
- delegateYield: function (iterable, resultName, nextLoc) {
304
+ delegateYield: function (e, r, n) {
305
305
  return this.delegate = {
306
- iterator: values(iterable),
307
- resultName: resultName,
308
- nextLoc: nextLoc
309
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
306
+ iterator: values(e),
307
+ resultName: r,
308
+ nextLoc: n
309
+ }, "next" === this.method && (this.arg = t), y;
310
310
  }
311
- }, exports;
311
+ }, e;
312
312
  }
313
313
  function _wrapRegExp() {
314
- _wrapRegExp = function (re, groups) {
315
- return new BabelRegExp(re, void 0, groups);
314
+ _wrapRegExp = function (e, r) {
315
+ return new BabelRegExp(e, void 0, r);
316
316
  };
317
- var _super = RegExp.prototype,
318
- _groups = new WeakMap();
319
- function BabelRegExp(re, flags, groups) {
320
- var _this = new RegExp(re, flags);
321
- return _groups.set(_this, groups || _groups.get(re)), _setPrototypeOf(_this, BabelRegExp.prototype);
317
+ var e = RegExp.prototype,
318
+ r = new WeakMap();
319
+ function BabelRegExp(e, t, p) {
320
+ var o = new RegExp(e, t);
321
+ return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype);
322
322
  }
323
- function buildGroups(result, re) {
324
- var g = _groups.get(re);
325
- return Object.keys(g).reduce(function (groups, name) {
326
- var i = g[name];
327
- if ("number" == typeof i) groups[name] = result[i];else {
328
- for (var k = 0; void 0 === result[i[k]] && k + 1 < i.length;) k++;
329
- groups[name] = result[i[k]];
323
+ function buildGroups(e, t) {
324
+ var p = r.get(t);
325
+ return Object.keys(p).reduce(function (r, t) {
326
+ var o = p[t];
327
+ if ("number" == typeof o) r[t] = e[o];else {
328
+ for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++;
329
+ r[t] = e[o[i]];
330
330
  }
331
- return groups;
331
+ return r;
332
332
  }, Object.create(null));
333
333
  }
334
- return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) {
335
- var result = _super.exec.call(this, str);
336
- if (result) {
337
- result.groups = buildGroups(result, this);
338
- var indices = result.indices;
339
- indices && (indices.groups = buildGroups(indices, this));
334
+ return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) {
335
+ var t = e.exec.call(this, r);
336
+ if (t) {
337
+ t.groups = buildGroups(t, this);
338
+ var p = t.indices;
339
+ p && (p.groups = buildGroups(p, this));
340
340
  }
341
- return result;
342
- }, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
343
- if ("string" == typeof substitution) {
344
- var groups = _groups.get(this);
345
- return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) {
346
- var group = groups[name];
347
- return "$" + (Array.isArray(group) ? group.join("$") : group);
341
+ return t;
342
+ }, BabelRegExp.prototype[Symbol.replace] = function (t, p) {
343
+ if ("string" == typeof p) {
344
+ var o = r.get(this);
345
+ return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)>/g, function (e, r) {
346
+ var t = o[r];
347
+ return "$" + (Array.isArray(t) ? t.join("$") : t);
348
348
  }));
349
349
  }
350
- if ("function" == typeof substitution) {
351
- var _this = this;
352
- return _super[Symbol.replace].call(this, str, function () {
353
- var args = arguments;
354
- return "object" != typeof args[args.length - 1] && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args);
350
+ if ("function" == typeof p) {
351
+ var i = this;
352
+ return e[Symbol.replace].call(this, t, function () {
353
+ var e = arguments;
354
+ return "object" != typeof e[e.length - 1] && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e);
355
355
  });
356
356
  }
357
- return _super[Symbol.replace].call(this, str, substitution);
357
+ return e[Symbol.replace].call(this, t, p);
358
358
  }, _wrapRegExp.apply(this, arguments);
359
359
  }
360
360
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
@@ -462,7 +462,11 @@ function _construct(Parent, args, Class) {
462
462
  return _construct.apply(null, arguments);
463
463
  }
464
464
  function _isNativeFunction(fn) {
465
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
465
+ try {
466
+ return Function.toString.call(fn).indexOf("[native code]") !== -1;
467
+ } catch (e) {
468
+ return typeof fn === "function";
469
+ }
466
470
  }
467
471
  function _wrapNativeSuper(Class) {
468
472
  var _cache = typeof Map === "function" ? new Map() : undefined;
@@ -1186,7 +1190,7 @@ function _registerPatient() {
1186
1190
  identity = undefined;
1187
1191
  errorsThrown = [];
1188
1192
  stepsTotalNum = 9;
1189
- // toggle all changed statuses if this workflow has previous/revision data
1193
+ // toggle all changed statuses if this workflow has previous/revision data
1190
1194
  workflow = detectChangesInWorkflowAnswers(workflow);
1191
1195
  _loop = /*#__PURE__*/_regeneratorRuntime().mark(function _loop() {
1192
1196
  var _consultIndex, _identity, _identity2, practitioners, grantPromises, consultIndex, consultIndexPromises;
@@ -1397,13 +1401,13 @@ function _registerPatient() {
1397
1401
  case 62:
1398
1402
  // if we got through the complete flow, the registration succeeded
1399
1403
  if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'success');
1400
- return _context3.abrupt("return", "break");
1404
+ return _context3.abrupt("return", 0);
1401
1405
  case 66:
1402
1406
  _context3.prev = 66;
1403
1407
  _context3.t0 = _context3["catch"](0);
1404
1408
  console.error("[SDK] Error occured during registration: " + _context3.t0 + ", retrying... Retries remaining: " + retry);
1405
1409
  errorsThrown = [];
1406
- return _context3.abrupt("return", "continue");
1410
+ return _context3.abrupt("return", 1);
1407
1411
  case 71:
1408
1412
  case "end":
1409
1413
  return _context3.stop();
@@ -1418,13 +1422,13 @@ function _registerPatient() {
1418
1422
  return _context4.delegateYield(_loop(), "t0", 12);
1419
1423
  case 12:
1420
1424
  _ret = _context4.t0;
1421
- if (!(_ret === "break")) {
1425
+ if (!(_ret === 0)) {
1422
1426
  _context4.next = 15;
1423
1427
  break;
1424
1428
  }
1425
1429
  return _context4.abrupt("break", 20);
1426
1430
  case 15:
1427
- if (!(_ret === "continue")) {
1431
+ if (!(_ret === 1)) {
1428
1432
  _context4.next = 17;
1429
1433
  break;
1430
1434
  }
@@ -1488,7 +1492,7 @@ function _getOrCreatePatientLockbox() {
1488
1492
  return _context5.abrupt("return", grants[0].lockboxUuid);
1489
1493
  case 8:
1490
1494
  _context5.next = 10;
1491
- return oroClient.vaultClient.lockboxCreate()["catch"](function (err) {
1495
+ return oroClient.lockboxCreate()["catch"](function (err) {
1492
1496
  console.error('Error while creating lockbox', err);
1493
1497
  throw err;
1494
1498
  });