youverify-liveness-web 1.1.2 → 1.1.4
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.
- package/dist/index.js +155 -140
- package/dist/index.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.yvlw-absolute{position:absolute}.yvlw-m-0{margin:0}.yvlw-mx-auto{margin-left:auto;margin-right:auto}.yvlw-mb-12{margin-bottom:3rem}.yvlw-mt-12{margin-top:3rem}.yvlw-flex{display:flex}.yvlw-hidden{display:none}.yvlw-h-10{height:2.5rem}.yvlw-h-20{height:5rem}.yvlw-h-4{height:1rem}.yvlw-h-5{height:1.25rem}.yvlw-h-6{height:1.5rem}.yvlw-h-7{height:1.75rem}.yvlw-h-full{height:100%}.yvlw-w-10{width:2.5rem}.yvlw-w-4{width:1rem}.yvlw-w-5{width:1.25rem}.yvlw-w-7{width:1.75rem}.yvlw-w-full{width:100%}.yvlw-flex-1{flex:1 1 0%}.yvlw--translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.yvlw--translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.yvlw-translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.yvlw-translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.yvlw-translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.yvlw-translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.yvlw-scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.yvlw-scale-125{--tw-scale-x: 1.25;--tw-scale-y: 1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.yvlw-scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.yvlw-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.yvlw-flex-col{flex-direction:column}.yvlw-items-center{align-items:center}.yvlw-justify-center{justify-content:center}.yvlw-gap-1{gap:.25rem}.yvlw-space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.yvlw-space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.yvlw-rounded{border-radius:.25rem}.yvlw-border{border-width:1px}.yvlw-border-t{border-top-width:1px}.yvlw-border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.yvlw-border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.yvlw-bg-black\\/20{background-color:#0003}.yvlw-p-0{padding:0}.yvlw-px-3{padding-left:.75rem;padding-right:.75rem}.yvlw-px-4{padding-left:1rem;padding-right:1rem}.yvlw-py-2{padding-top:.5rem;padding-bottom:.5rem}.yvlw-pb-6{padding-bottom:1.5rem}.yvlw-pt-4{padding-top:1rem}.yvlw-text-center{text-align:center}.yvlw-text-sm{font-size:.875rem;line-height:1.25rem}.yvlw-text-xs{font-size:.75rem;line-height:1rem}.yvlw-text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.yvlw-opacity-0{opacity:0}.yvlw-opacity-100{opacity:1}.yvlw-transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.yvlw-duration-200{transition-duration:.2s}.yvlw-duration-300{transition-duration:.3s}.yvlw-ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.subtext{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.subtext:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}.divider{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.divider:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.dark\\:yvlw-block:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){display:block}.dark\\:yvlw-hidden:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){display:none}.dark\\:yvlw-border-gray-700:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.dark\\:yvlw-border-gray-800:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}._root_1duny_1{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:DM Sans,sans-serif;position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;min-height:100vh;min-height:-webkit-fill-available;align-items:center;justify-content:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s;transition-timing-function:cubic-bezier(0,0,.2,1)}._root_1duny_1[data-closed]{opacity:0}._root_1duny_1._modal_1duny_10{background-color:#0000004d}@media (min-width: 768px){._root_1duny_1._modal_1duny_10{padding:1rem}._root_1duny_1._modal_1duny_10 ._container_1duny_13{border-radius:.75rem}}._root_1duny_1._modal_1duny_10 ._container_1duny_13{max-width:1500px;max-height:700px}@media (min-width: 768px){._root_1duny_1._page_1duny_18{padding:0}}._root_1duny_1 ._close_1duny_21{position:absolute;top:.5rem;left:.5rem;display:flex;align-items:center;justify-content:center;z-index:20;height:1.5rem;width:1.5rem;border-radius:9999px;background-color:#00000080}._root_1duny_1 ._close_1duny_21 svg{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}._root_1duny_1 ._close_1duny_21 svg:hover{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}._root_1duny_1 ._container_1duny_13{height:100%;width:100%;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}._root_1duny_1 ._container_1duny_13:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_1h6qm_1 *,._root_1h6qm_1 :before,._root_1h6qm_1 :after{box-sizing:border-box;border-width:0;border-style:solid}._root_1h6qm_1 :before,._root_1h6qm_1 :after{--tw-content: ""}._root_1h6qm_1 html,._root_1h6qm_1 :host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";-webkit-tap-highlight-color:transparent}._root_1h6qm_1 body{margin:0;line-height:inherit}._root_1h6qm_1 hr{height:0;color:inherit;border-top-width:1px}._root_1h6qm_1 abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}._root_1h6qm_1 h1,._root_1h6qm_1 h2,._root_1h6qm_1 h3,._root_1h6qm_1 h4,._root_1h6qm_1 h5,._root_1h6qm_1 h6{font-size:inherit;font-weight:inherit}._root_1h6qm_1 a{color:inherit;text-decoration:inherit}._root_1h6qm_1 b,._root_1h6qm_1 strong{font-weight:bolder}._root_1h6qm_1 code,._root_1h6qm_1 kbd,._root_1h6qm_1 samp,._root_1h6qm_1 pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}._root_1h6qm_1 small{font-size:80%}._root_1h6qm_1 sub,._root_1h6qm_1 sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}._root_1h6qm_1 sub{bottom:-.25em}._root_1h6qm_1 sup{top:-.5em}._root_1h6qm_1 table{text-indent:0;border-color:inherit;border-collapse:collapse}._root_1h6qm_1 button,._root_1h6qm_1 input,._root_1h6qm_1 optgroup,._root_1h6qm_1 select,._root_1h6qm_1 textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}._root_1h6qm_1 button,._root_1h6qm_1 select{text-transform:none}._root_1h6qm_1 button,._root_1h6qm_1 input:where([type=button]),._root_1h6qm_1 input:where([type=reset]),._root_1h6qm_1 input:where([type=submit]){-moz-appearance:button;appearance:button;-webkit-appearance:button;background-color:transparent;background-image:none}._root_1h6qm_1 :-moz-focusring{outline:auto}._root_1h6qm_1 :-moz-ui-invalid{box-shadow:none}._root_1h6qm_1 progress{vertical-align:baseline}._root_1h6qm_1 ::-webkit-inner-spin-button,._root_1h6qm_1 ::-webkit-outer-spin-button{height:auto}._root_1h6qm_1 [type=search]{-moz-appearance:textfield;appearance:textfield;-webkit-appearance:textfield;outline-offset:-2px}._root_1h6qm_1 ::-webkit-search-decoration{-webkit-appearance:none}._root_1h6qm_1 ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}._root_1h6qm_1 summary{display:list-item}._root_1h6qm_1 blockquote,._root_1h6qm_1 dl,._root_1h6qm_1 dd,._root_1h6qm_1 h1,._root_1h6qm_1 h2,._root_1h6qm_1 h3,._root_1h6qm_1 h4,._root_1h6qm_1 h5,._root_1h6qm_1 h6,._root_1h6qm_1 hr,._root_1h6qm_1 figure,._root_1h6qm_1 p,._root_1h6qm_1 pre{margin:0}._root_1h6qm_1 fieldset{margin:0;padding:0}._root_1h6qm_1 legend{padding:0}._root_1h6qm_1 ol,._root_1h6qm_1 ul,._root_1h6qm_1 menu{list-style:none;margin:0;padding:0}._root_1h6qm_1 dialog{padding:0}._root_1h6qm_1 textarea{resize:vertical}._root_1h6qm_1 input::-moz-placeholder,._root_1h6qm_1 textarea::-moz-placeholder{opacity:1;color:#9ca3af}._root_1h6qm_1 input::placeholder,._root_1h6qm_1 textarea::placeholder{opacity:1;color:#9ca3af}._root_1h6qm_1 button,._root_1h6qm_1 [role=button]{cursor:pointer}._root_1h6qm_1 :disabled{cursor:default}._root_1h6qm_1 img,._root_1h6qm_1 svg,._root_1h6qm_1 video,._root_1h6qm_1 canvas,._root_1h6qm_1 audio,._root_1h6qm_1 iframe,._root_1h6qm_1 embed,._root_1h6qm_1 object{display:block}._root_1h6qm_1 [hidden]{display:none}._root_vqy7d_1{height:100%}._root_vqy7d_1 ._container_vqy7d_4{display:flex;height:100%}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7{display:none;width:20%;flex-direction:column;justify-content:space-between}@media (min-width: 1280px){._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7{display:flex}}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7{padding-top:.75rem;padding-bottom:.75rem}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11{padding-left:1.5rem;padding-right:1.5rem}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol{position:relative;margin:0;list-style-type:none;padding:0}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li{counter-increment:item;margin-bottom:24px;position:relative;font-size:.875rem;line-height:1.25rem;display:flex;align-items:center}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:before{width:28px;height:28px;border-radius:9999px;border-width:2px;--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *):before{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:before{margin-right:1rem;display:flex;align-items:center;justify-content:center;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *):before{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:before{content:counter(item);flex-shrink:0}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._active_vqy7d_32{font-weight:500}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._active_vqy7d_32:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._active_vqy7d_32:before{background-color:var(--branding-color);border-style:none;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._completed_vqy7d_39{font-weight:500;text-decoration-line:line-through}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._completed_vqy7d_39:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._completed_vqy7d_39:before{background-color:var(--branding-color);border-style:none;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:after{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *):after{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:after{top:28px;bottom:-24px;left:14px;content:"";position:absolute;width:1px}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:last-child:after{content:none}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 footer{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1.5rem}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62{display:none;width:20%}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62{padding-top:.75rem;padding-bottom:.75rem}@media (min-width: 1280px){._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62{display:block}}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65{display:flex;align-items:center;gap:.5rem;padding:1rem 1.5rem}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 ._avatar_vqy7d_68{height:2.5rem;width:2.5rem;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 ._avatar_vqy7d_68:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 ._avatar_vqy7d_68{display:flex;align-items:center;justify-content:center;font-size:1.125rem;line-height:1.75rem;font-weight:500}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 h4{margin-bottom:-.25rem;text-overflow:ellipsis;font-weight:600;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 h4:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 p{margin-top:0;margin-bottom:0;font-size:.75rem;line-height:1rem}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 footer>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 footer{padding-left:1.5rem;padding-right:1.5rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81{flex:1 1 0%}@media (min-width: 768px){._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81{padding-top:1rem;padding-bottom:1rem}}._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81 ._content_vqy7d_84{margin-left:auto;margin-right:auto;height:100%;width:100%;overflow:hidden;border-radius:1rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81 ._content_vqy7d_84:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81 ._content_vqy7d_84{max-width:500px}._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81 ._completed_vqy7d_39{display:flex;height:100%;width:100%;align-items:center;justify-content:center}._root_lryhb_1 ._container_lryhb_1{display:flex;align-items:center;justify-content:space-between}._root_lryhb_1 ._container_lryhb_1 ._brand_lryhb_6{display:flex;align-items:center;gap:7px;font-weight:600}._root_bcsvc_1{position:relative;height:100%;width:100%}._root_bcsvc_1 video{height:100%;width:100%;-o-object-fit:cover;object-fit:cover;transform:scaleX(-1)}._container_mcmsr_1{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background-image:radial-gradient(circle at 50% 50%,transparent 1400px,rgba(255,255,255,0) 100%)}._container_mcmsr_1:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){background-image:radial-gradient(circle at 50% 50%,transparent 1400px,rgba(0,0,0,0) 100%)}._container_mcmsr_1{z-index:1}._container_mcmsr_1:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;background-image:radial-gradient(circle at 50% 50%,transparent 140px,rgba(255,255,255,.5) 101px)}._container_mcmsr_1:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *):before{background-image:radial-gradient(circle at 50% 50%,transparent 140px,rgba(0,0,0,.8) 101px)}._container_mcmsr_1:before{transition:opacity .3s linear}._container_mcmsr_1._focused_mcmsr_12:before{opacity:1}._container_mcmsr_1 ._progress_mcmsr_15{position:relative;height:280px;width:280px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:1px solid gray}._container_mcmsr_1 ._progress_mcmsr_15 div{position:absolute;height:3px;transform-origin:50%;border-radius:2px;width:5px;background-color:gray;transition-property:background-color,transform,width;transition-duration:.3s;transition-timing-function:ease-in-out}._container_mcmsr_1 ._progress_mcmsr_15 div._completed_mcmsr_36{width:20px;background-color:#07da63}._container_mcmsr_1 ._marker_mcmsr_40{position:relative;width:280px;height:280px}._container_mcmsr_1 ._marker_mcmsr_40>div{position:absolute;height:1.75rem;width:1.75rem;border-width:2px;--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}._container_mcmsr_1 ._marker_mcmsr_40>div:first-child{top:-.25rem;left:-.25rem;border-top-left-radius:50%;border-bottom-width:0px;border-right-width:0px}._container_mcmsr_1 ._marker_mcmsr_40>div:nth-child(2){top:-.25rem;right:-.25rem;border-top-right-radius:50%;border-bottom-width:0px;border-left-width:0px}._container_mcmsr_1 ._marker_mcmsr_40>div:nth-child(3){bottom:-.25rem;left:-.25rem;border-bottom-left-radius:50%;border-top-width:0px;border-right-width:0px}._container_mcmsr_1 ._marker_mcmsr_40>div:last-child{bottom:-.25rem;right:-.25rem;border-bottom-right-radius:50%;border-top-width:0px;border-left-width:0px}._root_5hgaj_1{height:100%;text-align:center}._root_5hgaj_1 ._container_5hgaj_4{position:relative;height:100%}._root_5hgaj_1 ._container_5hgaj_4 ._progress_5hgaj_7{background-color:var(--branding-color);position:absolute;top:0;left:0;height:4px;border-radius:.5rem;z-index:2}._root_5hgaj_1 ._container_5hgaj_4 ._intro_5hgaj_12{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem 1rem}._root_5hgaj_1 ._container_5hgaj_4 ._content_5hgaj_15{height:70%;width:100%}._root_5hgaj_1 ._container_5hgaj_4 ._branding_5hgaj_18{position:absolute;left:0;right:0;bottom:1.5rem;text-align:center;font-size:.75rem;line-height:1rem;font-weight:500;display:flex;align-items:center;justify-content:center}._root_5hgaj_1 ._container_5hgaj_4 ._branding_5hgaj_18>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}._root_5hgaj_1 ._container_5hgaj_4 ._instructionsContainer_5hgaj_22{border-top-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}._root_5hgaj_1 ._container_5hgaj_4 ._instructionsContainer_5hgaj_22:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}._root_5hgaj_1 ._container_5hgaj_4 ._instructions_5hgaj_22{margin-left:auto;margin-right:auto;padding:1rem 1rem 1.5rem;text-align:center;max-width:400px}._root_5hgaj_1 ._container_5hgaj_4 h2{margin-top:.5rem;margin-bottom:.5rem;font-size:1.5rem;line-height:2rem;font-weight:900}._root_5hgaj_1 ._container_5hgaj_4 h2:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}._root_5hgaj_1 ._container_5hgaj_4 p{font-size:.875rem;line-height:1.25rem;font-weight:300;max-width:400px}._root_5hgaj_1 ._container_5hgaj_4 button{color:var(--branding-color);border-color:var(--branding-color);border-radius:9999px;border-width:2px;padding:.5rem 2rem;font-weight:500}._root_5hgaj_1 ._container_5hgaj_4 button:hover{background-color:var(--branding-color);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_h5elg_1{text-align:center;display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem .75rem}._root_h5elg_1 h2{margin-top:.5rem;margin-bottom:.5rem;font-size:1.5rem;line-height:2rem;font-weight:900}._root_h5elg_1 h2:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}._root_h5elg_1 p{font-size:.875rem;line-height:1.25rem;font-weight:300;max-width:400px}._root_h5elg_1 button{color:var(--branding-color);border-color:var(--branding-color);border-radius:9999px;border-width:2px;padding:.5rem 2rem;font-weight:500}._root_h5elg_1 button:hover{background-color:var(--branding-color);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_h5elg_1 button:hover ._spinner_h5elg_22{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity));border-left-color:transparent}._container_1vep2_1{height:100%;width:100%;border-radius:50%;border-width:2px;border-color:var(--branding-color);border-left-color:transparent;animation:_spin_1vep2_1 .7s linear infinite}._container_1vep2_1._md_1vep2_7{height:1rem;width:1rem}._container_1vep2_1._lg_1vep2_10{height:1.75rem;width:1.75rem}@keyframes _spin_1vep2_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._root_thujo_1{position:absolute;top:0;right:0;bottom:0;left:0}._root_thujo_1 ._sticker_thujo_4{position:absolute}._root_thujo_1 ._sticker_thujo_4._no_thujo_7{top:2.5rem;left:1.5rem;border-width:4px;--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity));padding:.5rem 1rem;--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);stroke:#fff;font-size:2.25rem;line-height:2.5rem;font-weight:900;letter-spacing:.1em;--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity));transform:rotate(335deg)}._root_thujo_1 ._sticker_thujo_4._yes_thujo_12{top:2.5rem;right:1.5rem;border-width:4px;--tw-border-opacity: 1;border-color:rgb(74 222 128 / var(--tw-border-opacity));padding:.5rem 1rem;--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);stroke:#fff;font-size:2.25rem;line-height:2.5rem;font-weight:900;letter-spacing:.1em;--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity));transform:rotate(45deg)}._container_1ej18_1{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background-image:radial-gradient(circle at 50% 50%,transparent 1400px,rgba(255,255,255,0) 100%)}._container_1ej18_1:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){background-image:radial-gradient(circle at 50% 50%,transparent 1400px,rgba(0,0,0,0) 100%)}._container_1ej18_1{z-index:1}._container_1ej18_1:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;background-image:radial-gradient(circle at 50% 50%,transparent 140px,rgba(255,255,255,.5) 101px)}._container_1ej18_1:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *):before{background-image:radial-gradient(circle at 50% 50%,transparent 140px,rgba(0,0,0,.8) 101px)}._container_1ej18_1:before{transition:opacity .3s linear}._container_1ej18_1 ._progress_1ej18_12{position:relative;height:240px;width:240px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:1px solid gray}._container_1ej18_1 ._progress_1ej18_12 div{position:absolute;height:3px;transform-origin:50%;border-radius:2px;width:5px;background-color:gray;transition-property:background-color,transform,width;transition-duration:.3s;transition-timing-function:ease-in-out}._container_1ej18_1 ._progress_1ej18_12 div._completed_1ej18_33{width:20px;background-color:#07da63}._container_1ej18_1 ._marker_1ej18_37{position:relative;width:240px;height:240px}._container_1ej18_1 ._marker_1ej18_37>div{position:absolute;height:1.75rem;width:1.75rem;border-width:4px;--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}._container_1ej18_1 ._marker_1ej18_37>div:first-child{top:-.25rem;left:-.25rem;border-top-left-radius:50%;border-bottom-width:0px;border-right-width:0px}._container_1ej18_1 ._marker_1ej18_37>div:nth-child(2){top:-.25rem;right:-.25rem;border-top-right-radius:50%;border-bottom-width:0px;border-left-width:0px}._container_1ej18_1 ._marker_1ej18_37>div:nth-child(3){bottom:-.25rem;left:-.25rem;border-bottom-left-radius:50%;border-top-width:0px;border-right-width:0px}._container_1ej18_1 ._marker_1ej18_37>div:last-child{bottom:-.25rem;right:-.25rem;border-bottom-right-radius:50%;border-top-width:0px;border-left-width:0px}')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
2
|
var it, H, xr, Le, On, Mr, Gt, hn, Xt, Zt, Pr, ot = {}, Lr = [], Go = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, $t = Array.isArray;
|
|
3
|
-
function
|
|
3
|
+
function we(e, t) {
|
|
4
4
|
for (var n in t) e[n] = t[n];
|
|
5
5
|
return e;
|
|
6
6
|
}
|
|
@@ -8,7 +8,7 @@ function Nr(e) {
|
|
|
8
8
|
var t = e.parentNode;
|
|
9
9
|
t && t.removeChild(e);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function ve(e, t, n) {
|
|
12
12
|
var r, o, i, s = {};
|
|
13
13
|
for (i in t) i == "key" ? r = t[i] : i == "ref" ? o = t[i] : s[i] = t[i];
|
|
14
14
|
if (arguments.length > 2 && (s.children = arguments.length > 3 ? it.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (i in e.defaultProps) s[i] === void 0 && (s[i] = e.defaultProps[i]);
|
|
@@ -24,7 +24,7 @@ function vn() {
|
|
|
24
24
|
function G(e) {
|
|
25
25
|
return e.children;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function he(e, t) {
|
|
28
28
|
this.props = e, this.context = t;
|
|
29
29
|
}
|
|
30
30
|
function Re(e, t) {
|
|
@@ -47,7 +47,7 @@ function Jt(e) {
|
|
|
47
47
|
}
|
|
48
48
|
function _t() {
|
|
49
49
|
var e, t, n, r, o, i, s, c;
|
|
50
|
-
for (Le.sort(Gt); e = Le.shift(); ) e.__d && (t = Le.length, r = void 0, i = (o = (n = e).__v).__e, s = [], c = [], n.__P && ((r =
|
|
50
|
+
for (Le.sort(Gt); e = Le.shift(); ) e.__d && (t = Le.length, r = void 0, i = (o = (n = e).__v).__e, s = [], c = [], n.__P && ((r = we({}, o)).__v = o.__v + 1, H.vnode && H.vnode(r), mn(n.__P, r, o, n.__n, n.__P.namespaceURI, 32 & o.__u ? [i] : null, s, i ?? Re(o), !!(32 & o.__u), c), r.__v = o.__v, r.__.__k[r.__i] = r, Rr(s, r, c), r.__e != i && Ar(r)), Le.length > t && Le.sort(Gt));
|
|
51
51
|
_t.__r = 0;
|
|
52
52
|
}
|
|
53
53
|
function Ir(e, t, n, r, o, i, s, c, a, u, d) {
|
|
@@ -72,9 +72,9 @@ function Dr(e, t, n) {
|
|
|
72
72
|
while (t != null && t.nodeType === 8);
|
|
73
73
|
return t;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function be(e, t) {
|
|
76
76
|
return t = t || [], e == null || typeof e == "boolean" || ($t(e) ? e.some(function(n) {
|
|
77
|
-
|
|
77
|
+
be(n, t);
|
|
78
78
|
}) : t.push(e)), t;
|
|
79
79
|
}
|
|
80
80
|
function Zo(e, t, n, r) {
|
|
@@ -128,7 +128,7 @@ function mn(e, t, n, r, o, i, s, c, a, u) {
|
|
|
128
128
|
if (t.constructor !== void 0) return null;
|
|
129
129
|
128 & n.__u && (a = !!(32 & n.__u), i = [c = t.__e = n.__e]), (d = H.__b) && d(t);
|
|
130
130
|
e: if (typeof b == "function") try {
|
|
131
|
-
if (v = t.props, g = "prototype" in b && b.prototype.render, $ = (d = b.contextType) && r[d.__c], E = d ? $ ? $.props.value : d.__ : r, n.__c ? m = (l = t.__c = n.__c).__ = l.__E : (g ? t.__c = l = new b(v, E) : (t.__c = l = new
|
|
131
|
+
if (v = t.props, g = "prototype" in b && b.prototype.render, $ = (d = b.contextType) && r[d.__c], E = d ? $ ? $.props.value : d.__ : r, n.__c ? m = (l = t.__c = n.__c).__ = l.__E : (g ? t.__c = l = new b(v, E) : (t.__c = l = new he(v, E), l.constructor = b, l.render = Qo), $ && $.sub(l), l.props = v, l.state || (l.state = {}), l.context = E, l.__n = r, p = l.__d = !0, l.__h = [], l._sb = []), g && l.__s == null && (l.__s = l.state), g && b.getDerivedStateFromProps != null && (l.__s == l.state && (l.__s = we({}, l.__s)), we(l.__s, b.getDerivedStateFromProps(v, l.__s))), f = l.props, _ = l.state, l.__v = t, p) g && b.getDerivedStateFromProps == null && l.componentWillMount != null && l.componentWillMount(), g && l.componentDidMount != null && l.__h.push(l.componentDidMount);
|
|
132
132
|
else {
|
|
133
133
|
if (g && b.getDerivedStateFromProps == null && v !== f && l.componentWillReceiveProps != null && l.componentWillReceiveProps(v, E), !l.__e && (l.shouldComponentUpdate != null && l.shouldComponentUpdate(v, l.__s, E) === !1 || t.__v === n.__v)) {
|
|
134
134
|
for (t.__v !== n.__v && (l.props = v, l.state = l.__s, l.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function(N) {
|
|
@@ -147,7 +147,7 @@ function mn(e, t, n, r, o, i, s, c, a, u) {
|
|
|
147
147
|
} else do
|
|
148
148
|
l.__d = !1, S && S(t), d = l.render(l.props, l.state, l.context), l.state = l.__s;
|
|
149
149
|
while (l.__d && ++A < 25);
|
|
150
|
-
l.state = l.__s, l.getChildContext != null && (r =
|
|
150
|
+
l.state = l.__s, l.getChildContext != null && (r = we(we({}, r), l.getChildContext())), g && !p && l.getSnapshotBeforeUpdate != null && (y = l.getSnapshotBeforeUpdate(f, _)), Ir(e, $t(C = d != null && d.type === G && d.key == null ? d.props.children : d) ? C : [C], t, n, r, o, i, s, c, a, u), l.base = t.__e, t.__u &= -161, l.__h.length && s.push(l), m && (l.__E = l.__ = null);
|
|
151
151
|
} catch (N) {
|
|
152
152
|
if (t.__v = null, a || i != null) {
|
|
153
153
|
for (t.__u |= a ? 160 : 32; c && c.nodeType === 8 && c.nextSibling; ) c = c.nextSibling;
|
|
@@ -228,13 +228,13 @@ function Qo(e, t, n) {
|
|
|
228
228
|
}
|
|
229
229
|
function ze(e, t, n) {
|
|
230
230
|
var r, o, i, s;
|
|
231
|
-
H.__ && H.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], s = [], mn(t, e = (!r && n || t).__k =
|
|
231
|
+
H.__ && H.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], s = [], mn(t, e = (!r && n || t).__k = ve(G, null, [e]), o || ot, ot, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? it.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, s), Rr(i, e, s);
|
|
232
232
|
}
|
|
233
233
|
function Or(e, t) {
|
|
234
234
|
ze(e, t, Or);
|
|
235
235
|
}
|
|
236
236
|
function ei(e, t, n) {
|
|
237
|
-
var r, o, i, s, c =
|
|
237
|
+
var r, o, i, s, c = we({}, e.props);
|
|
238
238
|
for (i in e.type && e.type.defaultProps && (s = e.type.defaultProps), t) i == "key" ? r = t[i] : i == "ref" ? o = t[i] : c[i] = t[i] === void 0 && s !== void 0 ? s[i] : t[i];
|
|
239
239
|
return arguments.length > 2 && (c.children = arguments.length > 3 ? it.call(arguments, 2) : n), Je(e.type, c, r || e.key, o || e.ref, null);
|
|
240
240
|
}
|
|
@@ -268,12 +268,12 @@ it = Lr.slice, H = { __e: function(e, t, n, r) {
|
|
|
268
268
|
e = c;
|
|
269
269
|
}
|
|
270
270
|
throw e;
|
|
271
|
-
} }, xr = 0,
|
|
271
|
+
} }, xr = 0, he.prototype.setState = function(e, t) {
|
|
272
272
|
var n;
|
|
273
|
-
n = this.__s != null && this.__s !== this.state ? this.__s : this.__s =
|
|
274
|
-
},
|
|
273
|
+
n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = we({}, this.state), typeof e == "function" && (e = e(we({}, n), this.props)), e && we(n, e), e != null && this.__v && (t && this._sb.push(t), Jt(this));
|
|
274
|
+
}, he.prototype.forceUpdate = function(e) {
|
|
275
275
|
this.__v && (this.__e = !0, e && this.__h.push(e), Jt(this));
|
|
276
|
-
},
|
|
276
|
+
}, he.prototype.render = G, Le = [], Mr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Gt = function(e, t) {
|
|
277
277
|
return e.__v.__b - t.__v.__b;
|
|
278
278
|
}, _t.__r = 0, hn = 0, Xt = Wn(!1), Zt = Wn(!0), Pr = 0;
|
|
279
279
|
var ti = 0;
|
|
@@ -285,7 +285,7 @@ function h(e, t, n, r, o, i) {
|
|
|
285
285
|
if (typeof e == "function" && (s = e.defaultProps)) for (c in s) a[c] === void 0 && (a[c] = s[c]);
|
|
286
286
|
return H.vnode && H.vnode(u), u;
|
|
287
287
|
}
|
|
288
|
-
var
|
|
288
|
+
var $e, K, Ot, Un, Ve = 0, Hr = [], Q = H, jn = Q.__b, zn = Q.__r, Vn = Q.diffed, Bn = Q.__c, qn = Q.unmount, Yn = Q.__;
|
|
289
289
|
function He(e, t) {
|
|
290
290
|
Q.__h && Q.__h(K, e, Ve || t), Ve = 0;
|
|
291
291
|
var n = K.__H || (K.__H = { __: [], __h: [] });
|
|
@@ -295,7 +295,7 @@ function x(e) {
|
|
|
295
295
|
return Ve = 1, st(Wr, e);
|
|
296
296
|
}
|
|
297
297
|
function st(e, t, n) {
|
|
298
|
-
var r = He(
|
|
298
|
+
var r = He($e++, 2);
|
|
299
299
|
if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Wr(void 0, t), function(c) {
|
|
300
300
|
var a = r.__N ? r.__N[0] : r.__[0], u = r.t(a, c);
|
|
301
301
|
a !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
|
|
@@ -329,11 +329,11 @@ function st(e, t, n) {
|
|
|
329
329
|
return r.__N || r.__;
|
|
330
330
|
}
|
|
331
331
|
function W(e, t) {
|
|
332
|
-
var n = He(
|
|
332
|
+
var n = He($e++, 3);
|
|
333
333
|
!Q.__s && wn(n.__H, t) && (n.__ = e, n.i = t, K.__H.__h.push(n));
|
|
334
334
|
}
|
|
335
335
|
function We(e, t) {
|
|
336
|
-
var n = He(
|
|
336
|
+
var n = He($e++, 4);
|
|
337
337
|
!Q.__s && wn(n.__H, t) && (n.__ = e, n.i = t, K.__h.push(n));
|
|
338
338
|
}
|
|
339
339
|
function w(e) {
|
|
@@ -351,7 +351,7 @@ function yn(e, t, n) {
|
|
|
351
351
|
}, n == null ? n : n.concat(e));
|
|
352
352
|
}
|
|
353
353
|
function V(e, t) {
|
|
354
|
-
var n = He(
|
|
354
|
+
var n = He($e++, 7);
|
|
355
355
|
return wn(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
|
|
356
356
|
}
|
|
357
357
|
function z(e, t) {
|
|
@@ -360,14 +360,14 @@ function z(e, t) {
|
|
|
360
360
|
}, t);
|
|
361
361
|
}
|
|
362
362
|
function oe(e) {
|
|
363
|
-
var t = K.context[e.__c], n = He(
|
|
363
|
+
var t = K.context[e.__c], n = He($e++, 9);
|
|
364
364
|
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(K)), t.props.value) : e.__;
|
|
365
365
|
}
|
|
366
366
|
function gn(e, t) {
|
|
367
367
|
Q.useDebugValue && Q.useDebugValue(t ? t(e) : e);
|
|
368
368
|
}
|
|
369
369
|
function ni(e) {
|
|
370
|
-
var t = He(
|
|
370
|
+
var t = He($e++, 10), n = x();
|
|
371
371
|
return t.__ = e, K.componentDidCatch || (K.componentDidCatch = function(r, o) {
|
|
372
372
|
t.__ && t.__(r, o), n[1](r);
|
|
373
373
|
}), [n[0], function() {
|
|
@@ -375,7 +375,7 @@ function ni(e) {
|
|
|
375
375
|
}];
|
|
376
376
|
}
|
|
377
377
|
function Fe() {
|
|
378
|
-
var e = He(
|
|
378
|
+
var e = He($e++, 11);
|
|
379
379
|
if (!e.__) {
|
|
380
380
|
for (var t = K.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
|
|
381
381
|
var n = t.__m || (t.__m = [0, 0]);
|
|
@@ -395,11 +395,11 @@ Q.__b = function(e) {
|
|
|
395
395
|
}, Q.__ = function(e, t) {
|
|
396
396
|
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Yn && Yn(e, t);
|
|
397
397
|
}, Q.__r = function(e) {
|
|
398
|
-
zn && zn(e),
|
|
398
|
+
zn && zn(e), $e = 0;
|
|
399
399
|
var t = (K = e.__c).__H;
|
|
400
400
|
t && (Ot === K ? (t.__h = [], K.__h = [], t.__.forEach(function(n) {
|
|
401
401
|
n.__N && (n.__ = n.__N), n.i = n.__N = void 0;
|
|
402
|
-
})) : (t.__h.forEach(vt), t.__h.forEach(en), t.__h = [],
|
|
402
|
+
})) : (t.__h.forEach(vt), t.__h.forEach(en), t.__h = [], $e = 0)), Ot = K;
|
|
403
403
|
}, Q.diffed = function(e) {
|
|
404
404
|
Vn && Vn(e);
|
|
405
405
|
var t = e.__c;
|
|
@@ -470,11 +470,11 @@ function jr(e, t) {
|
|
|
470
470
|
return !s && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !s : tn(this.props, o);
|
|
471
471
|
}
|
|
472
472
|
function r(o) {
|
|
473
|
-
return this.shouldComponentUpdate = n,
|
|
473
|
+
return this.shouldComponentUpdate = n, ve(e, o);
|
|
474
474
|
}
|
|
475
475
|
return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r;
|
|
476
476
|
}
|
|
477
|
-
(yt.prototype = new
|
|
477
|
+
(yt.prototype = new he()).isPureReactComponent = !0, yt.prototype.shouldComponentUpdate = function(e, t) {
|
|
478
478
|
return tn(this.props, e) || tn(this.state, t);
|
|
479
479
|
};
|
|
480
480
|
var Gn = H.__b;
|
|
@@ -490,14 +490,14 @@ function bn(e) {
|
|
|
490
490
|
return t.$$typeof = ii, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
491
491
|
}
|
|
492
492
|
var Xn = function(e, t) {
|
|
493
|
-
return e == null ? null :
|
|
493
|
+
return e == null ? null : be(be(e).map(t));
|
|
494
494
|
}, zr = { map: Xn, forEach: Xn, count: function(e) {
|
|
495
|
-
return e ?
|
|
495
|
+
return e ? be(e).length : 0;
|
|
496
496
|
}, only: function(e) {
|
|
497
|
-
var t =
|
|
497
|
+
var t = be(e);
|
|
498
498
|
if (t.length !== 1) throw "Children.only";
|
|
499
499
|
return t[0];
|
|
500
|
-
}, toArray:
|
|
500
|
+
}, toArray: be }, si = H.__e;
|
|
501
501
|
H.__e = function(e, t, n, r) {
|
|
502
502
|
if (e.then) {
|
|
503
503
|
for (var o, i = t; i = i.__; ) if ((o = i.__c) && o.__c) return t.__e == null && (t.__e = n.__e, t.__k = n.__k), o.__c(e, t);
|
|
@@ -533,7 +533,7 @@ function Yr(e) {
|
|
|
533
533
|
r = s;
|
|
534
534
|
}), r) throw r;
|
|
535
535
|
if (!n) throw t;
|
|
536
|
-
return
|
|
536
|
+
return ve(n, i);
|
|
537
537
|
}
|
|
538
538
|
return o.displayName = "Lazy", o.__f = !0, o;
|
|
539
539
|
}
|
|
@@ -543,7 +543,7 @@ function je() {
|
|
|
543
543
|
H.unmount = function(e) {
|
|
544
544
|
var t = e.__c;
|
|
545
545
|
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Zn && Zn(e);
|
|
546
|
-
}, (Qe.prototype = new
|
|
546
|
+
}, (Qe.prototype = new he()).__c = function(e, t) {
|
|
547
547
|
var n = t.__c, r = this;
|
|
548
548
|
r.t == null && (r.t = []), r.t.push(n);
|
|
549
549
|
var o = qr(r.__v), i = !1, s = function() {
|
|
@@ -571,8 +571,8 @@ H.unmount = function(e) {
|
|
|
571
571
|
}
|
|
572
572
|
this.__b = null;
|
|
573
573
|
}
|
|
574
|
-
var o = t.__a &&
|
|
575
|
-
return o && (o.__u &= -33), [
|
|
574
|
+
var o = t.__a && ve(G, null, e.fallback);
|
|
575
|
+
return o && (o.__u &= -33), [ve(G, null, t.__a ? null : e.children), o];
|
|
576
576
|
};
|
|
577
577
|
var Jn = function(e, t, n) {
|
|
578
578
|
if (++n[1] === n[0] && e.o.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.o.size)) for (n = e.u; n; ) {
|
|
@@ -598,13 +598,13 @@ function ci(e) {
|
|
|
598
598
|
this.childNodes.push(r), t.i.appendChild(r);
|
|
599
599
|
}, removeChild: function(r) {
|
|
600
600
|
this.childNodes.splice(this.childNodes.indexOf(r) >>> 1, 1), t.i.removeChild(r);
|
|
601
|
-
} }), ze(
|
|
601
|
+
} }), ze(ve(ai, { context: t.context }, e.__v), t.l);
|
|
602
602
|
}
|
|
603
603
|
function Tt(e, t) {
|
|
604
|
-
var n =
|
|
604
|
+
var n = ve(ci, { __v: e, i: t });
|
|
605
605
|
return n.containerInfo = t, n;
|
|
606
606
|
}
|
|
607
|
-
(je.prototype = new
|
|
607
|
+
(je.prototype = new he()).__a = function(e) {
|
|
608
608
|
var t = this, n = qr(t.__v), r = t.o.get(e);
|
|
609
609
|
return r[0]++, function(o) {
|
|
610
610
|
var i = function() {
|
|
@@ -614,7 +614,7 @@ function Tt(e, t) {
|
|
|
614
614
|
};
|
|
615
615
|
}, je.prototype.render = function(e) {
|
|
616
616
|
this.u = null, this.o = /* @__PURE__ */ new Map();
|
|
617
|
-
var t =
|
|
617
|
+
var t = be(e.children);
|
|
618
618
|
e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
|
|
619
619
|
for (var n = t.length; n--; ) this.o.set(t[n], this.u = [1, 0, this.u]);
|
|
620
620
|
return e.children;
|
|
@@ -633,8 +633,8 @@ function Gr(e, t, n) {
|
|
|
633
633
|
function Xr(e, t, n) {
|
|
634
634
|
return Or(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
635
635
|
}
|
|
636
|
-
|
|
637
|
-
Object.defineProperty(
|
|
636
|
+
he.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
637
|
+
Object.defineProperty(he.prototype, e, { configurable: !0, get: function() {
|
|
638
638
|
return this["UNSAFE_" + e];
|
|
639
639
|
}, set: function(t) {
|
|
640
640
|
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
|
|
@@ -665,9 +665,9 @@ H.vnode = function(e) {
|
|
|
665
665
|
i === "defaultValue" && "value" in n && n.value == null ? i = "value" : i === "download" && s === !0 ? s = "" : c === "translate" && s === "no" ? s = !1 : c === "ondoubleclick" ? i = "ondblclick" : c !== "onchange" || r !== "input" && r !== "textarea" || pi(n.type) ? c === "onfocus" ? i = "onfocusin" : c === "onblur" ? i = "onfocusout" : ui.test(i) ? i = c : r.indexOf("-") === -1 && li.test(i) ? i = i.replace(di, "-$&").toLowerCase() : s === null && (s = void 0) : c = i = "oninput", c === "oninput" && o[i = c] && (i = "oninputCapture"), o[i] = s;
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
|
-
r == "select" && o.multiple && Array.isArray(o.value) && (o.value =
|
|
668
|
+
r == "select" && o.multiple && Array.isArray(o.value) && (o.value = be(n.children).forEach(function(a) {
|
|
669
669
|
a.props.selected = o.value.indexOf(a.props.value) != -1;
|
|
670
|
-
})), r == "select" && o.defaultValue != null && (o.value =
|
|
670
|
+
})), r == "select" && o.defaultValue != null && (o.value = be(n.children).forEach(function(a) {
|
|
671
671
|
a.props.selected = o.multiple ? o.defaultValue.indexOf(a.props.value) != -1 : o.defaultValue == a.props.value;
|
|
672
672
|
})), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", _i)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
|
|
673
673
|
}(e), e.$$typeof = Kr, er && er(e);
|
|
@@ -686,7 +686,7 @@ var Zr = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
|
686
686
|
return En.__n[e.__c].props.value;
|
|
687
687
|
}, useCallback: z, useContext: oe, useDebugValue: gn, useDeferredValue: kn, useEffect: W, useId: Fe, useImperativeHandle: yn, useInsertionEffect: Cn, useLayoutEffect: We, useMemo: V, useReducer: st, useRef: w, useState: x, useSyncExternalStore: kt, useTransition: Sn } } }, yi = "17.0.2";
|
|
688
688
|
function Jr(e) {
|
|
689
|
-
return
|
|
689
|
+
return ve.bind(null, e);
|
|
690
690
|
}
|
|
691
691
|
function qe(e) {
|
|
692
692
|
return !!e && e.$$typeof === Kr;
|
|
@@ -740,11 +740,11 @@ function Ht(e) {
|
|
|
740
740
|
return !0;
|
|
741
741
|
}
|
|
742
742
|
}
|
|
743
|
-
var I = { useState: x, useId: Fe, useReducer: st, useEffect: W, useLayoutEffect: We, useInsertionEffect: Cn, useTransition: Sn, useDeferredValue: kn, useSyncExternalStore: kt, startTransition: Tn, useRef: w, useImperativeHandle: yn, useMemo: V, useCallback: z, useContext: oe, useDebugValue: gn, version: "17.0.2", Children: zr, render: Gr, hydrate: Xr, unmountComponentAtNode: to, createPortal: Tt, createElement:
|
|
743
|
+
var I = { useState: x, useId: Fe, useReducer: st, useEffect: W, useLayoutEffect: We, useInsertionEffect: Cn, useTransition: Sn, useDeferredValue: kn, useSyncExternalStore: kt, startTransition: Tn, useRef: w, useImperativeHandle: yn, useMemo: V, useCallback: z, useContext: oe, useDebugValue: gn, version: "17.0.2", Children: zr, render: Gr, hydrate: Xr, unmountComponentAtNode: to, createPortal: Tt, createElement: ve, createContext: ce, createFactory: Jr, cloneElement: $n, createRef: vn, Fragment: G, isValidElement: qe, isElement: so, isFragment: Qr, isMemo: eo, findDOMNode: no, Component: he, PureComponent: yt, memo: jr, forwardRef: bn, flushSync: oo, unstable_batchedUpdates: ro, StrictMode: io, Suspense: Qe, SuspenseList: je, lazy: Yr, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Zr };
|
|
744
744
|
const rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
745
745
|
__proto__: null,
|
|
746
746
|
Children: zr,
|
|
747
|
-
Component:
|
|
747
|
+
Component: he,
|
|
748
748
|
Fragment: G,
|
|
749
749
|
PureComponent: yt,
|
|
750
750
|
StrictMode: io,
|
|
@@ -753,7 +753,7 @@ const rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
753
753
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Zr,
|
|
754
754
|
cloneElement: $n,
|
|
755
755
|
createContext: ce,
|
|
756
|
-
createElement:
|
|
756
|
+
createElement: ve,
|
|
757
757
|
createFactory: Jr,
|
|
758
758
|
createPortal: Tt,
|
|
759
759
|
createRef: vn,
|
|
@@ -924,7 +924,7 @@ function Fi(e) {
|
|
|
924
924
|
function gt(e) {
|
|
925
925
|
Oe = !0, Fi(e) && (ct = "keyboard", Fn("keyboard", e));
|
|
926
926
|
}
|
|
927
|
-
function
|
|
927
|
+
function fe(e) {
|
|
928
928
|
ct = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (Oe = !0, Fn("pointer", e));
|
|
929
929
|
}
|
|
930
930
|
function lo(e) {
|
|
@@ -942,7 +942,7 @@ function on(e) {
|
|
|
942
942
|
let r = t.HTMLElement.prototype.focus;
|
|
943
943
|
t.HTMLElement.prototype.focus = function() {
|
|
944
944
|
Oe = !0, r.apply(this, arguments);
|
|
945
|
-
}, n.addEventListener("keydown", gt, !0), n.addEventListener("keyup", gt, !0), n.addEventListener("click", lo, !0), t.addEventListener("focus", uo, !0), t.addEventListener("blur", fo, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown",
|
|
945
|
+
}, n.addEventListener("keydown", gt, !0), n.addEventListener("keyup", gt, !0), n.addEventListener("click", lo, !0), t.addEventListener("focus", uo, !0), t.addEventListener("blur", fo, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", fe, !0), n.addEventListener("pointermove", fe, !0), n.addEventListener("pointerup", fe, !0)) : (n.addEventListener("mousedown", fe, !0), n.addEventListener("mousemove", fe, !0), n.addEventListener("mouseup", fe, !0)), t.addEventListener("beforeunload", () => {
|
|
946
946
|
po(e);
|
|
947
947
|
}, {
|
|
948
948
|
once: !0
|
|
@@ -952,7 +952,7 @@ function on(e) {
|
|
|
952
952
|
}
|
|
953
953
|
const po = (e, t) => {
|
|
954
954
|
const n = Ae(e), r = at(e);
|
|
955
|
-
t && r.removeEventListener("DOMContentLoaded", t), et.has(n) && (n.HTMLElement.prototype.focus = et.get(n).focus, r.removeEventListener("keydown", gt, !0), r.removeEventListener("keyup", gt, !0), r.removeEventListener("click", lo, !0), n.removeEventListener("focus", uo, !0), n.removeEventListener("blur", fo, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown",
|
|
955
|
+
t && r.removeEventListener("DOMContentLoaded", t), et.has(n) && (n.HTMLElement.prototype.focus = et.get(n).focus, r.removeEventListener("keydown", gt, !0), r.removeEventListener("keyup", gt, !0), r.removeEventListener("click", lo, !0), n.removeEventListener("focus", uo, !0), n.removeEventListener("blur", fo, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", fe, !0), r.removeEventListener("pointermove", fe, !0), r.removeEventListener("pointerup", fe, !0)) : (r.removeEventListener("mousedown", fe, !0), r.removeEventListener("mousemove", fe, !0), r.removeEventListener("mouseup", fe, !0)), et.delete(n));
|
|
956
956
|
};
|
|
957
957
|
function xi(e) {
|
|
958
958
|
const t = at(e);
|
|
@@ -1254,7 +1254,7 @@ function Ce(e, t, ...n) {
|
|
|
1254
1254
|
let r = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((o) => `"${o}"`).join(", ")}.`);
|
|
1255
1255
|
throw Error.captureStackTrace && Error.captureStackTrace(r, Ce), r;
|
|
1256
1256
|
}
|
|
1257
|
-
var bt = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(bt || {}),
|
|
1257
|
+
var bt = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(bt || {}), Se = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(Se || {});
|
|
1258
1258
|
function ue({ ourProps: e, theirProps: t, slot: n, defaultTag: r, features: o, visible: i = !0, name: s, mergeRefs: c }) {
|
|
1259
1259
|
c = c ?? Vi;
|
|
1260
1260
|
let a = mo(t, e);
|
|
@@ -1296,7 +1296,7 @@ function pt(e, t = {}, n, r, o) {
|
|
|
1296
1296
|
for (let v in l) v in m && delete l[v];
|
|
1297
1297
|
return $n(d, Object.assign({}, m, l, u, { ref: o(d.ref, u.ref) }, y));
|
|
1298
1298
|
}
|
|
1299
|
-
return
|
|
1299
|
+
return ve(i, Object.assign({}, jt(a, ["ref"]), i !== G && u, i !== G && l), d);
|
|
1300
1300
|
}
|
|
1301
1301
|
function Vi(...e) {
|
|
1302
1302
|
return e.every((t) => t == null) ? void 0 : (t) => {
|
|
@@ -1370,7 +1370,7 @@ let _o = Symbol();
|
|
|
1370
1370
|
function Qi(e, t = !0) {
|
|
1371
1371
|
return Object.assign(e, { [_o]: t });
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function ye(...e) {
|
|
1374
1374
|
let t = w(e);
|
|
1375
1375
|
W(() => {
|
|
1376
1376
|
t.current = e;
|
|
@@ -1402,7 +1402,7 @@ function es() {
|
|
|
1402
1402
|
}
|
|
1403
1403
|
let ts = "p";
|
|
1404
1404
|
function ns(e, t) {
|
|
1405
|
-
let n = Fe(), r = vo(), { id: o = `headlessui-description-${n}`, ...i } = e, s = yo(), c =
|
|
1405
|
+
let n = Fe(), r = vo(), { id: o = `headlessui-description-${n}`, ...i } = e, s = yo(), c = ye(t);
|
|
1406
1406
|
se(() => s.register(o), [o, s.register]);
|
|
1407
1407
|
let a = r || !1, u = V(() => ({ ...s.slot, disabled: a }), [s.slot, a]), d = { ref: c, ...s.props, id: o };
|
|
1408
1408
|
return ue({ ourProps: d, theirProps: i, slot: u, defaultTag: ts, name: s.name || "Description" });
|
|
@@ -1509,7 +1509,7 @@ function Eo(e, t, n) {
|
|
|
1509
1509
|
}, [t, r, e]);
|
|
1510
1510
|
}
|
|
1511
1511
|
let un = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(","), us = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
|
|
1512
|
-
var
|
|
1512
|
+
var ge = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))(ge || {}), dn = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(dn || {}), ds = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(ds || {});
|
|
1513
1513
|
function fs(e = document.body) {
|
|
1514
1514
|
return e == null ? [] : Array.from(e.querySelectorAll(un)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
1515
1515
|
}
|
|
@@ -1536,7 +1536,7 @@ typeof window < "u" && typeof document < "u" && (document.addEventListener("keyd
|
|
|
1536
1536
|
}, !0), document.addEventListener("click", (e) => {
|
|
1537
1537
|
e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
1538
1538
|
}, !0));
|
|
1539
|
-
function
|
|
1539
|
+
function Ee(e) {
|
|
1540
1540
|
e == null || e.focus({ preventScroll: !0 });
|
|
1541
1541
|
}
|
|
1542
1542
|
let ms = ["textarea", "input"].join(",");
|
|
@@ -1836,7 +1836,7 @@ function Mn(e, t) {
|
|
|
1836
1836
|
}
|
|
1837
1837
|
let xt = ce(null);
|
|
1838
1838
|
xt.displayName = "OpenClosedContext";
|
|
1839
|
-
var
|
|
1839
|
+
var pe = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(pe || {});
|
|
1840
1840
|
function Mt() {
|
|
1841
1841
|
return oe(xt);
|
|
1842
1842
|
}
|
|
@@ -1852,10 +1852,10 @@ function Os(e) {
|
|
|
1852
1852
|
}
|
|
1853
1853
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", t), t());
|
|
1854
1854
|
}
|
|
1855
|
-
let
|
|
1855
|
+
let ke = [];
|
|
1856
1856
|
Os(() => {
|
|
1857
1857
|
function e(t) {
|
|
1858
|
-
t.target instanceof HTMLElement && t.target !== document.body &&
|
|
1858
|
+
t.target instanceof HTMLElement && t.target !== document.body && ke[0] !== t.target && (ke.unshift(t.target), ke = ke.filter((n) => n != null && n.isConnected), ke.splice(10));
|
|
1859
1859
|
}
|
|
1860
1860
|
window.addEventListener("click", e, { capture: !0 }), window.addEventListener("mousedown", e, { capture: !0 }), window.addEventListener("focus", e, { capture: !0 }), document.body.addEventListener("click", e, { capture: !0 }), document.body.addEventListener("mousedown", e, { capture: !0 }), document.body.addEventListener("focus", e, { capture: !0 });
|
|
1861
1861
|
});
|
|
@@ -1903,7 +1903,7 @@ function Us(e) {
|
|
|
1903
1903
|
}, [n, i, t]), o;
|
|
1904
1904
|
}
|
|
1905
1905
|
let xo = G, js = ae(function(e, t) {
|
|
1906
|
-
let n = e, r = w(null), o =
|
|
1906
|
+
let n = e, r = w(null), o = ye(Qi((d) => {
|
|
1907
1907
|
r.current = d;
|
|
1908
1908
|
}), t), i = lt(r), s = Us(r), [c] = x(() => {
|
|
1909
1909
|
var d;
|
|
@@ -1919,12 +1919,12 @@ let xo = G, js = ae(function(e, t) {
|
|
|
1919
1919
|
}), u ? !s || !c ? null : Tt(ue({ ourProps: { ref: o }, theirProps: n, slot: {}, defaultTag: xo, name: "Portal" }), c) : null;
|
|
1920
1920
|
});
|
|
1921
1921
|
function zs(e, t) {
|
|
1922
|
-
let n =
|
|
1922
|
+
let n = ye(t), { enabled: r = !0, ...o } = e;
|
|
1923
1923
|
return r ? I.createElement(js, { ...o, ref: n }) : ue({ ourProps: { ref: n }, theirProps: o, slot: {}, defaultTag: xo, name: "Portal" });
|
|
1924
1924
|
}
|
|
1925
1925
|
let Vs = G, Mo = ce(null);
|
|
1926
1926
|
function Bs(e, t) {
|
|
1927
|
-
let { target: n, ...r } = e, o = { ref:
|
|
1927
|
+
let { target: n, ...r } = e, o = { ref: ye(t) };
|
|
1928
1928
|
return I.createElement(Mo.Provider, { value: n }, ue({ ourProps: o, theirProps: r, defaultTag: Vs, name: "Popover.Group" }));
|
|
1929
1929
|
}
|
|
1930
1930
|
let fn = ce(null);
|
|
@@ -1992,7 +1992,7 @@ function Lo(e) {
|
|
|
1992
1992
|
let Qs = "div";
|
|
1993
1993
|
var Ne = ((e) => (e[e.None = 0] = "None", e[e.InitialFocus = 1] = "InitialFocus", e[e.TabLock = 2] = "TabLock", e[e.FocusLock = 4] = "FocusLock", e[e.RestoreFocus = 8] = "RestoreFocus", e[e.AutoFocus = 16] = "AutoFocus", e))(Ne || {});
|
|
1994
1994
|
function ea(e, t) {
|
|
1995
|
-
let n = w(null), r =
|
|
1995
|
+
let n = w(null), r = ye(n, t), { initialFocus: o, initialFocusFallback: i, containers: s, features: c = 15, ...a } = e;
|
|
1996
1996
|
ut() || (c = 0);
|
|
1997
1997
|
let u = lt(n);
|
|
1998
1998
|
oa(c, { ownerDocument: u });
|
|
@@ -2002,9 +2002,9 @@ function ea(e, t) {
|
|
|
2002
2002
|
let g = n.current;
|
|
2003
2003
|
g && (($) => $())(() => {
|
|
2004
2004
|
Ce(l.current, { [Ze.Forwards]: () => {
|
|
2005
|
-
nt(g,
|
|
2005
|
+
nt(g, ge.First, { skipElements: [v.relatedTarget, i] });
|
|
2006
2006
|
}, [Ze.Backwards]: () => {
|
|
2007
|
-
nt(g,
|
|
2007
|
+
nt(g, ge.Last, { skipElements: [v.relatedTarget, i] });
|
|
2008
2008
|
} });
|
|
2009
2009
|
});
|
|
2010
2010
|
}), f = Ye(!!(c & 2), "focus-trap#tab-lock"), _ = Ft(), y = w(!1), m = { ref: r, onKeyDown(v) {
|
|
@@ -2016,18 +2016,18 @@ function ea(e, t) {
|
|
|
2016
2016
|
let g = Lo(s);
|
|
2017
2017
|
n.current instanceof HTMLElement && g.add(n.current);
|
|
2018
2018
|
let $ = v.relatedTarget;
|
|
2019
|
-
$ instanceof HTMLElement && $.dataset.headlessuiFocusGuard !== "true" && (No(g, $) || (y.current ? nt(n.current, Ce(l.current, { [Ze.Forwards]: () =>
|
|
2019
|
+
$ instanceof HTMLElement && $.dataset.headlessuiFocusGuard !== "true" && (No(g, $) || (y.current ? nt(n.current, Ce(l.current, { [Ze.Forwards]: () => ge.Next, [Ze.Backwards]: () => ge.Previous }) | ge.WrapAround, { relativeTo: v.target }) : v.target instanceof HTMLElement && Ee(v.target)));
|
|
2020
2020
|
} };
|
|
2021
2021
|
return I.createElement(I.Fragment, null, f && I.createElement(cn, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: p, features: Et.Focusable }), ue({ ourProps: m, theirProps: a, defaultTag: Qs, name: "FocusTrap" }), f && I.createElement(cn, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: p, features: Et.Focusable }));
|
|
2022
2022
|
}
|
|
2023
2023
|
let ta = ae(ea), na = Object.assign(ta, { features: Ne });
|
|
2024
2024
|
function ra(e = !0) {
|
|
2025
|
-
let t = w(
|
|
2025
|
+
let t = w(ke.slice());
|
|
2026
2026
|
return Mn(([n], [r]) => {
|
|
2027
2027
|
r === !0 && n === !1 && Ct(() => {
|
|
2028
2028
|
t.current.splice(0);
|
|
2029
|
-
}), r === !1 && n === !0 && (t.current =
|
|
2030
|
-
}, [e,
|
|
2029
|
+
}), r === !1 && n === !0 && (t.current = ke.slice());
|
|
2030
|
+
}, [e, ke, t]), J(() => {
|
|
2031
2031
|
var n;
|
|
2032
2032
|
return (n = t.current.find((r) => r != null && r.isConnected)) != null ? n : null;
|
|
2033
2033
|
});
|
|
@@ -2035,9 +2035,9 @@ function ra(e = !0) {
|
|
|
2035
2035
|
function oa(e, { ownerDocument: t }) {
|
|
2036
2036
|
let n = !!(e & 8), r = ra(n);
|
|
2037
2037
|
Mn(() => {
|
|
2038
|
-
n || (t == null ? void 0 : t.activeElement) === (t == null ? void 0 : t.body) &&
|
|
2038
|
+
n || (t == null ? void 0 : t.activeElement) === (t == null ? void 0 : t.body) && Ee(r());
|
|
2039
2039
|
}, [n]), Co(() => {
|
|
2040
|
-
n &&
|
|
2040
|
+
n && Ee(r());
|
|
2041
2041
|
});
|
|
2042
2042
|
}
|
|
2043
2043
|
function ia(e, { ownerDocument: t, container: n, initialFocus: r, initialFocusFallback: o }) {
|
|
@@ -2045,7 +2045,7 @@ function ia(e, { ownerDocument: t, container: n, initialFocus: r, initialFocusFa
|
|
|
2045
2045
|
return Mn(() => {
|
|
2046
2046
|
if (e === 0) return;
|
|
2047
2047
|
if (!s) {
|
|
2048
|
-
o != null && o.current &&
|
|
2048
|
+
o != null && o.current && Ee(o.current);
|
|
2049
2049
|
return;
|
|
2050
2050
|
}
|
|
2051
2051
|
let a = n.current;
|
|
@@ -2061,12 +2061,12 @@ function ia(e, { ownerDocument: t, container: n, initialFocus: r, initialFocusFa
|
|
|
2061
2061
|
i.current = u;
|
|
2062
2062
|
return;
|
|
2063
2063
|
}
|
|
2064
|
-
if (r != null && r.current)
|
|
2064
|
+
if (r != null && r.current) Ee(r.current);
|
|
2065
2065
|
else {
|
|
2066
2066
|
if (e & 16) {
|
|
2067
|
-
if (nt(a,
|
|
2068
|
-
} else if (nt(a,
|
|
2069
|
-
if (o != null && o.current && (
|
|
2067
|
+
if (nt(a, ge.First | ge.AutoFocus) !== dn.Error) return;
|
|
2068
|
+
} else if (nt(a, ge.First) !== dn.Error) return;
|
|
2069
|
+
if (o != null && o.current && (Ee(o.current), (t == null ? void 0 : t.activeElement) === o.current)) return;
|
|
2070
2070
|
console.warn("There are no focusable elements inside the <FocusTrap />");
|
|
2071
2071
|
}
|
|
2072
2072
|
i.current = t == null ? void 0 : t.activeElement;
|
|
@@ -2082,7 +2082,7 @@ function sa(e, { ownerDocument: t, container: n, containers: r, previousActiveEl
|
|
|
2082
2082
|
let u = o.current;
|
|
2083
2083
|
if (!u) return;
|
|
2084
2084
|
let d = c.target;
|
|
2085
|
-
d && d instanceof HTMLElement ? No(a, d) ? (o.current = d,
|
|
2085
|
+
d && d instanceof HTMLElement ? No(a, d) ? (o.current = d, Ee(d)) : (c.preventDefault(), c.stopPropagation(), Ee(u)) : Ee(o.current);
|
|
2086
2086
|
}, !0);
|
|
2087
2087
|
}
|
|
2088
2088
|
function No(e, t) {
|
|
@@ -2112,11 +2112,11 @@ function Nt(e) {
|
|
|
2112
2112
|
return "children" in e ? Nt(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
|
|
2113
2113
|
}
|
|
2114
2114
|
function Io(e, t) {
|
|
2115
|
-
let n = Ue(e), r = w([]), o = Pn(), i = Ft(), s = J((f, _ =
|
|
2115
|
+
let n = Ue(e), r = w([]), o = Pn(), i = Ft(), s = J((f, _ = Se.Hidden) => {
|
|
2116
2116
|
let y = r.current.findIndex(({ el: m }) => m === f);
|
|
2117
|
-
y !== -1 && (Ce(_, { [
|
|
2117
|
+
y !== -1 && (Ce(_, { [Se.Unmount]() {
|
|
2118
2118
|
r.current.splice(y, 1);
|
|
2119
|
-
}, [
|
|
2119
|
+
}, [Se.Hidden]() {
|
|
2120
2120
|
r.current[y].state = "hidden";
|
|
2121
2121
|
} }), i.microTask(() => {
|
|
2122
2122
|
var m;
|
|
@@ -2124,7 +2124,7 @@ function Io(e, t) {
|
|
|
2124
2124
|
}));
|
|
2125
2125
|
}), c = J((f) => {
|
|
2126
2126
|
let _ = r.current.find(({ el: y }) => y === f);
|
|
2127
|
-
return _ ? _.state !== "visible" && (_.state = "visible") : r.current.push({ el: f, state: "visible" }), () => s(f,
|
|
2127
|
+
return _ ? _.state !== "visible" && (_.state = "visible") : r.current.push({ el: f, state: "visible" }), () => s(f, Se.Unmount);
|
|
2128
2128
|
}), a = w([]), u = w(Promise.resolve()), d = w({ enter: [], leave: [] }), l = J((f, _, y) => {
|
|
2129
2129
|
a.current.splice(0), t && (t.chains.current[_] = t.chains.current[_].filter(([m]) => m !== f)), t == null || t.chains.current[_].push([f, new Promise((m) => {
|
|
2130
2130
|
a.current.push(m);
|
|
@@ -2142,9 +2142,9 @@ function Io(e, t) {
|
|
|
2142
2142
|
let Do = G, Ro = bt.RenderStrategy;
|
|
2143
2143
|
function ua(e, t) {
|
|
2144
2144
|
var n, r;
|
|
2145
|
-
let { transition: o = !0, beforeEnter: i, afterEnter: s, beforeLeave: c, afterLeave: a, enter: u, enterFrom: d, enterTo: l, entered: p, leave: f, leaveFrom: _, leaveTo: y, ...m } = e, v = w(null), g = Ao(e), $ =
|
|
2145
|
+
let { transition: o = !0, beforeEnter: i, afterEnter: s, beforeLeave: c, afterLeave: a, enter: u, enterFrom: d, enterTo: l, entered: p, leave: f, leaveFrom: _, leaveTo: y, ...m } = e, v = w(null), g = Ao(e), $ = ye(...g ? [v, t] : t === null ? [] : [t]), E = (n = m.unmount) == null || n ? Se.Unmount : Se.Hidden, { show: k, appear: S, initial: A } = ca(), [U, C] = x(k ? "visible" : "hidden"), b = la(), { register: N, unregister: q } = b;
|
|
2146
2146
|
se(() => N(v), [N, v]), se(() => {
|
|
2147
|
-
if (E ===
|
|
2147
|
+
if (E === Se.Hidden && v.current) {
|
|
2148
2148
|
if (k && U !== "visible") {
|
|
2149
2149
|
C("visible");
|
|
2150
2150
|
return;
|
|
@@ -2174,13 +2174,13 @@ function ua(e, t) {
|
|
|
2174
2174
|
g && o || (L(k), D(k));
|
|
2175
2175
|
}, [k, g, o]);
|
|
2176
2176
|
let M = !(!o || !g || !O || B), [, T] = Ls(M, v, k, { start: L, end: D }), j = Pe({ ref: $, className: ((r = an(m.className, te && u, te && d, T.enter && u, T.enter && T.closed && d, T.enter && !T.closed && l, T.leave && f, T.leave && !T.closed && _, T.leave && T.closed && y, !T.transition && k && p)) == null ? void 0 : r.trim()) || void 0, ...Ps(T) }), Y = 0;
|
|
2177
|
-
return U === "visible" && (Y |=
|
|
2177
|
+
return U === "visible" && (Y |= pe.Open), U === "hidden" && (Y |= pe.Closed), T.enter && (Y |= pe.Opening), T.leave && (Y |= pe.Closing), I.createElement(Lt.Provider, { value: P }, I.createElement(Ds, { value: Y }, ue({ ourProps: j, theirProps: m, defaultTag: Do, features: Ro, visible: U === "visible", name: "Transition.Child" })));
|
|
2178
2178
|
}
|
|
2179
2179
|
function da(e, t) {
|
|
2180
|
-
let { show: n, appear: r = !1, unmount: o = !0, ...i } = e, s = w(null), c = Ao(e), a =
|
|
2180
|
+
let { show: n, appear: r = !1, unmount: o = !0, ...i } = e, s = w(null), c = Ao(e), a = ye(...c ? [s, t] : t === null ? [] : [t]);
|
|
2181
2181
|
ut();
|
|
2182
2182
|
let u = Mt();
|
|
2183
|
-
if (n === void 0 && u !== null && (n = (u &
|
|
2183
|
+
if (n === void 0 && u !== null && (n = (u & pe.Open) === pe.Open), n === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
2184
2184
|
let [d, l] = x(n ? "visible" : "hidden"), p = Io(() => {
|
|
2185
2185
|
n || l("hidden");
|
|
2186
2186
|
}), [f, _] = x(!0), y = w([n]);
|
|
@@ -2204,7 +2204,7 @@ function fa(e, t) {
|
|
|
2204
2204
|
let n = oe(Pt) !== null, r = Mt() !== null;
|
|
2205
2205
|
return I.createElement(I.Fragment, null, !n && r ? I.createElement(pn, { ref: t, ...e }) : I.createElement(Oo, { ref: t, ...e }));
|
|
2206
2206
|
}
|
|
2207
|
-
let pn = ae(da), Oo = ae(ua), Ln = ae(fa),
|
|
2207
|
+
let pn = ae(da), Oo = ae(ua), Ln = ae(fa), _e = Object.assign(pn, { Child: Ln, Root: pn });
|
|
2208
2208
|
var pa = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(pa || {}), ha = ((e) => (e[e.SetTitleId = 0] = "SetTitleId", e))(ha || {});
|
|
2209
2209
|
let va = { 0(e, t) {
|
|
2210
2210
|
return e.titleId === t.id ? e : { ...e, titleId: t.id };
|
|
@@ -2227,11 +2227,11 @@ let lr = ae(function(e, t) {
|
|
|
2227
2227
|
return c === "dialog" || c === "alertdialog" ? c : (l.current || (l.current = !0, console.warn(`Invalid role [${c}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
|
|
2228
2228
|
}();
|
|
2229
2229
|
let p = Mt();
|
|
2230
|
-
o === void 0 && p !== null && (o = (p &
|
|
2231
|
-
let f = w(null), _ =
|
|
2230
|
+
o === void 0 && p !== null && (o = (p & pe.Open) === pe.Open);
|
|
2231
|
+
let f = w(null), _ = ye(f, t), y = lt(f), m = o ? 0 : 1, [v, g] = st(ma, { titleId: null, descriptionId: null, panelRef: vn() }), $ = J(() => i(!1)), E = J((M) => g({ type: 0, id: M })), k = ut() ? m === 0 : !1, [S, A] = qs(), U = { get current() {
|
|
2232
2232
|
var M;
|
|
2233
2233
|
return (M = v.panelRef.current) != null ? M : f.current;
|
|
2234
|
-
} }, { resolveContainers: C, mainTreeNodeRef: b, MainTreeNode: N } = Zs({ portals: S, defaultContainers: [U] }), q = p !== null ? (p &
|
|
2234
|
+
} }, { resolveContainers: C, mainTreeNodeRef: b, MainTreeNode: N } = Zs({ portals: S, defaultContainers: [U] }), q = p !== null ? (p & pe.Closing) === pe.Closing : !1;
|
|
2235
2235
|
ls(u || q ? !1 : k, { allowed: J(() => {
|
|
2236
2236
|
var M, T;
|
|
2237
2237
|
return [(T = (M = f.current) == null ? void 0 : M.closest("[data-headlessui-portal]")) != null ? T : null];
|
|
@@ -2253,11 +2253,11 @@ function ga(e, t) {
|
|
|
2253
2253
|
if (!c) throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");
|
|
2254
2254
|
if (!i && typeof e.open != "boolean") throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);
|
|
2255
2255
|
if (typeof e.onClose != "function") throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);
|
|
2256
|
-
return (r !== void 0 || n) && !o.static ? I.createElement(
|
|
2256
|
+
return (r !== void 0 || n) && !o.static ? I.createElement(_e, { show: r, transition: n, unmount: o.unmount }, I.createElement(lr, { ref: t, ...o })) : I.createElement(lr, { ref: t, open: r, ...o });
|
|
2257
2257
|
}
|
|
2258
2258
|
let wa = "div";
|
|
2259
2259
|
function ba(e, t) {
|
|
2260
|
-
let n = Fe(), { id: r = `headlessui-dialog-panel-${n}`, transition: o = !1, ...i } = e, [{ dialogState: s }, c] = At("Dialog.Panel"), a =
|
|
2260
|
+
let n = Fe(), { id: r = `headlessui-dialog-panel-${n}`, transition: o = !1, ...i } = e, [{ dialogState: s }, c] = At("Dialog.Panel"), a = ye(t, c.panelRef), u = V(() => ({ open: s === 0 }), [s]), d = J((l) => {
|
|
2261
2261
|
l.stopPropagation();
|
|
2262
2262
|
});
|
|
2263
2263
|
return I.createElement(o ? Ln : G, null, ue({ ourProps: { ref: a, id: r, onClick: d }, theirProps: i, slot: u, defaultTag: wa, name: "Dialog.Panel" }));
|
|
@@ -2269,7 +2269,7 @@ function $a(e, t) {
|
|
|
2269
2269
|
}
|
|
2270
2270
|
let Ta = "h2";
|
|
2271
2271
|
function ka(e, t) {
|
|
2272
|
-
let n = Fe(), { id: r = `headlessui-dialog-title-${n}`, ...o } = e, [{ dialogState: i, setTitleId: s }] = At("Dialog.Title"), c =
|
|
2272
|
+
let n = Fe(), { id: r = `headlessui-dialog-title-${n}`, ...o } = e, [{ dialogState: i, setTitleId: s }] = At("Dialog.Title"), c = ye(t);
|
|
2273
2273
|
W(() => (s(r), () => s(null)), [r, s]);
|
|
2274
2274
|
let a = V(() => ({ open: i === 0 }), [i]);
|
|
2275
2275
|
return ue({ ourProps: { ref: c, id: r }, theirProps: o, slot: a, defaultTag: Ta, name: "Dialog.Title" });
|
|
@@ -2285,7 +2285,7 @@ const xa = "_root_1duny_1", Ma = "_modal_1duny_10", Pa = "_container_1duny_13",
|
|
|
2285
2285
|
close: Na
|
|
2286
2286
|
}, Aa = "_root_1h6qm_1", Ia = {
|
|
2287
2287
|
root: Aa
|
|
2288
|
-
},
|
|
2288
|
+
}, Te = (e) => {
|
|
2289
2289
|
const {
|
|
2290
2290
|
children: t,
|
|
2291
2291
|
size: n = "md",
|
|
@@ -2320,27 +2320,27 @@ const xa = "_root_1duny_1", Ma = "_modal_1duny_10", Pa = "_container_1duny_13",
|
|
|
2320
2320
|
children: t
|
|
2321
2321
|
}
|
|
2322
2322
|
);
|
|
2323
|
-
}, Da = (e) => /* @__PURE__ */ h(
|
|
2323
|
+
}, Da = (e) => /* @__PURE__ */ h(Te, { ...e, children: /* @__PURE__ */ h("path", { d: "M10 2a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5A.75.75 0 0110 2zM10 15a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5A.75.75 0 0110 15zM10 7a3 3 0 100 6 3 3 0 000-6zM15.657 5.404a.75.75 0 10-1.06-1.06l-1.061 1.06a.75.75 0 001.06 1.06l1.06-1.06zM6.464 14.596a.75.75 0 10-1.06-1.06l-1.06 1.06a.75.75 0 001.06 1.06l1.06-1.06zM18 10a.75.75 0 01-.75.75h-1.5a.75.75 0 010-1.5h1.5A.75.75 0 0118 10zM5 10a.75.75 0 01-.75.75h-1.5a.75.75 0 010-1.5h1.5A.75.75 0 015 10zM14.596 15.657a.75.75 0 001.06-1.06l-1.06-1.061a.75.75 0 10-1.06 1.06l1.06 1.06zM5.404 6.464a.75.75 0 001.06-1.06l-1.06-1.06a.75.75 0 10-1.061 1.06l1.06 1.06z" }) }), Wo = (e) => /* @__PURE__ */ h(Te, { ...e, children: /* @__PURE__ */ h(
|
|
2324
2324
|
"path",
|
|
2325
2325
|
{
|
|
2326
2326
|
fillRule: "evenodd",
|
|
2327
2327
|
d: "M7.455 2.004a.75.75 0 01.26.77 7 7 0 009.958 7.967.75.75 0 011.067.853A8.5 8.5 0 116.647 1.921a.75.75 0 01.808.083z",
|
|
2328
2328
|
clipRule: "evenodd"
|
|
2329
2329
|
}
|
|
2330
|
-
) }), Ra = (e) => /* @__PURE__ */ h(
|
|
2330
|
+
) }), Ra = (e) => /* @__PURE__ */ h(Te, { ...e, viewBox: "0 0 24 24", children: [
|
|
2331
2331
|
/* @__PURE__ */ h("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2332
2332
|
/* @__PURE__ */ h("path", { d: "M19.07 4.93l-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s6-2.69 6-6c0-1.66-.67-3.16-1.76-4.24l-1.41 1.41C15.55 9.9 16 10.9 16 12c0 2.21-1.79 4-4 4s-4-1.79-4-4c0-1.86 1.28-3.41 3-3.86v2.14c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2s2-.9 2-2c0-.74-.4-1.38-1-1.72V2h-1C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-2.76-1.12-5.26-2.93-7.07z" })
|
|
2333
|
-
] }), Oa = (e) => /* @__PURE__ */ h(
|
|
2333
|
+
] }), Oa = (e) => /* @__PURE__ */ h(Te, { ...e, viewBox: "0 0 24 24", children: [
|
|
2334
2334
|
/* @__PURE__ */ h("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2335
2335
|
/* @__PURE__ */ h("path", { d: "M3.72 6.04c.47.46 1.21.48 1.71.06.37-.32.69-.51.87-.43.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1h1.21c.69 0 1.25-.56 1.25-1.25s-.56-1.25-1.25-1.25h-1.22c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3c-1.09 0-2.04.63-2.7 1.22-.53.48-.53 1.32-.02 1.82zm10.16 12.51c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z" })
|
|
2336
|
-
] }), ur = (e) => /* @__PURE__ */ h(
|
|
2336
|
+
] }), ur = (e) => /* @__PURE__ */ h(Te, { ...e, viewBox: "0 0 24 24", children: [
|
|
2337
2337
|
/* @__PURE__ */ h("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2338
2338
|
/* @__PURE__ */ h("path", { d: "M3.72 6.04c.47.46 1.21.48 1.71.06.37-.32.69-.51.87-.43.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1h1.21c.69 0 1.25-.56 1.25-1.25s-.56-1.25-1.25-1.25h-1.22c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3c-1.09 0-2.04.63-2.7 1.22-.53.48-.53 1.32-.02 1.82zm10.16 12.51c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z" })
|
|
2339
|
-
] }), Ha = (e) => /* @__PURE__ */ h(
|
|
2339
|
+
] }), Ha = (e) => /* @__PURE__ */ h(Te, { ...e, children: [
|
|
2340
2340
|
/* @__PURE__ */ h("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2341
2341
|
/* @__PURE__ */ h("path", { d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm0 7c-2.67 0-8 1.34-8 4v2c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-2c0-2.66-5.33-4-8-4zm6 5H6v-.99c.2-.72 3.3-2.01 6-2.01s5.8 1.29 6 2v1z" })
|
|
2342
|
-
] }), Wa = (e) => /* @__PURE__ */ h(
|
|
2343
|
-
class
|
|
2342
|
+
] }), Wa = (e) => /* @__PURE__ */ h(Te, { ...e, children: /* @__PURE__ */ h("path", { d: "M18,10l-1.77-2.03l0.25-2.69l-2.63-0.6l-1.37-2.32L10,3.43L7.53,2.36L6.15,4.68L3.53,5.28l0.25,2.69L2,10l1.77,2.03 l-0.25,2.69l2.63,0.6l1.37,2.32L10,16.56l2.47,1.07l1.37-2.32l2.63-0.6l-0.25-2.69L18,10z M13.18,8.47l-4.24,4.24 c-0.2,0.2-0.51,0.2-0.71,0L6.82,11.3c-0.2-0.2-0.2-0.51,0-0.71s0.51-0.2,0.71,0l1.06,1.06l3.89-3.89c0.2-0.2,0.51-0.2,0.71,0 S13.38,8.28,13.18,8.47z" }) }), An = (e) => /* @__PURE__ */ h(Te, { ...e, viewBox: "0 0 24 24", children: /* @__PURE__ */ h("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" }) }), Ua = (e) => /* @__PURE__ */ h(Te, { ...e, children: /* @__PURE__ */ h("path", { d: "M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z" }) });
|
|
2343
|
+
class de {
|
|
2344
2344
|
static loadVision() {
|
|
2345
2345
|
return import(
|
|
2346
2346
|
/* webpackIgnore: true */
|
|
@@ -2348,22 +2348,35 @@ class Se {
|
|
|
2348
2348
|
"https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@0.10.12"
|
|
2349
2349
|
);
|
|
2350
2350
|
}
|
|
2351
|
-
static async
|
|
2351
|
+
static async createDetectorWithDelegate(t, n) {
|
|
2352
|
+
const { FaceLandmarker: r } = await de.loadVision();
|
|
2353
|
+
return r.createFromOptions(t, {
|
|
2354
|
+
baseOptions: {
|
|
2355
|
+
modelAssetPath: "https://storage.googleapis.com/mediapipe-models/face_landmarker/face_landmarker/float16/1/face_landmarker.task",
|
|
2356
|
+
delegate: n
|
|
2357
|
+
},
|
|
2358
|
+
outputFaceBlendshapes: !0,
|
|
2359
|
+
runningMode: "IMAGE",
|
|
2360
|
+
numFaces: 1
|
|
2361
|
+
});
|
|
2362
|
+
}
|
|
2363
|
+
static async loadDetector(t) {
|
|
2352
2364
|
try {
|
|
2353
|
-
const {
|
|
2365
|
+
const { FilesetResolver: n } = await de.loadVision(), r = await n.forVisionTasks(
|
|
2354
2366
|
"https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@0.10.12/wasm"
|
|
2355
2367
|
);
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2368
|
+
if (t != null && t.preferCpu)
|
|
2369
|
+
return await de.createDetectorWithDelegate(r, "CPU");
|
|
2370
|
+
try {
|
|
2371
|
+
return await de.createDetectorWithDelegate(r, "GPU");
|
|
2372
|
+
} catch (o) {
|
|
2373
|
+
return console.warn(
|
|
2374
|
+
"MediaPipe GPU initialization failed, retrying with CPU delegate.",
|
|
2375
|
+
o
|
|
2376
|
+
), await de.createDetectorWithDelegate(r, "CPU");
|
|
2377
|
+
}
|
|
2378
|
+
} catch (n) {
|
|
2379
|
+
return Promise.reject(n);
|
|
2367
2380
|
}
|
|
2368
2381
|
}
|
|
2369
2382
|
static denormalizeKeypoints(t, n, r) {
|
|
@@ -2407,11 +2420,11 @@ class Se {
|
|
|
2407
2420
|
const { width: o, height: i } = n, { faceLandmarks: s, faceBlendshapes: c } = await t.detect(n);
|
|
2408
2421
|
if (s.length === 0)
|
|
2409
2422
|
return { faces: [], blendShapes: [], inBox: !1 };
|
|
2410
|
-
const a =
|
|
2423
|
+
const a = de.denormalizeKeypoints(
|
|
2411
2424
|
s[0],
|
|
2412
2425
|
o,
|
|
2413
2426
|
i
|
|
2414
|
-
), { box: u, inBox: d } =
|
|
2427
|
+
), { box: u, inBox: d } = de.getBoundingBox(
|
|
2415
2428
|
a,
|
|
2416
2429
|
o,
|
|
2417
2430
|
i
|
|
@@ -2606,7 +2619,7 @@ const Me = (e, t) => {
|
|
|
2606
2619
|
key: "VALIDATION_ERROR",
|
|
2607
2620
|
message: "We detected an error during your test. Please TRY AGAIN"
|
|
2608
2621
|
};
|
|
2609
|
-
}, Qa = "youverify-liveness-web", ec = "1.1.
|
|
2622
|
+
}, Qa = "youverify-liveness-web", ec = "1.1.3", tc = "module", nc = [
|
|
2610
2623
|
"dist"
|
|
2611
2624
|
], rc = "./dist/index.umd.cjs", oc = "./dist/index.js", ic = "./dist/index.d.ts", sc = {
|
|
2612
2625
|
".": {
|
|
@@ -2863,7 +2876,7 @@ function mc(e) {
|
|
|
2863
2876
|
const F = new Image();
|
|
2864
2877
|
F.crossOrigin = "Anonymous", F.src = Ka, F.onload = () => {
|
|
2865
2878
|
const ne = In(F, F.width, F.height);
|
|
2866
|
-
|
|
2879
|
+
de.detectFaces(R, ne);
|
|
2867
2880
|
};
|
|
2868
2881
|
}, Z = async () => {
|
|
2869
2882
|
if (!O.current) {
|
|
@@ -2942,7 +2955,9 @@ function mc(e) {
|
|
|
2942
2955
|
});
|
|
2943
2956
|
return;
|
|
2944
2957
|
}
|
|
2945
|
-
const R = await
|
|
2958
|
+
const R = await de.loadDetector({
|
|
2959
|
+
preferCpu: y
|
|
2960
|
+
});
|
|
2946
2961
|
pr = R, Y(R), U(R);
|
|
2947
2962
|
};
|
|
2948
2963
|
return W(() => {
|
|
@@ -2995,7 +3010,7 @@ function mc(e) {
|
|
|
2995
3010
|
}
|
|
2996
3011
|
);
|
|
2997
3012
|
}
|
|
2998
|
-
function
|
|
3013
|
+
function me() {
|
|
2999
3014
|
return oe(zo);
|
|
3000
3015
|
}
|
|
3001
3016
|
const _c = "_root_vqy7d_1", yc = "_container_vqy7d_4", gc = "_lhs_vqy7d_7", wc = "_info_vqy7d_11", bc = "_active_vqy7d_32", Ec = "_completed_vqy7d_39", $c = "_rhs_vqy7d_62", Tc = "_profile_vqy7d_65", kc = "_avatar_vqy7d_68", Sc = "_main_vqy7d_81", Cc = "_content_vqy7d_84", ie = {
|
|
@@ -3016,7 +3031,7 @@ const _c = "_root_vqy7d_1", yc = "_container_vqy7d_4", gc = "_lhs_vqy7d_7", wc =
|
|
|
3016
3031
|
brand: Mc
|
|
3017
3032
|
};
|
|
3018
3033
|
function Pc() {
|
|
3019
|
-
const { branding: e, isMobileAppWebView: t, onRequestClose: n, presentation: r } =
|
|
3034
|
+
const { branding: e, isMobileAppWebView: t, onRequestClose: n, presentation: r } = me();
|
|
3020
3035
|
return /* @__PURE__ */ h("div", { className: zt.root, children: /* @__PURE__ */ h("div", { className: zt.container, children: [
|
|
3021
3036
|
/* @__PURE__ */ h("div", { className: zt.brand, children: (e == null ? void 0 : e.logo) && !(e.hideLogoOnMobile && t) && /* @__PURE__ */ h(
|
|
3022
3037
|
"img",
|
|
@@ -3039,7 +3054,7 @@ function Pc() {
|
|
|
3039
3054
|
}
|
|
3040
3055
|
const vr = "colorScheme";
|
|
3041
3056
|
function Vo() {
|
|
3042
|
-
const { namespace: e } =
|
|
3057
|
+
const { namespace: e } = me(), t = () => localStorage.getItem(vr), n = (o = null) => {
|
|
3043
3058
|
o && localStorage.setItem(vr, o);
|
|
3044
3059
|
const i = `${e}-color-scheme`, s = document.documentElement;
|
|
3045
3060
|
o && o === "dark" ? s == null || s.setAttribute(i, "dark") : s == null || s.removeAttribute(i);
|
|
@@ -3108,7 +3123,7 @@ function Uc(e) {
|
|
|
3108
3123
|
}, [r]);
|
|
3109
3124
|
return /* @__PURE__ */ h("div", { className: i, children: [
|
|
3110
3125
|
/* @__PURE__ */ h(
|
|
3111
|
-
|
|
3126
|
+
_e,
|
|
3112
3127
|
{
|
|
3113
3128
|
as: "div",
|
|
3114
3129
|
show: r,
|
|
@@ -3140,7 +3155,7 @@ function Uc(e) {
|
|
|
3140
3155
|
}
|
|
3141
3156
|
),
|
|
3142
3157
|
/* @__PURE__ */ h(
|
|
3143
|
-
|
|
3158
|
+
_e,
|
|
3144
3159
|
{
|
|
3145
3160
|
as: "div",
|
|
3146
3161
|
show: !r,
|
|
@@ -3183,7 +3198,7 @@ function It(e = {}) {
|
|
|
3183
3198
|
},
|
|
3184
3199
|
onError: o = () => {
|
|
3185
3200
|
}
|
|
3186
|
-
} = e, { faceDetector: i } =
|
|
3201
|
+
} = e, { faceDetector: i } = me(), { checkFacialFeatures: s, checkZoomLevel: c, checkInFrame: a } = Bo(), u = w(null), d = (p) => {
|
|
3187
3202
|
var f;
|
|
3188
3203
|
try {
|
|
3189
3204
|
if (p.length === 0)
|
|
@@ -3248,7 +3263,7 @@ function It(e = {}) {
|
|
|
3248
3263
|
y,
|
|
3249
3264
|
m
|
|
3250
3265
|
// frameSize,
|
|
3251
|
-
), g = await
|
|
3266
|
+
), g = await de.detectFaces(i, v);
|
|
3252
3267
|
d(g.faces);
|
|
3253
3268
|
} };
|
|
3254
3269
|
}
|
|
@@ -3317,7 +3332,7 @@ function Dt(e) {
|
|
|
3317
3332
|
},
|
|
3318
3333
|
onReset: s = () => {
|
|
3319
3334
|
}
|
|
3320
|
-
} = e, [c, a] = x(!1), { completedCount: u, tasks: d, nextTask: l, branding: p, isMobileAppWebView: f } =
|
|
3335
|
+
} = e, [c, a] = x(!1), { completedCount: u, tasks: d, nextTask: l, branding: p, isMobileAppWebView: f } = me(), _ = V(
|
|
3321
3336
|
() => u * 100 / d.length,
|
|
3322
3337
|
[u, d.length]
|
|
3323
3338
|
);
|
|
@@ -3338,7 +3353,7 @@ function Dt(e) {
|
|
|
3338
3353
|
}
|
|
3339
3354
|
),
|
|
3340
3355
|
/* @__PURE__ */ h(
|
|
3341
|
-
|
|
3356
|
+
_e,
|
|
3342
3357
|
{
|
|
3343
3358
|
as: "div",
|
|
3344
3359
|
show: c && !r && !o,
|
|
@@ -3372,7 +3387,7 @@ function Dt(e) {
|
|
|
3372
3387
|
}
|
|
3373
3388
|
),
|
|
3374
3389
|
/* @__PURE__ */ h(
|
|
3375
|
-
|
|
3390
|
+
_e,
|
|
3376
3391
|
{
|
|
3377
3392
|
show: o,
|
|
3378
3393
|
as: "div",
|
|
@@ -3417,7 +3432,7 @@ function Rt(e = {}) {
|
|
|
3417
3432
|
}
|
|
3418
3433
|
const nl = 1, Vt = 8, Er = "Place face in frame";
|
|
3419
3434
|
function rl(e) {
|
|
3420
|
-
const { difficulty: t, timeout: n } = e, { saveStream: r } =
|
|
3435
|
+
const { difficulty: t, timeout: n } = e, { saveStream: r } = me(), [o, i] = x([]), [s, c] = x(Er), [a, u] = x(!1), [d, l] = x(!1), p = w(/* @__PURE__ */ new Set()), f = w(!1), _ = w(null), {
|
|
3421
3436
|
reset: y,
|
|
3422
3437
|
start: m,
|
|
3423
3438
|
stop: v,
|
|
@@ -3512,7 +3527,7 @@ const ll = {
|
|
|
3512
3527
|
answer: !0
|
|
3513
3528
|
}, ul = "Wrong answer. Try again", $r = "Keep face in camera";
|
|
3514
3529
|
function dl(e) {
|
|
3515
|
-
const { difficulty: t, questions: n = [ll], timeout: r } = e, [o, i] = x($r), [s, c] = x(!1), [a, u] = x(!1), { saveStream: d } =
|
|
3530
|
+
const { difficulty: t, questions: n = [ll], timeout: r } = e, [o, i] = x($r), [s, c] = x(!1), [a, u] = x(!1), { saveStream: d } = me(), l = w("inactive"), p = w(0), f = w(!1), _ = w(null), y = w(null), m = w(null), v = () => {
|
|
3516
3531
|
_.current && clearTimeout(_.current), y.current && clearTimeout(y.current);
|
|
3517
3532
|
}, {
|
|
3518
3533
|
reset: g,
|
|
@@ -3754,7 +3769,7 @@ function Yo(e) {
|
|
|
3754
3769
|
var Ko = /* @__PURE__ */ ((e) => (e.open_mouth = "open_mouth", e.blink = "blink", e))(Ko || {});
|
|
3755
3770
|
const Tr = Xa(Object.keys(Ko)), kr = "Keep face in camera";
|
|
3756
3771
|
function vl(e) {
|
|
3757
|
-
const { difficulty: t, maxBlinks: n = 3, maxNods: r = 3, timeout: o } = e, i = w(0), [s, c] = x(kr), [a, u] = x(!1), [d, l] = x(null), p = w(!1), { saveStream: f } =
|
|
3772
|
+
const { difficulty: t, maxBlinks: n = 3, maxNods: r = 3, timeout: o } = e, i = w(0), [s, c] = x(kr), [a, u] = x(!1), [d, l] = x(null), p = w(!1), { saveStream: f } = me(), {
|
|
3758
3773
|
reset: _,
|
|
3759
3774
|
start: y,
|
|
3760
3775
|
stop: m,
|
|
@@ -3825,7 +3840,7 @@ function vl(e) {
|
|
|
3825
3840
|
}
|
|
3826
3841
|
const Sr = "Keep face in camera";
|
|
3827
3842
|
function ml(e) {
|
|
3828
|
-
const { difficulty: t, maxBlinks: n = 3, timeout: r } = e, [o, i] = x(Sr), [s, c] = x(!1), [a, u] = x(null), d = w(!1), { saveStream: l } =
|
|
3843
|
+
const { difficulty: t, maxBlinks: n = 3, timeout: r } = e, [o, i] = x(Sr), [s, c] = x(!1), [a, u] = x(null), d = w(!1), { saveStream: l } = me(), {
|
|
3829
3844
|
reset: p,
|
|
3830
3845
|
start: f,
|
|
3831
3846
|
stop: _,
|
|
@@ -3914,7 +3929,7 @@ function gl(e = {}) {
|
|
|
3914
3929
|
onMessage: i = () => {
|
|
3915
3930
|
},
|
|
3916
3931
|
livenessTimeout: s
|
|
3917
|
-
} = e, { faceDetector: c, savePhoto: a } =
|
|
3932
|
+
} = e, { faceDetector: c, savePhoto: a } = me(), { checkFacialFeatures: u, checkZoomLevel: d, checkInFrame: l } = Bo(), p = w(null), f = w(null), _ = w(!1), y = w(null), m = w(!1), v = w([]), g = z(() => {
|
|
3918
3933
|
f.current && clearTimeout(f.current), y.current && clearTimeout(y.current), v.current.forEach(clearTimeout), m.current = !1, _.current = !0;
|
|
3919
3934
|
}, []), $ = w(null), E = w(null), k = w([]), S = 10, A = 7.5, U = 2, C = w({
|
|
3920
3935
|
sharpness: 0,
|
|
@@ -4083,7 +4098,7 @@ function gl(e = {}) {
|
|
|
4083
4098
|
!m.current && L.readyState >= 2 && !_.current && (m.current = !0, y.current = setTimeout(() => {
|
|
4084
4099
|
o("Liveness check TIMED OUT. Please try again."), g();
|
|
4085
4100
|
}, s));
|
|
4086
|
-
const { faces: j, blendShapes: Y, inBox: Z } = await
|
|
4101
|
+
const { faces: j, blendShapes: Y, inBox: Z } = await de.detectFaces(
|
|
4087
4102
|
c,
|
|
4088
4103
|
T
|
|
4089
4104
|
);
|
|
@@ -4101,7 +4116,7 @@ function Tl(e) {
|
|
|
4101
4116
|
const r = [Yt.container];
|
|
4102
4117
|
return t && r.push(Yt.focused), r.join(" ");
|
|
4103
4118
|
}, [t]);
|
|
4104
|
-
return /* @__PURE__ */ h("div", { className: n, children: /* @__PURE__ */ h(
|
|
4119
|
+
return /* @__PURE__ */ h("div", { className: n, children: /* @__PURE__ */ h(_e, { as: "div", className: "yvlw-absolute", children: /* @__PURE__ */ h("div", { className: Yt.marker, children: [
|
|
4105
4120
|
/* @__PURE__ */ h("div", {}),
|
|
4106
4121
|
/* @__PURE__ */ h("div", {}),
|
|
4107
4122
|
/* @__PURE__ */ h("div", {}),
|
|
@@ -4482,7 +4497,7 @@ function xl(e) {
|
|
|
4482
4497
|
sessionToken: v,
|
|
4483
4498
|
sandboxEnvironment: g,
|
|
4484
4499
|
publicKey: $
|
|
4485
|
-
} =
|
|
4500
|
+
} = me(), { forceDevUrl: E } = me(), [k, S] = x(!1), [A, U] = x(!1), [C, b] = x(null), [N, q] = x(!1), [O, B] = x(!1), [te, ee] = x(0), [P, L] = x(null);
|
|
4486
4501
|
W(() => {
|
|
4487
4502
|
const F = r();
|
|
4488
4503
|
o(F);
|
|
@@ -4567,7 +4582,7 @@ function xl(e) {
|
|
|
4567
4582
|
] }),
|
|
4568
4583
|
/* @__PURE__ */ h("div", { className: ie.main, children: /* @__PURE__ */ h("div", { className: ie.content, children: [
|
|
4569
4584
|
/* @__PURE__ */ h(
|
|
4570
|
-
|
|
4585
|
+
_e,
|
|
4571
4586
|
{
|
|
4572
4587
|
show: !A,
|
|
4573
4588
|
as: "div",
|
|
@@ -4590,7 +4605,7 @@ function xl(e) {
|
|
|
4590
4605
|
}
|
|
4591
4606
|
),
|
|
4592
4607
|
/* @__PURE__ */ h(
|
|
4593
|
-
|
|
4608
|
+
_e,
|
|
4594
4609
|
{
|
|
4595
4610
|
show: A && !O,
|
|
4596
4611
|
as: "div",
|
|
@@ -4638,7 +4653,7 @@ function xl(e) {
|
|
|
4638
4653
|
break;
|
|
4639
4654
|
}
|
|
4640
4655
|
return /* @__PURE__ */ h(
|
|
4641
|
-
|
|
4656
|
+
_e,
|
|
4642
4657
|
{
|
|
4643
4658
|
show: A && O && !a && c === ne,
|
|
4644
4659
|
appear: !0,
|
|
@@ -4655,7 +4670,7 @@ function xl(e) {
|
|
|
4655
4670
|
);
|
|
4656
4671
|
}),
|
|
4657
4672
|
/* @__PURE__ */ h(
|
|
4658
|
-
|
|
4673
|
+
_e,
|
|
4659
4674
|
{
|
|
4660
4675
|
show: A && a,
|
|
4661
4676
|
as: "div",
|