@sekyro/web 0.1.0-rc.17 → 0.1.0-rc.18

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 (32) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{capture-session-doc-TATPATSZ.js → capture-session-doc-IE5VPYWC.js} +1 -1
  3. package/dist/{chunk-QBPD7FRF.js → chunk-D42NBRSV.js} +1 -1
  4. package/dist/{chunk-TWB4LTCE.js → chunk-DNB3R4PI.js} +1 -1
  5. package/dist/chunk-G2HL2ZWH.js +1 -0
  6. package/dist/chunk-JDTZK3A7.js +1 -0
  7. package/dist/{chunk-4RS4LP7D.js → chunk-KBKCYDZQ.js} +1 -1
  8. package/dist/{chunk-GYNWLJYW.js → chunk-OG4QAJ3M.js} +1 -1
  9. package/dist/chunk-SVNAHPQU.js +1 -0
  10. package/dist/{chunk-SDWHJJ4W.js → chunk-VCUOPQFA.js} +1 -1
  11. package/dist/{chunk-ULMH32G5.js → chunk-ZMO2ZQAS.js} +1 -1
  12. package/dist/client/index.cjs +1 -1
  13. package/dist/client/index.js +1 -1
  14. package/dist/core/index.cjs +1 -1
  15. package/dist/core/index.js +1 -1
  16. package/dist/{create-document-capture-5FJI57YI.js → create-document-capture-35HFVNC3.js} +1 -1
  17. package/dist/{create-verification-CNCMU1kK.d.ts → create-verification-C_fx3n4A.d.ts} +15 -1
  18. package/dist/{create-verification-CIwl0NIg.d.cts → create-verification-DiH7QRdv.d.cts} +15 -1
  19. package/dist/index.cjs +1 -1
  20. package/dist/index.d.cts +2 -2
  21. package/dist/index.d.ts +2 -2
  22. package/dist/index.js +1 -1
  23. package/dist/internal/index.cjs +1 -1
  24. package/dist/internal/index.d.cts +2 -2
  25. package/dist/internal/index.d.ts +2 -2
  26. package/dist/internal/index.js +1 -1
  27. package/dist/{plan-runner-WRY4FOWW.js → plan-runner-YXTOSPDP.js} +1 -1
  28. package/package.json +1 -1
  29. package/sbom.cdx.json +7 -7
  30. package/dist/chunk-3SL74TFR.js +0 -1
  31. package/dist/chunk-J4NL62VQ.js +0 -1
  32. package/dist/chunk-MMTOOH32.js +0 -1
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { D as DocumentCaptureOptions, a as DocumentCaptureHandle, P as PortraitCaptureOptions, b as PortraitCaptureHandle } from './create-verification-CIwl0NIg.cjs';
2
- export { A as AcceptedDocumentsLike, C as CameraFacing, c as CaptureChannel, d as CaptureEngineId, e as CaptureError, f as CaptureErrorKind, g as CaptureState, h as CapturedArtifacts, i as CapturedDocument, j as CapturedPortrait, k as ChoiceOptionSnapshot, l as ChoiceSnapshot, m as ChoiceStepHandle, n as ContactChoiceSnapshot, o as ContactChoiceStepHandle, p as DEFAULT_API_ORIGIN, q as DOCUMENT_TYPE_ORDER, r as DeriveStepEnv, s as DocumentCaptureEvents, t as DocumentCaptureState, u as DocumentFeedback, v as DocumentFeedbackKey, w as DocumentGateUpdate, x as DocumentGuide, y as DocumentGuideMeasure, z as DocumentLiveMrzOptions, B as DocumentMrzUpdate, E as DocumentPoint, F as DocumentQuad, G as DocumentReticle, H as DocumentScanPhase, I as DocumentScanUpdate, J as DocumentSide, K as DocumentSnapshot, L as DocumentStepHandle, M as EidSnapshot, N as EidStepHandle, O as EmailOtpSnapshot, Q as EmailOtpStepHandle, R as EmailSource, S as GateHint, T as GateUpdate, U as ISSUER_CODES, V as IdentitySummarySnapshot, W as IdentitySummaryStepHandle, X as InLaneSwitch, Y as LivePhotoGateUpdate, Z as LivePhotoPlan, _ as LivenessAssetsStatus, $ as LivenessCaptureEvents, a0 as LivenessCaptureHandle, a1 as LivenessCaptureOptions, a2 as LivenessSnapshot, a3 as LivenessStartOptions, a4 as LivenessStepHandle, a5 as MethodSnapshot, a6 as MethodStepHandle, a7 as MobileRequiredSnapshot, a8 as MobileRequiredStepHandle, a9 as OtpChannel, aa as OtpNumberSource, ab as PLATFORM_UNSUPPORTED, ac as PhoneOtpSnapshot, ad as PhoneOtpStepHandle, ae as PlanChoiceSnapshot, af as PortraitCaptureEvents, ag as PortraitCaptureState, ah as PortraitGateUpdate, ai as PortraitSnapshot, aj as PortraitStartOptions, ak as PortraitStepHandle, al as PreloadLivenessAssetsOptions, am as ProcessingSnapshot, an as ProcessingStepHandle, ao as ReasonCode, ap as RegistrySnapshot, aq as RegistrySource, ar as RegistryStepHandle, as as ResultDisplay, at as ResultSnapshot, au as ResultStepHandle, av as SdkFailureReason, aw as StepAttempts, ax as StepContext, ay as StepSnapshot, az as UnsupportedReason, aA as UnsupportedSnapshot, aB as UnsupportedStepHandle, aC as Verification, aD as VerificationBusy, aE as VerificationEvents, aF as VerificationLocale, aG as VerificationOptions, aH as VerificationResult, aI as VerificationStatus, aJ as VerificationStep, aK as WEB_IDENTITY_METHODS, aL as acceptedIssuers, aM as acceptedTypesFor, aN as cameraUnavailableCauseOf, aO as createLivenessCapture, aP as createVerification, aQ as deriveStep, aR as flagOf, aS as getLivenessAssetsStatus, aT as laneOf, aU as otherOptions, aV as preloadLivenessAssets, aW as releaseLivenessAssets, aX as resolveAcceptedDocuments, aY as sectionOf, aZ as subscribeLivenessAssets } from './create-verification-CIwl0NIg.cjs';
1
+ import { D as DocumentCaptureOptions, a as DocumentCaptureHandle, P as PortraitCaptureOptions, b as PortraitCaptureHandle } from './create-verification-DiH7QRdv.cjs';
2
+ export { A as AcceptedDocumentsLike, C as CameraFacing, c as CaptureChannel, d as CaptureEngineId, e as CaptureError, f as CaptureErrorKind, g as CaptureState, h as CapturedArtifacts, i as CapturedDocument, j as CapturedPortrait, k as ChoiceOptionSnapshot, l as ChoiceSnapshot, m as ChoiceStepHandle, n as ContactChoiceSnapshot, o as ContactChoiceStepHandle, p as DEFAULT_API_ORIGIN, q as DOCUMENT_TYPE_ORDER, r as DeriveStepEnv, s as DocumentCaptureEvents, t as DocumentCaptureState, u as DocumentFeedback, v as DocumentFeedbackKey, w as DocumentGateUpdate, x as DocumentGuide, y as DocumentGuideMeasure, z as DocumentLiveMrzOptions, B as DocumentMrzUpdate, E as DocumentPoint, F as DocumentQuad, G as DocumentReticle, H as DocumentScanPhase, I as DocumentScanUpdate, J as DocumentSide, K as DocumentSnapshot, L as DocumentStepHandle, M as EidSnapshot, N as EidStepHandle, O as EmailOtpSnapshot, Q as EmailOtpStepHandle, R as EmailSource, S as GateHint, T as GateUpdate, U as ISSUER_CODES, V as IdentitySummarySnapshot, W as IdentitySummaryStepHandle, X as InLaneSwitch, Y as LivePhotoGateUpdate, Z as LivePhotoPlan, _ as LivenessAssetsStatus, $ as LivenessCaptureEvents, a0 as LivenessCaptureHandle, a1 as LivenessCaptureOptions, a2 as LivenessSnapshot, a3 as LivenessStartOptions, a4 as LivenessStepHandle, a5 as MethodSnapshot, a6 as MethodStepHandle, a7 as MobileRequiredSnapshot, a8 as MobileRequiredStepHandle, a9 as OtpChannel, aa as OtpNumberSource, ab as PLATFORM_UNSUPPORTED, ac as PhoneOtpSnapshot, ad as PhoneOtpStepHandle, ae as PlanChoiceSnapshot, af as PortraitCaptureEvents, ag as PortraitCaptureState, ah as PortraitGateUpdate, ai as PortraitSnapshot, aj as PortraitStartOptions, ak as PortraitStepHandle, al as PreloadLivenessAssetsOptions, am as ProcessingSnapshot, an as ProcessingStepHandle, ao as ReasonCode, ap as RegistrySnapshot, aq as RegistrySource, ar as RegistryStepHandle, as as ResultDisplay, at as ResultSnapshot, au as ResultStepHandle, av as SdkFailureReason, aw as StepAttempts, ax as StepContext, ay as StepSnapshot, az as UnsupportedReason, aA as UnsupportedSnapshot, aB as UnsupportedStepHandle, aC as Verification, aD as VerificationBusy, aE as VerificationEvents, aF as VerificationLocale, aG as VerificationOptions, aH as VerificationResult, aI as VerificationStatus, aJ as VerificationStep, aK as WEB_IDENTITY_METHODS, aL as acceptedIssuers, aM as acceptedTypesFor, aN as cameraUnavailableCauseOf, aO as createLivenessCapture, aP as createVerification, aQ as deriveStep, aR as flagOf, aS as getLivenessAssetsStatus, aT as laneOf, aU as otherOptions, aV as preloadLivenessAssets, aW as releaseLivenessAssets, aX as resolveAcceptedDocuments, aY as sectionOf, aZ as subscribeLivenessAssets } from './create-verification-DiH7QRdv.cjs';
3
3
  import { S as ScreenRampColour } from './types-CKgMWVnP.cjs';
4
4
  export { A as AcceptedDocumentType, h as AgeEstimationReason, b as CameraUnavailableCause, i as CaptureMode, j as CaptureProvenance, k as CheckReason, l as CheckState, e as CheckType, m as ContactChannel, D as DecisionReason, n as DocReason, E as EidAfterPass, o as EidAuthInput, p as EidReason, q as EmailOtpReason, F as FaceMatchReason, r as HostedAcceptedDocuments, s as HostedBranding, t as HostedBrandingColorKey, u as HostedCaptureTuning, a as HostedConsentView, v as HostedDocumentCaptureTuning, w as HostedDocumentScanTuning, x as HostedEidView, y as HostedEmailOtpView, z as HostedFlowRef, G as HostedIcaoPolicy, J as HostedIntegrity, K as HostedLivePhotoTuning, L as HostedLivenessCaptureTuning, N as HostedNativeCaptureTuning, O as HostedOcrTuning, Q as HostedOtpView, T as HostedPlanView, U as HostedPortraitView, H as HostedSessionView, V as HostedStepView, W as HostedVoiceLocale, X as HostedVoiceView, Y as IcaoCaptureTuning, g as IcaoCriterion, Z as IcaoReportEntry, I as IdentityConfirmDecision, _ as IdentityMethod, $ as IdentitySummarySource, a0 as IdentitySummaryView, a1 as LivenessReason, a2 as MatchReason, a3 as MethodChoiceView, a4 as NationalEidOption, a5 as NfcChipReason, a6 as NfcStepView, a7 as OtpChoiceView, a8 as PhoneCountryRule, a9 as PhoneFormat, aa as PhoneOtpReason, ab as PlanAttempts, ac as PlanChoiceKind, ad as PlanChoiceOption, ae as PlanChoiceView, af as PlanSectionView, ag as PlanStepView, ah as PolicyFailureReason, ai as PopulationReason, aj as PortraitIcaoInput, ak as PortraitIcaoReason, al as RetakeHint, am as ScreenRampChallenge, an as ScreenRampRendered, ao as ScreenRampReport, ap as SessionFailureReason, aq as SessionOutcome, ar as SessionStatus, as as StepSection, at as VerificationAssurance, au as VerificationLevel } from './types-CKgMWVnP.cjs';
5
5
  export { OpenHostedOptions, PopupBlocked, PopupHandle, SEKYRO_EVENTS, SekyroEvent, SekyroEventName, openHosted } from './popup/index.cjs';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { D as DocumentCaptureOptions, a as DocumentCaptureHandle, P as PortraitCaptureOptions, b as PortraitCaptureHandle } from './create-verification-CNCMU1kK.js';
2
- export { A as AcceptedDocumentsLike, C as CameraFacing, c as CaptureChannel, d as CaptureEngineId, e as CaptureError, f as CaptureErrorKind, g as CaptureState, h as CapturedArtifacts, i as CapturedDocument, j as CapturedPortrait, k as ChoiceOptionSnapshot, l as ChoiceSnapshot, m as ChoiceStepHandle, n as ContactChoiceSnapshot, o as ContactChoiceStepHandle, p as DEFAULT_API_ORIGIN, q as DOCUMENT_TYPE_ORDER, r as DeriveStepEnv, s as DocumentCaptureEvents, t as DocumentCaptureState, u as DocumentFeedback, v as DocumentFeedbackKey, w as DocumentGateUpdate, x as DocumentGuide, y as DocumentGuideMeasure, z as DocumentLiveMrzOptions, B as DocumentMrzUpdate, E as DocumentPoint, F as DocumentQuad, G as DocumentReticle, H as DocumentScanPhase, I as DocumentScanUpdate, J as DocumentSide, K as DocumentSnapshot, L as DocumentStepHandle, M as EidSnapshot, N as EidStepHandle, O as EmailOtpSnapshot, Q as EmailOtpStepHandle, R as EmailSource, S as GateHint, T as GateUpdate, U as ISSUER_CODES, V as IdentitySummarySnapshot, W as IdentitySummaryStepHandle, X as InLaneSwitch, Y as LivePhotoGateUpdate, Z as LivePhotoPlan, _ as LivenessAssetsStatus, $ as LivenessCaptureEvents, a0 as LivenessCaptureHandle, a1 as LivenessCaptureOptions, a2 as LivenessSnapshot, a3 as LivenessStartOptions, a4 as LivenessStepHandle, a5 as MethodSnapshot, a6 as MethodStepHandle, a7 as MobileRequiredSnapshot, a8 as MobileRequiredStepHandle, a9 as OtpChannel, aa as OtpNumberSource, ab as PLATFORM_UNSUPPORTED, ac as PhoneOtpSnapshot, ad as PhoneOtpStepHandle, ae as PlanChoiceSnapshot, af as PortraitCaptureEvents, ag as PortraitCaptureState, ah as PortraitGateUpdate, ai as PortraitSnapshot, aj as PortraitStartOptions, ak as PortraitStepHandle, al as PreloadLivenessAssetsOptions, am as ProcessingSnapshot, an as ProcessingStepHandle, ao as ReasonCode, ap as RegistrySnapshot, aq as RegistrySource, ar as RegistryStepHandle, as as ResultDisplay, at as ResultSnapshot, au as ResultStepHandle, av as SdkFailureReason, aw as StepAttempts, ax as StepContext, ay as StepSnapshot, az as UnsupportedReason, aA as UnsupportedSnapshot, aB as UnsupportedStepHandle, aC as Verification, aD as VerificationBusy, aE as VerificationEvents, aF as VerificationLocale, aG as VerificationOptions, aH as VerificationResult, aI as VerificationStatus, aJ as VerificationStep, aK as WEB_IDENTITY_METHODS, aL as acceptedIssuers, aM as acceptedTypesFor, aN as cameraUnavailableCauseOf, aO as createLivenessCapture, aP as createVerification, aQ as deriveStep, aR as flagOf, aS as getLivenessAssetsStatus, aT as laneOf, aU as otherOptions, aV as preloadLivenessAssets, aW as releaseLivenessAssets, aX as resolveAcceptedDocuments, aY as sectionOf, aZ as subscribeLivenessAssets } from './create-verification-CNCMU1kK.js';
1
+ import { D as DocumentCaptureOptions, a as DocumentCaptureHandle, P as PortraitCaptureOptions, b as PortraitCaptureHandle } from './create-verification-C_fx3n4A.js';
2
+ export { A as AcceptedDocumentsLike, C as CameraFacing, c as CaptureChannel, d as CaptureEngineId, e as CaptureError, f as CaptureErrorKind, g as CaptureState, h as CapturedArtifacts, i as CapturedDocument, j as CapturedPortrait, k as ChoiceOptionSnapshot, l as ChoiceSnapshot, m as ChoiceStepHandle, n as ContactChoiceSnapshot, o as ContactChoiceStepHandle, p as DEFAULT_API_ORIGIN, q as DOCUMENT_TYPE_ORDER, r as DeriveStepEnv, s as DocumentCaptureEvents, t as DocumentCaptureState, u as DocumentFeedback, v as DocumentFeedbackKey, w as DocumentGateUpdate, x as DocumentGuide, y as DocumentGuideMeasure, z as DocumentLiveMrzOptions, B as DocumentMrzUpdate, E as DocumentPoint, F as DocumentQuad, G as DocumentReticle, H as DocumentScanPhase, I as DocumentScanUpdate, J as DocumentSide, K as DocumentSnapshot, L as DocumentStepHandle, M as EidSnapshot, N as EidStepHandle, O as EmailOtpSnapshot, Q as EmailOtpStepHandle, R as EmailSource, S as GateHint, T as GateUpdate, U as ISSUER_CODES, V as IdentitySummarySnapshot, W as IdentitySummaryStepHandle, X as InLaneSwitch, Y as LivePhotoGateUpdate, Z as LivePhotoPlan, _ as LivenessAssetsStatus, $ as LivenessCaptureEvents, a0 as LivenessCaptureHandle, a1 as LivenessCaptureOptions, a2 as LivenessSnapshot, a3 as LivenessStartOptions, a4 as LivenessStepHandle, a5 as MethodSnapshot, a6 as MethodStepHandle, a7 as MobileRequiredSnapshot, a8 as MobileRequiredStepHandle, a9 as OtpChannel, aa as OtpNumberSource, ab as PLATFORM_UNSUPPORTED, ac as PhoneOtpSnapshot, ad as PhoneOtpStepHandle, ae as PlanChoiceSnapshot, af as PortraitCaptureEvents, ag as PortraitCaptureState, ah as PortraitGateUpdate, ai as PortraitSnapshot, aj as PortraitStartOptions, ak as PortraitStepHandle, al as PreloadLivenessAssetsOptions, am as ProcessingSnapshot, an as ProcessingStepHandle, ao as ReasonCode, ap as RegistrySnapshot, aq as RegistrySource, ar as RegistryStepHandle, as as ResultDisplay, at as ResultSnapshot, au as ResultStepHandle, av as SdkFailureReason, aw as StepAttempts, ax as StepContext, ay as StepSnapshot, az as UnsupportedReason, aA as UnsupportedSnapshot, aB as UnsupportedStepHandle, aC as Verification, aD as VerificationBusy, aE as VerificationEvents, aF as VerificationLocale, aG as VerificationOptions, aH as VerificationResult, aI as VerificationStatus, aJ as VerificationStep, aK as WEB_IDENTITY_METHODS, aL as acceptedIssuers, aM as acceptedTypesFor, aN as cameraUnavailableCauseOf, aO as createLivenessCapture, aP as createVerification, aQ as deriveStep, aR as flagOf, aS as getLivenessAssetsStatus, aT as laneOf, aU as otherOptions, aV as preloadLivenessAssets, aW as releaseLivenessAssets, aX as resolveAcceptedDocuments, aY as sectionOf, aZ as subscribeLivenessAssets } from './create-verification-C_fx3n4A.js';
3
3
  import { S as ScreenRampColour } from './types-CKgMWVnP.js';
4
4
  export { A as AcceptedDocumentType, h as AgeEstimationReason, b as CameraUnavailableCause, i as CaptureMode, j as CaptureProvenance, k as CheckReason, l as CheckState, e as CheckType, m as ContactChannel, D as DecisionReason, n as DocReason, E as EidAfterPass, o as EidAuthInput, p as EidReason, q as EmailOtpReason, F as FaceMatchReason, r as HostedAcceptedDocuments, s as HostedBranding, t as HostedBrandingColorKey, u as HostedCaptureTuning, a as HostedConsentView, v as HostedDocumentCaptureTuning, w as HostedDocumentScanTuning, x as HostedEidView, y as HostedEmailOtpView, z as HostedFlowRef, G as HostedIcaoPolicy, J as HostedIntegrity, K as HostedLivePhotoTuning, L as HostedLivenessCaptureTuning, N as HostedNativeCaptureTuning, O as HostedOcrTuning, Q as HostedOtpView, T as HostedPlanView, U as HostedPortraitView, H as HostedSessionView, V as HostedStepView, W as HostedVoiceLocale, X as HostedVoiceView, Y as IcaoCaptureTuning, g as IcaoCriterion, Z as IcaoReportEntry, I as IdentityConfirmDecision, _ as IdentityMethod, $ as IdentitySummarySource, a0 as IdentitySummaryView, a1 as LivenessReason, a2 as MatchReason, a3 as MethodChoiceView, a4 as NationalEidOption, a5 as NfcChipReason, a6 as NfcStepView, a7 as OtpChoiceView, a8 as PhoneCountryRule, a9 as PhoneFormat, aa as PhoneOtpReason, ab as PlanAttempts, ac as PlanChoiceKind, ad as PlanChoiceOption, ae as PlanChoiceView, af as PlanSectionView, ag as PlanStepView, ah as PolicyFailureReason, ai as PopulationReason, aj as PortraitIcaoInput, ak as PortraitIcaoReason, al as RetakeHint, am as ScreenRampChallenge, an as ScreenRampRendered, ao as ScreenRampReport, ap as SessionFailureReason, aq as SessionOutcome, ar as SessionStatus, as as StepSection, at as VerificationAssurance, au as VerificationLevel } from './types-CKgMWVnP.js';
5
5
  export { OpenHostedOptions, PopupBlocked, PopupHandle, SEKYRO_EVENTS, SekyroEvent, SekyroEventName, openHosted } from './popup/index.js';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{a as ee,c as te}from"./chunk-U6TYL2IJ.js";import{a as Y,f as z,h as W,i as f,j as y,k as h,l as P,m as R,n as J,o as q,p as Q,q as X,r as j,t as $}from"./chunk-MMTOOH32.js";import{x as C,y as S}from"./chunk-J4NL62VQ.js";import{e as G,f as U,g as B,h as K,n as F}from"./chunk-SDWHJJ4W.js";import{b as x,c as b,d as V}from"./chunk-GT2ZLGF7.js";import{g as O,h as I,i as N,j as T}from"./chunk-GYNWLJYW.js";import"./chunk-FUHDOEBP.js";import"./chunk-POIQGEZM.js";import"./chunk-2BFYVMUU.js";import"./chunk-FPXL63KZ.js";import{a as w,b as k,c as _,g as Z}from"./chunk-ULMH32G5.js";import"./chunk-TWB4LTCE.js";import"./chunk-OKWG3PVH.js";function oe(e){if(e==="permission")return"denied";if(e==="notfound"||e==="insecure"||e==="unsupported")return"no_camera"}var re=/^[A-Z0-9][A-Z0-9 -]{0,39}$/,ne=Object.freeze({normalize:e=>e.trim().toUpperCase().replace(/\s+/g," "),check:e=>re.test(e),registrySources:Object.freeze([]),describe:"number must be 1 to 40 letters, digits, spaces or hyphens"});function ie(e){return typeof e=="string"&&/^\d{10}$/.test(e)&&Number(e)%97===1}var ae=Object.freeze({normalize:e=>e.trim(),check:e=>ie(e),registrySources:Object.freeze(["MR.anrpts"]),describe:"number must be the 10-digit Mauritanian national ID number with a valid check digit"}),se=Object.freeze({"MR:national_id":ae});function m(e,t){return se[`${e.toUpperCase()}:${t}`]??ne}var pe=Object.freeze({MRT:"MR"});function v(e,t){let r=e.trim().toUpperCase();return m(pe[r]??r,t)}function ue(e){let t=v(e.issuingCountry,e.type);return t.check(t.normalize(e.number))}function de(e){return m("MR","national_id").check(e)}function g(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 ce(e){return g(e)}var Le=f,Oe=y,Ie=h,Ne=P,Te=R;var M=()=>import("./create-document-capture-5FJI57YI.js");function E(e){let t=null,r=null,n=!1,u=null,l=null,d=[],i=(o,s)=>{o.off=s.on(o.event,o.handler)},a=()=>(r??(r=M().then(o=>{if(n)return null;let s=o.createDocumentCaptureInternal(e,{}).handle;for(let c of d)c.removed||i(c,s);return u!==null&&s.setSide(u),l!==null&&s.setGuide(l.guide),t=s,s})),r),p=()=>a().catch(()=>{if(r=null,!n)for(let o of d)!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 d.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):u=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,d.length=0}}}function H(){M().then(e=>e.warmDocumentCapture()).catch(()=>{})}function Ue(e){return E(e)}function Be(){H()}var A=()=>import("./create-portrait-capture-53XBURNT.js");function D(e){let t=null,r=null,n=!1,u=[],l=(i,a)=>{i.off=a.on(i.event,i.handler)},d=()=>(r??(r=A().then(i=>{if(n)return null;let a=i.createPortraitCaptureInternal(e).handle;for(let p of u)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 u.push(p),t!==null&&l(p,t),()=>{p.removed=!0,p.off?.()}},start:async i=>{let a=await d();a!==null&&!n&&await a.start(i)},retry:()=>{t!==null?t.retry():d().then(i=>i?.start())},switchCamera:()=>t?.switchCamera()??!1,destroy:()=>{n=!0,t?.destroy(),t=null,u.length=0}}}function L(){A().then(e=>e.warmPortraitCapture()).catch(()=>{})}function _e(e){return D(e)}function Ze(){L()}export{Y as DEFAULT_API_ORIGIN,Le as DOCUMENT_TYPE_ORDER,_ as HostedApiError,W as ISSUER_CODES,C as InvalidInputError,w as KNOWN_CODES,S as OtpInputError,q as PLATFORM_UNSUPPORTED,N as SCREEN_RAMP_COLOURS,I as SCREEN_RAMP_END_MS,O as SCREEN_RAMP_SEGMENT_MS,ee as SEKYRO_EVENTS,J as WEB_IDENTITY_METHODS,Ie as acceptedIssuers,Oe as acceptedTypesFor,oe as cameraUnavailableCauseOf,Ue as createDocumentCapture,F as createLivenessCapture,_e as createPortraitCapture,z as createVerification,$ as deriveStep,Te as flagOf,U as getLivenessAssetsStatus,V as hasMultipleCameras,Z as icaoPolicyOf,k as isKnownCode,ue as isValidIdNumber,de as isValidNni,X as laneOf,g as normalizeDigits,ce as normalizeNni,te as openHosted,j as otherOptions,G as preloadLivenessAssets,x as queryCameraPermission,K as releaseLivenessAssets,Ne as resolveAcceptedDocuments,T as screenRampColourValue,Q as sectionOf,b as subscribeCameraPermission,B as subscribeLivenessAssets,Be as warmDocumentCapture,Ze as warmPortraitCapture};
1
+ import{a as ee,c as te}from"./chunk-U6TYL2IJ.js";import{a as Y,f as z,h as W,i as f,j as y,k as h,l as P,m as R,n as J,o as q,p as Q,q as X,r as j,t as $}from"./chunk-SVNAHPQU.js";import{y as C,z as S}from"./chunk-JDTZK3A7.js";import{e as G,f as U,g as B,h as K,n as F}from"./chunk-VCUOPQFA.js";import{b as x,c as b,d as V}from"./chunk-GT2ZLGF7.js";import{g as O,h as I,i as N,j as T}from"./chunk-OG4QAJ3M.js";import"./chunk-FUHDOEBP.js";import"./chunk-POIQGEZM.js";import"./chunk-2BFYVMUU.js";import"./chunk-FPXL63KZ.js";import{a as w,b as k,c as _,g as Z}from"./chunk-ZMO2ZQAS.js";import"./chunk-DNB3R4PI.js";import"./chunk-OKWG3PVH.js";function oe(e){if(e==="permission")return"denied";if(e==="notfound"||e==="insecure"||e==="unsupported")return"no_camera"}var re=/^[A-Z0-9][A-Z0-9 -]{0,39}$/,ne=Object.freeze({normalize:e=>e.trim().toUpperCase().replace(/\s+/g," "),check:e=>re.test(e),registrySources:Object.freeze([]),describe:"number must be 1 to 40 letters, digits, spaces or hyphens"});function ie(e){return typeof e=="string"&&/^\d{10}$/.test(e)&&Number(e)%97===1}var ae=Object.freeze({normalize:e=>e.trim(),check:e=>ie(e),registrySources:Object.freeze(["MR.anrpts"]),describe:"number must be the 10-digit Mauritanian national ID number with a valid check digit"}),se=Object.freeze({"MR:national_id":ae});function m(e,t){return se[`${e.toUpperCase()}:${t}`]??ne}var pe=Object.freeze({MRT:"MR"});function v(e,t){let r=e.trim().toUpperCase();return m(pe[r]??r,t)}function ue(e){let t=v(e.issuingCountry,e.type);return t.check(t.normalize(e.number))}function de(e){return m("MR","national_id").check(e)}function g(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 ce(e){return g(e)}var Le=f,Oe=y,Ie=h,Ne=P,Te=R;var M=()=>import("./create-document-capture-35HFVNC3.js");function E(e){let t=null,r=null,n=!1,u=null,l=null,d=[],i=(o,s)=>{o.off=s.on(o.event,o.handler)},a=()=>(r??(r=M().then(o=>{if(n)return null;let s=o.createDocumentCaptureInternal(e,{}).handle;for(let c of d)c.removed||i(c,s);return u!==null&&s.setSide(u),l!==null&&s.setGuide(l.guide),t=s,s})),r),p=()=>a().catch(()=>{if(r=null,!n)for(let o of d)!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 d.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):u=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,d.length=0}}}function H(){M().then(e=>e.warmDocumentCapture()).catch(()=>{})}function Ue(e){return E(e)}function Be(){H()}var A=()=>import("./create-portrait-capture-53XBURNT.js");function D(e){let t=null,r=null,n=!1,u=[],l=(i,a)=>{i.off=a.on(i.event,i.handler)},d=()=>(r??(r=A().then(i=>{if(n)return null;let a=i.createPortraitCaptureInternal(e).handle;for(let p of u)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 u.push(p),t!==null&&l(p,t),()=>{p.removed=!0,p.off?.()}},start:async i=>{let a=await d();a!==null&&!n&&await a.start(i)},retry:()=>{t!==null?t.retry():d().then(i=>i?.start())},switchCamera:()=>t?.switchCamera()??!1,destroy:()=>{n=!0,t?.destroy(),t=null,u.length=0}}}function L(){A().then(e=>e.warmPortraitCapture()).catch(()=>{})}function _e(e){return D(e)}function Ze(){L()}export{Y as DEFAULT_API_ORIGIN,Le as DOCUMENT_TYPE_ORDER,_ as HostedApiError,W as ISSUER_CODES,C as InvalidInputError,w as KNOWN_CODES,S as OtpInputError,q as PLATFORM_UNSUPPORTED,N as SCREEN_RAMP_COLOURS,I as SCREEN_RAMP_END_MS,O as SCREEN_RAMP_SEGMENT_MS,ee as SEKYRO_EVENTS,J as WEB_IDENTITY_METHODS,Ie as acceptedIssuers,Oe as acceptedTypesFor,oe as cameraUnavailableCauseOf,Ue as createDocumentCapture,F as createLivenessCapture,_e as createPortraitCapture,z as createVerification,$ as deriveStep,Te as flagOf,U as getLivenessAssetsStatus,V as hasMultipleCameras,Z as icaoPolicyOf,k as isKnownCode,ue as isValidIdNumber,de as isValidNni,X as laneOf,g as normalizeDigits,ce as normalizeNni,te as openHosted,j as otherOptions,G as preloadLivenessAssets,x as queryCameraPermission,K as releaseLivenessAssets,Ne as resolveAcceptedDocuments,T as screenRampColourValue,Q as sectionOf,b as subscribeCameraPermission,B as subscribeLivenessAssets,Be as warmDocumentCapture,Ze as warmPortraitCapture};