idmission-web-sdk 2.5.61 → 2.5.62-react16compat.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sdk2.esm.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import React, { useRef, useState, useEffect, useLayoutEffect, useCallback, useMemo, useContext, createContext, createElement, forwardRef, useImperativeHandle, memo, useReducer } from 'react';
2
- import { createStore } from 'zustand/vanilla';
3
2
  import platform from 'platform';
4
3
  import { DetailedError, Upload } from 'tus-js-client';
5
4
  import SparkMD5 from 'spark-md5';
@@ -9,10 +8,8 @@ import { useSyncExternalStore } from 'use-sync-external-store/shim';
9
8
  import { useTranslation } from 'react-i18next';
10
9
  import LanguageDetector from 'i18next-browser-languagedetector';
11
10
  import { createInstance } from 'i18next';
12
- import { createPortal } from 'react-dom';
11
+ import ReactDOM, { createPortal } from 'react-dom';
13
12
  import SignaturePad from 'signature_pad';
14
- import { ThinkingOrb } from 'thinking-orbs';
15
- import ReactDOM from 'react-dom/client';
16
13
  import { ImageSegmenter, FilesetResolver, ObjectDetector, ImageClassifier, FaceLandmarker as FaceLandmarker$2 } from '@mediapipe/tasks-vision';
17
14
  import { isWebGPUSupported, loadAndCompile, loadLiteRt, Tensor } from '@litertjs/core';
18
15
 
@@ -446,17 +443,17 @@ function _iterableToArrayLimit(r, l) {
446
443
  }
447
444
  }
448
445
 
449
- function _arrayLikeToArray$v(r, a) {
446
+ function _arrayLikeToArray$w(r, a) {
450
447
  (null == a || a > r.length) && (a = r.length);
451
448
  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
452
449
  return n;
453
450
  }
454
451
 
455
- function _unsupportedIterableToArray$v(r, a) {
452
+ function _unsupportedIterableToArray$w(r, a) {
456
453
  if (r) {
457
- if ("string" == typeof r) return _arrayLikeToArray$v(r, a);
454
+ if ("string" == typeof r) return _arrayLikeToArray$w(r, a);
458
455
  var t = {}.toString.call(r).slice(8, -1);
459
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$v(r, a) : void 0;
456
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$w(r, a) : void 0;
460
457
  }
461
458
  }
462
459
 
@@ -465,11 +462,11 @@ function _nonIterableRest() {
465
462
  }
466
463
 
467
464
  function _slicedToArray(r, e) {
468
- return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$v(r, e) || _nonIterableRest();
465
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$w(r, e) || _nonIterableRest();
469
466
  }
470
467
 
471
468
  function _arrayWithoutHoles(r) {
472
- if (Array.isArray(r)) return _arrayLikeToArray$v(r);
469
+ if (Array.isArray(r)) return _arrayLikeToArray$w(r);
473
470
  }
474
471
 
475
472
  function _iterableToArray(r) {
@@ -481,7 +478,7 @@ function _nonIterableSpread() {
481
478
  }
482
479
 
483
480
  function _toConsumableArray(r) {
484
- return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$v(r) || _nonIterableSpread();
481
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$w(r) || _nonIterableSpread();
485
482
  }
486
483
 
487
484
  var webSdkCoreVersion = '0.4.0';
@@ -1256,9 +1253,9 @@ var attemptStatuses = ["active", "completed", "failed", "superseded", "disposed"
1256
1253
  ({
1257
1254
  workflowMilestones: [].concat(_toConsumableArray(workflowMilestones), ["task-completed"])});
1258
1255
 
1259
- function _createForOfIteratorHelperLoose$u(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$u(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1260
- function _unsupportedIterableToArray$u(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$u(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$u(r, a) : void 0; } }
1261
- function _arrayLikeToArray$u(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
1256
+ function _createForOfIteratorHelperLoose$v(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$v(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1257
+ function _unsupportedIterableToArray$v(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$v(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$v(r, a) : void 0; } }
1258
+ function _arrayLikeToArray$v(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
1262
1259
  var maximumBytes = 32 * 1024;
1263
1260
  var maximumTime = 86400000;
1264
1261
  var uuidPattern = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
@@ -1326,7 +1323,7 @@ function validateSnapshot(report) {
1326
1323
  unique(report.phaseTotals.map(function (total) {
1327
1324
  return total.phase;
1328
1325
  }));
1329
- for (var _iterator = _createForOfIteratorHelperLoose$u(report.phaseTotals), _step; !(_step = _iterator()).done;) {
1326
+ for (var _iterator = _createForOfIteratorHelperLoose$v(report.phaseTotals), _step; !(_step = _iterator()).done;) {
1330
1327
  var _total4 = _step.value;
1331
1328
  requireValid(member(phases, _total4.phase) && integer(_total4.completions, 1000000) && _total4.completions <= _total4.duration.entries);
1332
1329
  durationValid(_total4.duration);
@@ -1348,7 +1345,7 @@ function validateSnapshot(report) {
1348
1345
  requireValid(report.recentTransitions.length <= 32);
1349
1346
  var index = 0;
1350
1347
  var atMs = 0;
1351
- for (var _iterator2 = _createForOfIteratorHelperLoose$u(report.recentTransitions), _step2; !(_step2 = _iterator2()).done;) {
1348
+ for (var _iterator2 = _createForOfIteratorHelperLoose$v(report.recentTransitions), _step2; !(_step2 = _iterator2()).done;) {
1352
1349
  var transition = _step2.value;
1353
1350
  requireValid(member(transitionKinds, transition.kind));
1354
1351
  requireValid(integer(transition.index, 1000000) && transition.index > index && integer(transition.atMs) && transition.atMs >= atMs && transition.atMs <= report.elapsedMs);
@@ -1372,12 +1369,12 @@ function validateSnapshot(report) {
1372
1369
  unique(report.controllerGuidanceTotals.map(function (total) {
1373
1370
  return JSON.stringify([total.phase, total.guidance]);
1374
1371
  }));
1375
- for (var _iterator3 = _createForOfIteratorHelperLoose$u(report.guidanceTotals), _step3; !(_step3 = _iterator3()).done;) {
1372
+ for (var _iterator3 = _createForOfIteratorHelperLoose$v(report.guidanceTotals), _step3; !(_step3 = _iterator3()).done;) {
1376
1373
  var _total2 = _step3.value;
1377
1374
  durationValid(_total2.duration);
1378
1375
  exposureValid(_total2.phase, _total2.exposure);
1379
1376
  }
1380
- for (var _iterator4 = _createForOfIteratorHelperLoose$u(report.controllerGuidanceTotals), _step4; !(_step4 = _iterator4()).done;) {
1377
+ for (var _iterator4 = _createForOfIteratorHelperLoose$v(report.controllerGuidanceTotals), _step4; !(_step4 = _iterator4()).done;) {
1381
1378
  var _total3 = _step4.value;
1382
1379
  durationValid(_total3.duration);
1383
1380
  guidanceValid(_total3.phase, _total3.guidance, false);
@@ -1411,7 +1408,7 @@ function encodeProgressBatch(batch) {
1411
1408
  requireValid(batch.schemaVersion === 1 && batch.sdkVersion.length > 0 && batch.sdkVersion.length <= 32 && batch.sessionId.length > 0 && uuidPattern.test(batch.producerId) && integer(batch.sentAtUnixMs, Number.MAX_SAFE_INTEGER));
1412
1409
  var reports = [];
1413
1410
  var dropped = [];
1414
- for (var _iterator5 = _createForOfIteratorHelperLoose$u(batch.reports), _step5; !(_step5 = _iterator5()).done;) {
1411
+ for (var _iterator5 = _createForOfIteratorHelperLoose$v(batch.reports), _step5; !(_step5 = _iterator5()).done;) {
1415
1412
  var report = _step5.value;
1416
1413
  try {
1417
1414
  validateSnapshot(report);
@@ -1440,9 +1437,9 @@ function encodeProgressBatch(batch) {
1440
1437
  };
1441
1438
  }
1442
1439
 
1443
- function _createForOfIteratorHelperLoose$t(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$t(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1444
- function _unsupportedIterableToArray$t(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$t(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$t(r, a) : void 0; } }
1445
- function _arrayLikeToArray$t(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
1440
+ function _createForOfIteratorHelperLoose$u(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$u(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1441
+ function _unsupportedIterableToArray$u(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$u(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$u(r, a) : void 0; } }
1442
+ function _arrayLikeToArray$u(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
1446
1443
  var taskOpeners = new WeakMap();
1447
1444
  var inertObserver = {
1448
1445
  observe: function observe() {},
@@ -1496,7 +1493,7 @@ function createSessionActor(options, deps) {
1496
1493
  var due = new Map();
1497
1494
  var eligibilityRetries = new Map();
1498
1495
  function dropped(report) {
1499
- for (var _iterator = _createForOfIteratorHelperLoose$t(streams), _step; !(_step = _iterator()).done;) {
1496
+ for (var _iterator = _createForOfIteratorHelperLoose$u(streams), _step; !(_step = _iterator()).done;) {
1500
1497
  var stream = _step.value;
1501
1498
  if (stream.state.report.streamId === report.streamId) stream.state = _extends({}, stream.state, {
1502
1499
  report: _extends({}, stream.state.report, {
@@ -1540,7 +1537,7 @@ function createSessionActor(options, deps) {
1540
1537
  var retained = new Set(queued.map(function (report) {
1541
1538
  return report.sequence;
1542
1539
  }));
1543
- for (var _iterator2 = _createForOfIteratorHelperLoose$t(due.keys()), _step2; !(_step2 = _iterator2()).done;) {
1540
+ for (var _iterator2 = _createForOfIteratorHelperLoose$u(due.keys()), _step2; !(_step2 = _iterator2()).done;) {
1544
1541
  var _sequence = _step2.value;
1545
1542
  if (!retained.has(_sequence)) due["delete"](_sequence);
1546
1543
  }
@@ -1553,7 +1550,7 @@ function createSessionActor(options, deps) {
1553
1550
  var keys = new Set(reports.map(function (report) {
1554
1551
  return report.sequence;
1555
1552
  }));
1556
- for (var _iterator3 = _createForOfIteratorHelperLoose$t(pending), _step3; !(_step3 = _iterator3()).done;) {
1553
+ for (var _iterator3 = _createForOfIteratorHelperLoose$u(pending), _step3; !(_step3 = _iterator3()).done;) {
1557
1554
  var _step3$value = _slicedToArray(_step3.value, 2),
1558
1555
  key = _step3$value[0],
1559
1556
  report = _step3$value[1];
@@ -1577,14 +1574,14 @@ function createSessionActor(options, deps) {
1577
1574
  if ((_emergency = emergency) != null && _emergency.reports.some(function (report) {
1578
1575
  return report.context === context;
1579
1576
  })) emergency = null;
1580
- for (var _iterator4 = _createForOfIteratorHelperLoose$t(pending), _step4; !(_step4 = _iterator4()).done;) {
1577
+ for (var _iterator4 = _createForOfIteratorHelperLoose$u(pending), _step4; !(_step4 = _iterator4()).done;) {
1581
1578
  var _step4$value = _slicedToArray(_step4.value, 2),
1582
1579
  key = _step4$value[0],
1583
1580
  report = _step4$value[1];
1584
1581
  if (report.context === context) pending["delete"](key);
1585
1582
  }
1586
1583
  for (var i = terminal.length - 1; i >= 0; i--) if (terminal[i].context === context) terminal.splice(i, 1);
1587
- for (var _iterator5 = _createForOfIteratorHelperLoose$t(streams), _step5; !(_step5 = _iterator5()).done;) {
1584
+ for (var _iterator5 = _createForOfIteratorHelperLoose$u(streams), _step5; !(_step5 = _iterator5()).done;) {
1588
1585
  var stream = _step5.value;
1589
1586
  if (stream.state.report.context === context) {
1590
1587
  stream.disposed = true;
@@ -1613,7 +1610,7 @@ function createSessionActor(options, deps) {
1613
1610
  unsubscribe();
1614
1611
  cancelTimer == null || cancelTimer();
1615
1612
  cancelRequest == null || cancelRequest();
1616
- for (var _iterator6 = _createForOfIteratorHelperLoose$t(streams), _step6; !(_step6 = _iterator6()).done;) {
1613
+ for (var _iterator6 = _createForOfIteratorHelperLoose$u(streams), _step6; !(_step6 = _iterator6()).done;) {
1617
1614
  var stream = _step6.value;
1618
1615
  stream.disposed = true;
1619
1616
  }
@@ -1635,7 +1632,7 @@ function createSessionActor(options, deps) {
1635
1632
  sentAtUnixMs: Math.floor(deps.unixMs()),
1636
1633
  reports: reports
1637
1634
  });
1638
- for (var _iterator7 = _createForOfIteratorHelperLoose$t(result.dropped), _step7; !(_step7 = _iterator7()).done;) {
1635
+ for (var _iterator7 = _createForOfIteratorHelperLoose$u(result.dropped), _step7; !(_step7 = _iterator7()).done;) {
1639
1636
  var report = _step7.value;
1640
1637
  dropped(report);
1641
1638
  removeReports([report]);
@@ -1805,14 +1802,14 @@ function createSessionActor(options, deps) {
1805
1802
  retries = 0;
1806
1803
  failureStreak = 0;
1807
1804
  } else if (result.kind === "permanent") {
1808
- for (_iterator11 = _createForOfIteratorHelperLoose$t(sending.reports); !(_step11 = _iterator11()).done;) {
1805
+ for (_iterator11 = _createForOfIteratorHelperLoose$u(sending.reports); !(_step11 = _iterator11()).done;) {
1809
1806
  report = _step11.value;
1810
1807
  disable(report.context);
1811
1808
  }
1812
1809
  } else {
1813
1810
  backoff(result);
1814
1811
  if (++retries > 3) {
1815
- for (_iterator12 = _createForOfIteratorHelperLoose$t(sending.reports); !(_step12 = _iterator12()).done;) {
1812
+ for (_iterator12 = _createForOfIteratorHelperLoose$u(sending.reports); !(_step12 = _iterator12()).done;) {
1816
1813
  _report = _step12.value;
1817
1814
  dropped(_report);
1818
1815
  }
@@ -1834,7 +1831,7 @@ function createSessionActor(options, deps) {
1834
1831
  backoff({});
1835
1832
  if (authorizing) failedEligibility(authorizing);
1836
1833
  if (frozen && ++retries > 3) {
1837
- for (_iterator13 = _createForOfIteratorHelperLoose$t(frozen.reports); !(_step13 = _iterator13()).done;) {
1834
+ for (_iterator13 = _createForOfIteratorHelperLoose$u(frozen.reports); !(_step13 = _iterator13()).done;) {
1838
1835
  _report2 = _step13.value;
1839
1836
  dropped(_report2);
1840
1837
  }
@@ -1877,7 +1874,7 @@ function createSessionActor(options, deps) {
1877
1874
  } else if (outcome.kind === "committed") {
1878
1875
  if (emergency === sending) emergency = null;
1879
1876
  } else if (outcome.kind === "permanent") {
1880
- for (var _iterator8 = _createForOfIteratorHelperLoose$t(sending.reports), _step8; !(_step8 = _iterator8()).done;) {
1877
+ for (var _iterator8 = _createForOfIteratorHelperLoose$u(sending.reports), _step8; !(_step8 = _iterator8()).done;) {
1881
1878
  var report = _step8.value;
1882
1879
  disable(report.context);
1883
1880
  }
@@ -1909,7 +1906,7 @@ function createSessionActor(options, deps) {
1909
1906
  }
1910
1907
  function tick() {
1911
1908
  if (disposed || visibility === "hidden") return;
1912
- for (var _iterator9 = _createForOfIteratorHelperLoose$t(streams), _step9; !(_step9 = _iterator9()).done;) {
1909
+ for (var _iterator9 = _createForOfIteratorHelperLoose$u(streams), _step9; !(_step9 = _iterator9()).done;) {
1913
1910
  var stream = _step9.value;
1914
1911
  var report = prepareDeadline(stream);
1915
1912
  if (!(report != null && report.current)) continue;
@@ -1936,7 +1933,7 @@ function createSessionActor(options, deps) {
1936
1933
  if (disposed || visibility === "hidden") return;
1937
1934
  var delay = Infinity;
1938
1935
  if (!busy && (pending.size || terminal.length || frozen || emergency)) delay = Math.max(0, deliveryReadyAt() - deps.now());
1939
- for (var _iterator0 = _createForOfIteratorHelperLoose$t(streams), _step0; !(_step0 = _iterator0()).done;) {
1936
+ for (var _iterator0 = _createForOfIteratorHelperLoose$u(streams), _step0; !(_step0 = _iterator0()).done;) {
1940
1937
  var stream = _step0.value;
1941
1938
  var report = prepareDeadline(stream);
1942
1939
  if (!(report != null && report.current)) continue;
@@ -2022,7 +2019,7 @@ function createSessionActor(options, deps) {
2022
2019
  return guard$2(function () {
2023
2020
  if (disposed || next === visibility) return;
2024
2021
  visibility = next;
2025
- for (var _iterator1 = _createForOfIteratorHelperLoose$t(streams), _step1; !(_step1 = _iterator1()).done;) {
2022
+ for (var _iterator1 = _createForOfIteratorHelperLoose$u(streams), _step1; !(_step1 = _iterator1()).done;) {
2026
2023
  var stream = _step1.value;
2027
2024
  if (stream.state.report.attemptStatus !== "active") continue;
2028
2025
  stream.state = reduceObservation(stream.state, {
@@ -2063,7 +2060,7 @@ function createSessionActor(options, deps) {
2063
2060
  if (taskDisposed) return;
2064
2061
  taskDisposed = true;
2065
2062
  if (workflowStream) close(workflowStream, "disposed");
2066
- for (var _iterator10 = _createForOfIteratorHelperLoose$t(captures), _step10; !(_step10 = _iterator10()).done;) {
2063
+ for (var _iterator10 = _createForOfIteratorHelperLoose$u(captures), _step10; !(_step10 = _iterator10()).done;) {
2067
2064
  var capture = _step10.value;
2068
2065
  capture.dispose();
2069
2066
  }
@@ -2201,6 +2198,44 @@ function isApprovedResponse(action, response) {
2201
2198
  return action === SubmissionAction.ENROLL ? result === "Customer Onboarded" : result === "Approved";
2202
2199
  }
2203
2200
 
2201
+ var createStoreImpl = function createStoreImpl(createState) {
2202
+ var state;
2203
+ var listeners = /* @__PURE__ */new Set();
2204
+ var setState = function setState(partial, replace) {
2205
+ var nextState = typeof partial === "function" ? partial(state) : partial;
2206
+ if (!Object.is(nextState, state)) {
2207
+ var previousState = state;
2208
+ state = (replace != null ? replace : typeof nextState !== "object" || nextState === null) ? nextState : Object.assign({}, state, nextState);
2209
+ listeners.forEach(function (listener) {
2210
+ return listener(state, previousState);
2211
+ });
2212
+ }
2213
+ };
2214
+ var getState = function getState() {
2215
+ return state;
2216
+ };
2217
+ var getInitialState = function getInitialState() {
2218
+ return initialState;
2219
+ };
2220
+ var subscribe = function subscribe(listener) {
2221
+ listeners.add(listener);
2222
+ return function () {
2223
+ return listeners["delete"](listener);
2224
+ };
2225
+ };
2226
+ var api = {
2227
+ setState: setState,
2228
+ getState: getState,
2229
+ getInitialState: getInitialState,
2230
+ subscribe: subscribe
2231
+ };
2232
+ var initialState = state = createState(setState, getState, api);
2233
+ return api;
2234
+ };
2235
+ var createStore = function createStore(createState) {
2236
+ return createState ? createStoreImpl(createState) : createStoreImpl;
2237
+ };
2238
+
2204
2239
  function sessionReducer(state, action) {
2205
2240
  switch (action.type) {
2206
2241
  case 'setSessionId':
@@ -2858,7 +2893,7 @@ function _objectWithoutPropertiesLoose(r, e) {
2858
2893
  return t;
2859
2894
  }
2860
2895
 
2861
- var _excluded$j = ["nonce", "web", "os"];
2896
+ var _excluded$k = ["nonce", "web", "os"];
2862
2897
  /**
2863
2898
  * Grade the envelope from whichever inputs are present:
2864
2899
  * - OS token present -> 'os-attested' (attach `os`)
@@ -2872,7 +2907,7 @@ function buildClientAttestation(input) {
2872
2907
  var nonce = input.nonce,
2873
2908
  web = input.web,
2874
2909
  os = input.os,
2875
- versions = _objectWithoutPropertiesLoose(input, _excluded$j);
2910
+ versions = _objectWithoutPropertiesLoose(input, _excluded$k);
2876
2911
  if (os) {
2877
2912
  return _extends({
2878
2913
  assuranceLevel: 'os-attested',
@@ -3455,9 +3490,9 @@ function blobToB64(blob) {
3455
3490
  });
3456
3491
  }
3457
3492
 
3458
- function _createForOfIteratorHelperLoose$s(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$s(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3459
- function _unsupportedIterableToArray$s(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$s(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$s(r, a) : void 0; } }
3460
- function _arrayLikeToArray$s(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
3493
+ function _createForOfIteratorHelperLoose$t(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$t(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3494
+ function _unsupportedIterableToArray$t(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$t(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$t(r, a) : void 0; } }
3495
+ function _arrayLikeToArray$t(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
3461
3496
  /**
3462
3497
  * Parser for AAMVA (American Association of Motor Vehicle Administrators)
3463
3498
  * PDF417 barcode data found on US and Canadian driver's licenses.
@@ -3719,7 +3754,7 @@ function parseAAMVABarcode(rawData) {
3719
3754
  DAD: false
3720
3755
  };
3721
3756
  var daaValue = null;
3722
- for (var _iterator = _createForOfIteratorHelperLoose$s(lines), _step; !(_step = _iterator()).done;) {
3757
+ for (var _iterator = _createForOfIteratorHelperLoose$t(lines), _step; !(_step = _iterator()).done;) {
3723
3758
  var line = _step.value;
3724
3759
  var match = line.match(fieldRegex);
3725
3760
  if (match) {
@@ -3760,7 +3795,7 @@ function parseAAMVABarcode(rawData) {
3760
3795
  result.fields.push(field);
3761
3796
  }
3762
3797
  };
3763
- for (var _iterator2 = _createForOfIteratorHelperLoose$s(daaFields), _step2; !(_step2 = _iterator2()).done;) {
3798
+ for (var _iterator2 = _createForOfIteratorHelperLoose$t(daaFields), _step2; !(_step2 = _iterator2()).done;) {
3764
3799
  _loop();
3765
3800
  }
3766
3801
  }
@@ -6453,7 +6488,7 @@ var fr = {
6453
6488
  'Barcode capture in progress, please hold still': 'Capture du code-barres en cours, veuillez ne pas bouger'
6454
6489
  };
6455
6490
 
6456
- var it = {
6491
+ var it$1 = {
6457
6492
  'English - en': 'Italian - it',
6458
6493
  'Use your device camera to capture your ID': 'Utilizzare la fotocamera del dispositivo per acquisire il documento',
6459
6494
  'Use your iPhone as a webcam': 'Utilizza iPhone come webcam',
@@ -6749,7 +6784,7 @@ var ja = {
6749
6784
  'Barcode capture in progress, please hold still': 'バーコードを読み取っています。動かないでください'
6750
6785
  };
6751
6786
 
6752
- var pt = {
6787
+ var pt$1 = {
6753
6788
  'English - en': 'Portuguese (Brazil) - pt',
6754
6789
  'Use your device camera to capture your ID': 'Usar a câmera do dispositivo para fotografar sua identidade',
6755
6790
  'Use your iPhone as a webcam': 'Use seu iPhone como uma câmera Web',
@@ -7299,13 +7334,13 @@ var resources = {
7299
7334
  translation: withThreeOhTranslations('fr', fr)
7300
7335
  },
7301
7336
  it: {
7302
- translation: withThreeOhTranslations('it', it)
7337
+ translation: withThreeOhTranslations('it', it$1)
7303
7338
  },
7304
7339
  ja: {
7305
7340
  translation: withThreeOhTranslations('ja', ja)
7306
7341
  },
7307
7342
  pt: {
7308
- translation: withThreeOhTranslations('pt', pt)
7343
+ translation: withThreeOhTranslations('pt', pt$1)
7309
7344
  },
7310
7345
  ru: {
7311
7346
  translation: withThreeOhTranslations('ru', ru)
@@ -7619,11 +7654,11 @@ function useGuideOrientationContext() {
7619
7654
  return ctx;
7620
7655
  }
7621
7656
 
7622
- var _templateObject$_, _templateObject2$P;
7623
- var _excluded$i = ["isRearFacing"];
7657
+ var _templateObject$_, _templateObject2$Q;
7658
+ var _excluded$j = ["isRearFacing"];
7624
7659
  var CameraVideoTag = /*#__PURE__*/forwardRef(function CameraVideoTag(_ref, ref) {
7625
7660
  var isRearFacing = _ref.isRearFacing,
7626
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
7661
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
7627
7662
  return jsx(FullscreenVideoTag, _extends({
7628
7663
  autoPlay: true,
7629
7664
  playsInline: true,
@@ -7635,7 +7670,7 @@ var CameraVideoTag = /*#__PURE__*/forwardRef(function CameraVideoTag(_ref, ref)
7635
7670
  var FullscreenVideoTag = styled.video(_templateObject$_ || (_templateObject$_ = _taggedTemplateLiteralLoose(["\n transform: ", ";\n transform-style: preserve-3d;\n min-width: 100%;\n min-height: 100%;\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: 100%;\n object-fit: cover;\n background: black;\n z-index: -2;\n"])), function (props) {
7636
7671
  return props.$isRearFacing ? '' : 'scaleX(-1)';
7637
7672
  });
7638
- var CameraFeedWrapper = styled.div(_templateObject2$P || (_templateObject2$P = _taggedTemplateLiteralLoose(["\n /* Keep CameraVideoTag's legacy negative z-index above opaque flow shells. */\n isolation: isolate;\n\n ", "\n\n /* Last, so it wins over both branches' display. */\n ", "\n"])), function (props) {
7673
+ var CameraFeedWrapper = styled.div(_templateObject2$Q || (_templateObject2$Q = _taggedTemplateLiteralLoose(["\n /* Keep CameraVideoTag's legacy negative z-index above opaque flow shells. */\n isolation: isolate;\n\n ", "\n\n /* Last, so it wins over both branches' display. */\n ", "\n"])), function (props) {
7639
7674
  return props.$mode === 'snapToGuides' ? "display: flex;\n position: absolute;\n z-index: -2;\n left: " + props.$x + "px;\n top: " + props.$y + "px;\n width: " + props.$w + "px;\n height: " + props.$h + "px;\n /* Match the mask's hole when the guide publishes a radius. The mask\n sits above this feed (-1 vs -2), so square corners here show through\n as dimmed wedges outside the rounded hole. Guides that publish no\n radius keep the previous unclipped behaviour. */\n " + (props.$radius ? "border-radius: " + props.$radius + "px; overflow: hidden;" : '') : "display: flex;\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n overflow: hidden;";
7640
7675
  }, function (props) {
7641
7676
  return props.$hidden ? 'display: none;' : '';
@@ -7690,10 +7725,10 @@ function ScalingCameraFeed(_ref2) {
7690
7725
  });
7691
7726
  }
7692
7727
 
7693
- var _templateObject$Z, _templateObject2$O, _templateObject3$D, _templateObject4$y, _templateObject5$t, _templateObject6$l;
7694
- function _createForOfIteratorHelperLoose$r(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$r(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7695
- function _unsupportedIterableToArray$r(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$r(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$r(r, a) : void 0; } }
7696
- function _arrayLikeToArray$r(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
7728
+ var _templateObject$Z, _templateObject2$P, _templateObject3$D, _templateObject4$y, _templateObject5$t, _templateObject6$l;
7729
+ function _createForOfIteratorHelperLoose$s(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$s(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7730
+ function _unsupportedIterableToArray$s(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$s(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$s(r, a) : void 0; } }
7731
+ function _arrayLikeToArray$s(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
7697
7732
  /** Displays camera readiness and available source-frame dimensions. */
7698
7733
  function CameraDebugStatus(_ref) {
7699
7734
  var ready = _ref.ready,
@@ -7713,7 +7748,7 @@ function DebugStatsPane(_ref2) {
7713
7748
  return /*#__PURE__*/createPortal(element, portalLocation);
7714
7749
  }
7715
7750
  var DebugStatsPaneDiv = styled.span(_templateObject$Z || (_templateObject$Z = _taggedTemplateLiteralLoose(["\n font-size: 16px;\n font-family: monospace;\n position: absolute;\n left: 20px;\n bottom: 20px;\n margin-right: 20px;\n padding: 8px;\n color: limegreen;\n background: rgba(0, 0, 0, 0.5);\n z-index: 10002;\n pointer-events: none;\n"])));
7716
- var ObjectDetectionDebugOverlayDiv = styled.div(_templateObject2$O || (_templateObject2$O = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 1001;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n max-width: 100%;\n max-height: 100%;\n overflow: hidden;\n pointer-events: none;\n ", "\n transform-style: preserve-3d;\n"])), function (_ref3) {
7751
+ var ObjectDetectionDebugOverlayDiv = styled.div(_templateObject2$P || (_templateObject2$P = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 1001;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n max-width: 100%;\n max-height: 100%;\n overflow: hidden;\n pointer-events: none;\n ", "\n transform-style: preserve-3d;\n"])), function (_ref3) {
7717
7752
  var $flipX = _ref3.$flipX;
7718
7753
  return $flipX ? 'transform: scaleX(-1);' : '';
7719
7754
  });
@@ -7958,7 +7993,7 @@ function SelfieCaptureFaceMesh(_ref15) {
7958
7993
  groups.forEach(function (indices, color) {
7959
7994
  ctx.fillStyle = color;
7960
7995
  ctx.beginPath();
7961
- for (var _iterator = _createForOfIteratorHelperLoose$r(indices), _step; !(_step = _iterator()).done;) {
7996
+ for (var _iterator = _createForOfIteratorHelperLoose$s(indices), _step; !(_step = _iterator()).done;) {
7962
7997
  var _i = _step.value;
7963
7998
  var p = meshLandmarks[_i];
7964
7999
  ctx.moveTo(p.x + dotRadius, p.y);
@@ -8140,7 +8175,7 @@ var EdgeStrip = styled.div(_templateObject$Y || (_templateObject$Y = _taggedTemp
8140
8175
  });
8141
8176
 
8142
8177
  var _templateObject$X;
8143
- var _excluded$h = ["children", "className", "colors", "disabled", "finished", "variant"];
8178
+ var _excluded$i = ["children", "className", "colors", "disabled", "finished", "variant"];
8144
8179
  var LoaderButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
8145
8180
  var children = _ref.children,
8146
8181
  className = _ref.className,
@@ -8150,7 +8185,7 @@ var LoaderButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
8150
8185
  finished = _ref.finished,
8151
8186
  _ref$variant = _ref.variant,
8152
8187
  variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
8153
- props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
8188
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
8154
8189
  var buttonRef = useRef(null);
8155
8190
  var laddaRef = useRef(null);
8156
8191
  var _useState = useState(false),
@@ -8215,7 +8250,7 @@ var StyledButton = styled.button(_templateObject$X || (_templateObject$X = _tagg
8215
8250
  var _templateObject$W;
8216
8251
  var ButtonsRow$2 = styled.div(_templateObject$W || (_templateObject$W = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 0 15px;\n justify-content: center;\n text-align: left;\n"])));
8217
8252
 
8218
- var _templateObject$V, _templateObject2$N;
8253
+ var _templateObject$V, _templateObject2$O;
8219
8254
  var GuidanceMessageContainerDiv = styled.div(_templateObject$V || (_templateObject$V = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: calc(", ");\n ", "\n font-weight: bold;\n width: 100%;\n display: flex;\n padding: 0 10%;\n box-sizing: border-box;\n"])), function (_ref) {
8220
8255
  var $top = _ref.$top;
8221
8256
  return $top != null ? $top : '10%';
@@ -8229,7 +8264,7 @@ var GuidanceMessageContainer = function GuidanceMessageContainer(props) {
8229
8264
  if (!portalLocation) return element;
8230
8265
  return /*#__PURE__*/createPortal(element, portalLocation);
8231
8266
  };
8232
- var GuidanceMessage = styled.div(_templateObject2$N || (_templateObject2$N = _taggedTemplateLiteralLoose(["\n margin-left: auto;\n margin-right: auto;\n background: ", ";\n color: ", ";\n border-radius: 8px;\n z-index: 10001;\n padding: 16px 24px;\n font-size: 18px;\n font-weight: bold;\n box-shadow:\n 0 1px 3px 0 rgb(0 0 0 / 0.1),\n 0 1px 2px -1px rgb(0 0 0 / 0.1);\n"])), function (props) {
8267
+ var GuidanceMessage = styled.div(_templateObject2$O || (_templateObject2$O = _taggedTemplateLiteralLoose(["\n margin-left: auto;\n margin-right: auto;\n background: ", ";\n color: ", ";\n border-radius: 8px;\n z-index: 10001;\n padding: 16px 24px;\n font-size: 18px;\n font-weight: bold;\n box-shadow:\n 0 1px 3px 0 rgb(0 0 0 / 0.1),\n 0 1px 2px -1px rgb(0 0 0 / 0.1);\n"])), function (props) {
8233
8268
  var _ref3, _props$$background, _props$theme, _props$$variant;
8234
8269
  return (_ref3 = (_props$$background = props.$background) != null ? _props$$background : (_props$theme = props.theme) == null || (_props$theme = _props$theme.guidanceMessages) == null || (_props$theme = _props$theme[(_props$$variant = props.$variant) != null ? _props$$variant : 'default']) == null ? void 0 : _props$theme.backgroundColor) != null ? _ref3 : 'white';
8235
8270
  }, function (props) {
@@ -8281,19 +8316,19 @@ var PlacedGuidanceMessageContainer = function PlacedGuidanceMessageContainer(_re
8281
8316
  });
8282
8317
  };
8283
8318
 
8284
- var _templateObject$U, _templateObject2$M, _templateObject3$C, _templateObject4$x;
8319
+ var _templateObject$U, _templateObject2$N, _templateObject3$C, _templateObject4$x;
8285
8320
  var wavesAnimation = keyframes(_templateObject$U || (_templateObject$U = _taggedTemplateLiteralLoose(["\n 0% {\n opacity: 0;\n transform: scale3d(1, 1, 1);\n }\n 80% {\n opacity: 1;\n }\n 100% {\n transform: scale3d(2, 2, 1);\n opacity: 0;\n }\n"])));
8286
- var progressBarAnimation = keyframes(_templateObject2$M || (_templateObject2$M = _taggedTemplateLiteralLoose(["\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n"])));
8321
+ var progressBarAnimation = keyframes(_templateObject2$N || (_templateObject2$N = _taggedTemplateLiteralLoose(["\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n"])));
8287
8322
  keyframes(_templateObject3$C || (_templateObject3$C = _taggedTemplateLiteralLoose(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"])));
8288
8323
  keyframes(_templateObject4$x || (_templateObject4$x = _taggedTemplateLiteralLoose(["\n to {\n stroke-dashoffset: 0;\n }\n"])));
8289
8324
 
8290
- var _templateObject$T, _templateObject2$L, _templateObject3$B, _templateObject4$w, _templateObject5$s, _templateObject6$k, _templateObject7$h, _templateObject8$d, _templateObject9$d, _templateObject0$b, _templateObject1$a, _templateObject10$a, _templateObject11$7, _templateObject12$6, _templateObject13$6, _templateObject14$6, _templateObject15$5, _templateObject16$4, _templateObject17$3, _templateObject18$3, _templateObject19$3, _templateObject20$3;
8325
+ var _templateObject$T, _templateObject2$M, _templateObject3$B, _templateObject4$w, _templateObject5$s, _templateObject6$k, _templateObject7$h, _templateObject8$d, _templateObject9$d, _templateObject0$b, _templateObject1$a, _templateObject10$a, _templateObject11$7, _templateObject12$6, _templateObject13$6, _templateObject14$6, _templateObject15$5, _templateObject16$4, _templateObject17$3, _templateObject18$3, _templateObject19$3, _templateObject20$3;
8291
8326
  var OverlayContainer = styled.div(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n\n display: flex;\n flex-direction: column;\n\n overflow-x: hidden;\n overflow-y: auto;\n\n background: ", ";\n ", "\n\n z-index: 10000;\n"])), function (props) {
8292
8327
  return props.theme.background ? "" + props.theme.background : "white";
8293
8328
  }, function (props) {
8294
8329
  return props.theme.textColor ? "color: " + props.theme.textColor + ";" : "";
8295
8330
  });
8296
- var OverlayInner$2 = styled.div(_templateObject2$L || (_templateObject2$L = _taggedTemplateLiteralLoose(["\n text-align: ", ";\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n width: 100%;\n height: 100%;\n ", "\n"])), function (props) {
8331
+ var OverlayInner$2 = styled.div(_templateObject2$M || (_templateObject2$M = _taggedTemplateLiteralLoose(["\n text-align: ", ";\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n width: 100%;\n height: 100%;\n ", "\n"])), function (props) {
8297
8332
  var _props$theme$textAlig;
8298
8333
  return (_props$theme$textAlig = props.theme.textAlign) != null ? _props$theme$textAlig : 'center';
8299
8334
  }, function (props) {
@@ -8461,15 +8496,15 @@ var error = function error() {
8461
8496
  return (console.error ).apply(void 0, arguments);
8462
8497
  }; // eslint-disable-line no-console
8463
8498
 
8464
- var _excluded$g = ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress", "guideBoxDisabled"],
8499
+ var _excluded$h = ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress", "guideBoxDisabled"],
8465
8500
  _excluded2$5 = ["borderRadius", "borderColor", "borderWidth", "borderOpacity", "progress", "isProgressBar", "scaleBorderRadius"];
8466
- var _templateObject$S, _templateObject2$K, _templateObject3$A, _templateObject4$v, _templateObject5$r, _templateObject6$j, _templateObject7$g;
8501
+ var _templateObject$S, _templateObject2$L, _templateObject3$A, _templateObject4$v, _templateObject5$r, _templateObject6$j, _templateObject7$g;
8467
8502
  var IdCardGuideImageContainer = styled(IdCardBorder)(_templateObject$S || (_templateObject$S = _taggedTemplateLiteralLoose(["\n position: relative;\n ", "\n box-sizing: border-box;\n max-width: 100%;\n max-height: 100%;\n ", ";\n"])), function (props) {
8468
8503
  return props.$isVisible ? '' : 'opacity: 0;';
8469
8504
  }, function (props) {
8470
8505
  return props.$isMobile ? props.$isLandscape ? 'height: 100%;' : 'width: 80%;' : props.$isLandscape ? 'height: 70%;' : 'width: 82%;';
8471
8506
  });
8472
- var IdCardGuideImage = styled.img(_templateObject2$K || (_templateObject2$K = _taggedTemplateLiteralLoose(["\n max-height: 100%;\n transform-style: preserve-3d;\n ", "\n ", "\n"])), function (props) {
8507
+ var IdCardGuideImage = styled.img(_templateObject2$L || (_templateObject2$L = _taggedTemplateLiteralLoose(["\n max-height: 100%;\n transform-style: preserve-3d;\n ", "\n ", "\n"])), function (props) {
8473
8508
  return props.$isMirrored ? 'transform: scaleX(-1);' : '';
8474
8509
  }, function (props) {
8475
8510
  return props.$isInvisible ? 'opacity: 0;' : '';
@@ -8491,7 +8526,7 @@ function IdCardBorder(_ref) {
8491
8526
  progress = _ref$progress === void 0 ? 0 : _ref$progress,
8492
8527
  _ref$guideBoxDisabled = _ref.guideBoxDisabled,
8493
8528
  guideBoxDisabled = _ref$guideBoxDisabled === void 0 ? false : _ref$guideBoxDisabled,
8494
- props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
8529
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
8495
8530
  var _useResizeObserver = useResizeObserver(),
8496
8531
  ref = _useResizeObserver.ref,
8497
8532
  _useResizeObserver$wi = _useResizeObserver.width,
@@ -8861,7 +8896,7 @@ var Wrapper$1 = styled.div(_templateObject$R || (_templateObject$R = _taggedTemp
8861
8896
  return props.$isMobile ? props.$isLandscape ? 'height: 100%;' : 'width: 80%;' : props.$isLandscape ? 'height: 70%;' : 'width: 82%;';
8862
8897
  });
8863
8898
 
8864
- var _templateObject$Q, _templateObject2$J, _templateObject3$z, _templateObject4$u, _templateObject5$q, _templateObject6$i, _templateObject7$f, _templateObject8$c, _templateObject9$c;
8899
+ var _templateObject$Q, _templateObject2$K, _templateObject3$z, _templateObject4$u, _templateObject5$q, _templateObject6$i, _templateObject7$f, _templateObject8$c, _templateObject9$c;
8865
8900
  var IdCaptureGuideOverlay = function IdCaptureGuideOverlay(_ref) {
8866
8901
  var _theme$idCapture$guid, _theme$idCapture, _theme$idCapture$guid2, _theme$idCapture2, _theme$idCapture$guid3, _theme$idCapture3, _theme$idCapture$guid4, _theme$idCapture4, _theme$idCapture$guid5, _theme$idCapture5;
8867
8902
  var _ref$classNames = _ref.classNames,
@@ -9018,7 +9053,7 @@ var regionClsx = function regionClsx(classNames, which) {
9018
9053
  }).join(' ');
9019
9054
  };
9020
9055
  var StyledPageContainer = styled.div(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteralLoose(["\n position: relative;\n width: 100%;\n height: 100%;\n z-index: 1000;\n overflow: hidden;\n"])));
9021
- var GuidesContainer = styled.div(_templateObject2$J || (_templateObject2$J = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-flow: column nowrap;\n width: 100%;\n height: 100%;\n"])));
9056
+ var GuidesContainer = styled.div(_templateObject2$K || (_templateObject2$K = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-flow: column nowrap;\n width: 100%;\n height: 100%;\n"])));
9022
9057
  var GuideCenterRow = styled.div(_templateObject3$z || (_templateObject3$z = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n justify-items: center;\n box-sizing: border-box;\n max-width: 100%;\n max-height: 100%;\n min-height: 0;\n flex: 1;\n"])));
9023
9058
  var GuideRegion = styled.div(_templateObject4$u || (_templateObject4$u = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: end;\n width: 100%;\n position: relative;\n z-index: 1000;\n background: ", ";\n color: ", ";\n text-align: center;\n ", "\n ", "\n"])), function (props) {
9024
9059
  var _ref2, _props$$maskColor, _props$theme;
@@ -9050,7 +9085,7 @@ var GuideCenterInner = styled.div(_templateObject9$c || (_templateObject9$c = _t
9050
9085
  /** The mask colour when neither the prop nor the theme sets one. */
9051
9086
  var OVERLAY_GUIDE_MASK_DEFAULT = 'rgba(0, 0, 0, 0.5)';
9052
9087
 
9053
- var _templateObject$P, _templateObject2$I, _templateObject3$y, _templateObject4$t;
9088
+ var _templateObject$P, _templateObject2$J, _templateObject3$y, _templateObject4$t;
9054
9089
  var IdCaptureFitGuide = function IdCaptureFitGuide(_ref) {
9055
9090
  var _theme$idCapture$guid, _theme$idCapture, _theme$idCapture$guid5, _theme$idCapture5, _theme$idCapture$guid6, _theme$idCapture6, _theme$idCapture$guid7, _theme$idCapture7;
9056
9091
  var aspectRatio = _ref.aspectRatio,
@@ -9290,7 +9325,7 @@ var IdCaptureFitGuide = function IdCaptureFitGuide(_ref) {
9290
9325
  var CanvasWrapper$1 = styled.div(_templateObject$P || (_templateObject$P = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n flex-grow: 1;\n background-clip: padding-box;\n /* The default -1 puts the mask behind a 'fullscreen' camera feed, which hides\n the dimming entirely; it only works because 'snapToGuides' clips the feed to\n the guide rect. Lifting it is opt-in so existing integrations are untouched. */\n ", "\n"])), function (props) {
9291
9326
  return props.$aboveCameraFeed ? "z-index: 1;" : "box-shadow: inset 0 0 0 2px " + props.$maskColor + ";\n z-index: -1;";
9292
9327
  });
9293
- var Canvas$2 = styled.canvas(_templateObject2$I || (_templateObject2$I = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
9328
+ var Canvas$2 = styled.canvas(_templateObject2$J || (_templateObject2$J = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
9294
9329
  var CaptureAreaProgress = styled.div(_templateObject3$y || (_templateObject3$y = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: ", "px;\n top: ", "px;\n width: ", "px;\n height: ", "px;\n pointer-events: none;\n"])), function (props) {
9295
9330
  return props.$x;
9296
9331
  }, function (props) {
@@ -9369,7 +9404,7 @@ var ExitCaptureButton = function ExitCaptureButton(_ref) {
9369
9404
  });
9370
9405
  };
9371
9406
 
9372
- var _templateObject$N, _templateObject2$H, _templateObject3$x, _templateObject4$s;
9407
+ var _templateObject$N, _templateObject2$I, _templateObject3$x, _templateObject4$s;
9373
9408
  function IdCaptureLoadingGraphic(props) {
9374
9409
  var isMobile = window.innerHeight > window.innerWidth;
9375
9410
  return isMobile ? jsx(IdCaptureLoadingGraphicMobile, _extends({}, props)) : jsx(IdCaptureLoadingGraphicDesktop, _extends({}, props));
@@ -9867,7 +9902,7 @@ function IdCaptureLoadingGraphicMobile(_ref2) {
9867
9902
  });
9868
9903
  }
9869
9904
  var LoadingGraphicWrapper = styled.div(_templateObject$N || (_templateObject$N = _taggedTemplateLiteralLoose(["\n display: flex;\n width: 100%;\n height: 100%;\n"])));
9870
- var LoadingGraphicSvg = styled.svg(_templateObject2$H || (_templateObject2$H = _taggedTemplateLiteralLoose(["\n margin: auto;\n transform: scale(\n ", "\n );\n transform-style: preserve-3d;\n transition:\n transform 0.2s linear,\n border-width 0.2s linear;\n border: ", "px solid\n ", ";\n max-height: 80%;\n max-width: 80%;\n"])), function (props) {
9905
+ var LoadingGraphicSvg = styled.svg(_templateObject2$I || (_templateObject2$I = _taggedTemplateLiteralLoose(["\n margin: auto;\n transform: scale(\n ", "\n );\n transform-style: preserve-3d;\n transition:\n transform 0.2s linear,\n border-width 0.2s linear;\n border: ", "px solid\n ", ";\n max-height: 80%;\n max-width: 80%;\n"])), function (props) {
9871
9906
  return props.$frame > 1 ? 1 : props.$frame === 1 ? 1.25 : 0.75;
9872
9907
  }, function (props) {
9873
9908
  return props.$frame >= 5 ? 10 : 0;
@@ -9881,11 +9916,11 @@ var LoadingGraphicPhoneGroup = styled.g(_templateObject4$s || (_templateObject4$
9881
9916
  return props.$offScreen ? '40px' : '0';
9882
9917
  });
9883
9918
 
9884
- var _excluded$f = ["state"];
9919
+ var _excluded$g = ["state"];
9885
9920
  function LoadingListItemIndicator(_ref) {
9886
9921
  var _ref$state = _ref.state,
9887
9922
  state = _ref$state === void 0 ? 'running' : _ref$state,
9888
- svgProps = _objectWithoutPropertiesLoose(_ref, _excluded$f);
9923
+ svgProps = _objectWithoutPropertiesLoose(_ref, _excluded$g);
9889
9924
  return jsx("svg", _extends({
9890
9925
  width: "16",
9891
9926
  height: "16",
@@ -10135,7 +10170,7 @@ function CustomerLoadingSpinner(_ref2) {
10135
10170
  // parent's gap/padding, which would offset the fallback it sits next to.
10136
10171
  var SpinnerSlot = styled.div(_templateObject$M || (_templateObject$M = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n\n &:empty {\n display: contents;\n }\n"])));
10137
10172
 
10138
- var _templateObject$L, _templateObject2$G, _templateObject3$w, _templateObject4$r, _templateObject5$p;
10173
+ var _templateObject$L, _templateObject2$H, _templateObject3$w, _templateObject4$r, _templateObject5$p;
10139
10174
  var legacyInstructionImageUrl$1 = DEFAULT_CDN_URL$1 + "/WebSDK-Instruction-DL-Capture-3-Portrait.png";
10140
10175
  // Module-level so the default `now` prop has a stable identity across
10141
10176
  // renders (it sits in useModelWarmingElapsedMs's effect dependency array).
@@ -10331,7 +10366,7 @@ var OverlayInner$1 = styled(LoadingOverlayInner)(_templateObject$L || (_template
10331
10366
  var _props$theme$idCaptur2, _props$theme2;
10332
10367
  return (_props$theme$idCaptur2 = (_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.idCapture) == null || (_props$theme2 = _props$theme2.loadingOverlay) == null ? void 0 : _props$theme2.textColor) != null ? _props$theme$idCaptur2 : 'black';
10333
10368
  });
10334
- var ButtonsRow$1 = styled(LoadingOverlayButtonsRow)(_templateObject2$G || (_templateObject2$G = _taggedTemplateLiteralLoose(["\n color: ", ";\n ", "\n"])), function (props) {
10369
+ var ButtonsRow$1 = styled(LoadingOverlayButtonsRow)(_templateObject2$H || (_templateObject2$H = _taggedTemplateLiteralLoose(["\n color: ", ";\n ", "\n"])), function (props) {
10335
10370
  var _props$theme$idCaptur3, _props$theme3;
10336
10371
  return (_props$theme$idCaptur3 = (_props$theme3 = props.theme) == null || (_props$theme3 = _props$theme3.idCapture) == null || (_props$theme3 = _props$theme3.loadingOverlay) == null ? void 0 : _props$theme3.progressBarTextColor) != null ? _props$theme$idCaptur3 : 'white';
10337
10372
  }, function (props) {
@@ -10390,9 +10425,9 @@ function loadingOverlayBottomEdgeColor(theme, modelsReady) {
10390
10425
  });
10391
10426
  }
10392
10427
 
10393
- function _createForOfIteratorHelperLoose$q(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$q(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10394
- function _unsupportedIterableToArray$q(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$q(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$q(r, a) : void 0; } }
10395
- function _arrayLikeToArray$q(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
10428
+ function _createForOfIteratorHelperLoose$r(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$r(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10429
+ function _unsupportedIterableToArray$r(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$r(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$r(r, a) : void 0; } }
10430
+ function _arrayLikeToArray$r(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
10396
10431
  var DEFAULT_THRESHOLD = 0.03;
10397
10432
  // Minimum confidence a `'Finger'` detection must clear before it counts
10398
10433
  // toward occlusion. The LiteRT document detector emits low-score
@@ -10443,7 +10478,7 @@ function computeFingerOcclusion(bestDocument, detectedObjects, documentType, thr
10443
10478
  // overlap each other the shared area gets double-counted — that errs
10444
10479
  // toward over-blocking, which is the safer direction for occlusion.
10445
10480
  var totalOverlap = 0;
10446
- for (var _iterator = _createForOfIteratorHelperLoose$q(detectedObjects), _step; !(_step = _iterator()).done;) {
10481
+ for (var _iterator = _createForOfIteratorHelperLoose$r(detectedObjects), _step; !(_step = _iterator()).done;) {
10447
10482
  var obj = _step.value;
10448
10483
  if (obj.label !== 'Finger') continue;
10449
10484
  if (obj.score < MIN_FINGER_SCORE) continue;
@@ -10475,7 +10510,7 @@ function anyOverlapByLabel(bestDocument, detectedObjects, label, minScore) {
10475
10510
  if (!bestDocument) return false;
10476
10511
  var docBox = bestDocument.box;
10477
10512
  if (docBox.width <= 0 || docBox.height <= 0) return false;
10478
- for (var _iterator2 = _createForOfIteratorHelperLoose$q(detectedObjects), _step2; !(_step2 = _iterator2()).done;) {
10513
+ for (var _iterator2 = _createForOfIteratorHelperLoose$r(detectedObjects), _step2; !(_step2 = _iterator2()).done;) {
10479
10514
  var obj = _step2.value;
10480
10515
  if (obj.label !== label) continue;
10481
10516
  if (obj.score < minScore) continue;
@@ -10651,9 +10686,9 @@ var initialFlowState = {
10651
10686
 
10652
10687
  var CapturedDocumentTypeValues = ['idCardFront', 'idCardBack', 'passport', 'singlePage', 'selfie', 'idFrontIrImage', 'idBackIrImage', 'idFrontUvImage', 'idBackUvImage', 'idBarcodeImage'];
10653
10688
 
10654
- function _createForOfIteratorHelperLoose$p(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$p(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10655
- function _unsupportedIterableToArray$p(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$p(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$p(r, a) : void 0; } }
10656
- function _arrayLikeToArray$p(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
10689
+ function _createForOfIteratorHelperLoose$q(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$q(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10690
+ function _unsupportedIterableToArray$q(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$q(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$q(r, a) : void 0; } }
10691
+ function _arrayLikeToArray$q(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
10657
10692
  // Tuning constants — seeded estimates. Expect on-device tuning against real
10658
10693
  // captures across angles/devices (same posture as the liveness geometry).
10659
10694
  var CONTAINMENT_MIN = 0.8; // fraction of inner box inside the outer box
@@ -10681,7 +10716,7 @@ function containment(inner, outer) {
10681
10716
  }
10682
10717
  function bestByLabel(objs, label) {
10683
10718
  var best = null;
10684
- for (var _iterator = _createForOfIteratorHelperLoose$p(objs), _step; !(_step = _iterator()).done;) {
10719
+ for (var _iterator = _createForOfIteratorHelperLoose$q(objs), _step; !(_step = _iterator()).done;) {
10685
10720
  var o = _step.value;
10686
10721
  if (o.label !== label) continue;
10687
10722
  if (o.score < MIN_BOOKLET_SCORE) continue;
@@ -10856,9 +10891,9 @@ function remainingIdCaptureRequirements(captureRequirement, capturedDocuments, r
10856
10891
  });
10857
10892
  }
10858
10893
 
10859
- function _createForOfIteratorHelperLoose$o(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$o(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10860
- function _unsupportedIterableToArray$o(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$o(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$o(r, a) : void 0; } }
10861
- function _arrayLikeToArray$o(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
10894
+ function _createForOfIteratorHelperLoose$p(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$p(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10895
+ function _unsupportedIterableToArray$p(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$p(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$p(r, a) : void 0; } }
10896
+ function _arrayLikeToArray$p(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
10862
10897
  /**
10863
10898
  * Clears the current frame's verdict (sdk2 idCaptureReducer.ts:367-389). Both
10864
10899
  * of these describe "the last frame we looked at", so they are meaningless —
@@ -10942,7 +10977,7 @@ var _reduceIdCapture = function reduceIdCapture(state, action, now) {
10942
10977
  // from one the user captured -- `documentCaptured` erases the
10943
10978
  // difference by design (see state.ts precapturedDocumentTypes).
10944
10979
  var seeded = [];
10945
- for (var _iterator = _createForOfIteratorHelperLoose$o(CapturedDocumentTypeValues), _step; !(_step = _iterator()).done;) {
10980
+ for (var _iterator = _createForOfIteratorHelperLoose$p(CapturedDocumentTypeValues), _step; !(_step = _iterator()).done;) {
10946
10981
  var k = _step.value;
10947
10982
  var payload = precapturedDocuments[k];
10948
10983
  if (payload) {
@@ -11280,7 +11315,7 @@ var _reduceIdCapture = function reduceIdCapture(state, action, now) {
11280
11315
  case 'documentsCaptured':
11281
11316
  {
11282
11317
  var _newState2 = _extends({}, state);
11283
- for (var _iterator2 = _createForOfIteratorHelperLoose$o(action.payload), _step2; !(_step2 = _iterator2()).done;) {
11318
+ for (var _iterator2 = _createForOfIteratorHelperLoose$p(action.payload), _step2; !(_step2 = _iterator2()).done;) {
11284
11319
  var doc = _step2.value;
11285
11320
  _newState2 = _reduceIdCapture(_newState2, {
11286
11321
  type: 'documentCaptured',
@@ -13482,9 +13517,9 @@ function evaluateIsMobile(nav) {
13482
13517
  return false;
13483
13518
  }
13484
13519
 
13485
- function _createForOfIteratorHelperLoose$n(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$n(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13486
- function _unsupportedIterableToArray$n(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$n(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$n(r, a) : void 0; } }
13487
- function _arrayLikeToArray$n(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13520
+ function _createForOfIteratorHelperLoose$o(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$o(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13521
+ function _unsupportedIterableToArray$o(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$o(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$o(r, a) : void 0; } }
13522
+ function _arrayLikeToArray$o(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13488
13523
  // zxing-js UMD build, self-hosted on the SDK's own CDN (version-pinned) rather
13489
13524
  // than fetched from unpkg. The previous `@latest` URL was both an external
13490
13525
  // dependency and a supply-chain risk — it executed whatever unpkg served as
@@ -14224,7 +14259,7 @@ function _decodePDF() {
14224
14259
  }
14225
14260
  base = _bases[_i];
14226
14261
  log$1("[NativeBarcodeDecoder] Trying fine rotation deskew around " + base.angle + "\xB0...");
14227
- _iterator = _createForOfIteratorHelperLoose$n(FINE_ROTATION_ANGLES);
14262
+ _iterator = _createForOfIteratorHelperLoose$o(FINE_ROTATION_ANGLES);
14228
14263
  case 11:
14229
14264
  if ((_step = _iterator()).done) {
14230
14265
  _context0.next = 14;
@@ -14749,7 +14784,7 @@ function _decodePDF417WithDetails() {
14749
14784
  }
14750
14785
  base = _bases2[_i2];
14751
14786
  log$1("[NativeBarcodeDecoder] Trying fine rotation deskew around " + base.angle + "\xB0 (detailed)...");
14752
- _iterator2 = _createForOfIteratorHelperLoose$n(FINE_ROTATION_ANGLES);
14787
+ _iterator2 = _createForOfIteratorHelperLoose$o(FINE_ROTATION_ANGLES);
14753
14788
  case 12:
14754
14789
  if ((_step2 = _iterator2()).done) {
14755
14790
  _context12.next = 15;
@@ -14868,9 +14903,9 @@ var CaptureAttachError = /*#__PURE__*/function (_Error) {
14868
14903
  return CaptureAttachError;
14869
14904
  }(/*#__PURE__*/_wrapNativeSuper(Error));
14870
14905
 
14871
- function _createForOfIteratorHelperLoose$m(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$m(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
14872
- function _unsupportedIterableToArray$m(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$m(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$m(r, a) : void 0; } }
14873
- function _arrayLikeToArray$m(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14906
+ function _createForOfIteratorHelperLoose$n(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$n(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
14907
+ function _unsupportedIterableToArray$n(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$n(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$n(r, a) : void 0; } }
14908
+ function _arrayLikeToArray$n(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14874
14909
  /**
14875
14910
  * Analyzes barcode readability for a detected document
14876
14911
  * (IdCaptureModelsProvider.tsx:83-199, ported verbatim; the last two
@@ -15331,7 +15366,7 @@ function createDetectionPipeline(opts) {
15331
15366
  });
15332
15367
  if (failed) {
15333
15368
  loadSettled = true;
15334
- for (var _iterator = _createForOfIteratorHelperLoose$m(lifecycleHandles), _step; !(_step = _iterator()).done;) {
15369
+ for (var _iterator = _createForOfIteratorHelperLoose$n(lifecycleHandles), _step; !(_step = _iterator()).done;) {
15335
15370
  var handle = _step.value;
15336
15371
  handle.cancel();
15337
15372
  }
@@ -16617,9 +16652,9 @@ function maybeDataUrlToBase64Sync(url) {
16617
16652
  return dataUrlToBase64Sync(url);
16618
16653
  }
16619
16654
 
16620
- function _createForOfIteratorHelperLoose$l(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$l(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16621
- function _unsupportedIterableToArray$l(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$l(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$l(r, a) : void 0; } }
16622
- function _arrayLikeToArray$l(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
16655
+ function _createForOfIteratorHelperLoose$m(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$m(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16656
+ function _unsupportedIterableToArray$m(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$m(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$m(r, a) : void 0; } }
16657
+ function _arrayLikeToArray$m(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
16623
16658
  // Document types whose capture attempt becomes an upload's `filemetadata`, in
16624
16659
  // write order: `singlePage` after `idCardFront` so it wins `idFrontImage`,
16625
16660
  // exactly as the image does below.
@@ -16709,7 +16744,7 @@ function buildIdCaptureArtifacts(inputs, now) {
16709
16744
  };
16710
16745
  if (ocrMetadata) meta.ocrMetadata = ocrMetadata;
16711
16746
  var documentFileMetadata = {};
16712
- for (var _iterator = _createForOfIteratorHelperLoose$l(FILE_METADATA_KEYS), _step; !(_step = _iterator()).done;) {
16747
+ for (var _iterator = _createForOfIteratorHelperLoose$m(FILE_METADATA_KEYS), _step; !(_step = _iterator()).done;) {
16713
16748
  var _step$value = _slicedToArray(_step.value, 2),
16714
16749
  documentType = _step$value[0],
16715
16750
  documentKey = _step$value[1];
@@ -16736,10 +16771,10 @@ function buildIdCaptureArtifacts(inputs, now) {
16736
16771
  };
16737
16772
  }
16738
16773
 
16739
- var _excluded$e = ["bestBarcodeScore", "barcodeBoundingBox"];
16740
- function _createForOfIteratorHelperLoose$k(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$k(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16741
- function _unsupportedIterableToArray$k(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$k(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$k(r, a) : void 0; } }
16742
- function _arrayLikeToArray$k(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
16774
+ var _excluded$f = ["bestBarcodeScore", "barcodeBoundingBox"];
16775
+ function _createForOfIteratorHelperLoose$l(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$l(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16776
+ function _unsupportedIterableToArray$l(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$l(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$l(r, a) : void 0; } }
16777
+ function _arrayLikeToArray$l(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
16743
16778
  // sdk2/src/components/id_capture/IdCaptureWizard.tsx:253-262
16744
16779
  var lastDocumentDetectedAtDefaults = {
16745
16780
  idCardFront: null,
@@ -16909,7 +16944,7 @@ function createIdCaptureController(config) {
16909
16944
  // payload.ts's buildNoBarcodeOCRMetadata fallback counts).
16910
16945
  var bestBarcodeScore = metadata.bestBarcodeScore,
16911
16946
  barcodeBoundingBox = metadata.barcodeBoundingBox,
16912
- captureAttemptWithoutBarcode = _objectWithoutPropertiesLoose(metadata, _excluded$e);
16947
+ captureAttemptWithoutBarcode = _objectWithoutPropertiesLoose(metadata, _excluded$f);
16913
16948
  captureAttempts.back.push(captureAttemptWithoutBarcode);
16914
16949
  // :619-629 -- appended whenever a barcode score was recorded at all
16915
16950
  // (0 counts: auto-capture stamps `bestBarcodeScore: bestBarcode?.score
@@ -16949,7 +16984,7 @@ function createIdCaptureController(config) {
16949
16984
  }
16950
16985
  }
16951
16986
  function clearAllTimers() {
16952
- for (var _iterator = _createForOfIteratorHelperLoose$k(timers.values()), _step; !(_step = _iterator()).done;) {
16987
+ for (var _iterator = _createForOfIteratorHelperLoose$l(timers.values()), _step; !(_step = _iterator()).done;) {
16953
16988
  var handle = _step.value;
16954
16989
  io.clearTimeout(handle);
16955
16990
  }
@@ -18985,7 +19020,7 @@ function instructionVerbiage(bag, code) {
18985
19020
  return bag == null ? void 0 : bag[instructionVerbiageKeys[code]];
18986
19021
  }
18987
19022
 
18988
- var _templateObject$K, _templateObject2$F, _templateObject3$v, _templateObject4$q, _templateObject5$o;
19023
+ var _templateObject$K, _templateObject2$G, _templateObject3$v, _templateObject4$q, _templateObject5$o;
18989
19024
  var PDF417_ASPECT_RATIO = 3 / 1;
18990
19025
  function BarcodeGuideOverlay(_ref) {
18991
19026
  var _ref$aspectRatio = _ref.aspectRatio,
@@ -19116,14 +19151,14 @@ function BarcodeGuideOverlay(_ref) {
19116
19151
  });
19117
19152
  }
19118
19153
  var Wrapper = styled.div(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n z-index: 1;\n"])));
19119
- var Canvas$1 = styled.canvas(_templateObject2$F || (_templateObject2$F = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n"])));
19154
+ var Canvas$1 = styled.canvas(_templateObject2$G || (_templateObject2$G = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n"])));
19120
19155
  var TextOverlay = styled.div(_templateObject3$v || (_templateObject3$v = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n padding-top: 48px;\n pointer-events: none;\n z-index: 2;\n"])));
19121
19156
  var HeaderText = styled.div(_templateObject4$q || (_templateObject4$q = _taggedTemplateLiteralLoose(["\n color: white;\n font-size: 24px;\n font-weight: 700;\n text-align: center;\n text-transform: uppercase;\n letter-spacing: 2px;\n margin-bottom: 16px;\n"])));
19122
19157
  var InstructionText = styled.div(_templateObject5$o || (_templateObject5$o = _taggedTemplateLiteralLoose(["\n color: white;\n font-size: 16px;\n font-weight: 400;\n text-align: center;\n max-width: 300px;\n line-height: 1.4;\n opacity: 0.9;\n"])));
19123
19158
 
19124
- var _templateObject$J, _templateObject2$E, _templateObject3$u, _templateObject4$p, _templateObject5$n, _templateObject6$h;
19159
+ var _templateObject$J, _templateObject2$F, _templateObject3$u, _templateObject4$p, _templateObject5$n, _templateObject6$h;
19125
19160
  var scaleIn = keyframes(_templateObject$J || (_templateObject$J = _taggedTemplateLiteralLoose(["\n 0% {\n transform: scale(0);\n opacity: 0;\n }\n 50% {\n transform: scale(1.1);\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n"])));
19126
- var drawCheck = keyframes(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n 0% {\n stroke-dashoffset: 24;\n }\n 100% {\n stroke-dashoffset: 0;\n }\n"])));
19161
+ var drawCheck = keyframes(_templateObject2$F || (_templateObject2$F = _taggedTemplateLiteralLoose(["\n 0% {\n stroke-dashoffset: 24;\n }\n 100% {\n stroke-dashoffset: 0;\n }\n"])));
19127
19162
  styled.div(_templateObject3$u || (_templateObject3$u = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: none;\n z-index: 3;\n"])));
19128
19163
  styled.div(_templateObject4$p || (_templateObject4$p = _taggedTemplateLiteralLoose(["\n width: 80px;\n height: 80px;\n border-radius: 50%;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n animation: ", " 0.4s ease-out forwards;\n"])), function (props) {
19129
19164
  return props.$color;
@@ -19223,7 +19258,7 @@ function IdCaptureGuides(_ref) {
19223
19258
  });
19224
19259
  }
19225
19260
 
19226
- var _templateObject$I, _templateObject2$D, _templateObject3$t, _templateObject4$o, _templateObject5$m;
19261
+ var _templateObject$I, _templateObject2$E, _templateObject3$t, _templateObject4$o, _templateObject5$m;
19227
19262
  function OverrideWrongDocumentTypeDialog(_ref) {
19228
19263
  var visible = _ref.visible,
19229
19264
  onOverride = _ref.onOverride,
@@ -19262,7 +19297,7 @@ var Container$3 = styled.div(_templateObject$I || (_templateObject$I = _taggedTe
19262
19297
  var _props$theme$idCaptur3, _props$theme$idCaptur4;
19263
19298
  return (_props$theme$idCaptur3 = (_props$theme$idCaptur4 = props.theme.idCapture) == null || (_props$theme$idCaptur4 = _props$theme$idCaptur4.overrideWrongDocumentTypeGuidance) == null ? void 0 : _props$theme$idCaptur4.textColor) != null ? _props$theme$idCaptur3 : 'black';
19264
19299
  });
19265
- var InnerContainer = styled.div(_templateObject2$D || (_templateObject2$D = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n padding: 16px 24px;\n margin: auto 0;\n width: 100%;\n"])));
19300
+ var InnerContainer = styled.div(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n padding: 16px 24px;\n margin: auto 0;\n width: 100%;\n"])));
19266
19301
  var Message = styled.span(_templateObject3$t || (_templateObject3$t = _taggedTemplateLiteralLoose(["\n display: block;\n margin: auto 12px auto 0;\n"])));
19267
19302
  var ButtonContainer = styled.div(_templateObject4$o || (_templateObject4$o = _taggedTemplateLiteralLoose(["\n display: flex;\n margin-left: auto;\n"])));
19268
19303
  var Button = styled(LoaderButton)(_templateObject5$m || (_templateObject5$m = _taggedTemplateLiteralLoose(["\n white-space: nowrap;\n margin: auto;\n"])));
@@ -19372,7 +19407,7 @@ var IdCaptureLoadingOverlayLegacy = function IdCaptureLoadingOverlayLegacy(_ref)
19372
19407
  });
19373
19408
  };
19374
19409
 
19375
- var _templateObject$H, _templateObject2$C;
19410
+ var _templateObject$H, _templateObject2$D;
19376
19411
  var RING_SIZE = 74;
19377
19412
  var RADIUS = 32;
19378
19413
  var CIRCUMFERENCE = 2 * Math.PI * RADIUS;
@@ -19418,7 +19453,7 @@ var RingProgress = function RingProgress(_ref) {
19418
19453
  });
19419
19454
  };
19420
19455
  var RingSvg = styled.svg(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose(["\n width: ", "px;\n height: ", "px;\n transform: rotate(-90deg);\n"])), RING_SIZE, RING_SIZE);
19421
- var FillCircle = styled.circle(_templateObject2$C || (_templateObject2$C = _taggedTemplateLiteralLoose(["\n transition: stroke-dashoffset 0.3s linear;\n"])));
19456
+ var FillCircle = styled.circle(_templateObject2$D || (_templateObject2$D = _taggedTemplateLiteralLoose(["\n transition: stroke-dashoffset 0.3s linear;\n"])));
19422
19457
 
19423
19458
  var selectRingStatusKey = function selectRingStatusKey(_ref) {
19424
19459
  var ready = _ref.ready,
@@ -19433,7 +19468,7 @@ var selectRingStatusKey = function selectRingStatusKey(_ref) {
19433
19468
  return 'warming';
19434
19469
  };
19435
19470
 
19436
- var _templateObject$G, _templateObject2$B, _templateObject3$s, _templateObject4$n, _templateObject5$l, _templateObject6$g, _templateObject7$e, _templateObject8$b, _templateObject9$b, _templateObject0$a, _templateObject1$9, _templateObject10$9;
19471
+ var _templateObject$G, _templateObject2$C, _templateObject3$s, _templateObject4$n, _templateObject5$l, _templateObject6$g, _templateObject7$e, _templateObject8$b, _templateObject9$b, _templateObject0$a, _templateObject1$9, _templateObject10$9;
19437
19472
  /**
19438
19473
  * The ring overlay's priming cover page (CEO prototype `#v-prime`): camera
19439
19474
  * badge, title/subtitle, step chips, reassurance chip, "Enable camera &
@@ -19513,7 +19548,7 @@ var RingIntroScreen = function RingIntroScreen(_ref) {
19513
19548
  });
19514
19549
  };
19515
19550
  var _float = keyframes(_templateObject$G || (_templateObject$G = _taggedTemplateLiteralLoose(["\n 0%, 100% { transform: translateY(0); }\n 50% { transform: translateY(-7px); }\n"])));
19516
- var sweep = keyframes(_templateObject2$B || (_templateObject2$B = _taggedTemplateLiteralLoose(["\n from { transform: translateX(-100%); }\n to { transform: translateX(100%); }\n"])));
19551
+ var sweep = keyframes(_templateObject2$C || (_templateObject2$C = _taggedTemplateLiteralLoose(["\n from { transform: translateX(-100%); }\n to { transform: translateX(100%); }\n"])));
19517
19552
  var IntroLayout = styled.div(_templateObject3$s || (_templateObject3$s = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 14px;\n padding: 34px;\n text-align: center;\n"])));
19518
19553
  var Badge = styled.div(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n width: 84px;\n height: 84px;\n border-radius: 28px;\n background: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n box-shadow: 0 12px 28px\n color-mix(in srgb, ", " 35%, transparent);\n margin-bottom: 8px;\n animation: ", " 3s ease-in-out infinite;\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n\n svg {\n width: 40px;\n height: 40px;\n fill: #ffffff;\n }\n"])), function (props) {
19519
19554
  return props.$color;
@@ -19563,7 +19598,7 @@ var selectRingOverlayStage = function selectRingOverlayStage(_ref) {
19563
19598
  return requesting ? 'requesting' : 'intro';
19564
19599
  };
19565
19600
 
19566
- var _templateObject$F, _templateObject2$A, _templateObject3$r, _templateObject4$m, _templateObject5$k, _templateObject6$f, _templateObject7$d, _templateObject8$a, _templateObject9$a, _templateObject0$9, _templateObject1$8, _templateObject10$8, _templateObject11$6, _templateObject12$5, _templateObject13$5, _templateObject14$5, _templateObject15$4;
19601
+ var _templateObject$F, _templateObject2$B, _templateObject3$r, _templateObject4$m, _templateObject5$k, _templateObject6$f, _templateObject7$d, _templateObject8$a, _templateObject9$a, _templateObject0$9, _templateObject1$8, _templateObject10$8, _templateObject11$6, _templateObject12$5, _templateObject13$5, _templateObject14$5, _templateObject15$4;
19567
19602
  /** Minimum time a stage handoff stays on screen so its message is
19568
19603
  * legible even when everything preloaded and readiness is instant. */
19569
19604
  var STAGE_TRANSITION_HOLD_MS = 1600;
@@ -19623,7 +19658,7 @@ var RingStageTransition = function RingStageTransition(_ref) {
19623
19658
  });
19624
19659
  };
19625
19660
  var badgePop = keyframes(_templateObject$F || (_templateObject$F = _taggedTemplateLiteralLoose(["\n 0% { transform: scale(0.4); opacity: 0; }\n 60% { transform: scale(1.08); opacity: 1; }\n 100% { transform: scale(1); opacity: 1; }\n"])));
19626
- var cardFlip = keyframes(_templateObject2$A || (_templateObject2$A = _taggedTemplateLiteralLoose(["\n from { transform: rotateY(0deg); }\n to { transform: rotateY(180deg); }\n"])));
19661
+ var cardFlip = keyframes(_templateObject2$B || (_templateObject2$B = _taggedTemplateLiteralLoose(["\n from { transform: rotateY(0deg); }\n to { transform: rotateY(180deg); }\n"])));
19627
19662
  var microcopyBeat = keyframes(_templateObject3$r || (_templateObject3$r = _taggedTemplateLiteralLoose(["\n 0% { opacity: 0; transform: translateY(6px); }\n 18% { opacity: 1; transform: translateY(0); }\n 60% { opacity: 1; transform: translateY(0); }\n 80% { opacity: 0; transform: translateY(-6px); }\n 100% { opacity: 0; }\n"])));
19628
19663
  var rise = keyframes(_templateObject4$m || (_templateObject4$m = _taggedTemplateLiteralLoose(["\n from { opacity: 0; transform: translateY(8px); }\n to { opacity: 1; transform: translateY(0); }\n"])));
19629
19664
  var riseSubtle = keyframes(_templateObject5$k || (_templateObject5$k = _taggedTemplateLiteralLoose(["\n from { opacity: 0; transform: translateY(8px); }\n to { opacity: 0.65; transform: translateY(0); }\n"])));
@@ -19654,7 +19689,7 @@ var LoadingRow = styled.div(_templateObject15$4 || (_templateObject15$4 = _tagge
19654
19689
  return props.$visible ? 1 : 0;
19655
19690
  });
19656
19691
 
19657
- var _templateObject$E, _templateObject2$z, _templateObject3$q, _templateObject4$l, _templateObject5$j, _templateObject6$e, _templateObject7$c;
19692
+ var _templateObject$E, _templateObject2$A, _templateObject3$q, _templateObject4$l, _templateObject5$j, _templateObject6$e, _templateObject7$c;
19658
19693
  // Module-level so the default `now` prop has a stable identity across
19659
19694
  // renders (it sits in useModelWarmingElapsedMs's effect dependency array).
19660
19695
  var defaultNow$2 = function defaultNow() {
@@ -19929,7 +19964,7 @@ var IdCaptureLoadingOverlayRing = function IdCaptureLoadingOverlayRing(_ref) {
19929
19964
  });
19930
19965
  };
19931
19966
  var overlayFadeIn$1 = keyframes(_templateObject$E || (_templateObject$E = _taggedTemplateLiteralLoose(["\n from { opacity: 0; }\n to { opacity: 1; }\n"])));
19932
- var RingOverlayInner$1 = styled(LoadingOverlayInner)(_templateObject2$z || (_templateObject2$z = _taggedTemplateLiteralLoose(["\n background: ", ";\n color: ", ";\n ", "\n"])), function (props) {
19967
+ var RingOverlayInner$1 = styled(LoadingOverlayInner)(_templateObject2$A || (_templateObject2$A = _taggedTemplateLiteralLoose(["\n background: ", ";\n color: ", ";\n ", "\n"])), function (props) {
19933
19968
  var _props$theme$idCaptur, _props$theme;
19934
19969
  var tintBase = (_props$theme$idCaptur = (_props$theme = props.theme) == null || (_props$theme = _props$theme.idCapture) == null || (_props$theme = _props$theme.loadingOverlay) == null ? void 0 : _props$theme.backgroundColor) != null ? _props$theme$idCaptur : 'var(--idm-color-primary-500)';
19935
19970
  return "linear-gradient(180deg, #ffffff, color-mix(in srgb, " + tintBase + " 45%, #ffffff))";
@@ -19956,7 +19991,7 @@ var ContinueButton$2 = styled(LoaderButton)(_templateObject7$c || (_templateObje
19956
19991
  return (_props$theme$idCaptur5 = (_props$theme7 = props.theme) == null || (_props$theme7 = _props$theme7.idCapture) == null || (_props$theme7 = _props$theme7.loadingOverlay) == null ? void 0 : _props$theme7.continueBtnDisabledBorder) != null ? _props$theme$idCaptur5 : 'none';
19957
19992
  });
19958
19993
 
19959
- var _excluded$d = ["mode"];
19994
+ var _excluded$e = ["mode"];
19960
19995
  var components$1 = {
19961
19996
  "default": IdCaptureLoadingOverlayDefault,
19962
19997
  legacy: IdCaptureLoadingOverlayLegacy,
@@ -19966,7 +20001,7 @@ var IdCaptureLoadingOverlay = function IdCaptureLoadingOverlay(_ref) {
19966
20001
  var _components$mode;
19967
20002
  var _ref$mode = _ref.mode,
19968
20003
  mode = _ref$mode === void 0 ? 'default' : _ref$mode,
19969
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
20004
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
19970
20005
  var Component = (_components$mode = components$1[mode]) != null ? _components$mode : components$1["default"];
19971
20006
  return jsx(Component, _extends({}, props));
19972
20007
  };
@@ -20033,11 +20068,11 @@ var CapturedDocumentImg = function CapturedDocumentImg(_ref) {
20033
20068
  });
20034
20069
  };
20035
20070
 
20036
- var _templateObject$D, _templateObject2$y;
20071
+ var _templateObject$D, _templateObject2$z;
20037
20072
  var Card = styled.div(_templateObject$D || (_templateObject$D = _taggedTemplateLiteralLoose(["\n background: white;\n border-radius: 8px;\n padding: 24px;\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);\n margin: auto;\n max-width: min(500px, 100% - 48px);\n max-height: 100%;\n overflow: auto;\n box-sizing: border-box;\n"])));
20038
- var FlexCard = styled(Card)(_templateObject2$y || (_templateObject2$y = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n"])));
20073
+ var FlexCard = styled(Card)(_templateObject2$z || (_templateObject2$z = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n"])));
20039
20074
 
20040
- var _templateObject$C, _templateObject2$x, _templateObject3$p, _templateObject4$k, _templateObject5$i, _templateObject6$d, _templateObject7$b, _templateObject8$9, _templateObject9$9, _templateObject0$8, _templateObject1$7, _templateObject10$7, _templateObject11$5, _templateObject12$4, _templateObject13$4, _templateObject14$4, _templateObject15$3, _templateObject16$3, _templateObject17$2, _templateObject18$2, _templateObject19$2, _templateObject20$2, _templateObject21$2, _templateObject22$2, _templateObject23$2, _templateObject24$1, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44;
20075
+ var _templateObject$C, _templateObject2$y, _templateObject3$p, _templateObject4$k, _templateObject5$i, _templateObject6$d, _templateObject7$b, _templateObject8$9, _templateObject9$9, _templateObject0$8, _templateObject1$7, _templateObject10$7, _templateObject11$5, _templateObject12$4, _templateObject13$4, _templateObject14$4, _templateObject15$3, _templateObject16$3, _templateObject17$2, _templateObject18$2, _templateObject19$2, _templateObject20$2, _templateObject21$2, _templateObject22$2, _templateObject23$2, _templateObject24$1, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44;
20041
20076
  function ReviewDocumentDiagnostics(_ref) {
20042
20077
  var _document$detectionSc, _document$detectionSc2, _document$focusScore, _document$focusScore2;
20043
20078
  var document = _ref.document,
@@ -20497,7 +20532,7 @@ function RotationAttemptRow(_ref3) {
20497
20532
  });
20498
20533
  }
20499
20534
  var DebugInfoContainer = styled.div(_templateObject$C || (_templateObject$C = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 0.375rem;\n margin-top: 0.5rem;\n margin-bottom: 1rem;\n padding: 0.625rem;\n background: #f8f9fa;\n border-radius: 6px;\n border: 1px solid #e9ecef;\n font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n font-size: 0.8125rem;\n line-height: 1.35;\n text-align: left;\n"])));
20500
- var DebugSection = styled.div(_templateObject2$x || (_templateObject2$x = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.5rem;\n margin: 0;\n"])));
20535
+ var DebugSection = styled.div(_templateObject2$y || (_templateObject2$y = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.5rem;\n margin: 0;\n"])));
20501
20536
  var DebugLabel = styled.span(_templateObject3$p || (_templateObject3$p = _taggedTemplateLiteralLoose(["\n width: 110px;\n flex-shrink: 0;\n color: #495057;\n font-size: 0.8125rem;\n font-weight: 600;\n"])));
20502
20537
  var DebugValue = styled.span(_templateObject4$k || (_templateObject4$k = _taggedTemplateLiteralLoose(["\n color: #212529;\n font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n font-size: 0.8125rem;\n"])));
20503
20538
  var ScoreBadge = styled.span(_templateObject5$i || (_templateObject5$i = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n padding: 0.1875rem 0.5rem;\n border: 1px solid\n ", ";\n border-radius: 4px;\n background: ", ";\n color: ", ";\n font-size: 0.75rem;\n font-weight: 600;\n"])), function (_ref4) {
@@ -20612,7 +20647,7 @@ var DiagnosticsBadge = styled.span(_templateObject44 || (_templateObject44 = _ta
20612
20647
  return $highlight ? '#004085' : $ok ? '#155724' : '#721c24';
20613
20648
  });
20614
20649
 
20615
- var _templateObject$B, _templateObject2$w, _templateObject3$o, _templateObject4$j, _templateObject5$h;
20650
+ var _templateObject$B, _templateObject2$x, _templateObject3$o, _templateObject4$j, _templateObject5$h;
20616
20651
  var imageDisplayOrder = ['idCardFront', 'idCardBack', 'idBarcodeImage', 'passport', 'singlePage', 'idFrontIrImage', 'idBackIrImage', 'idFrontUvImage', 'idBackUvImage'];
20617
20652
  var ReviewScreen = function ReviewScreen(_ref) {
20618
20653
  var capturedDocuments = _ref.capturedDocuments,
@@ -20700,12 +20735,12 @@ var ReviewScreen = function ReviewScreen(_ref) {
20700
20735
  });
20701
20736
  };
20702
20737
  var Heading$9 = styled.h1(_templateObject$B || (_templateObject$B = _taggedTemplateLiteralLoose(["\n font-size: 1.5rem;\n margin-top: 0;\n margin-bottom: 1.5rem;\n"])));
20703
- var ImagesContainer = styled(OverlayImageContainer)(_templateObject2$w || (_templateObject2$w = _taggedTemplateLiteralLoose(["\n flex-grow: 1;\n overflow-y: auto;\n padding-bottom: 0;\n max-width: 100%;\n"])));
20738
+ var ImagesContainer = styled(OverlayImageContainer)(_templateObject2$x || (_templateObject2$x = _taggedTemplateLiteralLoose(["\n flex-grow: 1;\n overflow-y: auto;\n padding-bottom: 0;\n max-width: 100%;\n"])));
20704
20739
  var ImageRow = styled(OverlayImageRow)(_templateObject3$o || (_templateObject3$o = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n flex-direction: column;\n position: relative;\n width: 100%;\n"])));
20705
20740
  var ImageCol$1 = styled.div(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n width: 450px;\n max-width: 100%;\n max-height: none !important;\n"])));
20706
20741
  var StyledImage = styled(CapturedDocumentImg)(_templateObject5$h || (_templateObject5$h = _taggedTemplateLiteralLoose(["\n width: 100%;\n border-radius: 12px;\n"])));
20707
20742
 
20708
- var _templateObject$A, _templateObject2$v, _templateObject3$n, _templateObject4$i;
20743
+ var _templateObject$A, _templateObject2$w, _templateObject3$n, _templateObject4$i;
20709
20744
  var CameraAccessDeniedOverlay = function CameraAccessDeniedOverlay(_ref) {
20710
20745
  var _assets$imageUrl, _classNames$container;
20711
20746
  var onRetry = _ref.onRetry,
@@ -20765,11 +20800,11 @@ var CameraAccessDeniedOverlay = function CameraAccessDeniedOverlay(_ref) {
20765
20800
  });
20766
20801
  };
20767
20802
  var StyledOverlayInner$2 = styled(OverlayInner$2)(_templateObject$A || (_templateObject$A = _taggedTemplateLiteralLoose(["\n max-width: 500px;\n height: auto;\n margin: auto;\n"])));
20768
- var StyledOverlayImageContainer = styled(OverlayImageContainer)(_templateObject2$v || (_templateObject2$v = _taggedTemplateLiteralLoose(["\n flex-grow: 0;\n"])));
20803
+ var StyledOverlayImageContainer = styled(OverlayImageContainer)(_templateObject2$w || (_templateObject2$w = _taggedTemplateLiteralLoose(["\n flex-grow: 0;\n"])));
20769
20804
  var Description$3 = styled.p(_templateObject3$n || (_templateObject3$n = _taggedTemplateLiteralLoose(["\n line-height: 1.5;\n margin-bottom: 50px;\n"])));
20770
20805
  var RetryButton$1 = styled(LoaderButton)(_templateObject4$i || (_templateObject4$i = _taggedTemplateLiteralLoose(["\n width: 200px;\n margin: 0 auto;\n"])));
20771
20806
 
20772
- var _templateObject$z, _templateObject2$u, _templateObject3$m;
20807
+ var _templateObject$z, _templateObject2$v, _templateObject3$m;
20773
20808
  var ErrorScreen = function ErrorScreen(_ref) {
20774
20809
  var error = _ref.error,
20775
20810
  onRetry = _ref.onRetry,
@@ -20961,7 +20996,7 @@ var cameraFailureClassNames = function cameraFailureClassNames(own, bag) {
20961
20996
  // IdCaptureLoadingOverlayDefault's `theme...textColor ?? 'black'`); do the
20962
20997
  // same here rather than inherit a foreground meant for the dark overlays.
20963
20998
  var ErrorCard = styled(FlexCard)(_templateObject$z || (_templateObject$z = _taggedTemplateLiteralLoose(["\n color: black;\n"])));
20964
- var Heading$8 = styled.h1(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n font-size: 1.5rem;\n margin-top: 0;\n margin-bottom: 1rem;\n"])));
20999
+ var Heading$8 = styled.h1(_templateObject2$v || (_templateObject2$v = _taggedTemplateLiteralLoose(["\n font-size: 1.5rem;\n margin-top: 0;\n margin-bottom: 1rem;\n"])));
20965
21000
  var Description$2 = styled.p(_templateObject3$m || (_templateObject3$m = _taggedTemplateLiteralLoose(["\n line-height: 1.5;\n margin-bottom: 1.5rem;\n"])));
20966
21001
 
20967
21002
  // The one file-read both fallback screens use.
@@ -21003,7 +21038,7 @@ function fallbackCaptureMoreLabelForStep(idCaptureRequirement, idCardBackCapture
21003
21038
  return key === 'third' ? 'ID page of passport' : 'back of ID card';
21004
21039
  }
21005
21040
 
21006
- var _templateObject$y, _templateObject2$t, _templateObject3$l, _templateObject4$h, _templateObject5$g, _templateObject6$c, _templateObject7$a;
21041
+ var _templateObject$y, _templateObject2$u, _templateObject3$l, _templateObject4$h, _templateObject5$g, _templateObject6$c, _templateObject7$a;
21007
21042
  function IdCaptureFallback(_ref) {
21008
21043
  var _ref$captureRequireme = _ref.captureRequirement,
21009
21044
  captureRequirement = _ref$captureRequireme === void 0 ? 'idCardOrPassport' : _ref$captureRequireme,
@@ -21173,14 +21208,14 @@ function IdCaptureFallback(_ref) {
21173
21208
  });
21174
21209
  }
21175
21210
  var StyledOverlayInner$1 = styled(OverlayInner$2)(_templateObject$y || (_templateObject$y = _taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
21176
- var Heading$7 = styled.h3(_templateObject2$t || (_templateObject2$t = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
21211
+ var Heading$7 = styled.h3(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
21177
21212
  var Description$1 = styled.p(_templateObject3$l || (_templateObject3$l = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
21178
21213
  var Instruction = styled.p(_templateObject4$h || (_templateObject4$h = _taggedTemplateLiteralLoose(["\n font-weight: bold;\n"])));
21179
21214
  var ReadFailed$1 = styled.p(_templateObject5$g || (_templateObject5$g = _taggedTemplateLiteralLoose(["\n font-weight: bold;\n"])));
21180
21215
  var ImageCol = styled.div(_templateObject6$c || (_templateObject6$c = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n flex-grow: 1;\n flex-basis: 0;\n"])));
21181
21216
  var StyledButtonsRow$6 = styled(ButtonsRow$2)(_templateObject7$a || (_templateObject7$a = _taggedTemplateLiteralLoose(["\n margin-top: 32px;\n"])));
21182
21217
 
21183
- var _templateObject$x, _templateObject2$s, _templateObject3$k, _templateObject4$g, _templateObject5$f, _templateObject6$b, _templateObject7$9, _templateObject8$8, _templateObject9$8, _templateObject0$7, _templateObject1$6, _templateObject10$6;
21218
+ var _templateObject$x, _templateObject2$t, _templateObject3$k, _templateObject4$g, _templateObject5$f, _templateObject6$b, _templateObject7$9, _templateObject8$8, _templateObject9$8, _templateObject0$7, _templateObject1$6, _templateObject10$6;
21184
21219
  function IdCaptureOrUploadScreen(_ref) {
21185
21220
  var _ref$captureRequireme = _ref.captureRequirement,
21186
21221
  captureRequirement = _ref$captureRequireme === void 0 ? 'idCardOrPassport' : _ref$captureRequireme,
@@ -21431,7 +21466,7 @@ var ScreenContainer = styled.div(_templateObject$x || (_templateObject$x = _tagg
21431
21466
  var _props$theme$backgrou, _props$theme;
21432
21467
  return (_props$theme$backgrou = (_props$theme = props.theme) == null ? void 0 : _props$theme.background) != null ? _props$theme$backgrou : '#fff';
21433
21468
  });
21434
- var ScreenPanel = styled.div(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 12px;\n width: 100%;\n max-width: 320px;\n"])));
21469
+ var ScreenPanel = styled.div(_templateObject2$t || (_templateObject2$t = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 12px;\n width: 100%;\n max-width: 320px;\n"])));
21435
21470
  var DashedSeparator = styled.div(_templateObject3$k || (_templateObject3$k = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n max-width: 320px;\n border-top: 1px dashed currentColor;\n opacity: 0.4;\n"])));
21436
21471
  var OrWrapper = styled.span(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n transform: translateY(-50%);\n padding: 0 8px;\n background: ", ";\n"])), function (props) {
21437
21472
  var _props$theme$backgrou2, _props$theme2;
@@ -21549,9 +21584,9 @@ function useSessionReady() {
21549
21584
  }
21550
21585
 
21551
21586
  var _templateObject$w;
21552
- function _createForOfIteratorHelperLoose$j(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$j(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
21553
- function _unsupportedIterableToArray$j(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$j(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$j(r, a) : void 0; } }
21554
- function _arrayLikeToArray$j(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
21587
+ function _createForOfIteratorHelperLoose$k(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$k(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
21588
+ function _unsupportedIterableToArray$k(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$k(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$k(r, a) : void 0; } }
21589
+ function _arrayLikeToArray$k(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
21555
21590
  // Unlike SelfieCaptureView/FaceLivenessView, this view has no root
21556
21591
  // container of its own -- ScalingCameraFeed/IdCaptureGuides/etc. render as
21557
21592
  // siblings relying on whatever positioned ancestor the host page provides.
@@ -21819,7 +21854,7 @@ function IdCaptureViewContent(_ref) {
21819
21854
  // after this effect first runs with an empty state). Folding it in here,
21820
21855
  // rather than seeding once on mount, is what makes the skip actually
21821
21856
  // apply. `seen` keeps a consumed exclusion from being re-armed.
21822
- for (var _iterator = _createForOfIteratorHelperLoose$j(state.precapturedDocumentTypes), _step; !(_step = _iterator()).done;) {
21857
+ for (var _iterator = _createForOfIteratorHelperLoose$k(state.precapturedDocumentTypes), _step; !(_step = _iterator()).done;) {
21823
21858
  var _documentType = _step.value;
21824
21859
  if (seenPrecapturedRef.current.has(_documentType)) continue;
21825
21860
  seenPrecapturedRef.current.add(_documentType);
@@ -23195,9 +23230,9 @@ function guidanceFor(state, prediction, at) {
23195
23230
  return code === SelfieGuidanceCode.HOLD_STILL && handOverFaceHeld(state.handOverFaceAt, at) ? SelfieGuidanceCode.HAND_OVER_FACE : code;
23196
23231
  }
23197
23232
 
23198
- function _createForOfIteratorHelperLoose$i(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$i(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
23199
- function _unsupportedIterableToArray$i(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$i(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$i(r, a) : void 0; } }
23200
- function _arrayLikeToArray$i(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
23233
+ function _createForOfIteratorHelperLoose$j(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$j(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
23234
+ function _unsupportedIterableToArray$j(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$j(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$j(r, a) : void 0; } }
23235
+ function _arrayLikeToArray$j(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
23201
23236
  // sdk2 componenets/selfie_capture/faceDetectorDefault.ts:5
23202
23237
  // (DEFAULT_FACE_DETECTOR): face-landmarker is the default face model as of
23203
23238
  // 2.4.0.
@@ -23227,7 +23262,7 @@ function mapDetectionsToFaces(prediction) {
23227
23262
  if (!prediction) return null;
23228
23263
  var faceDetections = [];
23229
23264
  var noseDetections = [];
23230
- for (var _iterator = _createForOfIteratorHelperLoose$i(prediction.detections), _step; !(_step = _iterator()).done;) {
23265
+ for (var _iterator = _createForOfIteratorHelperLoose$j(prediction.detections), _step; !(_step = _iterator()).done;) {
23231
23266
  var detection = _step.value;
23232
23267
  if (isNoseDetection(detection)) {
23233
23268
  noseDetections.push(detection);
@@ -23241,7 +23276,7 @@ function mapDetectionsToFaces(prediction) {
23241
23276
  var faceBox = d.boundingBox;
23242
23277
  if (!faceBox) continue;
23243
23278
  var nose = null;
23244
- for (var _iterator2 = _createForOfIteratorHelperLoose$i(noseDetections), _step2; !(_step2 = _iterator2()).done;) {
23279
+ for (var _iterator2 = _createForOfIteratorHelperLoose$j(noseDetections), _step2; !(_step2 = _iterator2()).done;) {
23245
23280
  var n = _step2.value;
23246
23281
  var noseBox = n.boundingBox;
23247
23282
  if (!noseBox) continue;
@@ -24043,9 +24078,9 @@ function captureQualityException(reason, measurements, originalThresholds, recov
24043
24078
  };
24044
24079
  }
24045
24080
 
24046
- function _createForOfIteratorHelperLoose$h(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$h(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24047
- function _unsupportedIterableToArray$h(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$h(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$h(r, a) : void 0; } }
24048
- function _arrayLikeToArray$h(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
24081
+ function _createForOfIteratorHelperLoose$i(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$i(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24082
+ function _unsupportedIterableToArray$i(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$i(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$i(r, a) : void 0; } }
24083
+ function _arrayLikeToArray$i(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
24049
24084
  // sdk2 SelfieGuidanceModelsProvider.tsx onPredictionMade's useThrottledCallback
24050
24085
  // second argument (SelfieCapture.tsx:225 -- "locks to 60fps maximum").
24051
24086
  var DEFAULT_PREDICTION_THROTTLE_MS = 16;
@@ -24167,7 +24202,7 @@ function createSelfieCaptureController(config) {
24167
24202
  // --- timers (idCapture pattern, colon-namespaced) ---
24168
24203
  var timers = new Map();
24169
24204
  function clearAllTimers() {
24170
- for (var _iterator = _createForOfIteratorHelperLoose$h(timers.values()), _step; !(_step = _iterator()).done;) {
24205
+ for (var _iterator = _createForOfIteratorHelperLoose$i(timers.values()), _step; !(_step = _iterator()).done;) {
24171
24206
  var handle = _step.value;
24172
24207
  io.clearTimeout(handle);
24173
24208
  }
@@ -25933,8 +25968,8 @@ function SelfieCameraFeed(_ref) {
25933
25968
  });
25934
25969
  }
25935
25970
 
25936
- var _templateObject$u, _templateObject2$r, _templateObject3$j, _templateObject4$f;
25937
- var _excluded$c = ["borderColor", "borderOpacity", "borderWidth", "status"],
25971
+ var _templateObject$u, _templateObject2$s, _templateObject3$j, _templateObject4$f;
25972
+ var _excluded$d = ["borderColor", "borderOpacity", "borderWidth", "status"],
25938
25973
  _excluded2$4 = ["status", "guideStyle"],
25939
25974
  _excluded3 = ["frame", "borderWidth", "borderColor", "borderOpacity", "verticalAlign", "status", "guideStyle"],
25940
25975
  _excluded4 = ["status"];
@@ -25951,7 +25986,7 @@ var HeadGuideSvg = /*#__PURE__*/forwardRef(function (_ref, ref) {
25951
25986
  borderWidth = _ref$borderWidth === void 0 ? 5 : _ref$borderWidth,
25952
25987
  _ref$status = _ref.status,
25953
25988
  status = _ref$status === void 0 ? 'ready' : _ref$status,
25954
- props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
25989
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
25955
25990
  return jsxs("svg", _extends({}, props, {
25956
25991
  ref: ref,
25957
25992
  viewBox: "271 92 297 406",
@@ -26011,7 +26046,7 @@ HeadGuideSvg.displayName = 'HeadGuideSvg';
26011
26046
  // while also running the camera and face model. Waves only render while the
26012
26047
  // status is 'ready', so the pulse replays each time the face leaves the guide.
26013
26048
  var headGuideWavesAnimation = keyframes(_templateObject$u || (_templateObject$u = _taggedTemplateLiteralLoose(["\n 0% {\n opacity: 0;\n transform: scale(1);\n }\n 60% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n transform: scale(1.3);\n }\n"])));
26014
- var PulsingHeadGuideContainer = styled.div(_templateObject2$r || (_templateObject2$r = _taggedTemplateLiteralLoose(["\n display: flex;\n position: relative;\n height: 100%;\n max-height: 100%;\n\n & > .idmSdkWaves {\n position: absolute;\n opacity: 0;\n animation: ", " 2s ease-out 3;\n\n @media (prefers-reduced-motion: reduce) {\n display: none;\n }\n }\n\n /* Paints far past its box; the nearest clipping ancestor bounds it\n (FaceCaptureGuideOverlay clips to the capture surface). */\n & > .idmSdkSpotlight {\n position: absolute;\n overflow: visible;\n pointer-events: none;\n }\n\n & > .idmSdkWavesOrigin {\n position: relative;\n }\n"])), headGuideWavesAnimation);
26049
+ var PulsingHeadGuideContainer = styled.div(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n display: flex;\n position: relative;\n height: 100%;\n max-height: 100%;\n\n & > .idmSdkWaves {\n position: absolute;\n opacity: 0;\n animation: ", " 2s ease-out 3;\n\n @media (prefers-reduced-motion: reduce) {\n display: none;\n }\n }\n\n /* Paints far past its box; the nearest clipping ancestor bounds it\n (FaceCaptureGuideOverlay clips to the capture surface). */\n & > .idmSdkSpotlight {\n position: absolute;\n overflow: visible;\n pointer-events: none;\n }\n\n & > .idmSdkWavesOrigin {\n position: relative;\n }\n"])), headGuideWavesAnimation);
26015
26050
  function HeadGuide(_ref2) {
26016
26051
  var _theme$selfieCapture$, _theme$selfieCapture, _theme$selfieCapture$2, _theme$selfieCapture2, _theme$selfieCapture$3, _theme$selfieCapture3, _props$className;
26017
26052
  var _ref2$status = _ref2.status,
@@ -26320,11 +26355,11 @@ function SelfieCaptureAnimatedMaskWithStatus(_ref4) {
26320
26355
  }));
26321
26356
  }
26322
26357
 
26323
- var _templateObject$t, _templateObject2$q;
26358
+ var _templateObject$t, _templateObject2$r;
26324
26359
  var FaceCaptureGuideContainer = styled.div(_templateObject$t || (_templateObject$t = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 1000;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 40px;\n box-sizing: border-box;\n /* Keeps the spotlight dim inside the capture surface when the view is\n embedded rather than full-screen. */\n ", "\n"])), function (props) {
26325
26360
  return props.$clip ? 'overflow: hidden;' : '';
26326
26361
  });
26327
- var FaceCaptureGuideInner = styled.div(_templateObject2$q || (_templateObject2$q = _taggedTemplateLiteralLoose(["\n position: relative;\n height: 60%;\n"])));
26362
+ var FaceCaptureGuideInner = styled.div(_templateObject2$r || (_templateObject2$r = _taggedTemplateLiteralLoose(["\n position: relative;\n height: 60%;\n"])));
26328
26363
  // Memoized: the capture surfaces re-render on every analyzed frame, but the
26329
26364
  // guide's props only change when the mask status does.
26330
26365
  var FaceCaptureGuideOverlay = /*#__PURE__*/memo(function FaceCaptureGuideOverlay(_ref) {
@@ -26635,7 +26670,7 @@ function SelfieCaptureLoadingGraphic(_ref) {
26635
26670
  });
26636
26671
  }
26637
26672
 
26638
- var _templateObject$s, _templateObject2$p, _templateObject3$i, _templateObject4$e, _templateObject5$e;
26673
+ var _templateObject$s, _templateObject2$q, _templateObject3$i, _templateObject4$e, _templateObject5$e;
26639
26674
  var legacyInstructionImageUrl = DEFAULT_CDN_URL$1 + "/Selfie-Image-1.png";
26640
26675
  // Module-level so the default `now` prop has a stable identity across
26641
26676
  // renders (it sits in useModelWarmingElapsedMs's effect dependency array).
@@ -26813,7 +26848,7 @@ var OverlayInner = styled(LoadingOverlayInner)(_templateObject$s || (_templateOb
26813
26848
  var _props$theme$selfieCa2, _props$theme2;
26814
26849
  return (_props$theme$selfieCa2 = (_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.selfieCapture) == null || (_props$theme2 = _props$theme2.loadingOverlay) == null ? void 0 : _props$theme2.textColor) != null ? _props$theme$selfieCa2 : 'black';
26815
26850
  });
26816
- var ButtonsRow = styled(LoadingOverlayButtonsRow)(_templateObject2$p || (_templateObject2$p = _taggedTemplateLiteralLoose(["\n color: ", ";\n ", "\n"])), function (props) {
26851
+ var ButtonsRow = styled(LoadingOverlayButtonsRow)(_templateObject2$q || (_templateObject2$q = _taggedTemplateLiteralLoose(["\n color: ", ";\n ", "\n"])), function (props) {
26817
26852
  var _props$theme$selfieCa3, _props$theme3;
26818
26853
  return (_props$theme$selfieCa3 = (_props$theme3 = props.theme) == null || (_props$theme3 = _props$theme3.selfieCapture) == null || (_props$theme3 = _props$theme3.loadingOverlay) == null ? void 0 : _props$theme3.progressBarTextColor) != null ? _props$theme$selfieCa3 : 'white';
26819
26854
  }, function (props) {
@@ -26872,7 +26907,7 @@ function selfieLoadingOverlayBottomEdgeColor(theme, modelsReady) {
26872
26907
  });
26873
26908
  }
26874
26909
 
26875
- var _templateObject$r, _templateObject2$o;
26910
+ var _templateObject$r, _templateObject2$p;
26876
26911
  var SelfieCaptureLoadingOverlayLegacy = function SelfieCaptureLoadingOverlayLegacy(_ref) {
26877
26912
  var _assets$instructionIm;
26878
26913
  var state = _ref.state,
@@ -26949,9 +26984,9 @@ var SelfieCaptureLoadingOverlayLegacy = function SelfieCaptureLoadingOverlayLega
26949
26984
  });
26950
26985
  };
26951
26986
  var StyledGuidanceMessage = styled(GuidanceMessage)(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose(["\n padding: 12px 24px;\n font-weight: normal;\n line-height: 1.5;\n margin-bottom: -30px;\n"])));
26952
- var StyledButtonsRow$5 = styled(ButtonsRow$2)(_templateObject2$o || (_templateObject2$o = _taggedTemplateLiteralLoose(["\n flex-direction: column;\n padding-top: 25px;\n"])));
26987
+ var StyledButtonsRow$5 = styled(ButtonsRow$2)(_templateObject2$p || (_templateObject2$p = _taggedTemplateLiteralLoose(["\n flex-direction: column;\n padding-top: 25px;\n"])));
26953
26988
 
26954
- var _templateObject$q, _templateObject2$n, _templateObject3$h, _templateObject4$d, _templateObject5$d, _templateObject6$a, _templateObject7$8;
26989
+ var _templateObject$q, _templateObject2$o, _templateObject3$h, _templateObject4$d, _templateObject5$d, _templateObject6$a, _templateObject7$8;
26955
26990
  // Module-level so the default `now` prop has a stable identity across
26956
26991
  // renders (it sits in useModelWarmingElapsedMs's effect dependency array).
26957
26992
  var defaultNow = function defaultNow() {
@@ -27210,7 +27245,7 @@ var SelfieCaptureLoadingOverlayRing = function SelfieCaptureLoadingOverlayRing(_
27210
27245
  });
27211
27246
  };
27212
27247
  var overlayFadeIn = keyframes(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n from { opacity: 0; }\n to { opacity: 1; }\n"])));
27213
- var RingOverlayInner = styled(LoadingOverlayInner)(_templateObject2$n || (_templateObject2$n = _taggedTemplateLiteralLoose(["\n background: ", ";\n color: ", ";\n ", "\n"])), function (props) {
27248
+ var RingOverlayInner = styled(LoadingOverlayInner)(_templateObject2$o || (_templateObject2$o = _taggedTemplateLiteralLoose(["\n background: ", ";\n color: ", ";\n ", "\n"])), function (props) {
27214
27249
  var _props$theme$selfieCa, _props$theme;
27215
27250
  var tintBase = (_props$theme$selfieCa = (_props$theme = props.theme) == null || (_props$theme = _props$theme.selfieCapture) == null || (_props$theme = _props$theme.loadingOverlay) == null ? void 0 : _props$theme.backgroundColor) != null ? _props$theme$selfieCa : 'var(--idm-color-primary-500)';
27216
27251
  return "linear-gradient(180deg, #ffffff, color-mix(in srgb, " + tintBase + " 45%, #ffffff))";
@@ -27237,7 +27272,7 @@ var ContinueButton = styled(LoaderButton)(_templateObject7$8 || (_templateObject
27237
27272
  return (_props$theme$selfieCa5 = (_props$theme7 = props.theme) == null || (_props$theme7 = _props$theme7.selfieCapture) == null || (_props$theme7 = _props$theme7.loadingOverlay) == null ? void 0 : _props$theme7.continueBtnDisabledBorder) != null ? _props$theme$selfieCa5 : 'none';
27238
27273
  });
27239
27274
 
27240
- var _excluded$b = ["mode"];
27275
+ var _excluded$c = ["mode"];
27241
27276
  var components = {
27242
27277
  "default": SelfieCaptureLoadingOverlayDefault,
27243
27278
  legacy: SelfieCaptureLoadingOverlayLegacy,
@@ -27247,12 +27282,12 @@ var SelfieCaptureLoadingOverlay = function SelfieCaptureLoadingOverlay(_ref) {
27247
27282
  var _components$mode;
27248
27283
  var _ref$mode = _ref.mode,
27249
27284
  mode = _ref$mode === void 0 ? 'default' : _ref$mode,
27250
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
27285
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
27251
27286
  var Component = (_components$mode = components[mode]) != null ? _components$mode : components["default"];
27252
27287
  return jsx(Component, _extends({}, props));
27253
27288
  };
27254
27289
 
27255
- var _templateObject$p, _templateObject2$m, _templateObject3$g, _templateObject4$c, _templateObject5$c, _templateObject6$9;
27290
+ var _templateObject$p, _templateObject2$n, _templateObject3$g, _templateObject4$c, _templateObject5$c, _templateObject6$9;
27256
27291
  function SelfieCaptureFallback(_ref) {
27257
27292
  var _ref$silentFallback = _ref.silentFallback,
27258
27293
  silentFallback = _ref$silentFallback === void 0 ? false : _ref$silentFallback,
@@ -27407,13 +27442,13 @@ function SelfieCaptureFallback(_ref) {
27407
27442
  });
27408
27443
  }
27409
27444
  var StyledOverlayInner = styled(OverlayInner$2)(_templateObject$p || (_templateObject$p = _taggedTemplateLiteralLoose(["\n justify-content: center;\n padding: 24px;\n box-sizing: border-box;\n"])));
27410
- var Heading$6 = styled.h1(_templateObject2$m || (_templateObject2$m = _taggedTemplateLiteralLoose(["\n font-size: 1.5rem;\n margin: 0 0 1rem;\n"])));
27445
+ var Heading$6 = styled.h1(_templateObject2$n || (_templateObject2$n = _taggedTemplateLiteralLoose(["\n font-size: 1.5rem;\n margin: 0 0 1rem;\n"])));
27411
27446
  var Description = styled.p(_templateObject3$g || (_templateObject3$g = _taggedTemplateLiteralLoose(["\n line-height: 1.5;\n margin: 0 0 1.5rem;\n"])));
27412
27447
  var ImageContainer$4 = styled.div(_templateObject4$c || (_templateObject4$c = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n margin-bottom: 1.5rem;\n\n & > img {\n max-width: 100%;\n max-height: 40vh;\n border-radius: 8px;\n }\n"])));
27413
27448
  var ReadFailed = styled.p(_templateObject5$c || (_templateObject5$c = _taggedTemplateLiteralLoose(["\n margin: 0 0 1rem;\n"])));
27414
27449
  var StyledButtonsRow$4 = styled(ButtonsRow$2)(_templateObject6$9 || (_templateObject6$9 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 12px;\n justify-content: center;\n"])));
27415
27450
 
27416
- var _templateObject$o, _templateObject2$l;
27451
+ var _templateObject$o, _templateObject2$m;
27417
27452
  function SelfieCaptureSurface(_ref) {
27418
27453
  var _state$error, _state$error2, _state$captureRecover, _state$error5, _state$captureRecover2, _state$prediction, _state$prediction$sam, _state$prediction2, _state$prediction3, _state$prediction4, _state$prediction5, _state$prediction6, _state$prediction7, _state$prediction8, _state$prediction9, _state$prediction0, _state$prediction1, _state$prediction$bri, _state$prediction10, _state$prediction$ran, _state$prediction11, _state$prediction$var, _state$prediction12, _assets$loadingOverla, _classNames$loadingOv, _colors$loadingOverla, _verbiage$loadingOver;
27419
27454
  var controller = _ref.controller,
@@ -27810,7 +27845,7 @@ function EyesOpenDebugLines(_ref2) {
27810
27845
  }
27811
27846
  var ManualCaptureButtonContainer = styled.div(_templateObject$o || (_templateObject$o = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 4;\n left: 50%;\n bottom: 24px;\n transform: translateX(-50%);\n"])));
27812
27847
  // A footer below the camera keeps the lighting guidance visible above it.
27813
- var CaptureRecoveryActions = styled.div(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 10001;\n inset: auto 0 0;\n padding: 16px 24px max(16px, env(safe-area-inset-bottom));\n background: white;\n color: #333;\n text-align: center;\n display: grid;\n justify-items: center;\n gap: 12px;\n\n p { margin: 0; font-size: 14px; line-height: 1.4; }\n button { width: 100%; max-width: 320px; }\n"])));
27848
+ var CaptureRecoveryActions = styled.div(_templateObject2$m || (_templateObject2$m = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 10001;\n inset: auto 0 0;\n padding: 16px 24px max(16px, env(safe-area-inset-bottom));\n background: white;\n color: #333;\n text-align: center;\n display: grid;\n justify-items: center;\n gap: 12px;\n\n p { margin: 0; font-size: 14px; line-height: 1.4; }\n button { width: 100%; max-width: 320px; }\n"])));
27814
27849
 
27815
27850
  // Byte-identical to sdk2's verbiage defaults
27816
27851
  // (SelfieCapture.tsx:273-284, FaceLivenessCapture.tsx:845-912), except
@@ -28139,7 +28174,7 @@ function SelfieCaptureViewContent(_ref) {
28139
28174
  });
28140
28175
  }
28141
28176
 
28142
- var _templateObject$m, _templateObject2$k;
28177
+ var _templateObject$m, _templateObject2$l;
28143
28178
  var FaceLivenessSuccess = function FaceLivenessSuccess(_ref) {
28144
28179
  var imageUrl = _ref.imageUrl,
28145
28180
  onDoneClick = _ref.onDoneClick,
@@ -28203,9 +28238,9 @@ var FaceLivenessSuccess = function FaceLivenessSuccess(_ref) {
28203
28238
  });
28204
28239
  };
28205
28240
  var ImageContainer$3 = styled.div(_templateObject$m || (_templateObject$m = _taggedTemplateLiteralLoose(["\n position: relative;\n flex-grow: 1;\n margin-bottom: 25px;\n max-width: 100%;\n max-height: 100%;\n overflow-y: auto;\n border-radius: 12px;\n\n & > img,\n & > svg {\n width: 100%;\n max-width: 100%;\n margin: 0 auto;\n display: block;\n border-radius: 12px;\n }\n"])));
28206
- var Heading$5 = styled.h3(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteralLoose(["\n font-size: 1.2rem;\n margin: 0;\n"])));
28241
+ var Heading$5 = styled.h3(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["\n font-size: 1.2rem;\n margin: 0;\n"])));
28207
28242
 
28208
- var _templateObject$l, _templateObject2$j;
28243
+ var _templateObject$l, _templateObject2$k;
28209
28244
  var FaceLivenessFailure = function FaceLivenessFailure(_ref) {
28210
28245
  var _assets$imageUrl;
28211
28246
  var _ref$canRetry = _ref.canRetry,
@@ -28264,7 +28299,7 @@ var FaceLivenessFailure = function FaceLivenessFailure(_ref) {
28264
28299
  });
28265
28300
  };
28266
28301
  var ImageContainer$2 = styled(OverlayImageContainer)(_templateObject$l || (_templateObject$l = _taggedTemplateLiteralLoose(["\n max-height: calc(100vh - 185px);\n"])));
28267
- var Heading$4 = styled.h3(_templateObject2$j || (_templateObject2$j = _taggedTemplateLiteralLoose(["\n margin-bottom: 36px;\n"])));
28302
+ var Heading$4 = styled.h3(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteralLoose(["\n margin-bottom: 36px;\n"])));
28268
28303
 
28269
28304
  var _templateObject$k;
28270
28305
  // The FaceMessageCode a ladder resolved -> the FaceLivenessGuidanceVerbiage
@@ -28612,9 +28647,9 @@ function FaceLivenessViewContent(_ref) {
28612
28647
  });
28613
28648
  }
28614
28649
 
28615
- function _createForOfIteratorHelperLoose$g(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$g(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
28616
- function _unsupportedIterableToArray$g(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$g(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$g(r, a) : void 0; } }
28617
- function _arrayLikeToArray$g(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
28650
+ function _createForOfIteratorHelperLoose$h(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$h(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
28651
+ function _unsupportedIterableToArray$h(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$h(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$h(r, a) : void 0; } }
28652
+ function _arrayLikeToArray$h(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
28618
28653
  /**
28619
28654
  * Signature validity estimate (AMEXDESK-676).
28620
28655
  *
@@ -28717,7 +28752,7 @@ function countSignaturePoints(strokes) {
28717
28752
  */
28718
28753
  function measurePenDownMs(strokes) {
28719
28754
  var total = 0;
28720
- for (var _iterator = _createForOfIteratorHelperLoose$g(strokes), _step; !(_step = _iterator()).done;) {
28755
+ for (var _iterator = _createForOfIteratorHelperLoose$h(strokes), _step; !(_step = _iterator()).done;) {
28721
28756
  var stroke = _step.value;
28722
28757
  if (stroke.length < 2) continue;
28723
28758
  total += stroke[stroke.length - 1].time - stroke[0].time;
@@ -28736,9 +28771,9 @@ function boundingBox(strokes) {
28736
28771
  var minY = Infinity;
28737
28772
  var maxX = -Infinity;
28738
28773
  var maxY = -Infinity;
28739
- for (var _iterator2 = _createForOfIteratorHelperLoose$g(strokes), _step2; !(_step2 = _iterator2()).done;) {
28774
+ for (var _iterator2 = _createForOfIteratorHelperLoose$h(strokes), _step2; !(_step2 = _iterator2()).done;) {
28740
28775
  var stroke = _step2.value;
28741
- for (var _iterator3 = _createForOfIteratorHelperLoose$g(stroke), _step3; !(_step3 = _iterator3()).done;) {
28776
+ for (var _iterator3 = _createForOfIteratorHelperLoose$h(stroke), _step3; !(_step3 = _iterator3()).done;) {
28742
28777
  var p = _step3.value;
28743
28778
  if (p.x < minX) minX = p.x;
28744
28779
  if (p.y < minY) minY = p.y;
@@ -28757,7 +28792,7 @@ function boundingBox(strokes) {
28757
28792
  /** Sum of Euclidean distances between consecutive points within each stroke. */
28758
28793
  function totalPathLength(strokes) {
28759
28794
  var length = 0;
28760
- for (var _iterator4 = _createForOfIteratorHelperLoose$g(strokes), _step4; !(_step4 = _iterator4()).done;) {
28795
+ for (var _iterator4 = _createForOfIteratorHelperLoose$h(strokes), _step4; !(_step4 = _iterator4()).done;) {
28761
28796
  var stroke = _step4.value;
28762
28797
  for (var i = 1; i < stroke.length; i++) {
28763
28798
  var dx = stroke[i].x - stroke[i - 1].x;
@@ -28813,7 +28848,7 @@ function resampleStroke(stroke, step) {
28813
28848
  */
28814
28849
  function countDirectionChanges(strokes, step) {
28815
28850
  var totalTurning = 0;
28816
- for (var _iterator5 = _createForOfIteratorHelperLoose$g(strokes), _step5; !(_step5 = _iterator5()).done;) {
28851
+ for (var _iterator5 = _createForOfIteratorHelperLoose$h(strokes), _step5; !(_step5 = _iterator5()).done;) {
28817
28852
  var stroke = _step5.value;
28818
28853
  var pts = resampleStroke(stroke, step);
28819
28854
  var prevAngle = null;
@@ -28846,9 +28881,9 @@ function countZonesCovered(strokes, canvasWidth, canvasHeight, box) {
28846
28881
  var height = useCanvas ? canvasHeight : box.maxY - box.minY;
28847
28882
  if (width <= 0 || height <= 0) return 0;
28848
28883
  var occupied = new Set();
28849
- for (var _iterator6 = _createForOfIteratorHelperLoose$g(strokes), _step6; !(_step6 = _iterator6()).done;) {
28884
+ for (var _iterator6 = _createForOfIteratorHelperLoose$h(strokes), _step6; !(_step6 = _iterator6()).done;) {
28850
28885
  var stroke = _step6.value;
28851
- for (var _iterator7 = _createForOfIteratorHelperLoose$g(stroke), _step7; !(_step7 = _iterator7()).done;) {
28886
+ for (var _iterator7 = _createForOfIteratorHelperLoose$h(stroke), _step7; !(_step7 = _iterator7()).done;) {
28852
28887
  var p = _step7.value;
28853
28888
  var col = Math.min(2, Math.max(0, Math.floor((p.x - originX) / width * 3)));
28854
28889
  var row = Math.min(2, Math.max(0, Math.floor((p.y - originY) / height * 3)));
@@ -28939,9 +28974,9 @@ function evaluateSignatureValidity(strokes, canvasWidth, canvasHeight, config) {
28939
28974
  };
28940
28975
  }
28941
28976
 
28942
- function _createForOfIteratorHelperLoose$f(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$f(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
28943
- function _unsupportedIterableToArray$f(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$f(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$f(r, a) : void 0; } }
28944
- function _arrayLikeToArray$f(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
28977
+ function _createForOfIteratorHelperLoose$g(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$g(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
28978
+ function _unsupportedIterableToArray$g(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$g(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$g(r, a) : void 0; } }
28979
+ function _arrayLikeToArray$g(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
28945
28980
  /**
28946
28981
  * Off-screen, post-capture validation that proves a real frame renders at the
28947
28982
  * signature's trim start offset. This is the authoritative detector for the
@@ -29390,7 +29425,7 @@ function _seekProbes() {
29390
29425
  while (1) switch (_context4.prev = _context4.next) {
29391
29426
  case 0:
29392
29427
  probes = [];
29393
- _iterator = _createForOfIteratorHelperLoose$f(probeTimesMs);
29428
+ _iterator = _createForOfIteratorHelperLoose$g(probeTimesMs);
29394
29429
  case 1:
29395
29430
  if ((_step = _iterator()).done) {
29396
29431
  _context4.next = 4;
@@ -29460,7 +29495,7 @@ function _playbackProbes() {
29460
29495
  };
29461
29496
  var grab = function grab(mediaSec) {
29462
29497
  if (mediaSec * 1000 > maxMediaMs) maxMediaMs = mediaSec * 1000;
29463
- for (var _iterator2 = _createForOfIteratorHelperLoose$f(targets), _step2; !(_step2 = _iterator2()).done;) {
29498
+ for (var _iterator2 = _createForOfIteratorHelperLoose$g(targets), _step2; !(_step2 = _iterator2()).done;) {
29464
29499
  var t = _step2.value;
29465
29500
  if (t.result != null) continue;
29466
29501
  if (maxMediaMs + SEEK_TOLERANCE_MS < t.ms) continue;
@@ -29513,7 +29548,7 @@ function _playbackProbes() {
29513
29548
  video.play()["catch"](_finish);
29514
29549
  });
29515
29550
  case 2:
29516
- _iterator3 = _createForOfIteratorHelperLoose$f(targets);
29551
+ _iterator3 = _createForOfIteratorHelperLoose$g(targets);
29517
29552
  case 3:
29518
29553
  if ((_step3 = _iterator3()).done) {
29519
29554
  _context5.next = 6;
@@ -31225,9 +31260,9 @@ function reduceSignatureCapture(state, event) {
31225
31260
  }
31226
31261
  }
31227
31262
 
31228
- function _createForOfIteratorHelperLoose$e(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$e(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
31229
- function _unsupportedIterableToArray$e(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$e(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$e(r, a) : void 0; } }
31230
- function _arrayLikeToArray$e(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
31263
+ function _createForOfIteratorHelperLoose$f(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$f(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
31264
+ function _unsupportedIterableToArray$f(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$f(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$f(r, a) : void 0; } }
31265
+ function _arrayLikeToArray$f(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
31231
31266
  /**
31232
31267
  * Marks a microphone acquisition failure so `captureError` can type it.
31233
31268
  *
@@ -31361,7 +31396,7 @@ function createSignatureCaptureController(config) {
31361
31396
  }
31362
31397
  function publish() {
31363
31398
  snapshot = store.getState();
31364
- for (var _iterator = _createForOfIteratorHelperLoose$e(listeners), _step; !(_step = _iterator()).done;) {
31399
+ for (var _iterator = _createForOfIteratorHelperLoose$f(listeners), _step; !(_step = _iterator()).done;) {
31365
31400
  var listener = _step.value;
31366
31401
  try {
31367
31402
  listener(snapshot);
@@ -32191,8 +32226,8 @@ function useSignatureCapture(controller) {
32191
32226
  return useSyncExternalStore(subscribe, controller.getState, controller.getState);
32192
32227
  }
32193
32228
 
32194
- var _templateObject$j, _templateObject2$i, _templateObject3$f, _templateObject4$b, _templateObject5$b, _templateObject6$8;
32195
- var _excluded$a = ["device", "frameDecode"];
32229
+ var _templateObject$j, _templateObject2$j, _templateObject3$f, _templateObject4$b, _templateObject5$b, _templateObject6$8;
32230
+ var _excluded$b = ["device", "frameDecode"];
32196
32231
  var ASSUMED_TRIM_PADDING = {
32197
32232
  startMs: TRIM_PADDING_START_MS,
32198
32233
  endMs: TRIM_PADDING_END_MS
@@ -32424,7 +32459,7 @@ function trippedSignals(warning) {
32424
32459
  var _warning$signals = warning.signals,
32425
32460
  device = _warning$signals.device,
32426
32461
  frameDecode = _warning$signals.frameDecode,
32427
- top = _objectWithoutPropertiesLoose(_warning$signals, _excluded$a);
32462
+ top = _objectWithoutPropertiesLoose(_warning$signals, _excluded$b);
32428
32463
  var tripped = [].concat(_toConsumableArray(Object.entries(top).filter(function (_ref2) {
32429
32464
  var _ref3 = _slicedToArray(_ref2, 2),
32430
32465
  signal = _ref3[1];
@@ -32471,7 +32506,7 @@ function Row$1(_ref1) {
32471
32506
  }
32472
32507
  var MONO = "'Monaco', 'Menlo', 'Ubuntu Mono', monospace";
32473
32508
  var Panel = styled.div(_templateObject$j || (_templateObject$j = _taggedTemplateLiteralLoose(["\n flex-shrink: 0;\n width: min(720px, 90vw);\n margin-top: 0.75rem;\n padding: 0.625rem;\n background: #f8f9fa;\n border: 1px solid #e9ecef;\n border-radius: 6px;\n text-align: left;\n overflow-x: auto;\n"])));
32474
- var Table = styled.table(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteralLoose(["\n width: 100%;\n border-collapse: collapse;\n font-family: ", ";\n font-size: 0.8125rem;\n line-height: 1.35;\n"])), MONO);
32509
+ var Table = styled.table(_templateObject2$j || (_templateObject2$j = _taggedTemplateLiteralLoose(["\n width: 100%;\n border-collapse: collapse;\n font-family: ", ";\n font-size: 0.8125rem;\n line-height: 1.35;\n"])), MONO);
32475
32510
  var SectionCell = styled.th(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["\n padding: 0.5rem 0 0.25rem;\n border-bottom: 1px solid #e9ecef;\n color: #495057;\n font-size: 0.75rem;\n font-weight: 700;\n letter-spacing: 0.04em;\n text-align: left;\n text-transform: uppercase;\n"])));
32476
32511
  var LabelCell = styled.td(_templateObject4$b || (_templateObject4$b = _taggedTemplateLiteralLoose(["\n width: 45%;\n padding: 0.1875rem 0.5rem 0.1875rem 0;\n color: #495057;\n font-weight: 600;\n vertical-align: top;\n"])));
32477
32512
  var ValueCell = styled.td(_templateObject5$b || (_templateObject5$b = _taggedTemplateLiteralLoose(["\n padding: 0.1875rem 0;\n color: ", ";\n font-weight: ", ";\n vertical-align: top;\n word-break: break-word;\n"])), function (props) {
@@ -32481,7 +32516,7 @@ var ValueCell = styled.td(_templateObject5$b || (_templateObject5$b = _taggedTem
32481
32516
  });
32482
32517
  var Note = styled.span(_templateObject6$8 || (_templateObject6$8 = _taggedTemplateLiteralLoose(["\n display: block;\n color: #6c757d;\n font-weight: 400;\n"])));
32483
32518
 
32484
- var _templateObject$i, _templateObject2$h, _templateObject3$e, _templateObject4$a, _templateObject5$a;
32519
+ var _templateObject$i, _templateObject2$i, _templateObject3$e, _templateObject4$a, _templateObject5$a;
32485
32520
  function MessageOverlay(_ref) {
32486
32521
  var heading = _ref.heading,
32487
32522
  children = _ref.children,
@@ -32702,12 +32737,12 @@ function SubmissionErrorOverlay(_ref1) {
32702
32737
  });
32703
32738
  }
32704
32739
  var CenteredInner = styled(OverlayInner$2)(_templateObject$i || (_templateObject$i = _taggedTemplateLiteralLoose(["\n box-sizing: border-box;\n justify-content: center;\n align-items: center;\n max-width: 640px;\n height: auto;\n min-height: 100%;\n margin: auto;\n padding: 32px;\n"])));
32705
- var Content = styled.div(_templateObject2$h || (_templateObject2$h = _taggedTemplateLiteralLoose(["\n max-width: 540px;\n line-height: 1.55;\n"])));
32740
+ var Content = styled.div(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteralLoose(["\n max-width: 540px;\n line-height: 1.55;\n"])));
32706
32741
  var Details = styled.p(_templateObject3$e || (_templateObject3$e = _taggedTemplateLiteralLoose(["\n margin: 12px 0 0;\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 0.875rem;\n"])));
32707
32742
  var PermissionImage = styled(OverlayImageContainer)(_templateObject4$a || (_templateObject4$a = _taggedTemplateLiteralLoose(["\n flex-grow: 0;\n width: min(180px, 45vw);\n"])));
32708
32743
  var RetryButton = styled(LoaderButton)(_templateObject5$a || (_templateObject5$a = _taggedTemplateLiteralLoose(["\n width: 200px;\n margin: 32px auto 0;\n"])));
32709
32744
 
32710
- var _templateObject$h, _templateObject2$g, _templateObject3$d, _templateObject4$9, _templateObject5$9, _templateObject6$7, _templateObject7$7, _templateObject8$7, _templateObject9$7, _templateObject0$6, _templateObject1$5, _templateObject10$5, _templateObject11$4, _templateObject12$3, _templateObject13$3, _templateObject14$3, _templateObject15$2, _templateObject16$2, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21$1, _templateObject22$1, _templateObject23$1;
32745
+ var _templateObject$h, _templateObject2$h, _templateObject3$d, _templateObject4$9, _templateObject5$9, _templateObject6$7, _templateObject7$7, _templateObject8$7, _templateObject9$7, _templateObject0$6, _templateObject1$5, _templateObject10$5, _templateObject11$4, _templateObject12$3, _templateObject13$3, _templateObject14$3, _templateObject15$2, _templateObject16$2, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21$1, _templateObject22$1, _templateObject23$1;
32711
32746
  var FALLBACKS = {
32712
32747
  headingText: "Please sign the box below",
32713
32748
  signHereText: "Sign here",
@@ -33287,7 +33322,7 @@ var Root$2 = styled.div(_templateObject$h || (_templateObject$h = _taggedTemplat
33287
33322
  return (_props$theme$textColo = props.theme.textColor) != null ? _props$theme$textColo : "#26332e";
33288
33323
  });
33289
33324
  /** Sits below the pad's stacking context and never receives signing input. */
33290
- var LiveDiagnostics = styled.div(_templateObject2$g || (_templateObject2$g = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 0;\n top: 64px;\n left: 20px;\n display: grid;\n padding: 8px;\n color: limegreen;\n background: rgba(0, 0, 0, 0.65);\n font: 14px/20px monospace;\n pointer-events: none;\n\n @container signature-capture (max-width: 1024px) {\n top: 12px;\n left: 12px;\n right: 12px;\n grid-template-columns: repeat(2, max-content);\n column-gap: 12px;\n font-size: clamp(11px, 3cqw, 12px);\n line-height: 18px;\n\n > :first-child {\n grid-column: 1 / -1;\n }\n }\n"])));
33325
+ var LiveDiagnostics = styled.div(_templateObject2$h || (_templateObject2$h = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 0;\n top: 64px;\n left: 20px;\n display: grid;\n padding: 8px;\n color: limegreen;\n background: rgba(0, 0, 0, 0.65);\n font: 14px/20px monospace;\n pointer-events: none;\n\n @container signature-capture (max-width: 1024px) {\n top: 12px;\n left: 12px;\n right: 12px;\n grid-template-columns: repeat(2, max-content);\n column-gap: 12px;\n font-size: clamp(11px, 3cqw, 12px);\n line-height: 18px;\n\n > :first-child {\n grid-column: 1 / -1;\n }\n }\n"])));
33291
33326
  /**
33292
33327
  * Black behind the feed. WebKit snaps the mirrored front-camera video's layer
33293
33328
  * to device pixels and can leave one column uncovered along an edge, which
@@ -33476,9 +33511,9 @@ function buildVideoIdCaptureArtifacts(artifact) {
33476
33511
  };
33477
33512
  }
33478
33513
 
33479
- function _createForOfIteratorHelperLoose$d(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$d(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
33480
- function _unsupportedIterableToArray$d(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$d(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$d(r, a) : void 0; } }
33481
- function _arrayLikeToArray$d(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
33514
+ function _createForOfIteratorHelperLoose$e(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$e(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
33515
+ function _unsupportedIterableToArray$e(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$e(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$e(r, a) : void 0; } }
33516
+ function _arrayLikeToArray$e(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
33482
33517
  var DEFAULT_VIDEO_ID_PREDICTION_THROTTLE_MS = 16;
33483
33518
  var RECENT_DETECTION_WINDOW_MS = 2000;
33484
33519
  var defaultVideoIdCaptureThresholds = {
@@ -33622,7 +33657,7 @@ function createVideoIdCaptureController(config) {
33622
33657
  var backImage = null;
33623
33658
  function update(patch) {
33624
33659
  state = _extends({}, state, patch);
33625
- for (var _iterator = _createForOfIteratorHelperLoose$d(listeners), _step; !(_step = _iterator()).done;) {
33660
+ for (var _iterator = _createForOfIteratorHelperLoose$e(listeners), _step; !(_step = _iterator()).done;) {
33626
33661
  var listener = _step.value;
33627
33662
  try {
33628
33663
  listener(state);
@@ -34809,7 +34844,7 @@ function useVideoIdCapture(controller) {
34809
34844
  return useSyncExternalStore(subscribe, controller.getState, controller.getState);
34810
34845
  }
34811
34846
 
34812
- var _templateObject$g, _templateObject2$f, _templateObject3$c, _templateObject4$8, _templateObject5$8, _templateObject6$6, _templateObject7$6, _templateObject8$6, _templateObject9$6, _templateObject0$5;
34847
+ var _templateObject$g, _templateObject2$g, _templateObject3$c, _templateObject4$8, _templateObject5$8, _templateObject6$6, _templateObject7$6, _templateObject8$6, _templateObject9$6, _templateObject0$5;
34813
34848
  /**
34814
34849
  * The combined face-over-document guide used by SDK2's Video ID recording
34815
34850
  * stage. Unlike the standalone ID overlay, both subjects remain framed in a
@@ -35024,7 +35059,7 @@ var Container = styled.div(_templateObject$g || (_templateObject$g = _taggedTemp
35024
35059
  var _props$theme;
35025
35060
  return (_props$theme = props.theme) == null ? void 0 : _props$theme.fontFamily;
35026
35061
  });
35027
- var Inner$1 = styled.div(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n max-height: 1280px;\n margin: auto;\n"])));
35062
+ var Inner$1 = styled.div(_templateObject2$g || (_templateObject2$g = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n max-height: 1280px;\n margin: auto;\n"])));
35028
35063
  var FaceGuideContainer = styled.div(_templateObject3$c || (_templateObject3$c = _taggedTemplateLiteralLoose(["\n position: relative;\n height: 65%;\n"])));
35029
35064
  var IdCardGuideContainer = styled.div(_templateObject4$8 || (_templateObject4$8 = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n flex-flow: column nowrap;\n width: 100%;\n max-width: 100%;\n height: 35%;\n margin: 0 auto;\n"])));
35030
35065
  var IdCardGuideInner = styled.div(_templateObject5$8 || (_templateObject5$8 = _taggedTemplateLiteralLoose(["\n position: relative;\n width: 100%;\n height: 100%;\n"])));
@@ -35055,7 +35090,7 @@ var VIDEO_ID_FALLBACKS = {
35055
35090
  };
35056
35091
  (_VIDEO_ID_GUIDANCE_FA = {}, _VIDEO_ID_GUIDANCE_FA[VideoIdCaptureGuidanceCode.SHOW_ID_FRONT] = VIDEO_ID_FALLBACKS.idFrontInstructionText, _VIDEO_ID_GUIDANCE_FA[VideoIdCaptureGuidanceCode.SHOW_ID_BACK] = VIDEO_ID_FALLBACKS.idBackInstructionText, _VIDEO_ID_GUIDANCE_FA[VideoIdCaptureGuidanceCode.SHOW_PASSPORT] = VIDEO_ID_FALLBACKS.passportInstructionText, _VIDEO_ID_GUIDANCE_FA[VideoIdCaptureGuidanceCode.FLIP_ID] = VIDEO_ID_FALLBACKS.flipIdInstructionText, _VIDEO_ID_GUIDANCE_FA[VideoIdCaptureGuidanceCode.SEARCHING_FOR_ID] = VIDEO_ID_FALLBACKS.searchingForIdCardText, _VIDEO_ID_GUIDANCE_FA[VideoIdCaptureGuidanceCode.HOLD_STEADY] = VIDEO_ID_FALLBACKS.idFrontInstructionText, _VIDEO_ID_GUIDANCE_FA);
35057
35092
 
35058
- var _templateObject$f, _templateObject2$e, _templateObject3$b, _templateObject4$7, _templateObject5$7, _templateObject6$5, _templateObject7$5, _templateObject8$5, _templateObject9$5;
35093
+ var _templateObject$f, _templateObject2$f, _templateObject3$b, _templateObject4$7, _templateObject5$7, _templateObject6$5, _templateObject7$5, _templateObject8$5, _templateObject9$5;
35059
35094
  function VideoIdCaptureView(props) {
35060
35095
  var _props$lang;
35061
35096
  return jsx(SdkLanguageProvider, {
@@ -35392,7 +35427,7 @@ function VideoIdCaptureDebugLayer(_ref2) {
35392
35427
  });
35393
35428
  }
35394
35429
  var Root$1 = styled.div(_templateObject$f || (_templateObject$f = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n overflow: hidden;\n"])));
35395
- var CameraLayer = styled.div(_templateObject2$e || (_templateObject2$e = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n display: ", ";\n isolation: isolate;\n"])), function (props) {
35430
+ var CameraLayer = styled.div(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n display: ", ";\n isolation: isolate;\n"])), function (props) {
35396
35431
  return props.$visible ? 'flex' : 'none';
35397
35432
  });
35398
35433
  var ReadTextPrompt = styled.div(_templateObject3$b || (_templateObject3$b = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 12px;\n padding: 24px;\n"])));
@@ -35416,7 +35451,7 @@ function useDocumentCapture(controller) {
35416
35451
  return useSyncExternalStore(subscribe, controller.getState, controller.getState);
35417
35452
  }
35418
35453
 
35419
- var _templateObject$e, _templateObject2$d, _templateObject3$a, _templateObject4$6, _templateObject5$6;
35454
+ var _templateObject$e, _templateObject2$e, _templateObject3$a, _templateObject4$6, _templateObject5$6;
35420
35455
  /** Human wording for each gate, in the order the engine reports them. */
35421
35456
  /** Short enough that the triple fits one line on a phone. */
35422
35457
  var GUIDANCE_LABELS = {
@@ -35718,7 +35753,7 @@ var PaneAnchor = styled.div(_templateObject$e || (_templateObject$e = _taggedTem
35718
35753
  // `DebugStatsPaneDiv` sets `pointer-events: none` so the shared pane can never
35719
35754
  // swallow a capture tap. This one has to be tappable, so it re-enables them on
35720
35755
  // its own subtree only.
35721
- var InteractivePane = styled.span(_templateObject2$d || (_templateObject2$d = _taggedTemplateLiteralLoose(["\n pointer-events: auto;\n display: block;\n cursor: pointer;\n user-select: none;\n"])));
35756
+ var InteractivePane = styled.span(_templateObject2$e || (_templateObject2$e = _taggedTemplateLiteralLoose(["\n pointer-events: auto;\n display: block;\n cursor: pointer;\n user-select: none;\n"])));
35722
35757
  var Row = styled.span(_templateObject3$a || (_templateObject3$a = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
35723
35758
  var Controls = styled.span(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 6px;\n margin-top: 6px;\n"])));
35724
35759
  var Chip = styled.button(_templateObject5$6 || (_templateObject5$6 = _taggedTemplateLiteralLoose(["\n font: bold 11px monospace;\n padding: 4px 8px;\n border: 1px solid limegreen;\n border-radius: 3px;\n background: ", ";\n color: ", ";\n cursor: pointer;\n"])), function (_ref5) {
@@ -35729,7 +35764,7 @@ var Chip = styled.button(_templateObject5$6 || (_templateObject5$6 = _taggedTemp
35729
35764
  return $active ? 'black' : 'limegreen';
35730
35765
  });
35731
35766
 
35732
- var _templateObject$d, _templateObject2$c, _templateObject3$9;
35767
+ var _templateObject$d, _templateObject2$d, _templateObject3$9;
35733
35768
  /**
35734
35769
  * Which verbiage member renders each code.
35735
35770
  *
@@ -35815,7 +35850,7 @@ var GuidanceChip = styled.div(_templateObject$d || (_templateObject$d = _taggedT
35815
35850
  * Follows the text colour while unsatisfied, so a themed chip needs no dot
35816
35851
  * colour of its own.
35817
35852
  */
35818
- var StateDot = styled.span(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteralLoose(["\n flex: none;\n width: 7px;\n height: 7px;\n border-radius: 50%;\n background: ", ";\n opacity: ", ";\n transition:\n background-color 160ms ease-out,\n opacity 160ms ease-out;\n"])), function (_ref4) {
35853
+ var StateDot = styled.span(_templateObject2$d || (_templateObject2$d = _taggedTemplateLiteralLoose(["\n flex: none;\n width: 7px;\n height: 7px;\n border-radius: 50%;\n background: ", ";\n opacity: ", ";\n transition:\n background-color 160ms ease-out,\n opacity 160ms ease-out;\n"])), function (_ref4) {
35819
35854
  var $satisfied = _ref4.$satisfied;
35820
35855
  return $satisfied ? '#7ef0d2' : 'currentColor';
35821
35856
  }, function (_ref5) {
@@ -35846,7 +35881,7 @@ function DocumentCaptureManualCaptureHint(_ref6) {
35846
35881
  */
35847
35882
  var ManualCaptureHint = styled.div(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteralLoose(["\n max-width: min(88%, 38ch);\n padding: 7px 14px;\n border-radius: 12px;\n font-size: 12px;\n font-weight: 500;\n line-height: 1.4;\n text-align: center;\n color: rgba(255, 255, 255, 0.86);\n background: rgba(10, 14, 19, 0.7);\n"])));
35848
35883
 
35849
- var _templateObject$c, _templateObject2$b, _templateObject3$8;
35884
+ var _templateObject$c, _templateObject2$c, _templateObject3$8;
35850
35885
  function DocumentCaptureReviewScreen(_ref) {
35851
35886
  var contentUrl = _ref.contentUrl,
35852
35887
  headingText = _ref.headingText,
@@ -35905,7 +35940,7 @@ var ReviewHeading = styled.h2(_templateObject$c || (_templateObject$c = _taggedT
35905
35940
  // `min-height: 0` is what actually lets this shrink inside the flex card —
35906
35941
  // without it the default `min-height: auto` floors the wrapper at the image's
35907
35942
  // intrinsic height and the buttons get pushed off the bottom of a phone.
35908
- var ImageWrap = styled.div(_templateObject2$b || (_templateObject2$b = _taggedTemplateLiteralLoose(["\n flex: 1;\n min-height: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: 18px;\n"])));
35943
+ var ImageWrap = styled.div(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteralLoose(["\n flex: 1;\n min-height: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: 18px;\n"])));
35909
35944
  var PreviewImage$1 = styled.img(_templateObject3$8 || (_templateObject3$8 = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n max-height: 100%;\n object-fit: contain;\n border-radius: 4px;\n border: 1px solid #e2e2e8;\n"])));
35910
35945
 
35911
35946
  function computeGuideRect$1(_ref) {
@@ -35943,7 +35978,7 @@ function computeGuideRect$1(_ref) {
35943
35978
  };
35944
35979
  }
35945
35980
 
35946
- var _templateObject$b, _templateObject2$a;
35981
+ var _templateObject$b, _templateObject2$b;
35947
35982
  /**
35948
35983
  * How far the camera feed overhangs the guide box on each side, in CSS pixels.
35949
35984
  *
@@ -36183,9 +36218,9 @@ function drawCornerBrackets(ctx, rect, opts) {
36183
36218
  var CanvasWrapper = styled.div(_templateObject$b || (_templateObject$b = _taggedTemplateLiteralLoose(["\n flex-grow: 1;\n /* REQUIRED, not tidying. setCanvasDimensions puts an explicit pixel height on\n the child canvas, and a flex item's default min-height of auto floors it at\n its content \u2014 so this wrapper can grow but can never shrink back.\n\n It bit on exactly one transition: while auto-capture is guiding, the header\n is absolutely positioned and out of flow, so the wrapper is measured at the\n FULL surface height and the canvas is pinned there. Accepting the manual\n fallback swaps in the in-flow heading bar, the column then needs this item\n to give back that height, an auto min-height refuses, and the surface\n overflows by the header's height \u2014 carrying the footer, and the Capture\n button the applicant just asked for, below the fold with nothing to\n scroll.\n\n No backticks in this comment: it lives inside a styled-components template\n literal, where one would end the template. */\n min-height: 0;\n background-clip: padding-box;\n box-shadow: inset 0 0 0 2px ", ";\n"])), function (props) {
36184
36219
  return props.$maskColor;
36185
36220
  });
36186
- var Canvas = styled.canvas(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
36221
+ var Canvas = styled.canvas(_templateObject2$b || (_templateObject2$b = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
36187
36222
 
36188
- var _templateObject$a, _templateObject2$9, _templateObject3$7, _templateObject4$5, _templateObject5$5, _templateObject6$4, _templateObject7$4, _templateObject8$4, _templateObject9$4, _templateObject0$4, _templateObject1$4, _templateObject10$4, _templateObject11$3, _templateObject12$2, _templateObject13$2, _templateObject14$2;
36223
+ var _templateObject$a, _templateObject2$a, _templateObject3$7, _templateObject4$5, _templateObject5$5, _templateObject6$4, _templateObject7$4, _templateObject8$4, _templateObject9$4, _templateObject0$4, _templateObject1$4, _templateObject10$4, _templateObject11$3, _templateObject12$2, _templateObject13$2, _templateObject14$2;
36189
36224
  /** The verbiage fallbacks, exported so the i18n parity test reads the real
36190
36225
  * literals rather than a second copy that could drift from them. */
36191
36226
  var DOCUMENT_CAPTURE_FALLBACK_VERBIAGE = {
@@ -36757,7 +36792,7 @@ var GUIDED_STACK_GAP_PX = 12;
36757
36792
  * `pointer-events: none` because nothing in here is tappable and the shutter
36758
36793
  * is centred directly below it.
36759
36794
  */
36760
- var GuidedBottomStack = styled.div(_templateObject2$9 || (_templateObject2$9 = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: 0;\n right: 0;\n z-index: 10001;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n pointer-events: none;\n\n ", "\n"])), function (_ref2) {
36795
+ var GuidedBottomStack = styled.div(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: 0;\n right: 0;\n z-index: 10001;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n pointer-events: none;\n\n ", "\n"])), function (_ref2) {
36761
36796
  var $centreY = _ref2.$centreY,
36762
36797
  $aboveShutter = _ref2.$aboveShutter;
36763
36798
  if (!$aboveShutter) {
@@ -37112,7 +37147,7 @@ var ThemeProvider = function ThemeProvider(_ref) {
37112
37147
  });
37113
37148
  };
37114
37149
 
37115
- var _templateObject$9, _templateObject2$8, _templateObject3$6, _templateObject4$4, _templateObject5$4;
37150
+ var _templateObject$9, _templateObject2$9, _templateObject3$6, _templateObject4$4, _templateObject5$4;
37116
37151
  // The `useTranslations` fallback defaults, exported so the i18n parity
37117
37152
  // guard (additionalDocumentStrings.test.ts) can assert every non-English
37118
37153
  // locale carries these exact literals by reading them from here rather than
@@ -37281,7 +37316,7 @@ function AdditionalDocumentCapture(_ref) {
37281
37316
  });
37282
37317
  }
37283
37318
  var Inner = styled(OverlayInner$2)(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
37284
- var Heading$2 = styled.h3(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
37319
+ var Heading$2 = styled.h3(_templateObject2$9 || (_templateObject2$9 = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
37285
37320
  var DescriptionText = styled.p(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
37286
37321
  var ErrorText = styled.p(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
37287
37322
  var StyledButtonsRow$2 = styled(ButtonsRow$2)(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteralLoose(["\n margin-top: 32px;\n"])));
@@ -37407,7 +37442,7 @@ function AdditionalDocumentCaptureWizard(_ref) {
37407
37442
  }, index);
37408
37443
  }
37409
37444
 
37410
- var _templateObject$8, _templateObject2$7, _templateObject3$5, _templateObject4$3, _templateObject5$3, _templateObject6$3, _templateObject7$3, _templateObject8$3, _templateObject9$3, _templateObject0$3, _templateObject1$3, _templateObject10$3;
37445
+ var _templateObject$8, _templateObject2$8, _templateObject3$5, _templateObject4$3, _templateObject5$3, _templateObject6$3, _templateObject7$3, _templateObject8$3, _templateObject9$3, _templateObject0$3, _templateObject1$3, _templateObject10$3;
37411
37446
  var CONFETTI_COUNT = 44;
37412
37447
  var CONFETTI_LIFETIME_MS = 4500;
37413
37448
  /**
@@ -37529,7 +37564,7 @@ var RingSuccessScreen = function RingSuccessScreen(_ref) {
37529
37564
  });
37530
37565
  };
37531
37566
  var fadeIn$1 = keyframes(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteralLoose(["\n from { opacity: 0; }\n to { opacity: 1; }\n"])));
37532
- var popCheck = keyframes(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteralLoose(["\n to { transform: scale(1); opacity: 1; }\n"])));
37567
+ var popCheck = keyframes(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteralLoose(["\n to { transform: scale(1); opacity: 1; }\n"])));
37533
37568
  var drawTick = keyframes(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteralLoose(["\n to { stroke-dashoffset: 0; }\n"])));
37534
37569
  var confettiFall = keyframes(_templateObject4$3 || (_templateObject4$3 = _taggedTemplateLiteralLoose(["\n to { transform: translateY(110vh) rotate(720deg); opacity: 0.7; }\n"])));
37535
37570
  // Light surface whatever the theme says — see RingFailureScreen's FailureInner
@@ -37551,7 +37586,7 @@ var StatList = styled.div(_templateObject0$3 || (_templateObject0$3 = _taggedTem
37551
37586
  var StatChip = styled.div(_templateObject1$3 || (_templateObject1$3 = _taggedTemplateLiteralLoose(["\n background: #ffffff;\n border: 1px solid rgb(0 0 0 / 0.08);\n border-radius: 12px;\n padding: 9px 14px;\n font-size: 11.5px;\n opacity: 0.9;\n display: flex;\n flex-direction: column;\n gap: 2px;\n\n b {\n font-size: 14px;\n }\n"])));
37552
37587
  var ConfettiPiece = styled.div(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 9px;\n height: 14px;\n top: -20px;\n opacity: 0.95;\n z-index: 5;\n animation-name: ", ";\n animation-timing-function: linear;\n animation-fill-mode: forwards;\n\n @media (prefers-reduced-motion: reduce) {\n display: none;\n }\n"])), confettiFall);
37553
37588
 
37554
- var _templateObject$7, _templateObject2$6, _templateObject3$4, _templateObject4$2, _templateObject5$2, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject0$2, _templateObject1$2, _templateObject10$2, _templateObject11$2, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1;
37589
+ var _templateObject$7, _templateObject2$7, _templateObject3$4, _templateObject4$2, _templateObject5$2, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject0$2, _templateObject1$2, _templateObject10$2, _templateObject11$2, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1;
37555
37590
  var toDataUrl$2 = function toDataUrl(value) {
37556
37591
  return value.startsWith('data:') ? value : "data:image/jpeg;base64," + value;
37557
37592
  };
@@ -37734,7 +37769,7 @@ var RingFailureScreen = function RingFailureScreen(_ref) {
37734
37769
  });
37735
37770
  };
37736
37771
  var enter = keyframes(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteralLoose(["\n from { opacity: 0; transform: translateY(12px); filter: blur(4px); }\n to { opacity: 1; transform: translateY(0); filter: blur(0); }\n"])));
37737
- var markIn = keyframes(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteralLoose(["\n from { opacity: 0; transform: scale(0.25); filter: blur(4px); }\n to { opacity: 1; transform: scale(1); filter: blur(0); }\n"])));
37772
+ var markIn = keyframes(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteralLoose(["\n from { opacity: 0; transform: scale(0.25); filter: blur(4px); }\n to { opacity: 1; transform: scale(1); filter: blur(0); }\n"])));
37738
37773
  // The gradient is light WHATEVER the theme says — it mixes the tint into white
37739
37774
  // rather than replacing it — so the foreground is pinned here instead of taken
37740
37775
  // from `loadingOverlay.textColor`. A 2.x theme sets that key for the DARK
@@ -37776,7 +37811,7 @@ var PrimaryAction = styled(LoaderButton)(_templateObject15$1 || (_templateObject
37776
37811
  });
37777
37812
  var SecondaryAction = styled(LoaderButton)(_templateObject16$1 || (_templateObject16$1 = _taggedTemplateLiteralLoose(["\n && {\n min-height: 44px;\n border: none;\n border-radius: 22px;\n padding: 10px 22px;\n background-color: transparent;\n color: #26312e;\n font-size: 14px;\n font-weight: 600;\n opacity: 0.7;\n box-shadow: none;\n transition-property: transform, opacity, background-color;\n transition-duration: 150ms;\n transition-timing-function: ease-out;\n\n &:hover:not(.disabled) {\n opacity: 1;\n background-color: rgb(255 255 255 / 0.45);\n }\n\n &:active:not(.disabled) {\n transform: scale(0.96);\n }\n\n &:focus-visible {\n outline: none;\n opacity: 1;\n box-shadow: 0 0 0 3px rgb(0 0 0 / 0.09);\n }\n\n @media (prefers-reduced-motion: reduce) {\n &:hover:not(.disabled),\n &:active:not(.disabled) {\n transform: none;\n }\n }\n }\n"])));
37778
37813
 
37779
- var _templateObject$6, _templateObject2$5, _templateObject3$3, _templateObject4$1, _templateObject5$1, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject0$1, _templateObject1$1, _templateObject10$1, _templateObject11$1;
37814
+ var _templateObject$6, _templateObject2$6, _templateObject3$3, _templateObject4$1, _templateObject5$1, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject0$1, _templateObject1$1, _templateObject10$1, _templateObject11$1;
37780
37815
  var toDataUrl$1 = function toDataUrl(value) {
37781
37816
  return value.startsWith('data:') ? value : "data:image/jpeg;base64," + value;
37782
37817
  };
@@ -37883,7 +37918,7 @@ var RingFinishingScreen = function RingFinishingScreen(_ref) {
37883
37918
  });
37884
37919
  };
37885
37920
  var fadeIn = keyframes(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteralLoose(["\n from { opacity: 0; }\n to { opacity: 1; }\n"])));
37886
- var spin = keyframes(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteralLoose(["\n to { transform: rotate(360deg); }\n"])));
37921
+ var spin = keyframes(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteralLoose(["\n to { transform: rotate(360deg); }\n"])));
37887
37922
  // Light surface whatever the theme says — see RingFailureScreen's FailureInner
37888
37923
  // for why the foreground is pinned rather than read from the theme.
37889
37924
  var FinishingInner = styled(LoadingOverlayInner)(_templateObject3$3 || (_templateObject3$3 = _taggedTemplateLiteralLoose(["\n background: ", ";\n color: #12211d;\n animation: ", " 250ms ease-out both;\n"])), function (props) {
@@ -37936,7 +37971,7 @@ var readFlowElapsedMs = function readFlowElapsedMs() {
37936
37971
  return flowStartedAt === null ? null : Date.now() - flowStartedAt;
37937
37972
  };
37938
37973
 
37939
- var _templateObject$5, _templateObject2$4, _templateObject3$2;
37974
+ var _templateObject$5, _templateObject2$5, _templateObject3$2;
37940
37975
  var DEFAULT_HEADING$1 = {
37941
37976
  identification: 'Customer has been identified!',
37942
37977
  verification: 'Customer has been verified!'
@@ -37994,10 +38029,10 @@ function CustomerMatchSuccess(_ref) {
37994
38029
  });
37995
38030
  }
37996
38031
  var Heading$1 = styled.h3(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n margin-bottom: 24px;\n"])));
37997
- var ImageContainer$1 = styled(ButtonsRow$2)(_templateObject2$4 || (_templateObject2$4 = _taggedTemplateLiteralLoose(["\n max-height: calc(100vh - 185px);\n"])));
38032
+ var ImageContainer$1 = styled(ButtonsRow$2)(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteralLoose(["\n max-height: calc(100vh - 185px);\n"])));
37998
38033
  var StyledButtonsRow$1 = styled(ButtonsRow$2)(_templateObject3$2 || (_templateObject3$2 = _taggedTemplateLiteralLoose(["\n margin-top: 24px;\n"])));
37999
38034
 
38000
- var _templateObject$4, _templateObject2$3, _templateObject3$1;
38035
+ var _templateObject$4, _templateObject2$4, _templateObject3$1;
38001
38036
  var DEFAULT_HEADING = {
38002
38037
  identification: 'Customer not found',
38003
38038
  verification: 'Customer not verified'
@@ -38058,7 +38093,7 @@ function CustomerMatchFailure(_ref) {
38058
38093
  });
38059
38094
  }
38060
38095
  var Heading = styled.h3(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteralLoose(["\n margin-bottom: 24px;\n"])));
38061
- var ImageContainer = styled(ButtonsRow$2)(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteralLoose(["\n max-height: calc(100vh - 185px);\n"])));
38096
+ var ImageContainer = styled(ButtonsRow$2)(_templateObject2$4 || (_templateObject2$4 = _taggedTemplateLiteralLoose(["\n max-height: calc(100vh - 185px);\n"])));
38062
38097
  var StyledButtonsRow = styled(ButtonsRow$2)(_templateObject3$1 || (_templateObject3$1 = _taggedTemplateLiteralLoose(["\n margin-top: 24px;\n"])));
38063
38098
 
38064
38099
  var SubmissionContext = /*#__PURE__*/createContext(null);
@@ -38451,10 +38486,10 @@ var highlightJson = function highlightJson(str) {
38451
38486
  return elements;
38452
38487
  };
38453
38488
 
38454
- var _templateObject$3, _templateObject2$2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24;
38455
- function _createForOfIteratorHelperLoose$c(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$c(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
38456
- function _unsupportedIterableToArray$c(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$c(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$c(r, a) : void 0; } }
38457
- function _arrayLikeToArray$c(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
38489
+ 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;
38490
+ function _createForOfIteratorHelperLoose$d(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$d(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
38491
+ function _unsupportedIterableToArray$d(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$d(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$d(r, a) : void 0; } }
38492
+ function _arrayLikeToArray$d(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
38458
38493
  var SUBMISSION_SUCCESS_FALLBACKS = {
38459
38494
  completeText: 'Submission complete',
38460
38495
  responseReceivedText: 'Response received',
@@ -38530,7 +38565,7 @@ var quickFactConfig = [{
38530
38565
  */
38531
38566
  var readDocumentId = function readDocumentId(request, path) {
38532
38567
  var node = request;
38533
- for (var _iterator = _createForOfIteratorHelperLoose$c(path), _step; !(_step = _iterator()).done;) {
38568
+ for (var _iterator = _createForOfIteratorHelperLoose$d(path), _step; !(_step = _iterator()).done;) {
38534
38569
  var segment = _step.value;
38535
38570
  if (!node || typeof node !== 'object') return null;
38536
38571
  node = node[segment];
@@ -38641,10 +38676,10 @@ var ASSET_CONFIG = [{
38641
38676
  */
38642
38677
  var TRUNCATABLE_IMAGE_PATHS = [['customerData', 'idData', 'idImageFront'], ['customerData', 'idData', 'idImageBack'], ['customerData', 'idData', 'idBarcodeImage'], ['customerData', 'idData', 'idFrontIrImage'], ['customerData', 'idData', 'idBackIrImage'], ['customerData', 'idData', 'idFrontUvImage'], ['customerData', 'idData', 'idBackUvImage'], ['customerData', 'idData', 'videoIdImageFront'], ['customerData', 'idData', 'videoIdImageBack'], ['customerData', 'biometricData', 'selfie']];
38643
38678
  function truncateImagePaths(body) {
38644
- for (var _iterator2 = _createForOfIteratorHelperLoose$c(TRUNCATABLE_IMAGE_PATHS), _step2; !(_step2 = _iterator2()).done;) {
38679
+ for (var _iterator2 = _createForOfIteratorHelperLoose$d(TRUNCATABLE_IMAGE_PATHS), _step2; !(_step2 = _iterator2()).done;) {
38645
38680
  var path = _step2.value;
38646
38681
  var node = body;
38647
- for (var _iterator3 = _createForOfIteratorHelperLoose$c(path.slice(0, -1)), _step3; !(_step3 = _iterator3()).done;) {
38682
+ for (var _iterator3 = _createForOfIteratorHelperLoose$d(path.slice(0, -1)), _step3; !(_step3 = _iterator3()).done;) {
38648
38683
  var segment = _step3.value;
38649
38684
  if (!isRecord(node)) break;
38650
38685
  node = node[segment];
@@ -39017,7 +39052,7 @@ function TimingFact(_ref9) {
39017
39052
  });
39018
39053
  }
39019
39054
  var SuccessInner = styled(OverlayInner$2)(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteralLoose(["\n box-sizing: border-box;\n max-width: 900px;\n height: auto;\n min-height: 100%;\n margin: auto;\n padding: 40px;\n text-align: left;\n"])));
39020
- var Header = styled.header(_templateObject2$2 || (_templateObject2$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 24px;\n"])));
39055
+ var Header = styled.header(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 24px;\n"])));
39021
39056
  var Eyebrow = styled.p(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n margin: 0 0 6px;\n color: #277553;\n font-size: 0.75rem;\n font-weight: 700;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n"])));
39022
39057
  var TimingGrid = styled.dl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));\n gap: 12px;\n margin: 16px 0 24px;\n"])));
39023
39058
  var TimingCard = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n padding: 14px;\n border: 1px solid #d9e2dc;\n border-radius: 8px;\n\n dt {\n color: #62706a;\n font-size: 0.75rem;\n }\n\n dd {\n margin: 6px 0 0;\n font-variant-numeric: tabular-nums;\n font-weight: 700;\n }\n"])));
@@ -39043,7 +39078,848 @@ var JsonBlockHeader = styled.div(_templateObject22 || (_templateObject22 = _tagg
39043
39078
  var JsonBlockActions = styled.div(_templateObject23 || (_templateObject23 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 8px;\n"])));
39044
39079
  var ResponsePre = styled.pre(_templateObject24 || (_templateObject24 = _taggedTemplateLiteralLoose(["\n box-sizing: border-box;\n width: 100%;\n overflow: auto;\n padding: 18px;\n border-radius: 8px;\n background: #17211d;\n color: #dff9e9;\n font-size: 0.8rem;\n line-height: 1.55;\n text-align: left;\n"])));
39045
39080
 
39046
- var _templateObject$2, _templateObject2$1;
39081
+ var _excluded$a = ["state", "size", "theme", "speed", "paused", "style", "aria-label"];
39082
+ function _createForOfIteratorHelperLoose$c(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$c(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
39083
+ function _unsupportedIterableToArray$c(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$c(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$c(r, a) : void 0; } }
39084
+ function _arrayLikeToArray$c(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
39085
+ function F(e, n) {
39086
+ var s = Math.sin(e * 12.9898 + n * 78.233) * 43758.5453;
39087
+ return s - Math.floor(s);
39088
+ }
39089
+ function st(e, n) {
39090
+ var s = Math.PI * (3 - Math.sqrt(5)),
39091
+ r = 1 - 2 * (e + 0.5) / n,
39092
+ t = Math.sqrt(1 - r * r),
39093
+ o = e * s;
39094
+ return [t * Math.cos(o), r, t * Math.sin(o)];
39095
+ }
39096
+ function ot(e, n) {
39097
+ return Math.atan2(Math.sin(e - n), Math.cos(e - n));
39098
+ }
39099
+ function q(e, n, s, r, t) {
39100
+ var o = Math.sin(n),
39101
+ c = Math.cos(n),
39102
+ a = Math.sin(e),
39103
+ i = Math.cos(e);
39104
+ return function (m, g, M) {
39105
+ var u = m * i + M * a,
39106
+ h = -m * a + M * i,
39107
+ b = g * c - h * o,
39108
+ x = g * o + h * c;
39109
+ return [s + u * t, r - b * t, x];
39110
+ };
39111
+ }
39112
+ function _(e, n, s, r) {
39113
+ if (r === void 0) {
39114
+ r = 0.3;
39115
+ }
39116
+ n.sort(function (t, o) {
39117
+ return t.z - o.z;
39118
+ });
39119
+ for (var _iterator = _createForOfIteratorHelperLoose$c(n), _step; !(_step = _iterator()).done;) {
39120
+ var _t$a;
39121
+ var t = _step.value;
39122
+ var o = (_t$a = t.a) != null ? _t$a : 1;
39123
+ if (o < 0.02) continue;
39124
+ var c = Math.min(1, Math.max(0, t.white)),
39125
+ a = Math.round((s ? 1 - c : c) * 255);
39126
+ e.fillStyle = "rgba(" + a + "," + a + "," + a + "," + o + ")", e.beginPath(), e.arc(t.x, t.y, Math.max(r, t.r), 0, Math.PI * 2), e.fill();
39127
+ }
39128
+ }
39129
+ function $(e, n) {
39130
+ return Math.pow(e / 300, n);
39131
+ }
39132
+ function et(e, n, s, r) {
39133
+ var t = 2 * n * s + r,
39134
+ o = e % t,
39135
+ c = new Array(n).fill(0);
39136
+ var a = -1;
39137
+ if (o < 2 * n * s) {
39138
+ var i = Math.floor(o / s),
39139
+ m = (o - i * s) / s,
39140
+ M = 1 - Math.pow(1 - Math.min(1, m / 0.7), 3);
39141
+ if (i < n) {
39142
+ for (var u = 0; u < i; u++) c[u] = 1;
39143
+ c[i] = M, a = i;
39144
+ } else {
39145
+ var _u = 2 * n - 1 - i;
39146
+ for (var h = 0; h < _u; h++) c[h] = 1;
39147
+ c[_u] = 1 - M, a = _u;
39148
+ }
39149
+ }
39150
+ return {
39151
+ amount: c,
39152
+ active: a
39153
+ };
39154
+ }
39155
+ function ct(e, n, s) {
39156
+ var _e = _slicedToArray(e, 3),
39157
+ r = _e[0],
39158
+ t = _e[1],
39159
+ o = _e[2],
39160
+ c = false;
39161
+ for (var a = 0; a < n.length; a++) {
39162
+ if (s.amount[a] <= 0) continue;
39163
+ var i = n[a],
39164
+ m = i.axis === 0 ? r : i.axis === 1 ? t : o;
39165
+ if (m < i.lo || m >= i.hi) continue;
39166
+ a === s.active && (c = true);
39167
+ var g = i.ang * s.amount[a],
39168
+ M = Math.cos(g),
39169
+ u = Math.sin(g);
39170
+ if (i.axis === 0) {
39171
+ var h = t * M - o * u;
39172
+ o = t * u + o * M, t = h;
39173
+ } else if (i.axis === 1) {
39174
+ var _h = r * M + o * u;
39175
+ o = -r * u + o * M, r = _h;
39176
+ } else {
39177
+ var _h2 = r * M - t * u;
39178
+ t = r * u + t * M, r = _h2;
39179
+ }
39180
+ }
39181
+ return [r, t, o, c];
39182
+ }
39183
+ function at(e) {
39184
+ var n = [];
39185
+ for (var s = 0; s < e; s++) {
39186
+ var r = Math.min(2, Math.floor(F(s, 2.3) * 3)),
39187
+ t = -1 + 0.5 * Math.min(3, Math.floor(F(s, 5.9) * 4)),
39188
+ o = F(s, 7.7) < 0.5 ? 1 : -1;
39189
+ n.push({
39190
+ axis: r,
39191
+ lo: t,
39192
+ hi: t + 0.5,
39193
+ ang: o * Math.PI / 2
39194
+ });
39195
+ }
39196
+ return n;
39197
+ }
39198
+ var rt = function rt(e, n, s, r, t) {
39199
+ var _t$scanMul, _t$rsPow, _t$dimBase, _t$latRings, _t$lonDensity;
39200
+ var c = n / 2,
39201
+ a = n / 2,
39202
+ i = n / 2 * 0.82,
39203
+ m = 0.4 + 0.06 * Math.sin(s * 0.35),
39204
+ g = q(s * 0.5, m, c, a, i),
39205
+ M = s * (0.5 + (1.7 - 0.5) * ((_t$scanMul = t.scanMul) != null ? _t$scanMul : 1)),
39206
+ u = $(n, (_t$rsPow = t.rsPow) != null ? _t$rsPow : 0.6),
39207
+ h = (_t$dimBase = t.dimBase) != null ? _t$dimBase : 1,
39208
+ b = [],
39209
+ x = (_t$latRings = t.latRings) != null ? _t$latRings : 17,
39210
+ I = (_t$lonDensity = t.lonDensity) != null ? _t$lonDensity : 44;
39211
+ for (var P = 0; P <= x; P++) {
39212
+ var y = -Math.PI / 2 + P / x * Math.PI,
39213
+ D = Math.cos(y),
39214
+ w = Math.sin(y),
39215
+ k = Math.max(1, Math.round(Math.abs(D) * I));
39216
+ for (var v = 0; v < k; v++) {
39217
+ var _t$rBase, _t$rDepth, _t$rBoost, _t$inkFar, _t$inkSpan;
39218
+ var R = v / k * 2 * Math.PI,
39219
+ _g = g(D * Math.cos(R), w, D * Math.sin(R)),
39220
+ _g2 = _slicedToArray(_g, 3),
39221
+ p = _g2[0],
39222
+ d = _g2[1],
39223
+ l = _g2[2],
39224
+ f = (l + 1) / 2,
39225
+ S = ot(R + s * 0.5, M),
39226
+ L = Math.exp(-(S * S) / 0.18) * Math.max(0, l);
39227
+ b.push({
39228
+ x: p,
39229
+ y: d,
39230
+ z: l,
39231
+ r: (((_t$rBase = t.rBase) != null ? _t$rBase : 0.6) + ((_t$rDepth = t.rDepth) != null ? _t$rDepth : 1.7) * f + ((_t$rBoost = t.rBoost) != null ? _t$rBoost : 1) * L) * u,
39232
+ white: ((_t$inkFar = t.inkFar) != null ? _t$inkFar : 0.62) - ((_t$inkSpan = t.inkSpan) != null ? _t$inkSpan : 0.54) * f,
39233
+ // dimBase < 1 fades un-scanned dots so the meridian reads clearly
39234
+ a: h + (1 - h) * Math.min(1, L)
39235
+ });
39236
+ }
39237
+ }
39238
+ _(e, b, r, t.rMin);
39239
+ },
39240
+ it = function it(e, n, s, r, t) {
39241
+ var _t$rsPow2, _t$moveCount, _t$latRings2, _t$lonDensity2;
39242
+ var o = n / 2,
39243
+ c = n / 2,
39244
+ a = n / 2 * 0.82,
39245
+ i = q(s * 0.55, 0.35 + 0.1 * Math.sin(s * 0.9), o, c, a),
39246
+ m = $(n, (_t$rsPow2 = t.rsPow) != null ? _t$rsPow2 : 0.6),
39247
+ g = (_t$moveCount = t.moveCount) != null ? _t$moveCount : 14,
39248
+ M = at(g),
39249
+ u = et(s, g, 0.42, 1.2),
39250
+ h = [],
39251
+ b = (_t$latRings2 = t.latRings) != null ? _t$latRings2 : 15,
39252
+ x = (_t$lonDensity2 = t.lonDensity) != null ? _t$lonDensity2 : 40;
39253
+ for (var I = 0; I <= b; I++) {
39254
+ var P = -Math.PI / 2 + I / b * Math.PI,
39255
+ y = Math.cos(P),
39256
+ D = Math.sin(P),
39257
+ w = Math.max(1, Math.round(Math.abs(y) * x));
39258
+ for (var k = 0; k < w; k++) {
39259
+ var _t$rBase2, _t$rDepth2, _t$rActive, _t$inkFar2, _t$inkSpan2;
39260
+ var v = k / w * 2 * Math.PI,
39261
+ _ct = ct([y * Math.cos(v), D, y * Math.sin(v)], M, u),
39262
+ _ct2 = _slicedToArray(_ct, 4),
39263
+ R = _ct2[0],
39264
+ p = _ct2[1],
39265
+ d = _ct2[2],
39266
+ l = _ct2[3],
39267
+ _i = i(R, p, d),
39268
+ _i2 = _slicedToArray(_i, 3),
39269
+ f = _i2[0],
39270
+ S = _i2[1],
39271
+ L = _i2[2],
39272
+ A = (L + 1) / 2;
39273
+ h.push({
39274
+ x: f,
39275
+ y: S,
39276
+ z: L,
39277
+ r: (((_t$rBase2 = t.rBase) != null ? _t$rBase2 : 0.6) + ((_t$rDepth2 = t.rDepth) != null ? _t$rDepth2 : 1.7) * A + (l ? (_t$rActive = t.rActive) != null ? _t$rActive : 0.3 : 0)) * m,
39278
+ white: ((_t$inkFar2 = t.inkFar) != null ? _t$inkFar2 : 0.62) - ((_t$inkSpan2 = t.inkSpan) != null ? _t$inkSpan2 : 0.54) * A - (l ? 0.14 : 0)
39279
+ });
39280
+ }
39281
+ }
39282
+ _(e, h, r, t.rMin);
39283
+ },
39284
+ ht = function ht(e, n, s, r, t) {
39285
+ var _t$rsPow3, _t$rings, _t$lonDensity3;
39286
+ var o = n / 2,
39287
+ c = n / 2,
39288
+ a = n / 2 * 0.874,
39289
+ i = q(s * 0.18, 0.38, o, c, 1),
39290
+ m = $(n, (_t$rsPow3 = t.rsPow) != null ? _t$rsPow3 : 0.6),
39291
+ g = [],
39292
+ M = (_t$rings = t.rings) != null ? _t$rings : 15,
39293
+ u = (_t$lonDensity3 = t.lonDensity) != null ? _t$lonDensity3 : 40;
39294
+ for (var h = 0; h <= M; h++) {
39295
+ var b = -Math.PI / 2 + h / M * Math.PI,
39296
+ x = Math.cos(b),
39297
+ I = Math.sin(b),
39298
+ P = 0.62 * Math.sin(s * 2.1 - h * 0.52) + 0.38 * Math.sin(s * 1.27 + h * 0.83),
39299
+ y = a * (0.88 + 0.105 * P),
39300
+ D = Math.max(1, Math.round(Math.abs(x) * u));
39301
+ for (var w = 0; w < D; w++) {
39302
+ var _t$rBase3, _t$rDepth3;
39303
+ var k = w / D * 2 * Math.PI,
39304
+ _i3 = i(x * Math.cos(k) * y, I * y, x * Math.sin(k) * y),
39305
+ _i4 = _slicedToArray(_i3, 3),
39306
+ v = _i4[0],
39307
+ R = _i4[1],
39308
+ p = _i4[2],
39309
+ d = (p / a + 1) / 2,
39310
+ l = Math.max(0, P);
39311
+ g.push({
39312
+ x: v,
39313
+ y: R,
39314
+ z: p,
39315
+ r: (((_t$rBase3 = t.rBase) != null ? _t$rBase3 : 0.6) + ((_t$rDepth3 = t.rDepth) != null ? _t$rDepth3 : 1.7) * d) * (1 + 0.4 * l) * m,
39316
+ white: 0.66 - 0.56 * d - 0.1 * l
39317
+ });
39318
+ }
39319
+ }
39320
+ _(e, g, r, t.rMin);
39321
+ };
39322
+ function lt(e) {
39323
+ return e * e * (3 - 2 * e);
39324
+ }
39325
+ function Q(e) {
39326
+ var n = e.length,
39327
+ s = [];
39328
+ var r = 0;
39329
+ for (var t = 0; t < n; t++) {
39330
+ var o = e[t],
39331
+ c = e[(t + 1) % n],
39332
+ a = Math.hypot(c[0] - o[0], c[1] - o[1]);
39333
+ s.push(a), r += a;
39334
+ }
39335
+ return function (t) {
39336
+ var o = t * r,
39337
+ c = 0;
39338
+ for (; o > s[c] && c < n - 1;) o -= s[c], c++;
39339
+ var a = e[c],
39340
+ i = e[(c + 1) % n],
39341
+ m = s[c] ? Math.min(1, o / s[c]) : 0;
39342
+ return [a[0] + (i[0] - a[0]) * m, a[1] + (i[1] - a[1]) * m];
39343
+ };
39344
+ }
39345
+ var ut = function ut(e) {
39346
+ var n = -Math.PI / 2 + e * 2 * Math.PI;
39347
+ return [Math.cos(n) * 0.24, Math.sin(n) * 0.24];
39348
+ },
39349
+ Mt = Q([[0, -0.26], [0.24, 0.16], [-0.24, 0.16]]),
39350
+ pt = Q([[0, -0.2], [0.2, -0.2], [0.2, 0.2], [-0.2, 0.2], [-0.2, -0.2]]),
39351
+ Y = [ut, Mt, pt];
39352
+ function dt(e) {
39353
+ return Math.max(6, Math.round(34 * e));
39354
+ }
39355
+ var U = 1.4,
39356
+ J = 0.9,
39357
+ K = U + J,
39358
+ ft = function ft(e, n, s, r, t) {
39359
+ var _t$spread, _t$iconD, _t$rDot;
39360
+ var o = Y.length,
39361
+ c = s % (K * o),
39362
+ a = Math.floor(c / K),
39363
+ i = c - a * K,
39364
+ m = i > U ? lt((i - U) / J) : 0,
39365
+ g = (_t$spread = t.spread) != null ? _t$spread : 1,
39366
+ M = Y[a],
39367
+ u = Y[(a + 1) % o],
39368
+ h = 160,
39369
+ b = [];
39370
+ for (var p = 0; p < h; p++) {
39371
+ var d = p / h,
39372
+ l = M(d),
39373
+ f = u(d);
39374
+ b.push([(l[0] + (f[0] - l[0]) * m) * g, (l[1] + (f[1] - l[1]) * m) * g]);
39375
+ }
39376
+ var x = [];
39377
+ var I = 0;
39378
+ for (var _p = 0; _p < h; _p++) {
39379
+ var _d = b[_p],
39380
+ _l = b[(_p + 1) % h],
39381
+ _f = Math.hypot(_l[0] - _d[0], _l[1] - _d[1]);
39382
+ x.push(_f), I += _f;
39383
+ }
39384
+ var P = dt((_t$iconD = t.iconD) != null ? _t$iconD : 1),
39385
+ y = ((_t$rDot = t.rDot) != null ? _t$rDot : 0.021) * 1.35 * g,
39386
+ D = 1 + 0.02 * Math.sin(i * 3.1),
39387
+ w = [],
39388
+ k = n / 2;
39389
+ var v = 0,
39390
+ R = 0;
39391
+ for (var _p2 = 0; _p2 < P; _p2++) {
39392
+ var _d2 = _p2 / P * I;
39393
+ for (; R + x[v] < _d2 && v < h - 1;) R += x[v], v++;
39394
+ var _l2 = b[v],
39395
+ _f2 = b[(v + 1) % h],
39396
+ S = x[v] ? Math.min(1, (_d2 - R) / x[v]) : 0,
39397
+ L = (_l2[0] + (_f2[0] - _l2[0]) * S) * D,
39398
+ A = (_l2[1] + (_f2[1] - _l2[1]) * S) * D;
39399
+ w.push({
39400
+ x: k + L * n,
39401
+ y: k + A * n,
39402
+ z: 0,
39403
+ r: Math.max(0.35, y * n),
39404
+ white: 0.1
39405
+ });
39406
+ }
39407
+ _(e, w, r, t.rMin);
39408
+ },
39409
+ mt = function mt(e, n, s, r, t) {
39410
+ var _t$rsPow4, _t$orbitN, _t$ghostN, _t$particles;
39411
+ var o = n / 2,
39412
+ c = n / 2,
39413
+ a = n / 2 * 0.82,
39414
+ i = q(s * 0.12, 0.3, o, c, 1),
39415
+ m = $(n, (_t$rsPow4 = t.rsPow) != null ? _t$rsPow4 : 0.6),
39416
+ g = [],
39417
+ M = (_t$orbitN = t.orbitN) != null ? _t$orbitN : 12,
39418
+ u = (_t$ghostN = t.ghostN) != null ? _t$ghostN : 40,
39419
+ h = (_t$particles = t.particles) != null ? _t$particles : 3;
39420
+ for (var b = 0; b < M; b++) {
39421
+ var x = F(b, 1.7),
39422
+ I = F(b, 5.2),
39423
+ P = F(b, 8.9),
39424
+ y = a * (0.45 + 0.52 * x),
39425
+ D = x * 2 * Math.PI,
39426
+ w = Math.acos(2 * I - 1),
39427
+ k = Math.sin(w) * Math.cos(D),
39428
+ v = Math.cos(w),
39429
+ R = Math.sin(w) * Math.sin(D);
39430
+ var p = -v,
39431
+ d = k;
39432
+ var l = 0,
39433
+ f = Math.max(1e-6, Math.sqrt(p * p + d * d));
39434
+ p /= f, d /= f;
39435
+ var S = v * l - R * d,
39436
+ L = R * p - k * l,
39437
+ A = k * d - v * p,
39438
+ B = (0.25 + 0.55 * P) * (P > 0.5 ? 1 : -1);
39439
+ for (var C = 0; C < u; C++) {
39440
+ var _t$ghostR, _t$ghostA;
39441
+ var E = C / u * 2 * Math.PI,
39442
+ _i5 = i((p * Math.cos(E) + S * Math.sin(E)) * y, (d * Math.cos(E) + L * Math.sin(E)) * y, (l * Math.cos(E) + A * Math.sin(E)) * y),
39443
+ _i6 = _slicedToArray(_i5, 3),
39444
+ T = _i6[0],
39445
+ z = _i6[1],
39446
+ N = _i6[2],
39447
+ O = (N / y + 1) / 2;
39448
+ g.push({
39449
+ x: T,
39450
+ y: z,
39451
+ z: N,
39452
+ r: ((_t$ghostR = t.ghostR) != null ? _t$ghostR : 0.9) * m,
39453
+ white: 0.72,
39454
+ a: ((_t$ghostA = t.ghostA) != null ? _t$ghostA : 0.5) * (0.4 + 0.6 * O)
39455
+ });
39456
+ }
39457
+ for (var _C = 0; _C < h; _C++) {
39458
+ var _t$partR, _t$partRDepth;
39459
+ var _E = s * B + _C / h * 2 * Math.PI + I * 6,
39460
+ _i7 = i((p * Math.cos(_E) + S * Math.sin(_E)) * y, (d * Math.cos(_E) + L * Math.sin(_E)) * y, (l * Math.cos(_E) + A * Math.sin(_E)) * y),
39461
+ _i8 = _slicedToArray(_i7, 3),
39462
+ _T = _i8[0],
39463
+ _z = _i8[1],
39464
+ _N = _i8[2],
39465
+ _O = (_N / y + 1) / 2;
39466
+ g.push({
39467
+ x: _T,
39468
+ y: _z,
39469
+ z: _N,
39470
+ r: (((_t$partR = t.partR) != null ? _t$partR : 1.2) + ((_t$partRDepth = t.partRDepth) != null ? _t$partRDepth : 1.6) * _O) * m,
39471
+ white: 0.3 - 0.22 * _O
39472
+ });
39473
+ }
39474
+ }
39475
+ _(e, g, r, t.rMin);
39476
+ },
39477
+ gt = function gt(e, n, s, r, t) {
39478
+ var _t$spin, _t$rsPow5, _t$ghostN2, _t$lanes, _t$segs, _t$bandMul;
39479
+ var o = n / 2,
39480
+ c = n / 2,
39481
+ a = n / 2 * 0.78,
39482
+ i = (_t$spin = t.spin) != null ? _t$spin : 1,
39483
+ m = q(s * 0.1 * i, 0.3, o, c, 1),
39484
+ g = $(n, (_t$rsPow5 = t.rsPow) != null ? _t$rsPow5 : 0.6),
39485
+ M = [],
39486
+ u = (_t$ghostN2 = t.ghostN) != null ? _t$ghostN2 : 150;
39487
+ for (var f = 0; f < u; f++) {
39488
+ var S = st(f, u),
39489
+ _m = m(S[0] * a, S[1] * a, S[2] * a),
39490
+ _m2 = _slicedToArray(_m, 3),
39491
+ L = _m2[0],
39492
+ A = _m2[1],
39493
+ B = _m2[2],
39494
+ C = (B / a + 1) / 2;
39495
+ M.push({
39496
+ x: L,
39497
+ y: A,
39498
+ z: B,
39499
+ r: 0.8 * g,
39500
+ white: 0.78,
39501
+ a: 0.1 + 0.22 * C
39502
+ });
39503
+ }
39504
+ var h = s * 0.24 * i,
39505
+ b = 0.55 + 0.3 * Math.sin(s * 0.18) * i,
39506
+ x = Math.cos(h),
39507
+ I = 0,
39508
+ P = Math.sin(h),
39509
+ y = -P * Math.sin(b),
39510
+ D = Math.cos(b),
39511
+ w = x * Math.sin(b),
39512
+ k = I * w - P * D,
39513
+ v = P * y - x * w,
39514
+ R = x * D - I * y,
39515
+ p = (_t$lanes = t.lanes) != null ? _t$lanes : 5,
39516
+ d = (_t$segs = t.segs) != null ? _t$segs : 88,
39517
+ l = Math.max(1, Math.round(p * ((_t$bandMul = t.bandMul) != null ? _t$bandMul : 1)));
39518
+ for (var _f3 = 0; _f3 < l; _f3++) {
39519
+ var _S = (_f3 - (l - 1) / 2) * 0.075,
39520
+ _L = Math.abs(_f3 - (l - 1) / 2) / Math.max(1, (l - 1) / 2);
39521
+ for (var _A = 0; _A < d; _A++) {
39522
+ var _t$wobMul, _t$rBase4, _t$rDepth4;
39523
+ var _B = _A / d * 2 * Math.PI,
39524
+ _C2 = (0.16 * Math.sin(_B * 3 - s * 1.7 + _f3 * 0.22) + 0.07 * Math.sin(_B * 5 + s * 1.1)) * ((_t$wobMul = t.wobMul) != null ? _t$wobMul : 1),
39525
+ E = _S + _C2,
39526
+ T = x * Math.cos(_B) + y * Math.sin(_B) + k * E,
39527
+ z = I * Math.cos(_B) + D * Math.sin(_B) + v * E,
39528
+ N = P * Math.cos(_B) + w * Math.sin(_B) + R * E,
39529
+ O = Math.sqrt(T * T + z * z + N * N),
39530
+ _m3 = m(T / O * a, z / O * a, N / O * a),
39531
+ _m4 = _slicedToArray(_m3, 3),
39532
+ X = _m4[0],
39533
+ Z = _m4[1],
39534
+ W = _m4[2],
39535
+ j = (W / a + 1) / 2;
39536
+ M.push({
39537
+ x: X,
39538
+ y: Z,
39539
+ z: W,
39540
+ r: (((_t$rBase4 = t.rBase) != null ? _t$rBase4 : 1.1) + ((_t$rDepth4 = t.rDepth) != null ? _t$rDepth4 : 1.7) * j) * (1 - 0.25 * _L) * g,
39541
+ white: 0.52 - 0.44 * j + 0.18 * _L,
39542
+ a: 0.4 + 0.6 * j
39543
+ });
39544
+ }
39545
+ }
39546
+ _(e, M, r, t.rMin);
39547
+ },
39548
+ bt = {
39549
+ orbits: mt,
39550
+ globe: rt,
39551
+ rubik: it,
39552
+ wave: ht,
39553
+ ribbon: gt,
39554
+ morph: ft
39555
+ },
39556
+ yt = [["latRings", "lonDensity"], ["rings", "lonDensity"], ["lanes", "segs"]],
39557
+ xt = ["orbitN", "ghostN"],
39558
+ vt = ["iconD"],
39559
+ wt = ["rBase", "rDepth", "rActive", "rDot", "ghostR", "partR", "partRDepth"];
39560
+ function kt(e, n) {
39561
+ var s = _extends({}, e),
39562
+ r = /* @__PURE__ */new Set(),
39563
+ t = Math.sqrt(n);
39564
+ for (var _iterator2 = _createForOfIteratorHelperLoose$c(yt), _step2; !(_step2 = _iterator2()).done;) {
39565
+ var _step2$value = _slicedToArray(_step2.value, 2),
39566
+ o = _step2$value[0],
39567
+ c = _step2$value[1];
39568
+ var a = s[o],
39569
+ i = s[c];
39570
+ a != null && i != null && !r.has(o) && !r.has(c) && (s[o] = Math.max(2, Math.round(a * t)), s[c] = Math.max(2, Math.round(i * t)), r.add(o), r.add(c));
39571
+ }
39572
+ for (var _iterator3 = _createForOfIteratorHelperLoose$c(xt), _step3; !(_step3 = _iterator3()).done;) {
39573
+ var _o = _step3.value;
39574
+ var _c = s[_o];
39575
+ _c != null && !r.has(_o) && (s[_o] = Math.max(1, Math.round(_c * n)));
39576
+ }
39577
+ for (var _iterator4 = _createForOfIteratorHelperLoose$c(vt), _step4; !(_step4 = _iterator4()).done;) {
39578
+ var _o2 = _step4.value;
39579
+ var _c2 = s[_o2];
39580
+ _c2 != null && (s[_o2] = Math.max(0.02, _c2 * n));
39581
+ }
39582
+ return s;
39583
+ }
39584
+ function Pt(e, n) {
39585
+ var _s$rSizeMul;
39586
+ var s = _extends({}, e);
39587
+ for (var _iterator5 = _createForOfIteratorHelperLoose$c(wt), _step5; !(_step5 = _iterator5()).done;) {
39588
+ var r = _step5.value;
39589
+ var t = s[r];
39590
+ t != null && (s[r] = t * n);
39591
+ }
39592
+ return s.rSizeMul = ((_s$rSizeMul = s.rSizeMul) != null ? _s$rSizeMul : 1) * n, s;
39593
+ }
39594
+ var Dt = {
39595
+ globe: {
39596
+ latRings: 17,
39597
+ lonDensity: 44,
39598
+ rBase: 0.6,
39599
+ rDepth: 1.7,
39600
+ rBoost: 1,
39601
+ inkFar: 0.62,
39602
+ inkSpan: 0.54,
39603
+ rsPow: 0.6,
39604
+ rMin: 0.3
39605
+ },
39606
+ orbits: {
39607
+ orbitN: 12,
39608
+ ghostN: 40,
39609
+ ghostR: 0.9,
39610
+ ghostA: 0.5,
39611
+ particles: 3,
39612
+ partR: 1.2,
39613
+ partRDepth: 1.6,
39614
+ rsPow: 0.6,
39615
+ rMin: 0.3
39616
+ },
39617
+ rubik: {
39618
+ latRings: 15,
39619
+ lonDensity: 40,
39620
+ moveCount: 14,
39621
+ rBase: 0.6,
39622
+ rDepth: 1.7,
39623
+ rActive: 0.3,
39624
+ inkFar: 0.62,
39625
+ inkSpan: 0.54,
39626
+ rsPow: 0.6,
39627
+ rMin: 0.3
39628
+ },
39629
+ wave: {
39630
+ rings: 15,
39631
+ lonDensity: 40,
39632
+ rBase: 0.6,
39633
+ rDepth: 1.7,
39634
+ rsPow: 0.6,
39635
+ rMin: 0.3
39636
+ },
39637
+ ribbon: {
39638
+ lanes: 5,
39639
+ segs: 88,
39640
+ ghostN: 150,
39641
+ rBase: 1.1,
39642
+ rDepth: 1.7,
39643
+ rsPow: 0.6,
39644
+ rMin: 0.3
39645
+ },
39646
+ morph: {
39647
+ rDot: 0.021,
39648
+ iconD: 1,
39649
+ rMin: 0.25
39650
+ }
39651
+ },
39652
+ Rt = {
39653
+ working: "orbits",
39654
+ searching: "globe",
39655
+ solving: "rubik",
39656
+ listening: "wave",
39657
+ composing: "ribbon",
39658
+ shaping: "morph"
39659
+ },
39660
+ St = {
39661
+ orbits: {
39662
+ 64: {
39663
+ speed: 1.885,
39664
+ count: 1,
39665
+ size: 1
39666
+ },
39667
+ 20: {
39668
+ speed: 3.9,
39669
+ count: 0.238,
39670
+ size: 2.4
39671
+ }
39672
+ },
39673
+ globe: {
39674
+ 64: {
39675
+ speed: 2.015,
39676
+ count: 0.42,
39677
+ size: 1.15,
39678
+ extra: {
39679
+ scanMul: 4.08,
39680
+ dimBase: 0.45
39681
+ }
39682
+ },
39683
+ 20: {
39684
+ speed: 2.665,
39685
+ count: 0.105,
39686
+ size: 1.75,
39687
+ extra: {
39688
+ scanMul: 4.335,
39689
+ dimBase: 0.45
39690
+ }
39691
+ }
39692
+ },
39693
+ rubik: {
39694
+ 64: {
39695
+ speed: 1.82,
39696
+ count: 0.35,
39697
+ size: 1.05
39698
+ },
39699
+ 20: {
39700
+ speed: 1.95,
39701
+ count: 0.088,
39702
+ size: 1.9
39703
+ }
39704
+ },
39705
+ wave: {
39706
+ 64: {
39707
+ speed: 4.388,
39708
+ count: 0.341,
39709
+ size: 1
39710
+ },
39711
+ 20: {
39712
+ speed: 3.998,
39713
+ count: 0.105,
39714
+ size: 1.6
39715
+ }
39716
+ },
39717
+ ribbon: {
39718
+ 64: {
39719
+ speed: 2.34,
39720
+ count: 0.25,
39721
+ size: 0.85,
39722
+ extra: {
39723
+ spin: 0,
39724
+ bandMul: 3.9,
39725
+ wobMul: 1
39726
+ }
39727
+ },
39728
+ 20: {
39729
+ speed: 3.12,
39730
+ count: 0.051,
39731
+ size: 1.073,
39732
+ extra: {
39733
+ spin: 0,
39734
+ bandMul: 4.94,
39735
+ wobMul: 1
39736
+ }
39737
+ }
39738
+ },
39739
+ morph: {
39740
+ 64: {
39741
+ speed: 2.405,
39742
+ count: 0.54,
39743
+ size: 0.395,
39744
+ extra: {
39745
+ spread: 1.45
39746
+ }
39747
+ },
39748
+ 20: {
39749
+ speed: 2.08,
39750
+ count: 0.53,
39751
+ size: 1.011,
39752
+ extra: {
39753
+ spread: 1.45
39754
+ }
39755
+ }
39756
+ }
39757
+ },
39758
+ H = /* @__PURE__ */new Map();
39759
+ function It(e, n) {
39760
+ var s = e + "-" + n,
39761
+ r = H.get(s);
39762
+ if (r) return r;
39763
+ var t = Rt[e],
39764
+ o = St[t][n];
39765
+ var c = _extends({}, Dt[t]);
39766
+ o.count !== 1 && (c = kt(c, o.count)), o.size !== 1 && (c = Pt(c, o.size)), o.extra && (c = _extends({}, c, o.extra));
39767
+ var a = {
39768
+ mode: t,
39769
+ speed: o.speed,
39770
+ opts: c
39771
+ };
39772
+ return H.set(s, a), a;
39773
+ }
39774
+ function Et(e) {
39775
+ var n = e;
39776
+ for (; n;) {
39777
+ var s = n.getAttribute("data-theme");
39778
+ if (s === "dark") return true;
39779
+ if (s === "light") return false;
39780
+ if (n.classList.contains("dark")) return true;
39781
+ if (n.classList.contains("light")) return false;
39782
+ n = n.parentElement;
39783
+ }
39784
+ return null;
39785
+ }
39786
+ function Lt() {
39787
+ return typeof matchMedia > "u" || matchMedia("(prefers-color-scheme: dark)").matches;
39788
+ }
39789
+ function At(e, n) {
39790
+ var _V = useState(true),
39791
+ _V2 = _slicedToArray(_V, 2),
39792
+ s = _V2[0],
39793
+ r = _V2[1];
39794
+ return useEffect(function () {
39795
+ if (e === "dark") {
39796
+ r(true);
39797
+ return;
39798
+ }
39799
+ if (e === "light") {
39800
+ r(false);
39801
+ return;
39802
+ }
39803
+ var t = function t() {
39804
+ var i = Et(n.current);
39805
+ r(i != null ? i : Lt());
39806
+ };
39807
+ t();
39808
+ var o = typeof matchMedia < "u" ? matchMedia("(prefers-color-scheme: dark)") : null,
39809
+ c = function c() {
39810
+ return t();
39811
+ };
39812
+ o == null || o.addEventListener("change", c);
39813
+ var a = null;
39814
+ return typeof MutationObserver < "u" && n.current && (a = new MutationObserver(t), a.observe(document.documentElement, {
39815
+ attributes: true,
39816
+ attributeFilter: ["class", "data-theme"],
39817
+ subtree: true
39818
+ })), function () {
39819
+ o == null || o.removeEventListener("change", c), a == null || a.disconnect();
39820
+ };
39821
+ }, [e, n]), s;
39822
+ }
39823
+ function Bt() {
39824
+ var _V3 = useState(false),
39825
+ _V4 = _slicedToArray(_V3, 2),
39826
+ e = _V4[0],
39827
+ n = _V4[1];
39828
+ return useEffect(function () {
39829
+ if (typeof matchMedia > "u") return;
39830
+ var s = matchMedia("(prefers-reduced-motion: reduce)");
39831
+ n(s.matches);
39832
+ var r = function r(t) {
39833
+ return n(t.matches);
39834
+ };
39835
+ return s.addEventListener("change", r), function () {
39836
+ return s.removeEventListener("change", r);
39837
+ };
39838
+ }, []), e;
39839
+ }
39840
+ var Ct = {
39841
+ working: "Working…",
39842
+ searching: "Searching…",
39843
+ solving: "Solving…",
39844
+ listening: "Listening…",
39845
+ composing: "Composing…",
39846
+ shaping: "Shaping…"
39847
+ };
39848
+ function Tt(_ref) {
39849
+ var _ref$state = _ref.state,
39850
+ e = _ref$state === void 0 ? "working" : _ref$state,
39851
+ _ref$size = _ref.size,
39852
+ n = _ref$size === void 0 ? 64 : _ref$size,
39853
+ _ref$theme = _ref.theme,
39854
+ s = _ref$theme === void 0 ? "auto" : _ref$theme,
39855
+ _ref$speed = _ref.speed,
39856
+ r = _ref$speed === void 0 ? 1 : _ref$speed,
39857
+ _ref$paused = _ref.paused,
39858
+ t = _ref$paused === void 0 ? false : _ref$paused,
39859
+ o = _ref.style,
39860
+ c = _ref["aria-label"],
39861
+ a = _objectWithoutPropertiesLoose(_ref, _excluded$a);
39862
+ var i = useRef(null),
39863
+ m = At(s, i),
39864
+ g = Bt();
39865
+ return useEffect(function () {
39866
+ var M = i.current;
39867
+ if (!M) return;
39868
+ var u = Math.min(2, typeof devicePixelRatio < "u" && devicePixelRatio || 1);
39869
+ M.width = Math.round(n * u), M.height = Math.round(n * u);
39870
+ var h = M.getContext("2d");
39871
+ if (!h) return;
39872
+ var _It = It(e, n),
39873
+ b = _It.mode,
39874
+ x = _It.speed,
39875
+ I = _It.opts,
39876
+ P = bt[b],
39877
+ y = x * r,
39878
+ D = function D(S) {
39879
+ h.setTransform(u, 0, 0, u, 0, 0), h.clearRect(0, 0, n, n), P(h, n, S, m, I);
39880
+ };
39881
+ if (g) {
39882
+ D(0.6);
39883
+ return;
39884
+ }
39885
+ var w = 0,
39886
+ k = false;
39887
+ var _v = function v() {
39888
+ D(performance.now() / 1e3 * y), k && (w = requestAnimationFrame(_v));
39889
+ },
39890
+ R = function R() {
39891
+ k || t || (k = true, w = requestAnimationFrame(_v));
39892
+ },
39893
+ p = function p() {
39894
+ k = false, cancelAnimationFrame(w);
39895
+ };
39896
+ D(performance.now() / 1e3 * y);
39897
+ var d = true;
39898
+ var l = typeof IntersectionObserver < "u" ? new IntersectionObserver(function (_ref2) {
39899
+ var _ref3 = _slicedToArray(_ref2, 1),
39900
+ S = _ref3[0];
39901
+ d = S.isIntersecting, d && document.visibilityState !== "hidden" ? R() : p();
39902
+ }) : null;
39903
+ l == null || l.observe(M);
39904
+ var f = function f() {
39905
+ document.visibilityState === "hidden" ? p() : d && R();
39906
+ };
39907
+ return document.addEventListener("visibilitychange", f), l || R(), function () {
39908
+ p(), l == null || l.disconnect(), document.removeEventListener("visibilitychange", f);
39909
+ };
39910
+ }, [e, n, m, r, t, g]), /* @__PURE__ */jsx("canvas", _extends({
39911
+ ref: i,
39912
+ role: "img",
39913
+ "aria-label": c != null ? c : Ct[e],
39914
+ style: _extends({
39915
+ width: n,
39916
+ height: n,
39917
+ display: "block"
39918
+ }, o)
39919
+ }, a));
39920
+ }
39921
+
39922
+ var _templateObject$2, _templateObject2$2;
39047
39923
  function OrbStatusScreen(_ref) {
39048
39924
  var state = _ref.state,
39049
39925
  text = _ref.text,
@@ -39051,7 +39927,7 @@ function OrbStatusScreen(_ref) {
39051
39927
  loadingStage = _ref.loadingStage;
39052
39928
  var theme = useTheme();
39053
39929
  var label = accessibleLabel != null ? accessibleLabel : typeof text === 'string' ? text : undefined;
39054
- var orb = jsx(ThinkingOrb, {
39930
+ var orb = jsx(Tt, {
39055
39931
  state: state,
39056
39932
  size: 64,
39057
39933
  style: {
@@ -39105,7 +39981,7 @@ var Root = styled.div(_templateObject$2 || (_templateObject$2 = _taggedTemplateL
39105
39981
  var _props$theme$textColo;
39106
39982
  return (_props$theme$textColo = props.theme.textColor) != null ? _props$theme$textColo : '#26332e';
39107
39983
  });
39108
- var Label = styled.span(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteralLoose(["\n max-width: 32rem;\n text-align: center;\n text-wrap: pretty;\n font-size: 14px;\n font-weight: 600;\n letter-spacing: 0.01em;\n"])));
39984
+ var Label = styled.span(_templateObject2$2 || (_templateObject2$2 = _taggedTemplateLiteralLoose(["\n max-width: 32rem;\n text-align: center;\n text-wrap: pretty;\n font-size: 14px;\n font-weight: 600;\n letter-spacing: 0.01em;\n"])));
39109
39985
 
39110
39986
  function CompositeWizard(_ref) {
39111
39987
  var _successScreen$isAppr;
@@ -40065,7 +40941,7 @@ function RemoteDiagnosticsMount(_ref) {
40065
40941
  return null;
40066
40942
  }
40067
40943
 
40068
- var _templateObject$1;
40944
+ var _templateObject$1, _templateObject2$1;
40069
40945
  var _excluded$9 = ["client", "action", "submission", "theme", "className", "geolocationEnabled", "geolocationRequired", "captureProgress", "remoteDiagnostics", "loadingSpinner", "children"];
40070
40946
  function FlowChassis(_ref) {
40071
40947
  var client = _ref.client,
@@ -40159,7 +41035,26 @@ function AuthGate(_ref2) {
40159
41035
  return null;
40160
41036
  }
40161
41037
  }
40162
- var FlowPage = styled.div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n position: relative;\n width: 100%;\n height: 100%;\n min-height: 320px;\n overflow: hidden;\n isolation: isolate;\n background: ", ";\n ", "\n ", "\n"])), function (props) {
41038
+ /**
41039
+ * The flow's page surface: `theme.header` and `theme.footer` (2.x's
41040
+ * SdkPage.tsx:41) frame a body that takes the remaining height and is the
41041
+ * positioned ancestor every flow stage lays out against.
41042
+ */
41043
+ function FlowPage(_ref3) {
41044
+ var className = _ref3.className,
41045
+ children = _ref3.children;
41046
+ var _useTheme = useTheme(),
41047
+ Header = _useTheme.header,
41048
+ Footer = _useTheme.footer;
41049
+ return jsxs(FlowPageOuter, {
41050
+ className: className,
41051
+ children: [Header && jsx(Header, {}), jsx(FlowPageBody, {
41052
+ children: children
41053
+ }), Footer && jsx(Footer, {})]
41054
+ });
41055
+ }
41056
+ var FlowPageBody = styled.div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n position: relative;\n flex: 1;\n min-height: 0;\n overflow: hidden;\n isolation: isolate;\n"])));
41057
+ var FlowPageOuter = styled.div(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n min-height: 320px;\n overflow: hidden;\n isolation: isolate;\n background: ", ";\n ", "\n ", "\n"])), function (props) {
40163
41058
  var _props$theme$backgrou;
40164
41059
  return (_props$theme$backgrou = props.theme.background) != null ? _props$theme$backgrou : '#fff';
40165
41060
  }, function (props) {
@@ -48016,7 +48911,7 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
48016
48911
  });
48017
48912
  }
48018
48913
 
48019
- var webSdkVersion = '2.5.61';
48914
+ var webSdkVersion = '2.5.62-react16compat.0';
48020
48915
 
48021
48916
  var MAPPED = 'mapped';
48022
48917
  var NOOP = 'dropped-noop';
@@ -49017,6 +49912,25 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
49017
49912
  }, mapCustomerIdAndBiometricsEnrollmentProps(props, ctx)), props.children);
49018
49913
  };
49019
49914
 
49915
+ /**
49916
+ * react-16-compat: React 16/17 have no `createRoot`, so this adapts the legacy
49917
+ * `ReactDOM.render` API to the root shape the rest of this module expects.
49918
+ * Keeping that shape means the teardown logic below stays byte-identical to
49919
+ * develop and merges cleanly. Runs on React 16.14 through 18; React 19
49920
+ * removed `ReactDOM.render`, which is why this build's peer range stops at 18.
49921
+ */
49922
+ function createRoot(container) {
49923
+ return {
49924
+ render: function render(element) {
49925
+ // eslint-disable-next-line react/no-deprecated -- the only mount API React 16 has
49926
+ ReactDOM.render(element, container);
49927
+ },
49928
+ unmount: function unmount() {
49929
+ // eslint-disable-next-line react/no-deprecated -- pairs with ReactDOM.render above
49930
+ ReactDOM.unmountComponentAtNode(container);
49931
+ }
49932
+ };
49933
+ }
49020
49934
  /**
49021
49935
  * Targets whose `remove` this module has already wrapped. Permanent: the
49022
49936
  * wrapper is installed at most once per element, so repeat renders can never
@@ -49044,8 +49958,7 @@ function renderElement(component, targetElement) {
49044
49958
  targetElement = document.createElement('div');
49045
49959
  document.body.append(targetElement);
49046
49960
  }
49047
- var root = ReactDOM.createRoot(targetElement);
49048
- root.render(/*#__PURE__*/React.createElement(OverlayContainer, null, component));
49961
+ var root = createRoot(targetElement);
49049
49962
  if ('remove' in targetElement) {
49050
49963
  var element_1 = targetElement;
49051
49964
  // Always point at the newest root, even when the wrapper is already
@@ -49095,6 +50008,10 @@ function renderElement(component, targetElement) {
49095
50008
  };
49096
50009
  }
49097
50010
  }
50011
+ // react-16-compat: render LAST. A legacy root mounts synchronously, so layout
50012
+ // effects (e.g. a customer `loadingSpinner`) run inside this call; one that
50013
+ // calls `.remove()` must already hit the wrapper above, not the native method.
50014
+ root.render(/*#__PURE__*/React.createElement(OverlayContainer, null, component));
49098
50015
  return targetElement;
49099
50016
  }
49100
50017
  function renderComponent(Component, targetElement, options) {