@ahmed_hani/dot-face-auto-capture 7.7.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,34 @@
1
+ import type { CallbackImage, ObjectValues } from '../../../ui-common/src/types/common';
2
+ export declare const CameraFacingMode: {
3
+ readonly FRONT: "user";
4
+ readonly BACK: "environment";
5
+ };
6
+ export type CameraFacingModeValues = ObjectValues<typeof CameraFacingMode>;
7
+ export declare const CaptureMode: {
8
+ readonly AUTO_CAPTURE: "AUTO_CAPTURE";
9
+ readonly WAIT_FOR_REQUEST: "WAIT_FOR_REQUEST";
10
+ };
11
+ export type CaptureModeValues = ObjectValues<typeof CaptureMode>;
12
+ export type CameraConfiguration = {
13
+ facingMode?: CameraFacingModeValues;
14
+ isVideoCaptureEnabled?: boolean;
15
+ };
16
+ export type CommonConfiguration = {
17
+ assetsDirectoryPath?: string;
18
+ captureMode?: CaptureModeValues;
19
+ sessionToken?: string;
20
+ styleTarget?: HTMLElement;
21
+ transactionCountingToken?: string;
22
+ };
23
+ export type CallbackConfiguration<TDetectedObject> = {
24
+ onComplete: (imageData: CallbackImage<TDetectedObject>, content: Uint8Array) => void;
25
+ onError: (e: Error) => void;
26
+ };
27
+ export type AutoCaptureConfiguration = {
28
+ candidateSelectionDurationMillis?: number;
29
+ };
30
+ export type BaseConfiguration<TDetectedObject, TQualityAttributeThresholds> = CommonConfiguration & CallbackConfiguration<TDetectedObject> & {
31
+ autoCapture?: AutoCaptureConfiguration;
32
+ camera?: CameraConfiguration;
33
+ qualityAttributeThresholds?: TQualityAttributeThresholds;
34
+ };
@@ -1,4 +1,6 @@
1
- import type { BaseCameraProps, CustomElement, DetectedFace, Resolution } from '../../../ui-common/src/types';
1
+ import type { BaseConfiguration } from './configuration';
2
+ import type { CallbackImage, CustomElement, MaxInterval, MinInterval, MinOrMaxInterval, Resolution } from '../../../ui-common/src/types';
3
+ import type { DetectedFace } from '../../../ui-common/src/types/modality/detection/face';
2
4
  export * from '../../../ui-common/src/types/common';
3
5
  export * from '../../../ui-common/src/types/face';
4
6
  export * from '../../../ui-common/src/error';
@@ -9,30 +11,30 @@ declare global {
9
11
  namespace preact.JSX {
10
12
  interface IntrinsicElements {
11
13
  'x-dot-face-auto-capture': CustomElement<{
12
- cameraOptions: FaceCameraProps;
14
+ configuration: FaceConfiguration;
13
15
  }>;
14
16
  }
15
17
  }
16
18
  namespace React.JSX {
17
19
  interface IntrinsicElements {
18
20
  'x-dot-face-auto-capture': CustomElement<{
19
- cameraOptions: FaceCameraProps;
21
+ configuration: FaceConfiguration;
20
22
  }>;
21
23
  }
22
24
  }
23
25
  }
24
26
  export type HTMLFaceCaptureElement = HTMLElement & {
25
- cameraOptions: FaceCameraProps;
27
+ configuration: FaceConfiguration;
26
28
  };
27
29
  export type FaceComponentData = {
28
30
  detection: DetectedFace;
29
31
  imageResolution: Resolution;
30
32
  };
31
33
  export type EyeThresholds = {
32
- confidence: number;
34
+ confidence: MinInterval;
33
35
  };
34
36
  export type MouthThresholds = {
35
- confidence: number;
37
+ confidence: MinInterval;
36
38
  status: {
37
39
  max: number;
38
40
  min?: number;
@@ -42,20 +44,17 @@ export type MouthThresholds = {
42
44
  };
43
45
  };
44
46
  export type FaceThresholds = {
45
- brightnessHighThreshold?: number;
46
- brightnessLowThreshold?: number;
47
- devicePitchAngleThreshold?: number;
48
- faceConfidence?: number;
47
+ brightness?: MinOrMaxInterval;
48
+ confidence?: MinInterval;
49
+ devicePitchAngle?: MaxInterval;
50
+ edgeDistanceToImageShorterSideRatio?: MinInterval;
49
51
  leftEye?: EyeThresholds;
50
- maxFaceSizeRatio?: number;
51
- minFaceSizeRatio?: number;
52
52
  mouth?: MouthThresholds;
53
- outOfBoundsThreshold?: number;
54
53
  rightEye?: EyeThresholds;
55
- sharpnessThreshold?: number;
54
+ sharpness?: MinInterval;
55
+ size?: MinOrMaxInterval;
56
56
  };
57
57
  export type PublicFaceThresholds = Omit<FaceThresholds, 'leftEye' | 'rightEye' | 'mouth'>;
58
- export type FaceCameraProps<T extends Record<string, unknown> = PublicFaceThresholds> = BaseCameraProps<DetectedFace> & {
59
- thresholds?: T;
60
- };
61
- export type FaceCallback = FaceCameraProps['onPhotoTaken'];
58
+ export type FaceConfiguration<T = PublicFaceThresholds> = BaseConfiguration<DetectedFace, T>;
59
+ export type FaceOnCompleteCallbackImage = CallbackImage<DetectedFace>;
60
+ export type FaceOnCompleteCallback = FaceConfiguration['onComplete'];
package/events.mjs CHANGED
@@ -1,51 +1,44 @@
1
- const T = {};
2
- T.CONTINUE_DETECTION = "continue-detection", T.SWITCH_CAMERA = "switch-camera", T.TOGGLE_MIRROR = "toggle-mirror";
3
- const H = T, _ = {};
4
- _.FIRST_FRAME = "first-frame", _.FIRST_VALID_FRAME = "first-valid-frame";
5
- const l = _, O = {};
6
- O.REQUEST_CAPTURE = "dot-custom-event:request-capture";
7
- const R = O;
8
- var A = ((t) => (t.CAMERA_PROPS_CHANGED = "document-auto-capture:camera-props-changed", t.CONTROL = "document-auto-capture:control", t.DETECTED_DOCUMENT_CHANGED = "document-auto-capture:detected-document-changed", t.DOCUMENT_DETECTION = "document-auto-capture:document-detection", t.INSTRUCTION_CHANGED = "document-auto-capture:instruction-changed", t.INSTRUCTION_ESCALATED = "document-auto-capture:instruction-escalated", t.STATE_CHANGED = "document-auto-capture:state-changed", t.VIDEO_ELEMENT_SIZE = "document-auto-capture:video-element-size", t))(A || {}), S = ((t) => (t.CAMERA_PROPS_CHANGED = "face-auto-capture:camera-props-changed", t.CONTROL = "face-auto-capture:control", t.DETECTED_FACE_CHANGED = "face-auto-capture:detected-face-changed", t.FACE_DETECTION = "face-auto-capture:face-detection", t.INSTRUCTION_CHANGED = "face-auto-capture:instruction-changed", t.STATE_CHANGED = "face-auto-capture:state-changed", t.VIDEO_ELEMENT_SIZE = "face-auto-capture:video-element-size", t))(S || {}), d = ((t) => (t.ANIMATION_END = "magnifeye-auto-capture:animation-end", t.CONTROL = "magnifeye-auto-capture:control", t.STATUS_CHANGED = "magnifeye-auto-capture:status-changed", t))(d || {}), p = ((t) => (t.CONTROL = "smile-auto-capture:control", t.INSTRUCTION_ESCALATED = "smile:instruction-escalated", t.STATUS_CHANGED = "smile-auto-capture:status-changed", t))(p || {}), I = ((t) => (t.CAMERA_PROPS_CHANGED = "palm-capture:camera-props-changed", t.CONTROL = "palm-capture:control", t.DETECTED_PALM_CHANGED = "palm-capture:detected-palm-changed", t.INSTRUCTION_CHANGED = "palm-capture:instruction-changed", t.STATE_CHANGED = "palm-capture:state-changed", t.VIDEO_ELEMENT_SIZE = "palm-capture:video-element-size", t))(I || {}), m = ((t) => (t.CONTROL = "eye-gaze-auto-capture:control", t.STATUS_CHANGED = "eye-gaze-auto-capture:status-changed", t))(m || {});
9
- const N = (t, n) => {
10
- const c = {};
11
- c.detail = n, document.dispatchEvent(new CustomEvent(t, c));
12
- }, G = (t, n) => {
13
- const c = {};
14
- c.instruction = n, N(t, c);
1
+ const s = {};
2
+ s.CONTINUE_DETECTION = "continue-detection", s.SWITCH_CAMERA = "switch-camera", s.TOGGLE_MIRROR = "toggle-mirror";
3
+ const I = s, T = {};
4
+ T.FIRST_FRAME = "first-frame", T.FIRST_VALID_FRAME = "first-valid-frame";
5
+ const A = T, a = {};
6
+ a.REQUEST_CAPTURE = "dot-custom-event:request-capture";
7
+ const C = a, i = (e, n) => {
8
+ const _ = {};
9
+ _.detail = n, document.dispatchEvent(new CustomEvent(e, _));
10
+ }, h = (e, n) => {
11
+ const _ = {};
12
+ _.instruction = n, i(e, _);
15
13
  };
16
- function g(t) {
14
+ function H(e) {
17
15
  const n = {};
18
- n.instruction = t;
19
- const c = n;
20
- N(R.REQUEST_CAPTURE, c);
16
+ n.instruction = e;
17
+ const _ = n;
18
+ i(C.REQUEST_CAPTURE, _);
21
19
  }
22
- const s = {};
23
- s.FRONT = "user", s.REAR = "environment";
24
- const P = s, u = {};
25
- u.AUTO_CAPTURE = "AUTO_CAPTURE", u.WAIT_FOR_REQUEST = "WAIT_FOR_REQUEST";
26
- const L = u, a = {};
27
- a.LOADING = "LOADING", a.ERROR = "ERROR", a.WAITING = "WAITING", a.RUNNING = "RUNNING", a.COMPLETE = "COMPLETE";
28
- const D = a, C = { ...D };
29
- C.DONE = "DONE";
30
- const M = C, i = {};
31
- i.EYE_NOT_PRESENT = "eye_not_present";
32
- const r = i, e = {};
33
- e.CANDIDATE_SELECTION = "candidate_selection", e.FACE_TOO_CLOSE = "face_too_close", e.FACE_TOO_FAR = "face_too_far", e.FACE_CENTERING = "face_centering", e.FACE_NOT_PRESENT = "face_not_present", e.SHARPNESS_TOO_LOW = "sharpness_too_low", e.BRIGHTNESS_TOO_LOW = "brightness_too_low", e.BRIGHTNESS_TOO_HIGH = "brightness_too_high", e.DEVICE_PITCHED = "device_pitched", e.LEFT_EYE_NOT_PRESENT = "left_" + r.EYE_NOT_PRESENT, e.RIGHT_EYE_NOT_PRESENT = "right_" + r.EYE_NOT_PRESENT, e.MOUTH_NOT_PRESENT = "mouth_not_present", e.MOUTH_SCORE_TOO_HIGH = "mouth_score_too_high", e.MOUTH_SCORE_TOO_LOW = "mouth_score_too_low";
34
- const o = e, E = {};
35
- E.isPresent = o.FACE_NOT_PRESENT, E.isNotPitched = o.DEVICE_PITCHED, E.isNotSmall = o.FACE_TOO_FAR, E.isNotLarge = o.FACE_TOO_CLOSE, E.isNotOutOfBounds = o.FACE_CENTERING, E.isNotDim = o.BRIGHTNESS_TOO_LOW, E.isNotBright = o.BRIGHTNESS_TOO_HIGH, E.isSharp = o.SHARPNESS_TOO_LOW, E.isLeftEyePresent = o.LEFT_EYE_NOT_PRESENT, E.isRightEyePresent = o.RIGHT_EYE_NOT_PRESENT, E.isMouthPresent = o.MOUTH_NOT_PRESENT, E.isMouthScoreNotTooHigh = o.MOUTH_SCORE_TOO_HIGH, E.isMouthScoreNotTooLow = o.MOUTH_SCORE_TOO_LOW;
36
- const U = E;
20
+ const c = {};
21
+ c.LOADING = "loading", c.ERROR = "error", c.WAITING = "waiting", c.RUNNING = "running", c.COMPLETE = "complete";
22
+ const u = c, N = { ...u };
23
+ N.DONE = "done";
24
+ const f = N, r = {};
25
+ r.EYE_NOT_PRESENT = "eye_not_present";
26
+ const O = r, t = {};
27
+ t.CANDIDATE_SELECTION = "candidate_selection", t.FACE_TOO_CLOSE = "face_too_close", t.FACE_TOO_FAR = "face_too_far", t.FACE_CENTERING = "face_centering", t.FACE_NOT_PRESENT = "face_not_present", t.SHARPNESS_TOO_LOW = "sharpness_too_low", t.BRIGHTNESS_TOO_LOW = "brightness_too_low", t.BRIGHTNESS_TOO_HIGH = "brightness_too_high", t.DEVICE_PITCHED = "device_pitched", t.LEFT_EYE_NOT_PRESENT = "left_" + O.EYE_NOT_PRESENT, t.RIGHT_EYE_NOT_PRESENT = "right_" + O.EYE_NOT_PRESENT, t.MOUTH_NOT_PRESENT = "mouth_not_present", t.MOUTH_SCORE_TOO_HIGH = "mouth_score_too_high", t.MOUTH_SCORE_TOO_LOW = "mouth_score_too_low";
28
+ const E = t, o = {};
29
+ o.isPresent = E.FACE_NOT_PRESENT, o.isNotPitched = E.DEVICE_PITCHED, o.isNotSmall = E.FACE_TOO_FAR, o.isNotLarge = E.FACE_TOO_CLOSE, o.isNotOutOfBounds = E.FACE_CENTERING, o.isNotDim = E.BRIGHTNESS_TOO_LOW, o.isNotBright = E.BRIGHTNESS_TOO_HIGH, o.isSharp = E.SHARPNESS_TOO_LOW, o.isLeftEyePresent = E.LEFT_EYE_NOT_PRESENT, o.isRightEyePresent = E.RIGHT_EYE_NOT_PRESENT, o.isMouthPresent = E.MOUTH_NOT_PRESENT, o.isMouthScoreNotTooHigh = E.MOUTH_SCORE_TOO_HIGH, o.isMouthScoreNotTooLow = E.MOUTH_SCORE_TOO_LOW;
30
+ const p = o;
31
+ var R = ((e) => (e.CAMERA_PROPS_CHANGED = "face-auto-capture:camera-props-changed", e.CONTROL = "face-auto-capture:control", e.DETECTION_CHANGED = "face-auto-capture:detection-changed", e.FACE_DETECTION = "face-auto-capture:face-detection", e.INSTRUCTION_CHANGED = "face-auto-capture:instruction-changed", e.STATE_CHANGED = "face-auto-capture:state-changed", e.VIDEO_ELEMENT_SIZE = "face-auto-capture:video-element-size", e))(R || {});
37
32
  export {
38
- D as AppStateValues,
39
- L as CaptureMode,
40
- R as ComponentCustomEvent,
41
- H as ControlEventInstruction,
42
- r as EyeInstructionCodeValues,
43
- U as FaceCheckToInstructionCodeMap,
44
- S as FaceCustomEvent,
45
- o as FaceInstructionCodeValues,
46
- P as FacingMode,
47
- M as LivenessStateValues,
48
- l as RequestCaptureInstruction,
49
- g as dispatchCaptureEvent,
50
- G as dispatchControlEvent
33
+ u as AppStateValues,
34
+ C as ComponentCustomEvent,
35
+ I as ControlEventInstruction,
36
+ O as EyeInstructionCodeValues,
37
+ p as FaceCheckToInstructionCodeMap,
38
+ R as FaceCustomEvent,
39
+ E as FaceInstructionCodeValues,
40
+ f as LivenessStateValues,
41
+ A as RequestCaptureInstruction,
42
+ H as dispatchCaptureEvent,
43
+ h as dispatchControlEvent
51
44
  };
package/events.umd.js CHANGED
@@ -1 +1 @@
1
- (function(e,c){typeof exports=="object"&&typeof module<"u"?c(exports):typeof define=="function"&&define.amd?define(["exports"],c):(e=typeof globalThis<"u"?globalThis:e||self,c(e["@innovatrics/dot-events-auto-capture"]={}))})(this,function(e){"use strict";const c={};c.CONTINUE_DETECTION="continue-detection",c.SWITCH_CAMERA="switch-camera",c.TOGGLE_MIRROR="toggle-mirror";const I=c,s={};s.FIRST_FRAME="first-frame",s.FIRST_VALID_FRAME="first-valid-frame";const p=s,O={};O.REQUEST_CAPTURE="dot-custom-event:request-capture";const C=O;var m=(t=>(t.CAMERA_PROPS_CHANGED="document-auto-capture:camera-props-changed",t.CONTROL="document-auto-capture:control",t.DETECTED_DOCUMENT_CHANGED="document-auto-capture:detected-document-changed",t.DOCUMENT_DETECTION="document-auto-capture:document-detection",t.INSTRUCTION_CHANGED="document-auto-capture:instruction-changed",t.INSTRUCTION_ESCALATED="document-auto-capture:instruction-escalated",t.STATE_CHANGED="document-auto-capture:state-changed",t.VIDEO_ELEMENT_SIZE="document-auto-capture:video-element-size",t))(m||{}),N=(t=>(t.CAMERA_PROPS_CHANGED="face-auto-capture:camera-props-changed",t.CONTROL="face-auto-capture:control",t.DETECTED_FACE_CHANGED="face-auto-capture:detected-face-changed",t.FACE_DETECTION="face-auto-capture:face-detection",t.INSTRUCTION_CHANGED="face-auto-capture:instruction-changed",t.STATE_CHANGED="face-auto-capture:state-changed",t.VIDEO_ELEMENT_SIZE="face-auto-capture:video-element-size",t))(N||{}),l=(t=>(t.ANIMATION_END="magnifeye-auto-capture:animation-end",t.CONTROL="magnifeye-auto-capture:control",t.STATUS_CHANGED="magnifeye-auto-capture:status-changed",t))(l||{}),h=(t=>(t.CONTROL="smile-auto-capture:control",t.INSTRUCTION_ESCALATED="smile:instruction-escalated",t.STATUS_CHANGED="smile-auto-capture:status-changed",t))(h||{}),D=(t=>(t.CAMERA_PROPS_CHANGED="palm-capture:camera-props-changed",t.CONTROL="palm-capture:control",t.DETECTED_PALM_CHANGED="palm-capture:detected-palm-changed",t.INSTRUCTION_CHANGED="palm-capture:instruction-changed",t.STATE_CHANGED="palm-capture:state-changed",t.VIDEO_ELEMENT_SIZE="palm-capture:video-element-size",t))(D||{}),H=(t=>(t.CONTROL="eye-gaze-auto-capture:control",t.STATUS_CHANGED="eye-gaze-auto-capture:status-changed",t))(H||{});const d=(t,T)=>{const a={};a.detail=T,document.dispatchEvent(new CustomEvent(t,a))},g=(t,T)=>{const a={};a.instruction=T,d(t,a)};function v(t){const T={};T.instruction=t;const a=T;d(C.REQUEST_CAPTURE,a)}const _={};_.FRONT="user",_.REAR="environment";const G=_,r={};r.AUTO_CAPTURE="AUTO_CAPTURE",r.WAIT_FOR_REQUEST="WAIT_FOR_REQUEST";const f=r,u={};u.LOADING="LOADING",u.ERROR="ERROR",u.WAITING="WAITING",u.RUNNING="RUNNING",u.COMPLETE="COMPLETE";const R=u,S={...R};S.DONE="DONE";const P=S,A={};A.EYE_NOT_PRESENT="eye_not_present";const i=A,o={};o.CANDIDATE_SELECTION="candidate_selection",o.FACE_TOO_CLOSE="face_too_close",o.FACE_TOO_FAR="face_too_far",o.FACE_CENTERING="face_centering",o.FACE_NOT_PRESENT="face_not_present",o.SHARPNESS_TOO_LOW="sharpness_too_low",o.BRIGHTNESS_TOO_LOW="brightness_too_low",o.BRIGHTNESS_TOO_HIGH="brightness_too_high",o.DEVICE_PITCHED="device_pitched",o.LEFT_EYE_NOT_PRESENT="left_"+i.EYE_NOT_PRESENT,o.RIGHT_EYE_NOT_PRESENT="right_"+i.EYE_NOT_PRESENT,o.MOUTH_NOT_PRESENT="mouth_not_present",o.MOUTH_SCORE_TOO_HIGH="mouth_score_too_high",o.MOUTH_SCORE_TOO_LOW="mouth_score_too_low";const n=o,E={};E.isPresent=n.FACE_NOT_PRESENT,E.isNotPitched=n.DEVICE_PITCHED,E.isNotSmall=n.FACE_TOO_FAR,E.isNotLarge=n.FACE_TOO_CLOSE,E.isNotOutOfBounds=n.FACE_CENTERING,E.isNotDim=n.BRIGHTNESS_TOO_LOW,E.isNotBright=n.BRIGHTNESS_TOO_HIGH,E.isSharp=n.SHARPNESS_TOO_LOW,E.isLeftEyePresent=n.LEFT_EYE_NOT_PRESENT,E.isRightEyePresent=n.RIGHT_EYE_NOT_PRESENT,E.isMouthPresent=n.MOUTH_NOT_PRESENT,E.isMouthScoreNotTooHigh=n.MOUTH_SCORE_TOO_HIGH,E.isMouthScoreNotTooLow=n.MOUTH_SCORE_TOO_LOW;const L=E;e.AppStateValues=R,e.CaptureMode=f,e.ComponentCustomEvent=C,e.ControlEventInstruction=I,e.EyeInstructionCodeValues=i,e.FaceCheckToInstructionCodeMap=L,e.FaceCustomEvent=N,e.FaceInstructionCodeValues=n,e.FacingMode=G,e.LivenessStateValues=P,e.RequestCaptureInstruction=p,e.dispatchCaptureEvent=v,e.dispatchControlEvent=g,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
1
+ (function(t,_){typeof exports=="object"&&typeof module<"u"?_(exports):typeof define=="function"&&define.amd?define(["exports"],_):(t=typeof globalThis<"u"?globalThis:t||self,_(t["@innovatrics/dot-events-auto-capture"]={}))})(this,function(t){"use strict";const _={};_.CONTINUE_DETECTION="continue-detection",_.SWITCH_CAMERA="switch-camera",_.TOGGLE_MIRROR="toggle-mirror";const I=_,T={};T.FIRST_FRAME="first-frame",T.FIRST_VALID_FRAME="first-valid-frame";const d=T,O={};O.REQUEST_CAPTURE="dot-custom-event:request-capture";const u=O,r=(E,a)=>{const c={};c.detail=a,document.dispatchEvent(new CustomEvent(E,c))},f=(E,a)=>{const c={};c.instruction=a,r(E,c)};function h(E){const a={};a.instruction=E;const c=a;r(u.REQUEST_CAPTURE,c)}const s={};s.LOADING="loading",s.ERROR="error",s.WAITING="waiting",s.RUNNING="running",s.COMPLETE="complete";const C=s,N={...C};N.DONE="done";const p=N,S={};S.EYE_NOT_PRESENT="eye_not_present";const i=S,e={};e.CANDIDATE_SELECTION="candidate_selection",e.FACE_TOO_CLOSE="face_too_close",e.FACE_TOO_FAR="face_too_far",e.FACE_CENTERING="face_centering",e.FACE_NOT_PRESENT="face_not_present",e.SHARPNESS_TOO_LOW="sharpness_too_low",e.BRIGHTNESS_TOO_LOW="brightness_too_low",e.BRIGHTNESS_TOO_HIGH="brightness_too_high",e.DEVICE_PITCHED="device_pitched",e.LEFT_EYE_NOT_PRESENT="left_"+i.EYE_NOT_PRESENT,e.RIGHT_EYE_NOT_PRESENT="right_"+i.EYE_NOT_PRESENT,e.MOUTH_NOT_PRESENT="mouth_not_present",e.MOUTH_SCORE_TOO_HIGH="mouth_score_too_high",e.MOUTH_SCORE_TOO_LOW="mouth_score_too_low";const o=e,n={};n.isPresent=o.FACE_NOT_PRESENT,n.isNotPitched=o.DEVICE_PITCHED,n.isNotSmall=o.FACE_TOO_FAR,n.isNotLarge=o.FACE_TOO_CLOSE,n.isNotOutOfBounds=o.FACE_CENTERING,n.isNotDim=o.BRIGHTNESS_TOO_LOW,n.isNotBright=o.BRIGHTNESS_TOO_HIGH,n.isSharp=o.SHARPNESS_TOO_LOW,n.isLeftEyePresent=o.LEFT_EYE_NOT_PRESENT,n.isRightEyePresent=o.RIGHT_EYE_NOT_PRESENT,n.isMouthPresent=o.MOUTH_NOT_PRESENT,n.isMouthScoreNotTooHigh=o.MOUTH_SCORE_TOO_HIGH,n.isMouthScoreNotTooLow=o.MOUTH_SCORE_TOO_LOW;const A=n;var R=(E=>(E.CAMERA_PROPS_CHANGED="face-auto-capture:camera-props-changed",E.CONTROL="face-auto-capture:control",E.DETECTION_CHANGED="face-auto-capture:detection-changed",E.FACE_DETECTION="face-auto-capture:face-detection",E.INSTRUCTION_CHANGED="face-auto-capture:instruction-changed",E.STATE_CHANGED="face-auto-capture:state-changed",E.VIDEO_ELEMENT_SIZE="face-auto-capture:video-element-size",E))(R||{});t.AppStateValues=C,t.ComponentCustomEvent=u,t.ControlEventInstruction=I,t.EyeInstructionCodeValues=i,t.FaceCheckToInstructionCodeMap=A,t.FaceCustomEvent=R,t.FaceInstructionCodeValues=o,t.LivenessStateValues=p,t.RequestCaptureInstruction=d,t.dispatchCaptureEvent=h,t.dispatchControlEvent=f,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});