@compilot/react-sdk 2.124.0-dev → 2.126.0-dev

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.
@@ -259,47 +259,77 @@ var useComPilotConfig = function useComPilotConfig() {
259
259
 
260
260
  function _regeneratorRuntime() {
261
261
  _regeneratorRuntime = function () {
262
- return e;
262
+ return r;
263
263
  };
264
264
  var t,
265
- e = {},
266
- r = Object.prototype,
267
- n = r.hasOwnProperty,
268
- o = Object.defineProperty || function (t, e, r) {
269
- t[e] = r.value;
270
- },
271
- i = "function" == typeof Symbol ? Symbol : {},
272
- a = i.iterator || "@@iterator",
273
- c = i.asyncIterator || "@@asyncIterator",
274
- u = i.toStringTag || "@@toStringTag";
275
- function define(t, e, r) {
276
- return Object.defineProperty(t, e, {
277
- value: r,
278
- enumerable: !0,
279
- configurable: !0,
280
- writable: !0
281
- }), t[e];
265
+ r = {},
266
+ e = Object.prototype,
267
+ n = e.hasOwnProperty,
268
+ o = "function" == typeof Symbol ? Symbol : {},
269
+ i = o.iterator || "@@iterator",
270
+ a = o.asyncIterator || "@@asyncIterator",
271
+ u = o.toStringTag || "@@toStringTag";
272
+ function c(t, r, e, n) {
273
+ return Object.defineProperty(t, r, {
274
+ value: e,
275
+ enumerable: !n,
276
+ configurable: !n,
277
+ writable: !n
278
+ });
282
279
  }
283
280
  try {
284
- define({}, "");
281
+ c({}, "");
285
282
  } catch (t) {
286
- define = function (t, e, r) {
287
- return t[e] = r;
283
+ c = function (t, r, e) {
284
+ return t[r] = e;
288
285
  };
289
286
  }
290
- function wrap(t, e, r, n) {
287
+ function h(r, e, n, o) {
291
288
  var i = e && e.prototype instanceof Generator ? e : Generator,
292
- a = Object.create(i.prototype),
293
- c = new Context(n || []);
294
- return o(a, "_invoke", {
295
- value: makeInvokeMethod(t, r, c)
296
- }), a;
289
+ a = Object.create(i.prototype);
290
+ return c(a, "_invoke", function (r, e, n) {
291
+ var o = 1;
292
+ return function (i, a) {
293
+ if (3 === o) throw Error("Generator is already running");
294
+ if (4 === o) {
295
+ if ("throw" === i) throw a;
296
+ return {
297
+ value: t,
298
+ done: !0
299
+ };
300
+ }
301
+ for (n.method = i, n.arg = a;;) {
302
+ var u = n.delegate;
303
+ if (u) {
304
+ var c = d(u, n);
305
+ if (c) {
306
+ if (c === f) continue;
307
+ return c;
308
+ }
309
+ }
310
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
311
+ if (1 === o) throw o = 4, n.arg;
312
+ n.dispatchException(n.arg);
313
+ } else "return" === n.method && n.abrupt("return", n.arg);
314
+ o = 3;
315
+ var h = s(r, e, n);
316
+ if ("normal" === h.type) {
317
+ if (o = n.done ? 4 : 2, h.arg === f) continue;
318
+ return {
319
+ value: h.arg,
320
+ done: n.done
321
+ };
322
+ }
323
+ "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg);
324
+ }
325
+ };
326
+ }(r, n, new Context(o || [])), !0), a;
297
327
  }
298
- function tryCatch(t, e, r) {
328
+ function s(t, r, e) {
299
329
  try {
300
330
  return {
301
331
  type: "normal",
302
- arg: t.call(e, r)
332
+ arg: t.call(r, e)
303
333
  };
304
334
  } catch (t) {
305
335
  return {
@@ -308,255 +338,193 @@ function _regeneratorRuntime() {
308
338
  };
309
339
  }
310
340
  }
311
- e.wrap = wrap;
312
- var h = "suspendedStart",
313
- l = "suspendedYield",
314
- f = "executing",
315
- s = "completed",
316
- y = {};
341
+ r.wrap = h;
342
+ var f = {};
317
343
  function Generator() {}
318
344
  function GeneratorFunction() {}
319
345
  function GeneratorFunctionPrototype() {}
320
- var p = {};
321
- define(p, a, function () {
346
+ var l = {};
347
+ c(l, i, function () {
322
348
  return this;
323
349
  });
324
- var d = Object.getPrototypeOf,
325
- v = d && d(d(values([])));
326
- v && v !== r && n.call(v, a) && (p = v);
327
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
328
- function defineIteratorMethods(t) {
329
- ["next", "throw", "return"].forEach(function (e) {
330
- define(t, e, function (t) {
331
- return this._invoke(e, t);
350
+ var p = Object.getPrototypeOf,
351
+ y = p && p(p(x([])));
352
+ y && y !== e && n.call(y, i) && (l = y);
353
+ var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l);
354
+ function g(t) {
355
+ ["next", "throw", "return"].forEach(function (r) {
356
+ c(t, r, function (t) {
357
+ return this._invoke(r, t);
332
358
  });
333
359
  });
334
360
  }
335
- function AsyncIterator(t, e) {
336
- function invoke(r, o, i, a) {
337
- var c = tryCatch(t[r], t, o);
361
+ function AsyncIterator(t, r) {
362
+ function e(o, i, a, u) {
363
+ var c = s(t[o], t, i);
338
364
  if ("throw" !== c.type) {
339
- var u = c.arg,
340
- h = u.value;
341
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
342
- invoke("next", t, i, a);
365
+ var h = c.arg,
366
+ f = h.value;
367
+ return f && "object" == typeof f && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) {
368
+ e("next", t, a, u);
343
369
  }, function (t) {
344
- invoke("throw", t, i, a);
345
- }) : e.resolve(h).then(function (t) {
346
- u.value = t, i(u);
370
+ e("throw", t, a, u);
371
+ }) : r.resolve(f).then(function (t) {
372
+ h.value = t, a(h);
347
373
  }, function (t) {
348
- return invoke("throw", t, i, a);
374
+ return e("throw", t, a, u);
349
375
  });
350
376
  }
351
- a(c.arg);
377
+ u(c.arg);
352
378
  }
353
- var r;
354
- o(this, "_invoke", {
355
- value: function (t, n) {
356
- function callInvokeWithMethodAndArg() {
357
- return new e(function (e, r) {
358
- invoke(t, n, e, r);
359
- });
360
- }
361
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
362
- }
363
- });
364
- }
365
- function makeInvokeMethod(e, r, n) {
366
- var o = h;
367
- return function (i, a) {
368
- if (o === f) throw Error("Generator is already running");
369
- if (o === s) {
370
- if ("throw" === i) throw a;
371
- return {
372
- value: t,
373
- done: !0
374
- };
375
- }
376
- for (n.method = i, n.arg = a;;) {
377
- var c = n.delegate;
378
- if (c) {
379
- var u = maybeInvokeDelegate(c, n);
380
- if (u) {
381
- if (u === y) continue;
382
- return u;
383
- }
384
- }
385
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
386
- if (o === h) throw o = s, n.arg;
387
- n.dispatchException(n.arg);
388
- } else "return" === n.method && n.abrupt("return", n.arg);
389
- o = f;
390
- var p = tryCatch(e, r, n);
391
- if ("normal" === p.type) {
392
- if (o = n.done ? s : l, p.arg === y) continue;
393
- return {
394
- value: p.arg,
395
- done: n.done
396
- };
397
- }
398
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
379
+ var o;
380
+ c(this, "_invoke", function (t, n) {
381
+ function i() {
382
+ return new r(function (r, o) {
383
+ e(t, n, r, o);
384
+ });
399
385
  }
400
- };
386
+ return o = o ? o.then(i, i) : i();
387
+ }, !0);
401
388
  }
402
- function maybeInvokeDelegate(e, r) {
403
- var n = r.method,
404
- o = e.iterator[n];
405
- 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;
406
- var i = tryCatch(o, e.iterator, r.arg);
407
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
389
+ function d(r, e) {
390
+ var n = e.method,
391
+ o = r.i[n];
392
+ if (o === t) return e.delegate = null, "throw" === n && r.i.return && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f;
393
+ var i = s(o, r.i, e.arg);
394
+ if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f;
408
395
  var a = i.arg;
409
- 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);
396
+ return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f);
410
397
  }
411
- function pushTryEntry(t) {
412
- var e = {
413
- tryLoc: t[0]
414
- };
415
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
398
+ function w(t) {
399
+ this.tryEntries.push(t);
416
400
  }
417
- function resetTryEntry(t) {
418
- var e = t.completion || {};
419
- e.type = "normal", delete e.arg, t.completion = e;
401
+ function m(r) {
402
+ var e = r[4] || {};
403
+ e.type = "normal", e.arg = t, r[4] = e;
420
404
  }
421
405
  function Context(t) {
422
- this.tryEntries = [{
423
- tryLoc: "root"
424
- }], t.forEach(pushTryEntry, this), this.reset(!0);
406
+ this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0);
425
407
  }
426
- function values(e) {
427
- if (e || "" === e) {
428
- var r = e[a];
429
- if (r) return r.call(e);
430
- if ("function" == typeof e.next) return e;
431
- if (!isNaN(e.length)) {
408
+ function x(r) {
409
+ if (null != r) {
410
+ var e = r[i];
411
+ if (e) return e.call(r);
412
+ if ("function" == typeof r.next) return r;
413
+ if (!isNaN(r.length)) {
432
414
  var o = -1,
433
- i = function next() {
434
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
435
- return next.value = t, next.done = !0, next;
415
+ a = function e() {
416
+ for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e;
417
+ return e.value = t, e.done = !0, e;
436
418
  };
437
- return i.next = i;
419
+ return a.next = a;
438
420
  }
439
421
  }
440
- throw new TypeError(typeof e + " is not iterable");
422
+ throw new TypeError(typeof r + " is not iterable");
441
423
  }
442
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
443
- value: GeneratorFunctionPrototype,
444
- configurable: !0
445
- }), o(GeneratorFunctionPrototype, "constructor", {
446
- value: GeneratorFunction,
447
- configurable: !0
448
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
449
- var e = "function" == typeof t && t.constructor;
450
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
451
- }, e.mark = function (t) {
452
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
453
- }, e.awrap = function (t) {
424
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function (t) {
425
+ var r = "function" == typeof t && t.constructor;
426
+ return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name));
427
+ }, r.mark = function (t) {
428
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t;
429
+ }, r.awrap = function (t) {
454
430
  return {
455
431
  __await: t
456
432
  };
457
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
433
+ }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () {
458
434
  return this;
459
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
435
+ }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) {
460
436
  void 0 === i && (i = Promise);
461
- var a = new AsyncIterator(wrap(t, r, n, o), i);
462
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
437
+ var a = new AsyncIterator(h(t, e, n, o), i);
438
+ return r.isGeneratorFunction(e) ? a : a.next().then(function (t) {
463
439
  return t.done ? t.value : a.next();
464
440
  });
465
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
441
+ }, g(v), c(v, u, "Generator"), c(v, i, function () {
466
442
  return this;
467
- }), define(g, "toString", function () {
443
+ }), c(v, "toString", function () {
468
444
  return "[object Generator]";
469
- }), e.keys = function (t) {
470
- var e = Object(t),
471
- r = [];
472
- for (var n in e) r.push(n);
473
- return r.reverse(), function next() {
474
- for (; r.length;) {
475
- var t = r.pop();
476
- if (t in e) return next.value = t, next.done = !1, next;
477
- }
478
- return next.done = !0, next;
445
+ }), r.keys = function (t) {
446
+ var r = Object(t),
447
+ e = [];
448
+ for (var n in r) e.unshift(n);
449
+ return function t() {
450
+ for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t;
451
+ return t.done = !0, t;
479
452
  };
480
- }, e.values = values, Context.prototype = {
453
+ }, r.values = x, Context.prototype = {
481
454
  constructor: Context,
482
- reset: function (e) {
483
- 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);
455
+ reset: function (r) {
456
+ if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t);
484
457
  },
485
458
  stop: function () {
486
459
  this.done = !0;
487
- var t = this.tryEntries[0].completion;
460
+ var t = this.tryEntries[0][4];
488
461
  if ("throw" === t.type) throw t.arg;
489
462
  return this.rval;
490
463
  },
491
- dispatchException: function (e) {
492
- if (this.done) throw e;
493
- var r = this;
494
- function handle(n, o) {
495
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
464
+ dispatchException: function (r) {
465
+ if (this.done) throw r;
466
+ var e = this;
467
+ function n(t) {
468
+ a.type = "throw", a.arg = r, e.next = t;
496
469
  }
497
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
470
+ for (var o = e.tryEntries.length - 1; o >= 0; --o) {
498
471
  var i = this.tryEntries[o],
499
- a = i.completion;
500
- if ("root" === i.tryLoc) return handle("end");
501
- if (i.tryLoc <= this.prev) {
502
- var c = n.call(i, "catchLoc"),
503
- u = n.call(i, "finallyLoc");
504
- if (c && u) {
505
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
506
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
507
- } else if (c) {
508
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
509
- } else {
510
- if (!u) throw Error("try statement without catch or finally");
511
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
512
- }
472
+ a = i[4],
473
+ u = this.prev,
474
+ c = i[1],
475
+ h = i[2];
476
+ if (-1 === i[0]) return n("end"), !1;
477
+ if (!c && !h) throw Error("try statement without catch or finally");
478
+ if (null != i[0] && i[0] <= u) {
479
+ if (u < c) return this.method = "next", this.arg = t, n(c), !0;
480
+ if (u < h) return n(h), !1;
513
481
  }
514
482
  }
515
483
  },
516
- abrupt: function (t, e) {
517
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
518
- var o = this.tryEntries[r];
519
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
520
- var i = o;
484
+ abrupt: function (t, r) {
485
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
486
+ var n = this.tryEntries[e];
487
+ if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) {
488
+ var o = n;
521
489
  break;
522
490
  }
523
491
  }
524
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
525
- var a = i ? i.completion : {};
526
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
492
+ o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null);
493
+ var i = o ? o[4] : {};
494
+ return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i);
527
495
  },
528
- complete: function (t, e) {
496
+ complete: function (t, r) {
529
497
  if ("throw" === t.type) throw t.arg;
530
- 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;
498
+ 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 && r && (this.next = r), f;
531
499
  },
532
500
  finish: function (t) {
533
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
534
- var r = this.tryEntries[e];
535
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
501
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
502
+ var e = this.tryEntries[r];
503
+ if (e[2] === t) return this.complete(e[4], e[3]), m(e), f;
536
504
  }
537
505
  },
538
506
  catch: function (t) {
539
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
540
- var r = this.tryEntries[e];
541
- if (r.tryLoc === t) {
542
- var n = r.completion;
507
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
508
+ var e = this.tryEntries[r];
509
+ if (e[0] === t) {
510
+ var n = e[4];
543
511
  if ("throw" === n.type) {
544
512
  var o = n.arg;
545
- resetTryEntry(r);
513
+ m(e);
546
514
  }
547
515
  return o;
548
516
  }
549
517
  }
550
518
  throw Error("illegal catch attempt");
551
519
  },
552
- delegateYield: function (e, r, n) {
520
+ delegateYield: function (r, e, n) {
553
521
  return this.delegate = {
554
- iterator: values(e),
555
- resultName: r,
556
- nextLoc: n
557
- }, "next" === this.method && (this.arg = t), y;
522
+ i: x(r),
523
+ r: e,
524
+ n: n
525
+ }, "next" === this.method && (this.arg = t), f;
558
526
  }
559
- }, e;
527
+ }, r;
560
528
  }
561
529
 
562
530
  function asyncGeneratorStep(n, t, e, r, o, a, c) {