youverify-liveness-web 1.0.2 → 1.0.3

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 CHANGED
@@ -1,5 +1,5 @@
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-mt-3{margin-top:.75rem}.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
- var ot, O, xr, xe, On, Mr, Xt, vn, Zt, Jt, Pr, rt = {}, Nr = [], Ko = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Tt = Array.isArray;
2
+ var ot, H, xr, xe, On, Mr, Xt, vn, Zt, Jt, Pr, rt = {}, Nr = [], Ko = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Tt = Array.isArray;
3
3
  function me(e, t) {
4
4
  for (var n in t) e[n] = t[n];
5
5
  return e;
@@ -16,12 +16,12 @@ function de(e, t, n) {
16
16
  }
17
17
  function Je(e, t, n, r, o) {
18
18
  var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: o ?? ++xr, __i: -1, __u: 0 };
19
- return o == null && O.vnode != null && O.vnode(i), i;
19
+ return o == null && H.vnode != null && H.vnode(i), i;
20
20
  }
21
21
  function mn() {
22
22
  return { current: null };
23
23
  }
24
- function q(e) {
24
+ function Y(e) {
25
25
  return e.children;
26
26
  }
27
27
  function ue(e, t) {
@@ -43,27 +43,27 @@ function Ar(e) {
43
43
  }
44
44
  }
45
45
  function Qt(e) {
46
- (!e.__d && (e.__d = !0) && xe.push(e) && !_t.__r++ || On !== O.debounceRendering) && ((On = O.debounceRendering) || Mr)(_t);
46
+ (!e.__d && (e.__d = !0) && xe.push(e) && !_t.__r++ || On !== H.debounceRendering) && ((On = H.debounceRendering) || Mr)(_t);
47
47
  }
48
48
  function _t() {
49
49
  var e, t, n, r, o, i, s, a;
50
- for (xe.sort(Xt); e = xe.shift(); ) e.__d && (t = xe.length, r = void 0, i = (o = (n = e).__v).__e, s = [], a = [], n.__P && ((r = me({}, o)).__v = o.__v + 1, O.vnode && O.vnode(r), _n(n.__P, r, o, n.__n, n.__P.namespaceURI, 32 & o.__u ? [i] : null, s, i ?? Ae(o), !!(32 & o.__u), a), r.__v = o.__v, r.__.__k[r.__i] = r, Dr(s, r, a), r.__e != i && Ar(r)), xe.length > t && xe.sort(Xt));
50
+ for (xe.sort(Xt); e = xe.shift(); ) e.__d && (t = xe.length, r = void 0, i = (o = (n = e).__v).__e, s = [], a = [], n.__P && ((r = me({}, o)).__v = o.__v + 1, H.vnode && H.vnode(r), _n(n.__P, r, o, n.__n, n.__P.namespaceURI, 32 & o.__u ? [i] : null, s, i ?? Ae(o), !!(32 & o.__u), a), r.__v = o.__v, r.__.__k[r.__i] = r, Dr(s, r, a), r.__e != i && Ar(r)), xe.length > t && xe.sort(Xt));
51
51
  _t.__r = 0;
52
52
  }
53
- function Ir(e, t, n, r, o, i, s, a, l, u, d) {
54
- var c, f, p, _, y, m = r && r.__k || Nr, v = t.length;
55
- for (n.__d = l, Xo(n, t, m), l = n.__d, c = 0; c < v; c++) (p = n.__k[c]) != null && typeof p != "boolean" && typeof p != "function" && (f = p.__i === -1 ? rt : m[p.__i] || rt, p.__i = c, _n(e, p, f, o, i, s, a, l, u, d), _ = p.__e, p.ref && f.ref != p.ref && (f.ref && yn(f.ref, null, p), d.push(p.ref, p.__c || _, p)), y == null && _ != null && (y = _), 65536 & p.__u || f.__k === p.__k ? l = Rr(p, l, e) : typeof p.type == "function" && p.__d !== void 0 ? l = p.__d : _ && (l = _.nextSibling), p.__d = void 0, p.__u &= -196609);
56
- n.__d = l, n.__e = y;
53
+ function Rr(e, t, n, r, o, i, s, a, c, u, d) {
54
+ var l, f, p, _, y, m = r && r.__k || Nr, v = t.length;
55
+ for (n.__d = c, Xo(n, t, m), c = n.__d, l = 0; l < v; l++) (p = n.__k[l]) != null && typeof p != "boolean" && typeof p != "function" && (f = p.__i === -1 ? rt : m[p.__i] || rt, p.__i = l, _n(e, p, f, o, i, s, a, c, u, d), _ = p.__e, p.ref && f.ref != p.ref && (f.ref && yn(f.ref, null, p), d.push(p.ref, p.__c || _, p)), y == null && _ != null && (y = _), 65536 & p.__u || f.__k === p.__k ? c = Ir(p, c, e) : typeof p.type == "function" && p.__d !== void 0 ? c = p.__d : _ && (c = _.nextSibling), p.__d = void 0, p.__u &= -196609);
56
+ n.__d = c, n.__e = y;
57
57
  }
58
58
  function Xo(e, t, n) {
59
- var r, o, i, s, a, l = t.length, u = n.length, d = u, c = 0;
60
- for (e.__k = [], r = 0; r < l; r++) s = r + c, (o = e.__k[r] = (o = t[r]) == null || typeof o == "boolean" || typeof o == "function" ? null : typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? Je(null, o, null, null, null) : Tt(o) ? Je(q, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? Je(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o) != null ? (o.__ = e, o.__b = e.__b + 1, a = Zo(o, n, s, d), o.__i = a, i = null, a !== -1 && (d--, (i = n[a]) && (i.__u |= 131072)), i == null || i.__v === null ? (a == -1 && c--, typeof o.type != "function" && (o.__u |= 65536)) : a !== s && (a == s - 1 ? c = a - s : a == s + 1 ? c++ : a > s ? d > l - s ? c += a - s : c-- : a < s && c++, a !== r + c && (o.__u |= 65536))) : (i = n[s]) && i.key == null && i.__e && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = Ae(i)), en(i, i, !1), n[s] = null, d--);
59
+ var r, o, i, s, a, c = t.length, u = n.length, d = u, l = 0;
60
+ for (e.__k = [], r = 0; r < c; r++) s = r + l, (o = e.__k[r] = (o = t[r]) == null || typeof o == "boolean" || typeof o == "function" ? null : typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? Je(null, o, null, null, null) : Tt(o) ? Je(Y, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? Je(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o) != null ? (o.__ = e, o.__b = e.__b + 1, a = Zo(o, n, s, d), o.__i = a, i = null, a !== -1 && (d--, (i = n[a]) && (i.__u |= 131072)), i == null || i.__v === null ? (a == -1 && l--, typeof o.type != "function" && (o.__u |= 65536)) : a !== s && (a == s - 1 ? l = a - s : a == s + 1 ? l++ : a > s ? d > c - s ? l += a - s : l-- : a < s && l++, a !== r + l && (o.__u |= 65536))) : (i = n[s]) && i.key == null && i.__e && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = Ae(i)), en(i, i, !1), n[s] = null, d--);
61
61
  if (d) for (r = 0; r < u; r++) (i = n[r]) != null && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = Ae(i)), en(i, i));
62
62
  }
63
- function Rr(e, t, n) {
63
+ function Ir(e, t, n) {
64
64
  var r, o;
65
65
  if (typeof e.type == "function") {
66
- for (r = e.__k, o = 0; r && o < r.length; o++) r[o] && (r[o].__ = e, t = Rr(r[o], t, n));
66
+ for (r = e.__k, o = 0; r && o < r.length; o++) r[o] && (r[o].__ = e, t = Ir(r[o], t, n));
67
67
  return t;
68
68
  }
69
69
  e.__e != t && (t && e.type && !n.contains(t) && (t = Ae(e)), n.insertBefore(e.__e, t || null), t = e.__e);
@@ -78,15 +78,15 @@ function _e(e, t) {
78
78
  }) : t.push(e)), t;
79
79
  }
80
80
  function Zo(e, t, n, r) {
81
- var o = e.key, i = e.type, s = n - 1, a = n + 1, l = t[n];
82
- if (l === null || l && o == l.key && i === l.type && !(131072 & l.__u)) return n;
83
- if (r > (l != null && !(131072 & l.__u) ? 1 : 0)) for (; s >= 0 || a < t.length; ) {
81
+ var o = e.key, i = e.type, s = n - 1, a = n + 1, c = t[n];
82
+ if (c === null || c && o == c.key && i === c.type && !(131072 & c.__u)) return n;
83
+ if (r > (c != null && !(131072 & c.__u) ? 1 : 0)) for (; s >= 0 || a < t.length; ) {
84
84
  if (s >= 0) {
85
- if ((l = t[s]) && !(131072 & l.__u) && o == l.key && i === l.type) return s;
85
+ if ((c = t[s]) && !(131072 & c.__u) && o == c.key && i === c.type) return s;
86
86
  s--;
87
87
  }
88
88
  if (a < t.length) {
89
- if ((l = t[a]) && !(131072 & l.__u) && o == l.key && i === l.type) return a;
89
+ if ((c = t[a]) && !(131072 & c.__u) && o == c.key && i === c.type) return a;
90
90
  a++;
91
91
  }
92
92
  }
@@ -119,60 +119,60 @@ function Wn(e) {
119
119
  var n = this.l[t.type + e];
120
120
  if (t.t == null) t.t = vn++;
121
121
  else if (t.t < n.u) return;
122
- return n(O.event ? O.event(t) : t);
122
+ return n(H.event ? H.event(t) : t);
123
123
  }
124
124
  };
125
125
  }
126
- function _n(e, t, n, r, o, i, s, a, l, u) {
127
- var d, c, f, p, _, y, m, v, g, $, T, S, x, L, W, F, E = t.type;
126
+ function _n(e, t, n, r, o, i, s, a, c, u) {
127
+ var d, l, f, p, _, y, m, v, g, E, T, k, C, L, U, S, $ = t.type;
128
128
  if (t.constructor !== void 0) return null;
129
- 128 & n.__u && (l = !!(32 & n.__u), i = [a = t.__e = n.__e]), (d = O.__b) && d(t);
130
- e: if (typeof E == "function") try {
131
- if (v = t.props, g = "prototype" in E && E.prototype.render, $ = (d = E.contextType) && r[d.__c], T = d ? $ ? $.props.value : d.__ : r, n.__c ? m = (c = t.__c = n.__c).__ = c.__E : (g ? t.__c = c = new E(v, T) : (t.__c = c = new ue(v, T), c.constructor = E, c.render = Qo), $ && $.sub(c), c.props = v, c.state || (c.state = {}), c.context = T, c.__n = r, f = c.__d = !0, c.__h = [], c._sb = []), g && c.__s == null && (c.__s = c.state), g && E.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = me({}, c.__s)), me(c.__s, E.getDerivedStateFromProps(v, c.__s))), p = c.props, _ = c.state, c.__v = t, f) g && E.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), g && c.componentDidMount != null && c.__h.push(c.componentDidMount);
129
+ 128 & n.__u && (c = !!(32 & n.__u), i = [a = t.__e = n.__e]), (d = H.__b) && d(t);
130
+ e: if (typeof $ == "function") try {
131
+ if (v = t.props, g = "prototype" in $ && $.prototype.render, E = (d = $.contextType) && r[d.__c], T = d ? E ? E.props.value : d.__ : r, n.__c ? m = (l = t.__c = n.__c).__ = l.__E : (g ? t.__c = l = new $(v, T) : (t.__c = l = new ue(v, T), l.constructor = $, l.render = Qo), E && E.sub(l), l.props = v, l.state || (l.state = {}), l.context = T, l.__n = r, f = l.__d = !0, l.__h = [], l._sb = []), g && l.__s == null && (l.__s = l.state), g && $.getDerivedStateFromProps != null && (l.__s == l.state && (l.__s = me({}, l.__s)), me(l.__s, $.getDerivedStateFromProps(v, l.__s))), p = l.props, _ = l.state, l.__v = t, f) g && $.getDerivedStateFromProps == null && l.componentWillMount != null && l.componentWillMount(), g && l.componentDidMount != null && l.__h.push(l.componentDidMount);
132
132
  else {
133
- if (g && E.getDerivedStateFromProps == null && v !== p && c.componentWillReceiveProps != null && c.componentWillReceiveProps(v, T), !c.__e && (c.shouldComponentUpdate != null && c.shouldComponentUpdate(v, c.__s, T) === !1 || t.__v === n.__v)) {
134
- for (t.__v !== n.__v && (c.props = v, c.state = c.__s, c.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function(A) {
133
+ if (g && $.getDerivedStateFromProps == null && v !== p && l.componentWillReceiveProps != null && l.componentWillReceiveProps(v, T), !l.__e && (l.shouldComponentUpdate != null && l.shouldComponentUpdate(v, l.__s, T) === !1 || t.__v === n.__v)) {
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(A) {
135
135
  A && (A.__ = t);
136
- }), S = 0; S < c._sb.length; S++) c.__h.push(c._sb[S]);
137
- c._sb = [], c.__h.length && s.push(c);
136
+ }), k = 0; k < l._sb.length; k++) l.__h.push(l._sb[k]);
137
+ l._sb = [], l.__h.length && s.push(l);
138
138
  break e;
139
139
  }
140
- c.componentWillUpdate != null && c.componentWillUpdate(v, c.__s, T), g && c.componentDidUpdate != null && c.__h.push(function() {
141
- c.componentDidUpdate(p, _, y);
140
+ l.componentWillUpdate != null && l.componentWillUpdate(v, l.__s, T), g && l.componentDidUpdate != null && l.__h.push(function() {
141
+ l.componentDidUpdate(p, _, y);
142
142
  });
143
143
  }
144
- if (c.context = T, c.props = v, c.__P = e, c.__e = !1, x = O.__r, L = 0, g) {
145
- for (c.state = c.__s, c.__d = !1, x && x(t), d = c.render(c.props, c.state, c.context), W = 0; W < c._sb.length; W++) c.__h.push(c._sb[W]);
146
- c._sb = [];
144
+ if (l.context = T, l.props = v, l.__P = e, l.__e = !1, C = H.__r, L = 0, g) {
145
+ for (l.state = l.__s, l.__d = !1, C && C(t), d = l.render(l.props, l.state, l.context), U = 0; U < l._sb.length; U++) l.__h.push(l._sb[U]);
146
+ l._sb = [];
147
147
  } else do
148
- c.__d = !1, x && x(t), d = c.render(c.props, c.state, c.context), c.state = c.__s;
149
- while (c.__d && ++L < 25);
150
- c.state = c.__s, c.getChildContext != null && (r = me(me({}, r), c.getChildContext())), g && !f && c.getSnapshotBeforeUpdate != null && (y = c.getSnapshotBeforeUpdate(p, _)), Ir(e, Tt(F = d != null && d.type === q && d.key == null ? d.props.children : d) ? F : [F], t, n, r, o, i, s, a, l, u), c.base = t.__e, t.__u &= -161, c.__h.length && s.push(c), m && (c.__E = c.__ = null);
148
+ l.__d = !1, C && C(t), d = l.render(l.props, l.state, l.context), l.state = l.__s;
149
+ while (l.__d && ++L < 25);
150
+ l.state = l.__s, l.getChildContext != null && (r = me(me({}, r), l.getChildContext())), g && !f && l.getSnapshotBeforeUpdate != null && (y = l.getSnapshotBeforeUpdate(p, _)), Rr(e, Tt(S = d != null && d.type === Y && d.key == null ? d.props.children : d) ? S : [S], t, n, r, o, i, s, a, c, u), l.base = t.__e, t.__u &= -161, l.__h.length && s.push(l), m && (l.__E = l.__ = null);
151
151
  } catch (A) {
152
- if (t.__v = null, l || i != null) {
153
- for (t.__u |= l ? 160 : 32; a && a.nodeType === 8 && a.nextSibling; ) a = a.nextSibling;
152
+ if (t.__v = null, c || i != null) {
153
+ for (t.__u |= c ? 160 : 32; a && a.nodeType === 8 && a.nextSibling; ) a = a.nextSibling;
154
154
  i[i.indexOf(a)] = null, t.__e = a;
155
155
  } else t.__e = n.__e, t.__k = n.__k;
156
- O.__e(A, t, n);
156
+ H.__e(A, t, n);
157
157
  }
158
- else i == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = Jo(n.__e, t, n, r, o, i, s, l, u);
159
- (d = O.diffed) && d(t);
158
+ else i == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = Jo(n.__e, t, n, r, o, i, s, c, u);
159
+ (d = H.diffed) && d(t);
160
160
  }
161
161
  function Dr(e, t, n) {
162
162
  t.__d = void 0;
163
163
  for (var r = 0; r < n.length; r++) yn(n[r], n[++r], n[++r]);
164
- O.__c && O.__c(t, e), e.some(function(o) {
164
+ H.__c && H.__c(t, e), e.some(function(o) {
165
165
  try {
166
166
  e = o.__h, o.__h = [], e.some(function(i) {
167
167
  i.call(o);
168
168
  });
169
169
  } catch (i) {
170
- O.__e(i, o.__v);
170
+ H.__e(i, o.__v);
171
171
  }
172
172
  });
173
173
  }
174
- function Jo(e, t, n, r, o, i, s, a, l) {
175
- var u, d, c, f, p, _, y, m = n.props, v = t.props, g = t.type;
174
+ function Jo(e, t, n, r, o, i, s, a, c) {
175
+ var u, d, l, f, p, _, y, m = n.props, v = t.props, g = t.type;
176
176
  if (g === "svg" ? o = "http://www.w3.org/2000/svg" : g === "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), i != null) {
177
177
  for (u = 0; u < i.length; u++) if ((p = i[u]) && "setAttribute" in p == !!g && (g ? p.localName === g : p.nodeType === 3)) {
178
178
  e = p, i[u] = null;
@@ -187,15 +187,15 @@ function Jo(e, t, n, r, o, i, s, a, l) {
187
187
  else {
188
188
  if (i = i && ot.call(e.childNodes), m = n.props || rt, !a && i != null) for (m = {}, u = 0; u < e.attributes.length; u++) m[(p = e.attributes[u]).name] = p.value;
189
189
  for (u in m) if (p = m[u], u != "children") {
190
- if (u == "dangerouslySetInnerHTML") c = p;
190
+ if (u == "dangerouslySetInnerHTML") l = p;
191
191
  else if (u !== "key" && !(u in v)) {
192
192
  if (u == "value" && "defaultValue" in v || u == "checked" && "defaultChecked" in v) continue;
193
193
  ft(e, u, null, p, o);
194
194
  }
195
195
  }
196
196
  for (u in v) p = v[u], u == "children" ? f = p : u == "dangerouslySetInnerHTML" ? d = p : u == "value" ? _ = p : u == "checked" ? y = p : u === "key" || a && typeof p != "function" || m[u] === p || ft(e, u, p, m[u], o);
197
- if (d) a || c && (d.__html === c.__html || d.__html === e.innerHTML) || (e.innerHTML = d.__html), t.__k = [];
198
- else if (c && (e.innerHTML = ""), Ir(e, Tt(f) ? f : [f], t, n, r, g === "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, s, i ? i[0] : n.__k && Ae(n, 0), a, l), i != null) for (u = i.length; u--; ) i[u] != null && Lr(i[u]);
197
+ if (d) a || l && (d.__html === l.__html || d.__html === e.innerHTML) || (e.innerHTML = d.__html), t.__k = [];
198
+ else if (l && (e.innerHTML = ""), Rr(e, Tt(f) ? f : [f], t, n, r, g === "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, s, i ? i[0] : n.__k && Ae(n, 0), a, c), i != null) for (u = i.length; u--; ) i[u] != null && Lr(i[u]);
199
199
  a || (u = "value", _ !== void 0 && (_ !== e[u] || g === "progress" && !_ || g === "option" && _ !== m[u]) && ft(e, u, _, m[u], o), u = "checked", y !== void 0 && y !== e[u] && ft(e, u, y, m[u], o));
200
200
  }
201
201
  return e;
@@ -207,16 +207,16 @@ function yn(e, t, n) {
207
207
  r && e.__u(), r && t == null || (e.__u = e(t));
208
208
  } else e.current = t;
209
209
  } catch (o) {
210
- O.__e(o, n);
210
+ H.__e(o, n);
211
211
  }
212
212
  }
213
213
  function en(e, t, n) {
214
214
  var r, o;
215
- if (O.unmount && O.unmount(e), (r = e.ref) && (r.current && r.current !== e.__e || yn(r, null, t)), (r = e.__c) != null) {
215
+ if (H.unmount && H.unmount(e), (r = e.ref) && (r.current && r.current !== e.__e || yn(r, null, t)), (r = e.__c) != null) {
216
216
  if (r.componentWillUnmount) try {
217
217
  r.componentWillUnmount();
218
218
  } catch (i) {
219
- O.__e(i, t);
219
+ H.__e(i, t);
220
220
  }
221
221
  r.base = r.__P = null;
222
222
  }
@@ -226,12 +226,12 @@ function en(e, t, n) {
226
226
  function Qo(e, t, n) {
227
227
  return this.constructor(e, n);
228
228
  }
229
- function ze(e, t, n) {
229
+ function Ue(e, t, n) {
230
230
  var r, o, i, s;
231
- O.__ && O.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], s = [], _n(t, e = (!r && n || t).__k = de(q, null, [e]), o || rt, rt, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? ot.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, s), Dr(i, e, s);
231
+ H.__ && H.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], s = [], _n(t, e = (!r && n || t).__k = de(Y, null, [e]), o || rt, rt, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? ot.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, s), Dr(i, e, s);
232
232
  }
233
233
  function Or(e, t) {
234
- ze(e, t, Or);
234
+ Ue(e, t, Or);
235
235
  }
236
236
  function ei(e, t, n) {
237
237
  var r, o, i, s, a = me({}, e.props);
@@ -261,7 +261,7 @@ function ie(e, t) {
261
261
  } };
262
262
  return n.Provider.__ = n.Consumer.contextType = n;
263
263
  }
264
- ot = Nr.slice, O = { __e: function(e, t, n, r) {
264
+ ot = Nr.slice, H = { __e: function(e, t, n, r) {
265
265
  for (var o, i, s; t = t.__; ) if ((o = t.__c) && !o.__) try {
266
266
  if ((i = o.constructor) && i.getDerivedStateFromError != null && (o.setState(i.getDerivedStateFromError(e)), s = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, r || {}), s = o.__d), s) return o.__E = o;
267
267
  } catch (a) {
@@ -273,76 +273,76 @@ ot = Nr.slice, O = { __e: function(e, t, n, r) {
273
273
  n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = me({}, this.state), typeof e == "function" && (e = e(me({}, n), this.props)), e && me(n, e), e != null && this.__v && (t && this._sb.push(t), Qt(this));
274
274
  }, ue.prototype.forceUpdate = function(e) {
275
275
  this.__v && (this.__e = !0, e && this.__h.push(e), Qt(this));
276
- }, ue.prototype.render = q, xe = [], Mr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Xt = function(e, t) {
276
+ }, ue.prototype.render = Y, xe = [], Mr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Xt = function(e, t) {
277
277
  return e.__v.__b - t.__v.__b;
278
278
  }, _t.__r = 0, vn = 0, Zt = Wn(!1), Jt = Wn(!0), Pr = 0;
279
279
  var ti = 0;
280
280
  function h(e, t, n, r, o, i) {
281
281
  t || (t = {});
282
- var s, a, l = t;
283
- if ("ref" in l) for (a in l = {}, t) a == "ref" ? s = t[a] : l[a] = t[a];
284
- var u = { type: e, props: l, key: n, ref: s, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --ti, __i: -1, __u: 0, __source: o, __self: i };
285
- if (typeof e == "function" && (s = e.defaultProps)) for (a in s) l[a] === void 0 && (l[a] = s[a]);
286
- return O.vnode && O.vnode(u), u;
287
- }
288
- var ge, B, Ht, zn, Ue = 0, Hr = [], Z = O, Un = Z.__b, jn = Z.__r, Vn = Z.diffed, Bn = Z.__c, qn = Z.unmount, Yn = Z.__;
289
- function Re(e, t) {
290
- Z.__h && Z.__h(B, e, Ue || t), Ue = 0;
291
- var n = B.__H || (B.__H = { __: [], __h: [] });
282
+ var s, a, c = t;
283
+ if ("ref" in c) for (a in c = {}, t) a == "ref" ? s = t[a] : c[a] = t[a];
284
+ var u = { type: e, props: c, key: n, ref: s, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --ti, __i: -1, __u: 0, __source: o, __self: i };
285
+ if (typeof e == "function" && (s = e.defaultProps)) for (a in s) c[a] === void 0 && (c[a] = s[a]);
286
+ return H.vnode && H.vnode(u), u;
287
+ }
288
+ var ge, q, Ht, Un, ze = 0, Hr = [], Z = H, zn = Z.__b, Vn = Z.__r, jn = Z.diffed, Bn = Z.__c, qn = Z.unmount, Yn = Z.__;
289
+ function Ie(e, t) {
290
+ Z.__h && Z.__h(q, e, ze || t), ze = 0;
291
+ var n = q.__H || (q.__H = { __: [], __h: [] });
292
292
  return e >= n.__.length && n.__.push({}), n.__[e];
293
293
  }
294
- function C(e) {
295
- return Ue = 1, it(Wr, e);
294
+ function F(e) {
295
+ return ze = 1, it(Wr, e);
296
296
  }
297
297
  function it(e, t, n) {
298
- var r = Re(ge++, 2);
298
+ var r = Ie(ge++, 2);
299
299
  if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Wr(void 0, t), function(a) {
300
- var l = r.__N ? r.__N[0] : r.__[0], u = r.t(l, a);
301
- l !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
302
- }], r.__c = B, !B.u)) {
303
- var o = function(a, l, u) {
300
+ var c = r.__N ? r.__N[0] : r.__[0], u = r.t(c, a);
301
+ c !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
302
+ }], r.__c = q, !q.u)) {
303
+ var o = function(a, c, u) {
304
304
  if (!r.__c.__H) return !0;
305
305
  var d = r.__c.__H.__.filter(function(f) {
306
306
  return !!f.__c;
307
307
  });
308
308
  if (d.every(function(f) {
309
309
  return !f.__N;
310
- })) return !i || i.call(this, a, l, u);
311
- var c = !1;
310
+ })) return !i || i.call(this, a, c, u);
311
+ var l = !1;
312
312
  return d.forEach(function(f) {
313
313
  if (f.__N) {
314
314
  var p = f.__[0];
315
- f.__ = f.__N, f.__N = void 0, p !== f.__[0] && (c = !0);
315
+ f.__ = f.__N, f.__N = void 0, p !== f.__[0] && (l = !0);
316
316
  }
317
- }), !(!c && r.__c.props === a) && (!i || i.call(this, a, l, u));
317
+ }), !(!l && r.__c.props === a) && (!i || i.call(this, a, c, u));
318
318
  };
319
- B.u = !0;
320
- var i = B.shouldComponentUpdate, s = B.componentWillUpdate;
321
- B.componentWillUpdate = function(a, l, u) {
319
+ q.u = !0;
320
+ var i = q.shouldComponentUpdate, s = q.componentWillUpdate;
321
+ q.componentWillUpdate = function(a, c, u) {
322
322
  if (this.__e) {
323
323
  var d = i;
324
- i = void 0, o(a, l, u), i = d;
324
+ i = void 0, o(a, c, u), i = d;
325
325
  }
326
- s && s.call(this, a, l, u);
327
- }, B.shouldComponentUpdate = o;
326
+ s && s.call(this, a, c, u);
327
+ }, q.shouldComponentUpdate = o;
328
328
  }
329
329
  return r.__N || r.__;
330
330
  }
331
- function H(e, t) {
332
- var n = Re(ge++, 3);
333
- !Z.__s && bn(n.__H, t) && (n.__ = e, n.i = t, B.__H.__h.push(n));
331
+ function W(e, t) {
332
+ var n = Ie(ge++, 3);
333
+ !Z.__s && bn(n.__H, t) && (n.__ = e, n.i = t, q.__H.__h.push(n));
334
334
  }
335
335
  function De(e, t) {
336
- var n = Re(ge++, 4);
337
- !Z.__s && bn(n.__H, t) && (n.__ = e, n.i = t, B.__h.push(n));
336
+ var n = Ie(ge++, 4);
337
+ !Z.__s && bn(n.__H, t) && (n.__ = e, n.i = t, q.__h.push(n));
338
338
  }
339
339
  function w(e) {
340
- return Ue = 5, j(function() {
340
+ return ze = 5, V(function() {
341
341
  return { current: e };
342
342
  }, []);
343
343
  }
344
344
  function gn(e, t, n) {
345
- Ue = 6, De(function() {
345
+ ze = 6, De(function() {
346
346
  return typeof e == "function" ? (e(t()), function() {
347
347
  return e(null);
348
348
  }) : e ? (e.current = t(), function() {
@@ -350,34 +350,34 @@ function gn(e, t, n) {
350
350
  }) : void 0;
351
351
  }, n == null ? n : n.concat(e));
352
352
  }
353
- function j(e, t) {
354
- var n = Re(ge++, 7);
353
+ function V(e, t) {
354
+ var n = Ie(ge++, 7);
355
355
  return bn(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
356
356
  }
357
- function U(e, t) {
358
- return Ue = 8, j(function() {
357
+ function z(e, t) {
358
+ return ze = 8, V(function() {
359
359
  return e;
360
360
  }, t);
361
361
  }
362
362
  function te(e) {
363
- var t = B.context[e.__c], n = Re(ge++, 9);
364
- return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(B)), t.props.value) : e.__;
363
+ var t = q.context[e.__c], n = Ie(ge++, 9);
364
+ return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(q)), t.props.value) : e.__;
365
365
  }
366
366
  function wn(e, t) {
367
367
  Z.useDebugValue && Z.useDebugValue(t ? t(e) : e);
368
368
  }
369
369
  function ni(e) {
370
- var t = Re(ge++, 10), n = C();
371
- return t.__ = e, B.componentDidCatch || (B.componentDidCatch = function(r, o) {
370
+ var t = Ie(ge++, 10), n = F();
371
+ return t.__ = e, q.componentDidCatch || (q.componentDidCatch = function(r, o) {
372
372
  t.__ && t.__(r, o), n[1](r);
373
373
  }), [n[0], function() {
374
374
  n[1](void 0);
375
375
  }];
376
376
  }
377
377
  function ke() {
378
- var e = Re(ge++, 11);
378
+ var e = Ie(ge++, 11);
379
379
  if (!e.__) {
380
- for (var t = B.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
380
+ for (var t = q.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
381
381
  var n = t.__m || (t.__m = [0, 0]);
382
382
  e.__ = "P" + n[0] + "-" + n[1]++;
383
383
  }
@@ -391,21 +391,21 @@ function ri() {
391
391
  }
392
392
  }
393
393
  Z.__b = function(e) {
394
- B = null, Un && Un(e);
394
+ q = null, zn && zn(e);
395
395
  }, Z.__ = function(e, t) {
396
396
  e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Yn && Yn(e, t);
397
397
  }, Z.__r = function(e) {
398
- jn && jn(e), ge = 0;
399
- var t = (B = e.__c).__H;
400
- t && (Ht === B ? (t.__h = [], B.__h = [], t.__.forEach(function(n) {
398
+ Vn && Vn(e), ge = 0;
399
+ var t = (q = e.__c).__H;
400
+ t && (Ht === q ? (t.__h = [], q.__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(tn), t.__h = [], ge = 0)), Ht = B;
402
+ })) : (t.__h.forEach(vt), t.__h.forEach(tn), t.__h = [], ge = 0)), Ht = q;
403
403
  }, Z.diffed = function(e) {
404
- Vn && Vn(e);
404
+ jn && jn(e);
405
405
  var t = e.__c;
406
- t && t.__H && (t.__H.__h.length && (Hr.push(t) !== 1 && zn === Z.requestAnimationFrame || ((zn = Z.requestAnimationFrame) || oi)(ri)), t.__H.__.forEach(function(n) {
406
+ t && t.__H && (t.__H.__h.length && (Hr.push(t) !== 1 && Un === Z.requestAnimationFrame || ((Un = Z.requestAnimationFrame) || oi)(ri)), t.__H.__.forEach(function(n) {
407
407
  n.i && (n.__H = n.i), n.i = void 0;
408
- })), Ht = B = null;
408
+ })), Ht = q = null;
409
409
  }, Z.__c = function(e, t) {
410
410
  t.some(function(n) {
411
411
  try {
@@ -437,12 +437,12 @@ function oi(e) {
437
437
  Gn && (t = requestAnimationFrame(n));
438
438
  }
439
439
  function vt(e) {
440
- var t = B, n = e.__c;
441
- typeof n == "function" && (e.__c = void 0, n()), B = t;
440
+ var t = q, n = e.__c;
441
+ typeof n == "function" && (e.__c = void 0, n()), q = t;
442
442
  }
443
443
  function tn(e) {
444
- var t = B;
445
- e.__c = e.__(), B = t;
444
+ var t = q;
445
+ e.__c = e.__(), q = t;
446
446
  }
447
447
  function bn(e, t) {
448
448
  return !e || e.length !== t.length || t.some(function(n, r) {
@@ -452,7 +452,7 @@ function bn(e, t) {
452
452
  function Wr(e, t) {
453
453
  return typeof t == "function" ? t(e) : t;
454
454
  }
455
- function zr(e, t) {
455
+ function Ur(e, t) {
456
456
  for (var n in t) e[n] = t[n];
457
457
  return e;
458
458
  }
@@ -464,7 +464,7 @@ function nn(e, t) {
464
464
  function yt(e, t) {
465
465
  this.props = e, this.context = t;
466
466
  }
467
- function Ur(e, t) {
467
+ function zr(e, t) {
468
468
  function n(o) {
469
469
  var i = this.props.ref, s = i == o.ref;
470
470
  return !s && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !s : nn(this.props, o);
@@ -477,39 +477,39 @@ function Ur(e, t) {
477
477
  (yt.prototype = new ue()).isPureReactComponent = !0, yt.prototype.shouldComponentUpdate = function(e, t) {
478
478
  return nn(this.props, e) || nn(this.state, t);
479
479
  };
480
- var Kn = O.__b;
481
- O.__b = function(e) {
480
+ var Kn = H.__b;
481
+ H.__b = function(e) {
482
482
  e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Kn && Kn(e);
483
483
  };
484
484
  var ii = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
485
485
  function En(e) {
486
486
  function t(n) {
487
- var r = zr({}, n);
487
+ var r = Ur({}, n);
488
488
  return delete r.ref, e(r, n.ref || null);
489
489
  }
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
493
  return e == null ? null : _e(_e(e).map(t));
494
- }, jr = { map: Xn, forEach: Xn, count: function(e) {
494
+ }, Vr = { map: Xn, forEach: Xn, count: function(e) {
495
495
  return e ? _e(e).length : 0;
496
496
  }, only: function(e) {
497
497
  var t = _e(e);
498
498
  if (t.length !== 1) throw "Children.only";
499
499
  return t[0];
500
- }, toArray: _e }, si = O.__e;
501
- O.__e = function(e, t, n, r) {
500
+ }, toArray: _e }, si = H.__e;
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);
504
504
  }
505
505
  si(e, t, n, r);
506
506
  };
507
- var Zn = O.unmount;
508
- function Vr(e, t, n) {
507
+ var Zn = H.unmount;
508
+ function jr(e, t, n) {
509
509
  return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
510
510
  typeof r.__c == "function" && r.__c();
511
- }), e.__c.__H = null), (e = zr({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
512
- return Vr(r, t, n);
511
+ }), e.__c.__H = null), (e = Ur({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
512
+ return jr(r, t, n);
513
513
  })), e;
514
514
  }
515
515
  function Br(e, t, n) {
@@ -540,7 +540,7 @@ function Yr(e) {
540
540
  function We() {
541
541
  this.u = null, this.o = null;
542
542
  }
543
- O.unmount = function(e) {
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
546
  }, (Qe.prototype = new ue()).__c = function(e, t) {
@@ -553,8 +553,8 @@ O.unmount = function(e) {
553
553
  var a = function() {
554
554
  if (!--r.__u) {
555
555
  if (r.state.__a) {
556
- var l = r.state.__a;
557
- r.__v.__k[0] = Br(l, l.__c.__P, l.__c.__O);
556
+ var c = r.state.__a;
557
+ r.__v.__k[0] = Br(c, c.__c.__P, c.__c.__O);
558
558
  }
559
559
  var u;
560
560
  for (r.setState({ __a: r.__b = null }); u = r.t.pop(); ) u.forceUpdate();
@@ -567,12 +567,12 @@ O.unmount = function(e) {
567
567
  if (this.__b) {
568
568
  if (this.__v.__k) {
569
569
  var n = document.createElement("div"), r = this.__v.__k[0].__c;
570
- this.__v.__k[0] = Vr(this.__b, n, r.__O = r.__P);
570
+ this.__v.__k[0] = jr(this.__b, n, r.__O = r.__P);
571
571
  }
572
572
  this.__b = null;
573
573
  }
574
- var o = t.__a && de(q, null, e.fallback);
575
- return o && (o.__u &= -33), [de(q, null, t.__a ? null : e.children), o];
574
+ var o = t.__a && de(Y, null, e.fallback);
575
+ return o && (o.__u &= -33), [de(Y, 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; ) {
@@ -586,10 +586,10 @@ function ai(e) {
586
586
  return e.context;
587
587
  }, e.children;
588
588
  }
589
- function li(e) {
589
+ function ci(e) {
590
590
  var t = this, n = e.i;
591
591
  t.componentWillUnmount = function() {
592
- ze(null, t.l), t.l = null, t.i = null;
592
+ Ue(null, t.l), t.l = null, t.i = null;
593
593
  }, t.i && t.i !== n && t.componentWillUnmount(), t.l || (t.i = n, t.l = { nodeType: 1, parentNode: n, childNodes: [], contains: function() {
594
594
  return !0;
595
595
  }, appendChild: function(r) {
@@ -598,10 +598,10 @@ function li(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(de(ai, { context: t.context }, e.__v), t.l);
601
+ } }), Ue(de(ai, { context: t.context }, e.__v), t.l);
602
602
  }
603
603
  function kt(e, t) {
604
- var n = de(li, { __v: e, i: t });
604
+ var n = de(ci, { __v: e, i: t });
605
605
  return n.containerInfo = t, n;
606
606
  }
607
607
  (We.prototype = new ue()).__a = function(e) {
@@ -624,11 +624,11 @@ function kt(e, t) {
624
624
  Jn(e, n, t);
625
625
  });
626
626
  };
627
- var Gr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, ci = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, ui = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, di = /[A-Z0-9]/g, fi = typeof document < "u", pi = function(e) {
627
+ var Gr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, li = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, ui = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, di = /[A-Z0-9]/g, fi = typeof document < "u", pi = function(e) {
628
628
  return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
629
629
  };
630
630
  function Kr(e, t, n) {
631
- return t.__k == null && (t.textContent = ""), ze(e, t), typeof n == "function" && n(), e ? e.__c : null;
631
+ return t.__k == null && (t.textContent = ""), Ue(e, t), typeof n == "function" && n(), e ? e.__c : null;
632
632
  }
633
633
  function Xr(e, t, n) {
634
634
  return Or(e, t), typeof n == "function" && n(), e ? e.__c : null;
@@ -640,7 +640,7 @@ ue.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceive
640
640
  Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
641
641
  } });
642
642
  });
643
- var Qn = O.event;
643
+ var Qn = H.event;
644
644
  function hi() {
645
645
  }
646
646
  function vi() {
@@ -649,59 +649,59 @@ function vi() {
649
649
  function mi() {
650
650
  return this.defaultPrevented;
651
651
  }
652
- O.event = function(e) {
652
+ H.event = function(e) {
653
653
  return Qn && (e = Qn(e)), e.persist = hi, e.isPropagationStopped = vi, e.isDefaultPrevented = mi, e.nativeEvent = e;
654
654
  };
655
655
  var $n, _i = { enumerable: !1, configurable: !0, get: function() {
656
656
  return this.class;
657
- } }, er = O.vnode;
658
- O.vnode = function(e) {
657
+ } }, er = H.vnode;
658
+ H.vnode = function(e) {
659
659
  typeof e.type == "string" && function(t) {
660
660
  var n = t.props, r = t.type, o = {};
661
661
  for (var i in n) {
662
662
  var s = n[i];
663
663
  if (!(i === "value" && "defaultValue" in n && s == null || fi && i === "children" && r === "noscript" || i === "class" || i === "className")) {
664
664
  var a = i.toLowerCase();
665
- i === "defaultValue" && "value" in n && n.value == null ? i = "value" : i === "download" && s === !0 ? s = "" : a === "translate" && s === "no" ? s = !1 : a === "ondoubleclick" ? i = "ondblclick" : a !== "onchange" || r !== "input" && r !== "textarea" || pi(n.type) ? a === "onfocus" ? i = "onfocusin" : a === "onblur" ? i = "onfocusout" : ui.test(i) ? i = a : r.indexOf("-") === -1 && ci.test(i) ? i = i.replace(di, "-$&").toLowerCase() : s === null && (s = void 0) : a = i = "oninput", a === "oninput" && o[i = a] && (i = "oninputCapture"), o[i] = s;
665
+ i === "defaultValue" && "value" in n && n.value == null ? i = "value" : i === "download" && s === !0 ? s = "" : a === "translate" && s === "no" ? s = !1 : a === "ondoubleclick" ? i = "ondblclick" : a !== "onchange" || r !== "input" && r !== "textarea" || pi(n.type) ? a === "onfocus" ? i = "onfocusin" : a === "onblur" ? i = "onfocusout" : ui.test(i) ? i = a : r.indexOf("-") === -1 && li.test(i) ? i = i.replace(di, "-$&").toLowerCase() : s === null && (s = void 0) : a = i = "oninput", a === "oninput" && o[i = a] && (i = "oninputCapture"), o[i] = s;
666
666
  }
667
667
  }
668
- r == "select" && o.multiple && Array.isArray(o.value) && (o.value = _e(n.children).forEach(function(l) {
669
- l.props.selected = o.value.indexOf(l.props.value) != -1;
670
- })), r == "select" && o.defaultValue != null && (o.value = _e(n.children).forEach(function(l) {
671
- l.props.selected = o.multiple ? o.defaultValue.indexOf(l.props.value) != -1 : o.defaultValue == l.props.value;
668
+ r == "select" && o.multiple && Array.isArray(o.value) && (o.value = _e(n.children).forEach(function(c) {
669
+ c.props.selected = o.value.indexOf(c.props.value) != -1;
670
+ })), r == "select" && o.defaultValue != null && (o.value = _e(n.children).forEach(function(c) {
671
+ c.props.selected = o.multiple ? o.defaultValue.indexOf(c.props.value) != -1 : o.defaultValue == c.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 = Gr, er && er(e);
674
674
  };
675
- var tr = O.__r;
676
- O.__r = function(e) {
675
+ var tr = H.__r;
676
+ H.__r = function(e) {
677
677
  tr && tr(e), $n = e.__c;
678
678
  };
679
- var nr = O.diffed;
680
- O.diffed = function(e) {
679
+ var nr = H.diffed;
680
+ H.diffed = function(e) {
681
681
  nr && nr(e);
682
682
  var t = e.props, n = e.__e;
683
683
  n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), $n = null;
684
684
  };
685
685
  var Zr = { ReactCurrentDispatcher: { current: { readContext: function(e) {
686
686
  return $n.__n[e.__c].props.value;
687
- }, useCallback: U, useContext: te, useDebugValue: wn, useDeferredValue: Sn, useEffect: H, useId: ke, useImperativeHandle: gn, useInsertionEffect: Cn, useLayoutEffect: De, useMemo: j, useReducer: it, useRef: w, useState: C, useSyncExternalStore: St, useTransition: Fn } } }, yi = "17.0.2";
687
+ }, useCallback: z, useContext: te, useDebugValue: wn, useDeferredValue: Sn, useEffect: W, useId: ke, useImperativeHandle: gn, useInsertionEffect: Fn, useLayoutEffect: De, useMemo: V, useReducer: it, useRef: w, useState: F, useSyncExternalStore: St, useTransition: Cn } } }, yi = "17.0.2";
688
688
  function Jr(e) {
689
689
  return de.bind(null, e);
690
690
  }
691
- function Ve(e) {
691
+ function je(e) {
692
692
  return !!e && e.$$typeof === Gr;
693
693
  }
694
694
  function Qr(e) {
695
- return Ve(e) && e.type === q;
695
+ return je(e) && e.type === Y;
696
696
  }
697
697
  function eo(e) {
698
698
  return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
699
699
  }
700
700
  function Tn(e) {
701
- return Ve(e) ? ei.apply(null, arguments) : e;
701
+ return je(e) ? ei.apply(null, arguments) : e;
702
702
  }
703
703
  function to(e) {
704
- return !!e.__k && (ze(null, e), !0);
704
+ return !!e.__k && (Ue(null, e), !0);
705
705
  }
706
706
  function no(e) {
707
707
  return e && (e.base || e.nodeType === 1 && e) || null;
@@ -710,22 +710,22 @@ var ro = function(e, t) {
710
710
  return e(t);
711
711
  }, oo = function(e, t) {
712
712
  return e(t);
713
- }, io = q;
713
+ }, io = Y;
714
714
  function kn(e) {
715
715
  e();
716
716
  }
717
717
  function Sn(e) {
718
718
  return e;
719
719
  }
720
- function Fn() {
720
+ function Cn() {
721
721
  return [!1, kn];
722
722
  }
723
- var Cn = De, so = Ve;
723
+ var Fn = De, so = je;
724
724
  function St(e, t) {
725
- var n = t(), r = C({ h: { __: n, v: t } }), o = r[0].h, i = r[1];
725
+ var n = t(), r = F({ h: { __: n, v: t } }), o = r[0].h, i = r[1];
726
726
  return De(function() {
727
727
  o.__ = n, o.v = t, Wt(o) && i({ h: o });
728
- }, [e, n, t]), H(function() {
728
+ }, [e, n, t]), W(function() {
729
729
  return Wt(o) && i({ h: o }), e(function() {
730
730
  Wt(o) && i({ h: o });
731
731
  });
@@ -740,12 +740,12 @@ function Wt(e) {
740
740
  return !0;
741
741
  }
742
742
  }
743
- var P = { useState: C, useId: ke, useReducer: it, useEffect: H, useLayoutEffect: De, useInsertionEffect: Cn, useTransition: Fn, useDeferredValue: Sn, useSyncExternalStore: St, startTransition: kn, useRef: w, useImperativeHandle: gn, useMemo: j, useCallback: U, useContext: te, useDebugValue: wn, version: "17.0.2", Children: jr, render: Kr, hydrate: Xr, unmountComponentAtNode: to, createPortal: kt, createElement: de, createContext: ie, createFactory: Jr, cloneElement: Tn, createRef: mn, Fragment: q, isValidElement: Ve, isElement: so, isFragment: Qr, isMemo: eo, findDOMNode: no, Component: ue, PureComponent: yt, memo: Ur, forwardRef: En, flushSync: oo, unstable_batchedUpdates: ro, StrictMode: io, Suspense: Qe, SuspenseList: We, lazy: Yr, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Zr };
743
+ var P = { useState: F, useId: ke, useReducer: it, useEffect: W, useLayoutEffect: De, useInsertionEffect: Fn, useTransition: Cn, useDeferredValue: Sn, useSyncExternalStore: St, startTransition: kn, useRef: w, useImperativeHandle: gn, useMemo: V, useCallback: z, useContext: te, useDebugValue: wn, version: "17.0.2", Children: Vr, render: Kr, hydrate: Xr, unmountComponentAtNode: to, createPortal: kt, createElement: de, createContext: ie, createFactory: Jr, cloneElement: Tn, createRef: mn, Fragment: Y, isValidElement: je, isElement: so, isFragment: Qr, isMemo: eo, findDOMNode: no, Component: ue, PureComponent: yt, memo: zr, forwardRef: En, flushSync: oo, unstable_batchedUpdates: ro, StrictMode: io, Suspense: Qe, SuspenseList: We, 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
- Children: jr,
746
+ Children: Vr,
747
747
  Component: ue,
748
- Fragment: q,
748
+ Fragment: Y,
749
749
  PureComponent: yt,
750
750
  StrictMode: io,
751
751
  Suspense: Qe,
@@ -765,29 +765,29 @@ const rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
765
765
  isElement: so,
766
766
  isFragment: Qr,
767
767
  isMemo: eo,
768
- isValidElement: Ve,
768
+ isValidElement: je,
769
769
  lazy: Yr,
770
- memo: Ur,
770
+ memo: zr,
771
771
  render: Kr,
772
772
  startTransition: kn,
773
773
  unmountComponentAtNode: to,
774
774
  unstable_batchedUpdates: ro,
775
- useCallback: U,
775
+ useCallback: z,
776
776
  useContext: te,
777
777
  useDebugValue: wn,
778
778
  useDeferredValue: Sn,
779
- useEffect: H,
779
+ useEffect: W,
780
780
  useErrorBoundary: ni,
781
781
  useId: ke,
782
782
  useImperativeHandle: gn,
783
- useInsertionEffect: Cn,
783
+ useInsertionEffect: Fn,
784
784
  useLayoutEffect: De,
785
- useMemo: j,
785
+ useMemo: V,
786
786
  useReducer: it,
787
787
  useRef: w,
788
- useState: C,
788
+ useState: F,
789
789
  useSyncExternalStore: St,
790
- useTransition: Fn,
790
+ useTransition: Cn,
791
791
  version: yi
792
792
  }, Symbol.toStringTag, { value: "Module" })), ao = typeof document < "u" ? P.useLayoutEffect : () => {
793
793
  };
@@ -797,7 +797,7 @@ function gi(e) {
797
797
  t.current = e;
798
798
  }, [
799
799
  e
800
- ]), U((...n) => {
800
+ ]), z((...n) => {
801
801
  const r = t.current;
802
802
  return r == null ? void 0 : r(...n);
803
803
  }, []);
@@ -842,7 +842,7 @@ class ki {
842
842
  this.nativeEvent = n, this.target = n.target, this.currentTarget = n.currentTarget, this.relatedTarget = n.relatedTarget, this.bubbles = n.bubbles, this.cancelable = n.cancelable, this.defaultPrevented = n.defaultPrevented, this.eventPhase = n.eventPhase, this.isTrusted = n.isTrusted, this.timeStamp = n.timeStamp, this.type = t;
843
843
  }
844
844
  }
845
- function lo(e) {
845
+ function co(e) {
846
846
  let t = w({
847
847
  isFocused: !1,
848
848
  observer: null
@@ -856,7 +856,7 @@ function lo(e) {
856
856
  let n = gi((r) => {
857
857
  e == null || e(r);
858
858
  });
859
- return U((r) => {
859
+ return z((r) => {
860
860
  if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
861
861
  t.current.isFocused = !0;
862
862
  let o = r.target, i = (s) => {
@@ -889,15 +889,15 @@ function lo(e) {
889
889
  }
890
890
  function Si(e) {
891
891
  let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: o } = e;
892
- const i = U((l) => {
893
- if (l.target === l.currentTarget)
894
- return r && r(l), o && o(!1), !0;
892
+ const i = z((c) => {
893
+ if (c.target === c.currentTarget)
894
+ return r && r(c), o && o(!1), !0;
895
895
  }, [
896
896
  r,
897
897
  o
898
- ]), s = lo(i), a = U((l) => {
899
- const u = st(l.target);
900
- l.target === l.currentTarget && u.activeElement === l.target && (n && n(l), o && o(!0), s(l));
898
+ ]), s = co(i), a = z((c) => {
899
+ const u = st(c.target);
900
+ c.target === c.currentTarget && u.activeElement === c.target && (n && n(c), o && o(!0), s(c));
901
901
  }, [
902
902
  o,
903
903
  n,
@@ -910,39 +910,39 @@ function Si(e) {
910
910
  }
911
911
  };
912
912
  }
913
- let at = null, rn = /* @__PURE__ */ new Set(), et = /* @__PURE__ */ new Map(), Ie = !1, on = !1;
914
- const Fi = {
913
+ let at = null, rn = /* @__PURE__ */ new Set(), et = /* @__PURE__ */ new Map(), Re = !1, on = !1;
914
+ const Ci = {
915
915
  Tab: !0,
916
916
  Escape: !0
917
917
  };
918
918
  function xn(e, t) {
919
919
  for (let n of rn) n(e, t);
920
920
  }
921
- function Ci(e) {
921
+ function Fi(e) {
922
922
  return !(e.metaKey || !Ei() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
923
923
  }
924
924
  function gt(e) {
925
- Ie = !0, Ci(e) && (at = "keyboard", xn("keyboard", e));
925
+ Re = !0, Fi(e) && (at = "keyboard", xn("keyboard", e));
926
926
  }
927
- function le(e) {
928
- at = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (Ie = !0, xn("pointer", e));
927
+ function ce(e) {
928
+ at = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (Re = !0, xn("pointer", e));
929
929
  }
930
- function co(e) {
931
- Ti(e) && (Ie = !0, at = "virtual");
930
+ function lo(e) {
931
+ Ti(e) && (Re = !0, at = "virtual");
932
932
  }
933
933
  function uo(e) {
934
- e.target === window || e.target === document || (!Ie && !on && (at = "virtual", xn("virtual", e)), Ie = !1, on = !1);
934
+ e.target === window || e.target === document || (!Re && !on && (at = "virtual", xn("virtual", e)), Re = !1, on = !1);
935
935
  }
936
936
  function fo() {
937
- Ie = !1, on = !0;
937
+ Re = !1, on = !0;
938
938
  }
939
939
  function sn(e) {
940
940
  if (typeof window > "u" || et.get(Pe(e))) return;
941
941
  const t = Pe(e), n = st(e);
942
942
  let r = t.HTMLElement.prototype.focus;
943
943
  t.HTMLElement.prototype.focus = function() {
944
- Ie = !0, r.apply(this, arguments);
945
- }, n.addEventListener("keydown", gt, !0), n.addEventListener("keyup", gt, !0), n.addEventListener("click", co, !0), t.addEventListener("focus", uo, !0), t.addEventListener("blur", fo, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", le, !0), n.addEventListener("pointermove", le, !0), n.addEventListener("pointerup", le, !0)) : (n.addEventListener("mousedown", le, !0), n.addEventListener("mousemove", le, !0), n.addEventListener("mouseup", le, !0)), t.addEventListener("beforeunload", () => {
944
+ Re = !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", ce, !0), n.addEventListener("pointermove", ce, !0), n.addEventListener("pointerup", ce, !0)) : (n.addEventListener("mousedown", ce, !0), n.addEventListener("mousemove", ce, !0), n.addEventListener("mouseup", ce, !0)), t.addEventListener("beforeunload", () => {
946
946
  po(e);
947
947
  }, {
948
948
  once: !0
@@ -952,7 +952,7 @@ function sn(e) {
952
952
  }
953
953
  const po = (e, t) => {
954
954
  const n = Pe(e), r = st(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", co, !0), n.removeEventListener("focus", uo, !0), n.removeEventListener("blur", fo, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", le, !0), r.removeEventListener("pointermove", le, !0), r.removeEventListener("pointerup", le, !0)) : (r.removeEventListener("mousedown", le, !0), r.removeEventListener("mousemove", le, !0), r.removeEventListener("mouseup", le, !0)), et.delete(n));
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", ce, !0), r.removeEventListener("pointermove", ce, !0), r.removeEventListener("pointerup", ce, !0)) : (r.removeEventListener("mousedown", ce, !0), r.removeEventListener("mousemove", ce, !0), r.removeEventListener("mouseup", ce, !0)), et.delete(n));
956
956
  };
957
957
  function xi(e) {
958
958
  const t = st(e);
@@ -979,10 +979,10 @@ const Mi = /* @__PURE__ */ new Set([
979
979
  function Pi(e, t, n) {
980
980
  var r;
981
981
  const o = typeof window < "u" ? Pe(n == null ? void 0 : n.target).HTMLInputElement : HTMLInputElement, i = typeof window < "u" ? Pe(n == null ? void 0 : n.target).HTMLTextAreaElement : HTMLTextAreaElement, s = typeof window < "u" ? Pe(n == null ? void 0 : n.target).HTMLElement : HTMLElement, a = typeof window < "u" ? Pe(n == null ? void 0 : n.target).KeyboardEvent : KeyboardEvent;
982
- return e = e || (n == null ? void 0 : n.target) instanceof o && !Mi.has(n == null || (r = n.target) === null || r === void 0 ? void 0 : r.type) || (n == null ? void 0 : n.target) instanceof i || (n == null ? void 0 : n.target) instanceof s && (n == null ? void 0 : n.target.isContentEditable), !(e && t === "keyboard" && n instanceof a && !Fi[n.key]);
982
+ return e = e || (n == null ? void 0 : n.target) instanceof o && !Mi.has(n == null || (r = n.target) === null || r === void 0 ? void 0 : r.type) || (n == null ? void 0 : n.target) instanceof i || (n == null ? void 0 : n.target) instanceof s && (n == null ? void 0 : n.target.isContentEditable), !(e && t === "keyboard" && n instanceof a && !Ci[n.key]);
983
983
  }
984
984
  function Ni(e, t, n) {
985
- sn(), H(() => {
985
+ sn(), W(() => {
986
986
  let r = (o, i) => {
987
987
  Pi(!!(n != null && n.isTextInput), o, i) && e(ho());
988
988
  };
@@ -994,13 +994,13 @@ function Ni(e, t, n) {
994
994
  function Li(e) {
995
995
  let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: o } = e, i = w({
996
996
  isFocusWithin: !1
997
- }), s = U((u) => {
997
+ }), s = z((u) => {
998
998
  i.current.isFocusWithin && !u.currentTarget.contains(u.relatedTarget) && (i.current.isFocusWithin = !1, n && n(u), o && o(!1));
999
999
  }, [
1000
1000
  n,
1001
1001
  o,
1002
1002
  i
1003
- ]), a = lo(s), l = U((u) => {
1003
+ ]), a = co(s), c = z((u) => {
1004
1004
  !i.current.isFocusWithin && document.activeElement === u.target && (r && r(u), o && o(!0), i.current.isFocusWithin = !0, a(u));
1005
1005
  }, [
1006
1006
  r,
@@ -1015,12 +1015,12 @@ function Li(e) {
1015
1015
  }
1016
1016
  } : {
1017
1017
  focusWithinProps: {
1018
- onFocus: l,
1018
+ onFocus: c,
1019
1019
  onBlur: s
1020
1020
  }
1021
1021
  };
1022
1022
  }
1023
- let wt = !1, zt = 0;
1023
+ let wt = !1, Ut = 0;
1024
1024
  function an() {
1025
1025
  wt = !0, setTimeout(() => {
1026
1026
  wt = !1;
@@ -1031,19 +1031,19 @@ function or(e) {
1031
1031
  }
1032
1032
  function Ai() {
1033
1033
  if (!(typeof document > "u"))
1034
- return typeof PointerEvent < "u" ? document.addEventListener("pointerup", or) : document.addEventListener("touchend", an), zt++, () => {
1035
- zt--, !(zt > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", or) : document.removeEventListener("touchend", an));
1034
+ return typeof PointerEvent < "u" ? document.addEventListener("pointerup", or) : document.addEventListener("touchend", an), Ut++, () => {
1035
+ Ut--, !(Ut > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", or) : document.removeEventListener("touchend", an));
1036
1036
  };
1037
1037
  }
1038
- function Ii(e) {
1039
- let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: o } = e, [i, s] = C(!1), a = w({
1038
+ function Ri(e) {
1039
+ let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: o } = e, [i, s] = F(!1), a = w({
1040
1040
  isHovered: !1,
1041
1041
  ignoreEmulatedMouseEvents: !1,
1042
1042
  pointerType: "",
1043
1043
  target: null
1044
1044
  }).current;
1045
- H(Ai, []);
1046
- let { hoverProps: l, triggerHoverEnd: u } = j(() => {
1045
+ W(Ai, []);
1046
+ let { hoverProps: c, triggerHoverEnd: u } = V(() => {
1047
1047
  let d = (p, _) => {
1048
1048
  if (a.pointerType = _, o || _ === "touch" || a.isHovered || !p.currentTarget.contains(p.target)) return;
1049
1049
  a.isHovered = !0;
@@ -1053,7 +1053,7 @@ function Ii(e) {
1053
1053
  target: y,
1054
1054
  pointerType: _
1055
1055
  }), n && n(!0), s(!0);
1056
- }, c = (p, _) => {
1056
+ }, l = (p, _) => {
1057
1057
  if (a.pointerType = "", a.target = null, _ === "touch" || !a.isHovered) return;
1058
1058
  a.isHovered = !1;
1059
1059
  let y = p.currentTarget;
@@ -1066,16 +1066,16 @@ function Ii(e) {
1066
1066
  return typeof PointerEvent < "u" ? (f.onPointerEnter = (p) => {
1067
1067
  wt && p.pointerType === "mouse" || d(p, p.pointerType);
1068
1068
  }, f.onPointerLeave = (p) => {
1069
- !o && p.currentTarget.contains(p.target) && c(p, p.pointerType);
1069
+ !o && p.currentTarget.contains(p.target) && l(p, p.pointerType);
1070
1070
  }) : (f.onTouchStart = () => {
1071
1071
  a.ignoreEmulatedMouseEvents = !0;
1072
1072
  }, f.onMouseEnter = (p) => {
1073
1073
  !a.ignoreEmulatedMouseEvents && !wt && d(p, "mouse"), a.ignoreEmulatedMouseEvents = !1;
1074
1074
  }, f.onMouseLeave = (p) => {
1075
- !o && p.currentTarget.contains(p.target) && c(p, "mouse");
1075
+ !o && p.currentTarget.contains(p.target) && l(p, "mouse");
1076
1076
  }), {
1077
1077
  hoverProps: f,
1078
- triggerHoverEnd: c
1078
+ triggerHoverEnd: l
1079
1079
  };
1080
1080
  }, [
1081
1081
  t,
@@ -1084,22 +1084,22 @@ function Ii(e) {
1084
1084
  o,
1085
1085
  a
1086
1086
  ]);
1087
- return H(() => {
1087
+ return W(() => {
1088
1088
  o && u({
1089
1089
  currentTarget: a.target
1090
1090
  }, a.pointerType);
1091
1091
  }, [
1092
1092
  o
1093
1093
  ]), {
1094
- hoverProps: l,
1094
+ hoverProps: c,
1095
1095
  isHovered: i
1096
1096
  };
1097
1097
  }
1098
- function Ri(e = {}) {
1098
+ function Ii(e = {}) {
1099
1099
  let { autoFocus: t = !1, isTextInput: n, within: r } = e, o = w({
1100
1100
  isFocused: !1,
1101
1101
  isFocusVisible: t || ho()
1102
- }), [i, s] = C(!1), [a, l] = C(() => o.current.isFocused && o.current.isFocusVisible), u = U(() => l(o.current.isFocused && o.current.isFocusVisible), []), d = U((p) => {
1102
+ }), [i, s] = F(!1), [a, c] = F(() => o.current.isFocused && o.current.isFocusVisible), u = z(() => c(o.current.isFocused && o.current.isFocusVisible), []), d = z((p) => {
1103
1103
  o.current.isFocused = p, s(p), u();
1104
1104
  }, [
1105
1105
  u
@@ -1109,7 +1109,7 @@ function Ri(e = {}) {
1109
1109
  }, [], {
1110
1110
  isTextInput: n
1111
1111
  });
1112
- let { focusProps: c } = Si({
1112
+ let { focusProps: l } = Si({
1113
1113
  isDisabled: r,
1114
1114
  onFocusChange: d
1115
1115
  }), { focusWithinProps: f } = Li({
@@ -1119,13 +1119,13 @@ function Ri(e = {}) {
1119
1119
  return {
1120
1120
  isFocused: i,
1121
1121
  isFocusVisible: a,
1122
- focusProps: r ? f : c
1122
+ focusProps: r ? f : l
1123
1123
  };
1124
1124
  }
1125
- var Di = Object.defineProperty, Oi = (e, t, n) => t in e ? Di(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ut = (e, t, n) => (Oi(e, typeof t != "symbol" ? t + "" : t, n), n);
1125
+ var Di = Object.defineProperty, Oi = (e, t, n) => t in e ? Di(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, zt = (e, t, n) => (Oi(e, typeof t != "symbol" ? t + "" : t, n), n);
1126
1126
  let Hi = class {
1127
1127
  constructor() {
1128
- Ut(this, "current", this.detect()), Ut(this, "handoffState", "pending"), Ut(this, "currentId", 0);
1128
+ zt(this, "current", this.detect()), zt(this, "handoffState", "pending"), zt(this, "currentId", 0);
1129
1129
  }
1130
1130
  set(t) {
1131
1131
  this.current !== t && (this.handoffState = "pending", this.currentId = 0, this.current = t);
@@ -1152,10 +1152,10 @@ let Hi = class {
1152
1152
  return this.handoffState === "complete";
1153
1153
  }
1154
1154
  }, Le = new Hi();
1155
- function Ft(e) {
1155
+ function Ct(e) {
1156
1156
  return Le.isServer ? null : e instanceof Node ? e.ownerDocument : e != null && e.hasOwnProperty("current") && e.current instanceof Node ? e.current.ownerDocument : document;
1157
1157
  }
1158
- function Ct(e) {
1158
+ function Ft(e) {
1159
1159
  typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((t) => setTimeout(() => {
1160
1160
  throw t;
1161
1161
  }));
@@ -1173,7 +1173,7 @@ function Se() {
1173
1173
  return t.add(() => clearTimeout(r));
1174
1174
  }, microTask(...n) {
1175
1175
  let r = { current: !0 };
1176
- return Ct(() => {
1176
+ return Ft(() => {
1177
1177
  r.current && n[0]();
1178
1178
  }), t.add(() => {
1179
1179
  r.current = !1;
@@ -1197,11 +1197,11 @@ function Se() {
1197
1197
  return t;
1198
1198
  }
1199
1199
  function xt() {
1200
- let [e] = C(Se);
1201
- return H(() => () => e.dispose(), [e]), e;
1200
+ let [e] = F(Se);
1201
+ return W(() => () => e.dispose(), [e]), e;
1202
1202
  }
1203
1203
  let re = (e, t) => {
1204
- Le.isServer ? H(e, t) : De(e, t);
1204
+ Le.isServer ? W(e, t) : De(e, t);
1205
1205
  };
1206
1206
  function Oe(e) {
1207
1207
  let t = w(e);
@@ -1209,7 +1209,7 @@ function Oe(e) {
1209
1209
  t.current = e;
1210
1210
  }, [e]), t;
1211
1211
  }
1212
- let K = function(e) {
1212
+ let X = function(e) {
1213
1213
  let t = Oe(e);
1214
1214
  return P.useCallback((...n) => t.current(...n), [t]);
1215
1215
  };
@@ -1217,33 +1217,33 @@ function Wi(e) {
1217
1217
  let t = e.width / 2, n = e.height / 2;
1218
1218
  return { top: e.clientY - n, right: e.clientX + t, bottom: e.clientY + n, left: e.clientX - t };
1219
1219
  }
1220
- function zi(e, t) {
1220
+ function Ui(e, t) {
1221
1221
  return !(!e || !t || e.right < t.left || e.left > t.right || e.bottom < t.top || e.top > t.bottom);
1222
1222
  }
1223
- function Ui({ disabled: e = !1 } = {}) {
1224
- let t = w(null), [n, r] = C(!1), o = xt(), i = K(() => {
1223
+ function zi({ disabled: e = !1 } = {}) {
1224
+ let t = w(null), [n, r] = F(!1), o = xt(), i = X(() => {
1225
1225
  t.current = null, r(!1), o.dispose();
1226
- }), s = K((a) => {
1226
+ }), s = X((a) => {
1227
1227
  if (o.dispose(), t.current === null) {
1228
1228
  t.current = a.currentTarget, r(!0);
1229
1229
  {
1230
- let l = Ft(a.currentTarget);
1231
- o.addEventListener(l, "pointerup", i, !1), o.addEventListener(l, "pointermove", (u) => {
1230
+ let c = Ct(a.currentTarget);
1231
+ o.addEventListener(c, "pointerup", i, !1), o.addEventListener(c, "pointermove", (u) => {
1232
1232
  if (t.current) {
1233
1233
  let d = Wi(u);
1234
- r(zi(d, t.current.getBoundingClientRect()));
1234
+ r(Ui(d, t.current.getBoundingClientRect()));
1235
1235
  }
1236
- }, !1), o.addEventListener(l, "pointercancel", i, !1);
1236
+ }, !1), o.addEventListener(c, "pointercancel", i, !1);
1237
1237
  }
1238
1238
  }
1239
1239
  });
1240
1240
  return { pressed: n, pressProps: e ? {} : { onPointerDown: s, onPointerUp: i, onClick: i } };
1241
1241
  }
1242
- let ji = ie(void 0);
1242
+ let Vi = ie(void 0);
1243
1243
  function vo() {
1244
- return te(ji);
1244
+ return te(Vi);
1245
1245
  }
1246
- function ln(...e) {
1246
+ function cn(...e) {
1247
1247
  return Array.from(new Set(e.flatMap((t) => typeof t == "string" ? t.split(" ") : []))).filter(Boolean).join(" ");
1248
1248
  }
1249
1249
  function Te(e, t, ...n) {
@@ -1256,49 +1256,49 @@ function Te(e, t, ...n) {
1256
1256
  }
1257
1257
  var bt = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(bt || {}), Ee = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(Ee || {});
1258
1258
  function ae({ ourProps: e, theirProps: t, slot: n, defaultTag: r, features: o, visible: i = !0, name: s, mergeRefs: a }) {
1259
- a = a ?? Vi;
1260
- let l = mo(t, e);
1261
- if (i) return pt(l, n, r, s, a);
1259
+ a = a ?? ji;
1260
+ let c = mo(t, e);
1261
+ if (i) return pt(c, n, r, s, a);
1262
1262
  let u = o ?? 0;
1263
1263
  if (u & 2) {
1264
- let { static: d = !1, ...c } = l;
1265
- if (d) return pt(c, n, r, s, a);
1264
+ let { static: d = !1, ...l } = c;
1265
+ if (d) return pt(l, n, r, s, a);
1266
1266
  }
1267
1267
  if (u & 1) {
1268
- let { unmount: d = !0, ...c } = l;
1268
+ let { unmount: d = !0, ...l } = c;
1269
1269
  return Te(d ? 0 : 1, { 0() {
1270
1270
  return null;
1271
1271
  }, 1() {
1272
- return pt({ ...c, hidden: !0, style: { display: "none" } }, n, r, s, a);
1272
+ return pt({ ...l, hidden: !0, style: { display: "none" } }, n, r, s, a);
1273
1273
  } });
1274
1274
  }
1275
- return pt(l, n, r, s, a);
1275
+ return pt(c, n, r, s, a);
1276
1276
  }
1277
1277
  function pt(e, t = {}, n, r, o) {
1278
- let { as: i = n, children: s, refName: a = "ref", ...l } = jt(e, ["unmount", "static"]), u = e.ref !== void 0 ? { [a]: e.ref } : {}, d = typeof s == "function" ? s(t) : s;
1279
- "className" in l && l.className && typeof l.className == "function" && (l.className = l.className(t)), l["aria-labelledby"] && l["aria-labelledby"] === l.id && (l["aria-labelledby"] = void 0);
1280
- let c = {};
1278
+ let { as: i = n, children: s, refName: a = "ref", ...c } = Vt(e, ["unmount", "static"]), u = e.ref !== void 0 ? { [a]: e.ref } : {}, d = typeof s == "function" ? s(t) : s;
1279
+ "className" in c && c.className && typeof c.className == "function" && (c.className = c.className(t)), c["aria-labelledby"] && c["aria-labelledby"] === c.id && (c["aria-labelledby"] = void 0);
1280
+ let l = {};
1281
1281
  if (t) {
1282
1282
  let f = !1, p = [];
1283
1283
  for (let [_, y] of Object.entries(t)) typeof y == "boolean" && (f = !0), y === !0 && p.push(_.replace(/([A-Z])/g, (m) => `-${m.toLowerCase()}`));
1284
1284
  if (f) {
1285
- c["data-headlessui-state"] = p.join(" ");
1286
- for (let _ of p) c[`data-${_}`] = "";
1285
+ l["data-headlessui-state"] = p.join(" ");
1286
+ for (let _ of p) l[`data-${_}`] = "";
1287
1287
  }
1288
1288
  }
1289
- if (i === q && (Object.keys(Ce(l)).length > 0 || Object.keys(Ce(c)).length > 0)) if (!Ve(d) || Array.isArray(d) && d.length > 1) {
1290
- if (Object.keys(Ce(l)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${r} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(Ce(l)).concat(Object.keys(Ce(c))).map((f) => ` - ${f}`).join(`
1289
+ if (i === Y && (Object.keys(Fe(c)).length > 0 || Object.keys(Fe(l)).length > 0)) if (!je(d) || Array.isArray(d) && d.length > 1) {
1290
+ if (Object.keys(Fe(c)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${r} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(Fe(c)).concat(Object.keys(Fe(l))).map((f) => ` - ${f}`).join(`
1291
1291
  `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((f) => ` - ${f}`).join(`
1292
1292
  `)].join(`
1293
1293
  `));
1294
1294
  } else {
1295
- let f = d.props, p = f == null ? void 0 : f.className, _ = typeof p == "function" ? (...v) => ln(p(...v), l.className) : ln(p, l.className), y = _ ? { className: _ } : {}, m = mo(d.props, Ce(jt(l, ["ref"])));
1296
- for (let v in c) v in m && delete c[v];
1297
- return Tn(d, Object.assign({}, m, c, u, { ref: o(d.ref, u.ref) }, y));
1295
+ let f = d.props, p = f == null ? void 0 : f.className, _ = typeof p == "function" ? (...v) => cn(p(...v), c.className) : cn(p, c.className), y = _ ? { className: _ } : {}, m = mo(d.props, Fe(Vt(c, ["ref"])));
1296
+ for (let v in l) v in m && delete l[v];
1297
+ return Tn(d, Object.assign({}, m, l, u, { ref: o(d.ref, u.ref) }, y));
1298
1298
  }
1299
- return de(i, Object.assign({}, jt(l, ["ref"]), i !== q && u, i !== q && c), d);
1299
+ return de(i, Object.assign({}, Vt(c, ["ref"]), i !== Y && u, i !== Y && l), d);
1300
1300
  }
1301
- function Vi(...e) {
1301
+ function ji(...e) {
1302
1302
  return e.every((t) => t == null) ? void 0 : (t) => {
1303
1303
  for (let n of e) n != null && (typeof n == "function" ? n(t) : n.current = t);
1304
1304
  };
@@ -1336,12 +1336,12 @@ function oe(e) {
1336
1336
  var t;
1337
1337
  return Object.assign(En(e), { displayName: (t = e.displayName) != null ? t : e.name });
1338
1338
  }
1339
- function Ce(e) {
1339
+ function Fe(e) {
1340
1340
  let t = Object.assign({}, e);
1341
1341
  for (let n in t) t[n] === void 0 && delete t[n];
1342
1342
  return t;
1343
1343
  }
1344
- function jt(e, t = []) {
1344
+ function Vt(e, t = []) {
1345
1345
  let n = Object.assign({}, e);
1346
1346
  for (let r of t) r in n && delete n[r];
1347
1347
  return n;
@@ -1349,7 +1349,7 @@ function jt(e, t = []) {
1349
1349
  let qi = "button";
1350
1350
  function Yi(e, t) {
1351
1351
  var n;
1352
- let r = vo(), { disabled: o = r || !1, autoFocus: i = !1, ...s } = e, { isFocusVisible: a, focusProps: l } = Ri({ autoFocus: i }), { isHovered: u, hoverProps: d } = Ii({ isDisabled: o }), { pressed: c, pressProps: f } = Ui({ disabled: o }), p = Bi({ ref: t, type: (n = s.type) != null ? n : "button", disabled: o || void 0, autoFocus: i }, l, d, f), _ = j(() => ({ disabled: o, hover: u, focus: a, active: c, autofocus: i }), [o, u, a, c, i]);
1352
+ let r = vo(), { disabled: o = r || !1, autoFocus: i = !1, ...s } = e, { isFocusVisible: a, focusProps: c } = Ii({ autoFocus: i }), { isHovered: u, hoverProps: d } = Ri({ isDisabled: o }), { pressed: l, pressProps: f } = zi({ disabled: o }), p = Bi({ ref: t, type: (n = s.type) != null ? n : "button", disabled: o || void 0, autoFocus: i }, c, d, f), _ = V(() => ({ disabled: o, hover: u, focus: a, active: l, autofocus: i }), [o, u, a, l, i]);
1353
1353
  return ae({ ourProps: p, theirProps: s, slot: _, defaultTag: qi, name: "Button" });
1354
1354
  }
1355
1355
  let Gi = oe(Yi), Ki = "div";
@@ -1359,7 +1359,7 @@ function Xi(e, t) {
1359
1359
  let { features: r = 1, ...o } = e, i = { ref: t, "aria-hidden": (r & 2) === 2 ? !0 : (n = o["aria-hidden"]) != null ? n : void 0, hidden: (r & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(r & 4) === 4 && (r & 2) !== 2 && { display: "none" } } };
1360
1360
  return ae({ ourProps: i, theirProps: o, slot: {}, defaultTag: Ki, name: "Hidden" });
1361
1361
  }
1362
- let cn = oe(Xi), Zi = ie(null);
1362
+ let ln = oe(Xi), Zi = ie(null);
1363
1363
  function Ji({ children: e }) {
1364
1364
  let t = te(Zi);
1365
1365
  if (!t) return P.createElement(P.Fragment, null, e);
@@ -1372,10 +1372,10 @@ function Qi(e, t = !0) {
1372
1372
  }
1373
1373
  function he(...e) {
1374
1374
  let t = w(e);
1375
- H(() => {
1375
+ W(() => {
1376
1376
  t.current = e;
1377
1377
  }, [e]);
1378
- let n = K((r) => {
1378
+ let n = X((r) => {
1379
1379
  for (let o of t.current) o != null && (typeof o == "function" ? o(r) : o.current = r);
1380
1380
  });
1381
1381
  return e.every((r) => r == null || (r == null ? void 0 : r[_o])) ? void 0 : n;
@@ -1391,12 +1391,12 @@ function yo() {
1391
1391
  return e;
1392
1392
  }
1393
1393
  function es() {
1394
- let [e, t] = C([]);
1395
- return [e.length > 0 ? e.join(" ") : void 0, j(() => function(n) {
1396
- let r = K((i) => (t((s) => [...s, i]), () => t((s) => {
1397
- let a = s.slice(), l = a.indexOf(i);
1398
- return l !== -1 && a.splice(l, 1), a;
1399
- }))), o = j(() => ({ register: r, slot: n.slot, name: n.name, props: n.props, value: n.value }), [r, n.slot, n.name, n.props, n.value]);
1394
+ let [e, t] = F([]);
1395
+ return [e.length > 0 ? e.join(" ") : void 0, V(() => function(n) {
1396
+ let r = X((i) => (t((s) => [...s, i]), () => t((s) => {
1397
+ let a = s.slice(), c = a.indexOf(i);
1398
+ return c !== -1 && a.splice(c, 1), a;
1399
+ }))), o = V(() => ({ register: r, slot: n.slot, name: n.name, props: n.props, value: n.value }), [r, n.slot, n.name, n.props, n.value]);
1400
1400
  return P.createElement(Mn.Provider, { value: o }, n.children);
1401
1401
  }, [t])];
1402
1402
  }
@@ -1404,7 +1404,7 @@ let ts = "p";
1404
1404
  function ns(e, t) {
1405
1405
  let n = ke(), r = vo(), { id: o = `headlessui-description-${n}`, ...i } = e, s = yo(), a = he(t);
1406
1406
  re(() => s.register(o), [o, s.register]);
1407
- let l = r || !1, u = j(() => ({ ...s.slot, disabled: l }), [s.slot, l]), d = { ref: a, ...s.props, id: o };
1407
+ let c = r || !1, u = V(() => ({ ...s.slot, disabled: c }), [s.slot, c]), d = { ref: a, ...s.props, id: o };
1408
1408
  return ae({ ourProps: d, theirProps: i, slot: u, defaultTag: ts, name: s.name || "Description" });
1409
1409
  }
1410
1410
  let rs = oe(ns), os = Object.assign(rs, {});
@@ -1437,7 +1437,7 @@ function wo(e, t) {
1437
1437
  function bo(e) {
1438
1438
  return St(e.subscribe, e.getSnapshot, e.getSnapshot);
1439
1439
  }
1440
- let ls = new as(() => wo(() => [], { ADD(e) {
1440
+ let cs = new as(() => wo(() => [], { ADD(e) {
1441
1441
  return this.includes(e) ? this : [...this, e];
1442
1442
  }, REMOVE(e) {
1443
1443
  let t = this.indexOf(e);
@@ -1446,7 +1446,7 @@ let ls = new as(() => wo(() => [], { ADD(e) {
1446
1446
  return n.splice(t, 1), n;
1447
1447
  } }));
1448
1448
  function Be(e, t) {
1449
- let n = ls.get(t), r = ke(), o = bo(n);
1449
+ let n = cs.get(t), r = ke(), o = bo(n);
1450
1450
  if (re(() => {
1451
1451
  if (e) return n.dispatch("ADD", r), () => n.dispatch("REMOVE", r);
1452
1452
  }, [n, e]), !e) return !1;
@@ -1466,21 +1466,21 @@ function sr(e) {
1466
1466
  let r = un.get(e);
1467
1467
  r && (r["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", r["aria-hidden"]), e.inert = r.inert, un.delete(e));
1468
1468
  }
1469
- function cs(e, { allowed: t, disallowed: n } = {}) {
1469
+ function ls(e, { allowed: t, disallowed: n } = {}) {
1470
1470
  let r = Be(e, "inert-others");
1471
1471
  re(() => {
1472
1472
  var o, i;
1473
1473
  if (!r) return;
1474
1474
  let s = Se();
1475
- for (let l of (o = n == null ? void 0 : n()) != null ? o : []) l && s.add(ir(l));
1475
+ for (let c of (o = n == null ? void 0 : n()) != null ? o : []) c && s.add(ir(c));
1476
1476
  let a = (i = t == null ? void 0 : t()) != null ? i : [];
1477
- for (let l of a) {
1478
- if (!l) continue;
1479
- let u = Ft(l);
1477
+ for (let c of a) {
1478
+ if (!c) continue;
1479
+ let u = Ct(c);
1480
1480
  if (!u) continue;
1481
- let d = l.parentElement;
1481
+ let d = c.parentElement;
1482
1482
  for (; d && d !== u.body; ) {
1483
- for (let c of d.children) a.some((f) => c.contains(f)) || s.add(ir(c));
1483
+ for (let l of d.children) a.some((f) => l.contains(f)) || s.add(ir(l));
1484
1484
  d = d.parentElement;
1485
1485
  }
1486
1486
  }
@@ -1492,7 +1492,7 @@ function Eo(e, t, n) {
1492
1492
  let i = o.getBoundingClientRect();
1493
1493
  i.x === 0 && i.y === 0 && i.width === 0 && i.height === 0 && n();
1494
1494
  });
1495
- H(() => {
1495
+ W(() => {
1496
1496
  if (!e) return;
1497
1497
  let o = t === null ? null : t instanceof HTMLElement ? t : t.current;
1498
1498
  if (!o) return;
@@ -1519,7 +1519,7 @@ function ps(e = document.body) {
1519
1519
  var $o = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))($o || {});
1520
1520
  function hs(e, t = 0) {
1521
1521
  var n;
1522
- return e === ((n = Ft(e)) == null ? void 0 : n.body) ? !1 : Te(t, { 0() {
1522
+ return e === ((n = Ct(e)) == null ? void 0 : n.body) ? !1 : Te(t, { 0() {
1523
1523
  return e.matches(dn);
1524
1524
  }, 1() {
1525
1525
  let r = e;
@@ -1559,20 +1559,20 @@ function nt(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] }
1559
1559
  if (t & 5) return 1;
1560
1560
  if (t & 10) return -1;
1561
1561
  throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
1562
- })(), l = (() => {
1562
+ })(), c = (() => {
1563
1563
  if (t & 1) return 0;
1564
1564
  if (t & 2) return Math.max(0, s.indexOf(r)) - 1;
1565
1565
  if (t & 4) return Math.max(0, s.indexOf(r)) + 1;
1566
1566
  if (t & 8) return s.length - 1;
1567
1567
  throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
1568
- })(), u = t & 32 ? { preventScroll: !0 } : {}, d = 0, c = s.length, f;
1568
+ })(), u = t & 32 ? { preventScroll: !0 } : {}, d = 0, l = s.length, f;
1569
1569
  do {
1570
- if (d >= c || d + c <= 0) return 0;
1571
- let p = l + d;
1572
- if (t & 16) p = (p + c) % c;
1570
+ if (d >= l || d + l <= 0) return 0;
1571
+ let p = c + d;
1572
+ if (t & 16) p = (p + l) % l;
1573
1573
  else {
1574
1574
  if (p < 0) return 3;
1575
- if (p >= c) return 1;
1575
+ if (p >= l) return 1;
1576
1576
  }
1577
1577
  f = s[p], f == null || f.focus(u), d += a;
1578
1578
  } while (f !== i.activeElement);
@@ -1589,7 +1589,7 @@ function ws() {
1589
1589
  }
1590
1590
  function Ye(e, t, n, r) {
1591
1591
  let o = Oe(n);
1592
- H(() => {
1592
+ W(() => {
1593
1593
  if (!e) return;
1594
1594
  function i(s) {
1595
1595
  o.current(s);
@@ -1599,7 +1599,7 @@ function Ye(e, t, n, r) {
1599
1599
  }
1600
1600
  function ko(e, t, n, r) {
1601
1601
  let o = Oe(n);
1602
- H(() => {
1602
+ W(() => {
1603
1603
  if (!e) return;
1604
1604
  function i(s) {
1605
1605
  o.current(s);
@@ -1609,43 +1609,43 @@ function ko(e, t, n, r) {
1609
1609
  }
1610
1610
  const ar = 30;
1611
1611
  function bs(e, t, n) {
1612
- let r = Be(e, "outside-click"), o = Oe(n), i = U(function(l, u) {
1613
- if (l.defaultPrevented) return;
1614
- let d = u(l);
1612
+ let r = Be(e, "outside-click"), o = Oe(n), i = z(function(c, u) {
1613
+ if (c.defaultPrevented) return;
1614
+ let d = u(c);
1615
1615
  if (d === null || !d.getRootNode().contains(d) || !d.isConnected) return;
1616
- let c = function f(p) {
1616
+ let l = function f(p) {
1617
1617
  return typeof p == "function" ? f(p()) : Array.isArray(p) || p instanceof Set ? p : [p];
1618
1618
  }(t);
1619
- for (let f of c) {
1619
+ for (let f of l) {
1620
1620
  if (f === null) continue;
1621
1621
  let p = f instanceof HTMLElement ? f : f.current;
1622
- if (p != null && p.contains(d) || l.composed && l.composedPath().includes(p)) return;
1622
+ if (p != null && p.contains(d) || c.composed && c.composedPath().includes(p)) return;
1623
1623
  }
1624
- return !hs(d, $o.Loose) && d.tabIndex !== -1 && l.preventDefault(), o.current(l, d);
1624
+ return !hs(d, $o.Loose) && d.tabIndex !== -1 && c.preventDefault(), o.current(c, d);
1625
1625
  }, [o]), s = w(null);
1626
- Ye(r, "pointerdown", (l) => {
1626
+ Ye(r, "pointerdown", (c) => {
1627
1627
  var u, d;
1628
- s.current = ((d = (u = l.composedPath) == null ? void 0 : u.call(l)) == null ? void 0 : d[0]) || l.target;
1629
- }, !0), Ye(r, "mousedown", (l) => {
1628
+ s.current = ((d = (u = c.composedPath) == null ? void 0 : u.call(c)) == null ? void 0 : d[0]) || c.target;
1629
+ }, !0), Ye(r, "mousedown", (c) => {
1630
1630
  var u, d;
1631
- s.current = ((d = (u = l.composedPath) == null ? void 0 : u.call(l)) == null ? void 0 : d[0]) || l.target;
1632
- }, !0), Ye(r, "click", (l) => {
1633
- ws() || s.current && (i(l, () => s.current), s.current = null);
1631
+ s.current = ((d = (u = c.composedPath) == null ? void 0 : u.call(c)) == null ? void 0 : d[0]) || c.target;
1632
+ }, !0), Ye(r, "click", (c) => {
1633
+ ws() || s.current && (i(c, () => s.current), s.current = null);
1634
1634
  }, !0);
1635
1635
  let a = w({ x: 0, y: 0 });
1636
- Ye(r, "touchstart", (l) => {
1637
- a.current.x = l.touches[0].clientX, a.current.y = l.touches[0].clientY;
1638
- }, !0), Ye(r, "touchend", (l) => {
1639
- let u = { x: l.changedTouches[0].clientX, y: l.changedTouches[0].clientY };
1640
- if (!(Math.abs(u.x - a.current.x) >= ar || Math.abs(u.y - a.current.y) >= ar)) return i(l, () => l.target instanceof HTMLElement ? l.target : null);
1641
- }, !0), ko(r, "blur", (l) => i(l, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
1636
+ Ye(r, "touchstart", (c) => {
1637
+ a.current.x = c.touches[0].clientX, a.current.y = c.touches[0].clientY;
1638
+ }, !0), Ye(r, "touchend", (c) => {
1639
+ let u = { x: c.changedTouches[0].clientX, y: c.changedTouches[0].clientY };
1640
+ if (!(Math.abs(u.x - a.current.x) >= ar || Math.abs(u.y - a.current.y) >= ar)) return i(c, () => c.target instanceof HTMLElement ? c.target : null);
1641
+ }, !0), ko(r, "blur", (c) => i(c, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
1642
1642
  }
1643
- function lt(...e) {
1644
- return j(() => Ft(...e), [...e]);
1643
+ function ct(...e) {
1644
+ return V(() => Ct(...e), [...e]);
1645
1645
  }
1646
1646
  function So(e, t, n, r) {
1647
1647
  let o = Oe(n);
1648
- H(() => {
1648
+ W(() => {
1649
1649
  e = e ?? window;
1650
1650
  function i(s) {
1651
1651
  o.current(s);
@@ -1678,31 +1678,31 @@ function $s() {
1678
1678
  let i = (o = window.scrollY) != null ? o : window.pageYOffset, s = null;
1679
1679
  t.addEventListener(e, "click", (a) => {
1680
1680
  if (a.target instanceof HTMLElement) try {
1681
- let l = a.target.closest("a");
1682
- if (!l) return;
1683
- let { hash: u } = new URL(l.href), d = e.querySelector(u);
1681
+ let c = a.target.closest("a");
1682
+ if (!c) return;
1683
+ let { hash: u } = new URL(c.href), d = e.querySelector(u);
1684
1684
  d && !r(d) && (s = d);
1685
1685
  } catch {
1686
1686
  }
1687
1687
  }, !0), t.addEventListener(e, "touchstart", (a) => {
1688
1688
  if (a.target instanceof HTMLElement) if (r(a.target)) {
1689
- let l = a.target;
1690
- for (; l.parentElement && r(l.parentElement); ) l = l.parentElement;
1691
- t.style(l, "overscrollBehavior", "contain");
1689
+ let c = a.target;
1690
+ for (; c.parentElement && r(c.parentElement); ) c = c.parentElement;
1691
+ t.style(c, "overscrollBehavior", "contain");
1692
1692
  } else t.style(a.target, "touchAction", "none");
1693
1693
  }), t.addEventListener(e, "touchmove", (a) => {
1694
1694
  if (a.target instanceof HTMLElement) {
1695
1695
  if (a.target.tagName === "INPUT") return;
1696
1696
  if (r(a.target)) {
1697
- let l = a.target;
1698
- for (; l.parentElement && l.dataset.headlessuiPortal !== "" && !(l.scrollHeight > l.clientHeight || l.scrollWidth > l.clientWidth); ) l = l.parentElement;
1699
- l.dataset.headlessuiPortal === "" && a.preventDefault();
1697
+ let c = a.target;
1698
+ for (; c.parentElement && c.dataset.headlessuiPortal !== "" && !(c.scrollHeight > c.clientHeight || c.scrollWidth > c.clientWidth); ) c = c.parentElement;
1699
+ c.dataset.headlessuiPortal === "" && a.preventDefault();
1700
1700
  } else a.preventDefault();
1701
1701
  }
1702
1702
  }, { passive: !1 }), t.add(() => {
1703
1703
  var a;
1704
- let l = (a = window.scrollY) != null ? a : window.pageYOffset;
1705
- i !== l && window.scrollTo(0, i), s && s.isConnected && (s.scrollIntoView({ block: "nearest" }), s = null);
1704
+ let c = (a = window.scrollY) != null ? a : window.pageYOffset;
1705
+ i !== c && window.scrollTo(0, i), s && s.isConnected && (s.scrollIntoView({ block: "nearest" }), s = null);
1706
1706
  });
1707
1707
  });
1708
1708
  } } : {};
@@ -1746,21 +1746,21 @@ function Ss(e, t, n = () => ({ containers: [] })) {
1746
1746
  if (!(!t || !e)) return Ne.dispatch("PUSH", t, n), () => Ne.dispatch("POP", t, n);
1747
1747
  }, [e, t]), i;
1748
1748
  }
1749
- function Fs(e, t, n = () => [document.body]) {
1749
+ function Cs(e, t, n = () => [document.body]) {
1750
1750
  let r = Be(e, "scroll-lock");
1751
1751
  Ss(r, t, (o) => {
1752
1752
  var i;
1753
1753
  return { containers: [...(i = o.containers) != null ? i : [], n] };
1754
1754
  });
1755
1755
  }
1756
- function Cs(e) {
1756
+ function Fs(e) {
1757
1757
  let t = { called: !1 };
1758
1758
  return (...n) => {
1759
1759
  if (!t.called) return t.called = !0, e(...n);
1760
1760
  };
1761
1761
  }
1762
1762
  function xs(e = 0) {
1763
- let [t, n] = C(e), r = U((l) => n(l), [t]), o = U((l) => n((u) => u | l), [t]), i = U((l) => (t & l) === l, [t]), s = U((l) => n((u) => u & ~l), [n]), a = U((l) => n((u) => u ^ l), [n]);
1763
+ let [t, n] = F(e), r = z((c) => n(c), [t]), o = z((c) => n((u) => u | c), [t]), i = z((c) => (t & c) === c, [t]), s = z((c) => n((u) => u & ~c), [n]), a = z((c) => n((u) => u ^ c), [n]);
1764
1764
  return { flags: t, setFlag: r, addFlag: o, hasFlag: i, removeFlag: s, toggleFlag: a };
1765
1765
  }
1766
1766
  var Ms = ((e) => (e[e.None = 0] = "None", e[e.Closed = 1] = "Closed", e[e.Enter = 2] = "Enter", e[e.Leave = 4] = "Leave", e))(Ms || {});
@@ -1770,42 +1770,42 @@ function Ps(e) {
1770
1770
  return t;
1771
1771
  }
1772
1772
  function Ns(e, t, n, r) {
1773
- let [o, i] = C(n), { hasFlag: s, addFlag: a, removeFlag: l } = xs(e && o ? 3 : 0), u = w(!1), d = w(!1), c = xt();
1773
+ let [o, i] = F(n), { hasFlag: s, addFlag: a, removeFlag: c } = xs(e && o ? 3 : 0), u = w(!1), d = w(!1), l = xt();
1774
1774
  return re(function f() {
1775
1775
  var p;
1776
1776
  if (!e) return;
1777
1777
  n && i(!0);
1778
1778
  let _ = t.current;
1779
1779
  return _ ? ((p = r == null ? void 0 : r.start) == null || p.call(r, n), Ls(_, { inFlight: u, prepare() {
1780
- d.current ? d.current = !1 : d.current = u.current, u.current = !0, !d.current && (n ? (a(3), l(4)) : (a(4), l(2)));
1780
+ d.current ? d.current = !1 : d.current = u.current, u.current = !0, !d.current && (n ? (a(3), c(4)) : (a(4), c(2)));
1781
1781
  }, run() {
1782
- d.current ? n ? (l(3), a(4)) : (l(4), a(3)) : n ? l(1) : a(1);
1782
+ d.current ? n ? (c(3), a(4)) : (c(4), a(3)) : n ? c(1) : a(1);
1783
1783
  }, done() {
1784
1784
  var y;
1785
- d.current && typeof _.getAnimations == "function" && _.getAnimations().length > 0 || (u.current = !1, l(7), n || i(!1), (y = r == null ? void 0 : r.end) == null || y.call(r, n));
1786
- } })) : n ? (a(3), c.nextFrame(() => f())) : void 0;
1787
- }, [e, n, t, c]), e ? [o, { closed: s(1), enter: s(2), leave: s(4), transition: s(2) || s(4) }] : [n, { closed: void 0, enter: void 0, leave: void 0, transition: void 0 }];
1785
+ d.current && typeof _.getAnimations == "function" && _.getAnimations().length > 0 || (u.current = !1, c(7), n || i(!1), (y = r == null ? void 0 : r.end) == null || y.call(r, n));
1786
+ } })) : n ? (a(3), l.nextFrame(() => f())) : void 0;
1787
+ }, [e, n, t, l]), e ? [o, { closed: s(1), enter: s(2), leave: s(4), transition: s(2) || s(4) }] : [n, { closed: void 0, enter: void 0, leave: void 0, transition: void 0 }];
1788
1788
  }
1789
1789
  function Ls(e, { prepare: t, run: n, done: r, inFlight: o }) {
1790
1790
  let i = Se();
1791
- return Is(e, { prepare: t, inFlight: o }), i.nextFrame(() => {
1791
+ return Rs(e, { prepare: t, inFlight: o }), i.nextFrame(() => {
1792
1792
  i.add(As(e, r)), n();
1793
1793
  }), i.dispose;
1794
1794
  }
1795
1795
  function As(e, t) {
1796
- let n = Cs(t), r = Se();
1796
+ let n = Fs(t), r = Se();
1797
1797
  if (!e) return r.dispose;
1798
1798
  let { transitionDuration: o, transitionDelay: i } = getComputedStyle(e), [s, a] = [o, i].map((u) => {
1799
- let [d = 0] = u.split(",").filter(Boolean).map((c) => c.includes("ms") ? parseFloat(c) : parseFloat(c) * 1e3).sort((c, f) => f - c);
1799
+ let [d = 0] = u.split(",").filter(Boolean).map((l) => l.includes("ms") ? parseFloat(l) : parseFloat(l) * 1e3).sort((l, f) => f - l);
1800
1800
  return d;
1801
- }), l = s + a;
1802
- if (l !== 0) {
1801
+ }), c = s + a;
1802
+ if (c !== 0) {
1803
1803
  let u = r.group((d) => {
1804
- let c = d.setTimeout(() => {
1804
+ let l = d.setTimeout(() => {
1805
1805
  n(), d.dispose();
1806
- }, l);
1806
+ }, c);
1807
1807
  d.addEventListener(e, "transitionrun", (f) => {
1808
- f.target === f.currentTarget && (c(), d.addEventListener(e, "transitioncancel", (p) => {
1808
+ f.target === f.currentTarget && (l(), d.addEventListener(e, "transitioncancel", (p) => {
1809
1809
  p.target === p.currentTarget && (n(), u());
1810
1810
  }));
1811
1811
  });
@@ -1816,7 +1816,7 @@ function As(e, t) {
1816
1816
  } else n();
1817
1817
  return r.dispose;
1818
1818
  }
1819
- function Is(e, { inFlight: t, prepare: n }) {
1819
+ function Rs(e, { inFlight: t, prepare: n }) {
1820
1820
  if (t != null && t.current) {
1821
1821
  n();
1822
1822
  return;
@@ -1825,8 +1825,8 @@ function Is(e, { inFlight: t, prepare: n }) {
1825
1825
  e.style.transition = "none", n(), e.offsetHeight, e.style.transition = r;
1826
1826
  }
1827
1827
  function Pn(e, t) {
1828
- let n = w([]), r = K(e);
1829
- H(() => {
1828
+ let n = w([]), r = X(e);
1829
+ W(() => {
1830
1830
  let o = [...n.current];
1831
1831
  for (let [i, s] of t.entries()) if (n.current[i] !== s) {
1832
1832
  let a = r(t, o);
@@ -1836,11 +1836,11 @@ function Pn(e, t) {
1836
1836
  }
1837
1837
  let Mt = ie(null);
1838
1838
  Mt.displayName = "OpenClosedContext";
1839
- var ce = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(ce || {});
1839
+ var le = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(le || {});
1840
1840
  function Pt() {
1841
1841
  return te(Mt);
1842
1842
  }
1843
- function Rs({ value: e, children: t }) {
1843
+ function Is({ value: e, children: t }) {
1844
1844
  return P.createElement(Mt.Provider, { value: e }, t);
1845
1845
  }
1846
1846
  function Ds({ children: e }) {
@@ -1859,10 +1859,10 @@ Os(() => {
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
  });
1862
- function Fo(e) {
1863
- let t = K(e), n = w(!1);
1864
- H(() => (n.current = !1, () => {
1865
- n.current = !0, Ct(() => {
1862
+ function Co(e) {
1863
+ let t = X(e), n = w(!1);
1864
+ W(() => (n.current = !1, () => {
1865
+ n.current = !0, Ft(() => {
1866
1866
  n.current && t();
1867
1867
  });
1868
1868
  }), [t]);
@@ -1872,72 +1872,72 @@ function Hs() {
1872
1872
  return "useSyncExternalStore" in rr ? ((t) => t.useSyncExternalStore)(rr)(() => () => {
1873
1873
  }, () => !1, () => !e) : !1;
1874
1874
  }
1875
- function ct() {
1876
- let e = Hs(), [t, n] = C(Le.isHandoffComplete);
1877
- return t && Le.isHandoffComplete === !1 && n(!1), H(() => {
1875
+ function lt() {
1876
+ let e = Hs(), [t, n] = F(Le.isHandoffComplete);
1877
+ return t && Le.isHandoffComplete === !1 && n(!1), W(() => {
1878
1878
  t !== !0 && n(!0);
1879
- }, [t]), H(() => Le.handoff(), []), e ? !1 : t;
1879
+ }, [t]), W(() => Le.handoff(), []), e ? !1 : t;
1880
1880
  }
1881
- let Co = ie(!1);
1881
+ let Fo = ie(!1);
1882
1882
  function Ws() {
1883
- return te(Co);
1883
+ return te(Fo);
1884
1884
  }
1885
- function lr(e) {
1886
- return P.createElement(Co.Provider, { value: e.force }, e.children);
1885
+ function cr(e) {
1886
+ return P.createElement(Fo.Provider, { value: e.force }, e.children);
1887
1887
  }
1888
- function zs(e) {
1889
- let t = Ws(), n = te(Mo), r = lt(e), [o, i] = C(() => {
1888
+ function Us(e) {
1889
+ let t = Ws(), n = te(Mo), r = ct(e), [o, i] = F(() => {
1890
1890
  var s;
1891
1891
  if (!t && n !== null) return (s = n.current) != null ? s : null;
1892
1892
  if (Le.isServer) return null;
1893
1893
  let a = r == null ? void 0 : r.getElementById("headlessui-portal-root");
1894
1894
  if (a) return a;
1895
1895
  if (r === null) return null;
1896
- let l = r.createElement("div");
1897
- return l.setAttribute("id", "headlessui-portal-root"), r.body.appendChild(l);
1896
+ let c = r.createElement("div");
1897
+ return c.setAttribute("id", "headlessui-portal-root"), r.body.appendChild(c);
1898
1898
  });
1899
- return H(() => {
1899
+ return W(() => {
1900
1900
  o !== null && (r != null && r.body.contains(o) || r == null || r.body.appendChild(o));
1901
- }, [o, r]), H(() => {
1901
+ }, [o, r]), W(() => {
1902
1902
  t || n !== null && i(n.current);
1903
1903
  }, [n, i, t]), o;
1904
1904
  }
1905
- let xo = q, Us = oe(function(e, t) {
1905
+ let xo = Y, zs = oe(function(e, t) {
1906
1906
  let n = e, r = w(null), o = he(Qi((d) => {
1907
1907
  r.current = d;
1908
- }), t), i = lt(r), s = zs(r), [a] = C(() => {
1908
+ }), t), i = ct(r), s = Us(r), [a] = F(() => {
1909
1909
  var d;
1910
1910
  return Le.isServer ? null : (d = i == null ? void 0 : i.createElement("div")) != null ? d : null;
1911
- }), l = te(pn), u = ct();
1911
+ }), c = te(pn), u = lt();
1912
1912
  return re(() => {
1913
1913
  !s || !a || s.contains(a) || (a.setAttribute("data-headlessui-portal", ""), s.appendChild(a));
1914
1914
  }, [s, a]), re(() => {
1915
- if (a && l) return l.register(a);
1916
- }, [l, a]), Fo(() => {
1915
+ if (a && c) return c.register(a);
1916
+ }, [c, a]), Co(() => {
1917
1917
  var d;
1918
1918
  !s || !a || (a instanceof Node && s.contains(a) && s.removeChild(a), s.childNodes.length <= 0 && ((d = s.parentElement) == null || d.removeChild(s)));
1919
1919
  }), u ? !s || !a ? null : kt(ae({ ourProps: { ref: o }, theirProps: n, slot: {}, defaultTag: xo, name: "Portal" }), a) : null;
1920
1920
  });
1921
- function js(e, t) {
1921
+ function Vs(e, t) {
1922
1922
  let n = he(t), { enabled: r = !0, ...o } = e;
1923
- return r ? P.createElement(Us, { ...o, ref: n }) : ae({ ourProps: { ref: n }, theirProps: o, slot: {}, defaultTag: xo, name: "Portal" });
1923
+ return r ? P.createElement(zs, { ...o, ref: n }) : ae({ ourProps: { ref: n }, theirProps: o, slot: {}, defaultTag: xo, name: "Portal" });
1924
1924
  }
1925
- let Vs = q, Mo = ie(null);
1925
+ let js = Y, Mo = ie(null);
1926
1926
  function Bs(e, t) {
1927
1927
  let { target: n, ...r } = e, o = { ref: he(t) };
1928
- return P.createElement(Mo.Provider, { value: n }, ae({ ourProps: o, theirProps: r, defaultTag: Vs, name: "Popover.Group" }));
1928
+ return P.createElement(Mo.Provider, { value: n }, ae({ ourProps: o, theirProps: r, defaultTag: js, name: "Popover.Group" }));
1929
1929
  }
1930
1930
  let pn = ie(null);
1931
1931
  function qs() {
1932
- let e = te(pn), t = w([]), n = K((i) => (t.current.push(i), e && e.register(i), () => r(i))), r = K((i) => {
1932
+ let e = te(pn), t = w([]), n = X((i) => (t.current.push(i), e && e.register(i), () => r(i))), r = X((i) => {
1933
1933
  let s = t.current.indexOf(i);
1934
1934
  s !== -1 && t.current.splice(s, 1), e && e.unregister(i);
1935
- }), o = j(() => ({ register: n, unregister: r, portals: t }), [n, r, t]);
1936
- return [t, j(() => function({ children: i }) {
1935
+ }), o = V(() => ({ register: n, unregister: r, portals: t }), [n, r, t]);
1936
+ return [t, V(() => function({ children: i }) {
1937
1937
  return P.createElement(pn.Provider, { value: o }, i);
1938
1938
  }, [o])];
1939
1939
  }
1940
- let Ys = oe(js), Po = oe(Bs), Gs = Object.assign(Ys, { Group: Po });
1940
+ let Ys = oe(Vs), Po = oe(Bs), Gs = Object.assign(Ys, { Group: Po });
1941
1941
  function Ks(e, t = typeof document < "u" ? document.defaultView : null, n) {
1942
1942
  let r = Be(e, "escape");
1943
1943
  So(t, "keydown", (o) => {
@@ -1946,7 +1946,7 @@ function Ks(e, t = typeof document < "u" ? document.defaultView : null, n) {
1946
1946
  }
1947
1947
  function Xs() {
1948
1948
  var e;
1949
- let [t] = C(() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [n, r] = C((e = t == null ? void 0 : t.matches) != null ? e : !1);
1949
+ let [t] = F(() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [n, r] = F((e = t == null ? void 0 : t.matches) != null ? e : !1);
1950
1950
  return re(() => {
1951
1951
  if (!t) return;
1952
1952
  function o(i) {
@@ -1957,16 +1957,16 @@ function Xs() {
1957
1957
  }
1958
1958
  function Zs({ defaultContainers: e = [], portals: t, mainTreeNodeRef: n } = {}) {
1959
1959
  var r;
1960
- let o = w((r = n == null ? void 0 : n.current) != null ? r : null), i = lt(o), s = K(() => {
1961
- var a, l, u;
1960
+ let o = w((r = n == null ? void 0 : n.current) != null ? r : null), i = ct(o), s = X(() => {
1961
+ var a, c, u;
1962
1962
  let d = [];
1963
- for (let c of e) c !== null && (c instanceof HTMLElement ? d.push(c) : "current" in c && c.current instanceof HTMLElement && d.push(c.current));
1964
- if (t != null && t.current) for (let c of t.current) d.push(c);
1965
- for (let c of (a = i == null ? void 0 : i.querySelectorAll("html > *, body > *")) != null ? a : []) c !== document.body && c !== document.head && c instanceof HTMLElement && c.id !== "headlessui-portal-root" && (c.contains(o.current) || c.contains((u = (l = o.current) == null ? void 0 : l.getRootNode()) == null ? void 0 : u.host) || d.some((f) => c.contains(f)) || d.push(c));
1963
+ for (let l of e) l !== null && (l instanceof HTMLElement ? d.push(l) : "current" in l && l.current instanceof HTMLElement && d.push(l.current));
1964
+ if (t != null && t.current) for (let l of t.current) d.push(l);
1965
+ for (let l of (a = i == null ? void 0 : i.querySelectorAll("html > *, body > *")) != null ? a : []) l !== document.body && l !== document.head && l instanceof HTMLElement && l.id !== "headlessui-portal-root" && (l.contains(o.current) || l.contains((u = (c = o.current) == null ? void 0 : c.getRootNode()) == null ? void 0 : u.host) || d.some((f) => l.contains(f)) || d.push(l));
1966
1966
  return d;
1967
1967
  });
1968
- return { resolveContainers: s, contains: K((a) => s().some((l) => l.contains(a))), mainTreeNodeRef: o, MainTreeNode: j(() => function() {
1969
- return n != null ? null : P.createElement(cn, { features: Et.Hidden, ref: o });
1968
+ return { resolveContainers: s, contains: X((a) => s().some((c) => c.contains(a))), mainTreeNodeRef: o, MainTreeNode: V(() => function() {
1969
+ return n != null ? null : P.createElement(ln, { features: Et.Hidden, ref: o });
1970
1970
  }, [o, n]) };
1971
1971
  }
1972
1972
  function Nn() {
@@ -1992,16 +1992,16 @@ function No(e) {
1992
1992
  let Qs = "div";
1993
1993
  var Me = ((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))(Me || {});
1994
1994
  function ea(e, t) {
1995
- let n = w(null), r = he(n, t), { initialFocus: o, initialFocusFallback: i, containers: s, features: a = 15, ...l } = e;
1996
- ct() || (a = 0);
1997
- let u = lt(n);
1995
+ let n = w(null), r = he(n, t), { initialFocus: o, initialFocusFallback: i, containers: s, features: a = 15, ...c } = e;
1996
+ lt() || (a = 0);
1997
+ let u = ct(n);
1998
1998
  oa(a, { ownerDocument: u });
1999
1999
  let d = ia(a, { ownerDocument: u, container: n, initialFocus: o, initialFocusFallback: i });
2000
2000
  sa(a, { ownerDocument: u, container: n, containers: s, previousActiveElement: d });
2001
- let c = Js(), f = K((v) => {
2001
+ let l = Js(), f = X((v) => {
2002
2002
  let g = n.current;
2003
- g && (($) => $())(() => {
2004
- Te(c.current, { [Ze.Forwards]: () => {
2003
+ g && ((E) => E())(() => {
2004
+ Te(l.current, { [Ze.Forwards]: () => {
2005
2005
  nt(g, ve.First, { skipElements: [v.relatedTarget, i] });
2006
2006
  }, [Ze.Backwards]: () => {
2007
2007
  nt(g, ve.Last, { skipElements: [v.relatedTarget, i] });
@@ -2015,19 +2015,19 @@ function ea(e, t) {
2015
2015
  if (!(a & 4)) return;
2016
2016
  let g = No(s);
2017
2017
  n.current instanceof HTMLElement && g.add(n.current);
2018
- let $ = v.relatedTarget;
2019
- $ instanceof HTMLElement && $.dataset.headlessuiFocusGuard !== "true" && (Lo(g, $) || (y.current ? nt(n.current, Te(c.current, { [Ze.Forwards]: () => ve.Next, [Ze.Backwards]: () => ve.Previous }) | ve.WrapAround, { relativeTo: v.target }) : v.target instanceof HTMLElement && ye(v.target)));
2018
+ let E = v.relatedTarget;
2019
+ E instanceof HTMLElement && E.dataset.headlessuiFocusGuard !== "true" && (Lo(g, E) || (y.current ? nt(n.current, Te(l.current, { [Ze.Forwards]: () => ve.Next, [Ze.Backwards]: () => ve.Previous }) | ve.WrapAround, { relativeTo: v.target }) : v.target instanceof HTMLElement && ye(v.target)));
2020
2020
  } };
2021
- return P.createElement(P.Fragment, null, p && P.createElement(cn, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: f, features: Et.Focusable }), ae({ ourProps: m, theirProps: l, defaultTag: Qs, name: "FocusTrap" }), p && P.createElement(cn, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: f, features: Et.Focusable }));
2021
+ return P.createElement(P.Fragment, null, p && P.createElement(ln, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: f, features: Et.Focusable }), ae({ ourProps: m, theirProps: c, defaultTag: Qs, name: "FocusTrap" }), p && P.createElement(ln, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: f, features: Et.Focusable }));
2022
2022
  }
2023
2023
  let ta = oe(ea), na = Object.assign(ta, { features: Me });
2024
2024
  function ra(e = !0) {
2025
2025
  let t = w(be.slice());
2026
2026
  return Pn(([n], [r]) => {
2027
- r === !0 && n === !1 && Ct(() => {
2027
+ r === !0 && n === !1 && Ft(() => {
2028
2028
  t.current.splice(0);
2029
2029
  }), r === !1 && n === !0 && (t.current = be.slice());
2030
- }, [e, be, t]), K(() => {
2030
+ }, [e, be, t]), X(() => {
2031
2031
  var n;
2032
2032
  return (n = t.current.find((r) => r != null && r.isConnected)) != null ? n : null;
2033
2033
  });
@@ -2036,7 +2036,7 @@ function oa(e, { ownerDocument: t }) {
2036
2036
  let n = !!(e & 8), r = ra(n);
2037
2037
  Pn(() => {
2038
2038
  n || (t == null ? void 0 : t.activeElement) === (t == null ? void 0 : t.body) && ye(r());
2039
- }, [n]), Fo(() => {
2039
+ }, [n]), Co(() => {
2040
2040
  n && ye(r());
2041
2041
  });
2042
2042
  }
@@ -2048,8 +2048,8 @@ function ia(e, { ownerDocument: t, container: n, initialFocus: r, initialFocusFa
2048
2048
  o != null && o.current && ye(o.current);
2049
2049
  return;
2050
2050
  }
2051
- let l = n.current;
2052
- l && Ct(() => {
2051
+ let c = n.current;
2052
+ c && Ft(() => {
2053
2053
  if (!a.current) return;
2054
2054
  let u = t == null ? void 0 : t.activeElement;
2055
2055
  if (r != null && r.current) {
@@ -2057,15 +2057,15 @@ function ia(e, { ownerDocument: t, container: n, initialFocus: r, initialFocusFa
2057
2057
  i.current = u;
2058
2058
  return;
2059
2059
  }
2060
- } else if (l.contains(u)) {
2060
+ } else if (c.contains(u)) {
2061
2061
  i.current = u;
2062
2062
  return;
2063
2063
  }
2064
2064
  if (r != null && r.current) ye(r.current);
2065
2065
  else {
2066
2066
  if (e & 16) {
2067
- if (nt(l, ve.First | ve.AutoFocus) !== fn.Error) return;
2068
- } else if (nt(l, ve.First) !== fn.Error) return;
2067
+ if (nt(c, ve.First | ve.AutoFocus) !== fn.Error) return;
2068
+ } else if (nt(c, ve.First) !== fn.Error) return;
2069
2069
  if (o != null && o.current && (ye(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
  }
@@ -2077,12 +2077,12 @@ function sa(e, { ownerDocument: t, container: n, containers: r, previousActiveEl
2077
2077
  let i = Nn(), s = !!(e & 4);
2078
2078
  So(t == null ? void 0 : t.defaultView, "focus", (a) => {
2079
2079
  if (!s || !i.current) return;
2080
- let l = No(r);
2081
- n.current instanceof HTMLElement && l.add(n.current);
2080
+ let c = No(r);
2081
+ n.current instanceof HTMLElement && c.add(n.current);
2082
2082
  let u = o.current;
2083
2083
  if (!u) return;
2084
2084
  let d = a.target;
2085
- d && d instanceof HTMLElement ? Lo(l, d) ? (o.current = d, ye(d)) : (a.preventDefault(), a.stopPropagation(), ye(u)) : ye(o.current);
2085
+ d && d instanceof HTMLElement ? Lo(c, d) ? (o.current = d, ye(d)) : (a.preventDefault(), a.stopPropagation(), ye(u)) : ye(o.current);
2086
2086
  }, !0);
2087
2087
  }
2088
2088
  function Lo(e, t) {
@@ -2091,17 +2091,17 @@ function Lo(e, t) {
2091
2091
  }
2092
2092
  function Ao(e) {
2093
2093
  var t;
2094
- return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((t = e.as) != null ? t : Ro) !== q || P.Children.count(e.children) === 1;
2094
+ return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((t = e.as) != null ? t : Io) !== Y || P.Children.count(e.children) === 1;
2095
2095
  }
2096
2096
  let Nt = ie(null);
2097
2097
  Nt.displayName = "TransitionContext";
2098
2098
  var aa = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(aa || {});
2099
- function la() {
2099
+ function ca() {
2100
2100
  let e = te(Nt);
2101
2101
  if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
2102
2102
  return e;
2103
2103
  }
2104
- function ca() {
2104
+ function la() {
2105
2105
  let e = te(Lt);
2106
2106
  if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
2107
2107
  return e;
@@ -2111,8 +2111,8 @@ Lt.displayName = "NestingContext";
2111
2111
  function At(e) {
2112
2112
  return "children" in e ? At(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
2113
2113
  }
2114
- function Io(e, t) {
2115
- let n = Oe(e), r = w([]), o = Nn(), i = xt(), s = K((p, _ = Ee.Hidden) => {
2114
+ function Ro(e, t) {
2115
+ let n = Oe(e), r = w([]), o = Nn(), i = xt(), s = X((p, _ = Ee.Hidden) => {
2116
2116
  let y = r.current.findIndex(({ el: m }) => m === p);
2117
2117
  y !== -1 && (Te(_, { [Ee.Unmount]() {
2118
2118
  r.current.splice(y, 1);
@@ -2122,83 +2122,83 @@ function Io(e, t) {
2122
2122
  var m;
2123
2123
  !At(r) && o.current && ((m = n.current) == null || m.call(n));
2124
2124
  }));
2125
- }), a = K((p) => {
2125
+ }), a = X((p) => {
2126
2126
  let _ = r.current.find(({ el: y }) => y === p);
2127
2127
  return _ ? _.state !== "visible" && (_.state = "visible") : r.current.push({ el: p, state: "visible" }), () => s(p, Ee.Unmount);
2128
- }), l = w([]), u = w(Promise.resolve()), d = w({ enter: [], leave: [] }), c = K((p, _, y) => {
2129
- l.current.splice(0), t && (t.chains.current[_] = t.chains.current[_].filter(([m]) => m !== p)), t == null || t.chains.current[_].push([p, new Promise((m) => {
2130
- l.current.push(m);
2128
+ }), c = w([]), u = w(Promise.resolve()), d = w({ enter: [], leave: [] }), l = X((p, _, y) => {
2129
+ c.current.splice(0), t && (t.chains.current[_] = t.chains.current[_].filter(([m]) => m !== p)), t == null || t.chains.current[_].push([p, new Promise((m) => {
2130
+ c.current.push(m);
2131
2131
  })]), t == null || t.chains.current[_].push([p, new Promise((m) => {
2132
2132
  Promise.all(d.current[_].map(([v, g]) => g)).then(() => m());
2133
2133
  })]), _ === "enter" ? u.current = u.current.then(() => t == null ? void 0 : t.wait.current).then(() => y(_)) : y(_);
2134
- }), f = K((p, _, y) => {
2134
+ }), f = X((p, _, y) => {
2135
2135
  Promise.all(d.current[_].splice(0).map(([m, v]) => v)).then(() => {
2136
2136
  var m;
2137
- (m = l.current.shift()) == null || m();
2137
+ (m = c.current.shift()) == null || m();
2138
2138
  }).then(() => y(_));
2139
2139
  });
2140
- return j(() => ({ children: r, register: a, unregister: s, onStart: c, onStop: f, wait: u, chains: d }), [a, s, r, c, f, d, u]);
2140
+ return V(() => ({ children: r, register: a, unregister: s, onStart: l, onStop: f, wait: u, chains: d }), [a, s, r, l, f, d, u]);
2141
2141
  }
2142
- let Ro = q, Do = bt.RenderStrategy;
2142
+ let Io = Y, Do = bt.RenderStrategy;
2143
2143
  function ua(e, t) {
2144
2144
  var n, r;
2145
- let { transition: o = !0, beforeEnter: i, afterEnter: s, beforeLeave: a, afterLeave: l, enter: u, enterFrom: d, enterTo: c, entered: f, leave: p, leaveFrom: _, leaveTo: y, ...m } = e, v = w(null), g = Ao(e), $ = he(...g ? [v, t] : t === null ? [] : [t]), T = (n = m.unmount) == null || n ? Ee.Unmount : Ee.Hidden, { show: S, appear: x, initial: L } = la(), [W, F] = C(S ? "visible" : "hidden"), E = ca(), { register: A, unregister: Y } = E;
2145
+ let { transition: o = !0, beforeEnter: i, afterEnter: s, beforeLeave: a, afterLeave: c, enter: u, enterFrom: d, enterTo: l, entered: f, leave: p, leaveFrom: _, leaveTo: y, ...m } = e, v = w(null), g = Ao(e), E = he(...g ? [v, t] : t === null ? [] : [t]), T = (n = m.unmount) == null || n ? Ee.Unmount : Ee.Hidden, { show: k, appear: C, initial: L } = ca(), [U, S] = F(k ? "visible" : "hidden"), $ = la(), { register: A, unregister: G } = $;
2146
2146
  re(() => A(v), [A, v]), re(() => {
2147
2147
  if (T === Ee.Hidden && v.current) {
2148
- if (S && W !== "visible") {
2149
- F("visible");
2148
+ if (k && U !== "visible") {
2149
+ S("visible");
2150
2150
  return;
2151
2151
  }
2152
- return Te(W, { hidden: () => Y(v), visible: () => A(v) });
2152
+ return Te(U, { hidden: () => G(v), visible: () => A(v) });
2153
2153
  }
2154
- }, [W, v, A, Y, S, T]);
2155
- let I = ct();
2154
+ }, [U, v, A, G, k, T]);
2155
+ let R = lt();
2156
2156
  re(() => {
2157
- if (g && I && W === "visible" && v.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
2158
- }, [v, W, I, g]);
2159
- let V = L && !x, R = x && S && L, G = w(!1), M = Io(() => {
2160
- G.current || (F("hidden"), Y(v));
2161
- }, E), N = K((Q) => {
2162
- G.current = !0;
2163
- let J = Q ? "enter" : "leave";
2164
- M.onStart(v, J, (ee) => {
2157
+ if (g && R && U === "visible" && v.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
2158
+ }, [v, U, R, g]);
2159
+ let B = L && !C, D = C && k && L, K = w(!1), x = Ro(() => {
2160
+ K.current || (S("hidden"), G(v));
2161
+ }, $), N = X((J) => {
2162
+ K.current = !0;
2163
+ let Q = J ? "enter" : "leave";
2164
+ x.onStart(v, Q, (ee) => {
2165
2165
  ee === "enter" ? i == null || i() : ee === "leave" && (a == null || a());
2166
2166
  });
2167
- }), D = K((Q) => {
2168
- let J = Q ? "enter" : "leave";
2169
- G.current = !1, M.onStop(v, J, (ee) => {
2170
- ee === "enter" ? s == null || s() : ee === "leave" && (l == null || l());
2171
- }), J === "leave" && !At(M) && (F("hidden"), Y(v));
2167
+ }), O = X((J) => {
2168
+ let Q = J ? "enter" : "leave";
2169
+ K.current = !1, x.onStop(v, Q, (ee) => {
2170
+ ee === "enter" ? s == null || s() : ee === "leave" && (c == null || c());
2171
+ }), Q === "leave" && !At(x) && (S("hidden"), G(v));
2172
2172
  });
2173
- H(() => {
2174
- g && o || (N(S), D(S));
2175
- }, [S, g, o]);
2176
- let k = !(!o || !g || !I || V), [, b] = Ns(k, v, S, { start: N, end: D }), z = Ce({ ref: $, className: ((r = ln(m.className, R && u, R && d, b.enter && u, b.enter && b.closed && d, b.enter && !b.closed && c, b.leave && p, b.leave && !b.closed && _, b.leave && b.closed && y, !b.transition && S && f)) == null ? void 0 : r.trim()) || void 0, ...Ps(b) }), X = 0;
2177
- return W === "visible" && (X |= ce.Open), W === "hidden" && (X |= ce.Closed), b.enter && (X |= ce.Opening), b.leave && (X |= ce.Closing), P.createElement(Lt.Provider, { value: M }, P.createElement(Rs, { value: X }, ae({ ourProps: z, theirProps: m, defaultTag: Ro, features: Do, visible: W === "visible", name: "Transition.Child" })));
2173
+ W(() => {
2174
+ g && o || (N(k), O(k));
2175
+ }, [k, g, o]);
2176
+ let M = !(!o || !g || !R || B), [, b] = Ns(M, v, k, { start: N, end: O }), I = Fe({ ref: E, className: ((r = cn(m.className, D && u, D && d, b.enter && u, b.enter && b.closed && d, b.enter && !b.closed && l, b.leave && p, b.leave && !b.closed && _, b.leave && b.closed && y, !b.transition && k && f)) == null ? void 0 : r.trim()) || void 0, ...Ps(b) }), j = 0;
2177
+ return U === "visible" && (j |= le.Open), U === "hidden" && (j |= le.Closed), b.enter && (j |= le.Opening), b.leave && (j |= le.Closing), P.createElement(Lt.Provider, { value: x }, P.createElement(Is, { value: j }, ae({ ourProps: I, theirProps: m, defaultTag: Io, features: Do, 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), a = Ao(e), l = he(...a ? [s, t] : t === null ? [] : [t]);
2181
- ct();
2180
+ let { show: n, appear: r = !1, unmount: o = !0, ...i } = e, s = w(null), a = Ao(e), c = he(...a ? [s, t] : t === null ? [] : [t]);
2181
+ lt();
2182
2182
  let u = Pt();
2183
- if (n === void 0 && u !== null && (n = (u & ce.Open) === ce.Open), n === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
2184
- let [d, c] = C(n ? "visible" : "hidden"), f = Io(() => {
2185
- n || c("hidden");
2186
- }), [p, _] = C(!0), y = w([n]);
2183
+ if (n === void 0 && u !== null && (n = (u & le.Open) === le.Open), n === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
2184
+ let [d, l] = F(n ? "visible" : "hidden"), f = Ro(() => {
2185
+ n || l("hidden");
2186
+ }), [p, _] = F(!0), y = w([n]);
2187
2187
  re(() => {
2188
2188
  p !== !1 && y.current[y.current.length - 1] !== n && (y.current.push(n), _(!1));
2189
2189
  }, [y, n]);
2190
- let m = j(() => ({ show: n, appear: r, initial: p }), [n, r, p]);
2191
- Eo(n, s, () => c("hidden")), re(() => {
2192
- n ? c("visible") : !At(f) && s.current !== null && c("hidden");
2190
+ let m = V(() => ({ show: n, appear: r, initial: p }), [n, r, p]);
2191
+ Eo(n, s, () => l("hidden")), re(() => {
2192
+ n ? l("visible") : !At(f) && s.current !== null && l("hidden");
2193
2193
  }, [n, f]);
2194
- let v = { unmount: o }, g = K(() => {
2194
+ let v = { unmount: o }, g = X(() => {
2195
2195
  var T;
2196
2196
  p && _(!1), (T = e.beforeEnter) == null || T.call(e);
2197
- }), $ = K(() => {
2197
+ }), E = X(() => {
2198
2198
  var T;
2199
2199
  p && _(!1), (T = e.beforeLeave) == null || T.call(e);
2200
2200
  });
2201
- return P.createElement(Lt.Provider, { value: f }, P.createElement(Nt.Provider, { value: m }, ae({ ourProps: { ...v, as: q, children: P.createElement(Oo, { ref: l, ...v, ...i, beforeEnter: g, beforeLeave: $ }) }, theirProps: {}, defaultTag: q, features: Do, visible: d === "visible", name: "Transition" })));
2201
+ return P.createElement(Lt.Provider, { value: f }, P.createElement(Nt.Provider, { value: m }, ae({ ourProps: { ...v, as: Y, children: P.createElement(Oo, { ref: c, ...v, ...i, beforeEnter: g, beforeLeave: E }) }, theirProps: {}, defaultTag: Y, features: Do, visible: d === "visible", name: "Transition" })));
2202
2202
  }
2203
2203
  function fa(e, t) {
2204
2204
  let n = te(Nt) !== null, r = Pt() !== null;
@@ -2210,41 +2210,41 @@ let va = { 0(e, t) {
2210
2210
  return e.titleId === t.id ? e : { ...e, titleId: t.id };
2211
2211
  } }, An = ie(null);
2212
2212
  An.displayName = "DialogContext";
2213
- function It(e) {
2213
+ function Rt(e) {
2214
2214
  let t = te(An);
2215
2215
  if (t === null) {
2216
2216
  let n = new Error(`<${e} /> is missing a parent <Dialog /> component.`);
2217
- throw Error.captureStackTrace && Error.captureStackTrace(n, It), n;
2217
+ throw Error.captureStackTrace && Error.captureStackTrace(n, Rt), n;
2218
2218
  }
2219
2219
  return t;
2220
2220
  }
2221
2221
  function ma(e, t) {
2222
2222
  return Te(t.type, va, e, t);
2223
2223
  }
2224
- let cr = oe(function(e, t) {
2225
- let n = ke(), { id: r = `headlessui-dialog-${n}`, open: o, onClose: i, initialFocus: s, role: a = "dialog", autoFocus: l = !0, __demoMode: u = !1, ...d } = e, c = w(!1);
2224
+ let lr = oe(function(e, t) {
2225
+ let n = ke(), { id: r = `headlessui-dialog-${n}`, open: o, onClose: i, initialFocus: s, role: a = "dialog", autoFocus: c = !0, __demoMode: u = !1, ...d } = e, l = w(!1);
2226
2226
  a = function() {
2227
- return a === "dialog" || a === "alertdialog" ? a : (c.current || (c.current = !0, console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
2227
+ return a === "dialog" || a === "alertdialog" ? a : (l.current || (l.current = !0, console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
2228
2228
  }();
2229
2229
  let f = Pt();
2230
- o === void 0 && f !== null && (o = (f & ce.Open) === ce.Open);
2231
- let p = w(null), _ = he(p, t), y = lt(p), m = o ? 0 : 1, [v, g] = it(ma, { titleId: null, descriptionId: null, panelRef: mn() }), $ = K(() => i(!1)), T = K((k) => g({ type: 0, id: k })), S = ct() ? m === 0 : !1, [x, L] = qs(), W = { get current() {
2232
- var k;
2233
- return (k = v.panelRef.current) != null ? k : p.current;
2234
- } }, { resolveContainers: F, mainTreeNodeRef: E, MainTreeNode: A } = Zs({ portals: x, defaultContainers: [W] }), Y = f !== null ? (f & ce.Closing) === ce.Closing : !1;
2235
- cs(u || Y ? !1 : S, { allowed: K(() => {
2236
- var k, b;
2237
- return [(b = (k = p.current) == null ? void 0 : k.closest("[data-headlessui-portal]")) != null ? b : null];
2238
- }), disallowed: K(() => {
2239
- var k, b;
2240
- return [(b = (k = E.current) == null ? void 0 : k.closest("body > *:not(#headlessui-portal-root)")) != null ? b : null];
2241
- }) }), bs(S, F, (k) => {
2242
- k.preventDefault(), $();
2243
- }), Ks(S, y == null ? void 0 : y.defaultView, (k) => {
2244
- k.preventDefault(), k.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), $();
2245
- }), Fs(u || Y ? !1 : S, y, F), Eo(S, p, $);
2246
- let [I, V] = es(), R = j(() => [{ dialogState: m, close: $, setTitleId: T }, v], [m, v, $, T]), G = j(() => ({ open: m === 0 }), [m]), M = { ref: _, id: r, role: a, tabIndex: -1, "aria-modal": u ? void 0 : m === 0 ? !0 : void 0, "aria-labelledby": v.titleId, "aria-describedby": I }, N = !Xs(), D = Me.None;
2247
- return S && !u && (D |= Me.RestoreFocus, D |= Me.TabLock, l && (D |= Me.AutoFocus), N && (D |= Me.InitialFocus)), P.createElement(Ds, null, P.createElement(lr, { force: !0 }, P.createElement(Gs, null, P.createElement(An.Provider, { value: R }, P.createElement(Po, { target: p }, P.createElement(lr, { force: !1 }, P.createElement(V, { slot: G }, P.createElement(L, null, P.createElement(na, { initialFocus: s, initialFocusFallback: p, containers: F, features: D }, P.createElement(ss, { value: $ }, ae({ ourProps: M, theirProps: d, slot: G, defaultTag: _a, features: ya, visible: m === 0, name: "Dialog" })))))))))), P.createElement(Ji, null, P.createElement(A, null)));
2230
+ o === void 0 && f !== null && (o = (f & le.Open) === le.Open);
2231
+ let p = w(null), _ = he(p, t), y = ct(p), m = o ? 0 : 1, [v, g] = it(ma, { titleId: null, descriptionId: null, panelRef: mn() }), E = X(() => i(!1)), T = X((M) => g({ type: 0, id: M })), k = lt() ? m === 0 : !1, [C, L] = qs(), U = { get current() {
2232
+ var M;
2233
+ return (M = v.panelRef.current) != null ? M : p.current;
2234
+ } }, { resolveContainers: S, mainTreeNodeRef: $, MainTreeNode: A } = Zs({ portals: C, defaultContainers: [U] }), G = f !== null ? (f & le.Closing) === le.Closing : !1;
2235
+ ls(u || G ? !1 : k, { allowed: X(() => {
2236
+ var M, b;
2237
+ return [(b = (M = p.current) == null ? void 0 : M.closest("[data-headlessui-portal]")) != null ? b : null];
2238
+ }), disallowed: X(() => {
2239
+ var M, b;
2240
+ return [(b = (M = $.current) == null ? void 0 : M.closest("body > *:not(#headlessui-portal-root)")) != null ? b : null];
2241
+ }) }), bs(k, S, (M) => {
2242
+ M.preventDefault(), E();
2243
+ }), Ks(k, y == null ? void 0 : y.defaultView, (M) => {
2244
+ M.preventDefault(), M.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), E();
2245
+ }), Cs(u || G ? !1 : k, y, S), Eo(k, p, E);
2246
+ let [R, B] = es(), D = V(() => [{ dialogState: m, close: E, setTitleId: T }, v], [m, v, E, T]), K = V(() => ({ open: m === 0 }), [m]), x = { ref: _, id: r, role: a, tabIndex: -1, "aria-modal": u ? void 0 : m === 0 ? !0 : void 0, "aria-labelledby": v.titleId, "aria-describedby": R }, N = !Xs(), O = Me.None;
2247
+ return k && !u && (O |= Me.RestoreFocus, O |= Me.TabLock, c && (O |= Me.AutoFocus), N && (O |= Me.InitialFocus)), P.createElement(Ds, null, P.createElement(cr, { force: !0 }, P.createElement(Gs, null, P.createElement(An.Provider, { value: D }, P.createElement(Po, { target: p }, P.createElement(cr, { force: !1 }, P.createElement(B, { slot: K }, P.createElement(L, null, P.createElement(na, { initialFocus: s, initialFocusFallback: p, containers: S, features: O }, P.createElement(ss, { value: E }, ae({ ourProps: x, theirProps: d, slot: K, defaultTag: _a, features: ya, visible: m === 0, name: "Dialog" })))))))))), P.createElement(Ji, null, P.createElement(A, null)));
2248
2248
  }), _a = "div", ya = bt.RenderStrategy | bt.Static;
2249
2249
  function ga(e, t) {
2250
2250
  let { transition: n = !1, open: r, ...o } = e, i = Pt(), s = e.hasOwnProperty("open") || i !== null, a = e.hasOwnProperty("onClose");
@@ -2253,37 +2253,37 @@ function ga(e, t) {
2253
2253
  if (!a) 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 ? P.createElement(pe, { show: r, transition: n, unmount: o.unmount }, P.createElement(cr, { ref: t, ...o })) : P.createElement(cr, { ref: t, open: r, ...o });
2256
+ return (r !== void 0 || n) && !o.static ? P.createElement(pe, { show: r, transition: n, unmount: o.unmount }, P.createElement(lr, { ref: t, ...o })) : P.createElement(lr, { ref: t, open: r, ...o });
2257
2257
  }
2258
2258
  let wa = "div";
2259
2259
  function ba(e, t) {
2260
- let n = ke(), { id: r = `headlessui-dialog-panel-${n}`, transition: o = !1, ...i } = e, [{ dialogState: s }, a] = It("Dialog.Panel"), l = he(t, a.panelRef), u = j(() => ({ open: s === 0 }), [s]), d = K((c) => {
2261
- c.stopPropagation();
2260
+ let n = ke(), { id: r = `headlessui-dialog-panel-${n}`, transition: o = !1, ...i } = e, [{ dialogState: s }, a] = Rt("Dialog.Panel"), c = he(t, a.panelRef), u = V(() => ({ open: s === 0 }), [s]), d = X((l) => {
2261
+ l.stopPropagation();
2262
2262
  });
2263
- return P.createElement(o ? Ln : q, null, ae({ ourProps: { ref: l, id: r, onClick: d }, theirProps: i, slot: u, defaultTag: wa, name: "Dialog.Panel" }));
2263
+ return P.createElement(o ? Ln : Y, null, ae({ ourProps: { ref: c, id: r, onClick: d }, theirProps: i, slot: u, defaultTag: wa, name: "Dialog.Panel" }));
2264
2264
  }
2265
2265
  let Ea = "div";
2266
2266
  function $a(e, t) {
2267
- let { transition: n = !1, ...r } = e, [{ dialogState: o }] = It("Dialog.Backdrop"), i = j(() => ({ open: o === 0 }), [o]);
2268
- return P.createElement(n ? Ln : q, null, ae({ ourProps: { ref: t, "aria-hidden": !0 }, theirProps: r, slot: i, defaultTag: Ea, name: "Dialog.Backdrop" }));
2267
+ let { transition: n = !1, ...r } = e, [{ dialogState: o }] = Rt("Dialog.Backdrop"), i = V(() => ({ open: o === 0 }), [o]);
2268
+ return P.createElement(n ? Ln : Y, null, ae({ ourProps: { ref: t, "aria-hidden": !0 }, theirProps: r, slot: i, defaultTag: Ea, name: "Dialog.Backdrop" }));
2269
2269
  }
2270
2270
  let Ta = "h2";
2271
2271
  function ka(e, t) {
2272
- let n = ke(), { id: r = `headlessui-dialog-title-${n}`, ...o } = e, [{ dialogState: i, setTitleId: s }] = It("Dialog.Title"), a = he(t);
2273
- H(() => (s(r), () => s(null)), [r, s]);
2274
- let l = j(() => ({ open: i === 0 }), [i]);
2275
- return ae({ ourProps: { ref: a, id: r }, theirProps: o, slot: l, defaultTag: Ta, name: "Dialog.Title" });
2272
+ let n = ke(), { id: r = `headlessui-dialog-title-${n}`, ...o } = e, [{ dialogState: i, setTitleId: s }] = Rt("Dialog.Title"), a = he(t);
2273
+ W(() => (s(r), () => s(null)), [r, s]);
2274
+ let c = V(() => ({ open: i === 0 }), [i]);
2275
+ return ae({ ourProps: { ref: a, id: r }, theirProps: o, slot: c, defaultTag: Ta, name: "Dialog.Title" });
2276
2276
  }
2277
2277
  let Sa = oe(ga), Ho = oe(ba);
2278
2278
  oe($a);
2279
- let Fa = oe(ka), Ca = Object.assign(Sa, { Panel: Ho, Title: Fa, Description: os });
2279
+ let Ca = oe(ka), Fa = Object.assign(Sa, { Panel: Ho, Title: Ca, Description: os });
2280
2280
  const xa = "_root_1duny_1", Ma = "_modal_1duny_10", Pa = "_container_1duny_13", Na = "_page_1duny_18", La = "_close_1duny_21", ht = {
2281
2281
  root: xa,
2282
2282
  modal: Ma,
2283
2283
  container: Pa,
2284
2284
  page: Na,
2285
2285
  close: La
2286
- }, Aa = "_root_1h6qm_1", Ia = {
2286
+ }, Aa = "_root_1h6qm_1", Ra = {
2287
2287
  root: Aa
2288
2288
  }, we = (e) => {
2289
2289
  const {
@@ -2294,7 +2294,7 @@ const xa = "_root_1duny_1", Ma = "_modal_1duny_10", Pa = "_container_1duny_13",
2294
2294
  strokeWidth: i,
2295
2295
  className: s = "",
2296
2296
  viewBox: a = "0 0 20 20"
2297
- } = e, l = j(() => {
2297
+ } = e, c = V(() => {
2298
2298
  switch (n) {
2299
2299
  case "sm":
2300
2300
  return "yvlw-w-4 yvlw-h-4";
@@ -2316,11 +2316,11 @@ const xa = "_root_1duny_1", Ma = "_modal_1duny_10", Pa = "_container_1duny_13",
2316
2316
  fill: r,
2317
2317
  stroke: o,
2318
2318
  strokeWidth: i,
2319
- className: `${l} ${s}`,
2319
+ className: `${c} ${s}`,
2320
2320
  children: t
2321
2321
  }
2322
2322
  );
2323
- }, Ra = () => /* @__PURE__ */ h(we, { 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(we, { ...e, children: /* @__PURE__ */ h(
2323
+ }, Ia = () => /* @__PURE__ */ h(we, { 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(we, { ...e, children: /* @__PURE__ */ h(
2324
2324
  "path",
2325
2325
  {
2326
2326
  fillRule: "evenodd",
@@ -2339,7 +2339,7 @@ const xa = "_root_1duny_1", Ma = "_modal_1duny_10", Pa = "_container_1duny_13",
2339
2339
  ] }), Ha = (e) => /* @__PURE__ */ h(we, { ...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(we, { ...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" }) }), zo = (e) => /* @__PURE__ */ h(we, { ...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" }) }), za = (e) => /* @__PURE__ */ h(we, { ...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" }) });
2342
+ ] }), Wa = (e) => /* @__PURE__ */ h(we, { ...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" }) }), Uo = (e) => /* @__PURE__ */ h(we, { ...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(we, { ...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
2343
  class $e {
2344
2344
  static loadVision() {
2345
2345
  return import(
@@ -2381,23 +2381,23 @@ class $e {
2381
2381
  y: 0
2382
2382
  };
2383
2383
  o.x = (n - o.width) / 2, o.y = (r - o.height) / 2;
2384
- let i = 1 / 0, s = -1 / 0, a = 1 / 0, l = -1 / 0;
2384
+ let i = 1 / 0, s = -1 / 0, a = 1 / 0, c = -1 / 0;
2385
2385
  t.forEach((d) => {
2386
- i = Math.min(i, d.x), s = Math.max(s, d.x), a = Math.min(a, d.y), l = Math.max(l, d.y);
2386
+ i = Math.min(i, d.x), s = Math.max(s, d.x), a = Math.min(a, d.y), c = Math.max(c, d.y);
2387
2387
  });
2388
- const u = { xMin: i, xMax: s, yMin: a, yMax: l };
2388
+ const u = { xMin: i, xMax: s, yMin: a, yMax: c };
2389
2389
  return u.xMin < o.x || u.xMax > o.x + o.width || u.yMin < o.y || u.yMax > o.y + o.height ? {
2390
2390
  box: {
2391
2391
  xMin: i,
2392
2392
  xMax: s,
2393
2393
  yMin: a,
2394
- yMax: l,
2394
+ yMax: c,
2395
2395
  width: s - i,
2396
- height: l - a
2396
+ height: c - a
2397
2397
  },
2398
2398
  inBox: !1
2399
2399
  } : {
2400
- box: { xMin: i, xMax: s, yMin: a, yMax: l, width: s - i, height: l - a },
2400
+ box: { xMin: i, xMax: s, yMin: a, yMax: c, width: s - i, height: c - a },
2401
2401
  inBox: !0
2402
2402
  };
2403
2403
  }
@@ -2407,17 +2407,17 @@ class $e {
2407
2407
  const { width: o, height: i } = n, { faceLandmarks: s, faceBlendshapes: a } = await t.detect(n);
2408
2408
  if (s.length === 0)
2409
2409
  return { faces: [], blendShapes: [], inBox: !1 };
2410
- const l = $e.denormalizeKeypoints(
2410
+ const c = $e.denormalizeKeypoints(
2411
2411
  s[0],
2412
2412
  o,
2413
2413
  i
2414
2414
  ), { box: u, inBox: d } = $e.getBoundingBox(
2415
- l,
2415
+ c,
2416
2416
  o,
2417
2417
  i
2418
2418
  );
2419
2419
  return {
2420
- faces: [{ keypoints: l, box: u }],
2420
+ faces: [{ keypoints: c, box: u }],
2421
2421
  blendShapes: ((r = a == null ? void 0 : a[0]) == null ? void 0 : r.categories) ?? [],
2422
2422
  inBox: d
2423
2423
  };
@@ -2426,40 +2426,40 @@ class $e {
2426
2426
  }
2427
2427
  }
2428
2428
  }
2429
- const Ua = (e, t) => {
2429
+ const za = (e, t) => {
2430
2430
  let n;
2431
2431
  return typeof OffscreenCanvas < "u" ? n = new OffscreenCanvas(e, t) : (n = document.createElement("canvas"), n.width = e, n.height = t), n;
2432
- }, In = (e, t, n, r, o) => {
2433
- let i = 0, s = 0, a = t, l = n;
2434
- const d = Ua(t, n).getContext(
2432
+ }, Rn = (e, t, n, r, o) => {
2433
+ let i = 0, s = 0, a = t, c = n;
2434
+ const d = za(t, n).getContext(
2435
2435
  "2d",
2436
2436
  o
2437
2437
  );
2438
- return d.drawImage(e, 0, 0), d.getImageData(i, s, a, l);
2439
- }, ja = (e) => new Promise((t) => {
2438
+ return d.drawImage(e, 0, 0), d.getImageData(i, s, a, c);
2439
+ }, Va = (e) => new Promise((t) => {
2440
2440
  const n = document.createElement("canvas");
2441
2441
  let { width: r } = e, { height: o } = e;
2442
2442
  e instanceof HTMLVideoElement && (r = e.videoWidth, o = e.videoHeight), n.width = r, n.height = o, n.getContext("2d").drawImage(e, 0, 0), n.toBlob((s) => t(s));
2443
2443
  });
2444
- function Va(e) {
2444
+ function ja(e) {
2445
2445
  const { width: t, height: n, data: r } = e;
2446
2446
  let o = 0, i = 0;
2447
2447
  const s = [0, -1, 0, -1, 4, -1, 0, -1, 0];
2448
2448
  for (let d = 1; d < n - 1; d++)
2449
- for (let c = 1; c < t - 1; c++) {
2449
+ for (let l = 1; l < t - 1; l++) {
2450
2450
  let f = 0, p = 0, _ = 0, y = 0;
2451
2451
  for (let v = -1; v <= 1; v++)
2452
2452
  for (let g = -1; g <= 1; g++) {
2453
- const $ = ((d + v) * t + (c + g)) * 4, T = s[y++];
2454
- f += r[$] * T, p += r[$ + 1] * T, _ += r[$ + 2] * T;
2453
+ const E = ((d + v) * t + (l + g)) * 4, T = s[y++];
2454
+ f += r[E] * T, p += r[E + 1] * T, _ += r[E + 2] * T;
2455
2455
  }
2456
2456
  const m = 0.299 * f + 0.587 * p + 0.114 * _;
2457
2457
  o += m, i += m * m;
2458
2458
  }
2459
2459
  const a = (t - 2) * (n - 2);
2460
2460
  if (a === 0) return 0;
2461
- const l = o / a;
2462
- return i / a - l * l;
2461
+ const c = o / a;
2462
+ return i / a - c * c;
2463
2463
  }
2464
2464
  function Ba() {
2465
2465
  if (MediaRecorder.isTypeSupported("video/webm; codecs=vp9"))
@@ -2469,12 +2469,12 @@ function Ba() {
2469
2469
  if (MediaRecorder.isTypeSupported("video/mp4"))
2470
2470
  return { mimeType: "video/mp4", videoBitsPerSecond: 25e4 };
2471
2471
  }
2472
- function Uo(e = {}) {
2472
+ function zo(e = {}) {
2473
2473
  const { onRecord: t = () => {
2474
2474
  }, onStop: n = () => {
2475
- } } = e, r = w([]), o = w(null), i = w(null), s = U((f) => {
2475
+ } } = e, r = w([]), o = w(null), i = w(null), s = z((f) => {
2476
2476
  r.current.push(f);
2477
- }, []), a = U(
2477
+ }, []), a = z(
2478
2478
  async (f) => {
2479
2479
  if (o.current)
2480
2480
  return;
@@ -2490,16 +2490,16 @@ function Uo(e = {}) {
2490
2490
  "image/jpeg",
2491
2491
  0.95
2492
2492
  )) : _(null);
2493
- }) : p = await ja(f), p && (o.current = p);
2493
+ }) : p = await Va(f), p && (o.current = p);
2494
2494
  },
2495
2495
  []
2496
- ), l = U(() => {
2496
+ ), c = z(() => {
2497
2497
  o.current = null;
2498
- }, []), u = U((f) => {
2498
+ }, []), u = z((f) => {
2499
2499
  f.data.size > 0 && t(f.data);
2500
- }, []), d = U(() => {
2500
+ }, []), d = z(() => {
2501
2501
  !i.current || i.current.state === "inactive" || (i.current.stop(), i.current.stream.getTracks().forEach((f) => f.stop()), n());
2502
- }, []), c = U((f) => {
2502
+ }, []), l = z((f) => {
2503
2503
  i.current || (i.current = new MediaRecorder(
2504
2504
  f,
2505
2505
  Ba()
@@ -2508,68 +2508,103 @@ function Uo(e = {}) {
2508
2508
  return {
2509
2509
  saveStream: s,
2510
2510
  savePhoto: a,
2511
- start: c,
2511
+ start: l,
2512
2512
  stop: d,
2513
2513
  savedStreams: r,
2514
2514
  savedPhoto: o,
2515
- clearSavedPhoto: l
2515
+ clearSavedPhoto: c
2516
2516
  };
2517
2517
  }
2518
- const qa = "https://cdn.svc.youverify.co", Ya = (e) => e ? "https://identity.staging.svc.youverify.co" : "https://identity.svc.youverify.co";
2519
- function Ga(e) {
2520
- const t = Ya(e);
2521
- return { postData: async (i) => {
2522
- const { faceImage: s, publicKey: a, passed: l, metadata: u, video: d, sessionId: c } = i, f = new FormData();
2523
- f.append("files", s), f.append("files", d);
2524
- const p = await fetch(
2518
+ const qa = "https://cdn.svc.youverify.co", Ya = "61d880f1e8e15aaf24558f1a", Ga = (e, t, n, r) => {
2519
+ if (t)
2520
+ if (!n)
2521
+ r == null || r({
2522
+ faceImage: "",
2523
+ passed: !1,
2524
+ error: {
2525
+ key: "FORCE_DEV_URL_ERROR",
2526
+ message: "publicKey is required when forceDevUrl is true"
2527
+ }
2528
+ });
2529
+ else if (n !== Ya)
2530
+ r == null || r({
2531
+ faceImage: "",
2532
+ passed: !1,
2533
+ error: {
2534
+ key: "FORCE_DEV_URL_ERROR",
2535
+ message: "Invalid publicKey for forceDevUrl, access denied"
2536
+ }
2537
+ });
2538
+ else
2539
+ return "https://identity.dev.svc.youverify.co";
2540
+ return e ? "https://identity.staging.svc.youverify.co" : "https://identity.svc.youverify.co";
2541
+ };
2542
+ function Ka(e, t, n, r) {
2543
+ const o = Ga(
2544
+ e,
2545
+ t,
2546
+ n,
2547
+ r
2548
+ );
2549
+ return { postData: async (c) => {
2550
+ const {
2551
+ faceImage: u,
2552
+ publicKey: d,
2553
+ passed: l,
2554
+ metadata: f,
2555
+ video: p,
2556
+ sessionId: _
2557
+ } = c, y = new FormData();
2558
+ y.append("files", u), y.append("files", p);
2559
+ const m = await fetch(
2525
2560
  `${qa}/v1/uploads/media`,
2526
2561
  {
2527
2562
  method: "POST",
2528
2563
  headers: {
2529
2564
  // "Content-Type": "multipart/form-data",
2530
2565
  },
2531
- body: f
2566
+ body: y
2532
2567
  }
2533
2568
  );
2534
- if (!p.ok)
2535
- throw p;
2536
- const _ = (await p.json()).data, y = {
2537
- sessionId: c,
2569
+ if (!m.ok)
2570
+ throw m;
2571
+ const v = (await m.json()).data, g = {
2572
+ sessionId: _,
2538
2573
  components: ["liveness"],
2539
- faceImage: _[0].cachedLocation,
2540
- livenessClip: _[1].cachedLocation,
2574
+ faceImage: v[0].cachedLocation,
2575
+ livenessClip: v[1].cachedLocation,
2541
2576
  passed: l,
2542
- metadata: u
2577
+ metadata: f
2543
2578
  };
2544
- a && (y.publicMerchantID = a);
2545
- const m = await fetch(`${t}/v1/sdk/identity/liveness/`, {
2579
+ d && (g.publicMerchantID = d);
2580
+ const E = await fetch(`${o}/v1/sdk/identity/liveness/`, {
2546
2581
  method: "POST",
2547
2582
  headers: {
2548
2583
  "Content-Type": "application/json"
2549
2584
  },
2550
- body: JSON.stringify(y)
2585
+ body: JSON.stringify(g)
2551
2586
  });
2552
- if (!m.ok)
2553
- throw m;
2554
- return (await m.json()).data;
2587
+ if (!E.ok)
2588
+ throw E;
2589
+ return (await E.json()).data;
2555
2590
  }, fetchSessionToken: async () => {
2556
2591
  throw new Error(
2557
2592
  "fetchSessionToken is deprecated. Provide sessionToken from your backend."
2558
2593
  );
2559
- }, validateSessionId: async (i) => {
2560
- const s = await fetch(`${t}/v1/sdk/session/validate`, {
2594
+ }, validateSessionId: async (c) => {
2595
+ const u = await fetch(`${o}/v1/sdk/session/validate`, {
2561
2596
  method: "POST",
2562
2597
  headers: { "Content-Type": "application/json" },
2563
- body: JSON.stringify({ sessionId: i })
2564
- }), a = await s.json().catch(() => ({}));
2565
- if (!s.ok) {
2566
- const l = (a == null ? void 0 : a.message) || "Session validation failed";
2598
+ body: JSON.stringify({ sessionId: c })
2599
+ }), d = await u.json().catch(() => ({}));
2600
+ if (!u.ok) {
2601
+ const l = (d == null ? void 0 : d.message) || "Session validation failed";
2567
2602
  throw new Error(l);
2568
2603
  }
2569
2604
  return !0;
2570
2605
  } };
2571
2606
  }
2572
- const Ka = 360, Xa = "#125766", Za = "https://cdn.youverify.co/1721901834404-q2nxqyng5klm918b3BDVU.jpg", dr = "https://cdn.youverify.co", Ge = {
2607
+ const Xa = 360, Za = "#125766", Ja = "https://cdn.youverify.co/1721901834404-q2nxqyng5klm918b3BDVU.jpg", dr = "https://cdn.youverify.co", Ge = {
2573
2608
  js: {
2574
2609
  default: "1731681780468-ttgfiK6Sl1GKegUe-wm4v.js",
2575
2610
  simd: "1731681609027-RTOweJqdl8Tt39aAdyie9.js"
@@ -2578,7 +2613,7 @@ const Ka = 360, Xa = "#125766", Za = "https://cdn.youverify.co/1721901834404-q2n
2578
2613
  default: "1731681817302-aVNwDW6DP2MsDNTbiav_V.wasm",
2579
2614
  simd: "1731681739675-nvF1En4g5rAW4daq5g5DH.wasm"
2580
2615
  }
2581
- }, Ja = [
2616
+ }, Qa = [
2582
2617
  0,
2583
2618
  97,
2584
2619
  115,
@@ -2621,7 +2656,7 @@ const Ka = 360, Xa = "#125766", Za = "https://cdn.youverify.co/1721901834404-q2n
2621
2656
  key: "LIGHTING_ERROR",
2622
2657
  message: "Please check your lighting. Move to a well-lit area, but avoid harsh light or strong reflections on your face."
2623
2658
  }
2624
- }, Qa = {
2659
+ }, ec = {
2625
2660
  "complete-the-circle": {
2626
2661
  Icon: Da,
2627
2662
  name: "Complete The Circle ⭕️",
@@ -2647,7 +2682,7 @@ const Ka = 360, Xa = "#125766", Za = "https://cdn.youverify.co/1721901834404-q2n
2647
2682
  name: "Facial Expressions 🤪",
2648
2683
  description: "First position your face in the camera frame. Then move your head in a circle to show all the angles of your face"
2649
2684
  }
2650
- }, jo = ie({
2685
+ }, Vo = ie({
2651
2686
  tasks: [],
2652
2687
  namespace: "",
2653
2688
  user: void 0,
@@ -2675,7 +2710,7 @@ const Ka = 360, Xa = "#125766", Za = "https://cdn.youverify.co/1721901834404-q2n
2675
2710
  isMobileAppWebView: !1
2676
2711
  });
2677
2712
  let pr, hr = !1;
2678
- function el(e) {
2713
+ function tc(e) {
2679
2714
  const {
2680
2715
  publicKey: t,
2681
2716
  tasks: n,
@@ -2684,29 +2719,35 @@ function el(e) {
2684
2719
  user: i,
2685
2720
  branding: s,
2686
2721
  onRequestClose: a,
2687
- onSuccess: l = () => {
2722
+ onSuccess: c = () => {
2688
2723
  },
2689
2724
  onFailure: u = () => {
2690
2725
  },
2691
2726
  metadata: d,
2692
- presentation: c,
2727
+ presentation: l,
2693
2728
  sandboxEnvironment: f = !0,
2694
2729
  isMobileAppWebView: p = !1,
2695
2730
  sessionId: _,
2696
- sessionToken: y
2697
- } = e, [m, v] = C(0), [g, $] = C(0), [T, S] = C(null), [x, L] = C(!1), { saveStream: W, savePhoto: F, savedPhoto: E, clearSavedPhoto: A, savedStreams: Y } = Uo(), { postData: I, validateSessionId: V } = Ga(f), R = j(
2698
- () => g === n.length,
2699
- [n, g]
2700
- ), G = () => {
2701
- $((k) => k + 1), v((k) => k + 1);
2702
- }, M = (k) => {
2703
- const b = new Image();
2704
- b.crossOrigin = "Anonymous", b.src = Za, b.onload = () => {
2705
- const z = In(b, b.width, b.height);
2706
- $e.detectFaces(k, z);
2731
+ sessionToken: y,
2732
+ forceDevUrl: m
2733
+ } = e, [v, g] = F(0), [E, T] = F(0), [k, C] = F(null), [L, U] = F(!1), { saveStream: S, savePhoto: $, savedPhoto: A, clearSavedPhoto: G, savedStreams: R } = zo(), { postData: B, validateSessionId: D } = Ka(
2734
+ f,
2735
+ m,
2736
+ t,
2737
+ u
2738
+ ), K = V(
2739
+ () => E === n.length,
2740
+ [n, E]
2741
+ ), x = () => {
2742
+ T((b) => b + 1), g((b) => b + 1);
2743
+ }, N = (b) => {
2744
+ const I = new Image();
2745
+ I.crossOrigin = "Anonymous", I.src = Ja, I.onload = () => {
2746
+ const j = Rn(I, I.width, I.height);
2747
+ $e.detectFaces(b, j);
2707
2748
  };
2708
- }, N = async () => {
2709
- if (!E.current) {
2749
+ }, O = async () => {
2750
+ if (!A.current) {
2710
2751
  u({
2711
2752
  faceImage: "",
2712
2753
  passed: !1,
@@ -2719,15 +2760,15 @@ function el(e) {
2719
2760
  return;
2720
2761
  }
2721
2762
  try {
2722
- const k = await I({
2723
- faceImage: E.current,
2724
- video: new Blob(Y.current, { type: "video/mp4" }),
2763
+ const b = await B({
2764
+ faceImage: A.current,
2765
+ video: new Blob(R.current, { type: "video/mp4" }),
2725
2766
  publicKey: t,
2726
2767
  passed: !0,
2727
2768
  metadata: d,
2728
2769
  sessionId: _
2729
2770
  });
2730
- l(k), a();
2771
+ c(b), a();
2731
2772
  } catch {
2732
2773
  u({
2733
2774
  faceImage: "",
@@ -2739,7 +2780,7 @@ function el(e) {
2739
2780
  }
2740
2781
  }), a();
2741
2782
  }
2742
- }, D = async () => {
2783
+ }, M = async () => {
2743
2784
  try {
2744
2785
  if (!_)
2745
2786
  throw new Error("sessionId is required. Provide it from your backend.");
@@ -2747,40 +2788,40 @@ function el(e) {
2747
2788
  throw new Error(
2748
2789
  "sessionToken is required. Provide it from your backend."
2749
2790
  );
2750
- await V(_);
2751
- } catch (b) {
2752
- const z = b instanceof Error ? b.message : "Invalid or expired sessionId";
2791
+ await D(_);
2792
+ } catch (I) {
2793
+ const j = I instanceof Error ? I.message : "Invalid or expired sessionId";
2753
2794
  u({
2754
2795
  faceImage: "",
2755
2796
  passed: !1,
2756
2797
  metadata: d,
2757
2798
  error: {
2758
2799
  key: "invalid_or_expired_session",
2759
- message: z
2800
+ message: j
2760
2801
  }
2761
2802
  });
2762
2803
  return;
2763
2804
  }
2764
- const k = await $e.loadDetector();
2765
- pr = k, M(k), S(k);
2805
+ const b = await $e.loadDetector();
2806
+ pr = b, N(b), C(b);
2766
2807
  };
2767
- return H(() => {
2808
+ return W(() => {
2768
2809
  if (hr) {
2769
- S(pr);
2810
+ C(pr);
2770
2811
  return;
2771
2812
  }
2772
- D(), hr = !0;
2813
+ M(), hr = !0;
2773
2814
  }, []), /* @__PURE__ */ h(
2774
- jo.Provider,
2815
+ Vo.Provider,
2775
2816
  {
2776
2817
  value: {
2777
2818
  tasks: n,
2778
2819
  namespace: o,
2779
2820
  user: i,
2780
- currentTaskIndex: m,
2781
- completed: R,
2782
- completedCount: g,
2783
- nextTask: G,
2821
+ currentTaskIndex: v,
2822
+ completed: K,
2823
+ completedCount: E,
2824
+ nextTask: x,
2784
2825
  branding: {
2785
2826
  name: (s == null ? void 0 : s.name) ?? "Youverify",
2786
2827
  color: (s == null ? void 0 : s.color) ?? void 0,
@@ -2792,15 +2833,15 @@ function el(e) {
2792
2833
  poweredByLogo: (s == null ? void 0 : s.poweredByLogo) ?? "/yv_logo.svg"
2793
2834
  },
2794
2835
  onRequestClose: a,
2795
- faceDetector: T,
2796
- saveStream: W,
2797
- savePhoto: F,
2798
- clearSavedPhoto: A,
2799
- onComplete: N,
2836
+ faceDetector: k,
2837
+ saveStream: S,
2838
+ savePhoto: $,
2839
+ clearSavedPhoto: G,
2840
+ onComplete: O,
2800
2841
  onFailure: u,
2801
- presentation: c,
2802
- imageCaptured: x,
2803
- setImageCaptured: L,
2842
+ presentation: l,
2843
+ imageCaptured: L,
2844
+ setImageCaptured: U,
2804
2845
  sandboxEnvironment: f,
2805
2846
  publicKey: t,
2806
2847
  isMobileAppWebView: p,
@@ -2812,29 +2853,29 @@ function el(e) {
2812
2853
  );
2813
2854
  }
2814
2855
  function fe() {
2815
- return te(jo);
2816
- }
2817
- const tl = "_root_vqy7d_1", nl = "_container_vqy7d_4", rl = "_lhs_vqy7d_7", ol = "_info_vqy7d_11", il = "_active_vqy7d_32", sl = "_completed_vqy7d_39", al = "_rhs_vqy7d_62", ll = "_profile_vqy7d_65", cl = "_avatar_vqy7d_68", ul = "_main_vqy7d_81", dl = "_content_vqy7d_84", ne = {
2818
- root: tl,
2819
- container: nl,
2820
- lhs: rl,
2821
- info: ol,
2822
- active: il,
2823
- completed: sl,
2824
- rhs: al,
2825
- profile: ll,
2826
- avatar: cl,
2827
- main: ul,
2828
- content: dl
2829
- }, fl = "_root_lryhb_1", pl = "_container_lryhb_1", hl = "_brand_lryhb_6", Vt = {
2830
- root: fl,
2831
- container: pl,
2832
- brand: hl
2856
+ return te(Vo);
2857
+ }
2858
+ const nc = "_root_vqy7d_1", rc = "_container_vqy7d_4", oc = "_lhs_vqy7d_7", ic = "_info_vqy7d_11", sc = "_active_vqy7d_32", ac = "_completed_vqy7d_39", cc = "_rhs_vqy7d_62", lc = "_profile_vqy7d_65", uc = "_avatar_vqy7d_68", dc = "_main_vqy7d_81", fc = "_content_vqy7d_84", ne = {
2859
+ root: nc,
2860
+ container: rc,
2861
+ lhs: oc,
2862
+ info: ic,
2863
+ active: sc,
2864
+ completed: ac,
2865
+ rhs: cc,
2866
+ profile: lc,
2867
+ avatar: uc,
2868
+ main: dc,
2869
+ content: fc
2870
+ }, pc = "_root_lryhb_1", hc = "_container_lryhb_1", vc = "_brand_lryhb_6", jt = {
2871
+ root: pc,
2872
+ container: hc,
2873
+ brand: vc
2833
2874
  };
2834
- function vl() {
2875
+ function mc() {
2835
2876
  const { branding: e, isMobileAppWebView: t, onRequestClose: n, presentation: r } = fe();
2836
- return /* @__PURE__ */ h("div", { className: Vt.root, children: /* @__PURE__ */ h("div", { className: Vt.container, children: [
2837
- /* @__PURE__ */ h("div", { className: Vt.brand, children: (e == null ? void 0 : e.logo) && !(e.hideLogoOnMobile && t) && /* @__PURE__ */ h(
2877
+ return /* @__PURE__ */ h("div", { className: jt.root, children: /* @__PURE__ */ h("div", { className: jt.container, children: [
2878
+ /* @__PURE__ */ h("div", { className: jt.brand, children: (e == null ? void 0 : e.logo) && !(e.hideLogoOnMobile && t) && /* @__PURE__ */ h(
2838
2879
  "img",
2839
2880
  {
2840
2881
  className: "yvlw-h-10",
@@ -2854,7 +2895,7 @@ function vl() {
2854
2895
  ] }) });
2855
2896
  }
2856
2897
  const vr = "colorScheme";
2857
- function Vo() {
2898
+ function jo() {
2858
2899
  const { namespace: e } = fe(), t = () => {
2859
2900
  const o = localStorage.getItem(vr);
2860
2901
  return !o && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : o;
@@ -2868,60 +2909,60 @@ function Vo() {
2868
2909
  return n(o === "dark" ? "light" : "dark");
2869
2910
  }, getColorScheme: t };
2870
2911
  }
2871
- const ml = "_root_bcsvc_1", _l = {
2872
- root: ml
2912
+ const _c = "_root_bcsvc_1", yc = {
2913
+ root: _c
2873
2914
  };
2874
- function yl() {
2915
+ function gc() {
2875
2916
  if (!(window.screen.width >= 900))
2876
2917
  return 10 / 9;
2877
2918
  }
2878
2919
  function ut(e) {
2879
2920
  const { children: t, onStream: n = () => {
2880
2921
  }, onRecord: r = () => {
2881
- } } = e, o = w(null), i = w(0), s = w(null), { start: a, stop: l } = Uo({
2922
+ } } = e, o = w(null), i = w(0), s = w(null), { start: a, stop: c } = zo({
2882
2923
  onRecord: r
2883
2924
  }), u = async () => {
2884
2925
  try {
2885
2926
  const f = await navigator.mediaDevices.getUserMedia({
2886
- video: { aspectRatio: { exact: yl() } }
2927
+ video: { aspectRatio: { exact: gc() } }
2887
2928
  });
2888
2929
  s.current = f, a(f), o.current && (o.current.srcObject = f);
2889
2930
  } catch {
2890
2931
  }
2891
2932
  }, d = () => {
2892
- s.current && (s.current.getTracks().forEach((f) => f.stop()), s.current = null, l(), o.current && (o.current.srcObject = null));
2893
- }, c = () => {
2894
- n(o), i.current = requestAnimationFrame(c);
2933
+ s.current && (s.current.getTracks().forEach((f) => f.stop()), s.current = null, c(), o.current && (o.current.srcObject = null));
2934
+ }, l = () => {
2935
+ n(o), i.current = requestAnimationFrame(l);
2895
2936
  };
2896
- return H(() => {
2937
+ return W(() => {
2897
2938
  const f = o.current;
2898
2939
  if (!f)
2899
2940
  return;
2900
2941
  const p = () => {
2901
- i.current = requestAnimationFrame(c);
2942
+ i.current = requestAnimationFrame(l);
2902
2943
  };
2903
2944
  return u(), f.addEventListener("canplay", p), () => {
2904
2945
  f.removeEventListener("canplay", p), cancelAnimationFrame(i.current), d();
2905
2946
  };
2906
- }, []), /* @__PURE__ */ h("div", { className: _l.root, children: [
2947
+ }, []), /* @__PURE__ */ h("div", { className: yc.root, children: [
2907
2948
  /* @__PURE__ */ h("video", { ref: o, autoPlay: !0, loop: !0, playsInline: !0 }),
2908
2949
  t
2909
2950
  ] });
2910
2951
  }
2911
- const gl = "_container_mcmsr_1", wl = "_focused_mcmsr_12", bl = "_progress_mcmsr_15", El = "_completed_mcmsr_36", $l = "_marker_mcmsr_40", Ke = {
2912
- container: gl,
2913
- focused: wl,
2914
- progress: bl,
2915
- completed: El,
2916
- marker: $l
2917
- }, mr = 360, Tl = 50;
2918
- function kl(e) {
2952
+ const wc = "_container_mcmsr_1", bc = "_focused_mcmsr_12", Ec = "_progress_mcmsr_15", $c = "_completed_mcmsr_36", Tc = "_marker_mcmsr_40", Ke = {
2953
+ container: wc,
2954
+ focused: bc,
2955
+ progress: Ec,
2956
+ completed: $c,
2957
+ marker: Tc
2958
+ }, mr = 360, kc = 50;
2959
+ function Sc(e) {
2919
2960
  const {
2920
2961
  visitedSections: t,
2921
2962
  sectionsCount: n,
2922
2963
  faceDetected: r,
2923
- divisions: o = Tl
2924
- } = e, i = j(() => {
2964
+ divisions: o = kc
2965
+ } = e, i = V(() => {
2925
2966
  const s = [Ke.container];
2926
2967
  return r && s.push(Ke.focused), s.join(" ");
2927
2968
  }, [r]);
@@ -2939,15 +2980,15 @@ function kl(e) {
2939
2980
  enterTo: "yvlw-scale-100 yvlw-opacity-100",
2940
2981
  className: "yvlw-absolute",
2941
2982
  children: /* @__PURE__ */ h("div", { className: Ke.progress, children: Array.from(Array(o).keys()).map((s) => {
2942
- const a = s * mr / o, l = Math.ceil(
2983
+ const a = s * mr / o, c = Math.ceil(
2943
2984
  (a + 1) * n / mr
2944
- ), u = t.includes(l), d = u ? s - (l - 1) * (o / n) : 0, c = [];
2945
- u && c.push(Ke.completed);
2985
+ ), u = t.includes(c), d = u ? s - (c - 1) * (o / n) : 0, l = [];
2986
+ u && l.push(Ke.completed);
2946
2987
  const f = u ? "translateX(158px)" : "translateX(150px)";
2947
2988
  return /* @__PURE__ */ h(
2948
2989
  "div",
2949
2990
  {
2950
- className: c.join(" "),
2991
+ className: l.join(" "),
2951
2992
  style: {
2952
2993
  transform: `rotate(${a}deg) ${f}`,
2953
2994
  transitionDelay: `${d * 20}ms`
@@ -2982,7 +3023,7 @@ function kl(e) {
2982
3023
  }
2983
3024
  function Bo() {
2984
3025
  return { checkZoomLevel: (r, o) => {
2985
- const { box: i } = r, { width: s, height: a } = i, l = s * a, u = o ** 2, d = l / u;
3026
+ const { box: i } = r, { width: s, height: a } = i, c = s * a, u = o ** 2, d = c / u;
2986
3027
  if (d > 0.9)
2987
3028
  throw new Error("Move face farther from camera");
2988
3029
  if (d < 0.05)
@@ -2994,7 +3035,7 @@ function Bo() {
2994
3035
  throw new Error("Position head in frame");
2995
3036
  } };
2996
3037
  }
2997
- function Rt(e = {}) {
3038
+ function It(e = {}) {
2998
3039
  const {
2999
3040
  validations: t = ["zoom"],
3000
3041
  frameSize: n,
@@ -3002,7 +3043,7 @@ function Rt(e = {}) {
3002
3043
  },
3003
3044
  onError: o = () => {
3004
3045
  }
3005
- } = e, { faceDetector: i } = fe(), { checkFacialFeatures: s, checkZoomLevel: a, checkInFrame: l } = Bo(), u = w(null), d = (f) => {
3046
+ } = e, { faceDetector: i } = fe(), { checkFacialFeatures: s, checkZoomLevel: a, checkInFrame: c } = Bo(), u = w(null), d = (f) => {
3006
3047
  var p;
3007
3048
  try {
3008
3049
  if (f.length === 0)
@@ -3033,7 +3074,7 @@ function Rt(e = {}) {
3033
3074
  "Frame size is required to check if face is in frame"
3034
3075
  );
3035
3076
  const g = n + 200;
3036
- l(m, {
3077
+ c(m, {
3037
3078
  x: (y.clientWidth - g) / 2,
3038
3079
  y: (y.clientHeight - g) / 2,
3039
3080
  width: g,
@@ -3062,7 +3103,7 @@ function Rt(e = {}) {
3062
3103
  const { videoWidth: y, videoHeight: m } = _;
3063
3104
  if (y === 0 || m === 0)
3064
3105
  return;
3065
- const v = In(
3106
+ const v = Rn(
3066
3107
  _,
3067
3108
  y,
3068
3109
  m
@@ -3071,23 +3112,23 @@ function Rt(e = {}) {
3071
3112
  d(g.faces);
3072
3113
  } };
3073
3114
  }
3074
- const Sl = "_root_5hgaj_1", Fl = "_container_5hgaj_4", Cl = "_progress_5hgaj_7", xl = "_intro_5hgaj_12", Ml = "_content_5hgaj_15", Pl = "_branding_5hgaj_18", Nl = "_instructionsContainer_5hgaj_22", Ll = "_instructions_5hgaj_22", se = {
3075
- root: Sl,
3076
- container: Fl,
3077
- progress: Cl,
3078
- intro: xl,
3079
- content: Ml,
3080
- branding: Pl,
3081
- instructionsContainer: Nl,
3082
- instructions: Ll
3083
- }, Al = "_root_h5elg_1", Il = "_spinner_h5elg_22", _r = {
3084
- root: Al,
3085
- spinner: Il
3086
- }, Rl = "_container_1vep2_1", Dl = "_spin_1vep2_1", Ol = "_md_1vep2_7", Hl = "_lg_1vep2_10", yr = {
3087
- container: Rl,
3088
- spin: Dl,
3089
- md: Ol,
3090
- lg: Hl
3115
+ const Cc = "_root_5hgaj_1", Fc = "_container_5hgaj_4", xc = "_progress_5hgaj_7", Mc = "_intro_5hgaj_12", Pc = "_content_5hgaj_15", Nc = "_branding_5hgaj_18", Lc = "_instructionsContainer_5hgaj_22", Ac = "_instructions_5hgaj_22", se = {
3116
+ root: Cc,
3117
+ container: Fc,
3118
+ progress: xc,
3119
+ intro: Mc,
3120
+ content: Pc,
3121
+ branding: Nc,
3122
+ instructionsContainer: Lc,
3123
+ instructions: Ac
3124
+ }, Rc = "_root_h5elg_1", Ic = "_spinner_h5elg_22", _r = {
3125
+ root: Rc,
3126
+ spinner: Ic
3127
+ }, Dc = "_container_1vep2_1", Oc = "_spin_1vep2_1", Hc = "_md_1vep2_7", Wc = "_lg_1vep2_10", yr = {
3128
+ container: Dc,
3129
+ spin: Oc,
3130
+ md: Hc,
3131
+ lg: Wc
3091
3132
  };
3092
3133
  function qo(e) {
3093
3134
  const { size: t = "md", message: n, className: r = "" } = e;
@@ -3103,13 +3144,13 @@ function $t(e) {
3103
3144
  },
3104
3145
  loading: s = !1,
3105
3146
  children: a,
3106
- hideButton: l = !1
3147
+ hideButton: c = !1
3107
3148
  } = e;
3108
3149
  return /* @__PURE__ */ h("div", { className: _r.root, children: [
3109
3150
  /* @__PURE__ */ h(t, { size: "custom", className: "yvlw-h-20 yvlw-mx-auto yvlw-mb-12" }),
3110
3151
  /* @__PURE__ */ h("h2", { children: r }),
3111
3152
  /* @__PURE__ */ h("p", { className: "subtext", children: n }),
3112
- !l && /* @__PURE__ */ h("div", { className: "yvlw-mt-12", children: /* @__PURE__ */ h(
3153
+ !c && /* @__PURE__ */ h("div", { className: "yvlw-mt-12", children: /* @__PURE__ */ h(
3113
3154
  Gi,
3114
3155
  {
3115
3156
  onClick: () => i(),
@@ -3136,17 +3177,17 @@ function Dt(e) {
3136
3177
  },
3137
3178
  onReset: s = () => {
3138
3179
  }
3139
- } = e, [a, l] = C(!1), { completedCount: u, tasks: d, nextTask: c, branding: f, isMobileAppWebView: p } = fe(), _ = j(
3180
+ } = e, [a, c] = F(!1), { completedCount: u, tasks: d, nextTask: l, branding: f, isMobileAppWebView: p } = fe(), _ = V(
3140
3181
  () => u * 100 / d.length,
3141
3182
  [u, d.length]
3142
3183
  );
3143
- return H(() => {
3184
+ return W(() => {
3144
3185
  !r && !o && (async () => {
3145
- await i(), l(!0);
3186
+ await i(), c(!0);
3146
3187
  })();
3147
- }, []), H(() => {
3188
+ }, []), W(() => {
3148
3189
  r && (() => {
3149
- c();
3190
+ l();
3150
3191
  })();
3151
3192
  }, [r]), /* @__PURE__ */ h("div", { className: se.root, children: /* @__PURE__ */ h("div", { className: `${se.container} view`, children: [
3152
3193
  /* @__PURE__ */ h(
@@ -3205,7 +3246,7 @@ function Dt(e) {
3205
3246
  children: /* @__PURE__ */ h("div", { className: `${se.intro}`, children: /* @__PURE__ */ h(
3206
3247
  $t,
3207
3248
  {
3208
- Icon: zo,
3249
+ Icon: Uo,
3209
3250
  title: "Oops, task failed!",
3210
3251
  description: "Could not confirm liveness on this task. Click on the button below to go again",
3211
3252
  onActionClick: s,
@@ -3218,40 +3259,40 @@ function Dt(e) {
3218
3259
  }
3219
3260
  function Ot(e = {}) {
3220
3261
  const { timeout: t, onTimeout: n = () => {
3221
- } } = e, [r, o] = C(!1), i = w(null), s = U(() => {
3262
+ } } = e, [r, o] = F(!1), i = w(null), s = z(() => {
3222
3263
  t && i.current && clearTimeout(i.current);
3223
- }, []), a = U(() => {
3264
+ }, []), a = z(() => {
3224
3265
  t && (i.current = setTimeout(() => {
3225
3266
  o(!0), n();
3226
3267
  }, t));
3227
- }, []), l = U(() => {
3268
+ }, []), c = z(() => {
3228
3269
  o(!1), a();
3229
3270
  }, []);
3230
- return H(() => s, []), {
3271
+ return W(() => s, []), {
3231
3272
  timedOut: r,
3232
- reset: l,
3273
+ reset: c,
3233
3274
  start: a,
3234
3275
  stop: s
3235
3276
  };
3236
3277
  }
3237
- const Wl = 1, Bt = 8, Er = "Place face in frame";
3238
- function zl(e) {
3239
- const { difficulty: t, timeout: n } = e, { saveStream: r } = fe(), [o, i] = C([]), [s, a] = C(Er), [l, u] = C(!1), [d, c] = C(!1), f = w(/* @__PURE__ */ new Set()), p = w(!1), _ = w(null), {
3278
+ const Uc = 1, Bt = 8, Er = "Place face in frame";
3279
+ function zc(e) {
3280
+ const { difficulty: t, timeout: n } = e, { saveStream: r } = fe(), [o, i] = F([]), [s, a] = F(Er), [c, u] = F(!1), [d, l] = F(!1), f = w(/* @__PURE__ */ new Set()), p = w(!1), _ = w(null), {
3240
3281
  reset: y,
3241
3282
  start: m,
3242
3283
  stop: v,
3243
3284
  timedOut: g
3244
- } = Ot({ timeout: n }), $ = () => {
3245
- i([]), a(Er), u(!1), c(!1), f.current = /* @__PURE__ */ new Set(), p.current = !1, _.current = null, y();
3246
- }, T = (E) => {
3247
- const A = E * Bt, Y = Math.ceil((A + 1) / Ka);
3248
- f.current.has(Y) || (f.current.add(Y), i(Array.from(f.current))), f.current.size >= Bt && (v(), setTimeout(() => {
3249
- c(!0);
3285
+ } = Ot({ timeout: n }), E = () => {
3286
+ i([]), a(Er), u(!1), l(!1), f.current = /* @__PURE__ */ new Set(), p.current = !1, _.current = null, y();
3287
+ }, T = ($) => {
3288
+ const A = $ * Bt, G = Math.ceil((A + 1) / Xa);
3289
+ f.current.has(G) || (f.current.add(G), i(Array.from(f.current))), f.current.size >= Bt && (v(), setTimeout(() => {
3290
+ l(!0);
3250
3291
  }, 1e3));
3251
- }, S = (E, A) => {
3252
- let I = Math.atan2(A, E) * (180 / Math.PI);
3253
- return I < 0 && (I += 360), I;
3254
- }, x = U(() => {
3292
+ }, k = ($, A) => {
3293
+ let R = Math.atan2(A, $) * (180 / Math.PI);
3294
+ return R < 0 && (R += 360), R;
3295
+ }, C = z(() => {
3255
3296
  if (f.current.size === 0)
3256
3297
  return 25;
3257
3298
  switch (t) {
@@ -3262,45 +3303,45 @@ function zl(e) {
3262
3303
  default:
3263
3304
  return 10;
3264
3305
  }
3265
- }, []), L = (E) => {
3266
- const { keypoints: A, box: Y } = E, I = { x: Y.width * 0.5, y: Y.height * 0.5 }, V = A[Wl], R = { y: V.y - Y.yMin, x: V.x - Y.xMin }, G = I.x - R.x, M = R.y - I.y, N = x();
3267
- return Math.abs(G) < N && Math.abs(M) < N ? null : S(G, M);
3268
- }, { detectFaces: W } = Rt({
3306
+ }, []), L = ($) => {
3307
+ const { keypoints: A, box: G } = $, R = { x: G.width * 0.5, y: G.height * 0.5 }, B = A[Uc], D = { y: B.y - G.yMin, x: B.x - G.xMin }, K = R.x - D.x, x = D.y - R.y, N = C();
3308
+ return Math.abs(K) < N && Math.abs(x) < N ? null : k(K, x);
3309
+ }, { detectFaces: U } = It({
3269
3310
  frameSize: 280,
3270
3311
  validations: ["zoom", "in-frame"],
3271
- onFace: (E) => {
3312
+ onFace: ($) => {
3272
3313
  u(!0), a("Slowly move head around to complete circle");
3273
- const A = L(E);
3314
+ const A = L($);
3274
3315
  A && T(A);
3275
3316
  },
3276
- onError: (E) => {
3277
- a(E), i([]), f.current.clear(), _.current = null, p.current = !1;
3317
+ onError: ($) => {
3318
+ a($), i([]), f.current.clear(), _.current = null, p.current = !1;
3278
3319
  }
3279
3320
  });
3280
- return /* @__PURE__ */ h(q, { children: /* @__PURE__ */ h(
3321
+ return /* @__PURE__ */ h(Y, { children: /* @__PURE__ */ h(
3281
3322
  Dt,
3282
3323
  {
3283
3324
  instruction: {
3284
3325
  title: s,
3285
- description: l ? void 0 : "Always ensure face is in frame"
3326
+ description: c ? void 0 : "Always ensure face is in frame"
3286
3327
  },
3287
3328
  name: "complete-the-circle",
3288
3329
  completed: d,
3289
3330
  failed: g,
3290
- onReset: $,
3331
+ onReset: E,
3291
3332
  onStart: m,
3292
- children: /* @__PURE__ */ h(ut, { onStream: (E) => {
3333
+ children: /* @__PURE__ */ h(ut, { onStream: ($) => {
3293
3334
  try {
3294
- if (!E.current || d)
3335
+ if (!$.current || d)
3295
3336
  return;
3296
- const { videoWidth: A } = E.current;
3297
- W({ ref: E, frameSize: A });
3337
+ const { videoWidth: A } = $.current;
3338
+ U({ ref: $, frameSize: A });
3298
3339
  } catch {
3299
3340
  }
3300
3341
  }, onRecord: r, children: /* @__PURE__ */ h(
3301
- kl,
3342
+ Sc,
3302
3343
  {
3303
- faceDetected: l,
3344
+ faceDetected: c,
3304
3345
  sectionsCount: Bt,
3305
3346
  visitedSections: o
3306
3347
  }
@@ -3308,15 +3349,15 @@ function zl(e) {
3308
3349
  }
3309
3350
  ) });
3310
3351
  }
3311
- const Ul = "_root_thujo_1", jl = "_sticker_thujo_4", Vl = "_no_thujo_7", Bl = "_yes_thujo_12", qt = {
3312
- root: Ul,
3313
- sticker: jl,
3314
- no: Vl,
3315
- yes: Bl
3352
+ const Vc = "_root_thujo_1", jc = "_sticker_thujo_4", Bc = "_no_thujo_7", qc = "_yes_thujo_12", qt = {
3353
+ root: Vc,
3354
+ sticker: jc,
3355
+ no: Bc,
3356
+ yes: qc
3316
3357
  };
3317
- function ql(e) {
3358
+ function Yc(e) {
3318
3359
  const { show: t, stickers: n } = e;
3319
- return /* @__PURE__ */ h(q, { children: t && /* @__PURE__ */ h("div", { className: qt.root, children: n.map((r) => /* @__PURE__ */ h(
3360
+ return /* @__PURE__ */ h(Y, { children: t && /* @__PURE__ */ h("div", { className: qt.root, children: n.map((r) => /* @__PURE__ */ h(
3320
3361
  "div",
3321
3362
  {
3322
3363
  className: `${qt.sticker} ${qt[r]}`,
@@ -3325,32 +3366,32 @@ function ql(e) {
3325
3366
  `sticker-${r}`
3326
3367
  )) }) });
3327
3368
  }
3328
- const Yl = {
3369
+ const Gc = {
3329
3370
  question: "Are you alive?",
3330
3371
  errorMessage: "You have to be alive to proceed though",
3331
3372
  answer: !0
3332
- }, Gl = "Wrong answer. Try again", $r = "Keep face in camera";
3333
- function Kl(e) {
3334
- const { difficulty: t, questions: n = [Yl], timeout: r } = e, [o, i] = C($r), [s, a] = C(!1), [l, u] = C(!1), { saveStream: d } = fe(), c = w("inactive"), f = w(0), p = w(!1), _ = w(null), y = w(null), m = w(null), v = () => {
3373
+ }, Kc = "Wrong answer. Try again", $r = "Keep face in camera";
3374
+ function Xc(e) {
3375
+ const { difficulty: t, questions: n = [Gc], timeout: r } = e, [o, i] = F($r), [s, a] = F(!1), [c, u] = F(!1), { saveStream: d } = fe(), l = w("inactive"), f = w(0), p = w(!1), _ = w(null), y = w(null), m = w(null), v = () => {
3335
3376
  _.current && clearTimeout(_.current), y.current && clearTimeout(y.current);
3336
3377
  }, {
3337
3378
  reset: g,
3338
- start: $,
3379
+ start: E,
3339
3380
  stop: T,
3340
- timedOut: S
3381
+ timedOut: k
3341
3382
  } = Ot({
3342
3383
  timeout: r,
3343
3384
  onTimeout: v
3344
- }), x = () => {
3345
- i($r), a(!1), u(!1), c.current = "inactive", f.current = 0, p.current = !1, g();
3346
- }, L = (I) => {
3347
- const { keypoints: V } = I, R = V[1], G = V[9], M = R.x - G.x, N = R.y - G.y;
3348
- return 90 - Math.atan2(N, M) * (180 / Math.PI);
3349
- }, W = (I) => {
3350
- c.current = "inactive", i(n[I].question), _.current = setTimeout(() => {
3351
- c.current = "active";
3385
+ }), C = () => {
3386
+ i($r), a(!1), u(!1), l.current = "inactive", f.current = 0, p.current = !1, g();
3387
+ }, L = (R) => {
3388
+ const { keypoints: B } = R, D = B[1], K = B[9], x = D.x - K.x, N = D.y - K.y;
3389
+ return 90 - Math.atan2(N, x) * (180 / Math.PI);
3390
+ }, U = (R) => {
3391
+ l.current = "inactive", i(n[R].question), _.current = setTimeout(() => {
3392
+ l.current = "active";
3352
3393
  }, 2e3);
3353
- }, F = j(() => {
3394
+ }, S = V(() => {
3354
3395
  switch (t) {
3355
3396
  case "easy":
3356
3397
  return 2;
@@ -3359,43 +3400,43 @@ function Kl(e) {
3359
3400
  default:
3360
3401
  return 4;
3361
3402
  }
3362
- }, []), E = (I) => {
3403
+ }, []), $ = (R) => {
3363
3404
  try {
3364
- if (c.current = "inactive", Math.abs(I) < F)
3405
+ if (l.current = "inactive", Math.abs(R) < S)
3365
3406
  throw new Error("Tilt head further to answer");
3366
- const V = I > 0, R = n[f.current].answer;
3367
- if (V === R)
3368
- f.current += 1, f.current === n.length ? (u(!0), T()) : W(f.current);
3407
+ const B = R > 0, D = n[f.current].answer;
3408
+ if (B === D)
3409
+ f.current += 1, f.current === n.length ? (u(!0), T()) : U(f.current);
3369
3410
  else
3370
3411
  throw new Error(
3371
- n[f.current].errorMessage || Gl
3412
+ n[f.current].errorMessage || Kc
3372
3413
  );
3373
- } catch (V) {
3374
- i(V.message), y.current = setTimeout(() => {
3375
- W(f.current);
3414
+ } catch (B) {
3415
+ i(B.message), y.current = setTimeout(() => {
3416
+ U(f.current);
3376
3417
  }, 2e3);
3377
3418
  }
3378
- }, { detectFaces: A } = Rt({
3379
- onFace: (I) => {
3380
- if (p.current || (a(!0), p.current = !0, W(f.current)), c.current === "inactive")
3419
+ }, { detectFaces: A } = It({
3420
+ onFace: (R) => {
3421
+ if (p.current || (a(!0), p.current = !0, U(f.current)), l.current === "inactive")
3381
3422
  return;
3382
- const V = L(I);
3383
- E(V);
3423
+ const B = L(R);
3424
+ $(B);
3384
3425
  },
3385
- onError: (I) => {
3386
- i(I);
3426
+ onError: (R) => {
3427
+ i(R);
3387
3428
  }
3388
- }), Y = (I) => {
3429
+ }), G = (R) => {
3389
3430
  try {
3390
- if (!I.current || l)
3431
+ if (!R.current || c)
3391
3432
  return;
3392
- m.current = I.current;
3393
- const { videoWidth: V } = I.current;
3394
- A({ ref: I, frameSize: V });
3433
+ m.current = R.current;
3434
+ const { videoWidth: B } = R.current;
3435
+ A({ ref: R, frameSize: B });
3395
3436
  } catch {
3396
3437
  }
3397
3438
  };
3398
- return H(() => v, []), /* @__PURE__ */ h(
3439
+ return W(() => v, []), /* @__PURE__ */ h(
3399
3440
  Dt,
3400
3441
  {
3401
3442
  instruction: {
@@ -3403,15 +3444,15 @@ function Kl(e) {
3403
3444
  description: s ? "" : "Move head left for No and right for Yes"
3404
3445
  },
3405
3446
  name: "yes-or-no",
3406
- failed: S,
3407
- onReset: x,
3408
- onStart: $,
3409
- completed: l,
3410
- children: /* @__PURE__ */ h(ut, { onStream: Y, onRecord: d, children: /* @__PURE__ */ h(ql, { show: s, stickers: ["yes", "no"] }) })
3447
+ failed: k,
3448
+ onReset: C,
3449
+ onStart: E,
3450
+ completed: c,
3451
+ children: /* @__PURE__ */ h(ut, { onStream: G, onRecord: d, children: /* @__PURE__ */ h(Yc, { show: s, stickers: ["yes", "no"] }) })
3411
3452
  }
3412
3453
  );
3413
3454
  }
3414
- function Xl(e = {}) {
3455
+ function Zc(e = {}) {
3415
3456
  const { onChange: t = () => {
3416
3457
  } } = e, n = !!window.DeviceOrientationEvent, r = (o) => {
3417
3458
  t({
@@ -3420,16 +3461,16 @@ function Xl(e = {}) {
3420
3461
  gamma: o.gamma
3421
3462
  });
3422
3463
  };
3423
- return H(() => (window.addEventListener("deviceorientation", r), () => {
3464
+ return W(() => (window.addEventListener("deviceorientation", r), () => {
3424
3465
  window.removeEventListener("deviceorientation", r);
3425
3466
  }), []), {
3426
3467
  canUse: n
3427
3468
  };
3428
3469
  }
3429
- function je(e, t) {
3470
+ function Ve(e, t) {
3430
3471
  return Math.sqrt(e ** 2 + t ** 2);
3431
3472
  }
3432
- function Zl(e) {
3473
+ function Jc(e) {
3433
3474
  const t = e.slice();
3434
3475
  for (let n = t.length - 1; n > 0; n--) {
3435
3476
  const r = Math.floor(Math.random() * (n + 1));
@@ -3437,11 +3478,11 @@ function Zl(e) {
3437
3478
  }
3438
3479
  return t;
3439
3480
  }
3440
- const Fe = (e, t) => {
3481
+ const Ce = (e, t) => {
3441
3482
  for (const [n, r] of Object.entries(e))
3442
3483
  if (r === t) return n;
3443
3484
  return null;
3444
- }, Jl = (e) => {
3485
+ }, Qc = (e) => {
3445
3486
  const t = Object.keys(fr);
3446
3487
  for (const n of t)
3447
3488
  if (new RegExp(`\\b${n}\\b`, "i").test(e))
@@ -3451,8 +3492,8 @@ const Fe = (e, t) => {
3451
3492
  message: "We detected an error during your test. Please TRY AGAIN"
3452
3493
  };
3453
3494
  };
3454
- function Ql(e) {
3455
- const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i = w(null), s = w(!0), a = w(null), l = w(null), u = w(0), d = w(!1), c = j(() => {
3495
+ function el(e) {
3496
+ const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i = w(null), s = w(!0), a = w(null), c = w(null), u = w(0), d = w(!1), l = V(() => {
3456
3497
  switch (o) {
3457
3498
  case "easy":
3458
3499
  return 6;
@@ -3471,9 +3512,9 @@ function Ql(e) {
3471
3512
  d.current = !0, n("Great, hang on..."), setTimeout(() => {
3472
3513
  r();
3473
3514
  }, 500);
3474
- }, { canUse: p } = Xl({
3515
+ }, { canUse: p } = Zc({
3475
3516
  onChange: (m) => {
3476
- l.current = m;
3517
+ c.current = m;
3477
3518
  }
3478
3519
  });
3479
3520
  return { evaluate: (m) => {
@@ -3481,38 +3522,38 @@ function Ql(e) {
3481
3522
  n("Cannot perform task. Transfer to mobile device to complete");
3482
3523
  return;
3483
3524
  }
3484
- if (!l.current || !l.current.beta) {
3525
+ if (!c.current || !c.current.beta) {
3485
3526
  n("Cannot perform task. Transfer to mobile device to complete");
3486
3527
  return;
3487
3528
  }
3488
- if (l.current.beta < 60 || l.current.beta > 100) {
3529
+ if (c.current.beta < 60 || c.current.beta > 100) {
3489
3530
  n("Keep phone in upright position to continue");
3490
3531
  return;
3491
3532
  }
3492
3533
  if (d.current)
3493
3534
  return;
3494
- const { keypoints: v } = m, g = je(
3535
+ const { keypoints: v } = m, g = Ve(
3495
3536
  v[6].x - v[8].x,
3496
3537
  v[6].y - v[8].y
3497
- ), T = je(
3538
+ ), T = Ve(
3498
3539
  v[2].x - v[1].x,
3499
3540
  v[2].y - v[1].y
3500
3541
  ) / g * 10;
3501
- if (T > c) {
3542
+ if (T > l) {
3502
3543
  if (i.current || !s.current)
3503
3544
  return;
3504
3545
  i.current = T, s.current = !1, a.current = setTimeout(() => {
3505
3546
  i.current = null;
3506
3547
  }, 3e3);
3507
3548
  } else
3508
- i.current && i.current - T > c / 2 && (u.current += 1, i.current = null, a.current && clearTimeout(a.current)), s.current = !0;
3549
+ i.current && i.current - T > l / 2 && (u.current += 1, i.current = null, a.current && clearTimeout(a.current)), s.current = !0;
3509
3550
  f();
3510
3551
  }, reset: () => {
3511
- i.current = null, s.current = !0, a.current = null, l.current = null, u.current = 0, d.current = !1;
3552
+ i.current = null, s.current = !0, a.current = null, c.current = null, u.current = 0, d.current = !1;
3512
3553
  } };
3513
3554
  }
3514
- function ec(e) {
3515
- const { onMessage: t, onComplete: n, difficulty: r } = e, o = w(!1), i = j(() => {
3555
+ function tl(e) {
3556
+ const { onMessage: t, onComplete: n, difficulty: r } = e, o = w(!1), i = V(() => {
3516
3557
  switch (r) {
3517
3558
  case "easy":
3518
3559
  return 80;
@@ -3522,14 +3563,14 @@ function ec(e) {
3522
3563
  return 100;
3523
3564
  }
3524
3565
  }, []);
3525
- return { evaluate: (l) => {
3566
+ return { evaluate: (c) => {
3526
3567
  if (o.current)
3527
3568
  return;
3528
- const { keypoints: u } = l, d = je(
3569
+ const { keypoints: u } = c, d = Ve(
3529
3570
  u[6].x - u[8].x,
3530
3571
  u[6].y - u[8].y
3531
3572
  );
3532
- if (je(
3573
+ if (Ve(
3533
3574
  u[14].x - u[13].x,
3534
3575
  u[14].y - u[13].y
3535
3576
  ) / d * 100 > i) {
@@ -3544,7 +3585,7 @@ function ec(e) {
3544
3585
  } };
3545
3586
  }
3546
3587
  function Yo(e) {
3547
- const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i = w(!0), s = w(!1), a = w(null), l = w(0), u = j(() => {
3588
+ const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i = w(!0), s = w(!1), a = w(null), c = w(0), u = V(() => {
3548
3589
  switch (o) {
3549
3590
  case "easy":
3550
3591
  return {
@@ -3564,14 +3605,14 @@ function Yo(e) {
3564
3605
  }
3565
3606
  }, []), d = (y) => {
3566
3607
  i.current && (y >= u.closed || (i.current = !1, a.current = Date.now()));
3567
- }, c = (y) => {
3608
+ }, l = (y) => {
3568
3609
  if (!i.current && !(y < u.open) && (i.current = !0, a.current)) {
3569
3610
  const m = Date.now(), v = a.current;
3570
- (m - v) / 1e3 <= 2 && (l.current += 1);
3611
+ (m - v) / 1e3 <= 2 && (c.current += 1);
3571
3612
  }
3572
3613
  }, f = () => {
3573
- if (l.current < t) {
3574
- const y = t - l.current;
3614
+ if (c.current < t) {
3615
+ const y = t - c.current;
3575
3616
  let m = `Blink right eye ${y} `;
3576
3617
  y < t && (m += "more "), m += y > 1 ? "times" : "time", n(m);
3577
3618
  return;
@@ -3583,22 +3624,22 @@ function Yo(e) {
3583
3624
  return { evaluate: (y) => {
3584
3625
  if (s.current)
3585
3626
  return;
3586
- const { keypoints: m } = y, v = je(
3627
+ const { keypoints: m } = y, v = Ve(
3587
3628
  m[6].x - m[8].x,
3588
3629
  m[6].y - m[8].y
3589
- ), $ = je(
3630
+ ), E = Ve(
3590
3631
  m[145].x - m[159].x,
3591
3632
  m[145].y - m[159].y
3592
3633
  ) / v * 100;
3593
- d($), c($), f();
3634
+ d(E), l(E), f();
3594
3635
  }, reset: () => {
3595
- i.current = !0, s.current = !1, a.current = null, l.current = 0;
3636
+ i.current = !0, s.current = !1, a.current = null, c.current = 0;
3596
3637
  } };
3597
3638
  }
3598
3639
  var Go = /* @__PURE__ */ ((e) => (e.open_mouth = "open_mouth", e.blink = "blink", e))(Go || {});
3599
- const Tr = Zl(Object.keys(Go)), kr = "Keep face in camera";
3600
- function tc(e) {
3601
- const { difficulty: t, maxBlinks: n = 3, maxNods: r = 3, timeout: o } = e, i = w(0), [s, a] = C(kr), [l, u] = C(!1), [d, c] = C(null), f = w(!1), { saveStream: p } = fe(), {
3640
+ const Tr = Jc(Object.keys(Go)), kr = "Keep face in camera";
3641
+ function nl(e) {
3642
+ const { difficulty: t, maxBlinks: n = 3, maxNods: r = 3, timeout: o } = e, i = w(0), [s, a] = F(kr), [c, u] = F(!1), [d, l] = F(null), f = w(!1), { saveStream: p } = fe(), {
3602
3643
  reset: _,
3603
3644
  start: y,
3604
3645
  stop: m,
@@ -3609,45 +3650,45 @@ function tc(e) {
3609
3650
  return;
3610
3651
  }
3611
3652
  i.current += 1;
3612
- }, $ = Ql({
3653
+ }, E = el({
3613
3654
  total: Math.floor(Math.random() * r + 1),
3614
3655
  difficulty: t,
3615
- onMessage: (E) => a(E),
3656
+ onMessage: ($) => a($),
3616
3657
  onComplete: g
3617
- }), T = ec({
3658
+ }), T = tl({
3618
3659
  difficulty: t,
3619
- onMessage: (E) => a(E),
3660
+ onMessage: ($) => a($),
3620
3661
  onComplete: g
3621
- }), S = Yo({
3662
+ }), k = Yo({
3622
3663
  total: Math.floor(Math.random() * n + 1),
3623
3664
  difficulty: t,
3624
- onMessage: (E) => a(E),
3665
+ onMessage: ($) => a($),
3625
3666
  onComplete: g
3626
- }), { detectFaces: x } = Rt({
3627
- onFace: (E) => {
3667
+ }), { detectFaces: C } = It({
3668
+ onFace: ($) => {
3628
3669
  switch (f.current || (f.current = !0), Tr[i.current]) {
3629
3670
  case "open_mouth":
3630
- T.evaluate(E);
3671
+ T.evaluate($);
3631
3672
  break;
3632
3673
  case "blink":
3633
- S.evaluate(E);
3674
+ k.evaluate($);
3634
3675
  break;
3635
3676
  }
3636
3677
  },
3637
- onError: (E) => {
3638
- a(E);
3678
+ onError: ($) => {
3679
+ a($);
3639
3680
  }
3640
3681
  }), L = () => {
3641
- i.current = 0, a(kr), u(!1), f.current = !1, S.reset(), $.reset(), T.reset(), _();
3642
- }, W = async (E) => {
3682
+ i.current = 0, a(kr), u(!1), f.current = !1, k.reset(), E.reset(), T.reset(), _();
3683
+ }, U = async ($) => {
3643
3684
  try {
3644
- if (!E.current || l)
3685
+ if (!$.current || c)
3645
3686
  return;
3646
- const { videoWidth: A } = E.current;
3647
- await x({ ref: E, frameSize: A, throttleInterval: 500 });
3687
+ const { videoWidth: A } = $.current;
3688
+ await C({ ref: $, frameSize: A, throttleInterval: 500 });
3648
3689
  } catch {
3649
3690
  }
3650
- }, F = async () => {
3691
+ }, S = async () => {
3651
3692
  };
3652
3693
  return /* @__PURE__ */ h(
3653
3694
  Dt,
@@ -3659,17 +3700,17 @@ function tc(e) {
3659
3700
  name: "motions",
3660
3701
  failed: v,
3661
3702
  onReset: L,
3662
- completed: l,
3703
+ completed: c,
3663
3704
  onStart: async () => {
3664
- await F(), y();
3705
+ await S(), y();
3665
3706
  },
3666
- children: d ? /* @__PURE__ */ h(q, {}) : /* @__PURE__ */ h(ut, { onStream: W, onRecord: p })
3707
+ children: d ? /* @__PURE__ */ h(Y, {}) : /* @__PURE__ */ h(ut, { onStream: U, onRecord: p })
3667
3708
  }
3668
3709
  );
3669
3710
  }
3670
3711
  const Sr = "Keep face in camera";
3671
- function nc(e) {
3672
- const { difficulty: t, maxBlinks: n = 3, timeout: r } = e, [o, i] = C(Sr), [s, a] = C(!1), [l, u] = C(null), d = w(!1), { saveStream: c } = fe(), {
3712
+ function rl(e) {
3713
+ const { difficulty: t, maxBlinks: n = 3, timeout: r } = e, [o, i] = F(Sr), [s, a] = F(!1), [c, u] = F(null), d = w(!1), { saveStream: l } = fe(), {
3673
3714
  reset: f,
3674
3715
  start: p,
3675
3716
  stop: _,
@@ -3679,26 +3720,26 @@ function nc(e) {
3679
3720
  }, v = Yo({
3680
3721
  total: Math.floor(Math.random() * n + 1),
3681
3722
  difficulty: t,
3682
- onMessage: (x) => i(x),
3723
+ onMessage: (C) => i(C),
3683
3724
  onComplete: m
3684
- }), { detectFaces: g } = Rt({
3685
- onFace: (x) => {
3686
- d.current || (d.current = !0), v.evaluate(x);
3725
+ }), { detectFaces: g } = It({
3726
+ onFace: (C) => {
3727
+ d.current || (d.current = !0), v.evaluate(C);
3687
3728
  },
3688
- onError: (x) => {
3689
- i(x);
3729
+ onError: (C) => {
3730
+ i(C);
3690
3731
  }
3691
- }), $ = () => {
3732
+ }), E = () => {
3692
3733
  i(Sr), a(!1), d.current = !1, v.reset(), f();
3693
- }, T = async (x) => {
3734
+ }, T = async (C) => {
3694
3735
  try {
3695
- if (!x.current || s)
3736
+ if (!C.current || s)
3696
3737
  return;
3697
- const { videoWidth: L } = x.current;
3698
- await g({ ref: x, frameSize: L });
3738
+ const { videoWidth: L } = C.current;
3739
+ await g({ ref: C, frameSize: L });
3699
3740
  } catch {
3700
3741
  }
3701
- }, S = async () => {
3742
+ }, k = async () => {
3702
3743
  };
3703
3744
  return /* @__PURE__ */ h(
3704
3745
  Dt,
@@ -3709,12 +3750,12 @@ function nc(e) {
3709
3750
  },
3710
3751
  name: "blink",
3711
3752
  failed: y,
3712
- onReset: $,
3753
+ onReset: E,
3713
3754
  completed: s,
3714
3755
  onStart: async () => {
3715
- await S(), p();
3756
+ await k(), p();
3716
3757
  },
3717
- children: l ? /* @__PURE__ */ h(q, {}) : /* @__PURE__ */ h(ut, { onStream: T, onRecord: c })
3758
+ children: c ? /* @__PURE__ */ h(Y, {}) : /* @__PURE__ */ h(ut, { onStream: T, onRecord: l })
3718
3759
  }
3719
3760
  );
3720
3761
  }
@@ -3722,32 +3763,32 @@ const Yt = {
3722
3763
  LEFT_EYE: [36, 37, 38, 39, 40, 41],
3723
3764
  RIGHT_EYE: [42, 43, 44, 45, 46, 47],
3724
3765
  MOUTH: [48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59]
3725
- }, mt = (e, t) => Math.sqrt((e.x - t.x) ** 2 + (e.y - t.y) ** 2), Fr = (e) => {
3766
+ }, mt = (e, t) => Math.sqrt((e.x - t.x) ** 2 + (e.y - t.y) ** 2), Cr = (e) => {
3726
3767
  if (e.length !== 6) return 0;
3727
3768
  const t = mt(e[1], e[5]), n = mt(e[2], e[4]), r = mt(e[0], e[3]);
3728
3769
  return (t + n) / (2 * r);
3729
- }, rc = (e) => {
3770
+ }, ol = (e) => {
3730
3771
  if (e.length < 12) return 0;
3731
3772
  const t = e[9], n = e[3];
3732
3773
  return mt(t, n);
3733
- }, oc = (e, t, n, r) => {
3734
- var c, f, p;
3774
+ }, il = (e, t, n, r) => {
3775
+ var l, f, p;
3735
3776
  let o = !0, i = !0;
3736
3777
  if (!r) {
3737
3778
  const m = Yt.LEFT_EYE.map(
3738
3779
  (L) => e[L]
3739
3780
  ), v = Yt.RIGHT_EYE.map(
3740
3781
  (L) => e[L]
3741
- ), g = Yt.MOUTH.map((L) => e[L]), $ = Fr(m), T = Fr(v), S = rc(g);
3742
- o = ($ + T) / 2 > 1, i = S < 73.24, o || t("Please look at the camera!"), i || t("Please close your mouth!");
3782
+ ), g = Yt.MOUTH.map((L) => e[L]), E = Cr(m), T = Cr(v), k = ol(g);
3783
+ o = (E + T) / 2 > 1, i = k < 73.24, o || t("Please look at the camera!"), i || t("Please close your mouth!");
3743
3784
  }
3744
- const s = 0.5, a = 0.12, l = ((c = r == null ? void 0 : r.find((_) => _.categoryName === "eyeBlinkLeft")) == null ? void 0 : c.score) ?? 0, u = ((f = r == null ? void 0 : r.find((_) => _.categoryName === "eyeBlinkRight")) == null ? void 0 : f.score) ?? 0, d = ((p = r == null ? void 0 : r.find((_) => _.categoryName === "jawOpen")) == null ? void 0 : p.score) ?? 0;
3745
- return o = l < s && u < s, o || t("Please look at the camera!"), i = d < a, i || t("Please close your mouth!"), {
3785
+ const s = 0.5, a = 0.12, c = ((l = r == null ? void 0 : r.find((_) => _.categoryName === "eyeBlinkLeft")) == null ? void 0 : l.score) ?? 0, u = ((f = r == null ? void 0 : r.find((_) => _.categoryName === "eyeBlinkRight")) == null ? void 0 : f.score) ?? 0, d = ((p = r == null ? void 0 : r.find((_) => _.categoryName === "jawOpen")) == null ? void 0 : p.score) ?? 0;
3786
+ return o = c < s && u < s, o || t("Please look at the camera!"), i = d < a, i || t("Please close your mouth!"), {
3746
3787
  eyesOpen: o,
3747
3788
  mouthClosed: i
3748
3789
  };
3749
3790
  };
3750
- function ic(e = {}) {
3791
+ function sl(e = {}) {
3751
3792
  const {
3752
3793
  validations: t = ["zoom", "in-frame"],
3753
3794
  frameSize: n,
@@ -3758,55 +3799,55 @@ function ic(e = {}) {
3758
3799
  onMessage: i = () => {
3759
3800
  },
3760
3801
  livenessTimeout: s
3761
- } = e, { faceDetector: a, savePhoto: l } = fe(), { checkFacialFeatures: u, checkZoomLevel: d, checkInFrame: c } = Bo(), f = w(null), p = w(null), _ = w(!1), y = w(null), m = w(!1), v = w([]), g = U(() => {
3802
+ } = e, { faceDetector: a, savePhoto: c } = fe(), { checkFacialFeatures: u, checkZoomLevel: d, checkInFrame: l } = Bo(), f = w(null), p = w(null), _ = w(!1), y = w(null), m = w(!1), v = w([]), g = z(() => {
3762
3803
  p.current && clearTimeout(p.current), y.current && clearTimeout(y.current), v.current.forEach(clearTimeout), m.current = !1, _.current = !0;
3763
- }, []), $ = w(null), T = w(null), S = w([]), x = 10, L = 7.5, W = 2, F = w({
3804
+ }, []), E = w(null), T = w(null), k = w([]), C = 10, L = 7.5, U = 2, S = w({
3764
3805
  sharpness: 0,
3765
3806
  data: null
3766
- }), E = (M, N) => {
3767
- const D = M.getContext("2d");
3768
- if (!D || N.width === 0 || N.height === 0 || !D || N.width === 0 || N.height === 0)
3807
+ }), $ = (x, N) => {
3808
+ const O = x.getContext("2d");
3809
+ if (!O || N.width === 0 || N.height === 0 || !O || N.width === 0 || N.height === 0)
3769
3810
  return !1;
3770
- const k = D.getImageData(
3811
+ const M = O.getImageData(
3771
3812
  N.xMin,
3772
3813
  N.yMin,
3773
3814
  N.width,
3774
3815
  N.height
3775
- ), { data: b } = k;
3776
- let z = 0, X = 0;
3777
- for (let J = 0; J < b.length; J += 4)
3778
- 0.299 * b[J] + 0.587 * b[J + 1] + 0.114 * b[J + 2] > 250 && X++;
3779
- const Q = b.length / 4;
3780
- return z = X / Q, z > 0.01;
3781
- }, A = (M, N, D, k) => {
3782
- const b = N.current, z = b == null ? void 0 : b.parentElement;
3783
- if (!(!b || !z))
3784
- for (const X of k)
3785
- switch (X) {
3816
+ ), { data: b } = M;
3817
+ let I = 0, j = 0;
3818
+ for (let Q = 0; Q < b.length; Q += 4)
3819
+ 0.299 * b[Q] + 0.587 * b[Q + 1] + 0.114 * b[Q + 2] > 250 && j++;
3820
+ const J = b.length / 4;
3821
+ return I = j / J, I > 0.01;
3822
+ }, A = (x, N, O, M) => {
3823
+ const b = N.current, I = b == null ? void 0 : b.parentElement;
3824
+ if (!(!b || !I))
3825
+ for (const j of M)
3826
+ switch (j) {
3786
3827
  case "zoom":
3787
- d(M, Math.min(z.clientHeight, z.clientWidth));
3828
+ d(x, Math.min(I.clientHeight, I.clientWidth));
3788
3829
  break;
3789
3830
  case "features":
3790
3831
  u(
3791
- M,
3792
- Math.min(z.clientHeight, z.clientWidth)
3832
+ x,
3833
+ Math.min(I.clientHeight, I.clientWidth)
3793
3834
  );
3794
3835
  break;
3795
3836
  case "in-frame":
3796
- let Q = D;
3797
- Q || (Q = Math.min(z.clientHeight, z.clientWidth) * 0.7);
3798
- const J = Q + 200;
3799
- c(M, {
3800
- x: (z.clientWidth - J) / 2,
3801
- y: (z.clientHeight - J) / 2,
3802
- width: J,
3803
- height: J,
3804
- offsetX: (b.videoWidth - z.clientWidth) / 2,
3805
- offsetY: (b.videoHeight - z.clientHeight) / 2
3837
+ let J = O;
3838
+ J || (J = Math.min(I.clientHeight, I.clientWidth) * 0.7);
3839
+ const Q = J + 200;
3840
+ l(x, {
3841
+ x: (I.clientWidth - Q) / 2,
3842
+ y: (I.clientHeight - Q) / 2,
3843
+ width: Q,
3844
+ height: Q,
3845
+ offsetX: (b.videoWidth - I.clientWidth) / 2,
3846
+ offsetY: (b.videoHeight - I.clientHeight) / 2
3806
3847
  });
3807
3848
  break;
3808
3849
  }
3809
- }, Y = (M) => {
3850
+ }, G = (x) => {
3810
3851
  const N = [
3811
3852
  33,
3812
3853
  // Left eye inner corner
@@ -3820,128 +3861,128 @@ function ic(e = {}) {
3820
3861
  // Right eye outer corner
3821
3862
  386
3822
3863
  // Right eye pupil area
3823
- ], D = 0.5;
3824
- for (const k of N) {
3825
- const b = M[k];
3826
- if (!b || b.score && b.score < D)
3864
+ ], O = 0.5;
3865
+ for (const M of N) {
3866
+ const b = x[M];
3867
+ if (!b || b.score && b.score < O)
3827
3868
  return !1;
3828
3869
  }
3829
3870
  return !0;
3830
- }, I = (M, N) => {
3831
- const D = M.getContext("2d");
3832
- if (!D || N.width === 0 || N.height === 0)
3871
+ }, R = (x, N) => {
3872
+ const O = x.getContext("2d");
3873
+ if (!O || N.width === 0 || N.height === 0)
3833
3874
  return !1;
3834
- const k = D.getImageData(
3875
+ const M = O.getImageData(
3835
3876
  N.xMin,
3836
3877
  N.yMin,
3837
3878
  N.width,
3838
3879
  N.height
3839
- ), { data: b } = k;
3840
- let z = 0;
3841
- for (let Q = 0; Q < b.length; Q += 4) {
3842
- const J = b[Q], ee = b[Q + 1], He = b[Q + 2], dt = 0.299 * J + 0.587 * ee + 0.114 * He;
3843
- z += dt;
3880
+ ), { data: b } = M;
3881
+ let I = 0;
3882
+ for (let J = 0; J < b.length; J += 4) {
3883
+ const Q = b[J], ee = b[J + 1], He = b[J + 2], dt = 0.299 * Q + 0.587 * ee + 0.114 * He;
3884
+ I += dt;
3844
3885
  }
3845
- return z / (b.length / 4) < 60;
3846
- }, V = (M) => {
3886
+ return I / (b.length / 4) < 60;
3887
+ }, B = (x) => {
3847
3888
  const N = {
3848
- x: M.box.xMin + (M.box.width ?? 0) / 2,
3849
- y: M.box.yMin + (M.box.height ?? 0) / 2
3889
+ x: x.box.xMin + (x.box.width ?? 0) / 2,
3890
+ y: x.box.yMin + (x.box.height ?? 0) / 2
3850
3891
  };
3851
- if (S.current.push(N), S.current.length > x && S.current.shift(), S.current.length < x) return !1;
3852
- let D = 0, k = 0, b = 0;
3853
- for (let ee = 1; ee < S.current.length; ee++) {
3854
- const He = S.current[ee - 1], dt = S.current[ee], qe = dt.x - He.x, Rn = dt.y - He.y, Dn = Math.sqrt(qe * qe + Rn * Rn);
3855
- Dn >= 2 && (D += Dn, ee > 1 && Math.sign(qe) !== Math.sign(b) && Math.abs(qe) > 3 && k++, b = qe);
3892
+ if (k.current.push(N), k.current.length > C && k.current.shift(), k.current.length < C) return !1;
3893
+ let O = 0, M = 0, b = 0;
3894
+ for (let ee = 1; ee < k.current.length; ee++) {
3895
+ const He = k.current[ee - 1], dt = k.current[ee], qe = dt.x - He.x, In = dt.y - He.y, Dn = Math.sqrt(qe * qe + In * In);
3896
+ Dn >= 2 && (O += Dn, ee > 1 && Math.sign(qe) !== Math.sign(b) && Math.abs(qe) > 3 && M++, b = qe);
3856
3897
  }
3857
- const X = D / (x - 1) > L, Q = k >= W, J = X || Q;
3858
- return J && i("🚨 Head shake detected!"), J;
3859
- }, R = (M, N, D, k) => {
3898
+ const j = O / (C - 1) > L, J = M >= U, Q = j || J;
3899
+ return Q && i("🚨 Head shake detected!"), Q;
3900
+ }, D = (x, N, O, M) => {
3860
3901
  try {
3861
- if (M.length === 0 || M.length > 1) {
3902
+ if (x.length === 0 || x.length > 1) {
3862
3903
  p.current && (clearTimeout(p.current), p.current = null), i(
3863
- M.length > 1 ? "Please ensure only one face is visible" : "Detecting face..."
3904
+ x.length > 1 ? "Please ensure only one face is visible" : "Detecting face..."
3864
3905
  );
3865
3906
  return;
3866
3907
  }
3867
- const b = M[0];
3868
- let z = "", X = !0;
3908
+ const b = x[0];
3909
+ let I = "", j = !0;
3869
3910
  try {
3870
3911
  A(b, f, n, t);
3871
3912
  } catch (ee) {
3872
- z = ee.message, X = !1;
3913
+ I = ee.message, j = !1;
3873
3914
  }
3874
- V(b) && (z = "Please hold your head steady", X = !1), k || (z = "Center your face in the frame", X = !1), Y(b.keypoints) || (z = "Please ensure your eyes are clearly visible. Remove glasses if necessary.", X = !1);
3875
- const { eyesOpen: Q, mouthClosed: J } = oc(
3915
+ B(b) && (I = "Please hold your head steady", j = !1), M || (I = "Center your face in the frame", j = !1), G(b.keypoints) || (I = "Please ensure your eyes are clearly visible. Remove glasses if necessary.", j = !1);
3916
+ const { eyesOpen: J, mouthClosed: Q } = il(
3876
3917
  b.keypoints,
3877
3918
  // onError,
3878
3919
  i,
3879
3920
  !1,
3880
- D
3921
+ O
3881
3922
  );
3882
- if (Q ? J || (z = "Please close your mouth", X = !1) : (p.current && (clearTimeout(p.current), p.current = null), X = !1), !X) {
3883
- p.current && (clearTimeout(p.current), p.current = null, v.current.forEach(clearTimeout)), i(z), r(b, !1, D, !1);
3923
+ if (J ? Q || (I = "Please close your mouth", j = !1) : (p.current && (clearTimeout(p.current), p.current = null), j = !1), !j) {
3924
+ p.current && (clearTimeout(p.current), p.current = null, v.current.forEach(clearTimeout)), i(I), r(b, !1, O, !1);
3884
3925
  return;
3885
3926
  }
3886
3927
  if (!p.current) {
3887
- if (I($.current, b.box)) {
3928
+ if (R(E.current, b.box)) {
3888
3929
  i("Too dark – move to a well-lit area");
3889
3930
  return;
3890
3931
  }
3891
- if (E($.current, b.box)) {
3932
+ if ($(E.current, b.box)) {
3892
3933
  i("Too much glare. Please avoid direct light on your face.");
3893
3934
  return;
3894
3935
  }
3895
- i("Hold still..."), F.current = { sharpness: 0, data: null }, v.current.forEach(clearTimeout);
3936
+ i("Hold still..."), S.current = { sharpness: 0, data: null }, v.current.forEach(clearTimeout);
3896
3937
  const ee = setTimeout(() => i("Almost there..."), 400), He = setTimeout(
3897
3938
  () => i("Detecting liveness..."),
3898
3939
  700
3899
3940
  );
3900
3941
  v.current = [ee, He], p.current = setTimeout(() => {
3901
- F.current.data ? (l(F.current.data), r(b, !0, D, !0)) : o("Could not capture a clear photo. Please try again.");
3942
+ S.current.data ? (c(S.current.data), r(b, !0, O, !0)) : o("Could not capture a clear photo. Please try again.");
3902
3943
  }, 1e3);
3903
3944
  }
3904
3945
  if (p.current) {
3905
- const ee = Va(N);
3906
- ee > F.current.sharpness && (F.current = {
3946
+ const ee = ja(N);
3947
+ ee > S.current.sharpness && (S.current = {
3907
3948
  sharpness: ee,
3908
3949
  data: N
3909
3950
  });
3910
3951
  }
3911
3952
  } catch (b) {
3912
- o(b.message), M.length > 0 && r(M[0], !1, D, !1);
3953
+ o(b.message), x.length > 0 && r(x[0], !1, O, !1);
3913
3954
  }
3914
3955
  };
3915
- return { detectFaces: async (M) => {
3956
+ return { detectFaces: async (x) => {
3916
3957
  if (!a) return;
3917
- f.current = M.ref.current;
3958
+ f.current = x.ref.current;
3918
3959
  const N = f.current;
3919
3960
  if (!N || N.videoWidth === 0) return;
3920
- $.current || ($.current = document.createElement("canvas"), T.current = $.current.getContext("2d", {
3961
+ E.current || (E.current = document.createElement("canvas"), T.current = E.current.getContext("2d", {
3921
3962
  willReadFrequently: !0
3922
3963
  }));
3923
- const D = $.current, k = T.current;
3924
- if (!D || !k) return;
3925
- D.width = N.videoWidth, D.height = N.videoHeight, k.drawImage(N, 0, 0, D.width, D.height);
3926
- const b = k.getImageData(0, 0, D.width, D.height);
3964
+ const O = E.current, M = T.current;
3965
+ if (!O || !M) return;
3966
+ O.width = N.videoWidth, O.height = N.videoHeight, M.drawImage(N, 0, 0, O.width, O.height);
3967
+ const b = M.getImageData(0, 0, O.width, O.height);
3927
3968
  !m.current && N.readyState >= 2 && !_.current && (m.current = !0, y.current = setTimeout(() => {
3928
3969
  o("Liveness check TIMED OUT. Please try again."), g();
3929
3970
  }, s));
3930
- const { faces: z, blendShapes: X, inBox: Q } = await $e.detectFaces(
3971
+ const { faces: I, blendShapes: j, inBox: J } = await $e.detectFaces(
3931
3972
  a,
3932
3973
  b
3933
3974
  );
3934
- R(z, b, X, Q);
3975
+ D(I, b, j, J);
3935
3976
  }, cleanup: g };
3936
3977
  }
3937
- const sc = "_container_1ej18_1", ac = "_progress_1ej18_12", lc = "_completed_1ej18_33", cc = "_marker_1ej18_37", Gt = {
3938
- container: sc,
3939
- progress: ac,
3940
- completed: lc,
3941
- marker: cc
3978
+ const al = "_container_1ej18_1", cl = "_progress_1ej18_12", ll = "_completed_1ej18_33", ul = "_marker_1ej18_37", Gt = {
3979
+ container: al,
3980
+ progress: cl,
3981
+ completed: ll,
3982
+ marker: ul
3942
3983
  };
3943
- function uc(e) {
3944
- const { faceDetected: t } = e, n = j(() => {
3984
+ function dl(e) {
3985
+ const { faceDetected: t } = e, n = V(() => {
3945
3986
  const r = [Gt.container];
3946
3987
  return t && r.push(Gt.focused), r.join(" ");
3947
3988
  }, [t]);
@@ -3957,7 +3998,7 @@ const Kt = {
3957
3998
  SpoofFace: "We detected a spoofing attempt",
3958
3999
  FaceTrackingFailed: "We could not detect your face",
3959
4000
  ExcessiveFaceBrightnessDetected: "We detected excessive light during the test, please wipe any oil or sweat that might cause a reflection on your face."
3960
- }, dc = {
4001
+ }, fl = {
3961
4002
  None: "Processing...",
3962
4003
  LookAtCamera: "Look at camera.",
3963
4004
  FaceNotCentered: "Center your face in the camera.",
@@ -3977,7 +4018,7 @@ const Kt = {
3977
4018
  Tip3: "You may be asked to turn your nose towards the green color.",
3978
4019
  Continue: "Continue"
3979
4020
  };
3980
- function fc(e) {
4021
+ function pl(e) {
3981
4022
  const {
3982
4023
  onComplete: t = () => {
3983
4024
  },
@@ -3986,88 +4027,88 @@ function fc(e) {
3986
4027
  onError: r = () => {
3987
4028
  }
3988
4029
  // onPictureReady = () => {},
3989
- } = e, { setColorScheme: o, getColorScheme: i } = Vo(), s = w(null), a = w(!1), l = () => {
4030
+ } = e, { setColorScheme: o, getColorScheme: i } = jo(), s = w(null), a = w(!1), c = () => {
3990
4031
  s.current && (s.current.callAttemptEnd(), s.current.delete(), s.current = null);
3991
- }, u = U(() => {
3992
- l();
4032
+ }, u = z(() => {
4033
+ c();
3993
4034
  }, []), d = () => {
3994
- s.current && l(), s.current = null, a.current = !1;
3995
- }, c = (m) => {
3996
- var L, W;
4035
+ s.current && c(), s.current = null, a.current = !1;
4036
+ }, l = (m) => {
4037
+ var L, U;
3997
4038
  const v = m.split(".");
3998
4039
  let g = !1;
3999
4040
  s.current.setToken(m);
4000
- let $ = "", T = "", S, x = 0;
4041
+ let E = "", T = "", k, C = 0;
4001
4042
  if (v.length === 3) {
4002
- const F = JSON.parse(atob(v[1]));
4003
- if (F.face) {
4004
- const E = JSON.parse(F.face), A = /^https:\/\/[^/:]+\.(api\.cognitive\.microsoft|cognitiveservices\.azure)\.com$/;
4005
- if (E.endpoint && (A.test(E.endpoint) || E.endpoint === "https://virginia.api.cognitive.microsoft.us")) {
4006
- s.current.setEndpoint(E.endpoint);
4007
- const I = JSON.parse(F["allowed-paths"]);
4008
- if (I) {
4009
- const V = (L = I.find(
4010
- (k) => k.path.toLocaleLowerCase().endsWith("/session/start")
4043
+ const S = JSON.parse(atob(v[1]));
4044
+ if (S.face) {
4045
+ const $ = JSON.parse(S.face), A = /^https:\/\/[^/:]+\.(api\.cognitive\.microsoft|cognitiveservices\.azure)\.com$/;
4046
+ if ($.endpoint && (A.test($.endpoint) || $.endpoint === "https://virginia.api.cognitive.microsoft.us")) {
4047
+ s.current.setEndpoint($.endpoint);
4048
+ const R = JSON.parse(S["allowed-paths"]);
4049
+ if (R) {
4050
+ const B = (L = R.find(
4051
+ (M) => M.path.toLocaleLowerCase().endsWith("/session/start")
4011
4052
  )) == null ? void 0 : L.path;
4012
- s.current.setSessionStartPath(V);
4013
- const R = (W = I.find(
4014
- (k) => k.path.toLocaleLowerCase().endsWith("/session/attempt/end")
4015
- )) == null ? void 0 : W.path;
4016
- s.current.setAttemptEndPath(R);
4017
- const G = I.find(
4018
- (k) => k.path.endsWith("/detectLiveness/singleModal")
4053
+ s.current.setSessionStartPath(B);
4054
+ const D = (U = R.find(
4055
+ (M) => M.path.toLocaleLowerCase().endsWith("/session/attempt/end")
4056
+ )) == null ? void 0 : U.path;
4057
+ s.current.setAttemptEndPath(D);
4058
+ const K = R.find(
4059
+ (M) => M.path.endsWith("/detectLiveness/singleModal")
4019
4060
  );
4020
- G && ({ path: $, quota: x } = G, s.current.setLivenessPath($));
4021
- const M = I.find(
4022
- (k) => k.path.endsWith("/detectLivenessWithVerify/singleModal")
4061
+ K && ({ path: E, quota: C } = K, s.current.setLivenessPath(E));
4062
+ const x = R.find(
4063
+ (M) => M.path.endsWith("/detectLivenessWithVerify/singleModal")
4023
4064
  );
4024
- M && ({ path: T, quota: x } = M, s.current.setLivenessWithVerifyPath(
4065
+ x && ({ path: T, quota: C } = x, s.current.setLivenessWithVerifyPath(
4025
4066
  T
4026
4067
  ));
4027
4068
  const N = new Set(
4028
- I.map(
4029
- (k) => {
4069
+ R.map(
4070
+ (M) => {
4030
4071
  var b;
4031
- return (b = k.path) == null ? void 0 : b.split("/")[1];
4072
+ return (b = M.path) == null ? void 0 : b.split("/")[1];
4032
4073
  }
4033
4074
  )
4034
4075
  );
4035
- if (N.size === 1 && (G || M)) {
4036
- const k = N.values().next().value;
4037
- s.current.setApiVersion(k), g = !0, S = E.clientClaims.livenessOperationMode;
4076
+ if (N.size === 1 && (K || x)) {
4077
+ const M = N.values().next().value;
4078
+ s.current.setApiVersion(M), g = !0, k = $.clientClaims.livenessOperationMode;
4038
4079
  }
4039
4080
  }
4040
4081
  }
4041
4082
  }
4042
- s.current.setOperationQuota(x), s.current.setOperationMode(
4043
- window.Module.LivenessOperationMode[S]
4044
- ), F.sid && s.current.setSid(F.sid), F["azure-resource-id"] && s.current.setResourceId(F["azure-resource-id"]);
4083
+ s.current.setOperationQuota(C), s.current.setOperationMode(
4084
+ window.Module.LivenessOperationMode[k]
4085
+ ), S.sid && s.current.setSid(S.sid), S["azure-resource-id"] && s.current.setResourceId(S["azure-resource-id"]);
4045
4086
  }
4046
4087
  if (g)
4047
4088
  s.current.initialize();
4048
4089
  else {
4049
- const F = {
4050
- livenessError: Fe(
4090
+ const S = {
4091
+ livenessError: Ce(
4051
4092
  window.Module.LivenessFailureReason,
4052
4093
  window.Module.LivenessFailureReason.InvalidToken
4053
4094
  ),
4054
- recognitionError: Fe(
4095
+ recognitionError: Ce(
4055
4096
  window.Module.RecognitionFailureReason,
4056
4097
  window.Module.RecognitionFailureReason.None
4057
4098
  )
4058
4099
  };
4059
4100
  r(
4060
- F.livenessError ? Kt[F.livenessError] || F.livenessError : "Something went wrong"
4101
+ S.livenessError ? Kt[S.livenessError] || S.livenessError : "Something went wrong"
4061
4102
  ), u();
4062
4103
  }
4063
4104
  }, f = (m) => {
4064
4105
  try {
4065
- s.current = new window.Module.FaceRecoEngineAdapter(), c(m);
4106
+ s.current = new window.Module.FaceRecoEngineAdapter(), l(m);
4066
4107
  } catch (v) {
4067
- r(`Could not start liveness test: ${v.message}`), l();
4108
+ r(`Could not start liveness test: ${v.message}`), c();
4068
4109
  }
4069
4110
  }, p = (m) => {
4070
- const { isActionValid: v, isFeedbackValid: g, feedback: $ } = m;
4111
+ const { isActionValid: v, isFeedbackValid: g, feedback: E } = m;
4071
4112
  if (v)
4072
4113
  switch (m.action) {
4073
4114
  case window.Module.ActionRequiredFromApplication.BrightenDisplay:
@@ -4080,33 +4121,33 @@ function fc(e) {
4080
4121
  break;
4081
4122
  }
4082
4123
  if (!a.current && g) {
4083
- const T = Fe(
4124
+ const T = Ce(
4084
4125
  window.Module.FeedbackForFace,
4085
- $
4126
+ E
4086
4127
  );
4087
4128
  n(
4088
- T && (dc[T] || "")
4129
+ T && (fl[T] || "")
4089
4130
  );
4090
4131
  }
4091
- if ($ === window.Module.FeedbackForFace.AttentionNotNeeded) {
4132
+ if (E === window.Module.FeedbackForFace.AttentionNotNeeded) {
4092
4133
  a.current = !0;
4093
4134
  const T = i();
4094
4135
  o(T);
4095
4136
  }
4096
4137
  }, _ = (m) => {
4097
- var S, x;
4098
- const { livenessResult: v, recognitionResult: g } = m, $ = ((S = v.failureReason) == null ? void 0 : S.value) !== 0 || ((x = g.failureReason) == null ? void 0 : x.value) !== 0, T = /* @__PURE__ */ new Set([
4138
+ var k, C;
4139
+ const { livenessResult: v, recognitionResult: g } = m, E = ((k = v.failureReason) == null ? void 0 : k.value) !== 0 || ((C = g.failureReason) == null ? void 0 : C.value) !== 0, T = /* @__PURE__ */ new Set([
4099
4140
  "EnvironmentNotSupported",
4100
4141
  "ExcessiveFaceBrightnessDetected",
4101
4142
  "FaceEyeRegionNotVisible"
4102
4143
  ]);
4103
- if ($) {
4144
+ if (E) {
4104
4145
  const L = {
4105
- livenessError: Fe(
4146
+ livenessError: Ce(
4106
4147
  window.Module.LivenessFailureReason,
4107
4148
  v.failureReason
4108
4149
  ),
4109
- recognitionError: Fe(
4150
+ recognitionError: Ce(
4110
4151
  window.Module.RecognitionFailureReason,
4111
4152
  g.failureReason
4112
4153
  )
@@ -4116,12 +4157,12 @@ function fc(e) {
4116
4157
  );
4117
4158
  } else {
4118
4159
  const L = {
4119
- livenessStatus: Fe(
4160
+ livenessStatus: Ce(
4120
4161
  window.Module.LivenessStatus,
4121
4162
  v.status
4122
4163
  ),
4123
4164
  recognitionResult: {
4124
- status: Fe(
4165
+ status: Ce(
4125
4166
  window.Module.RecognitionStatus,
4126
4167
  g.status
4127
4168
  ),
@@ -4142,20 +4183,20 @@ function fc(e) {
4142
4183
  if (a.current)
4143
4184
  v = s.current.generatePayloadAndResult();
4144
4185
  else {
4145
- const { videoWidth: g, videoHeight: $ } = m, T = In(m, g, $, void 0, {
4186
+ const { videoWidth: g, videoHeight: E } = m, T = Rn(m, g, E, void 0, {
4146
4187
  willReadFrequently: !0
4147
- }), S = window.Module._malloc(T.data.byteLength);
4188
+ }), k = window.Module._malloc(T.data.byteLength);
4148
4189
  try {
4149
- window.Module.HEAPU8.set(T.data, S);
4150
- const x = s.current.processFrame(
4190
+ window.Module.HEAPU8.set(T.data, k);
4191
+ const C = s.current.processFrame(
4151
4192
  g,
4152
- $,
4193
+ E,
4153
4194
  T.data.byteLength,
4154
- S
4195
+ k
4155
4196
  );
4156
- x.terminate ? v = !0 : x.isValid && p(x);
4197
+ C.terminate ? v = !0 : C.isValid && p(C);
4157
4198
  } finally {
4158
- window.Module._free(S);
4199
+ window.Module._free(k);
4159
4200
  }
4160
4201
  }
4161
4202
  v && _(s.current.getFaceAnalyzerResult());
@@ -4164,8 +4205,8 @@ function fc(e) {
4164
4205
  destroy: u
4165
4206
  };
4166
4207
  }
4167
- const Cr = "Detecting face...";
4168
- function pc({
4208
+ const Fr = "Detecting face...";
4209
+ function hl({
4169
4210
  onImageCaptured: e,
4170
4211
  fetchAzureSessionToken: t,
4171
4212
  loadAzureSdk: n,
@@ -4173,68 +4214,68 @@ function pc({
4173
4214
  onReset: o,
4174
4215
  onFailure: i
4175
4216
  }) {
4176
- const [s, a] = C(Cr), [l, u] = C(!1), d = w("findingFace"), c = w(null), f = w(), p = w(!1), [_, y] = C(0), m = w(!1), [v, g] = C(!1);
4177
- H(() => {
4217
+ const [s, a] = F(Fr), [c, u] = F(!1), d = w("findingFace"), l = w(null), f = w(), p = w(!1), [_, y] = F(0), m = w(!1), [v, g] = F(!1);
4218
+ W(() => {
4178
4219
  y(Math.min(window.innerWidth, window.innerHeight) * 0.6);
4179
- }, []), H(() => {
4220
+ }, []), W(() => {
4180
4221
  n(), t();
4181
4222
  }, []);
4182
- const $ = fc({
4183
- onMessage: (F) => {
4184
- d.current === "analyzingLiveness" && a(F);
4223
+ const E = pl({
4224
+ onMessage: (S) => {
4225
+ d.current === "analyzingLiveness" && a(S);
4185
4226
  },
4186
4227
  onComplete: () => {
4187
4228
  d.current = "done", e(!0);
4188
4229
  },
4189
- onError: (F) => {
4190
- const E = Jl(F);
4191
- a(E.message), d.current = "done", u(!0), r && r(F), i({
4230
+ onError: (S) => {
4231
+ const $ = Qc(S);
4232
+ a($.message), d.current = "done", u(!0), r && r(S), i({
4192
4233
  faceImage: "",
4193
4234
  passed: !1,
4194
4235
  metadata: {},
4195
- error: E
4236
+ error: $
4196
4237
  });
4197
4238
  }
4198
4239
  }), T = () => {
4199
- m.current = !1, a(Cr), d.current = "findingFace", c.current = null, $.reset(), f.current && cancelAnimationFrame(f.current), u(!1), o();
4200
- }, { detectFaces: S, cleanup: x } = ic({
4240
+ m.current = !1, a(Fr), d.current = "findingFace", l.current = null, E.reset(), f.current && cancelAnimationFrame(f.current), u(!1), o();
4241
+ }, { detectFaces: k, cleanup: C } = sl({
4201
4242
  validations: ["zoom", "features"],
4202
4243
  frameSize: _,
4203
4244
  livenessTimeout: 1e4,
4204
- onFace: async (F, E, A) => {
4205
- p.current = E, E && d.current === "findingFace" && !m.current && A && (m.current = !0, g(!0));
4245
+ onFace: async (S, $, A) => {
4246
+ p.current = $, $ && d.current === "findingFace" && !m.current && A && (m.current = !0, g(!0));
4206
4247
  },
4207
4248
  onPhotoSaved: () => {
4208
4249
  },
4209
- onMessage: (F) => {
4210
- d.current === "findingFace" && a(F);
4250
+ onMessage: (S) => {
4251
+ d.current === "findingFace" && a(S);
4211
4252
  },
4212
- onError: (F) => {
4213
- a(F), u(!0), r && r(F);
4253
+ onError: (S) => {
4254
+ a(S), u(!0), r && r(S);
4214
4255
  }
4215
4256
  });
4216
- H(
4257
+ W(
4217
4258
  () => () => {
4218
- x();
4259
+ C();
4219
4260
  },
4220
4261
  []
4221
4262
  );
4222
4263
  const L = () => {
4223
- !c.current || c.current.paused || c.current.ended || (d.current === "findingFace" ? S({ ref: c }) : d.current === "analyzingLiveness" && $.processFrame(c.current), d.current !== "done" && (f.current = requestAnimationFrame(L)));
4264
+ !l.current || l.current.paused || l.current.ended || (d.current === "findingFace" ? k({ ref: l }) : d.current === "analyzingLiveness" && E.processFrame(l.current), d.current !== "done" && (f.current = requestAnimationFrame(L)));
4224
4265
  };
4225
- H(() => {
4266
+ W(() => {
4226
4267
  (async () => {
4227
4268
  if (v) {
4228
- g(!1), x();
4269
+ g(!1), C();
4229
4270
  try {
4230
4271
  await n();
4231
- const E = await t();
4232
- if (E)
4233
- $.start(E), d.current = "analyzingLiveness";
4272
+ const $ = await t();
4273
+ if ($)
4274
+ E.start($), d.current = "analyzingLiveness";
4234
4275
  else
4235
4276
  throw new Error("Session token could not be retrieved.");
4236
- } catch (E) {
4237
- const A = E instanceof Error ? E.message : "Failed to start liveness check.";
4277
+ } catch ($) {
4278
+ const A = $ instanceof Error ? $.message : "Failed to start liveness check.";
4238
4279
  r && r(A), i({
4239
4280
  faceImage: "",
4240
4281
  passed: !1,
@@ -4248,26 +4289,26 @@ function pc({
4248
4289
  }
4249
4290
  })();
4250
4291
  }, [v]);
4251
- const W = (F) => {
4252
- F.current && (c.current = F.current, L());
4292
+ const U = (S) => {
4293
+ S.current && (l.current = S.current, L());
4253
4294
  };
4254
- return H(
4295
+ return W(
4255
4296
  () => () => {
4256
4297
  f.current && cancelAnimationFrame(f.current);
4257
4298
  },
4258
4299
  []
4259
- ), /* @__PURE__ */ h("div", { className: "yvlw-h-full yvlw-flex yvlw-flex-col yvlw-items-center yvlw-justify-center", children: l ? /* @__PURE__ */ h("div", { className: `${se.intro}`, children: /* @__PURE__ */ h(
4300
+ ), /* @__PURE__ */ h("div", { className: "yvlw-h-full yvlw-flex yvlw-flex-col yvlw-items-center yvlw-justify-center", children: c ? /* @__PURE__ */ h("div", { className: `${se.intro}`, children: /* @__PURE__ */ h(
4260
4301
  $t,
4261
4302
  {
4262
- Icon: zo,
4303
+ Icon: Uo,
4263
4304
  title: "Oops, task failed!",
4264
4305
  description: s,
4265
4306
  onActionClick: T,
4266
4307
  actionText: "Try Again"
4267
4308
  }
4268
4309
  ) }) : /* @__PURE__ */ h("div", { className: se.root, children: /* @__PURE__ */ h("div", { className: `${se.container} view`, children: /* @__PURE__ */ h("div", { className: "yvlw-h-full yvlw-flex yvlw-flex-col", children: [
4269
- /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(ut, { onStream: W, children: /* @__PURE__ */ h(q, { children: [
4270
- /* @__PURE__ */ h(uc, { faceDetected: p.current }),
4310
+ /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(ut, { onStream: U, children: /* @__PURE__ */ h(Y, { children: [
4311
+ /* @__PURE__ */ h(dl, { faceDetected: p.current }),
4271
4312
  d.current === "analyzingLiveness" && /* @__PURE__ */ h("div", { className: "yvlw-bg-black/20 yvlw-z-5" })
4272
4313
  ] }) }) }),
4273
4314
  /* @__PURE__ */ h("div", { className: "yvlw-border-t dark:yvlw-border-gray-800 yvlw-border-gray-200", children: /* @__PURE__ */ h("div", { className: "yvlw-text-center yvlw-mx-auto yvlw-pt-4 yvlw-pb-6 yvlw-px-4", children: [
@@ -4279,14 +4320,14 @@ function pc({
4279
4320
  ] }) })
4280
4321
  ] }) }) }) });
4281
4322
  }
4282
- const hc = () => {
4323
+ const vl = () => {
4283
4324
  if (window.isAzureSdkLoading)
4284
4325
  return window.azureSdkLoadPromise;
4285
4326
  window.isAzureSdkLoading = !0;
4286
4327
  const e = new Promise((t, n) => {
4287
4328
  let r = Ge.js.simd;
4288
4329
  try {
4289
- WebAssembly.validate(new Uint8Array(Ja)) || (r = Ge.js.default);
4330
+ WebAssembly.validate(new Uint8Array(Qa)) || (r = Ge.js.default);
4290
4331
  } catch {
4291
4332
  r = Ge.js.simd;
4292
4333
  }
@@ -4309,48 +4350,48 @@ const hc = () => {
4309
4350
  return window.azureSdkLoadPromise = e, e;
4310
4351
  };
4311
4352
  let Xe = null;
4312
- function vc() {
4313
- var V;
4314
- const { toggleColorScheme: e, getColorScheme: t, setColorScheme: n } = Vo(), {
4353
+ function ml() {
4354
+ var B;
4355
+ const { toggleColorScheme: e, getColorScheme: t, setColorScheme: n } = jo(), {
4315
4356
  user: r,
4316
4357
  tasks: o,
4317
4358
  currentTaskIndex: i,
4318
4359
  completed: s,
4319
4360
  onComplete: a,
4320
- onFailure: l,
4361
+ onFailure: c,
4321
4362
  faceDetector: u,
4322
4363
  presentation: d,
4323
- clearSavedPhoto: c,
4364
+ clearSavedPhoto: l,
4324
4365
  branding: f,
4325
4366
  isMobileAppWebView: p
4326
- } = fe(), [_, y] = C(!1), [m, v] = C(!1), [g, $] = C(null), [T, S] = C(!1), [x, L] = C(!1), [W, F] = C(0);
4327
- H(() => {
4328
- const R = t();
4329
- n(R);
4367
+ } = fe(), [_, y] = F(!1), [m, v] = F(!1), [g, E] = F(null), [T, k] = F(!1), [C, L] = F(!1), [U, S] = F(0);
4368
+ W(() => {
4369
+ const D = t();
4370
+ n(D);
4330
4371
  }, []);
4331
- const { sessionToken: E } = fe(), A = async () => (!E && !Xe && (Xe = Promise.reject(
4372
+ const { sessionToken: $ } = fe(), A = async () => (!$ && !Xe && (Xe = Promise.reject(
4332
4373
  new Error(
4333
4374
  "sessionToken not provided. Generate a sessionToken on your backend and pass it to the SDK."
4334
4375
  )
4335
- )), E ?? Xe), Y = async () => {
4376
+ )), $ ?? Xe), G = async () => {
4336
4377
  try {
4337
- y(!0), $(null), await a(), Xe = null, d === "page" && S(!0);
4338
- } catch (R) {
4339
- $(R.message);
4378
+ y(!0), E(null), await a(), Xe = null, d === "page" && k(!0);
4379
+ } catch (D) {
4380
+ E(D.message);
4340
4381
  } finally {
4341
4382
  y(!1);
4342
4383
  }
4343
- }, I = U(
4344
- (R) => R === i ? ne.active : i > R ? ne.completed : "subtext",
4384
+ }, R = z(
4385
+ (D) => D === i ? ne.active : i > D ? ne.completed : "subtext",
4345
4386
  [i]
4346
4387
  );
4347
4388
  return /* @__PURE__ */ h("div", { className: ne.root, children: /* @__PURE__ */ h("div", { className: ne.container, children: [
4348
4389
  /* @__PURE__ */ h("div", { className: `${ne.lhs} divider`, children: [
4349
4390
  /* @__PURE__ */ h("div", { className: ne.info, children: [
4350
- /* @__PURE__ */ h(vl, {}),
4391
+ /* @__PURE__ */ h(mc, {}),
4351
4392
  /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h("p", { className: "yvlw-text-xs yvlw-m-0 yvlw-p-0 subtext", children: "You have been given this set of tasks to complete. They are pretty easy to do but we will be guiding you every step of the way." }) }),
4352
4393
  /* @__PURE__ */ h("ol", { children: [
4353
- o.map((R, G) => /* @__PURE__ */ h("li", { className: I(G), children: Qa[R.id].name }, `task-${G}`)),
4394
+ o.map((D, K) => /* @__PURE__ */ h("li", { className: R(K), children: ec[D.id].name }, `task-${K}`)),
4354
4395
  /* @__PURE__ */ h("li", { className: s ? ne.active : "", children: "Complete! 🎉" })
4355
4396
  ] })
4356
4397
  ] }),
@@ -4368,7 +4409,7 @@ function vc() {
4368
4409
  ] }) }),
4369
4410
  /* @__PURE__ */ h("div", { onClick: () => e(), role: "button", children: [
4370
4411
  /* @__PURE__ */ h("div", { className: "dark:yvlw-hidden", children: /* @__PURE__ */ h(Wo, {}) }),
4371
- /* @__PURE__ */ h("div", { className: "yvlw-hidden dark:yvlw-block", children: /* @__PURE__ */ h(Ra, {}) })
4412
+ /* @__PURE__ */ h("div", { className: "yvlw-hidden dark:yvlw-block", children: /* @__PURE__ */ h(Ia, {}) })
4372
4413
  ] })
4373
4414
  ] })
4374
4415
  ] }),
@@ -4399,7 +4440,7 @@ function vc() {
4399
4440
  /* @__PURE__ */ h(
4400
4441
  pe,
4401
4442
  {
4402
- show: m && !x,
4443
+ show: m && !C,
4403
4444
  as: "div",
4404
4445
  leave: "yvlw-transform yvlw-transition yvlw-duration-300",
4405
4446
  leaveFrom: "yvlw-translate-y-0 yvlw-opacity-100",
@@ -4408,46 +4449,46 @@ function vc() {
4408
4449
  enterTo: "yvlw-translate-y-0 yvlw-opacity-100",
4409
4450
  className: "yvlw-h-full yvlw-w-full",
4410
4451
  children: /* @__PURE__ */ h("div", { className: ne.completed, children: /* @__PURE__ */ h(
4411
- pc,
4452
+ hl,
4412
4453
  {
4413
4454
  fetchAzureSessionToken: A,
4414
- loadAzureSdk: hc,
4415
- onImageCaptured: (R) => {
4416
- $(null), R && L(!0);
4455
+ loadAzureSdk: vl,
4456
+ onImageCaptured: (D) => {
4457
+ E(null), D && L(!0);
4417
4458
  },
4418
- onError: (R) => $(R),
4459
+ onError: (D) => E(D),
4419
4460
  onReset: () => {
4420
- Xe = null, L(!1), F((R) => R + 1), c();
4461
+ Xe = null, L(!1), S((D) => D + 1), l();
4421
4462
  },
4422
- onFailure: l
4463
+ onFailure: c
4423
4464
  },
4424
- W
4465
+ U
4425
4466
  ) })
4426
4467
  }
4427
4468
  ),
4428
- o.map((R, G) => {
4429
- let M;
4430
- switch (R.id) {
4469
+ o.map((D, K) => {
4470
+ let x;
4471
+ switch (D.id) {
4431
4472
  case "complete-the-circle":
4432
- M = /* @__PURE__ */ h(zl, { ...R });
4473
+ x = /* @__PURE__ */ h(zc, { ...D });
4433
4474
  break;
4434
4475
  case "yes-or-no":
4435
- M = /* @__PURE__ */ h(Kl, { ...R });
4476
+ x = /* @__PURE__ */ h(Xc, { ...D });
4436
4477
  break;
4437
4478
  case "motions":
4438
- M = /* @__PURE__ */ h(tc, { ...R });
4479
+ x = /* @__PURE__ */ h(nl, { ...D });
4439
4480
  break;
4440
4481
  case "blink":
4441
- M = /* @__PURE__ */ h(nc, { ...R });
4482
+ x = /* @__PURE__ */ h(rl, { ...D });
4442
4483
  break;
4443
4484
  default:
4444
- M = /* @__PURE__ */ h(q, {});
4485
+ x = /* @__PURE__ */ h(Y, {});
4445
4486
  break;
4446
4487
  }
4447
4488
  return /* @__PURE__ */ h(
4448
4489
  pe,
4449
4490
  {
4450
- show: m && x && !s && i === G,
4491
+ show: m && C && !s && i === K,
4451
4492
  appear: !0,
4452
4493
  as: "div",
4453
4494
  leave: "yvlw-transform yvlw-transition yvlw-duration-300",
@@ -4456,9 +4497,9 @@ function vc() {
4456
4497
  enterFrom: "yvlw-translate-y-full yvlw-opacity-0",
4457
4498
  enterTo: "yvlw-translate-y-0 yvlw-opacity-100",
4458
4499
  className: "yvlw-h-full",
4459
- children: M
4500
+ children: x
4460
4501
  },
4461
- `task-${G}`
4502
+ `task-${K}`
4462
4503
  );
4463
4504
  }),
4464
4505
  /* @__PURE__ */ h(
@@ -4480,7 +4521,7 @@ function vc() {
4480
4521
  description: T ? "You can now close or exit the window" : "Your Identity verification has been completed successfully. Thanks for your patience",
4481
4522
  actionText: "Finish",
4482
4523
  loading: _,
4483
- onActionClick: Y,
4524
+ onActionClick: G,
4484
4525
  hideButton: T,
4485
4526
  children: g && /* @__PURE__ */ h("div", { className: "yvlw-mt-3", children: g })
4486
4527
  }
@@ -4491,7 +4532,7 @@ function vc() {
4491
4532
  /* @__PURE__ */ h("div", { className: `${ne.rhs} divider`, children: r && /* @__PURE__ */ h("div", { className: `${ne.profile} divider`, children: [
4492
4533
  /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h("div", { className: ne.avatar, children: [
4493
4534
  r.firstName.charAt(0).toUpperCase(),
4494
- (V = r.lastName) == null ? void 0 : V.charAt(0).toUpperCase()
4535
+ (B = r.lastName) == null ? void 0 : B.charAt(0).toUpperCase()
4495
4536
  ] }) }),
4496
4537
  /* @__PURE__ */ h("div", { children: [
4497
4538
  /* @__PURE__ */ h("h4", { children: [
@@ -4504,7 +4545,7 @@ function vc() {
4504
4545
  ] }) })
4505
4546
  ] }) });
4506
4547
  }
4507
- function mc(e) {
4548
+ function _l(e) {
4508
4549
  const {
4509
4550
  tasks: t,
4510
4551
  namespace: n,
@@ -4514,18 +4555,19 @@ function mc(e) {
4514
4555
  onClose: s = () => {
4515
4556
  },
4516
4557
  onSuccess: a,
4517
- onFailure: l,
4558
+ onFailure: c,
4518
4559
  presentation: u = "modal",
4519
4560
  publicKey: d,
4520
- metadata: c,
4561
+ metadata: l,
4521
4562
  sandboxEnvironment: f,
4522
4563
  sessionId: p,
4523
- sessionToken: _
4524
- } = e, [y, m] = C(e.show), v = () => {
4525
- m(!1), s();
4564
+ sessionToken: _,
4565
+ forceDevUrl: y
4566
+ } = e, [m, v] = F(e.show), g = () => {
4567
+ v(!1), s();
4526
4568
  };
4527
4569
  return /* @__PURE__ */ h(
4528
- el,
4570
+ tc,
4529
4571
  {
4530
4572
  namespace: n,
4531
4573
  publicKey: d,
@@ -4533,36 +4575,37 @@ function mc(e) {
4533
4575
  user: r,
4534
4576
  branding: o,
4535
4577
  isMobileAppWebView: i,
4536
- onRequestClose: v,
4578
+ onRequestClose: g,
4537
4579
  onSuccess: a,
4538
- onFailure: l,
4539
- metadata: c,
4580
+ onFailure: c,
4581
+ metadata: l,
4540
4582
  presentation: u,
4541
4583
  sandboxEnvironment: f,
4542
4584
  sessionId: p,
4543
4585
  sessionToken: _,
4586
+ forceDevUrl: y,
4544
4587
  children: /* @__PURE__ */ h(
4545
- Ca,
4588
+ Fa,
4546
4589
  {
4547
4590
  id: n,
4548
- open: u === "page" ? !0 : y,
4549
- onClose: v,
4591
+ open: u === "page" ? !0 : m,
4592
+ onClose: g,
4550
4593
  transition: !0,
4551
- className: `${Ia.root} ${ht.root} ${ht[u]}`,
4594
+ className: `${Ra.root} ${ht.root} ${ht[u]}`,
4552
4595
  style: {
4553
- "--branding-color": (o == null ? void 0 : o.color) ?? Xa
4596
+ "--branding-color": (o == null ? void 0 : o.color) ?? Za
4554
4597
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
4555
4598
  },
4556
4599
  children: [
4557
- u === "modal" && /* @__PURE__ */ h("div", { onClick: v, role: "button", className: ht.close, children: /* @__PURE__ */ h(za, { className: "yvlw-text-white" }) }),
4558
- /* @__PURE__ */ h(Ho, { className: `${ht.container}`, children: /* @__PURE__ */ h(vc, {}) })
4600
+ u === "modal" && /* @__PURE__ */ h("div", { onClick: g, role: "button", className: ht.close, children: /* @__PURE__ */ h(Ua, { className: "yvlw-text-white" }) }),
4601
+ /* @__PURE__ */ h(Ho, { className: `${ht.container}`, children: /* @__PURE__ */ h(ml, {}) })
4559
4602
  ]
4560
4603
  }
4561
4604
  )
4562
4605
  }
4563
4606
  );
4564
4607
  }
4565
- class gc {
4608
+ class wl {
4566
4609
  constructor(t) {
4567
4610
  this.tasks = [], this.container = null, this.namespace = "liveness-web-sdk", this.loadedScripts = [];
4568
4611
  const { presentation: n = "modal" } = t;
@@ -4612,13 +4655,14 @@ class gc {
4612
4655
  // }
4613
4656
  // }
4614
4657
  async start(t) {
4615
- t && (this.tasks = t), this.validateOptions(), this.container = document.createElement("div"), document.body.appendChild(this.container), ze(
4658
+ t && (this.tasks = t), this.validateOptions(), this.container = document.createElement("div"), document.body.appendChild(this.container), Ue(
4616
4659
  /* @__PURE__ */ h(
4617
- mc,
4660
+ _l,
4618
4661
  {
4619
4662
  namespace: this.namespace,
4620
4663
  publicKey: this.props.publicKey,
4621
4664
  sandboxEnvironment: this.props.sandboxEnvironment,
4665
+ forceDevUrl: this.props.forceDevUrl,
4622
4666
  presentation: this.props.presentation,
4623
4667
  show: !0,
4624
4668
  tasks: this.tasks,
@@ -4655,5 +4699,5 @@ class gc {
4655
4699
  // }
4656
4700
  }
4657
4701
  export {
4658
- gc as default
4702
+ wl as default
4659
4703
  };