idmission-web-sdk 2.5.81-changeset-release-develop-3ddb15a → 2.5.81-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,16 +8,14 @@ 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
 
19
16
  // Extracted from the barrel so modules inside this package can read the
20
17
  // version without importing index.ts (which would be circular).
21
- var webSdkUiVersion = '0.5.0';
18
+ var webSdkUiVersion = '0.4.0';
22
19
 
23
20
  function asyncGeneratorStep(n, t, e, r, o, a, c) {
24
21
  try {
@@ -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,10 +478,10 @@ 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
- var webSdkCoreVersion = '0.5.0';
484
+ var webSdkCoreVersion = '0.4.0';
488
485
 
489
486
  var maxTime = 86400000;
490
487
  var maxCount = 1000000;
@@ -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':
@@ -2861,7 +2896,7 @@ function _objectWithoutPropertiesLoose(r, e) {
2861
2896
  return t;
2862
2897
  }
2863
2898
 
2864
- var _excluded$j = ["nonce", "web", "os"];
2899
+ var _excluded$k = ["nonce", "web", "os"];
2865
2900
  /**
2866
2901
  * Grade the envelope from whichever inputs are present:
2867
2902
  * - OS token present -> 'os-attested' (attach `os`)
@@ -2875,7 +2910,7 @@ function buildClientAttestation(input) {
2875
2910
  var nonce = input.nonce,
2876
2911
  web = input.web,
2877
2912
  os = input.os,
2878
- versions = _objectWithoutPropertiesLoose(input, _excluded$j);
2913
+ versions = _objectWithoutPropertiesLoose(input, _excluded$k);
2879
2914
  if (os) {
2880
2915
  return _extends({
2881
2916
  assuranceLevel: 'os-attested',
@@ -3458,9 +3493,9 @@ function blobToB64(blob) {
3458
3493
  });
3459
3494
  }
3460
3495
 
3461
- 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."); }
3462
- 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; } }
3463
- 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; }
3496
+ 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."); }
3497
+ 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; } }
3498
+ 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; }
3464
3499
  /**
3465
3500
  * Parser for AAMVA (American Association of Motor Vehicle Administrators)
3466
3501
  * PDF417 barcode data found on US and Canadian driver's licenses.
@@ -3722,7 +3757,7 @@ function parseAAMVABarcode(rawData) {
3722
3757
  DAD: false
3723
3758
  };
3724
3759
  var daaValue = null;
3725
- for (var _iterator = _createForOfIteratorHelperLoose$s(lines), _step; !(_step = _iterator()).done;) {
3760
+ for (var _iterator = _createForOfIteratorHelperLoose$t(lines), _step; !(_step = _iterator()).done;) {
3726
3761
  var line = _step.value;
3727
3762
  var match = line.match(fieldRegex);
3728
3763
  if (match) {
@@ -3763,7 +3798,7 @@ function parseAAMVABarcode(rawData) {
3763
3798
  result.fields.push(field);
3764
3799
  }
3765
3800
  };
3766
- for (var _iterator2 = _createForOfIteratorHelperLoose$s(daaFields), _step2; !(_step2 = _iterator2()).done;) {
3801
+ for (var _iterator2 = _createForOfIteratorHelperLoose$t(daaFields), _step2; !(_step2 = _iterator2()).done;) {
3767
3802
  _loop();
3768
3803
  }
3769
3804
  }
@@ -6456,7 +6491,7 @@ var fr = {
6456
6491
  'Barcode capture in progress, please hold still': 'Capture du code-barres en cours, veuillez ne pas bouger'
6457
6492
  };
6458
6493
 
6459
- var it = {
6494
+ var it$1 = {
6460
6495
  'English - en': 'Italian - it',
6461
6496
  'Use your device camera to capture your ID': 'Utilizzare la fotocamera del dispositivo per acquisire il documento',
6462
6497
  'Use your iPhone as a webcam': 'Utilizza iPhone come webcam',
@@ -6752,7 +6787,7 @@ var ja = {
6752
6787
  'Barcode capture in progress, please hold still': 'バーコードを読み取っています。動かないでください'
6753
6788
  };
6754
6789
 
6755
- var pt = {
6790
+ var pt$1 = {
6756
6791
  'English - en': 'Portuguese (Brazil) - pt',
6757
6792
  'Use your device camera to capture your ID': 'Usar a câmera do dispositivo para fotografar sua identidade',
6758
6793
  'Use your iPhone as a webcam': 'Use seu iPhone como uma câmera Web',
@@ -7302,13 +7337,13 @@ var resources = {
7302
7337
  translation: withThreeOhTranslations('fr', fr)
7303
7338
  },
7304
7339
  it: {
7305
- translation: withThreeOhTranslations('it', it)
7340
+ translation: withThreeOhTranslations('it', it$1)
7306
7341
  },
7307
7342
  ja: {
7308
7343
  translation: withThreeOhTranslations('ja', ja)
7309
7344
  },
7310
7345
  pt: {
7311
- translation: withThreeOhTranslations('pt', pt)
7346
+ translation: withThreeOhTranslations('pt', pt$1)
7312
7347
  },
7313
7348
  ru: {
7314
7349
  translation: withThreeOhTranslations('ru', ru)
@@ -7623,10 +7658,10 @@ function useGuideOrientationContext() {
7623
7658
  }
7624
7659
 
7625
7660
  var _templateObject$_, _templateObject2$Q;
7626
- var _excluded$i = ["isRearFacing"];
7661
+ var _excluded$j = ["isRearFacing"];
7627
7662
  var CameraVideoTag = /*#__PURE__*/forwardRef(function CameraVideoTag(_ref, ref) {
7628
7663
  var isRearFacing = _ref.isRearFacing,
7629
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
7664
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
7630
7665
  return jsx(FullscreenVideoTag, _extends({
7631
7666
  autoPlay: true,
7632
7667
  playsInline: true,
@@ -7694,9 +7729,9 @@ function ScalingCameraFeed(_ref2) {
7694
7729
  }
7695
7730
 
7696
7731
  var _templateObject$Z, _templateObject2$P, _templateObject3$D, _templateObject4$y, _templateObject5$t, _templateObject6$l;
7697
- 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."); }
7698
- 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; } }
7699
- 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; }
7732
+ 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."); }
7733
+ 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; } }
7734
+ 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; }
7700
7735
  /** Displays camera readiness and available source-frame dimensions. */
7701
7736
  function CameraDebugStatus(_ref) {
7702
7737
  var ready = _ref.ready,
@@ -7961,7 +7996,7 @@ function SelfieCaptureFaceMesh(_ref15) {
7961
7996
  groups.forEach(function (indices, color) {
7962
7997
  ctx.fillStyle = color;
7963
7998
  ctx.beginPath();
7964
- for (var _iterator = _createForOfIteratorHelperLoose$r(indices), _step; !(_step = _iterator()).done;) {
7999
+ for (var _iterator = _createForOfIteratorHelperLoose$s(indices), _step; !(_step = _iterator()).done;) {
7965
8000
  var _i = _step.value;
7966
8001
  var p = meshLandmarks[_i];
7967
8002
  ctx.moveTo(p.x + dotRadius, p.y);
@@ -8143,7 +8178,7 @@ var EdgeStrip = styled.div(_templateObject$Y || (_templateObject$Y = _taggedTemp
8143
8178
  });
8144
8179
 
8145
8180
  var _templateObject$X;
8146
- var _excluded$h = ["children", "className", "colors", "disabled", "finished", "variant"];
8181
+ var _excluded$i = ["children", "className", "colors", "disabled", "finished", "variant"];
8147
8182
  var LoaderButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
8148
8183
  var children = _ref.children,
8149
8184
  className = _ref.className,
@@ -8153,7 +8188,7 @@ var LoaderButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
8153
8188
  finished = _ref.finished,
8154
8189
  _ref$variant = _ref.variant,
8155
8190
  variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
8156
- props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
8191
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
8157
8192
  var buttonRef = useRef(null);
8158
8193
  var laddaRef = useRef(null);
8159
8194
  var _useState = useState(false),
@@ -8464,7 +8499,7 @@ var error = function error() {
8464
8499
  return (console.error ).apply(void 0, arguments);
8465
8500
  }; // eslint-disable-line no-console
8466
8501
 
8467
- var _excluded$g = ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress", "guideBoxDisabled"],
8502
+ var _excluded$h = ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress", "guideBoxDisabled"],
8468
8503
  _excluded2$5 = ["borderRadius", "borderColor", "borderWidth", "borderOpacity", "progress", "isProgressBar", "scaleBorderRadius"];
8469
8504
  var _templateObject$S, _templateObject2$L, _templateObject3$A, _templateObject4$v, _templateObject5$r, _templateObject6$j, _templateObject7$g;
8470
8505
  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) {
@@ -8494,7 +8529,7 @@ function IdCardBorder(_ref) {
8494
8529
  progress = _ref$progress === void 0 ? 0 : _ref$progress,
8495
8530
  _ref$guideBoxDisabled = _ref.guideBoxDisabled,
8496
8531
  guideBoxDisabled = _ref$guideBoxDisabled === void 0 ? false : _ref$guideBoxDisabled,
8497
- props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
8532
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
8498
8533
  var _useResizeObserver = useResizeObserver(),
8499
8534
  ref = _useResizeObserver.ref,
8500
8535
  _useResizeObserver$wi = _useResizeObserver.width,
@@ -9884,11 +9919,11 @@ var LoadingGraphicPhoneGroup = styled.g(_templateObject4$s || (_templateObject4$
9884
9919
  return props.$offScreen ? '40px' : '0';
9885
9920
  });
9886
9921
 
9887
- var _excluded$f = ["state"];
9922
+ var _excluded$g = ["state"];
9888
9923
  function LoadingListItemIndicator(_ref) {
9889
9924
  var _ref$state = _ref.state,
9890
9925
  state = _ref$state === void 0 ? 'running' : _ref$state,
9891
- svgProps = _objectWithoutPropertiesLoose(_ref, _excluded$f);
9926
+ svgProps = _objectWithoutPropertiesLoose(_ref, _excluded$g);
9892
9927
  return jsx("svg", _extends({
9893
9928
  width: "16",
9894
9929
  height: "16",
@@ -10393,9 +10428,9 @@ function loadingOverlayBottomEdgeColor(theme, modelsReady) {
10393
10428
  });
10394
10429
  }
10395
10430
 
10396
- 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."); }
10397
- 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; } }
10398
- 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; }
10431
+ 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."); }
10432
+ 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; } }
10433
+ 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; }
10399
10434
  var DEFAULT_THRESHOLD = 0.03;
10400
10435
  // Minimum confidence a `'Finger'` detection must clear before it counts
10401
10436
  // toward occlusion. The LiteRT document detector emits low-score
@@ -10446,7 +10481,7 @@ function computeFingerOcclusion(bestDocument, detectedObjects, documentType, thr
10446
10481
  // overlap each other the shared area gets double-counted — that errs
10447
10482
  // toward over-blocking, which is the safer direction for occlusion.
10448
10483
  var totalOverlap = 0;
10449
- for (var _iterator = _createForOfIteratorHelperLoose$q(detectedObjects), _step; !(_step = _iterator()).done;) {
10484
+ for (var _iterator = _createForOfIteratorHelperLoose$r(detectedObjects), _step; !(_step = _iterator()).done;) {
10450
10485
  var obj = _step.value;
10451
10486
  if (obj.label !== 'Finger') continue;
10452
10487
  if (obj.score < MIN_FINGER_SCORE) continue;
@@ -10478,7 +10513,7 @@ function anyOverlapByLabel(bestDocument, detectedObjects, label, minScore) {
10478
10513
  if (!bestDocument) return false;
10479
10514
  var docBox = bestDocument.box;
10480
10515
  if (docBox.width <= 0 || docBox.height <= 0) return false;
10481
- for (var _iterator2 = _createForOfIteratorHelperLoose$q(detectedObjects), _step2; !(_step2 = _iterator2()).done;) {
10516
+ for (var _iterator2 = _createForOfIteratorHelperLoose$r(detectedObjects), _step2; !(_step2 = _iterator2()).done;) {
10482
10517
  var obj = _step2.value;
10483
10518
  if (obj.label !== label) continue;
10484
10519
  if (obj.score < minScore) continue;
@@ -10654,9 +10689,9 @@ var initialFlowState = {
10654
10689
 
10655
10690
  var CapturedDocumentTypeValues = ['idCardFront', 'idCardBack', 'passport', 'singlePage', 'selfie', 'idFrontIrImage', 'idBackIrImage', 'idFrontUvImage', 'idBackUvImage', 'idBarcodeImage'];
10656
10691
 
10657
- 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."); }
10658
- 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; } }
10659
- 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; }
10692
+ 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."); }
10693
+ 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; } }
10694
+ 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; }
10660
10695
  // Tuning constants — seeded estimates. Expect on-device tuning against real
10661
10696
  // captures across angles/devices (same posture as the liveness geometry).
10662
10697
  var CONTAINMENT_MIN = 0.8; // fraction of inner box inside the outer box
@@ -10684,7 +10719,7 @@ function containment(inner, outer) {
10684
10719
  }
10685
10720
  function bestByLabel(objs, label) {
10686
10721
  var best = null;
10687
- for (var _iterator = _createForOfIteratorHelperLoose$p(objs), _step; !(_step = _iterator()).done;) {
10722
+ for (var _iterator = _createForOfIteratorHelperLoose$q(objs), _step; !(_step = _iterator()).done;) {
10688
10723
  var o = _step.value;
10689
10724
  if (o.label !== label) continue;
10690
10725
  if (o.score < MIN_BOOKLET_SCORE) continue;
@@ -10859,9 +10894,9 @@ function remainingIdCaptureRequirements(captureRequirement, capturedDocuments, r
10859
10894
  });
10860
10895
  }
10861
10896
 
10862
- 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."); }
10863
- 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; } }
10864
- 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; }
10897
+ 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."); }
10898
+ 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; } }
10899
+ 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; }
10865
10900
  /**
10866
10901
  * Clears the current frame's verdict (sdk2 idCaptureReducer.ts:367-389). Both
10867
10902
  * of these describe "the last frame we looked at", so they are meaningless —
@@ -10945,7 +10980,7 @@ var _reduceIdCapture = function reduceIdCapture(state, action, now) {
10945
10980
  // from one the user captured -- `documentCaptured` erases the
10946
10981
  // difference by design (see state.ts precapturedDocumentTypes).
10947
10982
  var seeded = [];
10948
- for (var _iterator = _createForOfIteratorHelperLoose$o(CapturedDocumentTypeValues), _step; !(_step = _iterator()).done;) {
10983
+ for (var _iterator = _createForOfIteratorHelperLoose$p(CapturedDocumentTypeValues), _step; !(_step = _iterator()).done;) {
10949
10984
  var k = _step.value;
10950
10985
  var payload = precapturedDocuments[k];
10951
10986
  if (payload) {
@@ -11283,7 +11318,7 @@ var _reduceIdCapture = function reduceIdCapture(state, action, now) {
11283
11318
  case 'documentsCaptured':
11284
11319
  {
11285
11320
  var _newState2 = _extends({}, state);
11286
- for (var _iterator2 = _createForOfIteratorHelperLoose$o(action.payload), _step2; !(_step2 = _iterator2()).done;) {
11321
+ for (var _iterator2 = _createForOfIteratorHelperLoose$p(action.payload), _step2; !(_step2 = _iterator2()).done;) {
11287
11322
  var doc = _step2.value;
11288
11323
  _newState2 = _reduceIdCapture(_newState2, {
11289
11324
  type: 'documentCaptured',
@@ -13485,9 +13520,9 @@ function evaluateIsMobile(nav) {
13485
13520
  return false;
13486
13521
  }
13487
13522
 
13488
- 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."); }
13489
- 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; } }
13490
- 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; }
13523
+ 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."); }
13524
+ 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; } }
13525
+ 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; }
13491
13526
  // zxing-js UMD build, self-hosted on the SDK's own CDN (version-pinned) rather
13492
13527
  // than fetched from unpkg. The previous `@latest` URL was both an external
13493
13528
  // dependency and a supply-chain risk — it executed whatever unpkg served as
@@ -14227,7 +14262,7 @@ function _decodePDF() {
14227
14262
  }
14228
14263
  base = _bases[_i];
14229
14264
  log$1("[NativeBarcodeDecoder] Trying fine rotation deskew around " + base.angle + "\xB0...");
14230
- _iterator = _createForOfIteratorHelperLoose$n(FINE_ROTATION_ANGLES);
14265
+ _iterator = _createForOfIteratorHelperLoose$o(FINE_ROTATION_ANGLES);
14231
14266
  case 11:
14232
14267
  if ((_step = _iterator()).done) {
14233
14268
  _context0.next = 14;
@@ -14752,7 +14787,7 @@ function _decodePDF417WithDetails() {
14752
14787
  }
14753
14788
  base = _bases2[_i2];
14754
14789
  log$1("[NativeBarcodeDecoder] Trying fine rotation deskew around " + base.angle + "\xB0 (detailed)...");
14755
- _iterator2 = _createForOfIteratorHelperLoose$n(FINE_ROTATION_ANGLES);
14790
+ _iterator2 = _createForOfIteratorHelperLoose$o(FINE_ROTATION_ANGLES);
14756
14791
  case 12:
14757
14792
  if ((_step2 = _iterator2()).done) {
14758
14793
  _context12.next = 15;
@@ -14871,9 +14906,9 @@ var CaptureAttachError = /*#__PURE__*/function (_Error) {
14871
14906
  return CaptureAttachError;
14872
14907
  }(/*#__PURE__*/_wrapNativeSuper(Error));
14873
14908
 
14874
- 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."); }
14875
- 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; } }
14876
- 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; }
14909
+ 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."); }
14910
+ 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; } }
14911
+ 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; }
14877
14912
  /**
14878
14913
  * Analyzes barcode readability for a detected document
14879
14914
  * (IdCaptureModelsProvider.tsx:83-199, ported verbatim; the last two
@@ -15334,7 +15369,7 @@ function createDetectionPipeline(opts) {
15334
15369
  });
15335
15370
  if (failed) {
15336
15371
  loadSettled = true;
15337
- for (var _iterator = _createForOfIteratorHelperLoose$m(lifecycleHandles), _step; !(_step = _iterator()).done;) {
15372
+ for (var _iterator = _createForOfIteratorHelperLoose$n(lifecycleHandles), _step; !(_step = _iterator()).done;) {
15338
15373
  var handle = _step.value;
15339
15374
  handle.cancel();
15340
15375
  }
@@ -16620,9 +16655,9 @@ function maybeDataUrlToBase64Sync(url) {
16620
16655
  return dataUrlToBase64Sync(url);
16621
16656
  }
16622
16657
 
16623
- 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."); }
16624
- 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; } }
16625
- 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; }
16658
+ 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."); }
16659
+ 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; } }
16660
+ 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; }
16626
16661
  // Document types whose capture attempt becomes an upload's `filemetadata`, in
16627
16662
  // write order: `singlePage` after `idCardFront` so it wins `idFrontImage`,
16628
16663
  // exactly as the image does below.
@@ -16712,7 +16747,7 @@ function buildIdCaptureArtifacts(inputs, now) {
16712
16747
  };
16713
16748
  if (ocrMetadata) meta.ocrMetadata = ocrMetadata;
16714
16749
  var documentFileMetadata = {};
16715
- for (var _iterator = _createForOfIteratorHelperLoose$l(FILE_METADATA_KEYS), _step; !(_step = _iterator()).done;) {
16750
+ for (var _iterator = _createForOfIteratorHelperLoose$m(FILE_METADATA_KEYS), _step; !(_step = _iterator()).done;) {
16716
16751
  var _step$value = _slicedToArray(_step.value, 2),
16717
16752
  documentType = _step$value[0],
16718
16753
  documentKey = _step$value[1];
@@ -16739,10 +16774,10 @@ function buildIdCaptureArtifacts(inputs, now) {
16739
16774
  };
16740
16775
  }
16741
16776
 
16742
- var _excluded$e = ["bestBarcodeScore", "barcodeBoundingBox"];
16743
- 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."); }
16744
- 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; } }
16745
- 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; }
16777
+ var _excluded$f = ["bestBarcodeScore", "barcodeBoundingBox"];
16778
+ 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."); }
16779
+ 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; } }
16780
+ 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; }
16746
16781
  // sdk2/src/components/id_capture/IdCaptureWizard.tsx:253-262
16747
16782
  var lastDocumentDetectedAtDefaults = {
16748
16783
  idCardFront: null,
@@ -16912,7 +16947,7 @@ function createIdCaptureController(config) {
16912
16947
  // payload.ts's buildNoBarcodeOCRMetadata fallback counts).
16913
16948
  var bestBarcodeScore = metadata.bestBarcodeScore,
16914
16949
  barcodeBoundingBox = metadata.barcodeBoundingBox,
16915
- captureAttemptWithoutBarcode = _objectWithoutPropertiesLoose(metadata, _excluded$e);
16950
+ captureAttemptWithoutBarcode = _objectWithoutPropertiesLoose(metadata, _excluded$f);
16916
16951
  captureAttempts.back.push(captureAttemptWithoutBarcode);
16917
16952
  // :619-629 -- appended whenever a barcode score was recorded at all
16918
16953
  // (0 counts: auto-capture stamps `bestBarcodeScore: bestBarcode?.score
@@ -16952,7 +16987,7 @@ function createIdCaptureController(config) {
16952
16987
  }
16953
16988
  }
16954
16989
  function clearAllTimers() {
16955
- for (var _iterator = _createForOfIteratorHelperLoose$k(timers.values()), _step; !(_step = _iterator()).done;) {
16990
+ for (var _iterator = _createForOfIteratorHelperLoose$l(timers.values()), _step; !(_step = _iterator()).done;) {
16956
16991
  var handle = _step.value;
16957
16992
  io.clearTimeout(handle);
16958
16993
  }
@@ -19959,7 +19994,7 @@ var ContinueButton$2 = styled(LoaderButton)(_templateObject7$c || (_templateObje
19959
19994
  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';
19960
19995
  });
19961
19996
 
19962
- var _excluded$d = ["mode"];
19997
+ var _excluded$e = ["mode"];
19963
19998
  var components$1 = {
19964
19999
  "default": IdCaptureLoadingOverlayDefault,
19965
20000
  legacy: IdCaptureLoadingOverlayLegacy,
@@ -19969,7 +20004,7 @@ var IdCaptureLoadingOverlay = function IdCaptureLoadingOverlay(_ref) {
19969
20004
  var _components$mode;
19970
20005
  var _ref$mode = _ref.mode,
19971
20006
  mode = _ref$mode === void 0 ? 'default' : _ref$mode,
19972
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
20007
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
19973
20008
  var Component = (_components$mode = components$1[mode]) != null ? _components$mode : components$1["default"];
19974
20009
  return jsx(Component, _extends({}, props));
19975
20010
  };
@@ -21556,9 +21591,9 @@ function useSessionReady() {
21556
21591
  }
21557
21592
 
21558
21593
  var _templateObject$w;
21559
- 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."); }
21560
- 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; } }
21561
- 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; }
21594
+ 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."); }
21595
+ 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; } }
21596
+ 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; }
21562
21597
  // Unlike SelfieCaptureView/FaceLivenessView, this view has no root
21563
21598
  // container of its own -- ScalingCameraFeed/IdCaptureGuides/etc. render as
21564
21599
  // siblings relying on whatever positioned ancestor the host page provides.
@@ -21826,7 +21861,7 @@ function IdCaptureViewContent(_ref) {
21826
21861
  // after this effect first runs with an empty state). Folding it in here,
21827
21862
  // rather than seeding once on mount, is what makes the skip actually
21828
21863
  // apply. `seen` keeps a consumed exclusion from being re-armed.
21829
- for (var _iterator = _createForOfIteratorHelperLoose$j(state.precapturedDocumentTypes), _step; !(_step = _iterator()).done;) {
21864
+ for (var _iterator = _createForOfIteratorHelperLoose$k(state.precapturedDocumentTypes), _step; !(_step = _iterator()).done;) {
21830
21865
  var _documentType = _step.value;
21831
21866
  if (seenPrecapturedRef.current.has(_documentType)) continue;
21832
21867
  seenPrecapturedRef.current.add(_documentType);
@@ -23216,9 +23251,9 @@ function guidanceFor(state, prediction, at) {
23216
23251
  return code === SelfieGuidanceCode.HOLD_STILL && handOverFaceHeld(state.handOverFaceAt, at) ? SelfieGuidanceCode.HAND_OVER_FACE : code;
23217
23252
  }
23218
23253
 
23219
- 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."); }
23220
- 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; } }
23221
- 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; }
23254
+ 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."); }
23255
+ 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; } }
23256
+ 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; }
23222
23257
  // sdk2 componenets/selfie_capture/faceDetectorDefault.ts:5
23223
23258
  // (DEFAULT_FACE_DETECTOR): face-landmarker is the default face model as of
23224
23259
  // 2.4.0.
@@ -23248,7 +23283,7 @@ function mapDetectionsToFaces(prediction) {
23248
23283
  if (!prediction) return null;
23249
23284
  var faceDetections = [];
23250
23285
  var noseDetections = [];
23251
- for (var _iterator = _createForOfIteratorHelperLoose$i(prediction.detections), _step; !(_step = _iterator()).done;) {
23286
+ for (var _iterator = _createForOfIteratorHelperLoose$j(prediction.detections), _step; !(_step = _iterator()).done;) {
23252
23287
  var detection = _step.value;
23253
23288
  if (isNoseDetection(detection)) {
23254
23289
  noseDetections.push(detection);
@@ -23262,7 +23297,7 @@ function mapDetectionsToFaces(prediction) {
23262
23297
  var faceBox = d.boundingBox;
23263
23298
  if (!faceBox) continue;
23264
23299
  var nose = null;
23265
- for (var _iterator2 = _createForOfIteratorHelperLoose$i(noseDetections), _step2; !(_step2 = _iterator2()).done;) {
23300
+ for (var _iterator2 = _createForOfIteratorHelperLoose$j(noseDetections), _step2; !(_step2 = _iterator2()).done;) {
23266
23301
  var n = _step2.value;
23267
23302
  var noseBox = n.boundingBox;
23268
23303
  if (!noseBox) continue;
@@ -24064,9 +24099,9 @@ function captureQualityException(reason, measurements, originalThresholds, recov
24064
24099
  };
24065
24100
  }
24066
24101
 
24067
- 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."); }
24068
- 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; } }
24069
- 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; }
24102
+ 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."); }
24103
+ 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; } }
24104
+ 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; }
24070
24105
  // sdk2 SelfieGuidanceModelsProvider.tsx onPredictionMade's useThrottledCallback
24071
24106
  // second argument (SelfieCapture.tsx:225 -- "locks to 60fps maximum").
24072
24107
  var DEFAULT_PREDICTION_THROTTLE_MS = 16;
@@ -24188,7 +24223,7 @@ function createSelfieCaptureController(config) {
24188
24223
  // --- timers (idCapture pattern, colon-namespaced) ---
24189
24224
  var timers = new Map();
24190
24225
  function clearAllTimers() {
24191
- for (var _iterator = _createForOfIteratorHelperLoose$h(timers.values()), _step; !(_step = _iterator()).done;) {
24226
+ for (var _iterator = _createForOfIteratorHelperLoose$i(timers.values()), _step; !(_step = _iterator()).done;) {
24192
24227
  var handle = _step.value;
24193
24228
  io.clearTimeout(handle);
24194
24229
  }
@@ -25987,7 +26022,7 @@ function SelfieCameraFeed(_ref) {
25987
26022
  }
25988
26023
 
25989
26024
  var _templateObject$u, _templateObject2$s, _templateObject3$j, _templateObject4$f;
25990
- var _excluded$c = ["borderColor", "borderOpacity", "borderWidth", "status"],
26025
+ var _excluded$d = ["borderColor", "borderOpacity", "borderWidth", "status"],
25991
26026
  _excluded2$4 = ["status", "guideStyle"],
25992
26027
  _excluded3 = ["frame", "borderWidth", "borderColor", "borderOpacity", "verticalAlign", "status", "guideStyle"],
25993
26028
  _excluded4 = ["status"];
@@ -26004,7 +26039,7 @@ var HeadGuideSvg = /*#__PURE__*/forwardRef(function (_ref, ref) {
26004
26039
  borderWidth = _ref$borderWidth === void 0 ? 5 : _ref$borderWidth,
26005
26040
  _ref$status = _ref.status,
26006
26041
  status = _ref$status === void 0 ? 'ready' : _ref$status,
26007
- props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
26042
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
26008
26043
  return jsxs("svg", _extends({}, props, {
26009
26044
  ref: ref,
26010
26045
  viewBox: "271 92 297 406",
@@ -27291,7 +27326,7 @@ var ContinueButton = styled(LoaderButton)(_templateObject7$8 || (_templateObject
27291
27326
  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';
27292
27327
  });
27293
27328
 
27294
- var _excluded$b = ["mode"];
27329
+ var _excluded$c = ["mode"];
27295
27330
  var components = {
27296
27331
  "default": SelfieCaptureLoadingOverlayDefault,
27297
27332
  legacy: SelfieCaptureLoadingOverlayLegacy,
@@ -27301,7 +27336,7 @@ var SelfieCaptureLoadingOverlay = function SelfieCaptureLoadingOverlay(_ref) {
27301
27336
  var _components$mode;
27302
27337
  var _ref$mode = _ref.mode,
27303
27338
  mode = _ref$mode === void 0 ? 'default' : _ref$mode,
27304
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
27339
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
27305
27340
  var Component = (_components$mode = components[mode]) != null ? _components$mode : components["default"];
27306
27341
  return jsx(Component, _extends({}, props));
27307
27342
  };
@@ -28673,9 +28708,9 @@ function FaceLivenessViewContent(_ref) {
28673
28708
  });
28674
28709
  }
28675
28710
 
28676
- 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."); }
28677
- 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; } }
28678
- 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; }
28711
+ 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."); }
28712
+ 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; } }
28713
+ 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; }
28679
28714
  /**
28680
28715
  * Signature validity estimate (AMEXDESK-676).
28681
28716
  *
@@ -28778,7 +28813,7 @@ function countSignaturePoints(strokes) {
28778
28813
  */
28779
28814
  function measurePenDownMs(strokes) {
28780
28815
  var total = 0;
28781
- for (var _iterator = _createForOfIteratorHelperLoose$g(strokes), _step; !(_step = _iterator()).done;) {
28816
+ for (var _iterator = _createForOfIteratorHelperLoose$h(strokes), _step; !(_step = _iterator()).done;) {
28782
28817
  var stroke = _step.value;
28783
28818
  if (stroke.length < 2) continue;
28784
28819
  total += stroke[stroke.length - 1].time - stroke[0].time;
@@ -28797,9 +28832,9 @@ function boundingBox(strokes) {
28797
28832
  var minY = Infinity;
28798
28833
  var maxX = -Infinity;
28799
28834
  var maxY = -Infinity;
28800
- for (var _iterator2 = _createForOfIteratorHelperLoose$g(strokes), _step2; !(_step2 = _iterator2()).done;) {
28835
+ for (var _iterator2 = _createForOfIteratorHelperLoose$h(strokes), _step2; !(_step2 = _iterator2()).done;) {
28801
28836
  var stroke = _step2.value;
28802
- for (var _iterator3 = _createForOfIteratorHelperLoose$g(stroke), _step3; !(_step3 = _iterator3()).done;) {
28837
+ for (var _iterator3 = _createForOfIteratorHelperLoose$h(stroke), _step3; !(_step3 = _iterator3()).done;) {
28803
28838
  var p = _step3.value;
28804
28839
  if (p.x < minX) minX = p.x;
28805
28840
  if (p.y < minY) minY = p.y;
@@ -28818,7 +28853,7 @@ function boundingBox(strokes) {
28818
28853
  /** Sum of Euclidean distances between consecutive points within each stroke. */
28819
28854
  function totalPathLength(strokes) {
28820
28855
  var length = 0;
28821
- for (var _iterator4 = _createForOfIteratorHelperLoose$g(strokes), _step4; !(_step4 = _iterator4()).done;) {
28856
+ for (var _iterator4 = _createForOfIteratorHelperLoose$h(strokes), _step4; !(_step4 = _iterator4()).done;) {
28822
28857
  var stroke = _step4.value;
28823
28858
  for (var i = 1; i < stroke.length; i++) {
28824
28859
  var dx = stroke[i].x - stroke[i - 1].x;
@@ -28874,7 +28909,7 @@ function resampleStroke(stroke, step) {
28874
28909
  */
28875
28910
  function countDirectionChanges(strokes, step) {
28876
28911
  var totalTurning = 0;
28877
- for (var _iterator5 = _createForOfIteratorHelperLoose$g(strokes), _step5; !(_step5 = _iterator5()).done;) {
28912
+ for (var _iterator5 = _createForOfIteratorHelperLoose$h(strokes), _step5; !(_step5 = _iterator5()).done;) {
28878
28913
  var stroke = _step5.value;
28879
28914
  var pts = resampleStroke(stroke, step);
28880
28915
  var prevAngle = null;
@@ -28907,9 +28942,9 @@ function countZonesCovered(strokes, canvasWidth, canvasHeight, box) {
28907
28942
  var height = useCanvas ? canvasHeight : box.maxY - box.minY;
28908
28943
  if (width <= 0 || height <= 0) return 0;
28909
28944
  var occupied = new Set();
28910
- for (var _iterator6 = _createForOfIteratorHelperLoose$g(strokes), _step6; !(_step6 = _iterator6()).done;) {
28945
+ for (var _iterator6 = _createForOfIteratorHelperLoose$h(strokes), _step6; !(_step6 = _iterator6()).done;) {
28911
28946
  var stroke = _step6.value;
28912
- for (var _iterator7 = _createForOfIteratorHelperLoose$g(stroke), _step7; !(_step7 = _iterator7()).done;) {
28947
+ for (var _iterator7 = _createForOfIteratorHelperLoose$h(stroke), _step7; !(_step7 = _iterator7()).done;) {
28913
28948
  var p = _step7.value;
28914
28949
  var col = Math.min(2, Math.max(0, Math.floor((p.x - originX) / width * 3)));
28915
28950
  var row = Math.min(2, Math.max(0, Math.floor((p.y - originY) / height * 3)));
@@ -29000,9 +29035,9 @@ function evaluateSignatureValidity(strokes, canvasWidth, canvasHeight, config) {
29000
29035
  };
29001
29036
  }
29002
29037
 
29003
- 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."); }
29004
- 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; } }
29005
- 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; }
29038
+ 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."); }
29039
+ 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; } }
29040
+ 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; }
29006
29041
  /**
29007
29042
  * Off-screen, post-capture validation that proves a real frame renders at the
29008
29043
  * signature's trim start offset. This is the authoritative detector for the
@@ -29451,7 +29486,7 @@ function _seekProbes() {
29451
29486
  while (1) switch (_context4.prev = _context4.next) {
29452
29487
  case 0:
29453
29488
  probes = [];
29454
- _iterator = _createForOfIteratorHelperLoose$f(probeTimesMs);
29489
+ _iterator = _createForOfIteratorHelperLoose$g(probeTimesMs);
29455
29490
  case 1:
29456
29491
  if ((_step = _iterator()).done) {
29457
29492
  _context4.next = 4;
@@ -29521,7 +29556,7 @@ function _playbackProbes() {
29521
29556
  };
29522
29557
  var grab = function grab(mediaSec) {
29523
29558
  if (mediaSec * 1000 > maxMediaMs) maxMediaMs = mediaSec * 1000;
29524
- for (var _iterator2 = _createForOfIteratorHelperLoose$f(targets), _step2; !(_step2 = _iterator2()).done;) {
29559
+ for (var _iterator2 = _createForOfIteratorHelperLoose$g(targets), _step2; !(_step2 = _iterator2()).done;) {
29525
29560
  var t = _step2.value;
29526
29561
  if (t.result != null) continue;
29527
29562
  if (maxMediaMs + SEEK_TOLERANCE_MS < t.ms) continue;
@@ -29574,7 +29609,7 @@ function _playbackProbes() {
29574
29609
  video.play()["catch"](_finish);
29575
29610
  });
29576
29611
  case 2:
29577
- _iterator3 = _createForOfIteratorHelperLoose$f(targets);
29612
+ _iterator3 = _createForOfIteratorHelperLoose$g(targets);
29578
29613
  case 3:
29579
29614
  if ((_step3 = _iterator3()).done) {
29580
29615
  _context5.next = 6;
@@ -31286,9 +31321,9 @@ function reduceSignatureCapture(state, event) {
31286
31321
  }
31287
31322
  }
31288
31323
 
31289
- 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."); }
31290
- 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; } }
31291
- 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; }
31324
+ 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."); }
31325
+ 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; } }
31326
+ 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; }
31292
31327
  /**
31293
31328
  * Marks a microphone acquisition failure so `captureError` can type it.
31294
31329
  *
@@ -31422,7 +31457,7 @@ function createSignatureCaptureController(config) {
31422
31457
  }
31423
31458
  function publish() {
31424
31459
  snapshot = store.getState();
31425
- for (var _iterator = _createForOfIteratorHelperLoose$e(listeners), _step; !(_step = _iterator()).done;) {
31460
+ for (var _iterator = _createForOfIteratorHelperLoose$f(listeners), _step; !(_step = _iterator()).done;) {
31426
31461
  var listener = _step.value;
31427
31462
  try {
31428
31463
  listener(snapshot);
@@ -32253,7 +32288,7 @@ function useSignatureCapture(controller) {
32253
32288
  }
32254
32289
 
32255
32290
  var _templateObject$j, _templateObject2$j, _templateObject3$f, _templateObject4$b, _templateObject5$b, _templateObject6$8;
32256
- var _excluded$a = ["device", "frameDecode"];
32291
+ var _excluded$b = ["device", "frameDecode"];
32257
32292
  var ASSUMED_TRIM_PADDING = {
32258
32293
  startMs: TRIM_PADDING_START_MS,
32259
32294
  endMs: TRIM_PADDING_END_MS
@@ -32485,7 +32520,7 @@ function trippedSignals(warning) {
32485
32520
  var _warning$signals = warning.signals,
32486
32521
  device = _warning$signals.device,
32487
32522
  frameDecode = _warning$signals.frameDecode,
32488
- top = _objectWithoutPropertiesLoose(_warning$signals, _excluded$a);
32523
+ top = _objectWithoutPropertiesLoose(_warning$signals, _excluded$b);
32489
32524
  var tripped = [].concat(_toConsumableArray(Object.entries(top).filter(function (_ref2) {
32490
32525
  var _ref3 = _slicedToArray(_ref2, 2),
32491
32526
  signal = _ref3[1];
@@ -33544,9 +33579,9 @@ function buildVideoIdCaptureArtifacts(artifact) {
33544
33579
  };
33545
33580
  }
33546
33581
 
33547
- 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."); }
33548
- 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; } }
33549
- 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; }
33582
+ 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."); }
33583
+ 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; } }
33584
+ 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; }
33550
33585
  var DEFAULT_VIDEO_ID_PREDICTION_THROTTLE_MS = 16;
33551
33586
  var RECENT_DETECTION_WINDOW_MS = 2000;
33552
33587
  var defaultVideoIdCaptureThresholds = {
@@ -33690,7 +33725,7 @@ function createVideoIdCaptureController(config) {
33690
33725
  var backImage = null;
33691
33726
  function update(patch) {
33692
33727
  state = _extends({}, state, patch);
33693
- for (var _iterator = _createForOfIteratorHelperLoose$d(listeners), _step; !(_step = _iterator()).done;) {
33728
+ for (var _iterator = _createForOfIteratorHelperLoose$e(listeners), _step; !(_step = _iterator()).done;) {
33694
33729
  var listener = _step.value;
33695
33730
  try {
33696
33731
  listener(state);
@@ -38531,9 +38566,9 @@ var highlightJson = function highlightJson(str) {
38531
38566
  };
38532
38567
 
38533
38568
  var _templateObject$3, _templateObject2$3, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24;
38534
- 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."); }
38535
- 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; } }
38536
- 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; }
38569
+ 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."); }
38570
+ 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; } }
38571
+ 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; }
38537
38572
  var SUBMISSION_SUCCESS_FALLBACKS = {
38538
38573
  completeText: 'Submission complete',
38539
38574
  responseReceivedText: 'Response received',
@@ -38609,7 +38644,7 @@ var quickFactConfig = [{
38609
38644
  */
38610
38645
  var readDocumentId = function readDocumentId(request, path) {
38611
38646
  var node = request;
38612
- for (var _iterator = _createForOfIteratorHelperLoose$c(path), _step; !(_step = _iterator()).done;) {
38647
+ for (var _iterator = _createForOfIteratorHelperLoose$d(path), _step; !(_step = _iterator()).done;) {
38613
38648
  var segment = _step.value;
38614
38649
  if (!node || typeof node !== 'object') return null;
38615
38650
  node = node[segment];
@@ -38720,10 +38755,10 @@ var ASSET_CONFIG = [{
38720
38755
  */
38721
38756
  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']];
38722
38757
  function truncateImagePaths(body) {
38723
- for (var _iterator2 = _createForOfIteratorHelperLoose$c(TRUNCATABLE_IMAGE_PATHS), _step2; !(_step2 = _iterator2()).done;) {
38758
+ for (var _iterator2 = _createForOfIteratorHelperLoose$d(TRUNCATABLE_IMAGE_PATHS), _step2; !(_step2 = _iterator2()).done;) {
38724
38759
  var path = _step2.value;
38725
38760
  var node = body;
38726
- for (var _iterator3 = _createForOfIteratorHelperLoose$c(path.slice(0, -1)), _step3; !(_step3 = _iterator3()).done;) {
38761
+ for (var _iterator3 = _createForOfIteratorHelperLoose$d(path.slice(0, -1)), _step3; !(_step3 = _iterator3()).done;) {
38727
38762
  var segment = _step3.value;
38728
38763
  if (!isRecord(node)) break;
38729
38764
  node = node[segment];
@@ -39122,6 +39157,847 @@ var JsonBlockHeader = styled.div(_templateObject22 || (_templateObject22 = _tagg
39122
39157
  var JsonBlockActions = styled.div(_templateObject23 || (_templateObject23 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 8px;\n"])));
39123
39158
  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"])));
39124
39159
 
39160
+ var _excluded$a = ["state", "size", "theme", "speed", "paused", "style", "aria-label"];
39161
+ 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."); }
39162
+ 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; } }
39163
+ 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; }
39164
+ function F(e, n) {
39165
+ var s = Math.sin(e * 12.9898 + n * 78.233) * 43758.5453;
39166
+ return s - Math.floor(s);
39167
+ }
39168
+ function st(e, n) {
39169
+ var s = Math.PI * (3 - Math.sqrt(5)),
39170
+ r = 1 - 2 * (e + 0.5) / n,
39171
+ t = Math.sqrt(1 - r * r),
39172
+ o = e * s;
39173
+ return [t * Math.cos(o), r, t * Math.sin(o)];
39174
+ }
39175
+ function ot(e, n) {
39176
+ return Math.atan2(Math.sin(e - n), Math.cos(e - n));
39177
+ }
39178
+ function q(e, n, s, r, t) {
39179
+ var o = Math.sin(n),
39180
+ c = Math.cos(n),
39181
+ a = Math.sin(e),
39182
+ i = Math.cos(e);
39183
+ return function (m, g, M) {
39184
+ var u = m * i + M * a,
39185
+ h = -m * a + M * i,
39186
+ b = g * c - h * o,
39187
+ x = g * o + h * c;
39188
+ return [s + u * t, r - b * t, x];
39189
+ };
39190
+ }
39191
+ function _(e, n, s, r) {
39192
+ if (r === void 0) {
39193
+ r = 0.3;
39194
+ }
39195
+ n.sort(function (t, o) {
39196
+ return t.z - o.z;
39197
+ });
39198
+ for (var _iterator = _createForOfIteratorHelperLoose$c(n), _step; !(_step = _iterator()).done;) {
39199
+ var _t$a;
39200
+ var t = _step.value;
39201
+ var o = (_t$a = t.a) != null ? _t$a : 1;
39202
+ if (o < 0.02) continue;
39203
+ var c = Math.min(1, Math.max(0, t.white)),
39204
+ a = Math.round((s ? 1 - c : c) * 255);
39205
+ 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();
39206
+ }
39207
+ }
39208
+ function $(e, n) {
39209
+ return Math.pow(e / 300, n);
39210
+ }
39211
+ function et(e, n, s, r) {
39212
+ var t = 2 * n * s + r,
39213
+ o = e % t,
39214
+ c = new Array(n).fill(0);
39215
+ var a = -1;
39216
+ if (o < 2 * n * s) {
39217
+ var i = Math.floor(o / s),
39218
+ m = (o - i * s) / s,
39219
+ M = 1 - Math.pow(1 - Math.min(1, m / 0.7), 3);
39220
+ if (i < n) {
39221
+ for (var u = 0; u < i; u++) c[u] = 1;
39222
+ c[i] = M, a = i;
39223
+ } else {
39224
+ var _u = 2 * n - 1 - i;
39225
+ for (var h = 0; h < _u; h++) c[h] = 1;
39226
+ c[_u] = 1 - M, a = _u;
39227
+ }
39228
+ }
39229
+ return {
39230
+ amount: c,
39231
+ active: a
39232
+ };
39233
+ }
39234
+ function ct(e, n, s) {
39235
+ var _e = _slicedToArray(e, 3),
39236
+ r = _e[0],
39237
+ t = _e[1],
39238
+ o = _e[2],
39239
+ c = false;
39240
+ for (var a = 0; a < n.length; a++) {
39241
+ if (s.amount[a] <= 0) continue;
39242
+ var i = n[a],
39243
+ m = i.axis === 0 ? r : i.axis === 1 ? t : o;
39244
+ if (m < i.lo || m >= i.hi) continue;
39245
+ a === s.active && (c = true);
39246
+ var g = i.ang * s.amount[a],
39247
+ M = Math.cos(g),
39248
+ u = Math.sin(g);
39249
+ if (i.axis === 0) {
39250
+ var h = t * M - o * u;
39251
+ o = t * u + o * M, t = h;
39252
+ } else if (i.axis === 1) {
39253
+ var _h = r * M + o * u;
39254
+ o = -r * u + o * M, r = _h;
39255
+ } else {
39256
+ var _h2 = r * M - t * u;
39257
+ t = r * u + t * M, r = _h2;
39258
+ }
39259
+ }
39260
+ return [r, t, o, c];
39261
+ }
39262
+ function at(e) {
39263
+ var n = [];
39264
+ for (var s = 0; s < e; s++) {
39265
+ var r = Math.min(2, Math.floor(F(s, 2.3) * 3)),
39266
+ t = -1 + 0.5 * Math.min(3, Math.floor(F(s, 5.9) * 4)),
39267
+ o = F(s, 7.7) < 0.5 ? 1 : -1;
39268
+ n.push({
39269
+ axis: r,
39270
+ lo: t,
39271
+ hi: t + 0.5,
39272
+ ang: o * Math.PI / 2
39273
+ });
39274
+ }
39275
+ return n;
39276
+ }
39277
+ var rt = function rt(e, n, s, r, t) {
39278
+ var _t$scanMul, _t$rsPow, _t$dimBase, _t$latRings, _t$lonDensity;
39279
+ var c = n / 2,
39280
+ a = n / 2,
39281
+ i = n / 2 * 0.82,
39282
+ m = 0.4 + 0.06 * Math.sin(s * 0.35),
39283
+ g = q(s * 0.5, m, c, a, i),
39284
+ M = s * (0.5 + (1.7 - 0.5) * ((_t$scanMul = t.scanMul) != null ? _t$scanMul : 1)),
39285
+ u = $(n, (_t$rsPow = t.rsPow) != null ? _t$rsPow : 0.6),
39286
+ h = (_t$dimBase = t.dimBase) != null ? _t$dimBase : 1,
39287
+ b = [],
39288
+ x = (_t$latRings = t.latRings) != null ? _t$latRings : 17,
39289
+ I = (_t$lonDensity = t.lonDensity) != null ? _t$lonDensity : 44;
39290
+ for (var P = 0; P <= x; P++) {
39291
+ var y = -Math.PI / 2 + P / x * Math.PI,
39292
+ D = Math.cos(y),
39293
+ w = Math.sin(y),
39294
+ k = Math.max(1, Math.round(Math.abs(D) * I));
39295
+ for (var v = 0; v < k; v++) {
39296
+ var _t$rBase, _t$rDepth, _t$rBoost, _t$inkFar, _t$inkSpan;
39297
+ var R = v / k * 2 * Math.PI,
39298
+ _g = g(D * Math.cos(R), w, D * Math.sin(R)),
39299
+ _g2 = _slicedToArray(_g, 3),
39300
+ p = _g2[0],
39301
+ d = _g2[1],
39302
+ l = _g2[2],
39303
+ f = (l + 1) / 2,
39304
+ S = ot(R + s * 0.5, M),
39305
+ L = Math.exp(-(S * S) / 0.18) * Math.max(0, l);
39306
+ b.push({
39307
+ x: p,
39308
+ y: d,
39309
+ z: l,
39310
+ 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,
39311
+ white: ((_t$inkFar = t.inkFar) != null ? _t$inkFar : 0.62) - ((_t$inkSpan = t.inkSpan) != null ? _t$inkSpan : 0.54) * f,
39312
+ // dimBase < 1 fades un-scanned dots so the meridian reads clearly
39313
+ a: h + (1 - h) * Math.min(1, L)
39314
+ });
39315
+ }
39316
+ }
39317
+ _(e, b, r, t.rMin);
39318
+ },
39319
+ it = function it(e, n, s, r, t) {
39320
+ var _t$rsPow2, _t$moveCount, _t$latRings2, _t$lonDensity2;
39321
+ var o = n / 2,
39322
+ c = n / 2,
39323
+ a = n / 2 * 0.82,
39324
+ i = q(s * 0.55, 0.35 + 0.1 * Math.sin(s * 0.9), o, c, a),
39325
+ m = $(n, (_t$rsPow2 = t.rsPow) != null ? _t$rsPow2 : 0.6),
39326
+ g = (_t$moveCount = t.moveCount) != null ? _t$moveCount : 14,
39327
+ M = at(g),
39328
+ u = et(s, g, 0.42, 1.2),
39329
+ h = [],
39330
+ b = (_t$latRings2 = t.latRings) != null ? _t$latRings2 : 15,
39331
+ x = (_t$lonDensity2 = t.lonDensity) != null ? _t$lonDensity2 : 40;
39332
+ for (var I = 0; I <= b; I++) {
39333
+ var P = -Math.PI / 2 + I / b * Math.PI,
39334
+ y = Math.cos(P),
39335
+ D = Math.sin(P),
39336
+ w = Math.max(1, Math.round(Math.abs(y) * x));
39337
+ for (var k = 0; k < w; k++) {
39338
+ var _t$rBase2, _t$rDepth2, _t$rActive, _t$inkFar2, _t$inkSpan2;
39339
+ var v = k / w * 2 * Math.PI,
39340
+ _ct = ct([y * Math.cos(v), D, y * Math.sin(v)], M, u),
39341
+ _ct2 = _slicedToArray(_ct, 4),
39342
+ R = _ct2[0],
39343
+ p = _ct2[1],
39344
+ d = _ct2[2],
39345
+ l = _ct2[3],
39346
+ _i = i(R, p, d),
39347
+ _i2 = _slicedToArray(_i, 3),
39348
+ f = _i2[0],
39349
+ S = _i2[1],
39350
+ L = _i2[2],
39351
+ A = (L + 1) / 2;
39352
+ h.push({
39353
+ x: f,
39354
+ y: S,
39355
+ z: L,
39356
+ 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,
39357
+ white: ((_t$inkFar2 = t.inkFar) != null ? _t$inkFar2 : 0.62) - ((_t$inkSpan2 = t.inkSpan) != null ? _t$inkSpan2 : 0.54) * A - (l ? 0.14 : 0)
39358
+ });
39359
+ }
39360
+ }
39361
+ _(e, h, r, t.rMin);
39362
+ },
39363
+ ht = function ht(e, n, s, r, t) {
39364
+ var _t$rsPow3, _t$rings, _t$lonDensity3;
39365
+ var o = n / 2,
39366
+ c = n / 2,
39367
+ a = n / 2 * 0.874,
39368
+ i = q(s * 0.18, 0.38, o, c, 1),
39369
+ m = $(n, (_t$rsPow3 = t.rsPow) != null ? _t$rsPow3 : 0.6),
39370
+ g = [],
39371
+ M = (_t$rings = t.rings) != null ? _t$rings : 15,
39372
+ u = (_t$lonDensity3 = t.lonDensity) != null ? _t$lonDensity3 : 40;
39373
+ for (var h = 0; h <= M; h++) {
39374
+ var b = -Math.PI / 2 + h / M * Math.PI,
39375
+ x = Math.cos(b),
39376
+ I = Math.sin(b),
39377
+ P = 0.62 * Math.sin(s * 2.1 - h * 0.52) + 0.38 * Math.sin(s * 1.27 + h * 0.83),
39378
+ y = a * (0.88 + 0.105 * P),
39379
+ D = Math.max(1, Math.round(Math.abs(x) * u));
39380
+ for (var w = 0; w < D; w++) {
39381
+ var _t$rBase3, _t$rDepth3;
39382
+ var k = w / D * 2 * Math.PI,
39383
+ _i3 = i(x * Math.cos(k) * y, I * y, x * Math.sin(k) * y),
39384
+ _i4 = _slicedToArray(_i3, 3),
39385
+ v = _i4[0],
39386
+ R = _i4[1],
39387
+ p = _i4[2],
39388
+ d = (p / a + 1) / 2,
39389
+ l = Math.max(0, P);
39390
+ g.push({
39391
+ x: v,
39392
+ y: R,
39393
+ z: p,
39394
+ 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,
39395
+ white: 0.66 - 0.56 * d - 0.1 * l
39396
+ });
39397
+ }
39398
+ }
39399
+ _(e, g, r, t.rMin);
39400
+ };
39401
+ function lt(e) {
39402
+ return e * e * (3 - 2 * e);
39403
+ }
39404
+ function Q(e) {
39405
+ var n = e.length,
39406
+ s = [];
39407
+ var r = 0;
39408
+ for (var t = 0; t < n; t++) {
39409
+ var o = e[t],
39410
+ c = e[(t + 1) % n],
39411
+ a = Math.hypot(c[0] - o[0], c[1] - o[1]);
39412
+ s.push(a), r += a;
39413
+ }
39414
+ return function (t) {
39415
+ var o = t * r,
39416
+ c = 0;
39417
+ for (; o > s[c] && c < n - 1;) o -= s[c], c++;
39418
+ var a = e[c],
39419
+ i = e[(c + 1) % n],
39420
+ m = s[c] ? Math.min(1, o / s[c]) : 0;
39421
+ return [a[0] + (i[0] - a[0]) * m, a[1] + (i[1] - a[1]) * m];
39422
+ };
39423
+ }
39424
+ var ut = function ut(e) {
39425
+ var n = -Math.PI / 2 + e * 2 * Math.PI;
39426
+ return [Math.cos(n) * 0.24, Math.sin(n) * 0.24];
39427
+ },
39428
+ Mt = Q([[0, -0.26], [0.24, 0.16], [-0.24, 0.16]]),
39429
+ pt = Q([[0, -0.2], [0.2, -0.2], [0.2, 0.2], [-0.2, 0.2], [-0.2, -0.2]]),
39430
+ Y = [ut, Mt, pt];
39431
+ function dt(e) {
39432
+ return Math.max(6, Math.round(34 * e));
39433
+ }
39434
+ var U = 1.4,
39435
+ J = 0.9,
39436
+ K = U + J,
39437
+ ft = function ft(e, n, s, r, t) {
39438
+ var _t$spread, _t$iconD, _t$rDot;
39439
+ var o = Y.length,
39440
+ c = s % (K * o),
39441
+ a = Math.floor(c / K),
39442
+ i = c - a * K,
39443
+ m = i > U ? lt((i - U) / J) : 0,
39444
+ g = (_t$spread = t.spread) != null ? _t$spread : 1,
39445
+ M = Y[a],
39446
+ u = Y[(a + 1) % o],
39447
+ h = 160,
39448
+ b = [];
39449
+ for (var p = 0; p < h; p++) {
39450
+ var d = p / h,
39451
+ l = M(d),
39452
+ f = u(d);
39453
+ b.push([(l[0] + (f[0] - l[0]) * m) * g, (l[1] + (f[1] - l[1]) * m) * g]);
39454
+ }
39455
+ var x = [];
39456
+ var I = 0;
39457
+ for (var _p = 0; _p < h; _p++) {
39458
+ var _d = b[_p],
39459
+ _l = b[(_p + 1) % h],
39460
+ _f = Math.hypot(_l[0] - _d[0], _l[1] - _d[1]);
39461
+ x.push(_f), I += _f;
39462
+ }
39463
+ var P = dt((_t$iconD = t.iconD) != null ? _t$iconD : 1),
39464
+ y = ((_t$rDot = t.rDot) != null ? _t$rDot : 0.021) * 1.35 * g,
39465
+ D = 1 + 0.02 * Math.sin(i * 3.1),
39466
+ w = [],
39467
+ k = n / 2;
39468
+ var v = 0,
39469
+ R = 0;
39470
+ for (var _p2 = 0; _p2 < P; _p2++) {
39471
+ var _d2 = _p2 / P * I;
39472
+ for (; R + x[v] < _d2 && v < h - 1;) R += x[v], v++;
39473
+ var _l2 = b[v],
39474
+ _f2 = b[(v + 1) % h],
39475
+ S = x[v] ? Math.min(1, (_d2 - R) / x[v]) : 0,
39476
+ L = (_l2[0] + (_f2[0] - _l2[0]) * S) * D,
39477
+ A = (_l2[1] + (_f2[1] - _l2[1]) * S) * D;
39478
+ w.push({
39479
+ x: k + L * n,
39480
+ y: k + A * n,
39481
+ z: 0,
39482
+ r: Math.max(0.35, y * n),
39483
+ white: 0.1
39484
+ });
39485
+ }
39486
+ _(e, w, r, t.rMin);
39487
+ },
39488
+ mt = function mt(e, n, s, r, t) {
39489
+ var _t$rsPow4, _t$orbitN, _t$ghostN, _t$particles;
39490
+ var o = n / 2,
39491
+ c = n / 2,
39492
+ a = n / 2 * 0.82,
39493
+ i = q(s * 0.12, 0.3, o, c, 1),
39494
+ m = $(n, (_t$rsPow4 = t.rsPow) != null ? _t$rsPow4 : 0.6),
39495
+ g = [],
39496
+ M = (_t$orbitN = t.orbitN) != null ? _t$orbitN : 12,
39497
+ u = (_t$ghostN = t.ghostN) != null ? _t$ghostN : 40,
39498
+ h = (_t$particles = t.particles) != null ? _t$particles : 3;
39499
+ for (var b = 0; b < M; b++) {
39500
+ var x = F(b, 1.7),
39501
+ I = F(b, 5.2),
39502
+ P = F(b, 8.9),
39503
+ y = a * (0.45 + 0.52 * x),
39504
+ D = x * 2 * Math.PI,
39505
+ w = Math.acos(2 * I - 1),
39506
+ k = Math.sin(w) * Math.cos(D),
39507
+ v = Math.cos(w),
39508
+ R = Math.sin(w) * Math.sin(D);
39509
+ var p = -v,
39510
+ d = k;
39511
+ var l = 0,
39512
+ f = Math.max(1e-6, Math.sqrt(p * p + d * d));
39513
+ p /= f, d /= f;
39514
+ var S = v * l - R * d,
39515
+ L = R * p - k * l,
39516
+ A = k * d - v * p,
39517
+ B = (0.25 + 0.55 * P) * (P > 0.5 ? 1 : -1);
39518
+ for (var C = 0; C < u; C++) {
39519
+ var _t$ghostR, _t$ghostA;
39520
+ var E = C / u * 2 * Math.PI,
39521
+ _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),
39522
+ _i6 = _slicedToArray(_i5, 3),
39523
+ T = _i6[0],
39524
+ z = _i6[1],
39525
+ N = _i6[2],
39526
+ O = (N / y + 1) / 2;
39527
+ g.push({
39528
+ x: T,
39529
+ y: z,
39530
+ z: N,
39531
+ r: ((_t$ghostR = t.ghostR) != null ? _t$ghostR : 0.9) * m,
39532
+ white: 0.72,
39533
+ a: ((_t$ghostA = t.ghostA) != null ? _t$ghostA : 0.5) * (0.4 + 0.6 * O)
39534
+ });
39535
+ }
39536
+ for (var _C = 0; _C < h; _C++) {
39537
+ var _t$partR, _t$partRDepth;
39538
+ var _E = s * B + _C / h * 2 * Math.PI + I * 6,
39539
+ _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),
39540
+ _i8 = _slicedToArray(_i7, 3),
39541
+ _T = _i8[0],
39542
+ _z = _i8[1],
39543
+ _N = _i8[2],
39544
+ _O = (_N / y + 1) / 2;
39545
+ g.push({
39546
+ x: _T,
39547
+ y: _z,
39548
+ z: _N,
39549
+ r: (((_t$partR = t.partR) != null ? _t$partR : 1.2) + ((_t$partRDepth = t.partRDepth) != null ? _t$partRDepth : 1.6) * _O) * m,
39550
+ white: 0.3 - 0.22 * _O
39551
+ });
39552
+ }
39553
+ }
39554
+ _(e, g, r, t.rMin);
39555
+ },
39556
+ gt = function gt(e, n, s, r, t) {
39557
+ var _t$spin, _t$rsPow5, _t$ghostN2, _t$lanes, _t$segs, _t$bandMul;
39558
+ var o = n / 2,
39559
+ c = n / 2,
39560
+ a = n / 2 * 0.78,
39561
+ i = (_t$spin = t.spin) != null ? _t$spin : 1,
39562
+ m = q(s * 0.1 * i, 0.3, o, c, 1),
39563
+ g = $(n, (_t$rsPow5 = t.rsPow) != null ? _t$rsPow5 : 0.6),
39564
+ M = [],
39565
+ u = (_t$ghostN2 = t.ghostN) != null ? _t$ghostN2 : 150;
39566
+ for (var f = 0; f < u; f++) {
39567
+ var S = st(f, u),
39568
+ _m = m(S[0] * a, S[1] * a, S[2] * a),
39569
+ _m2 = _slicedToArray(_m, 3),
39570
+ L = _m2[0],
39571
+ A = _m2[1],
39572
+ B = _m2[2],
39573
+ C = (B / a + 1) / 2;
39574
+ M.push({
39575
+ x: L,
39576
+ y: A,
39577
+ z: B,
39578
+ r: 0.8 * g,
39579
+ white: 0.78,
39580
+ a: 0.1 + 0.22 * C
39581
+ });
39582
+ }
39583
+ var h = s * 0.24 * i,
39584
+ b = 0.55 + 0.3 * Math.sin(s * 0.18) * i,
39585
+ x = Math.cos(h),
39586
+ I = 0,
39587
+ P = Math.sin(h),
39588
+ y = -P * Math.sin(b),
39589
+ D = Math.cos(b),
39590
+ w = x * Math.sin(b),
39591
+ k = I * w - P * D,
39592
+ v = P * y - x * w,
39593
+ R = x * D - I * y,
39594
+ p = (_t$lanes = t.lanes) != null ? _t$lanes : 5,
39595
+ d = (_t$segs = t.segs) != null ? _t$segs : 88,
39596
+ l = Math.max(1, Math.round(p * ((_t$bandMul = t.bandMul) != null ? _t$bandMul : 1)));
39597
+ for (var _f3 = 0; _f3 < l; _f3++) {
39598
+ var _S = (_f3 - (l - 1) / 2) * 0.075,
39599
+ _L = Math.abs(_f3 - (l - 1) / 2) / Math.max(1, (l - 1) / 2);
39600
+ for (var _A = 0; _A < d; _A++) {
39601
+ var _t$wobMul, _t$rBase4, _t$rDepth4;
39602
+ var _B = _A / d * 2 * Math.PI,
39603
+ _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),
39604
+ E = _S + _C2,
39605
+ T = x * Math.cos(_B) + y * Math.sin(_B) + k * E,
39606
+ z = I * Math.cos(_B) + D * Math.sin(_B) + v * E,
39607
+ N = P * Math.cos(_B) + w * Math.sin(_B) + R * E,
39608
+ O = Math.sqrt(T * T + z * z + N * N),
39609
+ _m3 = m(T / O * a, z / O * a, N / O * a),
39610
+ _m4 = _slicedToArray(_m3, 3),
39611
+ X = _m4[0],
39612
+ Z = _m4[1],
39613
+ W = _m4[2],
39614
+ j = (W / a + 1) / 2;
39615
+ M.push({
39616
+ x: X,
39617
+ y: Z,
39618
+ z: W,
39619
+ 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,
39620
+ white: 0.52 - 0.44 * j + 0.18 * _L,
39621
+ a: 0.4 + 0.6 * j
39622
+ });
39623
+ }
39624
+ }
39625
+ _(e, M, r, t.rMin);
39626
+ },
39627
+ bt = {
39628
+ orbits: mt,
39629
+ globe: rt,
39630
+ rubik: it,
39631
+ wave: ht,
39632
+ ribbon: gt,
39633
+ morph: ft
39634
+ },
39635
+ yt = [["latRings", "lonDensity"], ["rings", "lonDensity"], ["lanes", "segs"]],
39636
+ xt = ["orbitN", "ghostN"],
39637
+ vt = ["iconD"],
39638
+ wt = ["rBase", "rDepth", "rActive", "rDot", "ghostR", "partR", "partRDepth"];
39639
+ function kt(e, n) {
39640
+ var s = _extends({}, e),
39641
+ r = /* @__PURE__ */new Set(),
39642
+ t = Math.sqrt(n);
39643
+ for (var _iterator2 = _createForOfIteratorHelperLoose$c(yt), _step2; !(_step2 = _iterator2()).done;) {
39644
+ var _step2$value = _slicedToArray(_step2.value, 2),
39645
+ o = _step2$value[0],
39646
+ c = _step2$value[1];
39647
+ var a = s[o],
39648
+ i = s[c];
39649
+ 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));
39650
+ }
39651
+ for (var _iterator3 = _createForOfIteratorHelperLoose$c(xt), _step3; !(_step3 = _iterator3()).done;) {
39652
+ var _o = _step3.value;
39653
+ var _c = s[_o];
39654
+ _c != null && !r.has(_o) && (s[_o] = Math.max(1, Math.round(_c * n)));
39655
+ }
39656
+ for (var _iterator4 = _createForOfIteratorHelperLoose$c(vt), _step4; !(_step4 = _iterator4()).done;) {
39657
+ var _o2 = _step4.value;
39658
+ var _c2 = s[_o2];
39659
+ _c2 != null && (s[_o2] = Math.max(0.02, _c2 * n));
39660
+ }
39661
+ return s;
39662
+ }
39663
+ function Pt(e, n) {
39664
+ var _s$rSizeMul;
39665
+ var s = _extends({}, e);
39666
+ for (var _iterator5 = _createForOfIteratorHelperLoose$c(wt), _step5; !(_step5 = _iterator5()).done;) {
39667
+ var r = _step5.value;
39668
+ var t = s[r];
39669
+ t != null && (s[r] = t * n);
39670
+ }
39671
+ return s.rSizeMul = ((_s$rSizeMul = s.rSizeMul) != null ? _s$rSizeMul : 1) * n, s;
39672
+ }
39673
+ var Dt = {
39674
+ globe: {
39675
+ latRings: 17,
39676
+ lonDensity: 44,
39677
+ rBase: 0.6,
39678
+ rDepth: 1.7,
39679
+ rBoost: 1,
39680
+ inkFar: 0.62,
39681
+ inkSpan: 0.54,
39682
+ rsPow: 0.6,
39683
+ rMin: 0.3
39684
+ },
39685
+ orbits: {
39686
+ orbitN: 12,
39687
+ ghostN: 40,
39688
+ ghostR: 0.9,
39689
+ ghostA: 0.5,
39690
+ particles: 3,
39691
+ partR: 1.2,
39692
+ partRDepth: 1.6,
39693
+ rsPow: 0.6,
39694
+ rMin: 0.3
39695
+ },
39696
+ rubik: {
39697
+ latRings: 15,
39698
+ lonDensity: 40,
39699
+ moveCount: 14,
39700
+ rBase: 0.6,
39701
+ rDepth: 1.7,
39702
+ rActive: 0.3,
39703
+ inkFar: 0.62,
39704
+ inkSpan: 0.54,
39705
+ rsPow: 0.6,
39706
+ rMin: 0.3
39707
+ },
39708
+ wave: {
39709
+ rings: 15,
39710
+ lonDensity: 40,
39711
+ rBase: 0.6,
39712
+ rDepth: 1.7,
39713
+ rsPow: 0.6,
39714
+ rMin: 0.3
39715
+ },
39716
+ ribbon: {
39717
+ lanes: 5,
39718
+ segs: 88,
39719
+ ghostN: 150,
39720
+ rBase: 1.1,
39721
+ rDepth: 1.7,
39722
+ rsPow: 0.6,
39723
+ rMin: 0.3
39724
+ },
39725
+ morph: {
39726
+ rDot: 0.021,
39727
+ iconD: 1,
39728
+ rMin: 0.25
39729
+ }
39730
+ },
39731
+ Rt = {
39732
+ working: "orbits",
39733
+ searching: "globe",
39734
+ solving: "rubik",
39735
+ listening: "wave",
39736
+ composing: "ribbon",
39737
+ shaping: "morph"
39738
+ },
39739
+ St = {
39740
+ orbits: {
39741
+ 64: {
39742
+ speed: 1.885,
39743
+ count: 1,
39744
+ size: 1
39745
+ },
39746
+ 20: {
39747
+ speed: 3.9,
39748
+ count: 0.238,
39749
+ size: 2.4
39750
+ }
39751
+ },
39752
+ globe: {
39753
+ 64: {
39754
+ speed: 2.015,
39755
+ count: 0.42,
39756
+ size: 1.15,
39757
+ extra: {
39758
+ scanMul: 4.08,
39759
+ dimBase: 0.45
39760
+ }
39761
+ },
39762
+ 20: {
39763
+ speed: 2.665,
39764
+ count: 0.105,
39765
+ size: 1.75,
39766
+ extra: {
39767
+ scanMul: 4.335,
39768
+ dimBase: 0.45
39769
+ }
39770
+ }
39771
+ },
39772
+ rubik: {
39773
+ 64: {
39774
+ speed: 1.82,
39775
+ count: 0.35,
39776
+ size: 1.05
39777
+ },
39778
+ 20: {
39779
+ speed: 1.95,
39780
+ count: 0.088,
39781
+ size: 1.9
39782
+ }
39783
+ },
39784
+ wave: {
39785
+ 64: {
39786
+ speed: 4.388,
39787
+ count: 0.341,
39788
+ size: 1
39789
+ },
39790
+ 20: {
39791
+ speed: 3.998,
39792
+ count: 0.105,
39793
+ size: 1.6
39794
+ }
39795
+ },
39796
+ ribbon: {
39797
+ 64: {
39798
+ speed: 2.34,
39799
+ count: 0.25,
39800
+ size: 0.85,
39801
+ extra: {
39802
+ spin: 0,
39803
+ bandMul: 3.9,
39804
+ wobMul: 1
39805
+ }
39806
+ },
39807
+ 20: {
39808
+ speed: 3.12,
39809
+ count: 0.051,
39810
+ size: 1.073,
39811
+ extra: {
39812
+ spin: 0,
39813
+ bandMul: 4.94,
39814
+ wobMul: 1
39815
+ }
39816
+ }
39817
+ },
39818
+ morph: {
39819
+ 64: {
39820
+ speed: 2.405,
39821
+ count: 0.54,
39822
+ size: 0.395,
39823
+ extra: {
39824
+ spread: 1.45
39825
+ }
39826
+ },
39827
+ 20: {
39828
+ speed: 2.08,
39829
+ count: 0.53,
39830
+ size: 1.011,
39831
+ extra: {
39832
+ spread: 1.45
39833
+ }
39834
+ }
39835
+ }
39836
+ },
39837
+ H = /* @__PURE__ */new Map();
39838
+ function It(e, n) {
39839
+ var s = e + "-" + n,
39840
+ r = H.get(s);
39841
+ if (r) return r;
39842
+ var t = Rt[e],
39843
+ o = St[t][n];
39844
+ var c = _extends({}, Dt[t]);
39845
+ o.count !== 1 && (c = kt(c, o.count)), o.size !== 1 && (c = Pt(c, o.size)), o.extra && (c = _extends({}, c, o.extra));
39846
+ var a = {
39847
+ mode: t,
39848
+ speed: o.speed,
39849
+ opts: c
39850
+ };
39851
+ return H.set(s, a), a;
39852
+ }
39853
+ function Et(e) {
39854
+ var n = e;
39855
+ for (; n;) {
39856
+ var s = n.getAttribute("data-theme");
39857
+ if (s === "dark") return true;
39858
+ if (s === "light") return false;
39859
+ if (n.classList.contains("dark")) return true;
39860
+ if (n.classList.contains("light")) return false;
39861
+ n = n.parentElement;
39862
+ }
39863
+ return null;
39864
+ }
39865
+ function Lt() {
39866
+ return typeof matchMedia > "u" || matchMedia("(prefers-color-scheme: dark)").matches;
39867
+ }
39868
+ function At(e, n) {
39869
+ var _V = useState(true),
39870
+ _V2 = _slicedToArray(_V, 2),
39871
+ s = _V2[0],
39872
+ r = _V2[1];
39873
+ return useEffect(function () {
39874
+ if (e === "dark") {
39875
+ r(true);
39876
+ return;
39877
+ }
39878
+ if (e === "light") {
39879
+ r(false);
39880
+ return;
39881
+ }
39882
+ var t = function t() {
39883
+ var i = Et(n.current);
39884
+ r(i != null ? i : Lt());
39885
+ };
39886
+ t();
39887
+ var o = typeof matchMedia < "u" ? matchMedia("(prefers-color-scheme: dark)") : null,
39888
+ c = function c() {
39889
+ return t();
39890
+ };
39891
+ o == null || o.addEventListener("change", c);
39892
+ var a = null;
39893
+ return typeof MutationObserver < "u" && n.current && (a = new MutationObserver(t), a.observe(document.documentElement, {
39894
+ attributes: true,
39895
+ attributeFilter: ["class", "data-theme"],
39896
+ subtree: true
39897
+ })), function () {
39898
+ o == null || o.removeEventListener("change", c), a == null || a.disconnect();
39899
+ };
39900
+ }, [e, n]), s;
39901
+ }
39902
+ function Bt() {
39903
+ var _V3 = useState(false),
39904
+ _V4 = _slicedToArray(_V3, 2),
39905
+ e = _V4[0],
39906
+ n = _V4[1];
39907
+ return useEffect(function () {
39908
+ if (typeof matchMedia > "u") return;
39909
+ var s = matchMedia("(prefers-reduced-motion: reduce)");
39910
+ n(s.matches);
39911
+ var r = function r(t) {
39912
+ return n(t.matches);
39913
+ };
39914
+ return s.addEventListener("change", r), function () {
39915
+ return s.removeEventListener("change", r);
39916
+ };
39917
+ }, []), e;
39918
+ }
39919
+ var Ct = {
39920
+ working: "Working…",
39921
+ searching: "Searching…",
39922
+ solving: "Solving…",
39923
+ listening: "Listening…",
39924
+ composing: "Composing…",
39925
+ shaping: "Shaping…"
39926
+ };
39927
+ function Tt(_ref) {
39928
+ var _ref$state = _ref.state,
39929
+ e = _ref$state === void 0 ? "working" : _ref$state,
39930
+ _ref$size = _ref.size,
39931
+ n = _ref$size === void 0 ? 64 : _ref$size,
39932
+ _ref$theme = _ref.theme,
39933
+ s = _ref$theme === void 0 ? "auto" : _ref$theme,
39934
+ _ref$speed = _ref.speed,
39935
+ r = _ref$speed === void 0 ? 1 : _ref$speed,
39936
+ _ref$paused = _ref.paused,
39937
+ t = _ref$paused === void 0 ? false : _ref$paused,
39938
+ o = _ref.style,
39939
+ c = _ref["aria-label"],
39940
+ a = _objectWithoutPropertiesLoose(_ref, _excluded$a);
39941
+ var i = useRef(null),
39942
+ m = At(s, i),
39943
+ g = Bt();
39944
+ return useEffect(function () {
39945
+ var M = i.current;
39946
+ if (!M) return;
39947
+ var u = Math.min(2, typeof devicePixelRatio < "u" && devicePixelRatio || 1);
39948
+ M.width = Math.round(n * u), M.height = Math.round(n * u);
39949
+ var h = M.getContext("2d");
39950
+ if (!h) return;
39951
+ var _It = It(e, n),
39952
+ b = _It.mode,
39953
+ x = _It.speed,
39954
+ I = _It.opts,
39955
+ P = bt[b],
39956
+ y = x * r,
39957
+ D = function D(S) {
39958
+ h.setTransform(u, 0, 0, u, 0, 0), h.clearRect(0, 0, n, n), P(h, n, S, m, I);
39959
+ };
39960
+ if (g) {
39961
+ D(0.6);
39962
+ return;
39963
+ }
39964
+ var w = 0,
39965
+ k = false;
39966
+ var _v = function v() {
39967
+ D(performance.now() / 1e3 * y), k && (w = requestAnimationFrame(_v));
39968
+ },
39969
+ R = function R() {
39970
+ k || t || (k = true, w = requestAnimationFrame(_v));
39971
+ },
39972
+ p = function p() {
39973
+ k = false, cancelAnimationFrame(w);
39974
+ };
39975
+ D(performance.now() / 1e3 * y);
39976
+ var d = true;
39977
+ var l = typeof IntersectionObserver < "u" ? new IntersectionObserver(function (_ref2) {
39978
+ var _ref3 = _slicedToArray(_ref2, 1),
39979
+ S = _ref3[0];
39980
+ d = S.isIntersecting, d && document.visibilityState !== "hidden" ? R() : p();
39981
+ }) : null;
39982
+ l == null || l.observe(M);
39983
+ var f = function f() {
39984
+ document.visibilityState === "hidden" ? p() : d && R();
39985
+ };
39986
+ return document.addEventListener("visibilitychange", f), l || R(), function () {
39987
+ p(), l == null || l.disconnect(), document.removeEventListener("visibilitychange", f);
39988
+ };
39989
+ }, [e, n, m, r, t, g]), /* @__PURE__ */jsx("canvas", _extends({
39990
+ ref: i,
39991
+ role: "img",
39992
+ "aria-label": c != null ? c : Ct[e],
39993
+ style: _extends({
39994
+ width: n,
39995
+ height: n,
39996
+ display: "block"
39997
+ }, o)
39998
+ }, a));
39999
+ }
40000
+
39125
40001
  var _templateObject$2, _templateObject2$2;
39126
40002
  function OrbStatusScreen(_ref) {
39127
40003
  var state = _ref.state,
@@ -39130,7 +40006,7 @@ function OrbStatusScreen(_ref) {
39130
40006
  loadingStage = _ref.loadingStage;
39131
40007
  var theme = useTheme();
39132
40008
  var label = accessibleLabel != null ? accessibleLabel : typeof text === 'string' ? text : undefined;
39133
- var orb = jsx(ThinkingOrb, {
40009
+ var orb = jsx(Tt, {
39134
40010
  state: state,
39135
40011
  size: 64,
39136
40012
  style: {
@@ -48442,7 +49318,7 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
48442
49318
  });
48443
49319
  }
48444
49320
 
48445
- var webSdkVersion = '2.5.81-changeset-release-develop-3ddb15a';
49321
+ var webSdkVersion = '2.5.81-react16compat.0';
48446
49322
 
48447
49323
  // GENERATED by scripts/styleBagTypes.mjs from
48448
49324
  // src/__fixtures__/sdk2StyleBags.json and the mapper sweep — do not
@@ -51332,6 +52208,25 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
51332
52208
  }, mapCustomerIdAndBiometricsEnrollmentProps(props, ctx)), props.children);
51333
52209
  };
51334
52210
 
52211
+ /**
52212
+ * react-16-compat: React 16/17 have no `createRoot`, so this adapts the legacy
52213
+ * `ReactDOM.render` API to the root shape the rest of this module expects.
52214
+ * Keeping that shape means the teardown logic below stays byte-identical to
52215
+ * develop and merges cleanly. Runs on React 16.14 through 18; React 19
52216
+ * removed `ReactDOM.render`, which is why this build's peer range stops at 18.
52217
+ */
52218
+ function createRoot(container) {
52219
+ return {
52220
+ render: function render(element) {
52221
+ // eslint-disable-next-line react/no-deprecated -- the only mount API React 16 has
52222
+ ReactDOM.render(element, container);
52223
+ },
52224
+ unmount: function unmount() {
52225
+ // eslint-disable-next-line react/no-deprecated -- pairs with ReactDOM.render above
52226
+ ReactDOM.unmountComponentAtNode(container);
52227
+ }
52228
+ };
52229
+ }
51335
52230
  /**
51336
52231
  * Targets whose `remove` this module has already wrapped. Permanent: the
51337
52232
  * wrapper is installed at most once per element, so repeat renders can never
@@ -51359,8 +52254,7 @@ function renderElement(component, targetElement) {
51359
52254
  targetElement = document.createElement('div');
51360
52255
  document.body.append(targetElement);
51361
52256
  }
51362
- var root = ReactDOM.createRoot(targetElement);
51363
- root.render(/*#__PURE__*/React.createElement(OverlayContainer, null, component));
52257
+ var root = createRoot(targetElement);
51364
52258
  if ('remove' in targetElement) {
51365
52259
  var element_1 = targetElement;
51366
52260
  // Always point at the newest root, even when the wrapper is already
@@ -51410,6 +52304,10 @@ function renderElement(component, targetElement) {
51410
52304
  };
51411
52305
  }
51412
52306
  }
52307
+ // react-16-compat: render LAST. A legacy root mounts synchronously, so layout
52308
+ // effects (e.g. a customer `loadingSpinner`) run inside this call; one that
52309
+ // calls `.remove()` must already hit the wrapper above, not the native method.
52310
+ root.render(/*#__PURE__*/React.createElement(OverlayContainer, null, component));
51413
52311
  return targetElement;
51414
52312
  }
51415
52313
  function renderComponent(Component, targetElement, options) {