idmission-web-sdk 2.5.60-fix-auth-client-request-errors-2e5bbe1 → 2.5.60-react16compat.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/sdk2.esm.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import React, { useRef, useState, useEffect, useLayoutEffect, useCallback, useMemo, useContext, createContext, createElement, forwardRef, useImperativeHandle, memo, useReducer } from 'react';
2
- import { createStore } from 'zustand/vanilla';
3
2
  import platform from 'platform';
4
3
  import { DetailedError, Upload } from 'tus-js-client';
5
4
  import SparkMD5 from 'spark-md5';
@@ -9,10 +8,8 @@ import { useSyncExternalStore } from 'use-sync-external-store/shim';
9
8
  import { useTranslation } from 'react-i18next';
10
9
  import LanguageDetector from 'i18next-browser-languagedetector';
11
10
  import { createInstance } from 'i18next';
12
- import { createPortal } from 'react-dom';
11
+ import ReactDOM, { createPortal } from 'react-dom';
13
12
  import SignaturePad from 'signature_pad';
14
- import { ThinkingOrb } from 'thinking-orbs';
15
- import ReactDOM from 'react-dom/client';
16
13
  import { ImageSegmenter, FilesetResolver, ObjectDetector, ImageClassifier, FaceLandmarker as FaceLandmarker$2 } from '@mediapipe/tasks-vision';
17
14
  import { isWebGPUSupported, loadAndCompile, loadLiteRt, Tensor } from '@litertjs/core';
18
15
 
@@ -446,17 +443,17 @@ function _iterableToArrayLimit(r, l) {
446
443
  }
447
444
  }
448
445
 
449
- function _arrayLikeToArray$v(r, a) {
446
+ function _arrayLikeToArray$w(r, a) {
450
447
  (null == a || a > r.length) && (a = r.length);
451
448
  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
452
449
  return n;
453
450
  }
454
451
 
455
- function _unsupportedIterableToArray$v(r, a) {
452
+ function _unsupportedIterableToArray$w(r, a) {
456
453
  if (r) {
457
- if ("string" == typeof r) return _arrayLikeToArray$v(r, a);
454
+ if ("string" == typeof r) return _arrayLikeToArray$w(r, a);
458
455
  var t = {}.toString.call(r).slice(8, -1);
459
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$v(r, a) : void 0;
456
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$w(r, a) : void 0;
460
457
  }
461
458
  }
462
459
 
@@ -465,11 +462,11 @@ function _nonIterableRest() {
465
462
  }
466
463
 
467
464
  function _slicedToArray(r, e) {
468
- return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$v(r, e) || _nonIterableRest();
465
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$w(r, e) || _nonIterableRest();
469
466
  }
470
467
 
471
468
  function _arrayWithoutHoles(r) {
472
- if (Array.isArray(r)) return _arrayLikeToArray$v(r);
469
+ if (Array.isArray(r)) return _arrayLikeToArray$w(r);
473
470
  }
474
471
 
475
472
  function _iterableToArray(r) {
@@ -481,7 +478,7 @@ function _nonIterableSpread() {
481
478
  }
482
479
 
483
480
  function _toConsumableArray(r) {
484
- return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$v(r) || _nonIterableSpread();
481
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$w(r) || _nonIterableSpread();
485
482
  }
486
483
 
487
484
  var webSdkCoreVersion = '0.4.0';
@@ -1256,9 +1253,9 @@ var attemptStatuses = ["active", "completed", "failed", "superseded", "disposed"
1256
1253
  ({
1257
1254
  workflowMilestones: [].concat(_toConsumableArray(workflowMilestones), ["task-completed"])});
1258
1255
 
1259
- function _createForOfIteratorHelperLoose$u(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$u(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1260
- function _unsupportedIterableToArray$u(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$u(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$u(r, a) : void 0; } }
1261
- function _arrayLikeToArray$u(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
1256
+ function _createForOfIteratorHelperLoose$v(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$v(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1257
+ function _unsupportedIterableToArray$v(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$v(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$v(r, a) : void 0; } }
1258
+ function _arrayLikeToArray$v(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
1262
1259
  var maximumBytes = 32 * 1024;
1263
1260
  var maximumTime = 86400000;
1264
1261
  var uuidPattern = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
@@ -1326,7 +1323,7 @@ function validateSnapshot(report) {
1326
1323
  unique(report.phaseTotals.map(function (total) {
1327
1324
  return total.phase;
1328
1325
  }));
1329
- for (var _iterator = _createForOfIteratorHelperLoose$u(report.phaseTotals), _step; !(_step = _iterator()).done;) {
1326
+ for (var _iterator = _createForOfIteratorHelperLoose$v(report.phaseTotals), _step; !(_step = _iterator()).done;) {
1330
1327
  var _total4 = _step.value;
1331
1328
  requireValid(member(phases, _total4.phase) && integer(_total4.completions, 1000000) && _total4.completions <= _total4.duration.entries);
1332
1329
  durationValid(_total4.duration);
@@ -1348,7 +1345,7 @@ function validateSnapshot(report) {
1348
1345
  requireValid(report.recentTransitions.length <= 32);
1349
1346
  var index = 0;
1350
1347
  var atMs = 0;
1351
- for (var _iterator2 = _createForOfIteratorHelperLoose$u(report.recentTransitions), _step2; !(_step2 = _iterator2()).done;) {
1348
+ for (var _iterator2 = _createForOfIteratorHelperLoose$v(report.recentTransitions), _step2; !(_step2 = _iterator2()).done;) {
1352
1349
  var transition = _step2.value;
1353
1350
  requireValid(member(transitionKinds, transition.kind));
1354
1351
  requireValid(integer(transition.index, 1000000) && transition.index > index && integer(transition.atMs) && transition.atMs >= atMs && transition.atMs <= report.elapsedMs);
@@ -1372,12 +1369,12 @@ function validateSnapshot(report) {
1372
1369
  unique(report.controllerGuidanceTotals.map(function (total) {
1373
1370
  return JSON.stringify([total.phase, total.guidance]);
1374
1371
  }));
1375
- for (var _iterator3 = _createForOfIteratorHelperLoose$u(report.guidanceTotals), _step3; !(_step3 = _iterator3()).done;) {
1372
+ for (var _iterator3 = _createForOfIteratorHelperLoose$v(report.guidanceTotals), _step3; !(_step3 = _iterator3()).done;) {
1376
1373
  var _total2 = _step3.value;
1377
1374
  durationValid(_total2.duration);
1378
1375
  exposureValid(_total2.phase, _total2.exposure);
1379
1376
  }
1380
- for (var _iterator4 = _createForOfIteratorHelperLoose$u(report.controllerGuidanceTotals), _step4; !(_step4 = _iterator4()).done;) {
1377
+ for (var _iterator4 = _createForOfIteratorHelperLoose$v(report.controllerGuidanceTotals), _step4; !(_step4 = _iterator4()).done;) {
1381
1378
  var _total3 = _step4.value;
1382
1379
  durationValid(_total3.duration);
1383
1380
  guidanceValid(_total3.phase, _total3.guidance, false);
@@ -1411,7 +1408,7 @@ function encodeProgressBatch(batch) {
1411
1408
  requireValid(batch.schemaVersion === 1 && batch.sdkVersion.length > 0 && batch.sdkVersion.length <= 32 && batch.sessionId.length > 0 && uuidPattern.test(batch.producerId) && integer(batch.sentAtUnixMs, Number.MAX_SAFE_INTEGER));
1412
1409
  var reports = [];
1413
1410
  var dropped = [];
1414
- for (var _iterator5 = _createForOfIteratorHelperLoose$u(batch.reports), _step5; !(_step5 = _iterator5()).done;) {
1411
+ for (var _iterator5 = _createForOfIteratorHelperLoose$v(batch.reports), _step5; !(_step5 = _iterator5()).done;) {
1415
1412
  var report = _step5.value;
1416
1413
  try {
1417
1414
  validateSnapshot(report);
@@ -1440,9 +1437,9 @@ function encodeProgressBatch(batch) {
1440
1437
  };
1441
1438
  }
1442
1439
 
1443
- function _createForOfIteratorHelperLoose$t(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$t(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1444
- function _unsupportedIterableToArray$t(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$t(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$t(r, a) : void 0; } }
1445
- function _arrayLikeToArray$t(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
1440
+ function _createForOfIteratorHelperLoose$u(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$u(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1441
+ function _unsupportedIterableToArray$u(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$u(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$u(r, a) : void 0; } }
1442
+ function _arrayLikeToArray$u(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
1446
1443
  var taskOpeners = new WeakMap();
1447
1444
  var inertObserver = {
1448
1445
  observe: function observe() {},
@@ -1496,7 +1493,7 @@ function createSessionActor(options, deps) {
1496
1493
  var due = new Map();
1497
1494
  var eligibilityRetries = new Map();
1498
1495
  function dropped(report) {
1499
- for (var _iterator = _createForOfIteratorHelperLoose$t(streams), _step; !(_step = _iterator()).done;) {
1496
+ for (var _iterator = _createForOfIteratorHelperLoose$u(streams), _step; !(_step = _iterator()).done;) {
1500
1497
  var stream = _step.value;
1501
1498
  if (stream.state.report.streamId === report.streamId) stream.state = _extends({}, stream.state, {
1502
1499
  report: _extends({}, stream.state.report, {
@@ -1540,7 +1537,7 @@ function createSessionActor(options, deps) {
1540
1537
  var retained = new Set(queued.map(function (report) {
1541
1538
  return report.sequence;
1542
1539
  }));
1543
- for (var _iterator2 = _createForOfIteratorHelperLoose$t(due.keys()), _step2; !(_step2 = _iterator2()).done;) {
1540
+ for (var _iterator2 = _createForOfIteratorHelperLoose$u(due.keys()), _step2; !(_step2 = _iterator2()).done;) {
1544
1541
  var _sequence = _step2.value;
1545
1542
  if (!retained.has(_sequence)) due["delete"](_sequence);
1546
1543
  }
@@ -1553,7 +1550,7 @@ function createSessionActor(options, deps) {
1553
1550
  var keys = new Set(reports.map(function (report) {
1554
1551
  return report.sequence;
1555
1552
  }));
1556
- for (var _iterator3 = _createForOfIteratorHelperLoose$t(pending), _step3; !(_step3 = _iterator3()).done;) {
1553
+ for (var _iterator3 = _createForOfIteratorHelperLoose$u(pending), _step3; !(_step3 = _iterator3()).done;) {
1557
1554
  var _step3$value = _slicedToArray(_step3.value, 2),
1558
1555
  key = _step3$value[0],
1559
1556
  report = _step3$value[1];
@@ -1577,14 +1574,14 @@ function createSessionActor(options, deps) {
1577
1574
  if ((_emergency = emergency) != null && _emergency.reports.some(function (report) {
1578
1575
  return report.context === context;
1579
1576
  })) emergency = null;
1580
- for (var _iterator4 = _createForOfIteratorHelperLoose$t(pending), _step4; !(_step4 = _iterator4()).done;) {
1577
+ for (var _iterator4 = _createForOfIteratorHelperLoose$u(pending), _step4; !(_step4 = _iterator4()).done;) {
1581
1578
  var _step4$value = _slicedToArray(_step4.value, 2),
1582
1579
  key = _step4$value[0],
1583
1580
  report = _step4$value[1];
1584
1581
  if (report.context === context) pending["delete"](key);
1585
1582
  }
1586
1583
  for (var i = terminal.length - 1; i >= 0; i--) if (terminal[i].context === context) terminal.splice(i, 1);
1587
- for (var _iterator5 = _createForOfIteratorHelperLoose$t(streams), _step5; !(_step5 = _iterator5()).done;) {
1584
+ for (var _iterator5 = _createForOfIteratorHelperLoose$u(streams), _step5; !(_step5 = _iterator5()).done;) {
1588
1585
  var stream = _step5.value;
1589
1586
  if (stream.state.report.context === context) {
1590
1587
  stream.disposed = true;
@@ -1613,7 +1610,7 @@ function createSessionActor(options, deps) {
1613
1610
  unsubscribe();
1614
1611
  cancelTimer == null || cancelTimer();
1615
1612
  cancelRequest == null || cancelRequest();
1616
- for (var _iterator6 = _createForOfIteratorHelperLoose$t(streams), _step6; !(_step6 = _iterator6()).done;) {
1613
+ for (var _iterator6 = _createForOfIteratorHelperLoose$u(streams), _step6; !(_step6 = _iterator6()).done;) {
1617
1614
  var stream = _step6.value;
1618
1615
  stream.disposed = true;
1619
1616
  }
@@ -1635,7 +1632,7 @@ function createSessionActor(options, deps) {
1635
1632
  sentAtUnixMs: Math.floor(deps.unixMs()),
1636
1633
  reports: reports
1637
1634
  });
1638
- for (var _iterator7 = _createForOfIteratorHelperLoose$t(result.dropped), _step7; !(_step7 = _iterator7()).done;) {
1635
+ for (var _iterator7 = _createForOfIteratorHelperLoose$u(result.dropped), _step7; !(_step7 = _iterator7()).done;) {
1639
1636
  var report = _step7.value;
1640
1637
  dropped(report);
1641
1638
  removeReports([report]);
@@ -1805,14 +1802,14 @@ function createSessionActor(options, deps) {
1805
1802
  retries = 0;
1806
1803
  failureStreak = 0;
1807
1804
  } else if (result.kind === "permanent") {
1808
- for (_iterator11 = _createForOfIteratorHelperLoose$t(sending.reports); !(_step11 = _iterator11()).done;) {
1805
+ for (_iterator11 = _createForOfIteratorHelperLoose$u(sending.reports); !(_step11 = _iterator11()).done;) {
1809
1806
  report = _step11.value;
1810
1807
  disable(report.context);
1811
1808
  }
1812
1809
  } else {
1813
1810
  backoff(result);
1814
1811
  if (++retries > 3) {
1815
- for (_iterator12 = _createForOfIteratorHelperLoose$t(sending.reports); !(_step12 = _iterator12()).done;) {
1812
+ for (_iterator12 = _createForOfIteratorHelperLoose$u(sending.reports); !(_step12 = _iterator12()).done;) {
1816
1813
  _report = _step12.value;
1817
1814
  dropped(_report);
1818
1815
  }
@@ -1834,7 +1831,7 @@ function createSessionActor(options, deps) {
1834
1831
  backoff({});
1835
1832
  if (authorizing) failedEligibility(authorizing);
1836
1833
  if (frozen && ++retries > 3) {
1837
- for (_iterator13 = _createForOfIteratorHelperLoose$t(frozen.reports); !(_step13 = _iterator13()).done;) {
1834
+ for (_iterator13 = _createForOfIteratorHelperLoose$u(frozen.reports); !(_step13 = _iterator13()).done;) {
1838
1835
  _report2 = _step13.value;
1839
1836
  dropped(_report2);
1840
1837
  }
@@ -1877,7 +1874,7 @@ function createSessionActor(options, deps) {
1877
1874
  } else if (outcome.kind === "committed") {
1878
1875
  if (emergency === sending) emergency = null;
1879
1876
  } else if (outcome.kind === "permanent") {
1880
- for (var _iterator8 = _createForOfIteratorHelperLoose$t(sending.reports), _step8; !(_step8 = _iterator8()).done;) {
1877
+ for (var _iterator8 = _createForOfIteratorHelperLoose$u(sending.reports), _step8; !(_step8 = _iterator8()).done;) {
1881
1878
  var report = _step8.value;
1882
1879
  disable(report.context);
1883
1880
  }
@@ -1909,7 +1906,7 @@ function createSessionActor(options, deps) {
1909
1906
  }
1910
1907
  function tick() {
1911
1908
  if (disposed || visibility === "hidden") return;
1912
- for (var _iterator9 = _createForOfIteratorHelperLoose$t(streams), _step9; !(_step9 = _iterator9()).done;) {
1909
+ for (var _iterator9 = _createForOfIteratorHelperLoose$u(streams), _step9; !(_step9 = _iterator9()).done;) {
1913
1910
  var stream = _step9.value;
1914
1911
  var report = prepareDeadline(stream);
1915
1912
  if (!(report != null && report.current)) continue;
@@ -1936,7 +1933,7 @@ function createSessionActor(options, deps) {
1936
1933
  if (disposed || visibility === "hidden") return;
1937
1934
  var delay = Infinity;
1938
1935
  if (!busy && (pending.size || terminal.length || frozen || emergency)) delay = Math.max(0, deliveryReadyAt() - deps.now());
1939
- for (var _iterator0 = _createForOfIteratorHelperLoose$t(streams), _step0; !(_step0 = _iterator0()).done;) {
1936
+ for (var _iterator0 = _createForOfIteratorHelperLoose$u(streams), _step0; !(_step0 = _iterator0()).done;) {
1940
1937
  var stream = _step0.value;
1941
1938
  var report = prepareDeadline(stream);
1942
1939
  if (!(report != null && report.current)) continue;
@@ -2022,7 +2019,7 @@ function createSessionActor(options, deps) {
2022
2019
  return guard$2(function () {
2023
2020
  if (disposed || next === visibility) return;
2024
2021
  visibility = next;
2025
- for (var _iterator1 = _createForOfIteratorHelperLoose$t(streams), _step1; !(_step1 = _iterator1()).done;) {
2022
+ for (var _iterator1 = _createForOfIteratorHelperLoose$u(streams), _step1; !(_step1 = _iterator1()).done;) {
2026
2023
  var stream = _step1.value;
2027
2024
  if (stream.state.report.attemptStatus !== "active") continue;
2028
2025
  stream.state = reduceObservation(stream.state, {
@@ -2063,7 +2060,7 @@ function createSessionActor(options, deps) {
2063
2060
  if (taskDisposed) return;
2064
2061
  taskDisposed = true;
2065
2062
  if (workflowStream) close(workflowStream, "disposed");
2066
- for (var _iterator10 = _createForOfIteratorHelperLoose$t(captures), _step10; !(_step10 = _iterator10()).done;) {
2063
+ for (var _iterator10 = _createForOfIteratorHelperLoose$u(captures), _step10; !(_step10 = _iterator10()).done;) {
2067
2064
  var capture = _step10.value;
2068
2065
  capture.dispose();
2069
2066
  }
@@ -2201,6 +2198,44 @@ function isApprovedResponse(action, response) {
2201
2198
  return action === SubmissionAction.ENROLL ? result === "Customer Onboarded" : result === "Approved";
2202
2199
  }
2203
2200
 
2201
+ var createStoreImpl = function createStoreImpl(createState) {
2202
+ var state;
2203
+ var listeners = /* @__PURE__ */new Set();
2204
+ var setState = function setState(partial, replace) {
2205
+ var nextState = typeof partial === "function" ? partial(state) : partial;
2206
+ if (!Object.is(nextState, state)) {
2207
+ var previousState = state;
2208
+ state = (replace != null ? replace : typeof nextState !== "object" || nextState === null) ? nextState : Object.assign({}, state, nextState);
2209
+ listeners.forEach(function (listener) {
2210
+ return listener(state, previousState);
2211
+ });
2212
+ }
2213
+ };
2214
+ var getState = function getState() {
2215
+ return state;
2216
+ };
2217
+ var getInitialState = function getInitialState() {
2218
+ return initialState;
2219
+ };
2220
+ var subscribe = function subscribe(listener) {
2221
+ listeners.add(listener);
2222
+ return function () {
2223
+ return listeners["delete"](listener);
2224
+ };
2225
+ };
2226
+ var api = {
2227
+ setState: setState,
2228
+ getState: getState,
2229
+ getInitialState: getInitialState,
2230
+ subscribe: subscribe
2231
+ };
2232
+ var initialState = state = createState(setState, getState, api);
2233
+ return api;
2234
+ };
2235
+ var createStore = function createStore(createState) {
2236
+ return createState ? createStoreImpl(createState) : createStoreImpl;
2237
+ };
2238
+
2204
2239
  function sessionReducer(state, action) {
2205
2240
  switch (action.type) {
2206
2241
  case 'setSessionId':
@@ -2858,7 +2893,7 @@ function _objectWithoutPropertiesLoose(r, e) {
2858
2893
  return t;
2859
2894
  }
2860
2895
 
2861
- var _excluded$j = ["nonce", "web", "os"];
2896
+ var _excluded$k = ["nonce", "web", "os"];
2862
2897
  /**
2863
2898
  * Grade the envelope from whichever inputs are present:
2864
2899
  * - OS token present -> 'os-attested' (attach `os`)
@@ -2872,7 +2907,7 @@ function buildClientAttestation(input) {
2872
2907
  var nonce = input.nonce,
2873
2908
  web = input.web,
2874
2909
  os = input.os,
2875
- versions = _objectWithoutPropertiesLoose(input, _excluded$j);
2910
+ versions = _objectWithoutPropertiesLoose(input, _excluded$k);
2876
2911
  if (os) {
2877
2912
  return _extends({
2878
2913
  assuranceLevel: 'os-attested',
@@ -3455,9 +3490,9 @@ function blobToB64(blob) {
3455
3490
  });
3456
3491
  }
3457
3492
 
3458
- function _createForOfIteratorHelperLoose$s(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$s(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3459
- function _unsupportedIterableToArray$s(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$s(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$s(r, a) : void 0; } }
3460
- function _arrayLikeToArray$s(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
3493
+ function _createForOfIteratorHelperLoose$t(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$t(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3494
+ function _unsupportedIterableToArray$t(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$t(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$t(r, a) : void 0; } }
3495
+ function _arrayLikeToArray$t(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
3461
3496
  /**
3462
3497
  * Parser for AAMVA (American Association of Motor Vehicle Administrators)
3463
3498
  * PDF417 barcode data found on US and Canadian driver's licenses.
@@ -3719,7 +3754,7 @@ function parseAAMVABarcode(rawData) {
3719
3754
  DAD: false
3720
3755
  };
3721
3756
  var daaValue = null;
3722
- for (var _iterator = _createForOfIteratorHelperLoose$s(lines), _step; !(_step = _iterator()).done;) {
3757
+ for (var _iterator = _createForOfIteratorHelperLoose$t(lines), _step; !(_step = _iterator()).done;) {
3723
3758
  var line = _step.value;
3724
3759
  var match = line.match(fieldRegex);
3725
3760
  if (match) {
@@ -3760,7 +3795,7 @@ function parseAAMVABarcode(rawData) {
3760
3795
  result.fields.push(field);
3761
3796
  }
3762
3797
  };
3763
- for (var _iterator2 = _createForOfIteratorHelperLoose$s(daaFields), _step2; !(_step2 = _iterator2()).done;) {
3798
+ for (var _iterator2 = _createForOfIteratorHelperLoose$t(daaFields), _step2; !(_step2 = _iterator2()).done;) {
3764
3799
  _loop();
3765
3800
  }
3766
3801
  }
@@ -6453,7 +6488,7 @@ var fr = {
6453
6488
  'Barcode capture in progress, please hold still': 'Capture du code-barres en cours, veuillez ne pas bouger'
6454
6489
  };
6455
6490
 
6456
- var it = {
6491
+ var it$1 = {
6457
6492
  'English - en': 'Italian - it',
6458
6493
  'Use your device camera to capture your ID': 'Utilizzare la fotocamera del dispositivo per acquisire il documento',
6459
6494
  'Use your iPhone as a webcam': 'Utilizza iPhone come webcam',
@@ -6749,7 +6784,7 @@ var ja = {
6749
6784
  'Barcode capture in progress, please hold still': 'バーコードを読み取っています。動かないでください'
6750
6785
  };
6751
6786
 
6752
- var pt = {
6787
+ var pt$1 = {
6753
6788
  'English - en': 'Portuguese (Brazil) - pt',
6754
6789
  'Use your device camera to capture your ID': 'Usar a câmera do dispositivo para fotografar sua identidade',
6755
6790
  'Use your iPhone as a webcam': 'Use seu iPhone como uma câmera Web',
@@ -7299,13 +7334,13 @@ var resources = {
7299
7334
  translation: withThreeOhTranslations('fr', fr)
7300
7335
  },
7301
7336
  it: {
7302
- translation: withThreeOhTranslations('it', it)
7337
+ translation: withThreeOhTranslations('it', it$1)
7303
7338
  },
7304
7339
  ja: {
7305
7340
  translation: withThreeOhTranslations('ja', ja)
7306
7341
  },
7307
7342
  pt: {
7308
- translation: withThreeOhTranslations('pt', pt)
7343
+ translation: withThreeOhTranslations('pt', pt$1)
7309
7344
  },
7310
7345
  ru: {
7311
7346
  translation: withThreeOhTranslations('ru', ru)
@@ -7620,10 +7655,10 @@ function useGuideOrientationContext() {
7620
7655
  }
7621
7656
 
7622
7657
  var _templateObject$_, _templateObject2$P;
7623
- var _excluded$i = ["isRearFacing"];
7658
+ var _excluded$j = ["isRearFacing"];
7624
7659
  var CameraVideoTag = /*#__PURE__*/forwardRef(function CameraVideoTag(_ref, ref) {
7625
7660
  var isRearFacing = _ref.isRearFacing,
7626
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
7661
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
7627
7662
  return jsx(FullscreenVideoTag, _extends({
7628
7663
  autoPlay: true,
7629
7664
  playsInline: true,
@@ -7691,9 +7726,9 @@ function ScalingCameraFeed(_ref2) {
7691
7726
  }
7692
7727
 
7693
7728
  var _templateObject$Z, _templateObject2$O, _templateObject3$D, _templateObject4$y, _templateObject5$t, _templateObject6$l;
7694
- function _createForOfIteratorHelperLoose$r(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$r(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7695
- function _unsupportedIterableToArray$r(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$r(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$r(r, a) : void 0; } }
7696
- function _arrayLikeToArray$r(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
7729
+ function _createForOfIteratorHelperLoose$s(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$s(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7730
+ function _unsupportedIterableToArray$s(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$s(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$s(r, a) : void 0; } }
7731
+ function _arrayLikeToArray$s(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
7697
7732
  /** Displays camera readiness and available source-frame dimensions. */
7698
7733
  function CameraDebugStatus(_ref) {
7699
7734
  var ready = _ref.ready,
@@ -7958,7 +7993,7 @@ function SelfieCaptureFaceMesh(_ref15) {
7958
7993
  groups.forEach(function (indices, color) {
7959
7994
  ctx.fillStyle = color;
7960
7995
  ctx.beginPath();
7961
- for (var _iterator = _createForOfIteratorHelperLoose$r(indices), _step; !(_step = _iterator()).done;) {
7996
+ for (var _iterator = _createForOfIteratorHelperLoose$s(indices), _step; !(_step = _iterator()).done;) {
7962
7997
  var _i = _step.value;
7963
7998
  var p = meshLandmarks[_i];
7964
7999
  ctx.moveTo(p.x + dotRadius, p.y);
@@ -8140,7 +8175,7 @@ var EdgeStrip = styled.div(_templateObject$Y || (_templateObject$Y = _taggedTemp
8140
8175
  });
8141
8176
 
8142
8177
  var _templateObject$X;
8143
- var _excluded$h = ["children", "className", "colors", "disabled", "finished", "variant"];
8178
+ var _excluded$i = ["children", "className", "colors", "disabled", "finished", "variant"];
8144
8179
  var LoaderButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
8145
8180
  var children = _ref.children,
8146
8181
  className = _ref.className,
@@ -8150,7 +8185,7 @@ var LoaderButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
8150
8185
  finished = _ref.finished,
8151
8186
  _ref$variant = _ref.variant,
8152
8187
  variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
8153
- props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
8188
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
8154
8189
  var buttonRef = useRef(null);
8155
8190
  var laddaRef = useRef(null);
8156
8191
  var _useState = useState(false),
@@ -8461,7 +8496,7 @@ var error = function error() {
8461
8496
  return (console.error ).apply(void 0, arguments);
8462
8497
  }; // eslint-disable-line no-console
8463
8498
 
8464
- var _excluded$g = ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress", "guideBoxDisabled"],
8499
+ var _excluded$h = ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress", "guideBoxDisabled"],
8465
8500
  _excluded2$5 = ["borderRadius", "borderColor", "borderWidth", "borderOpacity", "progress", "isProgressBar", "scaleBorderRadius"];
8466
8501
  var _templateObject$S, _templateObject2$K, _templateObject3$A, _templateObject4$v, _templateObject5$r, _templateObject6$j, _templateObject7$g;
8467
8502
  var IdCardGuideImageContainer = styled(IdCardBorder)(_templateObject$S || (_templateObject$S = _taggedTemplateLiteralLoose(["\n position: relative;\n ", "\n box-sizing: border-box;\n max-width: 100%;\n max-height: 100%;\n ", ";\n"])), function (props) {
@@ -8491,7 +8526,7 @@ function IdCardBorder(_ref) {
8491
8526
  progress = _ref$progress === void 0 ? 0 : _ref$progress,
8492
8527
  _ref$guideBoxDisabled = _ref.guideBoxDisabled,
8493
8528
  guideBoxDisabled = _ref$guideBoxDisabled === void 0 ? false : _ref$guideBoxDisabled,
8494
- props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
8529
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
8495
8530
  var _useResizeObserver = useResizeObserver(),
8496
8531
  ref = _useResizeObserver.ref,
8497
8532
  _useResizeObserver$wi = _useResizeObserver.width,
@@ -9881,11 +9916,11 @@ var LoadingGraphicPhoneGroup = styled.g(_templateObject4$s || (_templateObject4$
9881
9916
  return props.$offScreen ? '40px' : '0';
9882
9917
  });
9883
9918
 
9884
- var _excluded$f = ["state"];
9919
+ var _excluded$g = ["state"];
9885
9920
  function LoadingListItemIndicator(_ref) {
9886
9921
  var _ref$state = _ref.state,
9887
9922
  state = _ref$state === void 0 ? 'running' : _ref$state,
9888
- svgProps = _objectWithoutPropertiesLoose(_ref, _excluded$f);
9923
+ svgProps = _objectWithoutPropertiesLoose(_ref, _excluded$g);
9889
9924
  return jsx("svg", _extends({
9890
9925
  width: "16",
9891
9926
  height: "16",
@@ -10390,9 +10425,9 @@ function loadingOverlayBottomEdgeColor(theme, modelsReady) {
10390
10425
  });
10391
10426
  }
10392
10427
 
10393
- function _createForOfIteratorHelperLoose$q(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$q(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10394
- function _unsupportedIterableToArray$q(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$q(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$q(r, a) : void 0; } }
10395
- function _arrayLikeToArray$q(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
10428
+ function _createForOfIteratorHelperLoose$r(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$r(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10429
+ function _unsupportedIterableToArray$r(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$r(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$r(r, a) : void 0; } }
10430
+ function _arrayLikeToArray$r(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
10396
10431
  var DEFAULT_THRESHOLD = 0.03;
10397
10432
  // Minimum confidence a `'Finger'` detection must clear before it counts
10398
10433
  // toward occlusion. The LiteRT document detector emits low-score
@@ -10443,7 +10478,7 @@ function computeFingerOcclusion(bestDocument, detectedObjects, documentType, thr
10443
10478
  // overlap each other the shared area gets double-counted — that errs
10444
10479
  // toward over-blocking, which is the safer direction for occlusion.
10445
10480
  var totalOverlap = 0;
10446
- for (var _iterator = _createForOfIteratorHelperLoose$q(detectedObjects), _step; !(_step = _iterator()).done;) {
10481
+ for (var _iterator = _createForOfIteratorHelperLoose$r(detectedObjects), _step; !(_step = _iterator()).done;) {
10447
10482
  var obj = _step.value;
10448
10483
  if (obj.label !== 'Finger') continue;
10449
10484
  if (obj.score < MIN_FINGER_SCORE) continue;
@@ -10475,7 +10510,7 @@ function anyOverlapByLabel(bestDocument, detectedObjects, label, minScore) {
10475
10510
  if (!bestDocument) return false;
10476
10511
  var docBox = bestDocument.box;
10477
10512
  if (docBox.width <= 0 || docBox.height <= 0) return false;
10478
- for (var _iterator2 = _createForOfIteratorHelperLoose$q(detectedObjects), _step2; !(_step2 = _iterator2()).done;) {
10513
+ for (var _iterator2 = _createForOfIteratorHelperLoose$r(detectedObjects), _step2; !(_step2 = _iterator2()).done;) {
10479
10514
  var obj = _step2.value;
10480
10515
  if (obj.label !== label) continue;
10481
10516
  if (obj.score < minScore) continue;
@@ -10651,9 +10686,9 @@ var initialFlowState = {
10651
10686
 
10652
10687
  var CapturedDocumentTypeValues = ['idCardFront', 'idCardBack', 'passport', 'singlePage', 'selfie', 'idFrontIrImage', 'idBackIrImage', 'idFrontUvImage', 'idBackUvImage', 'idBarcodeImage'];
10653
10688
 
10654
- function _createForOfIteratorHelperLoose$p(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$p(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10655
- function _unsupportedIterableToArray$p(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$p(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$p(r, a) : void 0; } }
10656
- function _arrayLikeToArray$p(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
10689
+ function _createForOfIteratorHelperLoose$q(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$q(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10690
+ function _unsupportedIterableToArray$q(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$q(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$q(r, a) : void 0; } }
10691
+ function _arrayLikeToArray$q(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
10657
10692
  // Tuning constants — seeded estimates. Expect on-device tuning against real
10658
10693
  // captures across angles/devices (same posture as the liveness geometry).
10659
10694
  var CONTAINMENT_MIN = 0.8; // fraction of inner box inside the outer box
@@ -10681,7 +10716,7 @@ function containment(inner, outer) {
10681
10716
  }
10682
10717
  function bestByLabel(objs, label) {
10683
10718
  var best = null;
10684
- for (var _iterator = _createForOfIteratorHelperLoose$p(objs), _step; !(_step = _iterator()).done;) {
10719
+ for (var _iterator = _createForOfIteratorHelperLoose$q(objs), _step; !(_step = _iterator()).done;) {
10685
10720
  var o = _step.value;
10686
10721
  if (o.label !== label) continue;
10687
10722
  if (o.score < MIN_BOOKLET_SCORE) continue;
@@ -10856,9 +10891,9 @@ function remainingIdCaptureRequirements(captureRequirement, capturedDocuments, r
10856
10891
  });
10857
10892
  }
10858
10893
 
10859
- function _createForOfIteratorHelperLoose$o(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$o(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10860
- function _unsupportedIterableToArray$o(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$o(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$o(r, a) : void 0; } }
10861
- function _arrayLikeToArray$o(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
10894
+ function _createForOfIteratorHelperLoose$p(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$p(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10895
+ function _unsupportedIterableToArray$p(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$p(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$p(r, a) : void 0; } }
10896
+ function _arrayLikeToArray$p(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
10862
10897
  /**
10863
10898
  * Clears the current frame's verdict (sdk2 idCaptureReducer.ts:367-389). Both
10864
10899
  * of these describe "the last frame we looked at", so they are meaningless —
@@ -10942,7 +10977,7 @@ var _reduceIdCapture = function reduceIdCapture(state, action, now) {
10942
10977
  // from one the user captured -- `documentCaptured` erases the
10943
10978
  // difference by design (see state.ts precapturedDocumentTypes).
10944
10979
  var seeded = [];
10945
- for (var _iterator = _createForOfIteratorHelperLoose$o(CapturedDocumentTypeValues), _step; !(_step = _iterator()).done;) {
10980
+ for (var _iterator = _createForOfIteratorHelperLoose$p(CapturedDocumentTypeValues), _step; !(_step = _iterator()).done;) {
10946
10981
  var k = _step.value;
10947
10982
  var payload = precapturedDocuments[k];
10948
10983
  if (payload) {
@@ -11280,7 +11315,7 @@ var _reduceIdCapture = function reduceIdCapture(state, action, now) {
11280
11315
  case 'documentsCaptured':
11281
11316
  {
11282
11317
  var _newState2 = _extends({}, state);
11283
- for (var _iterator2 = _createForOfIteratorHelperLoose$o(action.payload), _step2; !(_step2 = _iterator2()).done;) {
11318
+ for (var _iterator2 = _createForOfIteratorHelperLoose$p(action.payload), _step2; !(_step2 = _iterator2()).done;) {
11284
11319
  var doc = _step2.value;
11285
11320
  _newState2 = _reduceIdCapture(_newState2, {
11286
11321
  type: 'documentCaptured',
@@ -13482,9 +13517,9 @@ function evaluateIsMobile(nav) {
13482
13517
  return false;
13483
13518
  }
13484
13519
 
13485
- function _createForOfIteratorHelperLoose$n(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$n(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13486
- function _unsupportedIterableToArray$n(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$n(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$n(r, a) : void 0; } }
13487
- function _arrayLikeToArray$n(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13520
+ function _createForOfIteratorHelperLoose$o(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$o(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13521
+ function _unsupportedIterableToArray$o(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$o(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$o(r, a) : void 0; } }
13522
+ function _arrayLikeToArray$o(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13488
13523
  // zxing-js UMD build, self-hosted on the SDK's own CDN (version-pinned) rather
13489
13524
  // than fetched from unpkg. The previous `@latest` URL was both an external
13490
13525
  // dependency and a supply-chain risk — it executed whatever unpkg served as
@@ -14224,7 +14259,7 @@ function _decodePDF() {
14224
14259
  }
14225
14260
  base = _bases[_i];
14226
14261
  log$1("[NativeBarcodeDecoder] Trying fine rotation deskew around " + base.angle + "\xB0...");
14227
- _iterator = _createForOfIteratorHelperLoose$n(FINE_ROTATION_ANGLES);
14262
+ _iterator = _createForOfIteratorHelperLoose$o(FINE_ROTATION_ANGLES);
14228
14263
  case 11:
14229
14264
  if ((_step = _iterator()).done) {
14230
14265
  _context0.next = 14;
@@ -14749,7 +14784,7 @@ function _decodePDF417WithDetails() {
14749
14784
  }
14750
14785
  base = _bases2[_i2];
14751
14786
  log$1("[NativeBarcodeDecoder] Trying fine rotation deskew around " + base.angle + "\xB0 (detailed)...");
14752
- _iterator2 = _createForOfIteratorHelperLoose$n(FINE_ROTATION_ANGLES);
14787
+ _iterator2 = _createForOfIteratorHelperLoose$o(FINE_ROTATION_ANGLES);
14753
14788
  case 12:
14754
14789
  if ((_step2 = _iterator2()).done) {
14755
14790
  _context12.next = 15;
@@ -14868,9 +14903,9 @@ var CaptureAttachError = /*#__PURE__*/function (_Error) {
14868
14903
  return CaptureAttachError;
14869
14904
  }(/*#__PURE__*/_wrapNativeSuper(Error));
14870
14905
 
14871
- function _createForOfIteratorHelperLoose$m(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$m(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
14872
- function _unsupportedIterableToArray$m(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$m(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$m(r, a) : void 0; } }
14873
- function _arrayLikeToArray$m(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14906
+ function _createForOfIteratorHelperLoose$n(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$n(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
14907
+ function _unsupportedIterableToArray$n(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$n(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$n(r, a) : void 0; } }
14908
+ function _arrayLikeToArray$n(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14874
14909
  /**
14875
14910
  * Analyzes barcode readability for a detected document
14876
14911
  * (IdCaptureModelsProvider.tsx:83-199, ported verbatim; the last two
@@ -15331,7 +15366,7 @@ function createDetectionPipeline(opts) {
15331
15366
  });
15332
15367
  if (failed) {
15333
15368
  loadSettled = true;
15334
- for (var _iterator = _createForOfIteratorHelperLoose$m(lifecycleHandles), _step; !(_step = _iterator()).done;) {
15369
+ for (var _iterator = _createForOfIteratorHelperLoose$n(lifecycleHandles), _step; !(_step = _iterator()).done;) {
15335
15370
  var handle = _step.value;
15336
15371
  handle.cancel();
15337
15372
  }
@@ -16617,9 +16652,9 @@ function maybeDataUrlToBase64Sync(url) {
16617
16652
  return dataUrlToBase64Sync(url);
16618
16653
  }
16619
16654
 
16620
- function _createForOfIteratorHelperLoose$l(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$l(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16621
- function _unsupportedIterableToArray$l(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$l(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$l(r, a) : void 0; } }
16622
- function _arrayLikeToArray$l(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
16655
+ function _createForOfIteratorHelperLoose$m(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$m(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16656
+ function _unsupportedIterableToArray$m(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$m(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$m(r, a) : void 0; } }
16657
+ function _arrayLikeToArray$m(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
16623
16658
  // Document types whose capture attempt becomes an upload's `filemetadata`, in
16624
16659
  // write order: `singlePage` after `idCardFront` so it wins `idFrontImage`,
16625
16660
  // exactly as the image does below.
@@ -16709,7 +16744,7 @@ function buildIdCaptureArtifacts(inputs, now) {
16709
16744
  };
16710
16745
  if (ocrMetadata) meta.ocrMetadata = ocrMetadata;
16711
16746
  var documentFileMetadata = {};
16712
- for (var _iterator = _createForOfIteratorHelperLoose$l(FILE_METADATA_KEYS), _step; !(_step = _iterator()).done;) {
16747
+ for (var _iterator = _createForOfIteratorHelperLoose$m(FILE_METADATA_KEYS), _step; !(_step = _iterator()).done;) {
16713
16748
  var _step$value = _slicedToArray(_step.value, 2),
16714
16749
  documentType = _step$value[0],
16715
16750
  documentKey = _step$value[1];
@@ -16736,10 +16771,10 @@ function buildIdCaptureArtifacts(inputs, now) {
16736
16771
  };
16737
16772
  }
16738
16773
 
16739
- var _excluded$e = ["bestBarcodeScore", "barcodeBoundingBox"];
16740
- function _createForOfIteratorHelperLoose$k(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$k(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16741
- function _unsupportedIterableToArray$k(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$k(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$k(r, a) : void 0; } }
16742
- function _arrayLikeToArray$k(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
16774
+ var _excluded$f = ["bestBarcodeScore", "barcodeBoundingBox"];
16775
+ function _createForOfIteratorHelperLoose$l(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$l(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16776
+ function _unsupportedIterableToArray$l(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$l(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$l(r, a) : void 0; } }
16777
+ function _arrayLikeToArray$l(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
16743
16778
  // sdk2/src/components/id_capture/IdCaptureWizard.tsx:253-262
16744
16779
  var lastDocumentDetectedAtDefaults = {
16745
16780
  idCardFront: null,
@@ -16909,7 +16944,7 @@ function createIdCaptureController(config) {
16909
16944
  // payload.ts's buildNoBarcodeOCRMetadata fallback counts).
16910
16945
  var bestBarcodeScore = metadata.bestBarcodeScore,
16911
16946
  barcodeBoundingBox = metadata.barcodeBoundingBox,
16912
- captureAttemptWithoutBarcode = _objectWithoutPropertiesLoose(metadata, _excluded$e);
16947
+ captureAttemptWithoutBarcode = _objectWithoutPropertiesLoose(metadata, _excluded$f);
16913
16948
  captureAttempts.back.push(captureAttemptWithoutBarcode);
16914
16949
  // :619-629 -- appended whenever a barcode score was recorded at all
16915
16950
  // (0 counts: auto-capture stamps `bestBarcodeScore: bestBarcode?.score
@@ -16949,7 +16984,7 @@ function createIdCaptureController(config) {
16949
16984
  }
16950
16985
  }
16951
16986
  function clearAllTimers() {
16952
- for (var _iterator = _createForOfIteratorHelperLoose$k(timers.values()), _step; !(_step = _iterator()).done;) {
16987
+ for (var _iterator = _createForOfIteratorHelperLoose$l(timers.values()), _step; !(_step = _iterator()).done;) {
16953
16988
  var handle = _step.value;
16954
16989
  io.clearTimeout(handle);
16955
16990
  }
@@ -19956,7 +19991,7 @@ var ContinueButton$2 = styled(LoaderButton)(_templateObject7$c || (_templateObje
19956
19991
  return (_props$theme$idCaptur5 = (_props$theme7 = props.theme) == null || (_props$theme7 = _props$theme7.idCapture) == null || (_props$theme7 = _props$theme7.loadingOverlay) == null ? void 0 : _props$theme7.continueBtnDisabledBorder) != null ? _props$theme$idCaptur5 : 'none';
19957
19992
  });
19958
19993
 
19959
- var _excluded$d = ["mode"];
19994
+ var _excluded$e = ["mode"];
19960
19995
  var components$1 = {
19961
19996
  "default": IdCaptureLoadingOverlayDefault,
19962
19997
  legacy: IdCaptureLoadingOverlayLegacy,
@@ -19966,7 +20001,7 @@ var IdCaptureLoadingOverlay = function IdCaptureLoadingOverlay(_ref) {
19966
20001
  var _components$mode;
19967
20002
  var _ref$mode = _ref.mode,
19968
20003
  mode = _ref$mode === void 0 ? 'default' : _ref$mode,
19969
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
20004
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
19970
20005
  var Component = (_components$mode = components$1[mode]) != null ? _components$mode : components$1["default"];
19971
20006
  return jsx(Component, _extends({}, props));
19972
20007
  };
@@ -21549,9 +21584,9 @@ function useSessionReady() {
21549
21584
  }
21550
21585
 
21551
21586
  var _templateObject$w;
21552
- function _createForOfIteratorHelperLoose$j(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$j(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
21553
- function _unsupportedIterableToArray$j(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$j(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$j(r, a) : void 0; } }
21554
- function _arrayLikeToArray$j(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
21587
+ function _createForOfIteratorHelperLoose$k(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$k(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
21588
+ function _unsupportedIterableToArray$k(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$k(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$k(r, a) : void 0; } }
21589
+ function _arrayLikeToArray$k(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
21555
21590
  // Unlike SelfieCaptureView/FaceLivenessView, this view has no root
21556
21591
  // container of its own -- ScalingCameraFeed/IdCaptureGuides/etc. render as
21557
21592
  // siblings relying on whatever positioned ancestor the host page provides.
@@ -21819,7 +21854,7 @@ function IdCaptureViewContent(_ref) {
21819
21854
  // after this effect first runs with an empty state). Folding it in here,
21820
21855
  // rather than seeding once on mount, is what makes the skip actually
21821
21856
  // apply. `seen` keeps a consumed exclusion from being re-armed.
21822
- for (var _iterator = _createForOfIteratorHelperLoose$j(state.precapturedDocumentTypes), _step; !(_step = _iterator()).done;) {
21857
+ for (var _iterator = _createForOfIteratorHelperLoose$k(state.precapturedDocumentTypes), _step; !(_step = _iterator()).done;) {
21823
21858
  var _documentType = _step.value;
21824
21859
  if (seenPrecapturedRef.current.has(_documentType)) continue;
21825
21860
  seenPrecapturedRef.current.add(_documentType);
@@ -23195,9 +23230,9 @@ function guidanceFor(state, prediction, at) {
23195
23230
  return code === SelfieGuidanceCode.HOLD_STILL && handOverFaceHeld(state.handOverFaceAt, at) ? SelfieGuidanceCode.HAND_OVER_FACE : code;
23196
23231
  }
23197
23232
 
23198
- function _createForOfIteratorHelperLoose$i(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$i(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
23199
- function _unsupportedIterableToArray$i(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$i(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$i(r, a) : void 0; } }
23200
- function _arrayLikeToArray$i(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
23233
+ function _createForOfIteratorHelperLoose$j(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$j(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
23234
+ function _unsupportedIterableToArray$j(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$j(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$j(r, a) : void 0; } }
23235
+ function _arrayLikeToArray$j(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
23201
23236
  // sdk2 componenets/selfie_capture/faceDetectorDefault.ts:5
23202
23237
  // (DEFAULT_FACE_DETECTOR): face-landmarker is the default face model as of
23203
23238
  // 2.4.0.
@@ -23227,7 +23262,7 @@ function mapDetectionsToFaces(prediction) {
23227
23262
  if (!prediction) return null;
23228
23263
  var faceDetections = [];
23229
23264
  var noseDetections = [];
23230
- for (var _iterator = _createForOfIteratorHelperLoose$i(prediction.detections), _step; !(_step = _iterator()).done;) {
23265
+ for (var _iterator = _createForOfIteratorHelperLoose$j(prediction.detections), _step; !(_step = _iterator()).done;) {
23231
23266
  var detection = _step.value;
23232
23267
  if (isNoseDetection(detection)) {
23233
23268
  noseDetections.push(detection);
@@ -23241,7 +23276,7 @@ function mapDetectionsToFaces(prediction) {
23241
23276
  var faceBox = d.boundingBox;
23242
23277
  if (!faceBox) continue;
23243
23278
  var nose = null;
23244
- for (var _iterator2 = _createForOfIteratorHelperLoose$i(noseDetections), _step2; !(_step2 = _iterator2()).done;) {
23279
+ for (var _iterator2 = _createForOfIteratorHelperLoose$j(noseDetections), _step2; !(_step2 = _iterator2()).done;) {
23245
23280
  var n = _step2.value;
23246
23281
  var noseBox = n.boundingBox;
23247
23282
  if (!noseBox) continue;
@@ -24043,9 +24078,9 @@ function captureQualityException(reason, measurements, originalThresholds, recov
24043
24078
  };
24044
24079
  }
24045
24080
 
24046
- function _createForOfIteratorHelperLoose$h(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$h(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24047
- function _unsupportedIterableToArray$h(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$h(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$h(r, a) : void 0; } }
24048
- function _arrayLikeToArray$h(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
24081
+ function _createForOfIteratorHelperLoose$i(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$i(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24082
+ function _unsupportedIterableToArray$i(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$i(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$i(r, a) : void 0; } }
24083
+ function _arrayLikeToArray$i(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
24049
24084
  // sdk2 SelfieGuidanceModelsProvider.tsx onPredictionMade's useThrottledCallback
24050
24085
  // second argument (SelfieCapture.tsx:225 -- "locks to 60fps maximum").
24051
24086
  var DEFAULT_PREDICTION_THROTTLE_MS = 16;
@@ -24167,7 +24202,7 @@ function createSelfieCaptureController(config) {
24167
24202
  // --- timers (idCapture pattern, colon-namespaced) ---
24168
24203
  var timers = new Map();
24169
24204
  function clearAllTimers() {
24170
- for (var _iterator = _createForOfIteratorHelperLoose$h(timers.values()), _step; !(_step = _iterator()).done;) {
24205
+ for (var _iterator = _createForOfIteratorHelperLoose$i(timers.values()), _step; !(_step = _iterator()).done;) {
24171
24206
  var handle = _step.value;
24172
24207
  io.clearTimeout(handle);
24173
24208
  }
@@ -25934,7 +25969,7 @@ function SelfieCameraFeed(_ref) {
25934
25969
  }
25935
25970
 
25936
25971
  var _templateObject$u, _templateObject2$r, _templateObject3$j, _templateObject4$f;
25937
- var _excluded$c = ["borderColor", "borderOpacity", "borderWidth", "status"],
25972
+ var _excluded$d = ["borderColor", "borderOpacity", "borderWidth", "status"],
25938
25973
  _excluded2$4 = ["status", "guideStyle"],
25939
25974
  _excluded3 = ["frame", "borderWidth", "borderColor", "borderOpacity", "verticalAlign", "status", "guideStyle"],
25940
25975
  _excluded4 = ["status"];
@@ -25951,7 +25986,7 @@ var HeadGuideSvg = /*#__PURE__*/forwardRef(function (_ref, ref) {
25951
25986
  borderWidth = _ref$borderWidth === void 0 ? 5 : _ref$borderWidth,
25952
25987
  _ref$status = _ref.status,
25953
25988
  status = _ref$status === void 0 ? 'ready' : _ref$status,
25954
- props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
25989
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
25955
25990
  return jsxs("svg", _extends({}, props, {
25956
25991
  ref: ref,
25957
25992
  viewBox: "271 92 297 406",
@@ -27237,7 +27272,7 @@ var ContinueButton = styled(LoaderButton)(_templateObject7$8 || (_templateObject
27237
27272
  return (_props$theme$selfieCa5 = (_props$theme7 = props.theme) == null || (_props$theme7 = _props$theme7.selfieCapture) == null || (_props$theme7 = _props$theme7.loadingOverlay) == null ? void 0 : _props$theme7.continueBtnDisabledBorder) != null ? _props$theme$selfieCa5 : 'none';
27238
27273
  });
27239
27274
 
27240
- var _excluded$b = ["mode"];
27275
+ var _excluded$c = ["mode"];
27241
27276
  var components = {
27242
27277
  "default": SelfieCaptureLoadingOverlayDefault,
27243
27278
  legacy: SelfieCaptureLoadingOverlayLegacy,
@@ -27247,7 +27282,7 @@ var SelfieCaptureLoadingOverlay = function SelfieCaptureLoadingOverlay(_ref) {
27247
27282
  var _components$mode;
27248
27283
  var _ref$mode = _ref.mode,
27249
27284
  mode = _ref$mode === void 0 ? 'default' : _ref$mode,
27250
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
27285
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
27251
27286
  var Component = (_components$mode = components[mode]) != null ? _components$mode : components["default"];
27252
27287
  return jsx(Component, _extends({}, props));
27253
27288
  };
@@ -28612,9 +28647,9 @@ function FaceLivenessViewContent(_ref) {
28612
28647
  });
28613
28648
  }
28614
28649
 
28615
- function _createForOfIteratorHelperLoose$g(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$g(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
28616
- function _unsupportedIterableToArray$g(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$g(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$g(r, a) : void 0; } }
28617
- function _arrayLikeToArray$g(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
28650
+ function _createForOfIteratorHelperLoose$h(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$h(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
28651
+ function _unsupportedIterableToArray$h(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$h(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$h(r, a) : void 0; } }
28652
+ function _arrayLikeToArray$h(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
28618
28653
  /**
28619
28654
  * Signature validity estimate (AMEXDESK-676).
28620
28655
  *
@@ -28717,7 +28752,7 @@ function countSignaturePoints(strokes) {
28717
28752
  */
28718
28753
  function measurePenDownMs(strokes) {
28719
28754
  var total = 0;
28720
- for (var _iterator = _createForOfIteratorHelperLoose$g(strokes), _step; !(_step = _iterator()).done;) {
28755
+ for (var _iterator = _createForOfIteratorHelperLoose$h(strokes), _step; !(_step = _iterator()).done;) {
28721
28756
  var stroke = _step.value;
28722
28757
  if (stroke.length < 2) continue;
28723
28758
  total += stroke[stroke.length - 1].time - stroke[0].time;
@@ -28736,9 +28771,9 @@ function boundingBox(strokes) {
28736
28771
  var minY = Infinity;
28737
28772
  var maxX = -Infinity;
28738
28773
  var maxY = -Infinity;
28739
- for (var _iterator2 = _createForOfIteratorHelperLoose$g(strokes), _step2; !(_step2 = _iterator2()).done;) {
28774
+ for (var _iterator2 = _createForOfIteratorHelperLoose$h(strokes), _step2; !(_step2 = _iterator2()).done;) {
28740
28775
  var stroke = _step2.value;
28741
- for (var _iterator3 = _createForOfIteratorHelperLoose$g(stroke), _step3; !(_step3 = _iterator3()).done;) {
28776
+ for (var _iterator3 = _createForOfIteratorHelperLoose$h(stroke), _step3; !(_step3 = _iterator3()).done;) {
28742
28777
  var p = _step3.value;
28743
28778
  if (p.x < minX) minX = p.x;
28744
28779
  if (p.y < minY) minY = p.y;
@@ -28757,7 +28792,7 @@ function boundingBox(strokes) {
28757
28792
  /** Sum of Euclidean distances between consecutive points within each stroke. */
28758
28793
  function totalPathLength(strokes) {
28759
28794
  var length = 0;
28760
- for (var _iterator4 = _createForOfIteratorHelperLoose$g(strokes), _step4; !(_step4 = _iterator4()).done;) {
28795
+ for (var _iterator4 = _createForOfIteratorHelperLoose$h(strokes), _step4; !(_step4 = _iterator4()).done;) {
28761
28796
  var stroke = _step4.value;
28762
28797
  for (var i = 1; i < stroke.length; i++) {
28763
28798
  var dx = stroke[i].x - stroke[i - 1].x;
@@ -28813,7 +28848,7 @@ function resampleStroke(stroke, step) {
28813
28848
  */
28814
28849
  function countDirectionChanges(strokes, step) {
28815
28850
  var totalTurning = 0;
28816
- for (var _iterator5 = _createForOfIteratorHelperLoose$g(strokes), _step5; !(_step5 = _iterator5()).done;) {
28851
+ for (var _iterator5 = _createForOfIteratorHelperLoose$h(strokes), _step5; !(_step5 = _iterator5()).done;) {
28817
28852
  var stroke = _step5.value;
28818
28853
  var pts = resampleStroke(stroke, step);
28819
28854
  var prevAngle = null;
@@ -28846,9 +28881,9 @@ function countZonesCovered(strokes, canvasWidth, canvasHeight, box) {
28846
28881
  var height = useCanvas ? canvasHeight : box.maxY - box.minY;
28847
28882
  if (width <= 0 || height <= 0) return 0;
28848
28883
  var occupied = new Set();
28849
- for (var _iterator6 = _createForOfIteratorHelperLoose$g(strokes), _step6; !(_step6 = _iterator6()).done;) {
28884
+ for (var _iterator6 = _createForOfIteratorHelperLoose$h(strokes), _step6; !(_step6 = _iterator6()).done;) {
28850
28885
  var stroke = _step6.value;
28851
- for (var _iterator7 = _createForOfIteratorHelperLoose$g(stroke), _step7; !(_step7 = _iterator7()).done;) {
28886
+ for (var _iterator7 = _createForOfIteratorHelperLoose$h(stroke), _step7; !(_step7 = _iterator7()).done;) {
28852
28887
  var p = _step7.value;
28853
28888
  var col = Math.min(2, Math.max(0, Math.floor((p.x - originX) / width * 3)));
28854
28889
  var row = Math.min(2, Math.max(0, Math.floor((p.y - originY) / height * 3)));
@@ -28939,9 +28974,9 @@ function evaluateSignatureValidity(strokes, canvasWidth, canvasHeight, config) {
28939
28974
  };
28940
28975
  }
28941
28976
 
28942
- function _createForOfIteratorHelperLoose$f(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$f(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
28943
- function _unsupportedIterableToArray$f(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$f(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$f(r, a) : void 0; } }
28944
- function _arrayLikeToArray$f(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
28977
+ function _createForOfIteratorHelperLoose$g(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$g(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
28978
+ function _unsupportedIterableToArray$g(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$g(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$g(r, a) : void 0; } }
28979
+ function _arrayLikeToArray$g(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
28945
28980
  /**
28946
28981
  * Off-screen, post-capture validation that proves a real frame renders at the
28947
28982
  * signature's trim start offset. This is the authoritative detector for the
@@ -29390,7 +29425,7 @@ function _seekProbes() {
29390
29425
  while (1) switch (_context4.prev = _context4.next) {
29391
29426
  case 0:
29392
29427
  probes = [];
29393
- _iterator = _createForOfIteratorHelperLoose$f(probeTimesMs);
29428
+ _iterator = _createForOfIteratorHelperLoose$g(probeTimesMs);
29394
29429
  case 1:
29395
29430
  if ((_step = _iterator()).done) {
29396
29431
  _context4.next = 4;
@@ -29460,7 +29495,7 @@ function _playbackProbes() {
29460
29495
  };
29461
29496
  var grab = function grab(mediaSec) {
29462
29497
  if (mediaSec * 1000 > maxMediaMs) maxMediaMs = mediaSec * 1000;
29463
- for (var _iterator2 = _createForOfIteratorHelperLoose$f(targets), _step2; !(_step2 = _iterator2()).done;) {
29498
+ for (var _iterator2 = _createForOfIteratorHelperLoose$g(targets), _step2; !(_step2 = _iterator2()).done;) {
29464
29499
  var t = _step2.value;
29465
29500
  if (t.result != null) continue;
29466
29501
  if (maxMediaMs + SEEK_TOLERANCE_MS < t.ms) continue;
@@ -29513,7 +29548,7 @@ function _playbackProbes() {
29513
29548
  video.play()["catch"](_finish);
29514
29549
  });
29515
29550
  case 2:
29516
- _iterator3 = _createForOfIteratorHelperLoose$f(targets);
29551
+ _iterator3 = _createForOfIteratorHelperLoose$g(targets);
29517
29552
  case 3:
29518
29553
  if ((_step3 = _iterator3()).done) {
29519
29554
  _context5.next = 6;
@@ -31225,9 +31260,9 @@ function reduceSignatureCapture(state, event) {
31225
31260
  }
31226
31261
  }
31227
31262
 
31228
- function _createForOfIteratorHelperLoose$e(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$e(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
31229
- function _unsupportedIterableToArray$e(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$e(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$e(r, a) : void 0; } }
31230
- function _arrayLikeToArray$e(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
31263
+ function _createForOfIteratorHelperLoose$f(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$f(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
31264
+ function _unsupportedIterableToArray$f(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$f(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$f(r, a) : void 0; } }
31265
+ function _arrayLikeToArray$f(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
31231
31266
  /**
31232
31267
  * Marks a microphone acquisition failure so `captureError` can type it.
31233
31268
  *
@@ -31361,7 +31396,7 @@ function createSignatureCaptureController(config) {
31361
31396
  }
31362
31397
  function publish() {
31363
31398
  snapshot = store.getState();
31364
- for (var _iterator = _createForOfIteratorHelperLoose$e(listeners), _step; !(_step = _iterator()).done;) {
31399
+ for (var _iterator = _createForOfIteratorHelperLoose$f(listeners), _step; !(_step = _iterator()).done;) {
31365
31400
  var listener = _step.value;
31366
31401
  try {
31367
31402
  listener(snapshot);
@@ -32192,7 +32227,7 @@ function useSignatureCapture(controller) {
32192
32227
  }
32193
32228
 
32194
32229
  var _templateObject$j, _templateObject2$i, _templateObject3$f, _templateObject4$b, _templateObject5$b, _templateObject6$8;
32195
- var _excluded$a = ["device", "frameDecode"];
32230
+ var _excluded$b = ["device", "frameDecode"];
32196
32231
  var ASSUMED_TRIM_PADDING = {
32197
32232
  startMs: TRIM_PADDING_START_MS,
32198
32233
  endMs: TRIM_PADDING_END_MS
@@ -32424,7 +32459,7 @@ function trippedSignals(warning) {
32424
32459
  var _warning$signals = warning.signals,
32425
32460
  device = _warning$signals.device,
32426
32461
  frameDecode = _warning$signals.frameDecode,
32427
- top = _objectWithoutPropertiesLoose(_warning$signals, _excluded$a);
32462
+ top = _objectWithoutPropertiesLoose(_warning$signals, _excluded$b);
32428
32463
  var tripped = [].concat(_toConsumableArray(Object.entries(top).filter(function (_ref2) {
32429
32464
  var _ref3 = _slicedToArray(_ref2, 2),
32430
32465
  signal = _ref3[1];
@@ -33476,9 +33511,9 @@ function buildVideoIdCaptureArtifacts(artifact) {
33476
33511
  };
33477
33512
  }
33478
33513
 
33479
- function _createForOfIteratorHelperLoose$d(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$d(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
33480
- function _unsupportedIterableToArray$d(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$d(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$d(r, a) : void 0; } }
33481
- function _arrayLikeToArray$d(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
33514
+ function _createForOfIteratorHelperLoose$e(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$e(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
33515
+ function _unsupportedIterableToArray$e(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$e(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$e(r, a) : void 0; } }
33516
+ function _arrayLikeToArray$e(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
33482
33517
  var DEFAULT_VIDEO_ID_PREDICTION_THROTTLE_MS = 16;
33483
33518
  var RECENT_DETECTION_WINDOW_MS = 2000;
33484
33519
  var defaultVideoIdCaptureThresholds = {
@@ -33622,7 +33657,7 @@ function createVideoIdCaptureController(config) {
33622
33657
  var backImage = null;
33623
33658
  function update(patch) {
33624
33659
  state = _extends({}, state, patch);
33625
- for (var _iterator = _createForOfIteratorHelperLoose$d(listeners), _step; !(_step = _iterator()).done;) {
33660
+ for (var _iterator = _createForOfIteratorHelperLoose$e(listeners), _step; !(_step = _iterator()).done;) {
33626
33661
  var listener = _step.value;
33627
33662
  try {
33628
33663
  listener(state);
@@ -38452,9 +38487,9 @@ var highlightJson = function highlightJson(str) {
38452
38487
  };
38453
38488
 
38454
38489
  var _templateObject$3, _templateObject2$2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24;
38455
- function _createForOfIteratorHelperLoose$c(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$c(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
38456
- function _unsupportedIterableToArray$c(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$c(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$c(r, a) : void 0; } }
38457
- function _arrayLikeToArray$c(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
38490
+ function _createForOfIteratorHelperLoose$d(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$d(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
38491
+ function _unsupportedIterableToArray$d(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$d(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$d(r, a) : void 0; } }
38492
+ function _arrayLikeToArray$d(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
38458
38493
  var SUBMISSION_SUCCESS_FALLBACKS = {
38459
38494
  completeText: 'Submission complete',
38460
38495
  responseReceivedText: 'Response received',
@@ -38530,7 +38565,7 @@ var quickFactConfig = [{
38530
38565
  */
38531
38566
  var readDocumentId = function readDocumentId(request, path) {
38532
38567
  var node = request;
38533
- for (var _iterator = _createForOfIteratorHelperLoose$c(path), _step; !(_step = _iterator()).done;) {
38568
+ for (var _iterator = _createForOfIteratorHelperLoose$d(path), _step; !(_step = _iterator()).done;) {
38534
38569
  var segment = _step.value;
38535
38570
  if (!node || typeof node !== 'object') return null;
38536
38571
  node = node[segment];
@@ -38641,10 +38676,10 @@ var ASSET_CONFIG = [{
38641
38676
  */
38642
38677
  var TRUNCATABLE_IMAGE_PATHS = [['customerData', 'idData', 'idImageFront'], ['customerData', 'idData', 'idImageBack'], ['customerData', 'idData', 'idBarcodeImage'], ['customerData', 'idData', 'idFrontIrImage'], ['customerData', 'idData', 'idBackIrImage'], ['customerData', 'idData', 'idFrontUvImage'], ['customerData', 'idData', 'idBackUvImage'], ['customerData', 'idData', 'videoIdImageFront'], ['customerData', 'idData', 'videoIdImageBack'], ['customerData', 'biometricData', 'selfie']];
38643
38678
  function truncateImagePaths(body) {
38644
- for (var _iterator2 = _createForOfIteratorHelperLoose$c(TRUNCATABLE_IMAGE_PATHS), _step2; !(_step2 = _iterator2()).done;) {
38679
+ for (var _iterator2 = _createForOfIteratorHelperLoose$d(TRUNCATABLE_IMAGE_PATHS), _step2; !(_step2 = _iterator2()).done;) {
38645
38680
  var path = _step2.value;
38646
38681
  var node = body;
38647
- for (var _iterator3 = _createForOfIteratorHelperLoose$c(path.slice(0, -1)), _step3; !(_step3 = _iterator3()).done;) {
38682
+ for (var _iterator3 = _createForOfIteratorHelperLoose$d(path.slice(0, -1)), _step3; !(_step3 = _iterator3()).done;) {
38648
38683
  var segment = _step3.value;
38649
38684
  if (!isRecord(node)) break;
38650
38685
  node = node[segment];
@@ -39043,6 +39078,847 @@ var JsonBlockHeader = styled.div(_templateObject22 || (_templateObject22 = _tagg
39043
39078
  var JsonBlockActions = styled.div(_templateObject23 || (_templateObject23 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 8px;\n"])));
39044
39079
  var ResponsePre = styled.pre(_templateObject24 || (_templateObject24 = _taggedTemplateLiteralLoose(["\n box-sizing: border-box;\n width: 100%;\n overflow: auto;\n padding: 18px;\n border-radius: 8px;\n background: #17211d;\n color: #dff9e9;\n font-size: 0.8rem;\n line-height: 1.55;\n text-align: left;\n"])));
39045
39080
 
39081
+ var _excluded$a = ["state", "size", "theme", "speed", "paused", "style", "aria-label"];
39082
+ function _createForOfIteratorHelperLoose$c(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$c(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
39083
+ function _unsupportedIterableToArray$c(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$c(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$c(r, a) : void 0; } }
39084
+ function _arrayLikeToArray$c(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
39085
+ function F(e, n) {
39086
+ var s = Math.sin(e * 12.9898 + n * 78.233) * 43758.5453;
39087
+ return s - Math.floor(s);
39088
+ }
39089
+ function st(e, n) {
39090
+ var s = Math.PI * (3 - Math.sqrt(5)),
39091
+ r = 1 - 2 * (e + 0.5) / n,
39092
+ t = Math.sqrt(1 - r * r),
39093
+ o = e * s;
39094
+ return [t * Math.cos(o), r, t * Math.sin(o)];
39095
+ }
39096
+ function ot(e, n) {
39097
+ return Math.atan2(Math.sin(e - n), Math.cos(e - n));
39098
+ }
39099
+ function q(e, n, s, r, t) {
39100
+ var o = Math.sin(n),
39101
+ c = Math.cos(n),
39102
+ a = Math.sin(e),
39103
+ i = Math.cos(e);
39104
+ return function (m, g, M) {
39105
+ var u = m * i + M * a,
39106
+ h = -m * a + M * i,
39107
+ b = g * c - h * o,
39108
+ x = g * o + h * c;
39109
+ return [s + u * t, r - b * t, x];
39110
+ };
39111
+ }
39112
+ function _(e, n, s, r) {
39113
+ if (r === void 0) {
39114
+ r = 0.3;
39115
+ }
39116
+ n.sort(function (t, o) {
39117
+ return t.z - o.z;
39118
+ });
39119
+ for (var _iterator = _createForOfIteratorHelperLoose$c(n), _step; !(_step = _iterator()).done;) {
39120
+ var _t$a;
39121
+ var t = _step.value;
39122
+ var o = (_t$a = t.a) != null ? _t$a : 1;
39123
+ if (o < 0.02) continue;
39124
+ var c = Math.min(1, Math.max(0, t.white)),
39125
+ a = Math.round((s ? 1 - c : c) * 255);
39126
+ e.fillStyle = "rgba(" + a + "," + a + "," + a + "," + o + ")", e.beginPath(), e.arc(t.x, t.y, Math.max(r, t.r), 0, Math.PI * 2), e.fill();
39127
+ }
39128
+ }
39129
+ function $(e, n) {
39130
+ return Math.pow(e / 300, n);
39131
+ }
39132
+ function et(e, n, s, r) {
39133
+ var t = 2 * n * s + r,
39134
+ o = e % t,
39135
+ c = new Array(n).fill(0);
39136
+ var a = -1;
39137
+ if (o < 2 * n * s) {
39138
+ var i = Math.floor(o / s),
39139
+ m = (o - i * s) / s,
39140
+ M = 1 - Math.pow(1 - Math.min(1, m / 0.7), 3);
39141
+ if (i < n) {
39142
+ for (var u = 0; u < i; u++) c[u] = 1;
39143
+ c[i] = M, a = i;
39144
+ } else {
39145
+ var _u = 2 * n - 1 - i;
39146
+ for (var h = 0; h < _u; h++) c[h] = 1;
39147
+ c[_u] = 1 - M, a = _u;
39148
+ }
39149
+ }
39150
+ return {
39151
+ amount: c,
39152
+ active: a
39153
+ };
39154
+ }
39155
+ function ct(e, n, s) {
39156
+ var _e = _slicedToArray(e, 3),
39157
+ r = _e[0],
39158
+ t = _e[1],
39159
+ o = _e[2],
39160
+ c = false;
39161
+ for (var a = 0; a < n.length; a++) {
39162
+ if (s.amount[a] <= 0) continue;
39163
+ var i = n[a],
39164
+ m = i.axis === 0 ? r : i.axis === 1 ? t : o;
39165
+ if (m < i.lo || m >= i.hi) continue;
39166
+ a === s.active && (c = true);
39167
+ var g = i.ang * s.amount[a],
39168
+ M = Math.cos(g),
39169
+ u = Math.sin(g);
39170
+ if (i.axis === 0) {
39171
+ var h = t * M - o * u;
39172
+ o = t * u + o * M, t = h;
39173
+ } else if (i.axis === 1) {
39174
+ var _h = r * M + o * u;
39175
+ o = -r * u + o * M, r = _h;
39176
+ } else {
39177
+ var _h2 = r * M - t * u;
39178
+ t = r * u + t * M, r = _h2;
39179
+ }
39180
+ }
39181
+ return [r, t, o, c];
39182
+ }
39183
+ function at(e) {
39184
+ var n = [];
39185
+ for (var s = 0; s < e; s++) {
39186
+ var r = Math.min(2, Math.floor(F(s, 2.3) * 3)),
39187
+ t = -1 + 0.5 * Math.min(3, Math.floor(F(s, 5.9) * 4)),
39188
+ o = F(s, 7.7) < 0.5 ? 1 : -1;
39189
+ n.push({
39190
+ axis: r,
39191
+ lo: t,
39192
+ hi: t + 0.5,
39193
+ ang: o * Math.PI / 2
39194
+ });
39195
+ }
39196
+ return n;
39197
+ }
39198
+ var rt = function rt(e, n, s, r, t) {
39199
+ var _t$scanMul, _t$rsPow, _t$dimBase, _t$latRings, _t$lonDensity;
39200
+ var c = n / 2,
39201
+ a = n / 2,
39202
+ i = n / 2 * 0.82,
39203
+ m = 0.4 + 0.06 * Math.sin(s * 0.35),
39204
+ g = q(s * 0.5, m, c, a, i),
39205
+ M = s * (0.5 + (1.7 - 0.5) * ((_t$scanMul = t.scanMul) != null ? _t$scanMul : 1)),
39206
+ u = $(n, (_t$rsPow = t.rsPow) != null ? _t$rsPow : 0.6),
39207
+ h = (_t$dimBase = t.dimBase) != null ? _t$dimBase : 1,
39208
+ b = [],
39209
+ x = (_t$latRings = t.latRings) != null ? _t$latRings : 17,
39210
+ I = (_t$lonDensity = t.lonDensity) != null ? _t$lonDensity : 44;
39211
+ for (var P = 0; P <= x; P++) {
39212
+ var y = -Math.PI / 2 + P / x * Math.PI,
39213
+ D = Math.cos(y),
39214
+ w = Math.sin(y),
39215
+ k = Math.max(1, Math.round(Math.abs(D) * I));
39216
+ for (var v = 0; v < k; v++) {
39217
+ var _t$rBase, _t$rDepth, _t$rBoost, _t$inkFar, _t$inkSpan;
39218
+ var R = v / k * 2 * Math.PI,
39219
+ _g = g(D * Math.cos(R), w, D * Math.sin(R)),
39220
+ _g2 = _slicedToArray(_g, 3),
39221
+ p = _g2[0],
39222
+ d = _g2[1],
39223
+ l = _g2[2],
39224
+ f = (l + 1) / 2,
39225
+ S = ot(R + s * 0.5, M),
39226
+ L = Math.exp(-(S * S) / 0.18) * Math.max(0, l);
39227
+ b.push({
39228
+ x: p,
39229
+ y: d,
39230
+ z: l,
39231
+ r: (((_t$rBase = t.rBase) != null ? _t$rBase : 0.6) + ((_t$rDepth = t.rDepth) != null ? _t$rDepth : 1.7) * f + ((_t$rBoost = t.rBoost) != null ? _t$rBoost : 1) * L) * u,
39232
+ white: ((_t$inkFar = t.inkFar) != null ? _t$inkFar : 0.62) - ((_t$inkSpan = t.inkSpan) != null ? _t$inkSpan : 0.54) * f,
39233
+ // dimBase < 1 fades un-scanned dots so the meridian reads clearly
39234
+ a: h + (1 - h) * Math.min(1, L)
39235
+ });
39236
+ }
39237
+ }
39238
+ _(e, b, r, t.rMin);
39239
+ },
39240
+ it = function it(e, n, s, r, t) {
39241
+ var _t$rsPow2, _t$moveCount, _t$latRings2, _t$lonDensity2;
39242
+ var o = n / 2,
39243
+ c = n / 2,
39244
+ a = n / 2 * 0.82,
39245
+ i = q(s * 0.55, 0.35 + 0.1 * Math.sin(s * 0.9), o, c, a),
39246
+ m = $(n, (_t$rsPow2 = t.rsPow) != null ? _t$rsPow2 : 0.6),
39247
+ g = (_t$moveCount = t.moveCount) != null ? _t$moveCount : 14,
39248
+ M = at(g),
39249
+ u = et(s, g, 0.42, 1.2),
39250
+ h = [],
39251
+ b = (_t$latRings2 = t.latRings) != null ? _t$latRings2 : 15,
39252
+ x = (_t$lonDensity2 = t.lonDensity) != null ? _t$lonDensity2 : 40;
39253
+ for (var I = 0; I <= b; I++) {
39254
+ var P = -Math.PI / 2 + I / b * Math.PI,
39255
+ y = Math.cos(P),
39256
+ D = Math.sin(P),
39257
+ w = Math.max(1, Math.round(Math.abs(y) * x));
39258
+ for (var k = 0; k < w; k++) {
39259
+ var _t$rBase2, _t$rDepth2, _t$rActive, _t$inkFar2, _t$inkSpan2;
39260
+ var v = k / w * 2 * Math.PI,
39261
+ _ct = ct([y * Math.cos(v), D, y * Math.sin(v)], M, u),
39262
+ _ct2 = _slicedToArray(_ct, 4),
39263
+ R = _ct2[0],
39264
+ p = _ct2[1],
39265
+ d = _ct2[2],
39266
+ l = _ct2[3],
39267
+ _i = i(R, p, d),
39268
+ _i2 = _slicedToArray(_i, 3),
39269
+ f = _i2[0],
39270
+ S = _i2[1],
39271
+ L = _i2[2],
39272
+ A = (L + 1) / 2;
39273
+ h.push({
39274
+ x: f,
39275
+ y: S,
39276
+ z: L,
39277
+ r: (((_t$rBase2 = t.rBase) != null ? _t$rBase2 : 0.6) + ((_t$rDepth2 = t.rDepth) != null ? _t$rDepth2 : 1.7) * A + (l ? (_t$rActive = t.rActive) != null ? _t$rActive : 0.3 : 0)) * m,
39278
+ white: ((_t$inkFar2 = t.inkFar) != null ? _t$inkFar2 : 0.62) - ((_t$inkSpan2 = t.inkSpan) != null ? _t$inkSpan2 : 0.54) * A - (l ? 0.14 : 0)
39279
+ });
39280
+ }
39281
+ }
39282
+ _(e, h, r, t.rMin);
39283
+ },
39284
+ ht = function ht(e, n, s, r, t) {
39285
+ var _t$rsPow3, _t$rings, _t$lonDensity3;
39286
+ var o = n / 2,
39287
+ c = n / 2,
39288
+ a = n / 2 * 0.874,
39289
+ i = q(s * 0.18, 0.38, o, c, 1),
39290
+ m = $(n, (_t$rsPow3 = t.rsPow) != null ? _t$rsPow3 : 0.6),
39291
+ g = [],
39292
+ M = (_t$rings = t.rings) != null ? _t$rings : 15,
39293
+ u = (_t$lonDensity3 = t.lonDensity) != null ? _t$lonDensity3 : 40;
39294
+ for (var h = 0; h <= M; h++) {
39295
+ var b = -Math.PI / 2 + h / M * Math.PI,
39296
+ x = Math.cos(b),
39297
+ I = Math.sin(b),
39298
+ P = 0.62 * Math.sin(s * 2.1 - h * 0.52) + 0.38 * Math.sin(s * 1.27 + h * 0.83),
39299
+ y = a * (0.88 + 0.105 * P),
39300
+ D = Math.max(1, Math.round(Math.abs(x) * u));
39301
+ for (var w = 0; w < D; w++) {
39302
+ var _t$rBase3, _t$rDepth3;
39303
+ var k = w / D * 2 * Math.PI,
39304
+ _i3 = i(x * Math.cos(k) * y, I * y, x * Math.sin(k) * y),
39305
+ _i4 = _slicedToArray(_i3, 3),
39306
+ v = _i4[0],
39307
+ R = _i4[1],
39308
+ p = _i4[2],
39309
+ d = (p / a + 1) / 2,
39310
+ l = Math.max(0, P);
39311
+ g.push({
39312
+ x: v,
39313
+ y: R,
39314
+ z: p,
39315
+ r: (((_t$rBase3 = t.rBase) != null ? _t$rBase3 : 0.6) + ((_t$rDepth3 = t.rDepth) != null ? _t$rDepth3 : 1.7) * d) * (1 + 0.4 * l) * m,
39316
+ white: 0.66 - 0.56 * d - 0.1 * l
39317
+ });
39318
+ }
39319
+ }
39320
+ _(e, g, r, t.rMin);
39321
+ };
39322
+ function lt(e) {
39323
+ return e * e * (3 - 2 * e);
39324
+ }
39325
+ function Q(e) {
39326
+ var n = e.length,
39327
+ s = [];
39328
+ var r = 0;
39329
+ for (var t = 0; t < n; t++) {
39330
+ var o = e[t],
39331
+ c = e[(t + 1) % n],
39332
+ a = Math.hypot(c[0] - o[0], c[1] - o[1]);
39333
+ s.push(a), r += a;
39334
+ }
39335
+ return function (t) {
39336
+ var o = t * r,
39337
+ c = 0;
39338
+ for (; o > s[c] && c < n - 1;) o -= s[c], c++;
39339
+ var a = e[c],
39340
+ i = e[(c + 1) % n],
39341
+ m = s[c] ? Math.min(1, o / s[c]) : 0;
39342
+ return [a[0] + (i[0] - a[0]) * m, a[1] + (i[1] - a[1]) * m];
39343
+ };
39344
+ }
39345
+ var ut = function ut(e) {
39346
+ var n = -Math.PI / 2 + e * 2 * Math.PI;
39347
+ return [Math.cos(n) * 0.24, Math.sin(n) * 0.24];
39348
+ },
39349
+ Mt = Q([[0, -0.26], [0.24, 0.16], [-0.24, 0.16]]),
39350
+ pt = Q([[0, -0.2], [0.2, -0.2], [0.2, 0.2], [-0.2, 0.2], [-0.2, -0.2]]),
39351
+ Y = [ut, Mt, pt];
39352
+ function dt(e) {
39353
+ return Math.max(6, Math.round(34 * e));
39354
+ }
39355
+ var U = 1.4,
39356
+ J = 0.9,
39357
+ K = U + J,
39358
+ ft = function ft(e, n, s, r, t) {
39359
+ var _t$spread, _t$iconD, _t$rDot;
39360
+ var o = Y.length,
39361
+ c = s % (K * o),
39362
+ a = Math.floor(c / K),
39363
+ i = c - a * K,
39364
+ m = i > U ? lt((i - U) / J) : 0,
39365
+ g = (_t$spread = t.spread) != null ? _t$spread : 1,
39366
+ M = Y[a],
39367
+ u = Y[(a + 1) % o],
39368
+ h = 160,
39369
+ b = [];
39370
+ for (var p = 0; p < h; p++) {
39371
+ var d = p / h,
39372
+ l = M(d),
39373
+ f = u(d);
39374
+ b.push([(l[0] + (f[0] - l[0]) * m) * g, (l[1] + (f[1] - l[1]) * m) * g]);
39375
+ }
39376
+ var x = [];
39377
+ var I = 0;
39378
+ for (var _p = 0; _p < h; _p++) {
39379
+ var _d = b[_p],
39380
+ _l = b[(_p + 1) % h],
39381
+ _f = Math.hypot(_l[0] - _d[0], _l[1] - _d[1]);
39382
+ x.push(_f), I += _f;
39383
+ }
39384
+ var P = dt((_t$iconD = t.iconD) != null ? _t$iconD : 1),
39385
+ y = ((_t$rDot = t.rDot) != null ? _t$rDot : 0.021) * 1.35 * g,
39386
+ D = 1 + 0.02 * Math.sin(i * 3.1),
39387
+ w = [],
39388
+ k = n / 2;
39389
+ var v = 0,
39390
+ R = 0;
39391
+ for (var _p2 = 0; _p2 < P; _p2++) {
39392
+ var _d2 = _p2 / P * I;
39393
+ for (; R + x[v] < _d2 && v < h - 1;) R += x[v], v++;
39394
+ var _l2 = b[v],
39395
+ _f2 = b[(v + 1) % h],
39396
+ S = x[v] ? Math.min(1, (_d2 - R) / x[v]) : 0,
39397
+ L = (_l2[0] + (_f2[0] - _l2[0]) * S) * D,
39398
+ A = (_l2[1] + (_f2[1] - _l2[1]) * S) * D;
39399
+ w.push({
39400
+ x: k + L * n,
39401
+ y: k + A * n,
39402
+ z: 0,
39403
+ r: Math.max(0.35, y * n),
39404
+ white: 0.1
39405
+ });
39406
+ }
39407
+ _(e, w, r, t.rMin);
39408
+ },
39409
+ mt = function mt(e, n, s, r, t) {
39410
+ var _t$rsPow4, _t$orbitN, _t$ghostN, _t$particles;
39411
+ var o = n / 2,
39412
+ c = n / 2,
39413
+ a = n / 2 * 0.82,
39414
+ i = q(s * 0.12, 0.3, o, c, 1),
39415
+ m = $(n, (_t$rsPow4 = t.rsPow) != null ? _t$rsPow4 : 0.6),
39416
+ g = [],
39417
+ M = (_t$orbitN = t.orbitN) != null ? _t$orbitN : 12,
39418
+ u = (_t$ghostN = t.ghostN) != null ? _t$ghostN : 40,
39419
+ h = (_t$particles = t.particles) != null ? _t$particles : 3;
39420
+ for (var b = 0; b < M; b++) {
39421
+ var x = F(b, 1.7),
39422
+ I = F(b, 5.2),
39423
+ P = F(b, 8.9),
39424
+ y = a * (0.45 + 0.52 * x),
39425
+ D = x * 2 * Math.PI,
39426
+ w = Math.acos(2 * I - 1),
39427
+ k = Math.sin(w) * Math.cos(D),
39428
+ v = Math.cos(w),
39429
+ R = Math.sin(w) * Math.sin(D);
39430
+ var p = -v,
39431
+ d = k;
39432
+ var l = 0,
39433
+ f = Math.max(1e-6, Math.sqrt(p * p + d * d));
39434
+ p /= f, d /= f;
39435
+ var S = v * l - R * d,
39436
+ L = R * p - k * l,
39437
+ A = k * d - v * p,
39438
+ B = (0.25 + 0.55 * P) * (P > 0.5 ? 1 : -1);
39439
+ for (var C = 0; C < u; C++) {
39440
+ var _t$ghostR, _t$ghostA;
39441
+ var E = C / u * 2 * Math.PI,
39442
+ _i5 = i((p * Math.cos(E) + S * Math.sin(E)) * y, (d * Math.cos(E) + L * Math.sin(E)) * y, (l * Math.cos(E) + A * Math.sin(E)) * y),
39443
+ _i6 = _slicedToArray(_i5, 3),
39444
+ T = _i6[0],
39445
+ z = _i6[1],
39446
+ N = _i6[2],
39447
+ O = (N / y + 1) / 2;
39448
+ g.push({
39449
+ x: T,
39450
+ y: z,
39451
+ z: N,
39452
+ r: ((_t$ghostR = t.ghostR) != null ? _t$ghostR : 0.9) * m,
39453
+ white: 0.72,
39454
+ a: ((_t$ghostA = t.ghostA) != null ? _t$ghostA : 0.5) * (0.4 + 0.6 * O)
39455
+ });
39456
+ }
39457
+ for (var _C = 0; _C < h; _C++) {
39458
+ var _t$partR, _t$partRDepth;
39459
+ var _E = s * B + _C / h * 2 * Math.PI + I * 6,
39460
+ _i7 = i((p * Math.cos(_E) + S * Math.sin(_E)) * y, (d * Math.cos(_E) + L * Math.sin(_E)) * y, (l * Math.cos(_E) + A * Math.sin(_E)) * y),
39461
+ _i8 = _slicedToArray(_i7, 3),
39462
+ _T = _i8[0],
39463
+ _z = _i8[1],
39464
+ _N = _i8[2],
39465
+ _O = (_N / y + 1) / 2;
39466
+ g.push({
39467
+ x: _T,
39468
+ y: _z,
39469
+ z: _N,
39470
+ r: (((_t$partR = t.partR) != null ? _t$partR : 1.2) + ((_t$partRDepth = t.partRDepth) != null ? _t$partRDepth : 1.6) * _O) * m,
39471
+ white: 0.3 - 0.22 * _O
39472
+ });
39473
+ }
39474
+ }
39475
+ _(e, g, r, t.rMin);
39476
+ },
39477
+ gt = function gt(e, n, s, r, t) {
39478
+ var _t$spin, _t$rsPow5, _t$ghostN2, _t$lanes, _t$segs, _t$bandMul;
39479
+ var o = n / 2,
39480
+ c = n / 2,
39481
+ a = n / 2 * 0.78,
39482
+ i = (_t$spin = t.spin) != null ? _t$spin : 1,
39483
+ m = q(s * 0.1 * i, 0.3, o, c, 1),
39484
+ g = $(n, (_t$rsPow5 = t.rsPow) != null ? _t$rsPow5 : 0.6),
39485
+ M = [],
39486
+ u = (_t$ghostN2 = t.ghostN) != null ? _t$ghostN2 : 150;
39487
+ for (var f = 0; f < u; f++) {
39488
+ var S = st(f, u),
39489
+ _m = m(S[0] * a, S[1] * a, S[2] * a),
39490
+ _m2 = _slicedToArray(_m, 3),
39491
+ L = _m2[0],
39492
+ A = _m2[1],
39493
+ B = _m2[2],
39494
+ C = (B / a + 1) / 2;
39495
+ M.push({
39496
+ x: L,
39497
+ y: A,
39498
+ z: B,
39499
+ r: 0.8 * g,
39500
+ white: 0.78,
39501
+ a: 0.1 + 0.22 * C
39502
+ });
39503
+ }
39504
+ var h = s * 0.24 * i,
39505
+ b = 0.55 + 0.3 * Math.sin(s * 0.18) * i,
39506
+ x = Math.cos(h),
39507
+ I = 0,
39508
+ P = Math.sin(h),
39509
+ y = -P * Math.sin(b),
39510
+ D = Math.cos(b),
39511
+ w = x * Math.sin(b),
39512
+ k = I * w - P * D,
39513
+ v = P * y - x * w,
39514
+ R = x * D - I * y,
39515
+ p = (_t$lanes = t.lanes) != null ? _t$lanes : 5,
39516
+ d = (_t$segs = t.segs) != null ? _t$segs : 88,
39517
+ l = Math.max(1, Math.round(p * ((_t$bandMul = t.bandMul) != null ? _t$bandMul : 1)));
39518
+ for (var _f3 = 0; _f3 < l; _f3++) {
39519
+ var _S = (_f3 - (l - 1) / 2) * 0.075,
39520
+ _L = Math.abs(_f3 - (l - 1) / 2) / Math.max(1, (l - 1) / 2);
39521
+ for (var _A = 0; _A < d; _A++) {
39522
+ var _t$wobMul, _t$rBase4, _t$rDepth4;
39523
+ var _B = _A / d * 2 * Math.PI,
39524
+ _C2 = (0.16 * Math.sin(_B * 3 - s * 1.7 + _f3 * 0.22) + 0.07 * Math.sin(_B * 5 + s * 1.1)) * ((_t$wobMul = t.wobMul) != null ? _t$wobMul : 1),
39525
+ E = _S + _C2,
39526
+ T = x * Math.cos(_B) + y * Math.sin(_B) + k * E,
39527
+ z = I * Math.cos(_B) + D * Math.sin(_B) + v * E,
39528
+ N = P * Math.cos(_B) + w * Math.sin(_B) + R * E,
39529
+ O = Math.sqrt(T * T + z * z + N * N),
39530
+ _m3 = m(T / O * a, z / O * a, N / O * a),
39531
+ _m4 = _slicedToArray(_m3, 3),
39532
+ X = _m4[0],
39533
+ Z = _m4[1],
39534
+ W = _m4[2],
39535
+ j = (W / a + 1) / 2;
39536
+ M.push({
39537
+ x: X,
39538
+ y: Z,
39539
+ z: W,
39540
+ r: (((_t$rBase4 = t.rBase) != null ? _t$rBase4 : 1.1) + ((_t$rDepth4 = t.rDepth) != null ? _t$rDepth4 : 1.7) * j) * (1 - 0.25 * _L) * g,
39541
+ white: 0.52 - 0.44 * j + 0.18 * _L,
39542
+ a: 0.4 + 0.6 * j
39543
+ });
39544
+ }
39545
+ }
39546
+ _(e, M, r, t.rMin);
39547
+ },
39548
+ bt = {
39549
+ orbits: mt,
39550
+ globe: rt,
39551
+ rubik: it,
39552
+ wave: ht,
39553
+ ribbon: gt,
39554
+ morph: ft
39555
+ },
39556
+ yt = [["latRings", "lonDensity"], ["rings", "lonDensity"], ["lanes", "segs"]],
39557
+ xt = ["orbitN", "ghostN"],
39558
+ vt = ["iconD"],
39559
+ wt = ["rBase", "rDepth", "rActive", "rDot", "ghostR", "partR", "partRDepth"];
39560
+ function kt(e, n) {
39561
+ var s = _extends({}, e),
39562
+ r = /* @__PURE__ */new Set(),
39563
+ t = Math.sqrt(n);
39564
+ for (var _iterator2 = _createForOfIteratorHelperLoose$c(yt), _step2; !(_step2 = _iterator2()).done;) {
39565
+ var _step2$value = _slicedToArray(_step2.value, 2),
39566
+ o = _step2$value[0],
39567
+ c = _step2$value[1];
39568
+ var a = s[o],
39569
+ i = s[c];
39570
+ a != null && i != null && !r.has(o) && !r.has(c) && (s[o] = Math.max(2, Math.round(a * t)), s[c] = Math.max(2, Math.round(i * t)), r.add(o), r.add(c));
39571
+ }
39572
+ for (var _iterator3 = _createForOfIteratorHelperLoose$c(xt), _step3; !(_step3 = _iterator3()).done;) {
39573
+ var _o = _step3.value;
39574
+ var _c = s[_o];
39575
+ _c != null && !r.has(_o) && (s[_o] = Math.max(1, Math.round(_c * n)));
39576
+ }
39577
+ for (var _iterator4 = _createForOfIteratorHelperLoose$c(vt), _step4; !(_step4 = _iterator4()).done;) {
39578
+ var _o2 = _step4.value;
39579
+ var _c2 = s[_o2];
39580
+ _c2 != null && (s[_o2] = Math.max(0.02, _c2 * n));
39581
+ }
39582
+ return s;
39583
+ }
39584
+ function Pt(e, n) {
39585
+ var _s$rSizeMul;
39586
+ var s = _extends({}, e);
39587
+ for (var _iterator5 = _createForOfIteratorHelperLoose$c(wt), _step5; !(_step5 = _iterator5()).done;) {
39588
+ var r = _step5.value;
39589
+ var t = s[r];
39590
+ t != null && (s[r] = t * n);
39591
+ }
39592
+ return s.rSizeMul = ((_s$rSizeMul = s.rSizeMul) != null ? _s$rSizeMul : 1) * n, s;
39593
+ }
39594
+ var Dt = {
39595
+ globe: {
39596
+ latRings: 17,
39597
+ lonDensity: 44,
39598
+ rBase: 0.6,
39599
+ rDepth: 1.7,
39600
+ rBoost: 1,
39601
+ inkFar: 0.62,
39602
+ inkSpan: 0.54,
39603
+ rsPow: 0.6,
39604
+ rMin: 0.3
39605
+ },
39606
+ orbits: {
39607
+ orbitN: 12,
39608
+ ghostN: 40,
39609
+ ghostR: 0.9,
39610
+ ghostA: 0.5,
39611
+ particles: 3,
39612
+ partR: 1.2,
39613
+ partRDepth: 1.6,
39614
+ rsPow: 0.6,
39615
+ rMin: 0.3
39616
+ },
39617
+ rubik: {
39618
+ latRings: 15,
39619
+ lonDensity: 40,
39620
+ moveCount: 14,
39621
+ rBase: 0.6,
39622
+ rDepth: 1.7,
39623
+ rActive: 0.3,
39624
+ inkFar: 0.62,
39625
+ inkSpan: 0.54,
39626
+ rsPow: 0.6,
39627
+ rMin: 0.3
39628
+ },
39629
+ wave: {
39630
+ rings: 15,
39631
+ lonDensity: 40,
39632
+ rBase: 0.6,
39633
+ rDepth: 1.7,
39634
+ rsPow: 0.6,
39635
+ rMin: 0.3
39636
+ },
39637
+ ribbon: {
39638
+ lanes: 5,
39639
+ segs: 88,
39640
+ ghostN: 150,
39641
+ rBase: 1.1,
39642
+ rDepth: 1.7,
39643
+ rsPow: 0.6,
39644
+ rMin: 0.3
39645
+ },
39646
+ morph: {
39647
+ rDot: 0.021,
39648
+ iconD: 1,
39649
+ rMin: 0.25
39650
+ }
39651
+ },
39652
+ Rt = {
39653
+ working: "orbits",
39654
+ searching: "globe",
39655
+ solving: "rubik",
39656
+ listening: "wave",
39657
+ composing: "ribbon",
39658
+ shaping: "morph"
39659
+ },
39660
+ St = {
39661
+ orbits: {
39662
+ 64: {
39663
+ speed: 1.885,
39664
+ count: 1,
39665
+ size: 1
39666
+ },
39667
+ 20: {
39668
+ speed: 3.9,
39669
+ count: 0.238,
39670
+ size: 2.4
39671
+ }
39672
+ },
39673
+ globe: {
39674
+ 64: {
39675
+ speed: 2.015,
39676
+ count: 0.42,
39677
+ size: 1.15,
39678
+ extra: {
39679
+ scanMul: 4.08,
39680
+ dimBase: 0.45
39681
+ }
39682
+ },
39683
+ 20: {
39684
+ speed: 2.665,
39685
+ count: 0.105,
39686
+ size: 1.75,
39687
+ extra: {
39688
+ scanMul: 4.335,
39689
+ dimBase: 0.45
39690
+ }
39691
+ }
39692
+ },
39693
+ rubik: {
39694
+ 64: {
39695
+ speed: 1.82,
39696
+ count: 0.35,
39697
+ size: 1.05
39698
+ },
39699
+ 20: {
39700
+ speed: 1.95,
39701
+ count: 0.088,
39702
+ size: 1.9
39703
+ }
39704
+ },
39705
+ wave: {
39706
+ 64: {
39707
+ speed: 4.388,
39708
+ count: 0.341,
39709
+ size: 1
39710
+ },
39711
+ 20: {
39712
+ speed: 3.998,
39713
+ count: 0.105,
39714
+ size: 1.6
39715
+ }
39716
+ },
39717
+ ribbon: {
39718
+ 64: {
39719
+ speed: 2.34,
39720
+ count: 0.25,
39721
+ size: 0.85,
39722
+ extra: {
39723
+ spin: 0,
39724
+ bandMul: 3.9,
39725
+ wobMul: 1
39726
+ }
39727
+ },
39728
+ 20: {
39729
+ speed: 3.12,
39730
+ count: 0.051,
39731
+ size: 1.073,
39732
+ extra: {
39733
+ spin: 0,
39734
+ bandMul: 4.94,
39735
+ wobMul: 1
39736
+ }
39737
+ }
39738
+ },
39739
+ morph: {
39740
+ 64: {
39741
+ speed: 2.405,
39742
+ count: 0.54,
39743
+ size: 0.395,
39744
+ extra: {
39745
+ spread: 1.45
39746
+ }
39747
+ },
39748
+ 20: {
39749
+ speed: 2.08,
39750
+ count: 0.53,
39751
+ size: 1.011,
39752
+ extra: {
39753
+ spread: 1.45
39754
+ }
39755
+ }
39756
+ }
39757
+ },
39758
+ H = /* @__PURE__ */new Map();
39759
+ function It(e, n) {
39760
+ var s = e + "-" + n,
39761
+ r = H.get(s);
39762
+ if (r) return r;
39763
+ var t = Rt[e],
39764
+ o = St[t][n];
39765
+ var c = _extends({}, Dt[t]);
39766
+ o.count !== 1 && (c = kt(c, o.count)), o.size !== 1 && (c = Pt(c, o.size)), o.extra && (c = _extends({}, c, o.extra));
39767
+ var a = {
39768
+ mode: t,
39769
+ speed: o.speed,
39770
+ opts: c
39771
+ };
39772
+ return H.set(s, a), a;
39773
+ }
39774
+ function Et(e) {
39775
+ var n = e;
39776
+ for (; n;) {
39777
+ var s = n.getAttribute("data-theme");
39778
+ if (s === "dark") return true;
39779
+ if (s === "light") return false;
39780
+ if (n.classList.contains("dark")) return true;
39781
+ if (n.classList.contains("light")) return false;
39782
+ n = n.parentElement;
39783
+ }
39784
+ return null;
39785
+ }
39786
+ function Lt() {
39787
+ return typeof matchMedia > "u" || matchMedia("(prefers-color-scheme: dark)").matches;
39788
+ }
39789
+ function At(e, n) {
39790
+ var _V = useState(true),
39791
+ _V2 = _slicedToArray(_V, 2),
39792
+ s = _V2[0],
39793
+ r = _V2[1];
39794
+ return useEffect(function () {
39795
+ if (e === "dark") {
39796
+ r(true);
39797
+ return;
39798
+ }
39799
+ if (e === "light") {
39800
+ r(false);
39801
+ return;
39802
+ }
39803
+ var t = function t() {
39804
+ var i = Et(n.current);
39805
+ r(i != null ? i : Lt());
39806
+ };
39807
+ t();
39808
+ var o = typeof matchMedia < "u" ? matchMedia("(prefers-color-scheme: dark)") : null,
39809
+ c = function c() {
39810
+ return t();
39811
+ };
39812
+ o == null || o.addEventListener("change", c);
39813
+ var a = null;
39814
+ return typeof MutationObserver < "u" && n.current && (a = new MutationObserver(t), a.observe(document.documentElement, {
39815
+ attributes: true,
39816
+ attributeFilter: ["class", "data-theme"],
39817
+ subtree: true
39818
+ })), function () {
39819
+ o == null || o.removeEventListener("change", c), a == null || a.disconnect();
39820
+ };
39821
+ }, [e, n]), s;
39822
+ }
39823
+ function Bt() {
39824
+ var _V3 = useState(false),
39825
+ _V4 = _slicedToArray(_V3, 2),
39826
+ e = _V4[0],
39827
+ n = _V4[1];
39828
+ return useEffect(function () {
39829
+ if (typeof matchMedia > "u") return;
39830
+ var s = matchMedia("(prefers-reduced-motion: reduce)");
39831
+ n(s.matches);
39832
+ var r = function r(t) {
39833
+ return n(t.matches);
39834
+ };
39835
+ return s.addEventListener("change", r), function () {
39836
+ return s.removeEventListener("change", r);
39837
+ };
39838
+ }, []), e;
39839
+ }
39840
+ var Ct = {
39841
+ working: "Working…",
39842
+ searching: "Searching…",
39843
+ solving: "Solving…",
39844
+ listening: "Listening…",
39845
+ composing: "Composing…",
39846
+ shaping: "Shaping…"
39847
+ };
39848
+ function Tt(_ref) {
39849
+ var _ref$state = _ref.state,
39850
+ e = _ref$state === void 0 ? "working" : _ref$state,
39851
+ _ref$size = _ref.size,
39852
+ n = _ref$size === void 0 ? 64 : _ref$size,
39853
+ _ref$theme = _ref.theme,
39854
+ s = _ref$theme === void 0 ? "auto" : _ref$theme,
39855
+ _ref$speed = _ref.speed,
39856
+ r = _ref$speed === void 0 ? 1 : _ref$speed,
39857
+ _ref$paused = _ref.paused,
39858
+ t = _ref$paused === void 0 ? false : _ref$paused,
39859
+ o = _ref.style,
39860
+ c = _ref["aria-label"],
39861
+ a = _objectWithoutPropertiesLoose(_ref, _excluded$a);
39862
+ var i = useRef(null),
39863
+ m = At(s, i),
39864
+ g = Bt();
39865
+ return useEffect(function () {
39866
+ var M = i.current;
39867
+ if (!M) return;
39868
+ var u = Math.min(2, typeof devicePixelRatio < "u" && devicePixelRatio || 1);
39869
+ M.width = Math.round(n * u), M.height = Math.round(n * u);
39870
+ var h = M.getContext("2d");
39871
+ if (!h) return;
39872
+ var _It = It(e, n),
39873
+ b = _It.mode,
39874
+ x = _It.speed,
39875
+ I = _It.opts,
39876
+ P = bt[b],
39877
+ y = x * r,
39878
+ D = function D(S) {
39879
+ h.setTransform(u, 0, 0, u, 0, 0), h.clearRect(0, 0, n, n), P(h, n, S, m, I);
39880
+ };
39881
+ if (g) {
39882
+ D(0.6);
39883
+ return;
39884
+ }
39885
+ var w = 0,
39886
+ k = false;
39887
+ var _v = function v() {
39888
+ D(performance.now() / 1e3 * y), k && (w = requestAnimationFrame(_v));
39889
+ },
39890
+ R = function R() {
39891
+ k || t || (k = true, w = requestAnimationFrame(_v));
39892
+ },
39893
+ p = function p() {
39894
+ k = false, cancelAnimationFrame(w);
39895
+ };
39896
+ D(performance.now() / 1e3 * y);
39897
+ var d = true;
39898
+ var l = typeof IntersectionObserver < "u" ? new IntersectionObserver(function (_ref2) {
39899
+ var _ref3 = _slicedToArray(_ref2, 1),
39900
+ S = _ref3[0];
39901
+ d = S.isIntersecting, d && document.visibilityState !== "hidden" ? R() : p();
39902
+ }) : null;
39903
+ l == null || l.observe(M);
39904
+ var f = function f() {
39905
+ document.visibilityState === "hidden" ? p() : d && R();
39906
+ };
39907
+ return document.addEventListener("visibilitychange", f), l || R(), function () {
39908
+ p(), l == null || l.disconnect(), document.removeEventListener("visibilitychange", f);
39909
+ };
39910
+ }, [e, n, m, r, t, g]), /* @__PURE__ */jsx("canvas", _extends({
39911
+ ref: i,
39912
+ role: "img",
39913
+ "aria-label": c != null ? c : Ct[e],
39914
+ style: _extends({
39915
+ width: n,
39916
+ height: n,
39917
+ display: "block"
39918
+ }, o)
39919
+ }, a));
39920
+ }
39921
+
39046
39922
  var _templateObject$2, _templateObject2$1;
39047
39923
  function OrbStatusScreen(_ref) {
39048
39924
  var state = _ref.state,
@@ -39051,7 +39927,7 @@ function OrbStatusScreen(_ref) {
39051
39927
  loadingStage = _ref.loadingStage;
39052
39928
  var theme = useTheme();
39053
39929
  var label = accessibleLabel != null ? accessibleLabel : typeof text === 'string' ? text : undefined;
39054
- var orb = jsx(ThinkingOrb, {
39930
+ var orb = jsx(Tt, {
39055
39931
  state: state,
39056
39932
  size: 64,
39057
39933
  style: {
@@ -48016,7 +48892,7 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
48016
48892
  });
48017
48893
  }
48018
48894
 
48019
- var webSdkVersion = '2.5.60-fix-auth-client-request-errors-2e5bbe1';
48895
+ var webSdkVersion = '2.5.60-react16compat.0';
48020
48896
 
48021
48897
  var MAPPED = 'mapped';
48022
48898
  var NOOP = 'dropped-noop';
@@ -49017,6 +49893,25 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
49017
49893
  }, mapCustomerIdAndBiometricsEnrollmentProps(props, ctx)), props.children);
49018
49894
  };
49019
49895
 
49896
+ /**
49897
+ * react-16-compat: React 16/17 have no `createRoot`, so this adapts the legacy
49898
+ * `ReactDOM.render` API to the root shape the rest of this module expects.
49899
+ * Keeping that shape means the teardown logic below stays byte-identical to
49900
+ * develop and merges cleanly. Runs on React 16.14 through 18; React 19
49901
+ * removed `ReactDOM.render`, which is why this build's peer range stops at 18.
49902
+ */
49903
+ function createRoot(container) {
49904
+ return {
49905
+ render: function render(element) {
49906
+ // eslint-disable-next-line react/no-deprecated -- the only mount API React 16 has
49907
+ ReactDOM.render(element, container);
49908
+ },
49909
+ unmount: function unmount() {
49910
+ // eslint-disable-next-line react/no-deprecated -- pairs with ReactDOM.render above
49911
+ ReactDOM.unmountComponentAtNode(container);
49912
+ }
49913
+ };
49914
+ }
49020
49915
  /**
49021
49916
  * Targets whose `remove` this module has already wrapped. Permanent: the
49022
49917
  * wrapper is installed at most once per element, so repeat renders can never
@@ -49044,8 +49939,7 @@ function renderElement(component, targetElement) {
49044
49939
  targetElement = document.createElement('div');
49045
49940
  document.body.append(targetElement);
49046
49941
  }
49047
- var root = ReactDOM.createRoot(targetElement);
49048
- root.render(/*#__PURE__*/React.createElement(OverlayContainer, null, component));
49942
+ var root = createRoot(targetElement);
49049
49943
  if ('remove' in targetElement) {
49050
49944
  var element_1 = targetElement;
49051
49945
  // Always point at the newest root, even when the wrapper is already
@@ -49095,6 +49989,10 @@ function renderElement(component, targetElement) {
49095
49989
  };
49096
49990
  }
49097
49991
  }
49992
+ // react-16-compat: render LAST. A legacy root mounts synchronously, so layout
49993
+ // effects (e.g. a customer `loadingSpinner`) run inside this call; one that
49994
+ // calls `.remove()` must already hit the wrapper above, not the native method.
49995
+ root.render(/*#__PURE__*/React.createElement(OverlayContainer, null, component));
49098
49996
  return targetElement;
49099
49997
  }
49100
49998
  function renderComponent(Component, targetElement, options) {