@sekyro/web 0.1.0-rc.24 → 0.1.0-rc.25

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 (48) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +32 -2
  3. package/dist/{capture-session-doc-RIBBH3M4.js → capture-session-doc-O33KRXH7.js} +1 -1
  4. package/dist/{capture-session-v3-CPHzDT7E.d.cts → capture-session-v3-BoGn8vLv.d.cts} +1 -1
  5. package/dist/{capture-session-v3-TUPtnvmu.d.ts → capture-session-v3-C0bbHvDc.d.ts} +1 -1
  6. package/dist/challenge-frame-NUGPTWFP.js +1 -0
  7. package/dist/{chunk-FLA42JCK.js → chunk-24F6JCVH.js} +1 -1
  8. package/dist/chunk-4ESM6SSR.js +1 -0
  9. package/dist/{chunk-IC6TI6GV.js → chunk-6XXMWK72.js} +1 -1
  10. package/dist/{chunk-XI5FXEKC.js → chunk-7HV77AOV.js} +1 -1
  11. package/dist/{chunk-LBH6KGTV.js → chunk-DIKSFEYQ.js} +1 -1
  12. package/dist/{chunk-IFLOS5OT.js → chunk-EHKCOBE2.js} +1 -1
  13. package/dist/chunk-GLXOSYBH.js +3 -0
  14. package/dist/chunk-HVW2AB35.js +1 -0
  15. package/dist/{chunk-5YVQIHQA.js → chunk-J4S3QMK6.js} +1 -1
  16. package/dist/{chunk-MQBX4DQQ.js → chunk-MGO2ME5X.js} +1 -1
  17. package/dist/client/index.cjs +1 -1
  18. package/dist/client/index.d.cts +3 -3
  19. package/dist/client/index.d.ts +3 -3
  20. package/dist/client/index.js +1 -1
  21. package/dist/core/index.cjs +1 -1
  22. package/dist/core/index.d.cts +3 -3
  23. package/dist/core/index.d.ts +3 -3
  24. package/dist/core/index.js +1 -1
  25. package/dist/{create-document-capture-XQURFZZK.js → create-document-capture-OLKNUVTU.js} +1 -1
  26. package/dist/{create-verification-DF60lg8Y.d.cts → create-verification-D5CrT5f5.d.cts} +66 -10
  27. package/dist/{create-verification-acQzNRiB.d.ts → create-verification-DOBYRCV_.d.ts} +66 -10
  28. package/dist/{icao-gate-VwsQo8Bq.d.ts → icao-gate-CJPTgKFb.d.ts} +1 -1
  29. package/dist/{icao-gate-CX0chQMM.d.cts → icao-gate-DGtY696t.d.cts} +1 -1
  30. package/dist/{icao-policy-WnG2OSyp.d.cts → icao-policy-Bm0rG91t.d.cts} +2 -2
  31. package/dist/{icao-policy-B02jDiox.d.ts → icao-policy-D8domgld.d.ts} +2 -2
  32. package/dist/index.cjs +3 -1
  33. package/dist/index.d.cts +7 -7
  34. package/dist/index.d.ts +7 -7
  35. package/dist/index.js +1 -1
  36. package/dist/internal/index.cjs +3 -1
  37. package/dist/internal/index.d.cts +7 -56
  38. package/dist/internal/index.d.ts +7 -56
  39. package/dist/internal/index.js +1 -1
  40. package/dist/{plan-runner-LDV4PYN7.js → plan-runner-VKPRZ3AD.js} +1 -1
  41. package/dist/{types-1s8CQrEN.d.cts → types-ZBcpvLdo.d.cts} +30 -19
  42. package/dist/{types-1s8CQrEN.d.ts → types-ZBcpvLdo.d.ts} +30 -19
  43. package/package.json +1 -1
  44. package/sbom.cdx.json +10 -10
  45. package/dist/chunk-DMOGKGDS.js +0 -1
  46. package/dist/chunk-QY6TJCOJ.js +0 -1
  47. package/dist/chunk-TDCLQRT4.js +0 -1
  48. package/dist/turnstile-52B3RFXD.js +0 -1
@@ -1,11 +1,11 @@
1
- import { b1 as DocCatalogEntry, b2 as LiveMrzTuning, b3 as TextLockTuning, b4 as OcrEngineClient, b5 as DocAssistReport, b6 as ReadyInfo, b7 as LoadFailure, b8 as OcrEngineOptions, b9 as SubmitRuntime, a3 as LivenessCaptureOptions, a2 as LivenessCaptureHandle, aM as VerificationStep, aK as VerificationResult, aB as StepSnapshot, _ as LivePhotoGateUpdate, ba as HostedClientLike } from '../create-verification-DF60lg8Y.cjs';
2
- export { bb as ANALYSIS_LONG_EDGE, bc as ASPECT_BANDS, bd as AttestationError, be as BLUR_REFUSE_SHARPNESS_MAX, bf as BlurStatus, bg as CAPTURE_CANDIDATE_SPACING_MS, bh as CAPTURE_EXTRA_CANDIDATES, bi as CLIP_MIME_ALLOWLIST, bj as CaptureEngine, bk as CaptureSessionDoc, bl as CaptureSessionDocEvents, bm as CaptureSessionDocOptions, bn as DOC_ANALYSIS_DEFAULTS, bo as DOC_BLACK_FRAME_LUMA, bp as DOC_BLACK_FRAME_TICKS, bq as DOC_CADENCE_HZ, br as DOC_CAMERA_TUNING_DEFAULTS, bs as DOC_CATALOG, bt as DOC_DETECT_WIDTH, bu as DOC_FEEDBACK_STATES, bv as DOC_FIRST_FRAME_MS, bw as DOC_GATE_V1_DEFAULTS, bx as DOC_SHUTTER_DEFAULTS, by as DeviceReadHint, bz as DocArtifacts, bA as DocAssist, bB as DocAssistEngine, bC as DocAssistTick, bD as DocCameraTuning, bE as DocCaptureReport, bF as DocCaptureVia, bG as DocChecksPayload, bH as DocEngineLike, bI as DocFeedbackAggregator, bJ as DocFeedbackKey, bK as DocFeedbackState, bL as DocFormat, bM as DocFrameAnalysis, bN as DocFrameMeasures, bO as DocGateQuality, bP as DocGateThresholds, bQ as DocGateTick, bR as DocGateTickInput, bS as DocGateV1, bT as DocQuad, bU as DocQuadPoint, bV as DocShutterReason, bW as DocShutterTuning, bX as DocSide, bY as DocumentCaptureController, bZ as DocumentCaptureInternals, b_ as EMPTY_GUIDE_METRICS, b$ as EncodedDocument, c0 as FLIP_FILL_MIN, c1 as FLIP_GAP_MS, c2 as FLIP_TIMEOUT_MS, c3 as FocusCaps, c4 as FramingStatus, c5 as GUIDE_LOCK_DEFAULTS, c6 as GlareStatus, c7 as GrabbedFrame, c8 as GuideBlocker, c9 as GuideLock, ca as GuideLockTick, cb as GuideLockTuning, cc as GuideMetrics, cd as GuideRect, ce as INFERENCE_RETRY_ATTEMPTS, cf as INFERENCE_RETRY_DEFAULT_S, W as ISSUER_CODES, cg as LANDMARKER_MODEL, ch as LENS_STORAGE_KEY, ci as LIVE_MRZ_DEFAULTS, cj as LIVE_PHOTO_IDLE_MS, ck as LIVE_PHOTO_MAX_HZ, cl as LandmarkedFace, cm as LandmarkerLike, cn as LensSource, co as LightingStatus, cp as LiveMrzCapture, cq as LiveMrzState, cr as LivePhotoGate, cs as LivePhotoKit, ct as LivePhotoKitInternals, cu as LivePhotoKitOptions, cv as LivePhotoStill, cw as LivenessCaptureInternalHandle, cx as LivenessCaptureInternals, cy as LivenessFlowDeps, cz as LivenessFlowOutcome, cA as MANUAL_SHUTTER_MS, cB as MR_DOC_CATALOG, cC as NO_REPORT_MS, cD as OpenDocCameraDeps, cE as PORTRAIT_JPEG_QUALITY, cF as PRELOAD_BLAZE_INIT_TIMEOUT_MS, cG as PRELOAD_BUDGET_MS, cH as PROCESSING_POLL_DELAY_MS, cI as PROCESSING_POLL_MAX, cJ as PortraitCaptureController, cK as PortraitCaptureInternals, cL as REGISTRY_RETRY_DELAY_MS, cM as ReticleType, cN as SAME_FACE_MAX_DROPS, cO as ScanEvent, cP as ScanLayout, cQ as ScanNotice, cR as ScanPhase, cS as ScanReport, cT as ScanSide, cU as ScanState, cV as SubmitExecutor, cW as TEXT_LOCK_DEFAULTS, cX as TRANSPORT_REPLAY_ATTEMPTS, cY as TRANSPORT_REPLAY_DELAY_MS, cZ as VerificationInternals, c_ as analyzeDocFrame, c$ as analyzeGuide, d0 as aspectBand, d1 as aspectFits, d2 as buildDeviceReadHint, d3 as coverPointToVideo, d4 as createDocumentCaptureInternal, d5 as createFaceLandmarker, d6 as createLivePhotoKit, d7 as createLivenessCaptureInternal, d8 as createPortraitCaptureInternal, d9 as createVerificationInternal, da as docZoomFor, db as encodeDocumentImage, dc as facesOf, dd as feedbackVoteOf, de as focusOk, df as guideQuad, dg as guideRegionInFrame, dh as initialScanState, di as mapEngineState, dj as mapErrorKind, dk as mapGuidanceHint, dl as nextScanState, dm as observePortraitFrame, dn as openDocCamera, dp as passportBandOf, dq as portraitMatchStep, dr as preloadedDetectorFactory, ds as quadAreaFrac, dt as quadBounds, du as quadIou, dv as quadTiltRatio, dw as randomUuid, dx as readStoredLens, dy as resetLivenessAssetsForTests, dz as resolveDocCameraTuning, dA as resolveDocShutterTuning, dB as resolveGuideLockTuning, dC as runLivenessFlow, dD as runSubmission, dE as scannerFormatFor, dF as setPreloadLoaderForTests, dG as settledHint, dH as singleShotFocusAt, dI as specularFraction, dJ as supportsFocusMode, dK as warmDocDetector, dL as writeStoredLens } from '../create-verification-DF60lg8Y.cjs';
1
+ import { b2 as DocCatalogEntry, b3 as LiveMrzTuning, b4 as TextLockTuning, b5 as OcrEngineClient, b6 as DocAssistReport, b7 as ReadyInfo, b8 as LoadFailure, b9 as OcrEngineOptions, ba as SubmitRuntime, a4 as LivenessCaptureOptions, a3 as LivenessCaptureHandle, aN as VerificationStep, aL as VerificationResult, aC as StepSnapshot, $ as LivePhotoGateUpdate, bb as HostedClientLike } from '../create-verification-D5CrT5f5.cjs';
2
+ export { bc as ANALYSIS_LONG_EDGE, bd as ASPECT_BANDS, be as AttestationError, bf as BLUR_REFUSE_SHARPNESS_MAX, bg as BlurStatus, bh as CAPTURE_CANDIDATE_SPACING_MS, bi as CAPTURE_EXTRA_CANDIDATES, bj as CHALLENGE_EXECUTE_TIMEOUT_MS, bk as CHALLENGE_READY_TIMEOUT_MS, bl as CLIP_MIME_ALLOWLIST, bm as CaptureEngine, bn as CaptureSessionDoc, bo as CaptureSessionDocEvents, bp as CaptureSessionDocOptions, bq as ChallengeAction, br as ChallengeError, m as ChallengeErrorCode, bs as DOC_ANALYSIS_DEFAULTS, bt as DOC_BLACK_FRAME_LUMA, bu as DOC_BLACK_FRAME_TICKS, bv as DOC_CADENCE_HZ, bw as DOC_CAMERA_TUNING_DEFAULTS, bx as DOC_CATALOG, by as DOC_DETECT_WIDTH, bz as DOC_FEEDBACK_STATES, bA as DOC_FIRST_FRAME_MS, bB as DOC_GATE_V1_DEFAULTS, bC as DOC_SHUTTER_DEFAULTS, bD as DeviceReadHint, bE as DocArtifacts, bF as DocAssist, bG as DocAssistEngine, bH as DocAssistTick, bI as DocCameraTuning, bJ as DocCaptureReport, bK as DocCaptureVia, bL as DocChecksPayload, bM as DocEngineLike, bN as DocFeedbackAggregator, bO as DocFeedbackKey, bP as DocFeedbackState, bQ as DocFormat, bR as DocFrameAnalysis, bS as DocFrameMeasures, bT as DocGateQuality, bU as DocGateThresholds, bV as DocGateTick, bW as DocGateTickInput, bX as DocGateV1, bY as DocQuad, bZ as DocQuadPoint, b_ as DocShutterReason, b$ as DocShutterTuning, c0 as DocSide, c1 as DocumentCaptureController, c2 as DocumentCaptureInternals, c3 as EMPTY_GUIDE_METRICS, c4 as EncodedDocument, c5 as ExecuteChallengeOptions, c6 as FLIP_FILL_MIN, c7 as FLIP_GAP_MS, c8 as FLIP_TIMEOUT_MS, c9 as FocusCaps, ca as FramingStatus, cb as GUIDE_LOCK_DEFAULTS, cc as GlareStatus, cd as GrabbedFrame, ce as GuideBlocker, cf as GuideLock, cg as GuideLockTick, ch as GuideLockTuning, ci as GuideMetrics, cj as GuideRect, ck as INFERENCE_RETRY_ATTEMPTS, cl as INFERENCE_RETRY_DEFAULT_S, X as ISSUER_CODES, cm as LANDMARKER_MODEL, cn as LENS_STORAGE_KEY, co as LIVE_MRZ_DEFAULTS, cp as LIVE_PHOTO_IDLE_MS, cq as LIVE_PHOTO_MAX_HZ, cr as LandmarkedFace, cs as LandmarkerLike, ct as LensSource, cu as LightingStatus, cv as LiveMrzCapture, cw as LiveMrzState, cx as LivePhotoGate, cy as LivePhotoKit, cz as LivePhotoKitInternals, cA as LivePhotoKitOptions, cB as LivePhotoStill, cC as LivenessCaptureInternalHandle, cD as LivenessCaptureInternals, cE as LivenessFlowDeps, cF as LivenessFlowOutcome, cG as MANUAL_SHUTTER_MS, cH as MR_DOC_CATALOG, cI as NO_REPORT_MS, cJ as OpenDocCameraDeps, cK as PORTRAIT_JPEG_QUALITY, cL as PRELOAD_BLAZE_INIT_TIMEOUT_MS, cM as PRELOAD_BUDGET_MS, cN as PROCESSING_POLL_DELAY_MS, cO as PROCESSING_POLL_MAX, cP as PortraitCaptureController, cQ as PortraitCaptureInternals, cR as REGISTRY_RETRY_DELAY_MS, cS as ReticleType, cT as SAME_FACE_MAX_DROPS, cU as ScanEvent, cV as ScanLayout, cW as ScanNotice, cX as ScanPhase, cY as ScanReport, cZ as ScanSide, c_ as ScanState, c$ as SubmitExecutor, d0 as TEXT_LOCK_DEFAULTS, d1 as TRANSPORT_REPLAY_ATTEMPTS, d2 as TRANSPORT_REPLAY_DELAY_MS, d3 as VerificationInternals, d4 as analyzeDocFrame, d5 as analyzeGuide, d6 as aspectBand, d7 as aspectFits, d8 as buildDeviceReadHint, d9 as coverPointToVideo, da as createDocumentCaptureInternal, db as createFaceLandmarker, dc as createLivePhotoKit, dd as createLivenessCaptureInternal, de as createPortraitCaptureInternal, df as createVerificationInternal, dg as docZoomFor, dh as encodeDocumentImage, di as executeChallenge, dj as facesOf, dk as feedbackVoteOf, dl as focusOk, dm as guideQuad, dn as guideRegionInFrame, dp as initialScanState, dq as mapEngineState, dr as mapErrorKind, ds as mapGuidanceHint, dt as nextScanState, du as observePortraitFrame, dv as openDocCamera, dw as passportBandOf, dx as portraitMatchStep, dy as preloadedDetectorFactory, dz as quadAreaFrac, dA as quadBounds, dB as quadIou, dC as quadTiltRatio, dD as randomUuid, dE as readStoredLens, dF as resetChallengeFrameForTests, dG as resetLivenessAssetsForTests, dH as resolveDocCameraTuning, dI as resolveDocShutterTuning, dJ as resolveGuideLockTuning, dK as runLivenessFlow, dL as runSubmission, dM as scannerFormatFor, dN as setPreloadLoaderForTests, dO as settledHint, dP as singleShotFocusAt, dQ as specularFraction, dR as supportsFocusMode, dS as warmDocDetector, dT as writeStoredLens } from '../create-verification-D5CrT5f5.cjs';
3
3
  export { C as CENTERED_FACTOR, a as CIRCLE_RADIUS_FACTOR, F as FormFactor, I as IN_CIRCLE_FACTOR, d as detectFormFactor, c as detectIsMobile } from '../capture-constraints-CVqpMNGA.cjs';
4
- import { S as HostedSessionView, h as CheckType, an as PlanStepView } from '../types-1s8CQrEN.cjs';
5
- export { a$ as ICAO_FALLBACK, aV as IcaoCaptureTuning, b0 as IcaoProfile, b1 as ResolvedIcaoTuning, b2 as resolveIcaoTuning } from '../types-1s8CQrEN.cjs';
6
- export { B as BackgroundStats, h as Box, C as CLIPPED_LUMA, F as FaceGeometry, i as FaceLighting, c as HeadPose, j as ICAO_CANVAS, k as ICAO_GATE_CRITERIA, l as ICAO_SHARP_REF, I as IcaoCoachKey, d as IcaoCriterionState, m as IcaoFrameObservation, n as IcaoGate, e as IcaoGateCriterion, o as IcaoGateOptions, p as IcaoGateScores, f as IcaoGateSummary, g as IcaoGateUpdate, q as IcaoJudgedCriterion, r as IcaoMeasures, t as IcaoMouthScores, u as IcaoPixelStats, L as LumaPlane, P as Point, R as RegionStats, v as backgroundStats, w as createIcaoGate, x as eyeLineRoll, y as eyeOpenness, z as eyeSpecular, A as faceGeometry, D as faceLighting, E as faceSharpness, G as icaoPixelStats, J as icaoWindow, K as judgeIcao, N as lumaPlane, O as percentile, Q as portraitCropRegion, T as poseFromMatrix, V as regionStats, W as scoreFrame, X as windowOverflow } from '../icao-gate-CX0chQMM.cjs';
4
+ import { T as HostedSessionView, h as CheckType, ao as PlanStepView } from '../types-ZBcpvLdo.cjs';
5
+ export { b0 as ICAO_FALLBACK, aW as IcaoCaptureTuning, b1 as IcaoProfile, b2 as ResolvedIcaoTuning, b3 as resolveIcaoTuning } from '../types-ZBcpvLdo.cjs';
6
+ export { B as BackgroundStats, h as Box, C as CLIPPED_LUMA, F as FaceGeometry, i as FaceLighting, c as HeadPose, j as ICAO_CANVAS, k as ICAO_GATE_CRITERIA, l as ICAO_SHARP_REF, I as IcaoCoachKey, d as IcaoCriterionState, m as IcaoFrameObservation, n as IcaoGate, e as IcaoGateCriterion, o as IcaoGateOptions, p as IcaoGateScores, f as IcaoGateSummary, g as IcaoGateUpdate, q as IcaoJudgedCriterion, r as IcaoMeasures, t as IcaoMouthScores, u as IcaoPixelStats, L as LumaPlane, P as Point, R as RegionStats, v as backgroundStats, w as createIcaoGate, x as eyeLineRoll, y as eyeOpenness, z as eyeSpecular, A as faceGeometry, D as faceLighting, E as faceSharpness, G as icaoPixelStats, J as icaoWindow, K as judgeIcao, N as lumaPlane, O as percentile, Q as portraitCropRegion, T as poseFromMatrix, V as regionStats, W as scoreFrame, X as windowOverflow } from '../icao-gate-DGtY696t.cjs';
7
7
  import '../detect-worker-CHqsPJoM.cjs';
8
- import '../capture-session-v3-CPHzDT7E.cjs';
8
+ import '../capture-session-v3-BoGn8vLv.cjs';
9
9
 
10
10
  /** At most this many ranked lenses are tried (each costs a camera reopen). */
11
11
  declare const LENS_TRY_MAX = 3;
@@ -365,55 +365,6 @@ interface ResultOptions {
365
365
  previous?: HostedSessionView;
366
366
  }
367
367
 
368
- declare const TURNSTILE_SCRIPT_SRC = "https://challenges.cloudflare.com/turnstile/v0/api.js";
369
- /**
370
- * Bound on a single execute round-trip (challenge fetch + solve). A healthy
371
- * invisible challenge settles in a few seconds, but on slow phones and networks
372
- * it routinely takes 10 to 20 s: 10 s failed a third of real sessions
373
- * (incident 2026-11-10), so the bound is 30 s. A failed or timed-out challenge
374
- * is retried once on a fresh widget.
375
- */
376
- declare const TURNSTILE_EXECUTE_TIMEOUT_MS = 30000;
377
- interface TurnstileRenderParams {
378
- sitekey: string;
379
- callback: (token: string) => void;
380
- "error-callback"?: (code?: string) => void;
381
- execution?: "render" | "execute";
382
- appearance?: "always" | "execute" | "interaction-only";
383
- }
384
- /** The subset of the Turnstile JS API this module uses. */
385
- interface TurnstileApi {
386
- render(container: HTMLElement, params: TurnstileRenderParams): string | undefined;
387
- execute(widgetId: string): void;
388
- reset(widgetId: string): void;
389
- remove(widgetId: string): void;
390
- }
391
- /** Test-only: reset the module singletons between cases. */
392
- declare function resetTurnstileForTests(): void;
393
- /** Load the Turnstile script once (singleton; a load failure resets it so a
394
- * retry can re-attempt). */
395
- declare function loadTurnstile(): Promise<TurnstileApi>;
396
- /** Options of {@link executeTurnstile}. */
397
- interface ExecuteTurnstileOptions {
398
- /** Bound on the challenge round-trip; default {@link TURNSTILE_EXECUTE_TIMEOUT_MS}. */
399
- timeoutMs?: number;
400
- /**
401
- * Aborts the challenge: the promise rejects and the widget, its container and
402
- * the timeout are cleaned up at once. `createVerification().destroy()` passes
403
- * its own signal so a torn-down verification never leaves a widget behind.
404
- */
405
- signal?: AbortSignal;
406
- }
407
- /**
408
- * Run one invisible execute-mode challenge on the kept widget and resolve its
409
- * token. A challenge error, a load/render failure or a challenge that does not
410
- * settle within the timeout removes the widget and runs the challenge ONCE more
411
- * on a freshly rendered widget; only then does the promise reject. An abort
412
- * (`signal`) rejects at once, without the second attempt. The verification
413
- * submits without a token when this rejects, so the server decides.
414
- */
415
- declare function executeTurnstile(siteKey: string, opts?: ExecuteTurnstileOptions): Promise<string>;
416
-
417
368
  /**
418
369
  * Face of a decoded still: an MRZ band means the verso. With `cardOnly` (the still is the card itself) the band must
419
370
  * sit in its lower half, where a card's MRZ is: the line of print across a recto's top (the issuing state) is not one.
@@ -492,4 +443,4 @@ declare function measureRegionSharpness(image: RawImage, region: StillRegion | n
492
443
  */
493
444
  declare function measureBitmapSharpness(bitmap: ImageBitmap, region: StillRegion | null): number;
494
445
 
495
- export { type AcceptedDocumentsLike, type BrowserFamily, DOCUMENT_TYPE_ORDER, DocAssistReport, DocCatalogEntry, type DocumentTypeId, type ExecuteTurnstileOptions, HostedClientLike, LENS_TRY_MAX, type LensKind, LiveMrzTuning, type LiveMrzWireReport, LoadFailure, MRZ_BAND_DEFAULTS, type MrzBand, type MrzBandThresholds, OCR_ASSET_SET, OTP_RESEND_COOLDOWN_MS, OcrEngineClient, PROCESSING_BACKOFF_MS, REGION_PAD, ReadyInfo, type RunnerDeps, SHARPNESS_LONG_EDGE, type StepRunner, type StillRegion, SubmitRuntime, TURNSTILE_EXECUTE_TIMEOUT_MS, TURNSTILE_SCRIPT_SRC, TextLockTuning, type TurnstileApi, type TurnstileRenderParams, WEB_OCR_ENGINE, type WebOcrPlan, type WebOcrStart, acceptedIssuers, acceptedTypesFor, browserFamily, classifyCardSide, classifyCardSideWith, createStepRunner, cropImage, detectMrzBand, executeTurnstile, flagOf, formatMismatch, frontierStep, isExecutable, isTerminalView, lensKindOf, liveMrzWireReport, loadTurnstile, mapSessionResult, measureBitmapSharpness, measureRegionSharpness, photoSharpness, rankBackCameras, resetTurnstileForTests, resizeLongEdge, resolveAcceptedDocuments, resolveWebOcrPlan, startWebOcr, stepOf, stillRegionOf, stillToImageData };
446
+ export { type AcceptedDocumentsLike, type BrowserFamily, DOCUMENT_TYPE_ORDER, DocAssistReport, DocCatalogEntry, type DocumentTypeId, HostedClientLike, LENS_TRY_MAX, type LensKind, LiveMrzTuning, type LiveMrzWireReport, LoadFailure, MRZ_BAND_DEFAULTS, type MrzBand, type MrzBandThresholds, OCR_ASSET_SET, OTP_RESEND_COOLDOWN_MS, OcrEngineClient, PROCESSING_BACKOFF_MS, REGION_PAD, ReadyInfo, type RunnerDeps, SHARPNESS_LONG_EDGE, type StepRunner, type StillRegion, SubmitRuntime, TextLockTuning, WEB_OCR_ENGINE, type WebOcrPlan, type WebOcrStart, acceptedIssuers, acceptedTypesFor, browserFamily, classifyCardSide, classifyCardSideWith, createStepRunner, cropImage, detectMrzBand, flagOf, formatMismatch, frontierStep, isExecutable, isTerminalView, lensKindOf, liveMrzWireReport, mapSessionResult, measureBitmapSharpness, measureRegionSharpness, photoSharpness, rankBackCameras, resizeLongEdge, resolveAcceptedDocuments, resolveWebOcrPlan, startWebOcr, stepOf, stillRegionOf, stillToImageData };
@@ -1,11 +1,11 @@
1
- import { b1 as DocCatalogEntry, b2 as LiveMrzTuning, b3 as TextLockTuning, b4 as OcrEngineClient, b5 as DocAssistReport, b6 as ReadyInfo, b7 as LoadFailure, b8 as OcrEngineOptions, b9 as SubmitRuntime, a3 as LivenessCaptureOptions, a2 as LivenessCaptureHandle, aM as VerificationStep, aK as VerificationResult, aB as StepSnapshot, _ as LivePhotoGateUpdate, ba as HostedClientLike } from '../create-verification-acQzNRiB.js';
2
- export { bb as ANALYSIS_LONG_EDGE, bc as ASPECT_BANDS, bd as AttestationError, be as BLUR_REFUSE_SHARPNESS_MAX, bf as BlurStatus, bg as CAPTURE_CANDIDATE_SPACING_MS, bh as CAPTURE_EXTRA_CANDIDATES, bi as CLIP_MIME_ALLOWLIST, bj as CaptureEngine, bk as CaptureSessionDoc, bl as CaptureSessionDocEvents, bm as CaptureSessionDocOptions, bn as DOC_ANALYSIS_DEFAULTS, bo as DOC_BLACK_FRAME_LUMA, bp as DOC_BLACK_FRAME_TICKS, bq as DOC_CADENCE_HZ, br as DOC_CAMERA_TUNING_DEFAULTS, bs as DOC_CATALOG, bt as DOC_DETECT_WIDTH, bu as DOC_FEEDBACK_STATES, bv as DOC_FIRST_FRAME_MS, bw as DOC_GATE_V1_DEFAULTS, bx as DOC_SHUTTER_DEFAULTS, by as DeviceReadHint, bz as DocArtifacts, bA as DocAssist, bB as DocAssistEngine, bC as DocAssistTick, bD as DocCameraTuning, bE as DocCaptureReport, bF as DocCaptureVia, bG as DocChecksPayload, bH as DocEngineLike, bI as DocFeedbackAggregator, bJ as DocFeedbackKey, bK as DocFeedbackState, bL as DocFormat, bM as DocFrameAnalysis, bN as DocFrameMeasures, bO as DocGateQuality, bP as DocGateThresholds, bQ as DocGateTick, bR as DocGateTickInput, bS as DocGateV1, bT as DocQuad, bU as DocQuadPoint, bV as DocShutterReason, bW as DocShutterTuning, bX as DocSide, bY as DocumentCaptureController, bZ as DocumentCaptureInternals, b_ as EMPTY_GUIDE_METRICS, b$ as EncodedDocument, c0 as FLIP_FILL_MIN, c1 as FLIP_GAP_MS, c2 as FLIP_TIMEOUT_MS, c3 as FocusCaps, c4 as FramingStatus, c5 as GUIDE_LOCK_DEFAULTS, c6 as GlareStatus, c7 as GrabbedFrame, c8 as GuideBlocker, c9 as GuideLock, ca as GuideLockTick, cb as GuideLockTuning, cc as GuideMetrics, cd as GuideRect, ce as INFERENCE_RETRY_ATTEMPTS, cf as INFERENCE_RETRY_DEFAULT_S, W as ISSUER_CODES, cg as LANDMARKER_MODEL, ch as LENS_STORAGE_KEY, ci as LIVE_MRZ_DEFAULTS, cj as LIVE_PHOTO_IDLE_MS, ck as LIVE_PHOTO_MAX_HZ, cl as LandmarkedFace, cm as LandmarkerLike, cn as LensSource, co as LightingStatus, cp as LiveMrzCapture, cq as LiveMrzState, cr as LivePhotoGate, cs as LivePhotoKit, ct as LivePhotoKitInternals, cu as LivePhotoKitOptions, cv as LivePhotoStill, cw as LivenessCaptureInternalHandle, cx as LivenessCaptureInternals, cy as LivenessFlowDeps, cz as LivenessFlowOutcome, cA as MANUAL_SHUTTER_MS, cB as MR_DOC_CATALOG, cC as NO_REPORT_MS, cD as OpenDocCameraDeps, cE as PORTRAIT_JPEG_QUALITY, cF as PRELOAD_BLAZE_INIT_TIMEOUT_MS, cG as PRELOAD_BUDGET_MS, cH as PROCESSING_POLL_DELAY_MS, cI as PROCESSING_POLL_MAX, cJ as PortraitCaptureController, cK as PortraitCaptureInternals, cL as REGISTRY_RETRY_DELAY_MS, cM as ReticleType, cN as SAME_FACE_MAX_DROPS, cO as ScanEvent, cP as ScanLayout, cQ as ScanNotice, cR as ScanPhase, cS as ScanReport, cT as ScanSide, cU as ScanState, cV as SubmitExecutor, cW as TEXT_LOCK_DEFAULTS, cX as TRANSPORT_REPLAY_ATTEMPTS, cY as TRANSPORT_REPLAY_DELAY_MS, cZ as VerificationInternals, c_ as analyzeDocFrame, c$ as analyzeGuide, d0 as aspectBand, d1 as aspectFits, d2 as buildDeviceReadHint, d3 as coverPointToVideo, d4 as createDocumentCaptureInternal, d5 as createFaceLandmarker, d6 as createLivePhotoKit, d7 as createLivenessCaptureInternal, d8 as createPortraitCaptureInternal, d9 as createVerificationInternal, da as docZoomFor, db as encodeDocumentImage, dc as facesOf, dd as feedbackVoteOf, de as focusOk, df as guideQuad, dg as guideRegionInFrame, dh as initialScanState, di as mapEngineState, dj as mapErrorKind, dk as mapGuidanceHint, dl as nextScanState, dm as observePortraitFrame, dn as openDocCamera, dp as passportBandOf, dq as portraitMatchStep, dr as preloadedDetectorFactory, ds as quadAreaFrac, dt as quadBounds, du as quadIou, dv as quadTiltRatio, dw as randomUuid, dx as readStoredLens, dy as resetLivenessAssetsForTests, dz as resolveDocCameraTuning, dA as resolveDocShutterTuning, dB as resolveGuideLockTuning, dC as runLivenessFlow, dD as runSubmission, dE as scannerFormatFor, dF as setPreloadLoaderForTests, dG as settledHint, dH as singleShotFocusAt, dI as specularFraction, dJ as supportsFocusMode, dK as warmDocDetector, dL as writeStoredLens } from '../create-verification-acQzNRiB.js';
1
+ import { b2 as DocCatalogEntry, b3 as LiveMrzTuning, b4 as TextLockTuning, b5 as OcrEngineClient, b6 as DocAssistReport, b7 as ReadyInfo, b8 as LoadFailure, b9 as OcrEngineOptions, ba as SubmitRuntime, a4 as LivenessCaptureOptions, a3 as LivenessCaptureHandle, aN as VerificationStep, aL as VerificationResult, aC as StepSnapshot, $ as LivePhotoGateUpdate, bb as HostedClientLike } from '../create-verification-DOBYRCV_.js';
2
+ export { bc as ANALYSIS_LONG_EDGE, bd as ASPECT_BANDS, be as AttestationError, bf as BLUR_REFUSE_SHARPNESS_MAX, bg as BlurStatus, bh as CAPTURE_CANDIDATE_SPACING_MS, bi as CAPTURE_EXTRA_CANDIDATES, bj as CHALLENGE_EXECUTE_TIMEOUT_MS, bk as CHALLENGE_READY_TIMEOUT_MS, bl as CLIP_MIME_ALLOWLIST, bm as CaptureEngine, bn as CaptureSessionDoc, bo as CaptureSessionDocEvents, bp as CaptureSessionDocOptions, bq as ChallengeAction, br as ChallengeError, m as ChallengeErrorCode, bs as DOC_ANALYSIS_DEFAULTS, bt as DOC_BLACK_FRAME_LUMA, bu as DOC_BLACK_FRAME_TICKS, bv as DOC_CADENCE_HZ, bw as DOC_CAMERA_TUNING_DEFAULTS, bx as DOC_CATALOG, by as DOC_DETECT_WIDTH, bz as DOC_FEEDBACK_STATES, bA as DOC_FIRST_FRAME_MS, bB as DOC_GATE_V1_DEFAULTS, bC as DOC_SHUTTER_DEFAULTS, bD as DeviceReadHint, bE as DocArtifacts, bF as DocAssist, bG as DocAssistEngine, bH as DocAssistTick, bI as DocCameraTuning, bJ as DocCaptureReport, bK as DocCaptureVia, bL as DocChecksPayload, bM as DocEngineLike, bN as DocFeedbackAggregator, bO as DocFeedbackKey, bP as DocFeedbackState, bQ as DocFormat, bR as DocFrameAnalysis, bS as DocFrameMeasures, bT as DocGateQuality, bU as DocGateThresholds, bV as DocGateTick, bW as DocGateTickInput, bX as DocGateV1, bY as DocQuad, bZ as DocQuadPoint, b_ as DocShutterReason, b$ as DocShutterTuning, c0 as DocSide, c1 as DocumentCaptureController, c2 as DocumentCaptureInternals, c3 as EMPTY_GUIDE_METRICS, c4 as EncodedDocument, c5 as ExecuteChallengeOptions, c6 as FLIP_FILL_MIN, c7 as FLIP_GAP_MS, c8 as FLIP_TIMEOUT_MS, c9 as FocusCaps, ca as FramingStatus, cb as GUIDE_LOCK_DEFAULTS, cc as GlareStatus, cd as GrabbedFrame, ce as GuideBlocker, cf as GuideLock, cg as GuideLockTick, ch as GuideLockTuning, ci as GuideMetrics, cj as GuideRect, ck as INFERENCE_RETRY_ATTEMPTS, cl as INFERENCE_RETRY_DEFAULT_S, X as ISSUER_CODES, cm as LANDMARKER_MODEL, cn as LENS_STORAGE_KEY, co as LIVE_MRZ_DEFAULTS, cp as LIVE_PHOTO_IDLE_MS, cq as LIVE_PHOTO_MAX_HZ, cr as LandmarkedFace, cs as LandmarkerLike, ct as LensSource, cu as LightingStatus, cv as LiveMrzCapture, cw as LiveMrzState, cx as LivePhotoGate, cy as LivePhotoKit, cz as LivePhotoKitInternals, cA as LivePhotoKitOptions, cB as LivePhotoStill, cC as LivenessCaptureInternalHandle, cD as LivenessCaptureInternals, cE as LivenessFlowDeps, cF as LivenessFlowOutcome, cG as MANUAL_SHUTTER_MS, cH as MR_DOC_CATALOG, cI as NO_REPORT_MS, cJ as OpenDocCameraDeps, cK as PORTRAIT_JPEG_QUALITY, cL as PRELOAD_BLAZE_INIT_TIMEOUT_MS, cM as PRELOAD_BUDGET_MS, cN as PROCESSING_POLL_DELAY_MS, cO as PROCESSING_POLL_MAX, cP as PortraitCaptureController, cQ as PortraitCaptureInternals, cR as REGISTRY_RETRY_DELAY_MS, cS as ReticleType, cT as SAME_FACE_MAX_DROPS, cU as ScanEvent, cV as ScanLayout, cW as ScanNotice, cX as ScanPhase, cY as ScanReport, cZ as ScanSide, c_ as ScanState, c$ as SubmitExecutor, d0 as TEXT_LOCK_DEFAULTS, d1 as TRANSPORT_REPLAY_ATTEMPTS, d2 as TRANSPORT_REPLAY_DELAY_MS, d3 as VerificationInternals, d4 as analyzeDocFrame, d5 as analyzeGuide, d6 as aspectBand, d7 as aspectFits, d8 as buildDeviceReadHint, d9 as coverPointToVideo, da as createDocumentCaptureInternal, db as createFaceLandmarker, dc as createLivePhotoKit, dd as createLivenessCaptureInternal, de as createPortraitCaptureInternal, df as createVerificationInternal, dg as docZoomFor, dh as encodeDocumentImage, di as executeChallenge, dj as facesOf, dk as feedbackVoteOf, dl as focusOk, dm as guideQuad, dn as guideRegionInFrame, dp as initialScanState, dq as mapEngineState, dr as mapErrorKind, ds as mapGuidanceHint, dt as nextScanState, du as observePortraitFrame, dv as openDocCamera, dw as passportBandOf, dx as portraitMatchStep, dy as preloadedDetectorFactory, dz as quadAreaFrac, dA as quadBounds, dB as quadIou, dC as quadTiltRatio, dD as randomUuid, dE as readStoredLens, dF as resetChallengeFrameForTests, dG as resetLivenessAssetsForTests, dH as resolveDocCameraTuning, dI as resolveDocShutterTuning, dJ as resolveGuideLockTuning, dK as runLivenessFlow, dL as runSubmission, dM as scannerFormatFor, dN as setPreloadLoaderForTests, dO as settledHint, dP as singleShotFocusAt, dQ as specularFraction, dR as supportsFocusMode, dS as warmDocDetector, dT as writeStoredLens } from '../create-verification-DOBYRCV_.js';
3
3
  export { C as CENTERED_FACTOR, a as CIRCLE_RADIUS_FACTOR, F as FormFactor, I as IN_CIRCLE_FACTOR, d as detectFormFactor, c as detectIsMobile } from '../capture-constraints-CVqpMNGA.js';
4
- import { S as HostedSessionView, h as CheckType, an as PlanStepView } from '../types-1s8CQrEN.js';
5
- export { a$ as ICAO_FALLBACK, aV as IcaoCaptureTuning, b0 as IcaoProfile, b1 as ResolvedIcaoTuning, b2 as resolveIcaoTuning } from '../types-1s8CQrEN.js';
6
- export { B as BackgroundStats, h as Box, C as CLIPPED_LUMA, F as FaceGeometry, i as FaceLighting, c as HeadPose, j as ICAO_CANVAS, k as ICAO_GATE_CRITERIA, l as ICAO_SHARP_REF, I as IcaoCoachKey, d as IcaoCriterionState, m as IcaoFrameObservation, n as IcaoGate, e as IcaoGateCriterion, o as IcaoGateOptions, p as IcaoGateScores, f as IcaoGateSummary, g as IcaoGateUpdate, q as IcaoJudgedCriterion, r as IcaoMeasures, t as IcaoMouthScores, u as IcaoPixelStats, L as LumaPlane, P as Point, R as RegionStats, v as backgroundStats, w as createIcaoGate, x as eyeLineRoll, y as eyeOpenness, z as eyeSpecular, A as faceGeometry, D as faceLighting, E as faceSharpness, G as icaoPixelStats, J as icaoWindow, K as judgeIcao, N as lumaPlane, O as percentile, Q as portraitCropRegion, T as poseFromMatrix, V as regionStats, W as scoreFrame, X as windowOverflow } from '../icao-gate-VwsQo8Bq.js';
4
+ import { T as HostedSessionView, h as CheckType, ao as PlanStepView } from '../types-ZBcpvLdo.js';
5
+ export { b0 as ICAO_FALLBACK, aW as IcaoCaptureTuning, b1 as IcaoProfile, b2 as ResolvedIcaoTuning, b3 as resolveIcaoTuning } from '../types-ZBcpvLdo.js';
6
+ export { B as BackgroundStats, h as Box, C as CLIPPED_LUMA, F as FaceGeometry, i as FaceLighting, c as HeadPose, j as ICAO_CANVAS, k as ICAO_GATE_CRITERIA, l as ICAO_SHARP_REF, I as IcaoCoachKey, d as IcaoCriterionState, m as IcaoFrameObservation, n as IcaoGate, e as IcaoGateCriterion, o as IcaoGateOptions, p as IcaoGateScores, f as IcaoGateSummary, g as IcaoGateUpdate, q as IcaoJudgedCriterion, r as IcaoMeasures, t as IcaoMouthScores, u as IcaoPixelStats, L as LumaPlane, P as Point, R as RegionStats, v as backgroundStats, w as createIcaoGate, x as eyeLineRoll, y as eyeOpenness, z as eyeSpecular, A as faceGeometry, D as faceLighting, E as faceSharpness, G as icaoPixelStats, J as icaoWindow, K as judgeIcao, N as lumaPlane, O as percentile, Q as portraitCropRegion, T as poseFromMatrix, V as regionStats, W as scoreFrame, X as windowOverflow } from '../icao-gate-CJPTgKFb.js';
7
7
  import '../detect-worker-CHqsPJoM.js';
8
- import '../capture-session-v3-TUPtnvmu.js';
8
+ import '../capture-session-v3-C0bbHvDc.js';
9
9
 
10
10
  /** At most this many ranked lenses are tried (each costs a camera reopen). */
11
11
  declare const LENS_TRY_MAX = 3;
@@ -365,55 +365,6 @@ interface ResultOptions {
365
365
  previous?: HostedSessionView;
366
366
  }
367
367
 
368
- declare const TURNSTILE_SCRIPT_SRC = "https://challenges.cloudflare.com/turnstile/v0/api.js";
369
- /**
370
- * Bound on a single execute round-trip (challenge fetch + solve). A healthy
371
- * invisible challenge settles in a few seconds, but on slow phones and networks
372
- * it routinely takes 10 to 20 s: 10 s failed a third of real sessions
373
- * (incident 2026-11-10), so the bound is 30 s. A failed or timed-out challenge
374
- * is retried once on a fresh widget.
375
- */
376
- declare const TURNSTILE_EXECUTE_TIMEOUT_MS = 30000;
377
- interface TurnstileRenderParams {
378
- sitekey: string;
379
- callback: (token: string) => void;
380
- "error-callback"?: (code?: string) => void;
381
- execution?: "render" | "execute";
382
- appearance?: "always" | "execute" | "interaction-only";
383
- }
384
- /** The subset of the Turnstile JS API this module uses. */
385
- interface TurnstileApi {
386
- render(container: HTMLElement, params: TurnstileRenderParams): string | undefined;
387
- execute(widgetId: string): void;
388
- reset(widgetId: string): void;
389
- remove(widgetId: string): void;
390
- }
391
- /** Test-only: reset the module singletons between cases. */
392
- declare function resetTurnstileForTests(): void;
393
- /** Load the Turnstile script once (singleton; a load failure resets it so a
394
- * retry can re-attempt). */
395
- declare function loadTurnstile(): Promise<TurnstileApi>;
396
- /** Options of {@link executeTurnstile}. */
397
- interface ExecuteTurnstileOptions {
398
- /** Bound on the challenge round-trip; default {@link TURNSTILE_EXECUTE_TIMEOUT_MS}. */
399
- timeoutMs?: number;
400
- /**
401
- * Aborts the challenge: the promise rejects and the widget, its container and
402
- * the timeout are cleaned up at once. `createVerification().destroy()` passes
403
- * its own signal so a torn-down verification never leaves a widget behind.
404
- */
405
- signal?: AbortSignal;
406
- }
407
- /**
408
- * Run one invisible execute-mode challenge on the kept widget and resolve its
409
- * token. A challenge error, a load/render failure or a challenge that does not
410
- * settle within the timeout removes the widget and runs the challenge ONCE more
411
- * on a freshly rendered widget; only then does the promise reject. An abort
412
- * (`signal`) rejects at once, without the second attempt. The verification
413
- * submits without a token when this rejects, so the server decides.
414
- */
415
- declare function executeTurnstile(siteKey: string, opts?: ExecuteTurnstileOptions): Promise<string>;
416
-
417
368
  /**
418
369
  * Face of a decoded still: an MRZ band means the verso. With `cardOnly` (the still is the card itself) the band must
419
370
  * sit in its lower half, where a card's MRZ is: the line of print across a recto's top (the issuing state) is not one.
@@ -492,4 +443,4 @@ declare function measureRegionSharpness(image: RawImage, region: StillRegion | n
492
443
  */
493
444
  declare function measureBitmapSharpness(bitmap: ImageBitmap, region: StillRegion | null): number;
494
445
 
495
- export { type AcceptedDocumentsLike, type BrowserFamily, DOCUMENT_TYPE_ORDER, DocAssistReport, DocCatalogEntry, type DocumentTypeId, type ExecuteTurnstileOptions, HostedClientLike, LENS_TRY_MAX, type LensKind, LiveMrzTuning, type LiveMrzWireReport, LoadFailure, MRZ_BAND_DEFAULTS, type MrzBand, type MrzBandThresholds, OCR_ASSET_SET, OTP_RESEND_COOLDOWN_MS, OcrEngineClient, PROCESSING_BACKOFF_MS, REGION_PAD, ReadyInfo, type RunnerDeps, SHARPNESS_LONG_EDGE, type StepRunner, type StillRegion, SubmitRuntime, TURNSTILE_EXECUTE_TIMEOUT_MS, TURNSTILE_SCRIPT_SRC, TextLockTuning, type TurnstileApi, type TurnstileRenderParams, WEB_OCR_ENGINE, type WebOcrPlan, type WebOcrStart, acceptedIssuers, acceptedTypesFor, browserFamily, classifyCardSide, classifyCardSideWith, createStepRunner, cropImage, detectMrzBand, executeTurnstile, flagOf, formatMismatch, frontierStep, isExecutable, isTerminalView, lensKindOf, liveMrzWireReport, loadTurnstile, mapSessionResult, measureBitmapSharpness, measureRegionSharpness, photoSharpness, rankBackCameras, resetTurnstileForTests, resizeLongEdge, resolveAcceptedDocuments, resolveWebOcrPlan, startWebOcr, stepOf, stillRegionOf, stillToImageData };
446
+ export { type AcceptedDocumentsLike, type BrowserFamily, DOCUMENT_TYPE_ORDER, DocAssistReport, DocCatalogEntry, type DocumentTypeId, HostedClientLike, LENS_TRY_MAX, type LensKind, LiveMrzTuning, type LiveMrzWireReport, LoadFailure, MRZ_BAND_DEFAULTS, type MrzBand, type MrzBandThresholds, OCR_ASSET_SET, OTP_RESEND_COOLDOWN_MS, OcrEngineClient, PROCESSING_BACKOFF_MS, REGION_PAD, ReadyInfo, type RunnerDeps, SHARPNESS_LONG_EDGE, type StepRunner, type StillRegion, SubmitRuntime, TextLockTuning, WEB_OCR_ENGINE, type WebOcrPlan, type WebOcrStart, acceptedIssuers, acceptedTypesFor, browserFamily, classifyCardSide, classifyCardSideWith, createStepRunner, cropImage, detectMrzBand, flagOf, formatMismatch, frontierStep, isExecutable, isTerminalView, lensKindOf, liveMrzWireReport, mapSessionResult, measureBitmapSharpness, measureRegionSharpness, photoSharpness, rankBackCameras, resizeLongEdge, resolveAcceptedDocuments, resolveWebOcrPlan, startWebOcr, stepOf, stillRegionOf, stillToImageData };
@@ -1 +1 @@
1
- import{c as me,d as _e,e as Le,h as Te,i as Re,j as Se}from"../chunk-IC6TI6GV.js";import{a as W,b as ve,c as ge,d as be,e as Ge,f as he,g as Ue,h as Ye,i as He,j as k,k as K,l as w,m as X,n as Z,o as J,p as Q,q as j,r as q,s as $,t as ee,u as te,x as re}from"../chunk-MQBX4DQQ.js";import{a as Bt,b as Vt,c as Xt,d as Zt,e as Jt,f as Qt,g as jt,h as qt,i as $t,j as ne,k as ae,m as se,n as Ee}from"../chunk-VWGKUQ3C.js";import{a as Ft,b as Nt,c as vt,d as gt,e as bt,f as Gt,g as ht,h as Ut,i as Yt,j as Ht,k as Wt,l as kt,m as Kt}from"../chunk-53POX7U4.js";import{a as wt,b as zt}from"../chunk-33KKMPJ5.js";import{b as oe,c as pe,d as ie}from"../chunk-CJHMFPL6.js";import"../chunk-RI3E7GBN.js";import"../chunk-GI3UFGRQ.js";import{a as D,b as d,c as M,d as F,e as N}from"../chunk-TDCLQRT4.js";import{A as ut,B as It,C as Ot,D as xt,E as At,F as Ct,G as Pt,H as Dt,I as dt,J as Mt,a as Ke,b as we,c as ze,d as je,e as qe,f as $e,g as et,h as tt,i as rt,j as ot,k as pt,l as it,m as nt,n as at,o as st,p as Et,q as mt,r as _t,s as Lt,t as Tt,u as Rt,v as St,w as ct,x as lt,y as yt,z as ft}from"../chunk-FLA42JCK.js";import{a as v,b as g,c as b,d as G,e as h,f as U,g as Y,h as H,i as z,j as B,l as V}from"../chunk-G6LKLN4U.js";import{a as We,b as ke}from"../chunk-SMKCBUJL.js";import{a as Be,b as Ve,c as Xe,d as Ze,e as Je,f as Qe}from"../chunk-MXWLCDFX.js";import{a as Pe,b as De,c as de,d as Me,e as Fe,f as Ne}from"../chunk-TDLIXFDT.js";import{b as le,c as ye,d as fe,e as ue,g as Ie,h as er,i as tr,j as rr,k as or,l as pr,m as ir,s as Oe}from"../chunk-DMOGKGDS.js";import{A as C,B as P,i as R,j as S,k as c,l,o as y,u as f,v as u,w as I,x as O,y as x,z as A}from"../chunk-QY6TJCOJ.js";import{a as i,b as n,c as a,d as s,i as E,j as m,k as _,l as L,n as T}from"../chunk-LBH6KGTV.js";import"../chunk-7QZWBDI5.js";import"../chunk-5YVQIHQA.js";import"../chunk-SX7TUC3V.js";import"../chunk-POIQGEZM.js";import{p as xe,q as Ae,r as Ce}from"../chunk-CPUECYAJ.js";import"../chunk-FPXL63KZ.js";import"../chunk-XI5FXEKC.js";import{c as e,d as t,f as r,g as o,h as p}from"../chunk-TSA6GHUG.js";import"../chunk-IFLOS5OT.js";import"../chunk-FSSMUAKC.js";import{a as ce}from"../chunk-DFTCAWMP.js";import"../chunk-DK5YPBDQ.js";export{ne as ANALYSIS_LONG_EDGE,Pe as ASPECT_BANDS,A as AttestationError,Ue as BLUR_REFUSE_SHARPNESS_MAX,Mt as CAPTURE_CANDIDATE_SPACING_MS,dt as CAPTURE_EXTRA_CANDIDATES,p as CENTERED_FACTOR,r as CIRCLE_RADIUS_FACTOR,Bt as CLIPPED_LUMA,f as CLIP_MIME_ALLOWLIST,Pt as CaptureSessionDoc,tr as DOCUMENT_TYPE_ORDER,je as DOC_ANALYSIS_DEFAULTS,It as DOC_BLACK_FRAME_LUMA,Ot as DOC_BLACK_FRAME_TICKS,xt as DOC_CADENCE_HZ,tt as DOC_CAMERA_TUNING_DEFAULTS,Fe as DOC_CATALOG,Be as DOC_DETECT_WIDTH,Ke as DOC_FEEDBACK_STATES,ut as DOC_FIRST_FRAME_MS,Ve as DOC_GATE_V1_DEFAULTS,At as DOC_SHUTTER_DEFAULTS,V as DocAssist,ze as DocFeedbackAggregator,Qe as DocGateV1,Lt as EMPTY_GUIDE_METRICS,ge as FLIP_FILL_MIN,ve as FLIP_GAP_MS,be as FLIP_TIMEOUT_MS,ct as GUIDE_LOCK_DEFAULTS,yt as GuideLock,gt as ICAO_CANVAS,wt as ICAO_FALLBACK,Ut as ICAO_GATE_CRITERIA,Vt as ICAO_SHARP_REF,O as INFERENCE_RETRY_ATTEMPTS,x as INFERENCE_RETRY_DEFAULT_S,o as IN_CIRCLE_FACTOR,er as ISSUER_CODES,oe as LANDMARKER_MODEL,ot as LENS_STORAGE_KEY,xe as LENS_TRY_MAX,B as LIVE_MRZ_DEFAULTS,_e as LIVE_PHOTO_IDLE_MS,me as LIVE_PHOTO_MAX_HZ,Ge as MANUAL_SHUTTER_MS,We as MRZ_BAND_DEFAULTS,Me as MR_DOC_CATALOG,he as NO_REPORT_MS,ce as OCR_ASSET_SET,Re as OTP_RESEND_COOLDOWN_MS,ae as PORTRAIT_JPEG_QUALITY,i as PRELOAD_BLAZE_INIT_TIMEOUT_MS,n as PRELOAD_BUDGET_MS,Te as PROCESSING_BACKOFF_MS,ye as PROCESSING_POLL_DELAY_MS,fe as PROCESSING_POLL_MAX,b as REGION_PAD,le as REGISTRY_RETRY_DELAY_MS,te as SAME_FACE_MAX_DROPS,v as SHARPNESS_LONG_EDGE,z as TEXT_LOCK_DEFAULTS,u as TRANSPORT_REPLAY_ATTEMPTS,I as TRANSPORT_REPLAY_DELAY_MS,d as TURNSTILE_EXECUTE_TIMEOUT_MS,D as TURNSTILE_SCRIPT_SRC,J as WEB_OCR_ENGINE,or as acceptedIssuers,rr as acceptedTypesFor,et as analyzeDocFrame,Rt as analyzeGuide,De as aspectBand,de as aspectFits,jt as backgroundStats,q as browserFamily,X as buildDeviceReadHint,K as classifyCardSide,k as classifyCardSideWith,st as coverPointToVideo,re as createDocumentCaptureInternal,ie as createFaceLandmarker,Kt as createIcaoGate,Le as createLivePhotoKit,T as createLivenessCaptureInternal,Ee as createPortraitCaptureInternal,Se as createStepRunner,Ie as createVerificationInternal,h as cropImage,e as detectFormFactor,t as detectIsMobile,ke as detectMrzBand,Et as docZoomFor,W as encodeDocumentImage,N as executeTurnstile,vt as eyeLineRoll,Ht as eyeOpenness,Qt as eyeSpecular,Ft as faceGeometry,Jt as faceLighting,qt as faceSharpness,pe as facesOf,we as feedbackVoteOf,ir as flagOf,mt as focusOk,ee as formatMismatch,c as frontierStep,St as guideQuad,Tt as guideRegionInFrame,$t as icaoPixelStats,bt as icaoWindow,Ye as initialScanState,R as isExecutable,S as isTerminalView,Yt as judgeIcao,Ae as lensKindOf,$ as liveMrzWireReport,F as loadTurnstile,Xt as lumaPlane,_ as mapEngineState,L as mapErrorKind,m as mapGuidanceHint,y as mapSessionResult,H as measureBitmapSharpness,Y as measureRegionSharpness,He as nextScanState,se as observePortraitFrame,_t as openDocCamera,Dt as passportBandOf,Wt as percentile,g as photoSharpness,ht as portraitCropRegion,Oe as portraitMatchStep,Nt as poseFromMatrix,E as preloadedDetectorFactory,Xe as quadAreaFrac,Je as quadBounds,Ze as quadIou,$e as quadTiltRatio,ue as randomUuid,Ce as rankBackCameras,pt as readStoredLens,Zt as regionStats,s as resetLivenessAssetsForTests,M as resetTurnstileForTests,U as resizeLongEdge,pr as resolveAcceptedDocuments,rt as resolveDocCameraTuning,Ct as resolveDocShutterTuning,lt as resolveGuideLockTuning,zt as resolveIcaoTuning,Q as resolveWebOcrPlan,P as runLivenessFlow,C as runSubmission,Ne as scannerFormatFor,kt as scoreFrame,a as setPreloadLoaderForTests,Z as settledHint,at as singleShotFocusAt,qe as specularFraction,j as startWebOcr,l as stepOf,G as stillRegionOf,w as stillToImageData,nt as supportsFocusMode,ft as warmDocDetector,Gt as windowOverflow,it as writeStoredLens};
1
+ import{c as me,d as _e,e as Le,h as le,i as ce,j as Se}from"../chunk-6XXMWK72.js";import{a as W,b as ve,c as ge,d as he,e as Ge,f as be,g as He,h as Ye,i as Ue,j as k,k as K,l as w,m as X,n as Z,o as J,p as Q,q as j,r as q,s as $,t as ee,u as te,x as re}from"../chunk-MGO2ME5X.js";import{a as Bt,b as Vt,c as Xt,d as Zt,e as Jt,f as Qt,g as jt,h as qt,i as $t,j as ne,k as ie,m as se,n as Ee}from"../chunk-VWGKUQ3C.js";import{a as Ft,b as Nt,c as vt,d as gt,e as ht,f as Gt,g as bt,h as Ht,i as Yt,j as Ut,k as Wt,l as kt,m as Kt}from"../chunk-53POX7U4.js";import{a as wt,b as zt}from"../chunk-33KKMPJ5.js";import{b as oe,c as pe,d as ae}from"../chunk-CJHMFPL6.js";import"../chunk-RI3E7GBN.js";import"../chunk-GI3UFGRQ.js";import{a as P,b as d,c as M,d as F,e as N}from"../chunk-HVW2AB35.js";import{A as Ct,B as At,C as Ot,D as xt,E as It,F as ut,G as Dt,H as Pt,I as dt,J as Mt,a as Ke,b as we,c as ze,d as je,e as qe,f as $e,g as et,h as tt,i as rt,j as ot,k as pt,l as at,m as nt,n as it,o as st,p as Et,q as mt,r as _t,s as Lt,t as lt,u as ct,v as St,w as Rt,x as yt,y as Tt,z as ft}from"../chunk-24F6JCVH.js";import{a as v,b as g,c as h,d as G,e as b,f as H,g as Y,h as U,i as z,j as B,l as V}from"../chunk-G6LKLN4U.js";import{a as We,b as ke}from"../chunk-SMKCBUJL.js";import{a as Be,b as Ve,c as Xe,d as Ze,e as Je,f as Qe}from"../chunk-MXWLCDFX.js";import{a as De,b as Pe,c as de,d as Me,e as Fe,f as Ne}from"../chunk-TDLIXFDT.js";import{b as ye,c as Te,d as fe,e as Ce,g as Ae,h as er,i as tr,j as rr,k as or,l as pr,m as ar,s as Oe}from"../chunk-GLXOSYBH.js";import{A as u,B as D,i as c,j as S,k as R,l as y,o as T,u as f,v as C,w as A,x as O,y as x,z as I}from"../chunk-4ESM6SSR.js";import{a,b as n,c as i,d as s,i as E,j as m,k as _,l as L,n as l}from"../chunk-DIKSFEYQ.js";import"../chunk-7QZWBDI5.js";import"../chunk-J4S3QMK6.js";import"../chunk-SX7TUC3V.js";import"../chunk-POIQGEZM.js";import{p as xe,q as Ie,r as ue}from"../chunk-CPUECYAJ.js";import"../chunk-FPXL63KZ.js";import"../chunk-7HV77AOV.js";import{c as e,d as t,f as r,g as o,h as p}from"../chunk-TSA6GHUG.js";import"../chunk-EHKCOBE2.js";import"../chunk-FSSMUAKC.js";import{a as Re}from"../chunk-DFTCAWMP.js";import"../chunk-DK5YPBDQ.js";export{ne as ANALYSIS_LONG_EDGE,De as ASPECT_BANDS,I as AttestationError,He as BLUR_REFUSE_SHARPNESS_MAX,Mt as CAPTURE_CANDIDATE_SPACING_MS,dt as CAPTURE_EXTRA_CANDIDATES,p as CENTERED_FACTOR,M as CHALLENGE_EXECUTE_TIMEOUT_MS,d as CHALLENGE_READY_TIMEOUT_MS,r as CIRCLE_RADIUS_FACTOR,Bt as CLIPPED_LUMA,f as CLIP_MIME_ALLOWLIST,Dt as CaptureSessionDoc,P as ChallengeError,tr as DOCUMENT_TYPE_ORDER,je as DOC_ANALYSIS_DEFAULTS,At as DOC_BLACK_FRAME_LUMA,Ot as DOC_BLACK_FRAME_TICKS,xt as DOC_CADENCE_HZ,tt as DOC_CAMERA_TUNING_DEFAULTS,Fe as DOC_CATALOG,Be as DOC_DETECT_WIDTH,Ke as DOC_FEEDBACK_STATES,Ct as DOC_FIRST_FRAME_MS,Ve as DOC_GATE_V1_DEFAULTS,It as DOC_SHUTTER_DEFAULTS,V as DocAssist,ze as DocFeedbackAggregator,Qe as DocGateV1,Lt as EMPTY_GUIDE_METRICS,ge as FLIP_FILL_MIN,ve as FLIP_GAP_MS,he as FLIP_TIMEOUT_MS,Rt as GUIDE_LOCK_DEFAULTS,Tt as GuideLock,gt as ICAO_CANVAS,wt as ICAO_FALLBACK,Ht as ICAO_GATE_CRITERIA,Vt as ICAO_SHARP_REF,O as INFERENCE_RETRY_ATTEMPTS,x as INFERENCE_RETRY_DEFAULT_S,o as IN_CIRCLE_FACTOR,er as ISSUER_CODES,oe as LANDMARKER_MODEL,ot as LENS_STORAGE_KEY,xe as LENS_TRY_MAX,B as LIVE_MRZ_DEFAULTS,_e as LIVE_PHOTO_IDLE_MS,me as LIVE_PHOTO_MAX_HZ,Ge as MANUAL_SHUTTER_MS,We as MRZ_BAND_DEFAULTS,Me as MR_DOC_CATALOG,be as NO_REPORT_MS,Re as OCR_ASSET_SET,ce as OTP_RESEND_COOLDOWN_MS,ie as PORTRAIT_JPEG_QUALITY,a as PRELOAD_BLAZE_INIT_TIMEOUT_MS,n as PRELOAD_BUDGET_MS,le as PROCESSING_BACKOFF_MS,Te as PROCESSING_POLL_DELAY_MS,fe as PROCESSING_POLL_MAX,h as REGION_PAD,ye as REGISTRY_RETRY_DELAY_MS,te as SAME_FACE_MAX_DROPS,v as SHARPNESS_LONG_EDGE,z as TEXT_LOCK_DEFAULTS,C as TRANSPORT_REPLAY_ATTEMPTS,A as TRANSPORT_REPLAY_DELAY_MS,J as WEB_OCR_ENGINE,or as acceptedIssuers,rr as acceptedTypesFor,et as analyzeDocFrame,ct as analyzeGuide,Pe as aspectBand,de as aspectFits,jt as backgroundStats,q as browserFamily,X as buildDeviceReadHint,K as classifyCardSide,k as classifyCardSideWith,st as coverPointToVideo,re as createDocumentCaptureInternal,ae as createFaceLandmarker,Kt as createIcaoGate,Le as createLivePhotoKit,l as createLivenessCaptureInternal,Ee as createPortraitCaptureInternal,Se as createStepRunner,Ae as createVerificationInternal,b as cropImage,e as detectFormFactor,t as detectIsMobile,ke as detectMrzBand,Et as docZoomFor,W as encodeDocumentImage,N as executeChallenge,vt as eyeLineRoll,Ut as eyeOpenness,Qt as eyeSpecular,Ft as faceGeometry,Jt as faceLighting,qt as faceSharpness,pe as facesOf,we as feedbackVoteOf,ar as flagOf,mt as focusOk,ee as formatMismatch,R as frontierStep,St as guideQuad,lt as guideRegionInFrame,$t as icaoPixelStats,ht as icaoWindow,Ye as initialScanState,c as isExecutable,S as isTerminalView,Yt as judgeIcao,Ie as lensKindOf,$ as liveMrzWireReport,Xt as lumaPlane,_ as mapEngineState,L as mapErrorKind,m as mapGuidanceHint,T as mapSessionResult,U as measureBitmapSharpness,Y as measureRegionSharpness,Ue as nextScanState,se as observePortraitFrame,_t as openDocCamera,Pt as passportBandOf,Wt as percentile,g as photoSharpness,bt as portraitCropRegion,Oe as portraitMatchStep,Nt as poseFromMatrix,E as preloadedDetectorFactory,Xe as quadAreaFrac,Je as quadBounds,Ze as quadIou,$e as quadTiltRatio,Ce as randomUuid,ue as rankBackCameras,pt as readStoredLens,Zt as regionStats,F as resetChallengeFrameForTests,s as resetLivenessAssetsForTests,H as resizeLongEdge,pr as resolveAcceptedDocuments,rt as resolveDocCameraTuning,ut as resolveDocShutterTuning,yt as resolveGuideLockTuning,zt as resolveIcaoTuning,Q as resolveWebOcrPlan,D as runLivenessFlow,u as runSubmission,Ne as scannerFormatFor,kt as scoreFrame,i as setPreloadLoaderForTests,Z as settledHint,it as singleShotFocusAt,qe as specularFraction,j as startWebOcr,y as stepOf,G as stillRegionOf,w as stillToImageData,nt as supportsFocusMode,ft as warmDocDetector,Gt as windowOverflow,at as writeStoredLens};
@@ -1 +1 @@
1
- import{e as Z}from"./chunk-A3FUGHAH.js";import{a as Q,b as J,e as X,f as E,g as R,j as Y}from"./chunk-IC6TI6GV.js";import{x as $}from"./chunk-MQBX4DQQ.js";import{n as W}from"./chunk-VWGKUQ3C.js";import"./chunk-53POX7U4.js";import"./chunk-33KKMPJ5.js";import"./chunk-CJHMFPL6.js";import"./chunk-RI3E7GBN.js";import"./chunk-GI3UFGRQ.js";import{F as N,i as z,x as K}from"./chunk-FLA42JCK.js";import"./chunk-G6LKLN4U.js";import"./chunk-SMKCBUJL.js";import"./chunk-MXWLCDFX.js";import"./chunk-TDLIXFDT.js";import{b as O,c as B,q as G,s as j,t as F}from"./chunk-QY6TJCOJ.js";import"./chunk-LBH6KGTV.js";import"./chunk-7QZWBDI5.js";import"./chunk-5YVQIHQA.js";import"./chunk-SX7TUC3V.js";import"./chunk-POIQGEZM.js";import"./chunk-CPUECYAJ.js";import"./chunk-FPXL63KZ.js";import{c as C,i as q}from"./chunk-XI5FXEKC.js";import"./chunk-TSA6GHUG.js";import{a as H}from"./chunk-IFLOS5OT.js";import"./chunk-FSSMUAKC.js";import"./chunk-DFTCAWMP.js";import"./chunk-DK5YPBDQ.js";var re=2e4,oe=new Set(["media_type_unsupported","media_type_mismatch"]),ee=new Set(["document_upload_not_allowed","portrait_source_not_allowed","uploaded_media_not_allowed"]);function te(e){let c=null,m=Promise.resolve(),d=!1,w=null,M=null,h=!1,D=null,g=!1,_=!1,k=()=>{c?.controller.handle.destroy(),c=null},v=()=>{let t=e.currentView(),r=t===null?null:R(t,{isMobile:e.isMobile()});return r?.kind==="portrait"?r:null},S=()=>{if(e.destroyed())return"self";let t=e.currentView(),r=t===null?void 0:E(t);return r==="self"||r==="assisted"?r:r==="choice"&&e.captureModeSwitch!==void 0?e.captureModeSwitch.pick()??"self":e.cameraMode?.()??j(r??G(t),null)},I=e.captureModeSwitch,x=I===void 0?void 0:{session:()=>{let t=e.currentView();return t!==null&&E(t)==="choice"?"choice":S()},onModeChange:t=>I.choose(t)},T=async(t,r)=>{if(e.destroyed())return;let u=S();r.setFlowState("uploading"),d=!1;let n=null;try{await e.runner().submit("portrait_icao",async(s,y)=>{if(n===null){let f=await F(s,"image","image/jpeg",t.image.size,{engine:"portrait"});await s.uploadToSpaces(f.uploadUrl,t.image,"image/jpeg"),n=(await s.completeMedia(f.key)).key}r.setFlowState("checking");let b={media:{portrait:n},gate:q(t.gate),...t.tuningVersion!==void 0?{tuningVersion:t.tuningVersion}:{},source:"camera",capture:{mode:u,facingMode:t.facingMode}};return s.submitCheck("portrait_icao",b,{idempotencyKey:y})})}catch(s){d=!0,s instanceof C&&ee.has(s.code)&&await e.refreshView?.().catch(()=>{})}if(r.setFlowState("done"),e.destroyed())return;let o=v();(o===null||o.phase!=="capture")&&c?.controller===r&&k(),e.runner().republish()},L=t=>e.runner().submit("face_match",(r,u)=>r.submitCheck("face_match",e.runner().faceProbeSkipped()?{simulatedCapture:!0}:{},{idempotencyKey:u})).then(()=>{},()=>{d=!0,t()}),P=null,V=async t=>{let r=v();if(r===null||r.phase!=="capture"||!r.photo.uploadOffered)throw new RangeError("upload_not_offered");let{prepareUploadFile:u}=await import("./upload-file-UYXOHCRG.js"),n=await u(t,e.uploadInternals);if(e.destroyed())return;k(),d=!1;let o=null;try{await e.runner().submit("portrait_icao",async(s,y)=>{if(o===null){let f=await s.presign("image",n.contentType,n.blob.size,{source:"upload"});await s.uploadToSpaces(f.uploadUrl,n.blob,n.contentType),o=(await s.completeMedia(f.key)).key}let b={media:{portrait:o},source:"upload"};return s.submitCheck("portrait_icao",b,{idempotencyKey:y})})}catch(s){throw s instanceof C&&oe.has(s.code)?new TypeError("unsupported_file"):(s instanceof C&&ee.has(s.code)&&await e.refreshView?.().catch(()=>{}),s)}},i=null,l=t=>{if(i!==null)return i;let r=v();if(r===null||r.phase!=="review")return Promise.reject(new RangeError("no_pending_fix"));let u={fixReview:{accept:t}},n=e.runner().submit("portrait_icao",(o,s)=>o.submitCheck("portrait_icao",u,{idempotencyKey:s})).catch(async o=>{throw o instanceof C&&o.code==="portrait_no_pending_fix"&&await e.refreshView?.().catch(()=>{}),o}).finally(()=>{i=null});return i=n,n},a=t=>{let r=()=>V(t),u=(P===null?r():P.then(r,r)).finally(()=>{P===u&&(P=null)});return P=u,u};return{bind:(t,r)=>{if(t.phase==="review")return k(),{...t,uploadFailed:d,resubmit:()=>Promise.resolve(),capture:()=>{throw new Error("the adjusted photo waits for confirmFix()")},uploadPortrait:()=>Promise.reject(new RangeError("upload_not_offered")),confirmFix:l};if(t.phase==="match")return k(),w!==t.attemptsRemaining&&!d&&(w=t.attemptsRemaining,L(r)),{...t,uploadFailed:d,resubmit:()=>(d=!1,w=t.attemptsRemaining,r(),L(r)),capture:()=>{throw new Error("the portrait was already accepted")},uploadPortrait:()=>Promise.reject(new RangeError("upload_not_offered")),confirmFix:l};if(w=null,t.reuse===!0&&t.phase==="capture")return k(),!g&&D!==t.attemptsRemaining&&(D=t.attemptsRemaining,g=!0,e.runner().submit("portrait_icao",(n,o)=>n.submitCheck("portrait_icao",{},{idempotencyKey:o})).then(()=>{_=!1},()=>{_=!0}).finally(()=>{g=!1,r()})),{kind:"processing",key:"processing",context:t.context,section:t.section,stalled:_&&!g,refresh:()=>(_=!1,D=null,r(),Promise.resolve())};let u=e.keptPortraitInput?.()??null;return u!==null&&(h||u!==M&&t.report===null&&t.reason===void 0&&!t.retakeOnly)?(h||(M=u,h=!0,e.runner().submit("portrait_icao",(n,o)=>n.submitCheck("portrait_icao",u,{idempotencyKey:o})).catch(()=>{}).finally(()=>{h=!1,r()})),{kind:"processing",key:"processing",context:t.context,section:t.section,stalled:!1,refresh:()=>Promise.resolve()}):{...t,uploadFailed:d,resubmit:()=>Promise.resolve(),capture:n=>{if(c!==null&&c.video===n.video)return c.controller.handle;k(),d=!1;let o=W({video:n.video,tuning:t.tuning,tuningVersion:t.tuningVersion,...t.icao!=null?{policy:t.icao.policy}:{},...n.keepScreenAwake!==void 0?{keepScreenAwake:n.keepScreenAwake}:{},...n.assetBaseUrl!==void 0?{assetBaseUrl:n.assetBaseUrl}:{}},e.internals,S,x);c={video:n.video,controller:o};let s=o.handle.destroy;o.handle.destroy=()=>{c?.controller===o&&(c=null),s()},o.handle.on("error",f=>{e.reportCaptureIssue?.(O("portrait",f,0))});let y=!1,b=(f,U)=>{let A=o.gateScores();A!==null&&e.reportGate?.({kind:"portrait_gate",platform:"web",outcome:f,...U!==null?{failing:U}:{},...A})};return o.handle.on("gate",f=>{!y&&!f.ready&&(o.gateScores()?.elapsedMs??0)>=re&&(y=!0,b("stuck",f.failing))}),o.handle.on("captured",f=>{b("captured",null),y=!1,m=m.then(()=>T(f,o)).catch(()=>{})}),o.handle},uploadPortrait:a,confirmFix:l}},destroy:k}}function ne(e){let c=e;if(typeof c.apiOrigin!="string"||typeof c.sessionToken!="string")return;let m=`${c.apiOrigin}/api/v2/hosted/capture-reports`,d=c.sessionToken;return w=>{try{fetch(m,{method:"POST",headers:{"content-type":"application/json","x-session-token":d,"x-sekyro-sdk":`@sekyro/web/${H}`},body:JSON.stringify({reports:w}),keepalive:!0}).catch(()=>{})}catch{}}}function ie(e){let c=e.apiOrigin;return Z("sdk",typeof c=="string"&&/staging|sandbox|localhost/.test(c)?"sandbox":"live")}function Me(e){let c=null,m=null,d=null,w=B(),M=Promise.resolve(),h=()=>{d?.flow.handle.destroy(),d=null},D=async(i,l)=>{if(e.destroyed())return;l.setFlowState("uploading");let a=null,p,t=!1,r=e.currentView()?.documents!==void 0;try{await c.submit("doc_ocr",async(y,b)=>{if(a===null){let f=await F(y,"image","image/jpeg",i.image.size,{engine:"document"});await y.uploadToSpaces(f.uploadUrl,i.image,"image/jpeg"),a=(await y.completeMedia(f.key)).key}return l.setFlowState("checking"),p===void 0&&(p=l.takeDeviceRead(i)),y.submitCheck("doc_ocr",{imageKey:a,side:i.side,...p!==null?{deviceRead:p}:{},...r?{source:"camera"}:{}},{idempotencyKey:b})})}catch{t=!0}finally{l.setFlowState("done")}if(e.destroyed())return;if(t){l.settle(i.side,{ok:!1,issue:"technical"});return}let u=e.currentView(),n=u===null?null:R(u,{isMobile:e.isMobile()});if(n?.kind!=="document"){l.settle(i.side,{ok:!0}),d?.flow===l?h():l.handle.destroy();return}if(n.reason==="document_type_not_accepted"){m=null,d?.flow===l&&h(),c.republish();return}let o=n.acceptedSides;i.side!=="single"&&(o.includes(i.side)||n.reason==="side_missing")&&!(o.includes("recto")&&o.includes("verso"))?(l.settle(i.side,{ok:!0}),m?.documentType!=="passport"&&l.handle.setSide(n.side)):l.settle(i.side,{ok:!1,issue:"reread"})},g=null,_=async i=>{let l=e.currentView(),a=l===null?null:R(l,{isMobile:e.isMobile()});if(l===null||a?.kind!=="document")throw new RangeError("upload_not_offered");if(!a.photo.uploadOffered)throw new RangeError("upload_not_offered");let p=m?.documentType==="passport"?"single":a.side,{prepareUploadFile:t}=await import("./upload-file-UYXOHCRG.js"),r=await t(i,e.uploadInternals);if(e.destroyed())return;h();let u=null;try{await c.submit("doc_ocr",async(n,o)=>{if(u===null){let s=await n.presign("image",r.contentType,r.blob.size,{source:"upload"});await n.uploadToSpaces(s.uploadUrl,r.blob,r.contentType),u=(await n.completeMedia(s.key)).key}return n.submitCheck("doc_ocr",{imageKey:u,side:p,source:"upload"},{idempotencyKey:o})})}catch(n){throw n instanceof C&&(n.code==="media_type_unsupported"||n.code==="media_type_mismatch")?new TypeError("unsupported_file"):(n instanceof C&&(n.code==="document_upload_not_allowed"||n.code==="uploaded_media_not_allowed")&&await e.refreshView().catch(()=>{}),n)}},k=(i,l)=>({...i,uploadDocument:a=>{let p=()=>_(a),t=(g===null?p():g.then(p,p)).finally(()=>{g===t&&(g=null)});return g=t,t},issuer:m?.issuer??null,documentType:m?.documentType??null,captureSide:m===null?null:m.documentType==="passport"?"single":i.side,selectDocument:(a,p)=>{if(!J(i.documents).includes(a)||!Q(i.documents,a).includes(p))throw new RangeError(`${p} from ${a} is not accepted`);(m?.issuer!==a||m.documentType!==p)&&h(),m={issuer:a,documentType:p},l()},capture:a=>{if(m===null)throw new Error("selectDocument() first");if(d!==null&&d.video===a.video)return d.flow.handle;h();let p=m,t=p.documentType==="passport"?"single":i.acceptedSides.length>0?i.side:void 0,r=$({video:a.video,documentType:p.documentType,issuer:p.issuer,...t!==void 0?{side:t}:{},...a.keepScreenAwake!==void 0?{keepScreenAwake:a.keepScreenAwake}:{},...a.liveMrz!==void 0?{liveMrz:a.liveMrz}:{}},{...e.documentInternals??{},...(()=>{let n=e.currentView()?.capture?.document,o=e.documentInternals?.blurRefuseSharpnessMax??n?.scan?.blurRefuseSharpnessMax;return{engineOptions:{camera:z(n?.camera),shutter:N(n?.scan),guideLock:K(n?.guide),...e.documentInternals?.engineOptions??{}},...typeof o=="number"&&Number.isFinite(o)&&o>=0&&o<=1?{blurRefuseSharpnessMax:o}:{}}})(),deferRead:!0,...(()=>{let n=e.currentView();if(n===null||e.documentInternals?.webOcr!==void 0)return{};let o=ne(e.runtime.client);return{webOcr:{captureDocument:n.capture?.document,salt:n.sessionId,baseUrl:ie(e.runtime.client),...o!==void 0?{reports:o}:{}}}})()});d={video:a.video,flow:r};let u=r.handle.destroy;return r.handle.destroy=()=>{d?.flow===r&&(d=null),u()},w.newHandle(),r.handle.on("state",n=>w.note(n)),r.handle.on("error",n=>{w.noteError(),e.reportCaptureIssue?.(O("document",n,w.value))}),r.handle.on("captured",n=>{M=M.then(()=>D(n,r)).catch(()=>{})}),r.handle}}),v=null,S=null,I=new Set,x=e.runtime.client;e.runtime.client=new Proxy(x,{get(i,l){if(l==="submitCheck")return(S??i).submitCheck.bind(S??i);let a=Reflect.get(i,l);return typeof a=="function"?a.bind(i):a}});let T=()=>{v?.destroy(),v=null,S=null},L=i=>{let l=e.currentView(),a=l===null?null:R(l,{isMobile:e.isMobile()});if(l===null||a?.kind!=="liveness"||a.livePhoto?.icao!==!0)return;if(v===null){let u=X({tuning:l.capture?.icao??null,tuningVersion:l.capture?.tuningVersion??null,...a.icao!=null?{policy:a.icao.policy}:{},still:a.livePhoto.still,...i.assetBaseUrl!==void 0?{assetBaseUrl:i.assetBaseUrl}:{}},e.livePhotoInternals);v=u,S=u.decorate(x),u.onGate(n=>{for(let o of I)o(n)})}let p=v,t=e.baseCapture??{},r=t.engineOptions?.telemetry;return{...t,engineOptions:{...t.engineOptions??{},measureQuality:p.engineOptions.measureQuality,telemetry:u=>{r?.(u),p.engineOptions.telemetry(u)}}}},P=te({keptPortraitInput:()=>v?.lastPortraitInput()??null,runner:()=>c,currentView:e.currentView,...e.cameraMode!==void 0?{cameraMode:e.cameraMode}:{},...e.captureModeSwitch!==void 0?{captureModeSwitch:e.captureModeSwitch}:{},destroyed:e.destroyed,isMobile:e.isMobile,...e.portraitInternals!==void 0?{internals:e.portraitInternals}:{},...e.uploadInternals!==void 0?{uploadInternals:e.uploadInternals}:{},refreshView:()=>e.refreshView(),...e.reportCaptureIssue!==void 0?{reportCaptureIssue:e.reportCaptureIssue}:{},reportGate:i=>ne(e.runtime.client)?.([i])}),V=Y({...e,bindDocument:k,bindPortrait:P.bind,stopCameras:()=>{h(),P.destroy(),T(),e.stopLiveness?.()},onLivePhoto:i=>(I.add(i),()=>I.delete(i))});return c=V,{...V,captureInternals:L,destroy:()=>{h(),P.destroy(),T(),I.clear()}}}export{Me as createPlanRunner,ne as reportSink,ie as sdkAssetBase};
1
+ import{e as Z}from"./chunk-A3FUGHAH.js";import{a as Q,b as J,e as X,f as E,g as R,j as Y}from"./chunk-6XXMWK72.js";import{x as $}from"./chunk-MGO2ME5X.js";import{n as W}from"./chunk-VWGKUQ3C.js";import"./chunk-53POX7U4.js";import"./chunk-33KKMPJ5.js";import"./chunk-CJHMFPL6.js";import"./chunk-RI3E7GBN.js";import"./chunk-GI3UFGRQ.js";import{F as N,i as z,x as K}from"./chunk-24F6JCVH.js";import"./chunk-G6LKLN4U.js";import"./chunk-SMKCBUJL.js";import"./chunk-MXWLCDFX.js";import"./chunk-TDLIXFDT.js";import{b as O,c as B,q as G,s as j,t as F}from"./chunk-4ESM6SSR.js";import"./chunk-DIKSFEYQ.js";import"./chunk-7QZWBDI5.js";import"./chunk-J4S3QMK6.js";import"./chunk-SX7TUC3V.js";import"./chunk-POIQGEZM.js";import"./chunk-CPUECYAJ.js";import"./chunk-FPXL63KZ.js";import{c as C,i as q}from"./chunk-7HV77AOV.js";import"./chunk-TSA6GHUG.js";import{a as H}from"./chunk-EHKCOBE2.js";import"./chunk-FSSMUAKC.js";import"./chunk-DFTCAWMP.js";import"./chunk-DK5YPBDQ.js";var re=2e4,oe=new Set(["media_type_unsupported","media_type_mismatch"]),ee=new Set(["document_upload_not_allowed","portrait_source_not_allowed","uploaded_media_not_allowed"]);function te(e){let c=null,m=Promise.resolve(),d=!1,w=null,M=null,h=!1,D=null,g=!1,_=!1,k=()=>{c?.controller.handle.destroy(),c=null},v=()=>{let t=e.currentView(),r=t===null?null:R(t,{isMobile:e.isMobile()});return r?.kind==="portrait"?r:null},S=()=>{if(e.destroyed())return"self";let t=e.currentView(),r=t===null?void 0:E(t);return r==="self"||r==="assisted"?r:r==="choice"&&e.captureModeSwitch!==void 0?e.captureModeSwitch.pick()??"self":e.cameraMode?.()??j(r??G(t),null)},I=e.captureModeSwitch,x=I===void 0?void 0:{session:()=>{let t=e.currentView();return t!==null&&E(t)==="choice"?"choice":S()},onModeChange:t=>I.choose(t)},T=async(t,r)=>{if(e.destroyed())return;let u=S();r.setFlowState("uploading"),d=!1;let n=null;try{await e.runner().submit("portrait_icao",async(s,y)=>{if(n===null){let f=await F(s,"image","image/jpeg",t.image.size,{engine:"portrait"});await s.uploadToSpaces(f.uploadUrl,t.image,"image/jpeg"),n=(await s.completeMedia(f.key)).key}r.setFlowState("checking");let b={media:{portrait:n},gate:q(t.gate),...t.tuningVersion!==void 0?{tuningVersion:t.tuningVersion}:{},source:"camera",capture:{mode:u,facingMode:t.facingMode}};return s.submitCheck("portrait_icao",b,{idempotencyKey:y})})}catch(s){d=!0,s instanceof C&&ee.has(s.code)&&await e.refreshView?.().catch(()=>{})}if(r.setFlowState("done"),e.destroyed())return;let o=v();(o===null||o.phase!=="capture")&&c?.controller===r&&k(),e.runner().republish()},L=t=>e.runner().submit("face_match",(r,u)=>r.submitCheck("face_match",e.runner().faceProbeSkipped()?{simulatedCapture:!0}:{},{idempotencyKey:u})).then(()=>{},()=>{d=!0,t()}),P=null,V=async t=>{let r=v();if(r===null||r.phase!=="capture"||!r.photo.uploadOffered)throw new RangeError("upload_not_offered");let{prepareUploadFile:u}=await import("./upload-file-UYXOHCRG.js"),n=await u(t,e.uploadInternals);if(e.destroyed())return;k(),d=!1;let o=null;try{await e.runner().submit("portrait_icao",async(s,y)=>{if(o===null){let f=await s.presign("image",n.contentType,n.blob.size,{source:"upload"});await s.uploadToSpaces(f.uploadUrl,n.blob,n.contentType),o=(await s.completeMedia(f.key)).key}let b={media:{portrait:o},source:"upload"};return s.submitCheck("portrait_icao",b,{idempotencyKey:y})})}catch(s){throw s instanceof C&&oe.has(s.code)?new TypeError("unsupported_file"):(s instanceof C&&ee.has(s.code)&&await e.refreshView?.().catch(()=>{}),s)}},i=null,l=t=>{if(i!==null)return i;let r=v();if(r===null||r.phase!=="review")return Promise.reject(new RangeError("no_pending_fix"));let u={fixReview:{accept:t}},n=e.runner().submit("portrait_icao",(o,s)=>o.submitCheck("portrait_icao",u,{idempotencyKey:s})).catch(async o=>{throw o instanceof C&&o.code==="portrait_no_pending_fix"&&await e.refreshView?.().catch(()=>{}),o}).finally(()=>{i=null});return i=n,n},a=t=>{let r=()=>V(t),u=(P===null?r():P.then(r,r)).finally(()=>{P===u&&(P=null)});return P=u,u};return{bind:(t,r)=>{if(t.phase==="review")return k(),{...t,uploadFailed:d,resubmit:()=>Promise.resolve(),capture:()=>{throw new Error("the adjusted photo waits for confirmFix()")},uploadPortrait:()=>Promise.reject(new RangeError("upload_not_offered")),confirmFix:l};if(t.phase==="match")return k(),w!==t.attemptsRemaining&&!d&&(w=t.attemptsRemaining,L(r)),{...t,uploadFailed:d,resubmit:()=>(d=!1,w=t.attemptsRemaining,r(),L(r)),capture:()=>{throw new Error("the portrait was already accepted")},uploadPortrait:()=>Promise.reject(new RangeError("upload_not_offered")),confirmFix:l};if(w=null,t.reuse===!0&&t.phase==="capture")return k(),!g&&D!==t.attemptsRemaining&&(D=t.attemptsRemaining,g=!0,e.runner().submit("portrait_icao",(n,o)=>n.submitCheck("portrait_icao",{},{idempotencyKey:o})).then(()=>{_=!1},()=>{_=!0}).finally(()=>{g=!1,r()})),{kind:"processing",key:"processing",context:t.context,section:t.section,stalled:_&&!g,refresh:()=>(_=!1,D=null,r(),Promise.resolve())};let u=e.keptPortraitInput?.()??null;return u!==null&&(h||u!==M&&t.report===null&&t.reason===void 0&&!t.retakeOnly)?(h||(M=u,h=!0,e.runner().submit("portrait_icao",(n,o)=>n.submitCheck("portrait_icao",u,{idempotencyKey:o})).catch(()=>{}).finally(()=>{h=!1,r()})),{kind:"processing",key:"processing",context:t.context,section:t.section,stalled:!1,refresh:()=>Promise.resolve()}):{...t,uploadFailed:d,resubmit:()=>Promise.resolve(),capture:n=>{if(c!==null&&c.video===n.video)return c.controller.handle;k(),d=!1;let o=W({video:n.video,tuning:t.tuning,tuningVersion:t.tuningVersion,...t.icao!=null?{policy:t.icao.policy}:{},...n.keepScreenAwake!==void 0?{keepScreenAwake:n.keepScreenAwake}:{},...n.assetBaseUrl!==void 0?{assetBaseUrl:n.assetBaseUrl}:{}},e.internals,S,x);c={video:n.video,controller:o};let s=o.handle.destroy;o.handle.destroy=()=>{c?.controller===o&&(c=null),s()},o.handle.on("error",f=>{e.reportCaptureIssue?.(O("portrait",f,0))});let y=!1,b=(f,U)=>{let A=o.gateScores();A!==null&&e.reportGate?.({kind:"portrait_gate",platform:"web",outcome:f,...U!==null?{failing:U}:{},...A})};return o.handle.on("gate",f=>{!y&&!f.ready&&(o.gateScores()?.elapsedMs??0)>=re&&(y=!0,b("stuck",f.failing))}),o.handle.on("captured",f=>{b("captured",null),y=!1,m=m.then(()=>T(f,o)).catch(()=>{})}),o.handle},uploadPortrait:a,confirmFix:l}},destroy:k}}function ne(e){let c=e;if(typeof c.apiOrigin!="string"||typeof c.sessionToken!="string")return;let m=`${c.apiOrigin}/api/v2/hosted/capture-reports`,d=c.sessionToken;return w=>{try{fetch(m,{method:"POST",headers:{"content-type":"application/json","x-session-token":d,"x-sekyro-sdk":`@sekyro/web/${H}`},body:JSON.stringify({reports:w}),keepalive:!0}).catch(()=>{})}catch{}}}function ie(e){let c=e.apiOrigin;return Z("sdk",typeof c=="string"&&/staging|sandbox|localhost/.test(c)?"sandbox":"live")}function Me(e){let c=null,m=null,d=null,w=B(),M=Promise.resolve(),h=()=>{d?.flow.handle.destroy(),d=null},D=async(i,l)=>{if(e.destroyed())return;l.setFlowState("uploading");let a=null,p,t=!1,r=e.currentView()?.documents!==void 0;try{await c.submit("doc_ocr",async(y,b)=>{if(a===null){let f=await F(y,"image","image/jpeg",i.image.size,{engine:"document"});await y.uploadToSpaces(f.uploadUrl,i.image,"image/jpeg"),a=(await y.completeMedia(f.key)).key}return l.setFlowState("checking"),p===void 0&&(p=l.takeDeviceRead(i)),y.submitCheck("doc_ocr",{imageKey:a,side:i.side,...p!==null?{deviceRead:p}:{},...r?{source:"camera"}:{}},{idempotencyKey:b})})}catch{t=!0}finally{l.setFlowState("done")}if(e.destroyed())return;if(t){l.settle(i.side,{ok:!1,issue:"technical"});return}let u=e.currentView(),n=u===null?null:R(u,{isMobile:e.isMobile()});if(n?.kind!=="document"){l.settle(i.side,{ok:!0}),d?.flow===l?h():l.handle.destroy();return}if(n.reason==="document_type_not_accepted"){m=null,d?.flow===l&&h(),c.republish();return}let o=n.acceptedSides;i.side!=="single"&&(o.includes(i.side)||n.reason==="side_missing")&&!(o.includes("recto")&&o.includes("verso"))?(l.settle(i.side,{ok:!0}),m?.documentType!=="passport"&&l.handle.setSide(n.side)):l.settle(i.side,{ok:!1,issue:"reread"})},g=null,_=async i=>{let l=e.currentView(),a=l===null?null:R(l,{isMobile:e.isMobile()});if(l===null||a?.kind!=="document")throw new RangeError("upload_not_offered");if(!a.photo.uploadOffered)throw new RangeError("upload_not_offered");let p=m?.documentType==="passport"?"single":a.side,{prepareUploadFile:t}=await import("./upload-file-UYXOHCRG.js"),r=await t(i,e.uploadInternals);if(e.destroyed())return;h();let u=null;try{await c.submit("doc_ocr",async(n,o)=>{if(u===null){let s=await n.presign("image",r.contentType,r.blob.size,{source:"upload"});await n.uploadToSpaces(s.uploadUrl,r.blob,r.contentType),u=(await n.completeMedia(s.key)).key}return n.submitCheck("doc_ocr",{imageKey:u,side:p,source:"upload"},{idempotencyKey:o})})}catch(n){throw n instanceof C&&(n.code==="media_type_unsupported"||n.code==="media_type_mismatch")?new TypeError("unsupported_file"):(n instanceof C&&(n.code==="document_upload_not_allowed"||n.code==="uploaded_media_not_allowed")&&await e.refreshView().catch(()=>{}),n)}},k=(i,l)=>({...i,uploadDocument:a=>{let p=()=>_(a),t=(g===null?p():g.then(p,p)).finally(()=>{g===t&&(g=null)});return g=t,t},issuer:m?.issuer??null,documentType:m?.documentType??null,captureSide:m===null?null:m.documentType==="passport"?"single":i.side,selectDocument:(a,p)=>{if(!J(i.documents).includes(a)||!Q(i.documents,a).includes(p))throw new RangeError(`${p} from ${a} is not accepted`);(m?.issuer!==a||m.documentType!==p)&&h(),m={issuer:a,documentType:p},l()},capture:a=>{if(m===null)throw new Error("selectDocument() first");if(d!==null&&d.video===a.video)return d.flow.handle;h();let p=m,t=p.documentType==="passport"?"single":i.acceptedSides.length>0?i.side:void 0,r=$({video:a.video,documentType:p.documentType,issuer:p.issuer,...t!==void 0?{side:t}:{},...a.keepScreenAwake!==void 0?{keepScreenAwake:a.keepScreenAwake}:{},...a.liveMrz!==void 0?{liveMrz:a.liveMrz}:{}},{...e.documentInternals??{},...(()=>{let n=e.currentView()?.capture?.document,o=e.documentInternals?.blurRefuseSharpnessMax??n?.scan?.blurRefuseSharpnessMax;return{engineOptions:{camera:z(n?.camera),shutter:N(n?.scan),guideLock:K(n?.guide),...e.documentInternals?.engineOptions??{}},...typeof o=="number"&&Number.isFinite(o)&&o>=0&&o<=1?{blurRefuseSharpnessMax:o}:{}}})(),deferRead:!0,...(()=>{let n=e.currentView();if(n===null||e.documentInternals?.webOcr!==void 0)return{};let o=ne(e.runtime.client);return{webOcr:{captureDocument:n.capture?.document,salt:n.sessionId,baseUrl:ie(e.runtime.client),...o!==void 0?{reports:o}:{}}}})()});d={video:a.video,flow:r};let u=r.handle.destroy;return r.handle.destroy=()=>{d?.flow===r&&(d=null),u()},w.newHandle(),r.handle.on("state",n=>w.note(n)),r.handle.on("error",n=>{w.noteError(),e.reportCaptureIssue?.(O("document",n,w.value))}),r.handle.on("captured",n=>{M=M.then(()=>D(n,r)).catch(()=>{})}),r.handle}}),v=null,S=null,I=new Set,x=e.runtime.client;e.runtime.client=new Proxy(x,{get(i,l){if(l==="submitCheck")return(S??i).submitCheck.bind(S??i);let a=Reflect.get(i,l);return typeof a=="function"?a.bind(i):a}});let T=()=>{v?.destroy(),v=null,S=null},L=i=>{let l=e.currentView(),a=l===null?null:R(l,{isMobile:e.isMobile()});if(l===null||a?.kind!=="liveness"||a.livePhoto?.icao!==!0)return;if(v===null){let u=X({tuning:l.capture?.icao??null,tuningVersion:l.capture?.tuningVersion??null,...a.icao!=null?{policy:a.icao.policy}:{},still:a.livePhoto.still,...i.assetBaseUrl!==void 0?{assetBaseUrl:i.assetBaseUrl}:{}},e.livePhotoInternals);v=u,S=u.decorate(x),u.onGate(n=>{for(let o of I)o(n)})}let p=v,t=e.baseCapture??{},r=t.engineOptions?.telemetry;return{...t,engineOptions:{...t.engineOptions??{},measureQuality:p.engineOptions.measureQuality,telemetry:u=>{r?.(u),p.engineOptions.telemetry(u)}}}},P=te({keptPortraitInput:()=>v?.lastPortraitInput()??null,runner:()=>c,currentView:e.currentView,...e.cameraMode!==void 0?{cameraMode:e.cameraMode}:{},...e.captureModeSwitch!==void 0?{captureModeSwitch:e.captureModeSwitch}:{},destroyed:e.destroyed,isMobile:e.isMobile,...e.portraitInternals!==void 0?{internals:e.portraitInternals}:{},...e.uploadInternals!==void 0?{uploadInternals:e.uploadInternals}:{},refreshView:()=>e.refreshView(),...e.reportCaptureIssue!==void 0?{reportCaptureIssue:e.reportCaptureIssue}:{},reportGate:i=>ne(e.runtime.client)?.([i])}),V=Y({...e,bindDocument:k,bindPortrait:P.bind,stopCameras:()=>{h(),P.destroy(),T(),e.stopLiveness?.()},onLivePhoto:i=>(I.add(i),()=>I.delete(i))});return c=V,{...V,captureInternals:L,destroy:()=>{h(),P.destroy(),T(),I.clear()}}}export{Me as createPlanRunner,ne as reportSink,ie as sdkAssetBase};
@@ -402,8 +402,11 @@ type CameraUnavailableCause = "denied" | "no_camera";
402
402
  * error's `name` (letters only, at most 40 characters).
403
403
  */
404
404
  interface CaptureIssueReport {
405
- /** The step whose camera failed (`portrait`: the portrait step's own camera, 2026-11-05). */
406
- check: "liveness" | "document" | "portrait";
405
+ /**
406
+ * The step whose camera failed (`portrait`: the portrait step's own camera, 2026-11-05), or `attestation`: the
407
+ * challenge frame produced no token (`kind: 'unavailable'`, the `ChallengeErrorCode` in `engineKind`).
408
+ */
409
+ check: "liveness" | "document" | "portrait" | "attestation";
407
410
  /** The public capture error kind shown, or `unavailable` (the SDK reason then rides in `engineKind`). */
408
411
  kind: "permission" | "notfound" | "inuse" | "insecure" | "unsupported" | "generic" | "unavailable";
409
412
  name?: string;
@@ -1131,6 +1134,13 @@ interface HostedIntegrity {
1131
1134
  appAttest: true;
1132
1135
  };
1133
1136
  }
1137
+ /** `HostedSessionView.challenge`: where the browser obtains its attestation token (spec 2026-11-10 §4.3). */
1138
+ interface HostedChallengeView {
1139
+ /** The challenge frame (`<hosted origin>/challenge`, always the platform host, never a custom domain). */
1140
+ url: string;
1141
+ /** The Turnstile site key the frame renders. */
1142
+ siteKey: string;
1143
+ }
1134
1144
  interface HostedSessionView {
1135
1145
  sessionId: string;
1136
1146
  status: SessionStatus;
@@ -1161,15 +1171,13 @@ interface HostedSessionView {
1161
1171
  */
1162
1172
  sdkOrigin?: string | null;
1163
1173
  /**
1164
- * Cloudflare Turnstile site key the browser must solve an execute-mode
1165
- * challenge against before submitting `liveness` (Plan A Task 5): the org's
1166
- * own widget key when the request origin is one of the org's allowlisted SDK
1167
- * origins, else the hosted widget key; on a Sandbox session always
1168
- * Cloudflare's always-passing test site key, so the same code runs in both
1169
- * environments. `null` only on a Live deployment without Turnstile: the SDK
1170
- * sends no token and the server decides.
1174
+ * The Sekyro challenge frame the browser asks for an attestation token before it submits `liveness` (spec
1175
+ * 2026-11-10 §4.3): the platform's Turnstile widget runs inside a hidden frame at `url`, so the host page needs
1176
+ * only `frame-src <origin of url>`. On a Sandbox session `siteKey` is Cloudflare's always-passing test key, so the
1177
+ * same code runs in both environments. `null` only on a Live deployment without Turnstile: the SDK sends no token
1178
+ * and the server decides.
1171
1179
  */
1172
- turnstileSiteKey: string | null;
1180
+ challenge: HostedChallengeView | null;
1173
1181
  /**
1174
1182
  * A Sandbox (test) session: the hosted page marks it as a test session.
1175
1183
  * Optional: absent on an older backend.
@@ -1476,18 +1484,16 @@ interface CompleteMediaResult {
1476
1484
  }
1477
1485
  /**
1478
1486
  * Liveness attestation bag (attestation-verifier.service.ts). The web SDK sends
1479
- * `{channel: 'hosted_web', siteKey, turnstileToken}` in both environments:
1480
- * `siteKey` echoes the `HostedSessionView.turnstileSiteKey` the challenge was
1481
- * rendered with, so the backend picks the matching widget secret
1482
- * deterministically (Turnstile tokens are single-use: siteverify runs exactly
1483
- * once, never "org then global"). Native SDKs use platform attestation.
1487
+ * `{channel: 'hosted_web', turnstileToken}` in both environments, or
1488
+ * `{channel: 'hosted_web'}` when the challenge produced no token (the server's
1489
+ * attestation rules decide). The token comes from the Sekyro challenge frame
1490
+ * ({@link HostedChallengeView}) and is bound to the session and the page's
1491
+ * origin. Native SDKs use platform attestation.
1484
1492
  */
1485
1493
  interface AttestationInput {
1486
1494
  signature?: string;
1487
1495
  channel?: "hosted_web";
1488
1496
  turnstileToken?: string;
1489
- /** The Turnstile site key the token was minted with (selects the verifying secret). */
1490
- siteKey?: string;
1491
1497
  }
1492
1498
  /**
1493
1499
  * liveness executor input: a promoted `clips/…` key + optional attestation.
@@ -1535,8 +1541,13 @@ interface LivenessCaptureInput {
1535
1541
  cameraReadyMs?: number;
1536
1542
  faceAcquireMs?: number;
1537
1543
  captureMs?: number;
1538
- /** Uploads settled → attestation token in hand (the Turnstile challenge on the web), ms. */
1544
+ /** Uploads settled → attestation token in hand (the challenge frame on the web), ms. */
1539
1545
  attestationMs?: number;
1546
+ /**
1547
+ * Why the web challenge produced no token (a `ChallengeErrorCode`: `challenge_frame_blocked`, `timeout`, ...),
1548
+ * lower case, at most 32 characters. Absent when the token was obtained.
1549
+ */
1550
+ attestationError?: string;
1540
1551
  /** The camera the clip was filmed with (`environment` = back). */
1541
1552
  facingMode?: 'user' | 'environment';
1542
1553
  /**
@@ -1806,4 +1817,4 @@ interface SubmitCheckBody {
1806
1817
  forceOutcome?: "pass" | "fail" | "age_over" | "age_uncertain" | "age_under" | "age_unavailable";
1807
1818
  }
1808
1819
 
1809
- export { type IdentityMethod as $, type AcceptedDocumentType as A, type HostedEidView as B, type CaptureContext as C, type DecisionReason as D, type EidAfterPass as E, type FaceMatchInput as F, type HostedEmailOtpView as G, type HostedAcceptedDocuments as H, type HostedFlowRef as I, type HostedIcaoPolicy as J, type HostedIntegrity as K, type HostedLivePhotoTuning as L, type HostedNativeCaptureTuning as M, type HostedOcrTuning as N, type HostedOtpView as O, type HostedPlanView as P, type HostedPortraitPendingFix as Q, type HostedPortraitView as R, type HostedSessionView as S, type HostedSimulationView as T, type HostedStepView as U, type HostedTesterGateView as V, type HostedVoiceLocale as W, type HostedVoiceView as X, type IcaoCriterion as Y, type IcaoReportEntry as Z, type IdentityConfirmDecision as _, type AttestationInput as a, ICAO_FALLBACK as a$, type IdentitySummarySource as a0, type IdentitySummaryView as a1, type LivenessCaptureInput as a2, type LivenessInput as a3, type LivenessReason as a4, type MatchReason as a5, type MediaKind as a6, type MethodChoiceView as a7, type NationalEidOption as a8, type NfcChipReason as a9, type SessionFailureReason as aA, type SessionReason as aB, type SessionStatus as aC, type SessionStepView as aD, type SessionView as aE, type SimulatedCaptureInput as aF, type StepResult as aG, type StepSection as aH, type SubmitCheckBody as aI, type TesterGateInput as aJ, type TesterGateResponse as aK, type VerificationAssurance as aL, type VerificationLevel as aM, type ScreenRampColour as aN, type AgeEstimationReason as aO, type CameraUnavailableCause as aP, type CaptureIssueReport as aQ, type CaptureProvenance as aR, type HostedBranding as aS, type HostedBrandingColorKey as aT, type HostedLivenessCaptureTuning as aU, type IcaoCaptureTuning as aV, type RetakeHint as aW, type ScreenRampChallenge as aX, type ScreenRampPaint as aY, type ScreenRampRendered as aZ, type ScreenRampReport as a_, type NfcStepView as aa, type OtpChoiceView as ab, type PhoneCountryRule as ac, type PhoneFormat as ad, type PhoneOtpInput as ae, type PhoneOtpReason as af, type PhotoSource as ag, type PhotoSourcePick as ah, type PlanAttempts as ai, type PlanChoiceKind as aj, type PlanChoiceOption as ak, type PlanChoiceView as al, type PlanSectionView as am, type PlanStepView as an, type PopulationInput as ao, type PopulationReason as ap, type PortraitFix as aq, type PortraitFixReviewInput as ar, type PortraitIcaoInput as as, type PortraitIcaoReason as at, type PortraitOutputFormat as au, type PresignRequest as av, type PresignUploadResult as aw, type RecordConsentResult as ax, type ResolvedCaptureMode as ay, type SessionDecidingStep as az, type CaptureMode as b, type IcaoProfile as b0, type ResolvedIcaoTuning as b1, resolveIcaoTuning as b2, type PersonMask as b3, type BackgroundUniformity as b4, type CaptureNoncesResult as c, type CaptureProof as d, type CheckInputByType as e, type CheckReason as f, type CheckState as g, type CheckType as h, type ClosedBy as i, type CompleteMediaResult as j, type ConsentLocale as k, type ContactChannel as l, type DocDeviceRead as m, type DocOcrInput as n, type DocReason as o, type DocSide as p, type EidAuthInput as q, type EidReason as r, type EmailOtpInput as s, type EmailOtpReason as t, type FaceMatchReason as u, type HostedCaptureTuning as v, type HostedConsentView as w, type HostedDocumentCaptureTuning as x, type HostedDocumentScanTuning as y, type HostedDocumentsView as z };
1820
+ export { type IdentityConfirmDecision as $, type AcceptedDocumentType as A, type HostedDocumentsView as B, type CaptureContext as C, type DecisionReason as D, type EidAfterPass as E, type FaceMatchInput as F, type HostedEidView as G, type HostedAcceptedDocuments as H, type HostedEmailOtpView as I, type HostedFlowRef as J, type HostedIcaoPolicy as K, type HostedIntegrity as L, type HostedLivePhotoTuning as M, type HostedNativeCaptureTuning as N, type HostedOcrTuning as O, type HostedOtpView as P, type HostedPlanView as Q, type HostedPortraitPendingFix as R, type HostedPortraitView as S, type HostedSessionView as T, type HostedSimulationView as U, type HostedStepView as V, type HostedTesterGateView as W, type HostedVoiceLocale as X, type HostedVoiceView as Y, type IcaoCriterion as Z, type IcaoReportEntry as _, type AttestationInput as a, type ScreenRampReport as a$, type IdentityMethod as a0, type IdentitySummarySource as a1, type IdentitySummaryView as a2, type LivenessCaptureInput as a3, type LivenessInput as a4, type LivenessReason as a5, type MatchReason as a6, type MediaKind as a7, type MethodChoiceView as a8, type NationalEidOption as a9, type SessionDecidingStep as aA, type SessionFailureReason as aB, type SessionReason as aC, type SessionStatus as aD, type SessionStepView as aE, type SessionView as aF, type SimulatedCaptureInput as aG, type StepResult as aH, type StepSection as aI, type SubmitCheckBody as aJ, type TesterGateInput as aK, type TesterGateResponse as aL, type VerificationAssurance as aM, type VerificationLevel as aN, type ScreenRampColour as aO, type AgeEstimationReason as aP, type CameraUnavailableCause as aQ, type CaptureIssueReport as aR, type CaptureProvenance as aS, type HostedBranding as aT, type HostedBrandingColorKey as aU, type HostedLivenessCaptureTuning as aV, type IcaoCaptureTuning as aW, type RetakeHint as aX, type ScreenRampChallenge as aY, type ScreenRampPaint as aZ, type ScreenRampRendered as a_, type NfcChipReason as aa, type NfcStepView as ab, type OtpChoiceView as ac, type PhoneCountryRule as ad, type PhoneFormat as ae, type PhoneOtpInput as af, type PhoneOtpReason as ag, type PhotoSource as ah, type PhotoSourcePick as ai, type PlanAttempts as aj, type PlanChoiceKind as ak, type PlanChoiceOption as al, type PlanChoiceView as am, type PlanSectionView as an, type PlanStepView as ao, type PopulationInput as ap, type PopulationReason as aq, type PortraitFix as ar, type PortraitFixReviewInput as as, type PortraitIcaoInput as at, type PortraitIcaoReason as au, type PortraitOutputFormat as av, type PresignRequest as aw, type PresignUploadResult as ax, type RecordConsentResult as ay, type ResolvedCaptureMode as az, type CaptureMode as b, ICAO_FALLBACK as b0, type IcaoProfile as b1, type ResolvedIcaoTuning as b2, resolveIcaoTuning as b3, type PersonMask as b4, type BackgroundUniformity as b5, type CaptureNoncesResult as c, type CaptureProof as d, type CheckInputByType as e, type CheckReason as f, type CheckState as g, type CheckType as h, type ClosedBy as i, type CompleteMediaResult as j, type ConsentLocale as k, type ContactChannel as l, type DocDeviceRead as m, type DocOcrInput as n, type DocReason as o, type DocSide as p, type EidAuthInput as q, type EidReason as r, type EmailOtpInput as s, type EmailOtpReason as t, type FaceMatchReason as u, type HostedCaptureTuning as v, type HostedChallengeView as w, type HostedConsentView as x, type HostedDocumentCaptureTuning as y, type HostedDocumentScanTuning as z };
@@ -402,8 +402,11 @@ type CameraUnavailableCause = "denied" | "no_camera";
402
402
  * error's `name` (letters only, at most 40 characters).
403
403
  */
404
404
  interface CaptureIssueReport {
405
- /** The step whose camera failed (`portrait`: the portrait step's own camera, 2026-11-05). */
406
- check: "liveness" | "document" | "portrait";
405
+ /**
406
+ * The step whose camera failed (`portrait`: the portrait step's own camera, 2026-11-05), or `attestation`: the
407
+ * challenge frame produced no token (`kind: 'unavailable'`, the `ChallengeErrorCode` in `engineKind`).
408
+ */
409
+ check: "liveness" | "document" | "portrait" | "attestation";
407
410
  /** The public capture error kind shown, or `unavailable` (the SDK reason then rides in `engineKind`). */
408
411
  kind: "permission" | "notfound" | "inuse" | "insecure" | "unsupported" | "generic" | "unavailable";
409
412
  name?: string;
@@ -1131,6 +1134,13 @@ interface HostedIntegrity {
1131
1134
  appAttest: true;
1132
1135
  };
1133
1136
  }
1137
+ /** `HostedSessionView.challenge`: where the browser obtains its attestation token (spec 2026-11-10 §4.3). */
1138
+ interface HostedChallengeView {
1139
+ /** The challenge frame (`<hosted origin>/challenge`, always the platform host, never a custom domain). */
1140
+ url: string;
1141
+ /** The Turnstile site key the frame renders. */
1142
+ siteKey: string;
1143
+ }
1134
1144
  interface HostedSessionView {
1135
1145
  sessionId: string;
1136
1146
  status: SessionStatus;
@@ -1161,15 +1171,13 @@ interface HostedSessionView {
1161
1171
  */
1162
1172
  sdkOrigin?: string | null;
1163
1173
  /**
1164
- * Cloudflare Turnstile site key the browser must solve an execute-mode
1165
- * challenge against before submitting `liveness` (Plan A Task 5): the org's
1166
- * own widget key when the request origin is one of the org's allowlisted SDK
1167
- * origins, else the hosted widget key; on a Sandbox session always
1168
- * Cloudflare's always-passing test site key, so the same code runs in both
1169
- * environments. `null` only on a Live deployment without Turnstile: the SDK
1170
- * sends no token and the server decides.
1174
+ * The Sekyro challenge frame the browser asks for an attestation token before it submits `liveness` (spec
1175
+ * 2026-11-10 §4.3): the platform's Turnstile widget runs inside a hidden frame at `url`, so the host page needs
1176
+ * only `frame-src <origin of url>`. On a Sandbox session `siteKey` is Cloudflare's always-passing test key, so the
1177
+ * same code runs in both environments. `null` only on a Live deployment without Turnstile: the SDK sends no token
1178
+ * and the server decides.
1171
1179
  */
1172
- turnstileSiteKey: string | null;
1180
+ challenge: HostedChallengeView | null;
1173
1181
  /**
1174
1182
  * A Sandbox (test) session: the hosted page marks it as a test session.
1175
1183
  * Optional: absent on an older backend.
@@ -1476,18 +1484,16 @@ interface CompleteMediaResult {
1476
1484
  }
1477
1485
  /**
1478
1486
  * Liveness attestation bag (attestation-verifier.service.ts). The web SDK sends
1479
- * `{channel: 'hosted_web', siteKey, turnstileToken}` in both environments:
1480
- * `siteKey` echoes the `HostedSessionView.turnstileSiteKey` the challenge was
1481
- * rendered with, so the backend picks the matching widget secret
1482
- * deterministically (Turnstile tokens are single-use: siteverify runs exactly
1483
- * once, never "org then global"). Native SDKs use platform attestation.
1487
+ * `{channel: 'hosted_web', turnstileToken}` in both environments, or
1488
+ * `{channel: 'hosted_web'}` when the challenge produced no token (the server's
1489
+ * attestation rules decide). The token comes from the Sekyro challenge frame
1490
+ * ({@link HostedChallengeView}) and is bound to the session and the page's
1491
+ * origin. Native SDKs use platform attestation.
1484
1492
  */
1485
1493
  interface AttestationInput {
1486
1494
  signature?: string;
1487
1495
  channel?: "hosted_web";
1488
1496
  turnstileToken?: string;
1489
- /** The Turnstile site key the token was minted with (selects the verifying secret). */
1490
- siteKey?: string;
1491
1497
  }
1492
1498
  /**
1493
1499
  * liveness executor input: a promoted `clips/…` key + optional attestation.
@@ -1535,8 +1541,13 @@ interface LivenessCaptureInput {
1535
1541
  cameraReadyMs?: number;
1536
1542
  faceAcquireMs?: number;
1537
1543
  captureMs?: number;
1538
- /** Uploads settled → attestation token in hand (the Turnstile challenge on the web), ms. */
1544
+ /** Uploads settled → attestation token in hand (the challenge frame on the web), ms. */
1539
1545
  attestationMs?: number;
1546
+ /**
1547
+ * Why the web challenge produced no token (a `ChallengeErrorCode`: `challenge_frame_blocked`, `timeout`, ...),
1548
+ * lower case, at most 32 characters. Absent when the token was obtained.
1549
+ */
1550
+ attestationError?: string;
1540
1551
  /** The camera the clip was filmed with (`environment` = back). */
1541
1552
  facingMode?: 'user' | 'environment';
1542
1553
  /**
@@ -1806,4 +1817,4 @@ interface SubmitCheckBody {
1806
1817
  forceOutcome?: "pass" | "fail" | "age_over" | "age_uncertain" | "age_under" | "age_unavailable";
1807
1818
  }
1808
1819
 
1809
- export { type IdentityMethod as $, type AcceptedDocumentType as A, type HostedEidView as B, type CaptureContext as C, type DecisionReason as D, type EidAfterPass as E, type FaceMatchInput as F, type HostedEmailOtpView as G, type HostedAcceptedDocuments as H, type HostedFlowRef as I, type HostedIcaoPolicy as J, type HostedIntegrity as K, type HostedLivePhotoTuning as L, type HostedNativeCaptureTuning as M, type HostedOcrTuning as N, type HostedOtpView as O, type HostedPlanView as P, type HostedPortraitPendingFix as Q, type HostedPortraitView as R, type HostedSessionView as S, type HostedSimulationView as T, type HostedStepView as U, type HostedTesterGateView as V, type HostedVoiceLocale as W, type HostedVoiceView as X, type IcaoCriterion as Y, type IcaoReportEntry as Z, type IdentityConfirmDecision as _, type AttestationInput as a, ICAO_FALLBACK as a$, type IdentitySummarySource as a0, type IdentitySummaryView as a1, type LivenessCaptureInput as a2, type LivenessInput as a3, type LivenessReason as a4, type MatchReason as a5, type MediaKind as a6, type MethodChoiceView as a7, type NationalEidOption as a8, type NfcChipReason as a9, type SessionFailureReason as aA, type SessionReason as aB, type SessionStatus as aC, type SessionStepView as aD, type SessionView as aE, type SimulatedCaptureInput as aF, type StepResult as aG, type StepSection as aH, type SubmitCheckBody as aI, type TesterGateInput as aJ, type TesterGateResponse as aK, type VerificationAssurance as aL, type VerificationLevel as aM, type ScreenRampColour as aN, type AgeEstimationReason as aO, type CameraUnavailableCause as aP, type CaptureIssueReport as aQ, type CaptureProvenance as aR, type HostedBranding as aS, type HostedBrandingColorKey as aT, type HostedLivenessCaptureTuning as aU, type IcaoCaptureTuning as aV, type RetakeHint as aW, type ScreenRampChallenge as aX, type ScreenRampPaint as aY, type ScreenRampRendered as aZ, type ScreenRampReport as a_, type NfcStepView as aa, type OtpChoiceView as ab, type PhoneCountryRule as ac, type PhoneFormat as ad, type PhoneOtpInput as ae, type PhoneOtpReason as af, type PhotoSource as ag, type PhotoSourcePick as ah, type PlanAttempts as ai, type PlanChoiceKind as aj, type PlanChoiceOption as ak, type PlanChoiceView as al, type PlanSectionView as am, type PlanStepView as an, type PopulationInput as ao, type PopulationReason as ap, type PortraitFix as aq, type PortraitFixReviewInput as ar, type PortraitIcaoInput as as, type PortraitIcaoReason as at, type PortraitOutputFormat as au, type PresignRequest as av, type PresignUploadResult as aw, type RecordConsentResult as ax, type ResolvedCaptureMode as ay, type SessionDecidingStep as az, type CaptureMode as b, type IcaoProfile as b0, type ResolvedIcaoTuning as b1, resolveIcaoTuning as b2, type PersonMask as b3, type BackgroundUniformity as b4, type CaptureNoncesResult as c, type CaptureProof as d, type CheckInputByType as e, type CheckReason as f, type CheckState as g, type CheckType as h, type ClosedBy as i, type CompleteMediaResult as j, type ConsentLocale as k, type ContactChannel as l, type DocDeviceRead as m, type DocOcrInput as n, type DocReason as o, type DocSide as p, type EidAuthInput as q, type EidReason as r, type EmailOtpInput as s, type EmailOtpReason as t, type FaceMatchReason as u, type HostedCaptureTuning as v, type HostedConsentView as w, type HostedDocumentCaptureTuning as x, type HostedDocumentScanTuning as y, type HostedDocumentsView as z };
1820
+ export { type IdentityConfirmDecision as $, type AcceptedDocumentType as A, type HostedDocumentsView as B, type CaptureContext as C, type DecisionReason as D, type EidAfterPass as E, type FaceMatchInput as F, type HostedEidView as G, type HostedAcceptedDocuments as H, type HostedEmailOtpView as I, type HostedFlowRef as J, type HostedIcaoPolicy as K, type HostedIntegrity as L, type HostedLivePhotoTuning as M, type HostedNativeCaptureTuning as N, type HostedOcrTuning as O, type HostedOtpView as P, type HostedPlanView as Q, type HostedPortraitPendingFix as R, type HostedPortraitView as S, type HostedSessionView as T, type HostedSimulationView as U, type HostedStepView as V, type HostedTesterGateView as W, type HostedVoiceLocale as X, type HostedVoiceView as Y, type IcaoCriterion as Z, type IcaoReportEntry as _, type AttestationInput as a, type ScreenRampReport as a$, type IdentityMethod as a0, type IdentitySummarySource as a1, type IdentitySummaryView as a2, type LivenessCaptureInput as a3, type LivenessInput as a4, type LivenessReason as a5, type MatchReason as a6, type MediaKind as a7, type MethodChoiceView as a8, type NationalEidOption as a9, type SessionDecidingStep as aA, type SessionFailureReason as aB, type SessionReason as aC, type SessionStatus as aD, type SessionStepView as aE, type SessionView as aF, type SimulatedCaptureInput as aG, type StepResult as aH, type StepSection as aI, type SubmitCheckBody as aJ, type TesterGateInput as aK, type TesterGateResponse as aL, type VerificationAssurance as aM, type VerificationLevel as aN, type ScreenRampColour as aO, type AgeEstimationReason as aP, type CameraUnavailableCause as aQ, type CaptureIssueReport as aR, type CaptureProvenance as aS, type HostedBranding as aT, type HostedBrandingColorKey as aU, type HostedLivenessCaptureTuning as aV, type IcaoCaptureTuning as aW, type RetakeHint as aX, type ScreenRampChallenge as aY, type ScreenRampPaint as aZ, type ScreenRampRendered as a_, type NfcChipReason as aa, type NfcStepView as ab, type OtpChoiceView as ac, type PhoneCountryRule as ad, type PhoneFormat as ae, type PhoneOtpInput as af, type PhoneOtpReason as ag, type PhotoSource as ah, type PhotoSourcePick as ai, type PlanAttempts as aj, type PlanChoiceKind as ak, type PlanChoiceOption as al, type PlanChoiceView as am, type PlanSectionView as an, type PlanStepView as ao, type PopulationInput as ap, type PopulationReason as aq, type PortraitFix as ar, type PortraitFixReviewInput as as, type PortraitIcaoInput as at, type PortraitIcaoReason as au, type PortraitOutputFormat as av, type PresignRequest as aw, type PresignUploadResult as ax, type RecordConsentResult as ay, type ResolvedCaptureMode as az, type CaptureMode as b, ICAO_FALLBACK as b0, type IcaoProfile as b1, type ResolvedIcaoTuning as b2, resolveIcaoTuning as b3, type PersonMask as b4, type BackgroundUniformity as b5, type CaptureNoncesResult as c, type CaptureProof as d, type CheckInputByType as e, type CheckReason as f, type CheckState as g, type CheckType as h, type ClosedBy as i, type CompleteMediaResult as j, type ConsentLocale as k, type ContactChannel as l, type DocDeviceRead as m, type DocOcrInput as n, type DocReason as o, type DocSide as p, type EidAuthInput as q, type EidReason as r, type EmailOtpInput as s, type EmailOtpReason as t, type FaceMatchReason as u, type HostedCaptureTuning as v, type HostedChallengeView as w, type HostedConsentView as x, type HostedDocumentCaptureTuning as y, type HostedDocumentScanTuning as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sekyro/web",
3
- "version": "0.1.0-rc.24",
3
+ "version": "0.1.0-rc.25",
4
4
  "description": "Sekyro AI web SDK \u2014 browser liveness capture, hosted-verification client and popup embed for Sekyro AI identity verification",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {