@sekyro/web 0.1.0-rc.36 → 0.1.0-rc.37

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 (55) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/camera-trait-DELAK3YN.js +1 -0
  3. package/dist/{capture-session-doc-LKMMJG4H.js → capture-session-doc-6MUKGUJ3.js} +1 -1
  4. package/dist/{capture-session-v3-DaRhtwrC.d.cts → capture-session-v3-BdpUe0ht.d.cts} +3 -1
  5. package/dist/{capture-session-v3-_JtEhXUz.d.ts → capture-session-v3-Q4otwuve.d.ts} +3 -1
  6. package/dist/{chunk-EF4VD4GD.js → chunk-2DBOZDYR.js} +1 -1
  7. package/dist/{chunk-K7ICBHSZ.js → chunk-5QUJHFOH.js} +1 -1
  8. package/dist/{chunk-NMPMXAH3.js → chunk-7GUHA2NM.js} +1 -1
  9. package/dist/chunk-AYWS6XTB.js +1 -0
  10. package/dist/{chunk-W42RLLAC.js → chunk-DTQTSZAX.js} +1 -1
  11. package/dist/{chunk-H2ZUHMIC.js → chunk-EP6FVAR4.js} +2 -2
  12. package/dist/{chunk-KCUXJT7L.js → chunk-GVAN773O.js} +1 -1
  13. package/dist/{chunk-AIRC3HT7.js → chunk-KORZGQLS.js} +1 -1
  14. package/dist/{chunk-XON3UNG3.js → chunk-LTGRPMMY.js} +1 -1
  15. package/dist/chunk-PW2HWXBJ.js +1 -0
  16. package/dist/{chunk-VZGTOE22.js → chunk-QPO6LOYB.js} +1 -1
  17. package/dist/chunk-VSLJZ7GH.js +1 -0
  18. package/dist/chunk-W357WDNU.js +1 -0
  19. package/dist/client/index.cjs +1 -1
  20. package/dist/client/index.d.cts +3 -3
  21. package/dist/client/index.d.ts +3 -3
  22. package/dist/client/index.js +1 -1
  23. package/dist/core/index.cjs +1 -1
  24. package/dist/core/index.d.cts +3 -3
  25. package/dist/core/index.d.ts +3 -3
  26. package/dist/core/index.js +1 -1
  27. package/dist/create-document-capture-EK7EDLTD.js +1 -0
  28. package/dist/{create-verification-C58r4HV-.d.cts → create-verification-BJGWTzCS.d.cts} +3 -3
  29. package/dist/{create-verification-Bda1l0t0.d.ts → create-verification-CCCvsDdp.d.ts} +3 -3
  30. package/dist/{detector-scanic-GGIKCF6B.js → detector-scanic-LYXXX77M.js} +1 -1
  31. package/dist/{icao-gate-67SejsPE.d.cts → icao-gate-C2B9Yyz0.d.cts} +1 -1
  32. package/dist/{icao-gate-CjdvLXEu.d.ts → icao-gate-toRhhMow.d.ts} +1 -1
  33. package/dist/{icao-policy-CJsmf9Vh.d.cts → icao-policy-CFoaL76l.d.cts} +2 -2
  34. package/dist/{icao-policy-COdRM4m_.d.ts → icao-policy-xp26r3lv.d.ts} +2 -2
  35. package/dist/index.cjs +2 -2
  36. package/dist/index.d.cts +7 -7
  37. package/dist/index.d.ts +7 -7
  38. package/dist/index.js +1 -1
  39. package/dist/internal/index.cjs +3 -3
  40. package/dist/internal/index.d.cts +6 -6
  41. package/dist/internal/index.d.ts +6 -6
  42. package/dist/internal/index.js +1 -1
  43. package/dist/plan-runner-7XZH4SBZ.js +1 -0
  44. package/dist/print-DCYX3CZD.js +1 -0
  45. package/dist/{types-BOfzAhqF.d.cts → types-BUvxjU5V.d.cts} +66 -2
  46. package/dist/{types-BOfzAhqF.d.ts → types-BUvxjU5V.d.ts} +66 -2
  47. package/package.json +1 -1
  48. package/sbom.cdx.json +19 -19
  49. package/dist/camera-trait-V4UAOPIQ.js +0 -1
  50. package/dist/chunk-2J6R5JOJ.js +0 -1
  51. package/dist/chunk-2LDOXGY3.js +0 -1
  52. package/dist/chunk-XFATG7QI.js +0 -1
  53. package/dist/create-document-capture-PG6NLCPH.js +0 -1
  54. package/dist/plan-runner-BZ7LODPB.js +0 -1
  55. package/dist/print-SEWS3VHQ.js +0 -1
package/dist/index.d.cts CHANGED
@@ -1,12 +1,12 @@
1
- import { F as FormIssue, D as DocumentCaptureOptions, a as DocumentCaptureHandle, P as PortraitCaptureOptions, b as PortraitCaptureHandle } from './create-verification-C58r4HV-.cjs';
2
- export { A as AcceptedDocumentsLike, C as CameraFacing, c as CaptureChannel, d as CaptureEngineId, e as CaptureError, f as CaptureErrorDetail, g as CaptureErrorKind, h as CaptureErrorPhase, i as CaptureState, j as CapturedArtifacts, k as CapturedDocument, l as CapturedPortrait, m as ChallengeErrorCode, n as ChoiceOptionSnapshot, o as ChoiceSnapshot, p as ChoiceStepHandle, q as ContactChoiceSnapshot, r as ContactChoiceStepHandle, s as DEFAULT_API_ORIGIN, t as DOCUMENT_TYPE_ORDER, u as DeriveStepEnv, v as DocumentCaptureEvents, w as DocumentCaptureState, x as DocumentFeedback, y as DocumentFeedbackKey, z as DocumentGateUpdate, B as DocumentGuide, E as DocumentGuideMeasure, G as DocumentLiveMrzOptions, H as DocumentMrzUpdate, I as DocumentPoint, J as DocumentQuad, K as DocumentReticle, L as DocumentScanPhase, M as DocumentScanUpdate, N as DocumentSide, O as DocumentSnapshot, Q as DocumentStepHandle, R as EidSnapshot, S as EidStepHandle, T as EmailOtpSnapshot, U as EmailOtpStepHandle, V as EmailSource, W as FORM_ANSWERS_INVALID, X as FormAnswersError, Y as FormSnapshot, Z as FormStepHandle, _ as GateHint, $ as GateUpdate, a0 as ISSUER_CODES, a1 as IdentitySummarySnapshot, a2 as IdentitySummaryStepHandle, a3 as InLaneSwitch, a4 as LivePhotoGateUpdate, a5 as LivePhotoPlan, a6 as LivenessAssetsStatus, a7 as LivenessCaptureEvents, a8 as LivenessCaptureHandle, a9 as LivenessCaptureOptions, aa as LivenessSnapshot, ab as LivenessStartOptions, ac as LivenessStepHandle, ad as MethodSnapshot, ae as MethodStepHandle, af as MobileRequiredSnapshot, ag as MobileRequiredStepHandle, ah as NativeAppRequiredSnapshot, ai as NativeAppRequiredStepHandle, aj as OtpChannel, ak as OtpNumberSource, al as PLATFORM_UNSUPPORTED, am as PageCaptureHandle, an as PhoneOtpSnapshot, ao as PhoneOtpStepHandle, ap as PhotoSourceState, aq as PlanChoiceSnapshot, ar as PortraitCaptureEvents, as as PortraitCaptureState, at as PortraitGateUpdate, au as PortraitSnapshot, av as PortraitStartOptions, aw as PortraitStepHandle, ax as PreloadLivenessAssetsOptions, ay as ProcessingSnapshot, az as ProcessingStepHandle, aA as ProofOfAddressSnapshot, aB as ProofOfAddressStepHandle, aC as ReasonCode, aD as RegistrySnapshot, aE as RegistrySource, aF as RegistryStepHandle, aG as ResultDisplay, aH as ResultSnapshot, aI as ResultStepHandle, aJ as SdkFailureReason, aK as StepAttempts, aL as StepContext, aM as StepSnapshot, aN as UnsupportedReason, aO as UnsupportedSnapshot, aP as UnsupportedStepHandle, aQ as Verification, aR as VerificationBusy, aS as VerificationEvents, aT as VerificationLocale, aU as VerificationOptions, aV as VerificationResult, aW as VerificationStatus, aX as VerificationStep, aY as WEB_IDENTITY_METHODS, aZ as acceptedIssuers, a_ as acceptedTypesFor, a$ as cameraUnavailableCauseOf, b0 as createLivenessCapture, b1 as createVerification, b2 as deriveStep, b3 as flagOf, b4 as getLivenessAssetsStatus, b5 as laneOf, b6 as otherOptions, b7 as preloadLivenessAssets, b8 as releaseLivenessAssets, b9 as resolveAcceptedDocuments, ba as sectionOf, bb as subscribeLivenessAssets } from './create-verification-C58r4HV-.cjs';
3
- import { be as ScreenRampColour, X as HostedFormView, H as FormInput } from './types-BOfzAhqF.cjs';
4
- export { A as AcceptedDocumentType, bf as AgeEstimationReason, bg as CameraUnavailableCause, bh as CaptureIssueReport, b as CaptureMode, bi as CaptureProvenance, f as CheckReason, g as CheckState, h as CheckType, i as ClosedBy, l as ContactChannel, D as DecisionReason, o as DocReason, E as EidAfterPass, q as EidAuthInput, r as EidReason, t as EmailOtpReason, u as FaceMatchReason, v as FormAddressValue, w as FormAnswerValue, x as FormChoiceView, y as FormConsentView, z as FormCustomQuestionView, B as FormFieldName, G as FormFieldQuestionView, I as FormIssueCode, J as FormLocale, K as FormQuestionOptions, L as FormQuestionType, M as FormQuestionView, N as HostedAcceptedDocuments, bj as HostedBranding, bk as HostedBrandingColorKey, O as HostedCaptureTuning, P as HostedChallengeView, Q as HostedConsentView, R as HostedDocumentCaptureTuning, S as HostedDocumentScanTuning, T as HostedDocumentsView, U as HostedEidView, V as HostedEmailOtpView, W as HostedFlowRef, Y as HostedIcaoPolicy, Z as HostedIntegrity, _ as HostedLivePhotoTuning, bl as HostedLivenessCaptureTuning, $ as HostedNativeAppView, a0 as HostedNativeCaptureTuning, a1 as HostedOcrTuning, a2 as HostedOtpView, a3 as HostedPlanView, a4 as HostedPoaRuleKindView, a5 as HostedPoaRuleView, a6 as HostedPortraitPendingFix, a7 as HostedPortraitView, a8 as HostedProofOfAddressView, a9 as HostedSessionView, aa as HostedSimulationView, ab as HostedStepView, ac as HostedTesterGateView, ad as HostedVoiceLocale, ae as HostedVoiceView, bm as IcaoCaptureTuning, af as IcaoCriterion, ag as IcaoReportEntry, ah as IdentityConfirmDecision, ai as IdentityMethod, aj as IdentitySummarySource, ak as IdentitySummaryView, an as LivenessReason, ao as MatchReason, aq as MethodChoiceView, ar as NationalEidOption, as as NfcChipReason, at as NfcStepView, au as OtpChoiceView, av as PhoneCountryRule, aw as PhoneFormat, ay as PhoneOtpReason, az as PhotoSource, aA as PhotoSourcePick, aB as PlanAttempts, aC as PlanChoiceKind, aD as PlanChoiceOption, aE as PlanChoiceView, aF as PlanSectionView, aG as PlanStepView, aJ as PoaKind, aL as PoaNameMatchMode, aN as PoaReason, aO as PoaRuleSource, aQ as PopulationReason, aR as PortraitFix, aS as PortraitFixReviewInput, aT as PortraitIcaoInput, aU as PortraitIcaoReason, aV as PortraitOutputFormat, aZ as ResolvedCaptureMode, bn as RetakeHint, a_ as SandboxSimulatedReason, a$ as SandboxSimulation, bo as ScreenRampChallenge, bp as ScreenRampPaint, bq as ScreenRampRendered, br as ScreenRampReport, b0 as SessionDecidingStep, b1 as SessionFailureReason, b2 as SessionReason, b3 as SessionStatus, b6 as SimulatedCaptureInput, b7 as StepResult, b8 as StepSection, ba as TesterGateInput, bb as TesterGateResponse, bc as VerificationAssurance, bd as VerificationLevel } from './types-BOfzAhqF.cjs';
1
+ import { F as FormIssue, D as DocumentCaptureOptions, a as DocumentCaptureHandle, P as PortraitCaptureOptions, b as PortraitCaptureHandle } from './create-verification-BJGWTzCS.cjs';
2
+ export { A as AcceptedDocumentsLike, C as CameraFacing, c as CaptureChannel, d as CaptureEngineId, e as CaptureError, f as CaptureErrorDetail, g as CaptureErrorKind, h as CaptureErrorPhase, i as CaptureState, j as CapturedArtifacts, k as CapturedDocument, l as CapturedPortrait, m as ChallengeErrorCode, n as ChoiceOptionSnapshot, o as ChoiceSnapshot, p as ChoiceStepHandle, q as ContactChoiceSnapshot, r as ContactChoiceStepHandle, s as DEFAULT_API_ORIGIN, t as DOCUMENT_TYPE_ORDER, u as DeriveStepEnv, v as DocumentCaptureEvents, w as DocumentCaptureState, x as DocumentFeedback, y as DocumentFeedbackKey, z as DocumentGateUpdate, B as DocumentGuide, E as DocumentGuideMeasure, G as DocumentLiveMrzOptions, H as DocumentMrzUpdate, I as DocumentPoint, J as DocumentQuad, K as DocumentReticle, L as DocumentScanPhase, M as DocumentScanUpdate, N as DocumentSide, O as DocumentSnapshot, Q as DocumentStepHandle, R as EidSnapshot, S as EidStepHandle, T as EmailOtpSnapshot, U as EmailOtpStepHandle, V as EmailSource, W as FORM_ANSWERS_INVALID, X as FormAnswersError, Y as FormSnapshot, Z as FormStepHandle, _ as GateHint, $ as GateUpdate, a0 as ISSUER_CODES, a1 as IdentitySummarySnapshot, a2 as IdentitySummaryStepHandle, a3 as InLaneSwitch, a4 as LivePhotoGateUpdate, a5 as LivePhotoPlan, a6 as LivenessAssetsStatus, a7 as LivenessCaptureEvents, a8 as LivenessCaptureHandle, a9 as LivenessCaptureOptions, aa as LivenessSnapshot, ab as LivenessStartOptions, ac as LivenessStepHandle, ad as MethodSnapshot, ae as MethodStepHandle, af as MobileRequiredSnapshot, ag as MobileRequiredStepHandle, ah as NativeAppRequiredSnapshot, ai as NativeAppRequiredStepHandle, aj as OtpChannel, ak as OtpNumberSource, al as PLATFORM_UNSUPPORTED, am as PageCaptureHandle, an as PhoneOtpSnapshot, ao as PhoneOtpStepHandle, ap as PhotoSourceState, aq as PlanChoiceSnapshot, ar as PortraitCaptureEvents, as as PortraitCaptureState, at as PortraitGateUpdate, au as PortraitSnapshot, av as PortraitStartOptions, aw as PortraitStepHandle, ax as PreloadLivenessAssetsOptions, ay as ProcessingSnapshot, az as ProcessingStepHandle, aA as ProofOfAddressSnapshot, aB as ProofOfAddressStepHandle, aC as ReasonCode, aD as RegistrySnapshot, aE as RegistrySource, aF as RegistryStepHandle, aG as ResultDisplay, aH as ResultSnapshot, aI as ResultStepHandle, aJ as SdkFailureReason, aK as StepAttempts, aL as StepContext, aM as StepSnapshot, aN as UnsupportedReason, aO as UnsupportedSnapshot, aP as UnsupportedStepHandle, aQ as Verification, aR as VerificationBusy, aS as VerificationEvents, aT as VerificationLocale, aU as VerificationOptions, aV as VerificationResult, aW as VerificationStatus, aX as VerificationStep, aY as WEB_IDENTITY_METHODS, aZ as acceptedIssuers, a_ as acceptedTypesFor, a$ as cameraUnavailableCauseOf, b0 as createLivenessCapture, b1 as createVerification, b2 as deriveStep, b3 as flagOf, b4 as getLivenessAssetsStatus, b5 as laneOf, b6 as otherOptions, b7 as preloadLivenessAssets, b8 as releaseLivenessAssets, b9 as resolveAcceptedDocuments, ba as sectionOf, bb as subscribeLivenessAssets } from './create-verification-BJGWTzCS.cjs';
3
+ import { be as ScreenRampColour, X as HostedFormView, H as FormInput } from './types-BUvxjU5V.cjs';
4
+ export { A as AcceptedDocumentType, bf as AgeEstimationReason, bg as CameraUnavailableCause, bh as CaptureEnvironment, bi as CaptureIssueReport, b as CaptureMode, bj as CaptureProvenance, f as CheckReason, g as CheckState, h as CheckType, i as ClosedBy, l as ContactChannel, D as DecisionReason, o as DocReason, E as EidAfterPass, q as EidAuthInput, r as EidReason, t as EmailOtpReason, u as FaceMatchReason, v as FormAddressValue, w as FormAnswerValue, x as FormChoiceView, y as FormConsentView, z as FormCustomQuestionView, B as FormFieldName, G as FormFieldQuestionView, I as FormIssueCode, J as FormLocale, K as FormQuestionOptions, L as FormQuestionType, M as FormQuestionView, N as HostedAcceptedDocuments, bk as HostedBranding, bl as HostedBrandingColorKey, O as HostedCaptureTuning, P as HostedChallengeView, Q as HostedConsentView, R as HostedDocumentCaptureTuning, S as HostedDocumentScanTuning, T as HostedDocumentsView, U as HostedEidView, V as HostedEmailOtpView, W as HostedFlowRef, Y as HostedIcaoPolicy, Z as HostedIntegrity, _ as HostedLivePhotoTuning, bm as HostedLivenessCaptureTuning, $ as HostedNativeAppView, a0 as HostedNativeCaptureTuning, a1 as HostedOcrTuning, a2 as HostedOtpView, a3 as HostedPlanView, a4 as HostedPoaRuleKindView, a5 as HostedPoaRuleView, a6 as HostedPortraitPendingFix, a7 as HostedPortraitView, a8 as HostedProofOfAddressView, a9 as HostedSessionView, aa as HostedSimulationView, ab as HostedStepView, ac as HostedTesterGateView, ad as HostedVoiceLocale, ae as HostedVoiceView, bn as IcaoCaptureTuning, af as IcaoCriterion, ag as IcaoReportEntry, ah as IdentityConfirmDecision, ai as IdentityMethod, aj as IdentitySummarySource, ak as IdentitySummaryView, an as LivenessReason, ao as MatchReason, aq as MethodChoiceView, ar as NationalEidOption, as as NfcChipReason, at as NfcStepView, au as OtpChoiceView, av as PhoneCountryRule, aw as PhoneFormat, ay as PhoneOtpReason, az as PhotoSource, aA as PhotoSourcePick, aB as PlanAttempts, aC as PlanChoiceKind, aD as PlanChoiceOption, aE as PlanChoiceView, aF as PlanSectionView, aG as PlanStepView, aJ as PoaKind, aL as PoaNameMatchMode, aN as PoaReason, aO as PoaRuleSource, aQ as PopulationReason, aR as PortraitFix, aS as PortraitFixReviewInput, aT as PortraitIcaoInput, aU as PortraitIcaoReason, aV as PortraitOutputFormat, aZ as ResolvedCaptureMode, bo as RetakeHint, a_ as SandboxSimulatedReason, a$ as SandboxSimulation, bp as ScreenRampChallenge, bq as ScreenRampPaint, br as ScreenRampRendered, bs as ScreenRampReport, b0 as SessionDecidingStep, b1 as SessionFailureReason, b2 as SessionReason, b3 as SessionStatus, b6 as SimulatedCaptureInput, b7 as StepResult, b8 as StepSection, ba as TesterGateInput, bb as TesterGateResponse, bc as VerificationAssurance, bd as VerificationLevel } from './types-BUvxjU5V.cjs';
5
5
  export { OpenHostedOptions, PopupBlocked, PopupHandle, SEKYRO_EVENTS, SekyroEvent, SekyroEventName, openHosted } from './popup/index.cjs';
6
- export { H as HostedApiError, a as HostedErrorDetails, b as HostedErrorIssue, K as KNOWN_CODES, c as KnownCode, i as icaoPolicyOf, d as isKnownCode } from './icao-policy-CJsmf9Vh.cjs';
7
- export { c as HeadPose, I as IcaoCoachKey, d as IcaoCriterionState, e as IcaoGateCriterion, f as IcaoGateSummary, g as IcaoGateUpdate } from './icao-gate-67SejsPE.cjs';
6
+ export { H as HostedApiError, a as HostedErrorDetails, b as HostedErrorIssue, K as KNOWN_CODES, c as KnownCode, i as icaoPolicyOf, d as isKnownCode } from './icao-policy-CFoaL76l.cjs';
7
+ export { c as HeadPose, I as IcaoCoachKey, d as IcaoCriterionState, e as IcaoGateCriterion, f as IcaoGateSummary, g as IcaoGateUpdate } from './icao-gate-C2B9Yyz0.cjs';
8
8
  import './detect-worker-CHqsPJoM.cjs';
9
- import './capture-session-v3-DaRhtwrC.cjs';
9
+ import './capture-session-v3-BdpUe0ht.cjs';
10
10
 
11
11
  /** The closed palette, in the order the backend lists it. */
12
12
  declare const SCREEN_RAMP_COLOURS: readonly ScreenRampColour[];
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- import { F as FormIssue, D as DocumentCaptureOptions, a as DocumentCaptureHandle, P as PortraitCaptureOptions, b as PortraitCaptureHandle } from './create-verification-Bda1l0t0.js';
2
- export { A as AcceptedDocumentsLike, C as CameraFacing, c as CaptureChannel, d as CaptureEngineId, e as CaptureError, f as CaptureErrorDetail, g as CaptureErrorKind, h as CaptureErrorPhase, i as CaptureState, j as CapturedArtifacts, k as CapturedDocument, l as CapturedPortrait, m as ChallengeErrorCode, n as ChoiceOptionSnapshot, o as ChoiceSnapshot, p as ChoiceStepHandle, q as ContactChoiceSnapshot, r as ContactChoiceStepHandle, s as DEFAULT_API_ORIGIN, t as DOCUMENT_TYPE_ORDER, u as DeriveStepEnv, v as DocumentCaptureEvents, w as DocumentCaptureState, x as DocumentFeedback, y as DocumentFeedbackKey, z as DocumentGateUpdate, B as DocumentGuide, E as DocumentGuideMeasure, G as DocumentLiveMrzOptions, H as DocumentMrzUpdate, I as DocumentPoint, J as DocumentQuad, K as DocumentReticle, L as DocumentScanPhase, M as DocumentScanUpdate, N as DocumentSide, O as DocumentSnapshot, Q as DocumentStepHandle, R as EidSnapshot, S as EidStepHandle, T as EmailOtpSnapshot, U as EmailOtpStepHandle, V as EmailSource, W as FORM_ANSWERS_INVALID, X as FormAnswersError, Y as FormSnapshot, Z as FormStepHandle, _ as GateHint, $ as GateUpdate, a0 as ISSUER_CODES, a1 as IdentitySummarySnapshot, a2 as IdentitySummaryStepHandle, a3 as InLaneSwitch, a4 as LivePhotoGateUpdate, a5 as LivePhotoPlan, a6 as LivenessAssetsStatus, a7 as LivenessCaptureEvents, a8 as LivenessCaptureHandle, a9 as LivenessCaptureOptions, aa as LivenessSnapshot, ab as LivenessStartOptions, ac as LivenessStepHandle, ad as MethodSnapshot, ae as MethodStepHandle, af as MobileRequiredSnapshot, ag as MobileRequiredStepHandle, ah as NativeAppRequiredSnapshot, ai as NativeAppRequiredStepHandle, aj as OtpChannel, ak as OtpNumberSource, al as PLATFORM_UNSUPPORTED, am as PageCaptureHandle, an as PhoneOtpSnapshot, ao as PhoneOtpStepHandle, ap as PhotoSourceState, aq as PlanChoiceSnapshot, ar as PortraitCaptureEvents, as as PortraitCaptureState, at as PortraitGateUpdate, au as PortraitSnapshot, av as PortraitStartOptions, aw as PortraitStepHandle, ax as PreloadLivenessAssetsOptions, ay as ProcessingSnapshot, az as ProcessingStepHandle, aA as ProofOfAddressSnapshot, aB as ProofOfAddressStepHandle, aC as ReasonCode, aD as RegistrySnapshot, aE as RegistrySource, aF as RegistryStepHandle, aG as ResultDisplay, aH as ResultSnapshot, aI as ResultStepHandle, aJ as SdkFailureReason, aK as StepAttempts, aL as StepContext, aM as StepSnapshot, aN as UnsupportedReason, aO as UnsupportedSnapshot, aP as UnsupportedStepHandle, aQ as Verification, aR as VerificationBusy, aS as VerificationEvents, aT as VerificationLocale, aU as VerificationOptions, aV as VerificationResult, aW as VerificationStatus, aX as VerificationStep, aY as WEB_IDENTITY_METHODS, aZ as acceptedIssuers, a_ as acceptedTypesFor, a$ as cameraUnavailableCauseOf, b0 as createLivenessCapture, b1 as createVerification, b2 as deriveStep, b3 as flagOf, b4 as getLivenessAssetsStatus, b5 as laneOf, b6 as otherOptions, b7 as preloadLivenessAssets, b8 as releaseLivenessAssets, b9 as resolveAcceptedDocuments, ba as sectionOf, bb as subscribeLivenessAssets } from './create-verification-Bda1l0t0.js';
3
- import { be as ScreenRampColour, X as HostedFormView, H as FormInput } from './types-BOfzAhqF.js';
4
- export { A as AcceptedDocumentType, bf as AgeEstimationReason, bg as CameraUnavailableCause, bh as CaptureIssueReport, b as CaptureMode, bi as CaptureProvenance, f as CheckReason, g as CheckState, h as CheckType, i as ClosedBy, l as ContactChannel, D as DecisionReason, o as DocReason, E as EidAfterPass, q as EidAuthInput, r as EidReason, t as EmailOtpReason, u as FaceMatchReason, v as FormAddressValue, w as FormAnswerValue, x as FormChoiceView, y as FormConsentView, z as FormCustomQuestionView, B as FormFieldName, G as FormFieldQuestionView, I as FormIssueCode, J as FormLocale, K as FormQuestionOptions, L as FormQuestionType, M as FormQuestionView, N as HostedAcceptedDocuments, bj as HostedBranding, bk as HostedBrandingColorKey, O as HostedCaptureTuning, P as HostedChallengeView, Q as HostedConsentView, R as HostedDocumentCaptureTuning, S as HostedDocumentScanTuning, T as HostedDocumentsView, U as HostedEidView, V as HostedEmailOtpView, W as HostedFlowRef, Y as HostedIcaoPolicy, Z as HostedIntegrity, _ as HostedLivePhotoTuning, bl as HostedLivenessCaptureTuning, $ as HostedNativeAppView, a0 as HostedNativeCaptureTuning, a1 as HostedOcrTuning, a2 as HostedOtpView, a3 as HostedPlanView, a4 as HostedPoaRuleKindView, a5 as HostedPoaRuleView, a6 as HostedPortraitPendingFix, a7 as HostedPortraitView, a8 as HostedProofOfAddressView, a9 as HostedSessionView, aa as HostedSimulationView, ab as HostedStepView, ac as HostedTesterGateView, ad as HostedVoiceLocale, ae as HostedVoiceView, bm as IcaoCaptureTuning, af as IcaoCriterion, ag as IcaoReportEntry, ah as IdentityConfirmDecision, ai as IdentityMethod, aj as IdentitySummarySource, ak as IdentitySummaryView, an as LivenessReason, ao as MatchReason, aq as MethodChoiceView, ar as NationalEidOption, as as NfcChipReason, at as NfcStepView, au as OtpChoiceView, av as PhoneCountryRule, aw as PhoneFormat, ay as PhoneOtpReason, az as PhotoSource, aA as PhotoSourcePick, aB as PlanAttempts, aC as PlanChoiceKind, aD as PlanChoiceOption, aE as PlanChoiceView, aF as PlanSectionView, aG as PlanStepView, aJ as PoaKind, aL as PoaNameMatchMode, aN as PoaReason, aO as PoaRuleSource, aQ as PopulationReason, aR as PortraitFix, aS as PortraitFixReviewInput, aT as PortraitIcaoInput, aU as PortraitIcaoReason, aV as PortraitOutputFormat, aZ as ResolvedCaptureMode, bn as RetakeHint, a_ as SandboxSimulatedReason, a$ as SandboxSimulation, bo as ScreenRampChallenge, bp as ScreenRampPaint, bq as ScreenRampRendered, br as ScreenRampReport, b0 as SessionDecidingStep, b1 as SessionFailureReason, b2 as SessionReason, b3 as SessionStatus, b6 as SimulatedCaptureInput, b7 as StepResult, b8 as StepSection, ba as TesterGateInput, bb as TesterGateResponse, bc as VerificationAssurance, bd as VerificationLevel } from './types-BOfzAhqF.js';
1
+ import { F as FormIssue, D as DocumentCaptureOptions, a as DocumentCaptureHandle, P as PortraitCaptureOptions, b as PortraitCaptureHandle } from './create-verification-CCCvsDdp.js';
2
+ export { A as AcceptedDocumentsLike, C as CameraFacing, c as CaptureChannel, d as CaptureEngineId, e as CaptureError, f as CaptureErrorDetail, g as CaptureErrorKind, h as CaptureErrorPhase, i as CaptureState, j as CapturedArtifacts, k as CapturedDocument, l as CapturedPortrait, m as ChallengeErrorCode, n as ChoiceOptionSnapshot, o as ChoiceSnapshot, p as ChoiceStepHandle, q as ContactChoiceSnapshot, r as ContactChoiceStepHandle, s as DEFAULT_API_ORIGIN, t as DOCUMENT_TYPE_ORDER, u as DeriveStepEnv, v as DocumentCaptureEvents, w as DocumentCaptureState, x as DocumentFeedback, y as DocumentFeedbackKey, z as DocumentGateUpdate, B as DocumentGuide, E as DocumentGuideMeasure, G as DocumentLiveMrzOptions, H as DocumentMrzUpdate, I as DocumentPoint, J as DocumentQuad, K as DocumentReticle, L as DocumentScanPhase, M as DocumentScanUpdate, N as DocumentSide, O as DocumentSnapshot, Q as DocumentStepHandle, R as EidSnapshot, S as EidStepHandle, T as EmailOtpSnapshot, U as EmailOtpStepHandle, V as EmailSource, W as FORM_ANSWERS_INVALID, X as FormAnswersError, Y as FormSnapshot, Z as FormStepHandle, _ as GateHint, $ as GateUpdate, a0 as ISSUER_CODES, a1 as IdentitySummarySnapshot, a2 as IdentitySummaryStepHandle, a3 as InLaneSwitch, a4 as LivePhotoGateUpdate, a5 as LivePhotoPlan, a6 as LivenessAssetsStatus, a7 as LivenessCaptureEvents, a8 as LivenessCaptureHandle, a9 as LivenessCaptureOptions, aa as LivenessSnapshot, ab as LivenessStartOptions, ac as LivenessStepHandle, ad as MethodSnapshot, ae as MethodStepHandle, af as MobileRequiredSnapshot, ag as MobileRequiredStepHandle, ah as NativeAppRequiredSnapshot, ai as NativeAppRequiredStepHandle, aj as OtpChannel, ak as OtpNumberSource, al as PLATFORM_UNSUPPORTED, am as PageCaptureHandle, an as PhoneOtpSnapshot, ao as PhoneOtpStepHandle, ap as PhotoSourceState, aq as PlanChoiceSnapshot, ar as PortraitCaptureEvents, as as PortraitCaptureState, at as PortraitGateUpdate, au as PortraitSnapshot, av as PortraitStartOptions, aw as PortraitStepHandle, ax as PreloadLivenessAssetsOptions, ay as ProcessingSnapshot, az as ProcessingStepHandle, aA as ProofOfAddressSnapshot, aB as ProofOfAddressStepHandle, aC as ReasonCode, aD as RegistrySnapshot, aE as RegistrySource, aF as RegistryStepHandle, aG as ResultDisplay, aH as ResultSnapshot, aI as ResultStepHandle, aJ as SdkFailureReason, aK as StepAttempts, aL as StepContext, aM as StepSnapshot, aN as UnsupportedReason, aO as UnsupportedSnapshot, aP as UnsupportedStepHandle, aQ as Verification, aR as VerificationBusy, aS as VerificationEvents, aT as VerificationLocale, aU as VerificationOptions, aV as VerificationResult, aW as VerificationStatus, aX as VerificationStep, aY as WEB_IDENTITY_METHODS, aZ as acceptedIssuers, a_ as acceptedTypesFor, a$ as cameraUnavailableCauseOf, b0 as createLivenessCapture, b1 as createVerification, b2 as deriveStep, b3 as flagOf, b4 as getLivenessAssetsStatus, b5 as laneOf, b6 as otherOptions, b7 as preloadLivenessAssets, b8 as releaseLivenessAssets, b9 as resolveAcceptedDocuments, ba as sectionOf, bb as subscribeLivenessAssets } from './create-verification-CCCvsDdp.js';
3
+ import { be as ScreenRampColour, X as HostedFormView, H as FormInput } from './types-BUvxjU5V.js';
4
+ export { A as AcceptedDocumentType, bf as AgeEstimationReason, bg as CameraUnavailableCause, bh as CaptureEnvironment, bi as CaptureIssueReport, b as CaptureMode, bj as CaptureProvenance, f as CheckReason, g as CheckState, h as CheckType, i as ClosedBy, l as ContactChannel, D as DecisionReason, o as DocReason, E as EidAfterPass, q as EidAuthInput, r as EidReason, t as EmailOtpReason, u as FaceMatchReason, v as FormAddressValue, w as FormAnswerValue, x as FormChoiceView, y as FormConsentView, z as FormCustomQuestionView, B as FormFieldName, G as FormFieldQuestionView, I as FormIssueCode, J as FormLocale, K as FormQuestionOptions, L as FormQuestionType, M as FormQuestionView, N as HostedAcceptedDocuments, bk as HostedBranding, bl as HostedBrandingColorKey, O as HostedCaptureTuning, P as HostedChallengeView, Q as HostedConsentView, R as HostedDocumentCaptureTuning, S as HostedDocumentScanTuning, T as HostedDocumentsView, U as HostedEidView, V as HostedEmailOtpView, W as HostedFlowRef, Y as HostedIcaoPolicy, Z as HostedIntegrity, _ as HostedLivePhotoTuning, bm as HostedLivenessCaptureTuning, $ as HostedNativeAppView, a0 as HostedNativeCaptureTuning, a1 as HostedOcrTuning, a2 as HostedOtpView, a3 as HostedPlanView, a4 as HostedPoaRuleKindView, a5 as HostedPoaRuleView, a6 as HostedPortraitPendingFix, a7 as HostedPortraitView, a8 as HostedProofOfAddressView, a9 as HostedSessionView, aa as HostedSimulationView, ab as HostedStepView, ac as HostedTesterGateView, ad as HostedVoiceLocale, ae as HostedVoiceView, bn as IcaoCaptureTuning, af as IcaoCriterion, ag as IcaoReportEntry, ah as IdentityConfirmDecision, ai as IdentityMethod, aj as IdentitySummarySource, ak as IdentitySummaryView, an as LivenessReason, ao as MatchReason, aq as MethodChoiceView, ar as NationalEidOption, as as NfcChipReason, at as NfcStepView, au as OtpChoiceView, av as PhoneCountryRule, aw as PhoneFormat, ay as PhoneOtpReason, az as PhotoSource, aA as PhotoSourcePick, aB as PlanAttempts, aC as PlanChoiceKind, aD as PlanChoiceOption, aE as PlanChoiceView, aF as PlanSectionView, aG as PlanStepView, aJ as PoaKind, aL as PoaNameMatchMode, aN as PoaReason, aO as PoaRuleSource, aQ as PopulationReason, aR as PortraitFix, aS as PortraitFixReviewInput, aT as PortraitIcaoInput, aU as PortraitIcaoReason, aV as PortraitOutputFormat, aZ as ResolvedCaptureMode, bo as RetakeHint, a_ as SandboxSimulatedReason, a$ as SandboxSimulation, bp as ScreenRampChallenge, bq as ScreenRampPaint, br as ScreenRampRendered, bs as ScreenRampReport, b0 as SessionDecidingStep, b1 as SessionFailureReason, b2 as SessionReason, b3 as SessionStatus, b6 as SimulatedCaptureInput, b7 as StepResult, b8 as StepSection, ba as TesterGateInput, bb as TesterGateResponse, bc as VerificationAssurance, bd as VerificationLevel } from './types-BUvxjU5V.js';
5
5
  export { OpenHostedOptions, PopupBlocked, PopupHandle, SEKYRO_EVENTS, SekyroEvent, SekyroEventName, openHosted } from './popup/index.js';
6
- export { H as HostedApiError, a as HostedErrorDetails, b as HostedErrorIssue, K as KNOWN_CODES, c as KnownCode, i as icaoPolicyOf, d as isKnownCode } from './icao-policy-COdRM4m_.js';
7
- export { c as HeadPose, I as IcaoCoachKey, d as IcaoCriterionState, e as IcaoGateCriterion, f as IcaoGateSummary, g as IcaoGateUpdate } from './icao-gate-CjdvLXEu.js';
6
+ export { H as HostedApiError, a as HostedErrorDetails, b as HostedErrorIssue, K as KNOWN_CODES, c as KnownCode, i as icaoPolicyOf, d as isKnownCode } from './icao-policy-xp26r3lv.js';
7
+ export { c as HeadPose, I as IcaoCoachKey, d as IcaoCriterionState, e as IcaoGateCriterion, f as IcaoGateSummary, g as IcaoGateUpdate } from './icao-gate-toRhhMow.js';
8
8
  import './detect-worker-CHqsPJoM.js';
9
- import './capture-session-v3-_JtEhXUz.js';
9
+ import './capture-session-v3-Q4otwuve.js';
10
10
 
11
11
  /** The closed palette, in the order the backend lists it. */
12
12
  declare const SCREEN_RAMP_COLOURS: readonly ScreenRampColour[];
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{a as de,c as ue}from"./chunk-GFJATPUR.js";import{A as pe,a as W,f as q,h as J,i as h,j as P,k as v,l as R,m as g,n as Q,o as j,p as X,q as $,r as ee,s as te,t as oe,u as re,v as ne,w as ie,x as ae,y as se}from"./chunk-H2ZUHMIC.js";import{F as z,G as Y,H as S,I as f,J as y}from"./chunk-K7ICBHSZ.js";import{e as G,f as U,g as F,h as B,o as w}from"./chunk-NMPMXAH3.js";import{b as x,c as T,d as V}from"./chunk-7QZWBDI5.js";import{o as b,p as N}from"./chunk-2J6R5JOJ.js";import"./chunk-SX7TUC3V.js";import"./chunk-POIQGEZM.js";import"./chunk-CPUECYAJ.js";import"./chunk-FPXL63KZ.js";import{a as K,b as k,c as _,h as Z}from"./chunk-VZGTOE22.js";import"./chunk-TSA6GHUG.js";import"./chunk-AIRC3HT7.js";import"./chunk-FSSMUAKC.js";function ce(e){if(e==="permission")return"denied";if(e==="notfound"||e==="insecure"||e==="unsupported")return"no_camera"}var le=/^[A-Z0-9][A-Z0-9 -]{0,39}$/,me=Object.freeze({normalize:e=>e.trim().toUpperCase().replace(/\s+/g," "),check:e=>le.test(e),registrySources:Object.freeze([]),describe:"number must be 1 to 40 letters, digits, spaces or hyphens"}),Ce=/^[A-Z0-9]{4,20}$/,m=e=>e.trim().toUpperCase().replace(/[\s-]+/g,""),Se=Object.freeze({normalize:m,check:e=>Ce.test(m(e)),registrySources:Object.freeze([]),describe:"number must be 4 to 20 letters or digits"});function fe(e){return typeof e=="string"&&/^\d{10}$/.test(e)&&Number(e)%97===1}var ye={trim:e=>e.trim(),upper_single_space:e=>e.trim().toUpperCase().replace(/\s+/g," "),upper_no_space_or_hyphen:m},he={mr_nni_mod97:e=>fe(e)};function Pe(e){let t=new RegExp(e.pattern,"u"),r=e.check===null?void 0:he[e.check];return Object.freeze({normalize:ye[e.normalize],check:n=>t.test(n.trim())&&(r===void 0||r(n)),registrySources:Object.freeze([...e.registrySources]),describe:e.describe})}var ve=Object.freeze(Object.fromEntries(Object.entries(S).map(([e,t])=>[e,Pe(t)])));function C(e,t){return ve[`${e.toUpperCase()}:${t}`]??(t==="drivers_license"?Se:me)}var Re=Object.freeze({MRT:"MR"});function M(e,t){let r=e.trim().toUpperCase();return C(Re[r]??r,t)}function ge(e){let t=M(e.issuingCountry,e.type);return t.check(t.normalize(e.number))}function Me(e){return C("MR","national_id").check(e)}function H(e){let t="";for(let r of e){let n=r.codePointAt(0)??0;n>=1632&&n<=1641?t+=String(n-1632):n>=1776&&n<=1785?t+=String(n-1776):r!==" "&&r!=="-"&&r!==" "&&(t+=r)}return t}function He(e){return H(e)}var Ze=h,ze=P,Ye=v,We=R,qe=g;var E=()=>import("./create-document-capture-PG6NLCPH.js");function A(e){let t=null,r=null,n=!1,d=null,l=null,u=[],i=(o,s)=>{o.off=s.on(o.event,o.handler)},a=()=>(r??(r=E().then(o=>{if(n)return null;let s=o.createDocumentCaptureInternal(e,{}).handle;for(let c of u)c.removed||i(c,s);return d!==null&&s.setSide(d),l!==null&&s.setGuide(l.guide),t=s,s})),r),p=()=>a().catch(()=>{if(r=null,!n)for(let o of u)!o.removed&&o.event==="error"&&o.handler({kind:"generic",retryable:!0});return null});return{get state(){return t?.state??"idle"},on:(o,s)=>{let c={event:o,handler:s,off:null,removed:!1};return u.push(c),t!==null&&i(c,t),()=>{c.removed=!0,c.off?.()}},start:async()=>{let o=await p();o!==null&&!n&&await o.start()},retry:()=>{t!==null?t.retry():p().then(o=>o?.start())},setSide:o=>{t!==null?t.setSide(o):d=o},shutter:()=>t?.shutter(),setTorch:o=>t?.setTorch(o),focusAt:(o,s)=>t?.focusAt(o,s),setGuide:o=>{t!==null?t.setGuide(o):l={guide:o}},destroy:()=>{n=!0,t?.destroy(),t=null,u.length=0}}}function D(){E().then(e=>e.warmDocumentCapture()).catch(()=>{})}function $e(e){return A(e)}function et(){D()}var O=()=>import("./create-portrait-capture-5VGYZUOK.js");function L(e){let t=null,r=null,n=!1,d=[],l=(i,a)=>{i.off=a.on(i.event,i.handler)},u=()=>(r??(r=O().then(i=>{if(n)return null;let a=i.createPortraitCaptureInternal(e).handle;for(let p of d)p.removed||l(p,a);return t=a,a})),r);return{get state(){return t?.state??"idle"},get captureMode(){return t?.captureMode??"self"},get facingMode(){return t?.facingMode??"user"},on:(i,a)=>{let p={event:i,handler:a,off:null,removed:!1};return d.push(p),t!==null&&l(p,t),()=>{p.removed=!0,p.off?.()}},start:async i=>{let a=await u();a!==null&&!n&&await a.start(i)},retry:()=>{t!==null?t.retry():u().then(i=>i?.start())},switchCamera:()=>t?.switchCamera()??!1,canSwitchCaptureMode:async()=>!1,setCaptureMode:async()=>!1,destroy:()=>{n=!0,t?.destroy(),t=null,d.length=0}}}function I(){O().then(e=>e.warmPortraitCapture()).catch(()=>{})}function it(e){return L(e)}function at(){I()}export{W as DEFAULT_API_ORIGIN,Ze as DOCUMENT_TYPE_ORDER,z as FORM_ANSWERS_INVALID,Q as FORM_ANSWER_LIMITS,Y as FormAnswersError,_ as HostedApiError,J as ISSUER_CODES,f as InvalidInputError,K as KNOWN_CODES,y as OtpInputError,ne as PLATFORM_UNSUPPORTED,b as SCREEN_RAMP_COLOURS,de as SEKYRO_EVENTS,re as WEB_IDENTITY_METHODS,Ye as acceptedIssuers,ze as acceptedTypesFor,ce as cameraUnavailableCauseOf,ee as containsCardNumber,$e as createDocumentCapture,w as createLivenessCapture,it as createPortraitCapture,q as createVerification,pe as deriveStep,j as directionOf,qe as flagOf,oe as formIssues,U as getLivenessAssetsStatus,V as hasMultipleCameras,Z as icaoPolicyOf,X as isFormDate,$ as isFormNumber,k as isKnownCode,ge as isValidIdNumber,Me as isValidNni,ae as laneOf,H as normalizeDigits,He as normalizeNni,ue as openHosted,se as otherOptions,G as preloadLivenessAssets,x as queryCameraPermission,B as releaseLivenessAssets,We as resolveAcceptedDocuments,N as screenRampColourValue,ie as sectionOf,T as subscribeCameraPermission,F as subscribeLivenessAssets,te as todayIso,et as warmDocumentCapture,at as warmPortraitCapture};
1
+ import{a as de,c as ue}from"./chunk-GFJATPUR.js";import{A as pe,a as W,f as q,h as J,i as h,j as P,k as v,l as R,m as g,n as Q,o as j,p as X,q as $,r as ee,s as te,t as oe,u as re,v as ne,w as ie,x as ae,y as se}from"./chunk-EP6FVAR4.js";import{F as z,G as Y,H as S,I as f,J as y}from"./chunk-5QUJHFOH.js";import{e as G,f as U,g as F,h as B,o as w}from"./chunk-7GUHA2NM.js";import{b as x,c as T,d as V}from"./chunk-7QZWBDI5.js";import{o as b,p as N}from"./chunk-AYWS6XTB.js";import"./chunk-SX7TUC3V.js";import"./chunk-W357WDNU.js";import"./chunk-POIQGEZM.js";import"./chunk-CPUECYAJ.js";import"./chunk-FPXL63KZ.js";import{a as K,b as k,c as _,h as Z}from"./chunk-QPO6LOYB.js";import"./chunk-TSA6GHUG.js";import"./chunk-KORZGQLS.js";import"./chunk-FSSMUAKC.js";function ce(e){if(e==="permission")return"denied";if(e==="notfound"||e==="insecure"||e==="unsupported")return"no_camera"}var le=/^[A-Z0-9][A-Z0-9 -]{0,39}$/,me=Object.freeze({normalize:e=>e.trim().toUpperCase().replace(/\s+/g," "),check:e=>le.test(e),registrySources:Object.freeze([]),describe:"number must be 1 to 40 letters, digits, spaces or hyphens"}),Ce=/^[A-Z0-9]{4,20}$/,m=e=>e.trim().toUpperCase().replace(/[\s-]+/g,""),Se=Object.freeze({normalize:m,check:e=>Ce.test(m(e)),registrySources:Object.freeze([]),describe:"number must be 4 to 20 letters or digits"});function fe(e){return typeof e=="string"&&/^\d{10}$/.test(e)&&Number(e)%97===1}var ye={trim:e=>e.trim(),upper_single_space:e=>e.trim().toUpperCase().replace(/\s+/g," "),upper_no_space_or_hyphen:m},he={mr_nni_mod97:e=>fe(e)};function Pe(e){let t=new RegExp(e.pattern,"u"),r=e.check===null?void 0:he[e.check];return Object.freeze({normalize:ye[e.normalize],check:n=>t.test(n.trim())&&(r===void 0||r(n)),registrySources:Object.freeze([...e.registrySources]),describe:e.describe})}var ve=Object.freeze(Object.fromEntries(Object.entries(S).map(([e,t])=>[e,Pe(t)])));function C(e,t){return ve[`${e.toUpperCase()}:${t}`]??(t==="drivers_license"?Se:me)}var Re=Object.freeze({MRT:"MR"});function M(e,t){let r=e.trim().toUpperCase();return C(Re[r]??r,t)}function ge(e){let t=M(e.issuingCountry,e.type);return t.check(t.normalize(e.number))}function Me(e){return C("MR","national_id").check(e)}function H(e){let t="";for(let r of e){let n=r.codePointAt(0)??0;n>=1632&&n<=1641?t+=String(n-1632):n>=1776&&n<=1785?t+=String(n-1776):r!==" "&&r!=="-"&&r!==" "&&(t+=r)}return t}function He(e){return H(e)}var Ze=h,ze=P,Ye=v,We=R,qe=g;var E=()=>import("./create-document-capture-EK7EDLTD.js");function A(e){let t=null,r=null,n=!1,d=null,l=null,u=[],i=(o,s)=>{o.off=s.on(o.event,o.handler)},a=()=>(r??(r=E().then(o=>{if(n)return null;let s=o.createDocumentCaptureInternal(e,{}).handle;for(let c of u)c.removed||i(c,s);return d!==null&&s.setSide(d),l!==null&&s.setGuide(l.guide),t=s,s})),r),p=()=>a().catch(()=>{if(r=null,!n)for(let o of u)!o.removed&&o.event==="error"&&o.handler({kind:"generic",retryable:!0});return null});return{get state(){return t?.state??"idle"},on:(o,s)=>{let c={event:o,handler:s,off:null,removed:!1};return u.push(c),t!==null&&i(c,t),()=>{c.removed=!0,c.off?.()}},start:async()=>{let o=await p();o!==null&&!n&&await o.start()},retry:()=>{t!==null?t.retry():p().then(o=>o?.start())},setSide:o=>{t!==null?t.setSide(o):d=o},shutter:()=>t?.shutter(),setTorch:o=>t?.setTorch(o),focusAt:(o,s)=>t?.focusAt(o,s),setGuide:o=>{t!==null?t.setGuide(o):l={guide:o}},destroy:()=>{n=!0,t?.destroy(),t=null,u.length=0}}}function D(){E().then(e=>e.warmDocumentCapture()).catch(()=>{})}function $e(e){return A(e)}function et(){D()}var O=()=>import("./create-portrait-capture-5VGYZUOK.js");function L(e){let t=null,r=null,n=!1,d=[],l=(i,a)=>{i.off=a.on(i.event,i.handler)},u=()=>(r??(r=O().then(i=>{if(n)return null;let a=i.createPortraitCaptureInternal(e).handle;for(let p of d)p.removed||l(p,a);return t=a,a})),r);return{get state(){return t?.state??"idle"},get captureMode(){return t?.captureMode??"self"},get facingMode(){return t?.facingMode??"user"},on:(i,a)=>{let p={event:i,handler:a,off:null,removed:!1};return d.push(p),t!==null&&l(p,t),()=>{p.removed=!0,p.off?.()}},start:async i=>{let a=await u();a!==null&&!n&&await a.start(i)},retry:()=>{t!==null?t.retry():u().then(i=>i?.start())},switchCamera:()=>t?.switchCamera()??!1,canSwitchCaptureMode:async()=>!1,setCaptureMode:async()=>!1,destroy:()=>{n=!0,t?.destroy(),t=null,d.length=0}}}function I(){O().then(e=>e.warmPortraitCapture()).catch(()=>{})}function it(e){return L(e)}function at(){I()}export{W as DEFAULT_API_ORIGIN,Ze as DOCUMENT_TYPE_ORDER,z as FORM_ANSWERS_INVALID,Q as FORM_ANSWER_LIMITS,Y as FormAnswersError,_ as HostedApiError,J as ISSUER_CODES,f as InvalidInputError,K as KNOWN_CODES,y as OtpInputError,ne as PLATFORM_UNSUPPORTED,b as SCREEN_RAMP_COLOURS,de as SEKYRO_EVENTS,re as WEB_IDENTITY_METHODS,Ye as acceptedIssuers,ze as acceptedTypesFor,ce as cameraUnavailableCauseOf,ee as containsCardNumber,$e as createDocumentCapture,w as createLivenessCapture,it as createPortraitCapture,q as createVerification,pe as deriveStep,j as directionOf,qe as flagOf,oe as formIssues,U as getLivenessAssetsStatus,V as hasMultipleCameras,Z as icaoPolicyOf,X as isFormDate,$ as isFormNumber,k as isKnownCode,ge as isValidIdNumber,Me as isValidNni,ae as laneOf,H as normalizeDigits,He as normalizeNni,ue as openHosted,se as otherOptions,G as preloadLivenessAssets,x as queryCameraPermission,B as releaseLivenessAssets,We as resolveAcceptedDocuments,N as screenRampColourValue,ie as sectionOf,T as subscribeCameraPermission,F as subscribeLivenessAssets,te as todayIso,et as warmDocumentCapture,at as warmPortraitCapture};