@incodetech/core 0.0.0-dev-20260610-8787196e → 0.0.0-dev-20260610-e5b4c4d5

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.
Files changed (208) hide show
  1. package/dist/{OpenViduRecordingProvider-BtAVDH2Y.esm.js → OpenViduRecordingProvider-O4GjBseO.esm.js} +1 -1
  2. package/dist/StreamCanvasCapture-ImiDQdVA.esm.js +118 -0
  3. package/dist/StreamCanvasCapture-yyl20qd9.d.ts +152 -0
  4. package/dist/{addressSearch-DPmseXCM.esm.js → addressSearch-rHF9QriL.esm.js} +4 -4
  5. package/dist/{ae-signature-lqjX_h2U.esm.js → ae-signature-CQjOxLrv.esm.js} +1 -1
  6. package/dist/ae-signature.d.ts +3 -3
  7. package/dist/ae-signature.esm.js +7 -7
  8. package/dist/antifraud.d.ts +3 -3
  9. package/dist/antifraud.esm.js +6 -6
  10. package/dist/{antifraudManager-DaUfoGLZ.esm.js → antifraudManager-CZDCQli0.esm.js} +3 -3
  11. package/dist/{antifraudManager-Bbgl_P0Y.d.ts → antifraudManager-CznnhyvD.d.ts} +2 -2
  12. package/dist/{antifraudStateMachine-DmhL7cti.esm.js → antifraudStateMachine-Bp7yS1LV.esm.js} +3 -3
  13. package/dist/authentication.d.ts +13 -12
  14. package/dist/authentication.esm.js +27 -25
  15. package/dist/{authenticationManager-DIN4eL_6.esm.js → authenticationManager-C3-IUymg.esm.js} +6 -6
  16. package/dist/{authenticationManager-ozJVUfiA.d.ts → authenticationManager-CIVY80H9.d.ts} +2 -2
  17. package/dist/{authenticationStateMachine-DzrcG7XX.esm.js → authenticationStateMachine-3HbNfPoL.esm.js} +8 -8
  18. package/dist/{backCameraStream-BtCwSIuT.esm.js → backCameraStream-D7Wo4Nbx.esm.js} +3 -3
  19. package/dist/{browserSimulation-CHpyEI-W.esm.js → browserSimulation-B1dWiXp7.esm.js} +2 -2
  20. package/dist/camera.d.ts +1 -1
  21. package/dist/camera.esm.js +4 -4
  22. package/dist/canvas-SKcRBxsk.esm.js +230 -0
  23. package/dist/consent.d.ts +3 -3
  24. package/dist/consent.esm.js +6 -6
  25. package/dist/{consentManager-CHV12fjQ.d.ts → consentManager-66SjOJ7U.d.ts} +52 -52
  26. package/dist/{consentManager-D0NGejCx.esm.js → consentManager-DOufCKTj.esm.js} +3 -3
  27. package/dist/{consentStateMachine-CUOuuC7d.esm.js → consentStateMachine-CUVp1kKY.esm.js} +3 -3
  28. package/dist/cpf-ocr.d.ts +3 -3
  29. package/dist/cpf-ocr.esm.js +6 -6
  30. package/dist/{cpfOcrManager-9ciXe_XT.esm.js → cpfOcrManager-Bm5OlZSa.esm.js} +5 -5
  31. package/dist/{cpfOcrManager-BR_dJaKV.d.ts → cpfOcrManager-DVSJov4W.d.ts} +22 -22
  32. package/dist/cross-document-data-match.d.ts +1 -1
  33. package/dist/cross-document-data-match.esm.js +5 -5
  34. package/dist/curp-validation.d.ts +7 -7
  35. package/dist/curp-validation.esm.js +6 -6
  36. package/dist/{curpValidationManager-BJDxY7JH.esm.js → curpValidationManager-CMXS-tjU.esm.js} +3 -3
  37. package/dist/{curpValidationManager-VE0Ndj36.d.ts → curpValidationManager-DIFa6O03.d.ts} +3 -3
  38. package/dist/{curpValidationStateMachine-BBUREbWY.esm.js → curpValidationStateMachine-CD-npCgV.esm.js} +3 -3
  39. package/dist/custom-fields.d.ts +2 -2
  40. package/dist/custom-fields.esm.js +5 -5
  41. package/dist/custom-watchlist.d.ts +1 -1
  42. package/dist/custom-watchlist.esm.js +5 -5
  43. package/dist/{customWatchlistStateMachine-qfxMGhCV.esm.js → customWatchlistStateMachine-CF4ETN-z.esm.js} +3 -3
  44. package/dist/{deepsightLoader-OlmqoVtS.esm.js → deepsightLoader-CTf5NdIB.esm.js} +13 -12
  45. package/dist/{deepsightService-CeXd7dhh.d.ts → deepsightService-B7ShOkWL.d.ts} +2 -152
  46. package/dist/{deepsightService-Dh9EiWze.esm.js → deepsightService-Da56SkD4.esm.js} +8 -236
  47. package/dist/device.esm.js +4 -4
  48. package/dist/document-capture.d.ts +235 -235
  49. package/dist/document-capture.esm.js +13 -13
  50. package/dist/document-upload.d.ts +53 -53
  51. package/dist/document-upload.esm.js +8 -8
  52. package/dist/{documentCaptureStateMachine-JqM4pyfY.esm.js → documentCaptureStateMachine-CV1dzgbn.esm.js} +7 -7
  53. package/dist/dynamic-forms.d.ts +2 -2
  54. package/dist/dynamic-forms.esm.js +5 -5
  55. package/dist/ekyb.d.ts +6 -6
  56. package/dist/ekyb.esm.js +16 -16
  57. package/dist/{ekybStateMachine-C0DLJplY.esm.js → ekybStateMachine-DWm7C2qW.esm.js} +5 -5
  58. package/dist/ekyc.d.ts +3 -3
  59. package/dist/ekyc.esm.js +8 -8
  60. package/dist/{ekycStateMachine-B5brX021.esm.js → ekycStateMachine-CRiViUGB.esm.js} +5 -5
  61. package/dist/electronic-signature.d.ts +3 -3
  62. package/dist/electronic-signature.esm.js +6 -6
  63. package/dist/{electronicSignatureManager-BY6tiZPR.esm.js → electronicSignatureManager-DECEJ9hm.esm.js} +5 -5
  64. package/dist/email.d.ts +4 -4
  65. package/dist/email.esm.js +8 -8
  66. package/dist/{emailManager-DRUHedQg.esm.js → emailManager-DAIwweQa.esm.js} +4 -4
  67. package/dist/{emailManager-VP0mIGdj.d.ts → emailManager-lAzDoQOs.d.ts} +3 -3
  68. package/dist/{emailStateMachine-CZgKn7a1.esm.js → emailStateMachine-C-ltLrvi.esm.js} +5 -5
  69. package/dist/{endpoints-BPHddOTi.esm.js → endpoints-zEf_JIJU.esm.js} +2 -1
  70. package/dist/{events-Bsw1l0pH.esm.js → events-Dvvriq9l.esm.js} +3 -2
  71. package/dist/events.d.ts +1 -0
  72. package/dist/events.esm.js +2 -2
  73. package/dist/extensibility.d.ts +26 -25
  74. package/dist/extensibility.esm.js +56 -54
  75. package/dist/face-match.d.ts +1 -1
  76. package/dist/face-match.esm.js +5 -5
  77. package/dist/{faceCaptureManagerFactory-BTsmDJ06.d.ts → faceCaptureManagerFactory-C_hRHx8a.d.ts} +9 -8
  78. package/dist/{faceCaptureManagerFactory-DKE4-MLG.esm.js → faceCaptureManagerFactory-kqbUqtrr.esm.js} +4 -4
  79. package/dist/{faceCaptureSetup-0XUJwf3G.esm.js → faceCaptureSetup-CoZCFG0w.esm.js} +7 -6
  80. package/dist/{faceMatchStateMachine-i3qgZ176.esm.js → faceMatchStateMachine-CN81-J0s.esm.js} +3 -3
  81. package/dist/field-comparison.d.ts +3 -3
  82. package/dist/field-comparison.esm.js +5 -5
  83. package/dist/{fieldComparisonManager-Bfb3-iwn.esm.js → fieldComparisonManager-Bnuq1mA0.esm.js} +4 -4
  84. package/dist/{fieldComparisonManager-DAP7RbND.d.ts → fieldComparisonManager-Bu5TaSr3.d.ts} +2 -2
  85. package/dist/fiscal-qr.d.ts +59 -0
  86. package/dist/fiscal-qr.esm.js +323 -0
  87. package/dist/flow-events.d.ts +6 -6
  88. package/dist/flow.d.ts +12 -12
  89. package/dist/flow.esm.js +16 -16
  90. package/dist/{flowCompletionService-DFV8vmO3.esm.js → flowCompletionService-DHpnjBvp.esm.js} +3 -3
  91. package/dist/{flowServices-DhaF-fP3.esm.js → flowServices-BykryjdA.esm.js} +4 -4
  92. package/dist/geolocation.d.ts +2 -2
  93. package/dist/geolocation.esm.js +6 -6
  94. package/dist/{geolocationStateMachine-DCG_hQkW.esm.js → geolocationStateMachine-D6yBlOQ_.esm.js} +4 -4
  95. package/dist/{getDeviceClass-cJ-TvND7.esm.js → getDeviceClass-C8Do2qYu.esm.js} +1 -1
  96. package/dist/government-validation.d.ts +3 -3
  97. package/dist/government-validation.esm.js +7 -7
  98. package/dist/{governmentValidationStateMachine-KY_Eu5b-.esm.js → governmentValidationStateMachine-M-iiovMY.esm.js} +5 -5
  99. package/dist/home.d.ts +15 -15
  100. package/dist/home.esm.js +3 -3
  101. package/dist/http-Cai3IoLS.esm.js +0 -0
  102. package/dist/http.esm.js +2 -1
  103. package/dist/id-ocr.d.ts +54 -54
  104. package/dist/id-ocr.esm.js +6 -6
  105. package/dist/id-verification.d.ts +27 -27
  106. package/dist/id-verification.esm.js +5 -5
  107. package/dist/id.d.ts +12 -11
  108. package/dist/id.esm.js +31 -29
  109. package/dist/{idCaptureManager-BXkPnZIc.d.ts → idCaptureManager-D-QYESvF.d.ts} +8 -7
  110. package/dist/{idCaptureManager-CWG0Qgeq.esm.js → idCaptureManager-mQGmxqf1.esm.js} +5 -5
  111. package/dist/{idCaptureStateMachine-Dqfxbea3.esm.js → idCaptureStateMachine-DXeLlQa_.esm.js} +19 -18
  112. package/dist/{idOcrStateMachine-DVjkIw10.esm.js → idOcrStateMachine-Cj2uN_q_.esm.js} +5 -5
  113. package/dist/{idVerificationStateMachine-B_F3G-v-.esm.js → idVerificationStateMachine-DVrl68dQ.esm.js} +3 -3
  114. package/dist/identity-reuse.d.ts +3 -3
  115. package/dist/identity-reuse.esm.js +6 -6
  116. package/dist/{identityReuseManager-CNcsh-xr.esm.js → identityReuseManager-DHYlQW3K.esm.js} +3 -3
  117. package/dist/{identityReuseManager-DVZLgcfm.d.ts → identityReuseManager-DYb7I3jf.d.ts} +36 -36
  118. package/dist/{identityReuseStateMachine-BrbaZto8.esm.js → identityReuseStateMachine-Dyfa7yzx.esm.js} +3 -3
  119. package/dist/{index-B1ijI7RD.d.ts → index-B2RUw1Th.d.ts} +169 -169
  120. package/dist/{index-C3KOkxmU.d.ts → index-B5hPA0Bg.d.ts} +2 -2
  121. package/dist/index.d.ts +2 -2
  122. package/dist/index.esm.js +12 -12
  123. package/dist/{invokeOnCaptureCallback-Bty7q0sC.esm.js → invokeOnCaptureCallback-ygByVdnn.esm.js} +1 -1
  124. package/dist/{lib-DmGBvFHu.esm.js → lib-BY67lgbq.esm.js} +1 -1
  125. package/dist/mandatory-consent.d.ts +7 -7
  126. package/dist/mandatory-consent.esm.js +6 -6
  127. package/dist/{mandatoryConsentManager-BUpEBczR.esm.js → mandatoryConsentManager-BTqe3YNU.esm.js} +3 -3
  128. package/dist/{mandatoryConsentManager-DwmDNt6y.d.ts → mandatoryConsentManager-DBc5NyKN.d.ts} +55 -55
  129. package/dist/{mandatoryConsentStateMachine-B6hfQFw1.esm.js → mandatoryConsentStateMachine-4yzCCY4e.esm.js} +3 -3
  130. package/dist/openviduLazy-B8L--0oe.esm.js +3 -0
  131. package/dist/{openviduLazy-6AQum7Ca.esm.js → openviduLazy-Dh14JNJc.esm.js} +2 -2
  132. package/dist/{permissionGuards-DUKOJ-Mt.esm.js → permissionGuards-C1ispV96.esm.js} +1 -1
  133. package/dist/{permissionServices-BjXAT5OT.esm.js → permissionServices-CG3bMSfG.esm.js} +3 -3
  134. package/dist/phone.d.ts +4 -4
  135. package/dist/phone.esm.js +8 -8
  136. package/dist/{phoneManager-Ddl_CeNb.esm.js → phoneManager-B44MT4ro.esm.js} +4 -4
  137. package/dist/{phoneManager-BgoX1fvQ.d.ts → phoneManager-fPmIBYQK.d.ts} +3 -3
  138. package/dist/{phoneStateMachine-CrjW4JrA.esm.js → phoneStateMachine-CMht9LLp.esm.js} +5 -5
  139. package/dist/{qe-signature-C8uvV_-H.esm.js → qe-signature-DCz2roEC.esm.js} +1 -1
  140. package/dist/qe-signature.d.ts +3 -3
  141. package/dist/qe-signature.esm.js +7 -7
  142. package/dist/{recordingService-DCUipzC7.esm.js → recordingService-DwPmv6FZ.esm.js} +16 -131
  143. package/dist/redirect-to-mobile.d.ts +3 -3
  144. package/dist/redirect-to-mobile.esm.js +7 -7
  145. package/dist/{redirectToMobileManager-CQxCClRy.esm.js → redirectToMobileManager-BAzevDYW.esm.js} +4 -4
  146. package/dist/{redirectToMobileManager-xOasdN0s.d.ts → redirectToMobileManager-BNe3IzC_.d.ts} +2 -2
  147. package/dist/{redirectToMobileStateMachine-DHqdmBzc.esm.js → redirectToMobileStateMachine-BmwxrN1h.esm.js} +4 -4
  148. package/dist/{runChildModule-B1uVG8D-.esm.js → runChildModule-CuoHZ1cx.esm.js} +3 -3
  149. package/dist/selfie.d.ts +13 -12
  150. package/dist/selfie.esm.js +28 -26
  151. package/dist/{selfieManager-CeTXxT2U.d.ts → selfieManager-dUbKRzOh.d.ts} +2 -2
  152. package/dist/{selfieManager-DpFMP4Rk.esm.js → selfieManager-zH9pAVXE.esm.js} +6 -6
  153. package/dist/{selfieStateMachine-DCHihi8J.esm.js → selfieStateMachine-Dr5sCDgI.esm.js} +4 -4
  154. package/dist/{session-Ds1d84mn.esm.js → session-BEtpaQ6D.esm.js} +3 -3
  155. package/dist/session.d.ts +5 -5
  156. package/dist/session.esm.js +12 -12
  157. package/dist/{sessionInitializer-Be88b4WX.esm.js → sessionInitializer-D0Ei5Ol7.esm.js} +7 -7
  158. package/dist/{setup-BtLWJPSp.d.ts → setup-BbkprdVv.d.ts} +1 -1
  159. package/dist/{setup-BgxDnUDw.esm.js → setup-DotVj7UA.esm.js} +7 -7
  160. package/dist/signature.d.ts +2 -2
  161. package/dist/signature.esm.js +5 -5
  162. package/dist/{signatureStateMachine-CY1u1o6J.esm.js → signatureStateMachine-CpcyA7CM.esm.js} +4 -4
  163. package/dist/{stats-AwLva7-C.esm.js → stats-SU3Linba.esm.js} +2 -2
  164. package/dist/stats.esm.js +3 -3
  165. package/dist/trust-graph.d.ts +3 -3
  166. package/dist/trust-graph.esm.js +3 -3
  167. package/dist/{types-BmZR-K77.d.ts → types-Bj9hdFjU.d.ts} +1 -1
  168. package/dist/{types-DJsgKeW0.d.ts → types-DOUhndhT.d.ts} +2 -2
  169. package/dist/{types-BI-jIO73.d.ts → types-NuT8ftBV.d.ts} +1 -1
  170. package/dist/wasm.d.ts +2 -2
  171. package/dist/wasm.esm.js +12 -12
  172. package/dist/watchlist-for-business.d.ts +1 -1
  173. package/dist/watchlist-for-business.esm.js +5 -5
  174. package/dist/watchlist.d.ts +1 -1
  175. package/dist/watchlist.esm.js +5 -5
  176. package/dist/{watchlistForBusinessStateMachine-CGRko-GU.esm.js → watchlistForBusinessStateMachine-DsEq8xwX.esm.js} +3 -3
  177. package/dist/{watchlistStateMachine-CWVTWVJY.esm.js → watchlistStateMachine-CREpVW-C.esm.js} +3 -3
  178. package/dist/workflow.d.ts +97 -97
  179. package/dist/workflow.esm.js +60 -58
  180. package/package.json +9 -1
  181. package/dist/openviduLazy-Dge_R911.esm.js +0 -3
  182. /package/dist/{Actor-Ds20AUDY.d.ts → Actor-Y0_Fj-KL.d.ts} +0 -0
  183. /package/dist/{BrowserStorageProvider-BrJver0U.esm.js → BrowserStorageProvider-BpJM-gIl.esm.js} +0 -0
  184. /package/dist/{BrowserTimerProvider-BESs49g_.esm.js → BrowserTimerProvider-DhNc_x02.esm.js} +0 -0
  185. /package/dist/{ITimerCapability-gIlcIrAX.esm.js → ITimerCapability-CB0I1Uf2.esm.js} +0 -0
  186. /package/dist/{IpifyProvider-BQKB2PR-.esm.js → IpifyProvider-D4LWD15E.esm.js} +0 -0
  187. /package/dist/{Manager-Dh6pC-6V.d.ts → Manager-BHn8wH8K.d.ts} +0 -0
  188. /package/dist/{MotionSensorProvider-D1JWpMLJ.esm.js → MotionSensorProvider-Bx7Mpzt0.esm.js} +0 -0
  189. /package/dist/{StateMachine-CENvPkCx.d.ts → StateMachine-BC_nGvrc.d.ts} +0 -0
  190. /package/dist/{WasmUtilProvider-CeyOvhU2.esm.js → WasmUtilProvider-CiEN7Gjn.esm.js} +0 -0
  191. /package/dist/{api-YxPMtty2.esm.js → api-CESGtpbH.esm.js} +0 -0
  192. /package/dist/{apiError-76Dulrw9.esm.js → apiError-B-j-gyDx.esm.js} +0 -0
  193. /package/dist/{camera-P7dse339.esm.js → camera-DJWm3V4g.esm.js} +0 -0
  194. /package/dist/{camera-D7qYpKeG.d.ts → camera-SRBpPq2X.d.ts} +0 -0
  195. /package/dist/{chunk-wtC55c3P.esm.js → chunk-CMUKZ2uL.esm.js} +0 -0
  196. /package/dist/{cpf-COPPtEoQ.esm.js → cpf-BRzggV8G.esm.js} +0 -0
  197. /package/dist/{dateUtils-CibceEoG.esm.js → dateUtils-AksLQmgV.esm.js} +0 -0
  198. /package/dist/{flowCompletionService-DOHFSAJ2.d.ts → flowCompletionService-BdR2cGgB.d.ts} +0 -0
  199. /package/dist/{getBrowser-CMJJeBF8.esm.js → getBrowser-C8DP7oTB.esm.js} +0 -0
  200. /package/dist/{getDeviceClass-C5yT6K2e.esm.js → getDeviceClass-C0olyNFS.esm.js} +0 -0
  201. /package/dist/{otp-lOELtCck.esm.js → otp-CGMdUzBC.esm.js} +0 -0
  202. /package/dist/{otp-Ci7E_eNt.d.ts → otp-DF5A0sFx.d.ts} +0 -0
  203. /package/dist/{platform-D871crJL.esm.js → platform-SKvEfCBh.esm.js} +0 -0
  204. /package/dist/{types-CRp-Maxh.esm.js → types-DsnEVMhr.esm.js} +0 -0
  205. /package/dist/{types-Cojkwi9p.d.ts → types-DvGZI7BF.d.ts} +0 -0
  206. /package/dist/{types-DI4L4PFE.d.ts → types-ya0LN_MX.d.ts} +0 -0
  207. /package/dist/{warmup-Bx2GXY3L.d.ts → warmup-Dg8Lh-50.d.ts} +0 -0
  208. /package/dist/{xstate.esm-CWoFJOio.esm.js → xstate.esm-C9wncMQa.esm.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { t as loadOpenVidu } from "./openviduLazy-6AQum7Ca.esm.js";
1
+ import { t as loadOpenVidu } from "./openviduLazy-Dh14JNJc.esm.js";
2
2
 
3
3
  //#region ../infra/src/providers/browser/OpenViduRecordingProvider.ts
4
4
  function createHiddenContainer() {
@@ -0,0 +1,118 @@
1
+ import { t as IncodeCanvas } from "./canvas-SKcRBxsk.esm.js";
2
+
3
+ //#region ../infra/src/media/StreamCanvasCapture.ts
4
+ var StreamCanvasCapture = class {
5
+ constructor(stream, options) {
6
+ this.hasFrame = false;
7
+ this.disposed = false;
8
+ this.eventTarget = new EventTarget();
9
+ this.video = document.createElement("video");
10
+ this.video.srcObject = stream;
11
+ this.video.autoplay = true;
12
+ this.video.playsInline = true;
13
+ this.video.muted = true;
14
+ const settings = stream.getVideoTracks()[0]?.getSettings();
15
+ const initialWidth = options?.width ?? settings?.width ?? 1280;
16
+ const initialHeight = options?.height ?? settings?.height ?? 720;
17
+ this.canvas = document.createElement("canvas");
18
+ this.canvas.width = initialWidth;
19
+ this.canvas.height = initialHeight;
20
+ this.ctx = this.canvas.getContext("2d", { willReadFrequently: true });
21
+ const fps = options?.fps ?? 10;
22
+ const intervalMs = fps > 0 ? Math.max(16, Math.floor(1e3 / fps)) : 0;
23
+ this.video.addEventListener("loadedmetadata", () => {
24
+ if (this.video.videoWidth > 0 && this.video.videoHeight > 0) {
25
+ this.canvas.width = this.video.videoWidth;
26
+ this.canvas.height = this.video.videoHeight;
27
+ }
28
+ });
29
+ try {
30
+ this.video.play();
31
+ } catch {}
32
+ this.rafLoop(intervalMs);
33
+ }
34
+ addEventListener(type, listener, options) {
35
+ this.eventTarget.addEventListener(type, listener, options);
36
+ }
37
+ removeEventListener(type, listener, options) {
38
+ this.eventTarget.removeEventListener(type, listener, options);
39
+ }
40
+ /**
41
+ * Returns the latest cached frame as an {@link IncodeCanvas}.
42
+ */
43
+ getLatestCanvas() {
44
+ if (!this.hasFrame) this.tick();
45
+ if (!this.hasFrame) return null;
46
+ return new IncodeCanvas(this.canvas);
47
+ }
48
+ /**
49
+ * Returns the latest cached frame as raw {@link ImageData}.
50
+ */
51
+ getLatestFrame() {
52
+ if (!this.ctx) return null;
53
+ if (!this.hasFrame) this.tick();
54
+ if (!this.hasFrame) return null;
55
+ try {
56
+ return this.ctx.getImageData(0, 0, this.canvas.width, this.canvas.height);
57
+ } catch {
58
+ return null;
59
+ }
60
+ }
61
+ /**
62
+ * Disposes internal resources and stops the capture loop.
63
+ */
64
+ dispose() {
65
+ if (this.disposed) return;
66
+ this.disposed = true;
67
+ if (this.rafId !== void 0) {
68
+ window.cancelAnimationFrame(this.rafId);
69
+ this.rafId = void 0;
70
+ }
71
+ this.video.srcObject = null;
72
+ this.canvas.width = 0;
73
+ this.canvas.height = 0;
74
+ this.hasFrame = false;
75
+ }
76
+ rafLoop(intervalMs) {
77
+ const loop = (timeMs) => {
78
+ if (this.disposed) return;
79
+ if (intervalMs <= 0 || this.lastTickTimeMs === void 0 || timeMs - this.lastTickTimeMs >= intervalMs) {
80
+ this.lastTickTimeMs = timeMs;
81
+ const previousFrameTimeSeconds = this.lastFrameTimeSeconds;
82
+ this.tick();
83
+ const currentFrameTimeSeconds = this.video.currentTime;
84
+ if (previousFrameTimeSeconds === void 0) {
85
+ if (this.hasFrame) {
86
+ this.lastFrameTimeSeconds = currentFrameTimeSeconds;
87
+ this.eventTarget.dispatchEvent(new Event("frame"));
88
+ }
89
+ } else if (this.hasFrame && currentFrameTimeSeconds !== previousFrameTimeSeconds) {
90
+ this.lastFrameTimeSeconds = currentFrameTimeSeconds;
91
+ this.eventTarget.dispatchEvent(new Event("frame"));
92
+ }
93
+ }
94
+ this.rafId = window.requestAnimationFrame(loop);
95
+ };
96
+ this.rafId = window.requestAnimationFrame(loop);
97
+ }
98
+ tick() {
99
+ if (!this.ctx) return;
100
+ if (this.video.readyState < HTMLMediaElement.HAVE_CURRENT_DATA) return;
101
+ const videoWidth = this.video.videoWidth;
102
+ const videoHeight = this.video.videoHeight;
103
+ if (videoWidth === 0 || videoHeight === 0) return;
104
+ if (this.canvas.width !== videoWidth || this.canvas.height !== videoHeight) {
105
+ this.canvas.width = videoWidth;
106
+ this.canvas.height = videoHeight;
107
+ }
108
+ try {
109
+ this.ctx.drawImage(this.video, 0, 0);
110
+ this.hasFrame = true;
111
+ } catch {
112
+ this.hasFrame = false;
113
+ }
114
+ }
115
+ };
116
+
117
+ //#endregion
118
+ export { StreamCanvasCapture as t };
@@ -0,0 +1,152 @@
1
+ import { t as CameraStream } from "./camera-SRBpPq2X.js";
2
+
3
+ //#region ../infra/src/media/canvas.d.ts
4
+ /**
5
+ * Class representing a canvas element for image capture and manipulation.
6
+ */
7
+ declare class IncodeCanvas {
8
+ canvas: HTMLCanvasElement;
9
+ private base64Image;
10
+ private blobData;
11
+ /**
12
+ * Creates an {@link IncodeCanvas} from a raw {@link ImageData} frame.
13
+ * @param imageData - Frame pixels in RGBA format
14
+ * @returns An {@link IncodeCanvas} containing the provided pixels
15
+ */
16
+ static fromImageData(imageData: ImageData): IncodeCanvas;
17
+ /**
18
+ * Create a new canvas element.
19
+ * @param canvas_ - The canvas element to clone.
20
+ */
21
+ constructor(canvas_: HTMLCanvasElement);
22
+ /**
23
+ * Check if the current canvas is valid.
24
+ */
25
+ private checkCanvas;
26
+ /**
27
+ * Disposes of resources, including revoking object URLs to prevent memory leaks.
28
+ */
29
+ dispose(): void;
30
+ /**
31
+ * Release the data stored by IncodeCanvas.
32
+ */
33
+ release(): void;
34
+ /**
35
+ * Revokes the object URL if one exists, preventing memory leaks.
36
+ * Use this when you no longer need the preview image URL.
37
+ */
38
+ revokeObjectURL(): void;
39
+ /**
40
+ * Get the width of the canvas.
41
+ */
42
+ width(): number | null;
43
+ /**
44
+ * Get the height of the canvas.
45
+ */
46
+ height(): number | null;
47
+ /**
48
+ * Set the width of the canvas.
49
+ */
50
+ setWidth(width: number): void;
51
+ /**
52
+ * Set the height of the canvas.
53
+ */
54
+ setHeight(height: number): void;
55
+ /**
56
+ * Clone the current canvas.
57
+ */
58
+ clone(): IncodeCanvas | null;
59
+ /**
60
+ * Deep clone the current IncodeCanvas including blob data.
61
+ */
62
+ deepClone(): Promise<IncodeCanvas | null>;
63
+ /**
64
+ * Returns the drawing context on the canvas.
65
+ */
66
+ getContext(contextId: '2d', contextAttributes?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;
67
+ /**
68
+ * Retrieves the image data from the canvas.
69
+ */
70
+ getImageData(): ImageData | null;
71
+ /**
72
+ * Updates the base64 representation of the current canvas image.
73
+ */
74
+ updateBase64Image(jpegQuality?: number): void;
75
+ /**
76
+ * Converts the current canvas element to a base64 string.
77
+ */
78
+ getBase64Image(jpegQuality?: number, includeDataURLPrefix?: boolean): string | null;
79
+ /**
80
+ * Sets the base64 representation of the current canvas image.
81
+ */
82
+ setBase64Image(base64Image: string | null): void;
83
+ /**
84
+ * Updates the Blob representation of the current canvas image.
85
+ */
86
+ updateBlob(jpegQuality?: number, includeDataURLPrefix?: boolean): void;
87
+ /**
88
+ * Converts a base64 string to a Blob and creates a URL for it.
89
+ */
90
+ static base64ToBlob(base64: string): {
91
+ blob: Blob;
92
+ url: string;
93
+ } | null;
94
+ /**
95
+ * Retrieves the Blob data and its URL from the current canvas.
96
+ */
97
+ getBlobData(jpegQuality?: number, includeDataURLPrefix?: boolean): {
98
+ blob: Blob;
99
+ url: string;
100
+ } | null;
101
+ /**
102
+ * Sets the Blob data of the current canvas image.
103
+ */
104
+ setBlobData(blobData: {
105
+ blob: Blob;
106
+ url: string;
107
+ }): Promise<void>;
108
+ /**
109
+ * Returns a resized canvas according to video element size.
110
+ */
111
+ getResizedCanvas(videoElementWidth: number, videoElementHeight: number): IncodeCanvas | null;
112
+ }
113
+ //#endregion
114
+ //#region ../infra/src/media/StreamCanvasCapture.d.ts
115
+ type StreamCanvasCaptureOptions = {
116
+ fps?: number;
117
+ width?: number;
118
+ height?: number;
119
+ };
120
+ type StreamCanvasCaptureEventMap = {
121
+ frame: Event;
122
+ };
123
+ declare class StreamCanvasCapture {
124
+ private video;
125
+ private canvas;
126
+ private ctx;
127
+ private rafId;
128
+ private lastFrameTimeSeconds;
129
+ private lastTickTimeMs;
130
+ private hasFrame;
131
+ private disposed;
132
+ private eventTarget;
133
+ constructor(stream: CameraStream, options?: StreamCanvasCaptureOptions);
134
+ addEventListener(type: keyof StreamCanvasCaptureEventMap, listener: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions): void;
135
+ removeEventListener(type: keyof StreamCanvasCaptureEventMap, listener: EventListenerOrEventListenerObject | null, options?: boolean | EventListenerOptions): void;
136
+ /**
137
+ * Returns the latest cached frame as an {@link IncodeCanvas}.
138
+ */
139
+ getLatestCanvas(): IncodeCanvas | null;
140
+ /**
141
+ * Returns the latest cached frame as raw {@link ImageData}.
142
+ */
143
+ getLatestFrame(): ImageData | null;
144
+ /**
145
+ * Disposes internal resources and stops the capture loop.
146
+ */
147
+ dispose(): void;
148
+ private rafLoop;
149
+ private tick;
150
+ }
151
+ //#endregion
152
+ export { IncodeCanvas as n, StreamCanvasCapture as t };
@@ -1,7 +1,7 @@
1
- import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BESs49g_.esm.js";
2
- import { t as api } from "./api-YxPMtty2.esm.js";
3
- import { t as endpoints } from "./endpoints-BPHddOTi.esm.js";
4
- import { i as fromCallback } from "./xstate.esm-CWoFJOio.esm.js";
1
+ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-DhNc_x02.esm.js";
2
+ import { t as api } from "./api-CESGtpbH.esm.js";
3
+ import { t as endpoints } from "./endpoints-zEf_JIJU.esm.js";
4
+ import { i as fromCallback } from "./xstate.esm-C9wncMQa.esm.js";
5
5
 
6
6
  //#region src/shared/usStates.ts
7
7
  const usStates = {
@@ -1,4 +1,4 @@
1
- import { t as createElectronicSignatureManager } from "./electronicSignatureManager-BY6tiZPR.esm.js";
1
+ import { t as createElectronicSignatureManager } from "./electronicSignatureManager-DECEJ9hm.esm.js";
2
2
 
3
3
  //#region src/modules/ae-signature/index.ts
4
4
  function createAeSignatureManager(options) {
@@ -1,6 +1,6 @@
1
- import { t as Manager } from "./Manager-Dh6pC-6V.js";
2
- import "./Actor-Ds20AUDY.js";
3
- import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-B1ijI7RD.js";
1
+ import { t as Manager } from "./Manager-BHn8wH8K.js";
2
+ import "./Actor-Y0_Fj-KL.js";
3
+ import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-B2RUw1Th.js";
4
4
 
5
5
  //#region src/modules/ae-signature/index.d.ts
6
6
 
@@ -1,9 +1,9 @@
1
- import "./api-YxPMtty2.esm.js";
2
- import "./events-Bsw1l0pH.esm.js";
3
- import "./endpoints-BPHddOTi.esm.js";
4
- import "./xstate.esm-CWoFJOio.esm.js";
5
- import "./apiError-76Dulrw9.esm.js";
6
- import { a as areAllConsented, n as electronicSignatureMachine, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks } from "./electronicSignatureManager-BY6tiZPR.esm.js";
7
- import { t as createAeSignatureManager } from "./ae-signature-lqjX_h2U.esm.js";
1
+ import "./api-CESGtpbH.esm.js";
2
+ import "./events-Dvvriq9l.esm.js";
3
+ import "./endpoints-zEf_JIJU.esm.js";
4
+ import "./xstate.esm-C9wncMQa.esm.js";
5
+ import "./apiError-B-j-gyDx.esm.js";
6
+ import { a as areAllConsented, n as electronicSignatureMachine, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks } from "./electronicSignatureManager-DECEJ9hm.esm.js";
7
+ import { t as createAeSignatureManager } from "./ae-signature-CQjOxLrv.esm.js";
8
8
 
9
9
  export { AE_CONSENT_KEYS, electronicSignatureMachine as aeSignatureMachine, areAllConsented, createAeSignatureManager, getDefaultConsentChecks };
@@ -1,6 +1,6 @@
1
- import "./Manager-Dh6pC-6V.js";
2
- import "./Actor-Ds20AUDY.js";
3
- import { i as createAntifraudManagerFromActor, n as AntifraudState, o as antifraudMachine, r as createAntifraudManager, t as AntifraudManager } from "./antifraudManager-Bbgl_P0Y.js";
1
+ import "./Manager-BHn8wH8K.js";
2
+ import "./Actor-Y0_Fj-KL.js";
3
+ import { i as createAntifraudManagerFromActor, n as AntifraudState, o as antifraudMachine, r as createAntifraudManager, t as AntifraudManager } from "./antifraudManager-CznnhyvD.js";
4
4
 
5
5
  //#region src/modules/antifraud/types.d.ts
6
6
 
@@ -1,8 +1,8 @@
1
- import "./api-YxPMtty2.esm.js";
2
- import "./events-Bsw1l0pH.esm.js";
3
- import "./endpoints-BPHddOTi.esm.js";
4
- import "./xstate.esm-CWoFJOio.esm.js";
5
- import { t as antifraudMachine } from "./antifraudStateMachine-DmhL7cti.esm.js";
6
- import { n as createAntifraudManagerFromActor, t as createAntifraudManager } from "./antifraudManager-DaUfoGLZ.esm.js";
1
+ import "./api-CESGtpbH.esm.js";
2
+ import "./events-Dvvriq9l.esm.js";
3
+ import "./endpoints-zEf_JIJU.esm.js";
4
+ import "./xstate.esm-C9wncMQa.esm.js";
5
+ import { t as antifraudMachine } from "./antifraudStateMachine-Bp7yS1LV.esm.js";
6
+ import { n as createAntifraudManagerFromActor, t as createAntifraudManager } from "./antifraudManager-CZDCQli0.esm.js";
7
7
 
8
8
  export { antifraudMachine, createAntifraudManager, createAntifraudManagerFromActor };
@@ -1,6 +1,6 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Bsw1l0pH.esm.js";
2
- import { c as createManager, s as createActor } from "./xstate.esm-CWoFJOio.esm.js";
3
- import { t as antifraudMachine } from "./antifraudStateMachine-DmhL7cti.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dvvriq9l.esm.js";
2
+ import { c as createManager, s as createActor } from "./xstate.esm-C9wncMQa.esm.js";
3
+ import { t as antifraudMachine } from "./antifraudStateMachine-Bp7yS1LV.esm.js";
4
4
 
5
5
  //#region src/modules/antifraud/antifraudActor.ts
6
6
  function createAntifraudActor() {
@@ -1,5 +1,5 @@
1
- import { t as Manager } from "./Manager-Dh6pC-6V.js";
2
- import { t as ActorRefFrom } from "./Actor-Ds20AUDY.js";
1
+ import { t as Manager } from "./Manager-BHn8wH8K.js";
2
+ import { t as ActorRefFrom } from "./Actor-Y0_Fj-KL.js";
3
3
 
4
4
  //#region src/modules/antifraud/antifraudStateMachine.d.ts
5
5
  declare const antifraudMachine: any;
@@ -1,6 +1,6 @@
1
- import { t as api } from "./api-YxPMtty2.esm.js";
2
- import { t as endpoints } from "./endpoints-BPHddOTi.esm.js";
3
- import { a as fromPromise, t as setup } from "./xstate.esm-CWoFJOio.esm.js";
1
+ import { t as api } from "./api-CESGtpbH.esm.js";
2
+ import { t as endpoints } from "./endpoints-zEf_JIJU.esm.js";
3
+ import { a as fromPromise, t as setup } from "./xstate.esm-C9wncMQa.esm.js";
4
4
 
5
5
  //#region src/modules/antifraud/antifraudServices.ts
6
6
  async function processAntifraud(signal) {
@@ -1,13 +1,14 @@
1
- import "./warmup-Bx2GXY3L.js";
2
- import "./Manager-Dh6pC-6V.js";
3
- import "./Actor-Ds20AUDY.js";
4
- import "./StateMachine-CENvPkCx.js";
5
- import { D as authenticationMachine, S as AuthenticationConfig, b as CreateAuthenticationActorOptions, x as createAuthenticationActor, y as AuthenticationActor } from "./faceCaptureManagerFactory-BTsmDJ06.js";
6
- import "./camera-D7qYpKeG.js";
7
- import "./types-BmZR-K77.js";
8
- import "./types-Cojkwi9p.js";
9
- import "./types-DJsgKeW0.js";
10
- import "./deepsightService-CeXd7dhh.js";
11
- import "./types-DI4L4PFE.js";
12
- import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-ozJVUfiA.js";
1
+ import "./warmup-Dg8Lh-50.js";
2
+ import "./Manager-BHn8wH8K.js";
3
+ import "./Actor-Y0_Fj-KL.js";
4
+ import "./StateMachine-BC_nGvrc.js";
5
+ import { D as authenticationMachine, S as AuthenticationConfig, b as CreateAuthenticationActorOptions, x as createAuthenticationActor, y as AuthenticationActor } from "./faceCaptureManagerFactory-C_hRHx8a.js";
6
+ import "./camera-SRBpPq2X.js";
7
+ import "./types-Bj9hdFjU.js";
8
+ import "./types-DvGZI7BF.js";
9
+ import "./types-DOUhndhT.js";
10
+ import "./deepsightService-B7ShOkWL.js";
11
+ import "./types-ya0LN_MX.js";
12
+ import "./StreamCanvasCapture-yyl20qd9.js";
13
+ import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-CIVY80H9.js";
13
14
  export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,27 +1,29 @@
1
- import "./WasmUtilProvider-CeyOvhU2.esm.js";
2
- import "./api-YxPMtty2.esm.js";
3
- import "./events-Bsw1l0pH.esm.js";
4
- import "./endpoints-BPHddOTi.esm.js";
5
- import "./stats-AwLva7-C.esm.js";
6
- import "./browserSimulation-CHpyEI-W.esm.js";
7
- import "./platform-D871crJL.esm.js";
8
- import "./getBrowser-CMJJeBF8.esm.js";
9
- import "./xstate.esm-CWoFJOio.esm.js";
10
- import "./BrowserStorageProvider-BrJver0U.esm.js";
11
- import "./MotionSensorProvider-D1JWpMLJ.esm.js";
12
- import "./permissionServices-BjXAT5OT.esm.js";
13
- import "./camera-P7dse339.esm.js";
14
- import "./faceCaptureManagerFactory-DKE4-MLG.esm.js";
15
- import "./recordingService-DCUipzC7.esm.js";
16
- import "./ITimerCapability-gIlcIrAX.esm.js";
17
- import "./deepsightService-Dh9EiWze.esm.js";
18
- import "./backCameraStream-BtCwSIuT.esm.js";
19
- import "./getDeviceClass-C5yT6K2e.esm.js";
20
- import "./getDeviceClass-cJ-TvND7.esm.js";
21
- import "./types-CRp-Maxh.esm.js";
22
- import "./permissionGuards-DUKOJ-Mt.esm.js";
23
- import "./faceCaptureSetup-0XUJwf3G.esm.js";
24
- import { t as authenticationMachine } from "./authenticationStateMachine-DzrcG7XX.esm.js";
25
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-DIN4eL_6.esm.js";
1
+ import "./WasmUtilProvider-CiEN7Gjn.esm.js";
2
+ import "./api-CESGtpbH.esm.js";
3
+ import "./events-Dvvriq9l.esm.js";
4
+ import "./endpoints-zEf_JIJU.esm.js";
5
+ import "./stats-SU3Linba.esm.js";
6
+ import "./browserSimulation-B1dWiXp7.esm.js";
7
+ import "./platform-SKvEfCBh.esm.js";
8
+ import "./getBrowser-C8DP7oTB.esm.js";
9
+ import "./xstate.esm-C9wncMQa.esm.js";
10
+ import "./BrowserStorageProvider-BpJM-gIl.esm.js";
11
+ import "./MotionSensorProvider-Bx7Mpzt0.esm.js";
12
+ import "./permissionServices-CG3bMSfG.esm.js";
13
+ import "./camera-DJWm3V4g.esm.js";
14
+ import "./faceCaptureManagerFactory-kqbUqtrr.esm.js";
15
+ import "./recordingService-DwPmv6FZ.esm.js";
16
+ import "./ITimerCapability-CB0I1Uf2.esm.js";
17
+ import "./canvas-SKcRBxsk.esm.js";
18
+ import "./backCameraStream-D7Wo4Nbx.esm.js";
19
+ import "./deepsightService-Da56SkD4.esm.js";
20
+ import "./getDeviceClass-C0olyNFS.esm.js";
21
+ import "./getDeviceClass-C8Do2qYu.esm.js";
22
+ import "./types-DsnEVMhr.esm.js";
23
+ import "./StreamCanvasCapture-ImiDQdVA.esm.js";
24
+ import "./permissionGuards-C1ispV96.esm.js";
25
+ import "./faceCaptureSetup-CoZCFG0w.esm.js";
26
+ import { t as authenticationMachine } from "./authenticationStateMachine-3HbNfPoL.esm.js";
27
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-C3-IUymg.esm.js";
26
28
 
27
29
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,9 +1,9 @@
1
- import { t as WasmUtilProvider } from "./WasmUtilProvider-CeyOvhU2.esm.js";
2
- import { n as eventModuleNames } from "./events-Bsw1l0pH.esm.js";
3
- import { s as createActor } from "./xstate.esm-CWoFJOio.esm.js";
4
- import { t as BrowserStorageProvider } from "./BrowserStorageProvider-BrJver0U.esm.js";
5
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DKE4-MLG.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-DzrcG7XX.esm.js";
1
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-CiEN7Gjn.esm.js";
2
+ import { n as eventModuleNames } from "./events-Dvvriq9l.esm.js";
3
+ import { s as createActor } from "./xstate.esm-C9wncMQa.esm.js";
4
+ import { t as BrowserStorageProvider } from "./BrowserStorageProvider-BpJM-gIl.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-kqbUqtrr.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-3HbNfPoL.esm.js";
7
7
 
8
8
  //#region src/modules/authentication/authenticationActor.ts
9
9
  function createAuthenticationActor(options) {
@@ -1,5 +1,5 @@
1
- import { t as Manager } from "./Manager-Dh6pC-6V.js";
2
- import { b as CreateAuthenticationActorOptions, n as FaceCaptureManagerState, t as FaceCaptureManager, y as AuthenticationActor } from "./faceCaptureManagerFactory-BTsmDJ06.js";
1
+ import { t as Manager } from "./Manager-BHn8wH8K.js";
2
+ import { b as CreateAuthenticationActorOptions, n as FaceCaptureManagerState, t as FaceCaptureManager, y as AuthenticationActor } from "./faceCaptureManagerFactory-C_hRHx8a.js";
3
3
 
4
4
  //#region src/modules/authentication/authenticationManager.d.ts
5
5
  type AuthenticationState = FaceCaptureManagerState;
@@ -1,11 +1,11 @@
1
- import { t as api } from "./api-YxPMtty2.esm.js";
2
- import { t as endpoints } from "./endpoints-BPHddOTi.esm.js";
3
- import { t as addDeviceStats } from "./stats-AwLva7-C.esm.js";
4
- import { a as fromPromise, r as assign } from "./xstate.esm-CWoFJOio.esm.js";
5
- import { c as postOnDeviceFaceResults, l as prepareOnDeviceFaceUpload, o as defaultPrepareFaceUpload, s as isOnDeviceMode } from "./recordingService-DCUipzC7.esm.js";
6
- import { t as getDeviceClass } from "./getDeviceClass-cJ-TvND7.esm.js";
7
- import { t as FACE_ERROR_CODES } from "./types-CRp-Maxh.esm.js";
8
- import { t as faceCaptureMachine } from "./faceCaptureSetup-0XUJwf3G.esm.js";
1
+ import { t as api } from "./api-CESGtpbH.esm.js";
2
+ import { t as endpoints } from "./endpoints-zEf_JIJU.esm.js";
3
+ import { t as addDeviceStats } from "./stats-SU3Linba.esm.js";
4
+ import { a as fromPromise, r as assign } from "./xstate.esm-C9wncMQa.esm.js";
5
+ import { a as defaultPrepareFaceUpload, c as prepareOnDeviceFaceUpload, o as isOnDeviceMode, s as postOnDeviceFaceResults } from "./recordingService-DwPmv6FZ.esm.js";
6
+ import { t as getDeviceClass } from "./getDeviceClass-C8Do2qYu.esm.js";
7
+ import { t as FACE_ERROR_CODES } from "./types-DsnEVMhr.esm.js";
8
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-CoZCFG0w.esm.js";
9
9
 
10
10
  //#region src/modules/authentication/authenticationErrorUtils.ts
11
11
  const AUTH_ERROR_MAP = {
@@ -1,6 +1,6 @@
1
- import { a as isIPhone14OrHigher, o as isSafari, r as isIOS, t as isAndroid } from "./platform-D871crJL.esm.js";
2
- import { i as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-P7dse339.esm.js";
3
- import { t as sleep } from "./ITimerCapability-gIlcIrAX.esm.js";
1
+ import { a as isIPhone14OrHigher, o as isSafari, r as isIOS, t as isAndroid } from "./platform-SKvEfCBh.esm.js";
2
+ import { i as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-DJWm3V4g.esm.js";
3
+ import { t as sleep } from "./ITimerCapability-CB0I1Uf2.esm.js";
4
4
 
5
5
  //#region src/internal/camera/backCameraStream.ts
6
6
  const BACK_CAMERA_KEYWORDS = [
@@ -1,5 +1,5 @@
1
- import { r as isIOS } from "./platform-D871crJL.esm.js";
2
- import { t as getUserAgent } from "./getBrowser-CMJJeBF8.esm.js";
1
+ import { r as isIOS } from "./platform-SKvEfCBh.esm.js";
2
+ import { t as getUserAgent } from "./getBrowser-C8DP7oTB.esm.js";
3
3
 
4
4
  //#region ../../node_modules/.pnpm/ua-parser-js@2.0.9/node_modules/ua-parser-js/src/main/ua-parser.mjs
5
5
  var LIBVERSION = "2.0.9", UA_MAX_LENGTH = 500, USER_AGENT = "user-agent", EMPTY = "", UNKNOWN = "?", TYPEOF = {
package/dist/camera.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as PermissionStatus, t as PermissionResult } from "./types-DI4L4PFE.js";
1
+ import { n as PermissionStatus, t as PermissionResult } from "./types-ya0LN_MX.js";
2
2
 
3
3
  //#region src/internal/permissions/permissionServices.d.ts
4
4
  type RequestPermissionOptions = {
@@ -1,6 +1,6 @@
1
- import "./WasmUtilProvider-CeyOvhU2.esm.js";
2
- import "./MotionSensorProvider-D1JWpMLJ.esm.js";
3
- import { i as requestPermission, t as checkPermission } from "./permissionServices-BjXAT5OT.esm.js";
4
- import "./camera-P7dse339.esm.js";
1
+ import "./WasmUtilProvider-CiEN7Gjn.esm.js";
2
+ import "./MotionSensorProvider-Bx7Mpzt0.esm.js";
3
+ import { i as requestPermission, t as checkPermission } from "./permissionServices-CG3bMSfG.esm.js";
4
+ import "./camera-DJWm3V4g.esm.js";
5
5
 
6
6
  export { checkPermission as checkCameraPermission, requestPermission as requestCameraPermission };