youverify-liveness-web 0.1.5 → 0.1.7
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 +677 -677
- package/dist/index.umd.cjs +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(){"use strict";(function(e,r){try{if(typeof document<"u"){const t=document.createElement("style");for(const o in r.attributes)t.setAttribute(o,r.attributes[o]);t.appendChild(document.createTextNode(e)),document.head.prepend(t)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})('@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: }.static{position:static}.absolute{position:absolute}.m-0{margin:0}.mx-auto{margin-left:auto;margin-right:auto}.mb-12{margin-bottom:3rem}.mt-12{margin-top:3rem}.mt-3{margin-top:.75rem}.flex{display:flex}.hidden{display:none}.h-10{height:2.5rem}.h-20{height:5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-full{height:100%}.w-10{width:2.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-7{width:1.75rem}.w-full{width:100%}.flex-1{flex:1 1 0%}.-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))}.-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))}.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))}.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))}.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))}.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))}.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))}.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))}.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))}.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))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.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)))}.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)))}.p-0{padding:0}.text-xs{font-size:.75rem;line-height:1rem}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.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}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.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\\:block:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){display:block}.dark\\:hidden:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){display:none}._root_1jvth_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_1jvth_1[data-closed]{opacity:0}._root_1jvth_1._modal_1jvth_10{background-color:#0000004d}@media (min-width: 768px){._root_1jvth_1._modal_1jvth_10{padding:1rem}._root_1jvth_1._modal_1jvth_10 ._container_1jvth_13{border-radius:.75rem}._root_1jvth_1._page_1jvth_16{padding:0}}._root_1jvth_1 ._close_1jvth_19{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_1jvth_1 ._close_1jvth_19 svg{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}._root_1jvth_1 ._close_1jvth_19 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_1jvth_1 ._container_1jvth_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_1jvth_1 ._container_1jvth_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_dndkf_1{height:100%}._root_dndkf_1 ._container_dndkf_4{display:flex;height:100%}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7{display:none;width:20%;flex-direction:column;justify-content:space-between}@media (min-width: 1280px){._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7{display:flex}}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7{padding-top:.75rem;padding-bottom:.75rem}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_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_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11{padding-left:1.5rem;padding-right:1.5rem}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol{position:relative;margin:0;list-style-type:none;padding:0}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li{counter-increment:item;margin-bottom:24px;position:relative;font-size:.875rem;line-height:1.25rem;display:flex;align-items:center}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_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_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_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_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_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_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_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_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li:before{content:counter(item);flex-shrink:0}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li._active_dndkf_32{font-weight:500}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li._active_dndkf_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_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li._active_dndkf_32:before{background-color:var(--branding-color);border-style:none;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li._completed_dndkf_39{font-weight:500;text-decoration-line:line-through}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li._completed_dndkf_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_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li._completed_dndkf_39:before{background-color:var(--branding-color);border-style:none;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li:after{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_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_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li:after{top:28px;bottom:-24px;left:14px;content:"";position:absolute;width:1px}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 ._info_dndkf_11 ol li:last-child:after{content:none}._root_dndkf_1 ._container_dndkf_4 ._lhs_dndkf_7 footer{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1.5rem}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62{display:none;width:20%}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_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_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62{padding-top:.75rem;padding-bottom:.75rem}@media (min-width: 1280px){._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62{display:block}}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62 ._profile_dndkf_65{display:flex;align-items:center;gap:.5rem;padding:1rem 1.5rem}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62 ._profile_dndkf_65 ._avatar_dndkf_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_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62 ._profile_dndkf_65 ._avatar_dndkf_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_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62 ._profile_dndkf_65 ._avatar_dndkf_68{display:flex;align-items:center;justify-content:center;font-size:1.125rem;line-height:1.75rem;font-weight:500}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62 ._profile_dndkf_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_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62 ._profile_dndkf_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_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_62 ._profile_dndkf_65 p{margin-top:0;margin-bottom:0;font-size:.75rem;line-height:1rem}._root_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_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_dndkf_1 ._container_dndkf_4 ._rhs_dndkf_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_dndkf_1 ._container_dndkf_4 ._main_dndkf_81{flex:1 1 0%}@media (min-width: 768px){._root_dndkf_1 ._container_dndkf_4 ._main_dndkf_81{padding-top:1rem;padding-bottom:1rem}}._root_dndkf_1 ._container_dndkf_4 ._main_dndkf_81 ._content_dndkf_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_dndkf_1 ._container_dndkf_4 ._main_dndkf_81 ._content_dndkf_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_dndkf_1 ._container_dndkf_4 ._main_dndkf_81 ._content_dndkf_84{max-width:500px}._root_dndkf_1 ._container_dndkf_4 ._main_dndkf_81 ._completed_dndkf_39{display:flex;height:100%;width:100%;align-items:center;justify-content:center}._root_135td_1 ._container_135td_1 ._brand_135td_1{display:flex;align-items:center;gap:7px;font-weight:600}._root_1w5nq_1{position:relative;height:100%;width:100%}._root_1w5nq_1 video{height:100%;width:100%;-o-object-fit:cover;object-fit:cover;transform:scaleX(-1)}._container_1ap2u_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_1ap2u_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_1ap2u_1{z-index:1}._container_1ap2u_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_1ap2u_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_1ap2u_1:before{transition:opacity .3s linear}._container_1ap2u_1._focused_1ap2u_12:before{opacity:1}._container_1ap2u_1 ._progress_1ap2u_15{position:relative;height:280px;width:280px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:1px solid gray}._container_1ap2u_1 ._progress_1ap2u_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_1ap2u_1 ._progress_1ap2u_15 div._completed_1ap2u_36{width:20px;background-color:#07da63}._container_1ap2u_1 ._marker_1ap2u_40{position:relative;width:280px;height:280px}._container_1ap2u_1 ._marker_1ap2u_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_1ap2u_1 ._marker_1ap2u_40>div:first-child{top:-.25rem;left:-.25rem;border-top-left-radius:50%;border-bottom-width:0px;border-right-width:0px}._container_1ap2u_1 ._marker_1ap2u_40>div:nth-child(2){top:-.25rem;right:-.25rem;border-top-right-radius:50%;border-bottom-width:0px;border-left-width:0px}._container_1ap2u_1 ._marker_1ap2u_40>div:nth-child(3){bottom:-.25rem;left:-.25rem;border-bottom-left-radius:50%;border-top-width:0px;border-right-width:0px}._container_1ap2u_1 ._marker_1ap2u_40>div:last-child{bottom:-.25rem;right:-.25rem;border-bottom-right-radius:50%;border-top-width:0px;border-left-width:0px}._root_182pz_1{height:100%;text-align:center}._root_182pz_1 ._container_182pz_4{position:relative;height:100%}._root_182pz_1 ._container_182pz_4 ._progress_182pz_7{background-color:var(--branding-color);position:absolute;top:0;left:0;height:4px;border-radius:.5rem;z-index:2}._root_182pz_1 ._container_182pz_4 ._intro_182pz_12{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem 1rem}._root_182pz_1 ._container_182pz_4 ._content_182pz_15{height:75%;width:100%}._root_182pz_1 ._container_182pz_4 ._branding_182pz_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_182pz_1 ._container_182pz_4 ._branding_182pz_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_182pz_1 ._container_182pz_4 ._instructionsContainer_182pz_22{border-top-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}._root_182pz_1 ._container_182pz_4 ._instructionsContainer_182pz_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_182pz_1 ._container_182pz_4 ._instructions_182pz_22{margin-left:auto;margin-right:auto;padding:1rem 1rem 1.5rem;text-align:center;max-width:400px}._root_182pz_1 ._container_182pz_4 h2{margin-top:.5rem;margin-bottom:.5rem;font-size:1.5rem;line-height:2rem;font-weight:900}._root_182pz_1 ._container_182pz_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_182pz_1 ._container_182pz_4 p{font-size:.875rem;line-height:1.25rem;font-weight:300;max-width:400px}._root_182pz_1 ._container_182pz_4 button{color:var(--branding-color);border-color:var(--branding-color);border-radius:9999px;border-width:2px;padding:.5rem 2rem;font-weight:500}._root_182pz_1 ._container_182pz_4 button:hover{background-color:var(--branding-color);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_39czk_1{text-align:center;display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem .75rem}._root_39czk_1 h2{margin-top:.5rem;margin-bottom:.5rem;font-size:1.5rem;line-height:2rem;font-weight:900}._root_39czk_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_39czk_1 p{font-size:.875rem;line-height:1.25rem;font-weight:300;max-width:400px}._root_39czk_1 button{color:var(--branding-color);border-color:var(--branding-color);border-radius:9999px;border-width:2px;padding:.5rem 2rem;font-weight:500}._root_39czk_1 button ._spinner_39czk_18{height:100%;width:100%;border-radius:50%;border-width:2px;height:1rem;width:1rem;border-color:var(--branding-color);border-left-color:transparent;animation:_spin_39czk_18 .7s linear infinite}@keyframes _spin_39czk_18{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._root_39czk_1 button:hover{background-color:var(--branding-color);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_39czk_1 button:hover ._spinner_39czk_18{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity));border-left-color:transparent}._root_gcbg2_1{position:absolute;top:0;right:0;bottom:0;left:0}._root_gcbg2_1 ._sticker_gcbg2_4{position:absolute}._root_gcbg2_1 ._sticker_gcbg2_4._no_gcbg2_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_gcbg2_1 ._sticker_gcbg2_4._yes_gcbg2_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)}',{})})();
|
|
2
|
-
var
|
|
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-3{height:.75rem}.yvlw-h-4{height:1rem}.yvlw-h-5{height:1.25rem}.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-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-p-0{padding:0}.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}._root_1hpzn_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_1hpzn_1[data-closed]{opacity:0}._root_1hpzn_1._modal_1hpzn_10{background-color:#0000004d}@media (min-width: 768px){._root_1hpzn_1._modal_1hpzn_10{padding:1rem}._root_1hpzn_1._modal_1hpzn_10 ._container_1hpzn_13{border-radius:.75rem}._root_1hpzn_1._page_1hpzn_16{padding:0}}._root_1hpzn_1 ._close_1hpzn_19{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_1hpzn_1 ._close_1hpzn_19 svg{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}._root_1hpzn_1 ._close_1hpzn_19 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_1hpzn_1 ._container_1hpzn_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_1hpzn_1 ._container_1hpzn_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_135td_1 ._container_135td_1 ._brand_135td_1{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_1psx5_1{height:100%;text-align:center}._root_1psx5_1 ._container_1psx5_4{position:relative;height:100%}._root_1psx5_1 ._container_1psx5_4 ._progress_1psx5_7{background-color:var(--branding-color);position:absolute;top:0;left:0;height:4px;border-radius:.5rem;z-index:2}._root_1psx5_1 ._container_1psx5_4 ._intro_1psx5_12{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem 1rem}._root_1psx5_1 ._container_1psx5_4 ._content_1psx5_15{height:75%;width:100%}._root_1psx5_1 ._container_1psx5_4 ._branding_1psx5_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_1psx5_1 ._container_1psx5_4 ._branding_1psx5_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_1psx5_1 ._container_1psx5_4 ._instructionsContainer_1psx5_22{border-top-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}._root_1psx5_1 ._container_1psx5_4 ._instructionsContainer_1psx5_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_1psx5_1 ._container_1psx5_4 ._instructions_1psx5_22{margin-left:auto;margin-right:auto;padding:1rem 1rem 1.5rem;text-align:center;max-width:400px}._root_1psx5_1 ._container_1psx5_4 h2{margin-top:.5rem;margin-bottom:.5rem;font-size:1.5rem;line-height:2rem;font-weight:900}._root_1psx5_1 ._container_1psx5_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_1psx5_1 ._container_1psx5_4 p{font-size:.875rem;line-height:1.25rem;font-weight:300;max-width:400px}._root_1psx5_1 ._container_1psx5_4 button{color:var(--branding-color);border-color:var(--branding-color);border-radius:9999px;border-width:2px;padding:.5rem 2rem;font-weight:500}._root_1psx5_1 ._container_1psx5_4 button:hover{background-color:var(--branding-color);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_1j21c_1{text-align:center;display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem .75rem}._root_1j21c_1 h2{margin-top:.5rem;margin-bottom:.5rem;font-size:1.5rem;line-height:2rem;font-weight:900}._root_1j21c_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_1j21c_1 p{font-size:.875rem;line-height:1.25rem;font-weight:300;max-width:400px}._root_1j21c_1 button{color:var(--branding-color);border-color:var(--branding-color);border-radius:9999px;border-width:2px;padding:.5rem 2rem;font-weight:500}._root_1j21c_1 button ._spinner_1j21c_18{height:100%;width:100%;border-radius:50%;border-width:2px;height:1rem;width:1rem;border-color:var(--branding-color);border-left-color:transparent;animation:_spin_1j21c_18 .7s linear infinite}@keyframes _spin_1j21c_18{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._root_1j21c_1 button:hover{background-color:var(--branding-color);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_1j21c_1 button:hover ._spinner_1j21c_18{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity));border-left-color:transparent}._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)}')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
+
var qe, T, tr, he, En, nr, Dt, Jt, Ht, At, rr, Be = {}, or = [], go = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, ft = Array.isArray;
|
|
3
3
|
function ne(e, t) {
|
|
4
4
|
for (var n in t) e[n] = t[n];
|
|
5
5
|
return e;
|
|
@@ -11,7 +11,7 @@ function ir(e) {
|
|
|
11
11
|
function X(e, t, n) {
|
|
12
12
|
var r, o, i, a = {};
|
|
13
13
|
for (i in t) i == "key" ? r = t[i] : i == "ref" ? o = t[i] : a[i] = t[i];
|
|
14
|
-
if (arguments.length > 2 && (a.children = arguments.length > 3 ?
|
|
14
|
+
if (arguments.length > 2 && (a.children = arguments.length > 3 ? qe.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (i in e.defaultProps) a[i] === void 0 && (a[i] = e.defaultProps[i]);
|
|
15
15
|
return Ve(e, a, r, o, null);
|
|
16
16
|
}
|
|
17
17
|
function Ve(e, t, n, r, o) {
|
|
@@ -27,10 +27,10 @@ function H(e) {
|
|
|
27
27
|
function Z(e, t) {
|
|
28
28
|
this.props = e, this.context = t;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
if (t == null) return e.__ ?
|
|
30
|
+
function we(e, t) {
|
|
31
|
+
if (t == null) return e.__ ? we(e.__, e.__i + 1) : null;
|
|
32
32
|
for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
|
|
33
|
-
return typeof e.type == "function" ?
|
|
33
|
+
return typeof e.type == "function" ? we(e) : null;
|
|
34
34
|
}
|
|
35
35
|
function ar(e) {
|
|
36
36
|
var t, n;
|
|
@@ -47,18 +47,18 @@ function Ot(e) {
|
|
|
47
47
|
}
|
|
48
48
|
function it() {
|
|
49
49
|
var e, t, n, r, o, i, a, s;
|
|
50
|
-
for (he.sort(Dt); e = he.shift(); ) e.__d && (t = he.length, r = void 0, i = (o = (n = e).__v).__e, a = [], s = [], n.__P && ((r = ne({}, o)).__v = o.__v + 1, T.vnode && T.vnode(r), tn(n.__P, r, o, n.__n, n.__P.namespaceURI, 32 & o.__u ? [i] : null, a, i ??
|
|
50
|
+
for (he.sort(Dt); e = he.shift(); ) e.__d && (t = he.length, r = void 0, i = (o = (n = e).__v).__e, a = [], s = [], n.__P && ((r = ne({}, o)).__v = o.__v + 1, T.vnode && T.vnode(r), tn(n.__P, r, o, n.__n, n.__P.namespaceURI, 32 & o.__u ? [i] : null, a, i ?? we(o), !!(32 & o.__u), s), r.__v = o.__v, r.__.__k[r.__i] = r, cr(a, r, s), r.__e != i && ar(r)), he.length > t && he.sort(Dt));
|
|
51
51
|
it.__r = 0;
|
|
52
52
|
}
|
|
53
53
|
function sr(e, t, n, r, o, i, a, s, l, u, d) {
|
|
54
|
-
var c, p, f,
|
|
55
|
-
for (n.__d = l,
|
|
56
|
-
n.__d = l, n.__e =
|
|
54
|
+
var c, p, f, _, y, m = r && r.__k || or, h = t.length;
|
|
55
|
+
for (n.__d = l, wo(n, t, m), l = n.__d, c = 0; c < h; c++) (f = n.__k[c]) != null && typeof f != "boolean" && typeof f != "function" && (p = f.__i === -1 ? Be : m[f.__i] || Be, f.__i = c, tn(e, f, p, o, i, a, s, l, u, d), _ = f.__e, f.ref && p.ref != f.ref && (p.ref && nn(p.ref, null, f), d.push(f.ref, f.__c || _, f)), y == null && _ != null && (y = _), 65536 & f.__u || p.__k === f.__k ? l = lr(f, l, e) : typeof f.type == "function" && f.__d !== void 0 ? l = f.__d : _ && (l = _.nextSibling), f.__d = void 0, f.__u &= -196609);
|
|
56
|
+
n.__d = l, n.__e = y;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function wo(e, t, n) {
|
|
59
59
|
var r, o, i, a, s, l = t.length, u = n.length, d = u, c = 0;
|
|
60
|
-
for (e.__k = [], r = 0; r < l; r++) a = 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 ? Ve(null, o, null, null, null) : ft(o) ? Ve(H, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? Ve(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o) != null ? (o.__ = e, o.__b = e.__b + 1, s =
|
|
61
|
-
if (d) for (r = 0; r < u; r++) (i = n[r]) != null && !(131072 & i.__u) && (i.__e == e.__d && (e.__d =
|
|
60
|
+
for (e.__k = [], r = 0; r < l; r++) a = 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 ? Ve(null, o, null, null, null) : ft(o) ? Ve(H, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? Ve(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o) != null ? (o.__ = e, o.__b = e.__b + 1, s = bo(o, n, a, d), o.__i = s, i = null, s !== -1 && (d--, (i = n[s]) && (i.__u |= 131072)), i == null || i.__v === null ? (s == -1 && c--, typeof o.type != "function" && (o.__u |= 65536)) : s !== a && (s == a - 1 ? c = s - a : s == a + 1 ? c++ : s > a ? d > l - a ? c += s - a : c-- : s < a && c++, s !== r + c && (o.__u |= 65536))) : (i = n[a]) && i.key == null && i.__e && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = we(i)), It(i, i, !1), n[a] = null, d--);
|
|
61
|
+
if (d) for (r = 0; r < u; r++) (i = n[r]) != null && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = we(i)), It(i, i));
|
|
62
62
|
}
|
|
63
63
|
function lr(e, t, n) {
|
|
64
64
|
var r, o;
|
|
@@ -66,7 +66,7 @@ function lr(e, t, n) {
|
|
|
66
66
|
for (r = e.__k, o = 0; r && o < r.length; o++) r[o] && (r[o].__ = e, t = lr(r[o], t, n));
|
|
67
67
|
return t;
|
|
68
68
|
}
|
|
69
|
-
e.__e != t && (t && e.type && !n.contains(t) && (t =
|
|
69
|
+
e.__e != t && (t && e.type && !n.contains(t) && (t = we(e)), n.insertBefore(e.__e, t || null), t = e.__e);
|
|
70
70
|
do
|
|
71
71
|
t = t && t.nextSibling;
|
|
72
72
|
while (t != null && t.nodeType === 8);
|
|
@@ -77,7 +77,7 @@ function re(e, t) {
|
|
|
77
77
|
re(n, t);
|
|
78
78
|
}) : t.push(e)), t;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function bo(e, t, n, r) {
|
|
81
81
|
var o = e.key, i = e.type, a = n - 1, s = n + 1, l = t[n];
|
|
82
82
|
if (l === null || l && o == l.key && i === l.type && !(131072 & l.__u)) return n;
|
|
83
83
|
if (r > (l != null && !(131072 & l.__u) ? 1 : 0)) for (; a >= 0 || s < t.length; ) {
|
|
@@ -93,7 +93,7 @@ function wo(e, t, n, r) {
|
|
|
93
93
|
return -1;
|
|
94
94
|
}
|
|
95
95
|
function Cn(e, t, n) {
|
|
96
|
-
t[0] === "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" ||
|
|
96
|
+
t[0] === "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || go.test(t) ? n : n + "px";
|
|
97
97
|
}
|
|
98
98
|
function tt(e, t, n, r, o) {
|
|
99
99
|
var i;
|
|
@@ -124,30 +124,30 @@ function Tn(e) {
|
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
126
|
function tn(e, t, n, r, o, i, a, s, l, u) {
|
|
127
|
-
var d, c, p, f,
|
|
127
|
+
var d, c, p, f, _, y, m, h, g, C, b, $, F, A, L, S, M = t.type;
|
|
128
128
|
if (t.constructor !== void 0) return null;
|
|
129
129
|
128 & n.__u && (l = !!(32 & n.__u), i = [s = t.__e = n.__e]), (d = T.__b) && d(t);
|
|
130
130
|
e: if (typeof M == "function") try {
|
|
131
|
-
if (h = t.props,
|
|
131
|
+
if (h = t.props, g = "prototype" in M && M.prototype.render, C = (d = M.contextType) && r[d.__c], b = d ? C ? C.props.value : d.__ : r, n.__c ? m = (c = t.__c = n.__c).__ = c.__E : (g ? t.__c = c = new M(h, b) : (t.__c = c = new Z(h, b), c.constructor = M, c.render = Eo), C && C.sub(c), c.props = h, c.state || (c.state = {}), c.context = b, c.__n = r, p = c.__d = !0, c.__h = [], c._sb = []), g && c.__s == null && (c.__s = c.state), g && M.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = ne({}, c.__s)), ne(c.__s, M.getDerivedStateFromProps(h, c.__s))), f = c.props, _ = c.state, c.__v = t, p) g && M.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), g && c.componentDidMount != null && c.__h.push(c.componentDidMount);
|
|
132
132
|
else {
|
|
133
|
-
if (
|
|
133
|
+
if (g && M.getDerivedStateFromProps == null && h !== f && c.componentWillReceiveProps != null && c.componentWillReceiveProps(h, b), !c.__e && (c.shouldComponentUpdate != null && c.shouldComponentUpdate(h, c.__s, b) === !1 || t.__v === n.__v)) {
|
|
134
134
|
for (t.__v !== n.__v && (c.props = h, c.state = c.__s, c.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function(U) {
|
|
135
135
|
U && (U.__ = t);
|
|
136
136
|
}), $ = 0; $ < c._sb.length; $++) c.__h.push(c._sb[$]);
|
|
137
137
|
c._sb = [], c.__h.length && a.push(c);
|
|
138
138
|
break e;
|
|
139
139
|
}
|
|
140
|
-
c.componentWillUpdate != null && c.componentWillUpdate(h, c.__s,
|
|
141
|
-
c.componentDidUpdate(f,
|
|
140
|
+
c.componentWillUpdate != null && c.componentWillUpdate(h, c.__s, b), g && c.componentDidUpdate != null && c.__h.push(function() {
|
|
141
|
+
c.componentDidUpdate(f, _, y);
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
|
-
if (c.context =
|
|
144
|
+
if (c.context = b, c.props = h, c.__P = e, c.__e = !1, F = T.__r, A = 0, g) {
|
|
145
145
|
for (c.state = c.__s, c.__d = !1, F && F(t), d = c.render(c.props, c.state, c.context), L = 0; L < c._sb.length; L++) c.__h.push(c._sb[L]);
|
|
146
146
|
c._sb = [];
|
|
147
147
|
} else do
|
|
148
148
|
c.__d = !1, F && F(t), d = c.render(c.props, c.state, c.context), c.state = c.__s;
|
|
149
149
|
while (c.__d && ++A < 25);
|
|
150
|
-
c.state = c.__s, c.getChildContext != null && (r = ne(ne({}, r), c.getChildContext())),
|
|
150
|
+
c.state = c.__s, c.getChildContext != null && (r = ne(ne({}, r), c.getChildContext())), g && !p && c.getSnapshotBeforeUpdate != null && (y = c.getSnapshotBeforeUpdate(f, _)), sr(e, ft(S = d != null && d.type === H && d.key == null ? d.props.children : d) ? S : [S], t, n, r, o, i, a, s, l, u), c.base = t.__e, t.__u &= -161, c.__h.length && a.push(c), m && (c.__E = c.__ = null);
|
|
151
151
|
} catch (U) {
|
|
152
152
|
if (t.__v = null, l || i != null) {
|
|
153
153
|
for (t.__u |= l ? 160 : 32; s && s.nodeType === 8 && s.nextSibling; ) s = s.nextSibling;
|
|
@@ -172,31 +172,31 @@ function cr(e, t, n) {
|
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
174
|
function $o(e, t, n, r, o, i, a, s, l) {
|
|
175
|
-
var u, d, c, p, f,
|
|
176
|
-
if (
|
|
177
|
-
for (u = 0; u < i.length; u++) if ((f = i[u]) && "setAttribute" in f == !!
|
|
175
|
+
var u, d, c, p, f, _, y, m = n.props, h = t.props, g = t.type;
|
|
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
|
+
for (u = 0; u < i.length; u++) if ((f = i[u]) && "setAttribute" in f == !!g && (g ? f.localName === g : f.nodeType === 3)) {
|
|
178
178
|
e = f, i[u] = null;
|
|
179
179
|
break;
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
if (e == null) {
|
|
183
|
-
if (
|
|
184
|
-
e = document.createElementNS(o,
|
|
183
|
+
if (g === null) return document.createTextNode(h);
|
|
184
|
+
e = document.createElementNS(o, g, h.is && h), i = null, s = !1;
|
|
185
185
|
}
|
|
186
|
-
if (
|
|
186
|
+
if (g === null) m === h || s && e.data === h || (e.data = h);
|
|
187
187
|
else {
|
|
188
|
-
if (i = i &&
|
|
189
|
-
for (u in
|
|
188
|
+
if (i = i && qe.call(e.childNodes), m = n.props || Be, !s && i != null) for (m = {}, u = 0; u < e.attributes.length; u++) m[(f = e.attributes[u]).name] = f.value;
|
|
189
|
+
for (u in m) if (f = m[u], u != "children") {
|
|
190
190
|
if (u == "dangerouslySetInnerHTML") c = f;
|
|
191
191
|
else if (u !== "key" && !(u in h)) {
|
|
192
192
|
if (u == "value" && "defaultValue" in h || u == "checked" && "defaultChecked" in h) continue;
|
|
193
193
|
tt(e, u, null, f, o);
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
for (u in h) f = h[u], u == "children" ? p = f : u == "dangerouslySetInnerHTML" ? d = f : u == "value" ?
|
|
196
|
+
for (u in h) f = h[u], u == "children" ? p = f : u == "dangerouslySetInnerHTML" ? d = f : u == "value" ? _ = f : u == "checked" ? y = f : u === "key" || s && typeof f != "function" || m[u] === f || tt(e, u, f, m[u], o);
|
|
197
197
|
if (d) s || c && (d.__html === c.__html || d.__html === e.innerHTML) || (e.innerHTML = d.__html), t.__k = [];
|
|
198
|
-
else if (c && (e.innerHTML = ""), sr(e, ft(p) ? p : [p], t, n, r,
|
|
199
|
-
s || (u = "value",
|
|
198
|
+
else if (c && (e.innerHTML = ""), sr(e, ft(p) ? p : [p], t, n, r, g === "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, a, i ? i[0] : n.__k && we(n, 0), s, l), i != null) for (u = i.length; u--; ) i[u] != null && ir(i[u]);
|
|
199
|
+
s || (u = "value", _ !== void 0 && (_ !== e[u] || g === "progress" && !_ || g === "option" && _ !== m[u]) && tt(e, u, _, m[u], o), u = "checked", y !== void 0 && y !== e[u] && tt(e, u, y, m[u], o));
|
|
200
200
|
}
|
|
201
201
|
return e;
|
|
202
202
|
}
|
|
@@ -228,7 +228,7 @@ function Eo(e, t, n) {
|
|
|
228
228
|
}
|
|
229
229
|
function Pe(e, t, n) {
|
|
230
230
|
var r, o, i, a;
|
|
231
|
-
T.__ && T.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], a = [], tn(t, e = (!r && n || t).__k = X(H, null, [e]), o || Be, Be, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ?
|
|
231
|
+
T.__ && T.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], a = [], tn(t, e = (!r && n || t).__k = X(H, null, [e]), o || Be, Be, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? qe.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, a), cr(i, e, a);
|
|
232
232
|
}
|
|
233
233
|
function ur(e, t) {
|
|
234
234
|
Pe(e, t, ur);
|
|
@@ -236,9 +236,9 @@ function ur(e, t) {
|
|
|
236
236
|
function Co(e, t, n) {
|
|
237
237
|
var r, o, i, a, s = ne({}, e.props);
|
|
238
238
|
for (i in e.type && e.type.defaultProps && (a = e.type.defaultProps), t) i == "key" ? r = t[i] : i == "ref" ? o = t[i] : s[i] = t[i] === void 0 && a !== void 0 ? a[i] : t[i];
|
|
239
|
-
return arguments.length > 2 && (s.children = arguments.length > 3 ?
|
|
239
|
+
return arguments.length > 2 && (s.children = arguments.length > 3 ? qe.call(arguments, 2) : n), Ve(e.type, s, r || e.key, o || e.ref, null);
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function q(e, t) {
|
|
242
242
|
var n = { __c: t = "__cC" + rr++, __: e, Consumer: function(r, o) {
|
|
243
243
|
return r.children(o);
|
|
244
244
|
}, Provider: function(r) {
|
|
@@ -261,7 +261,7 @@ function Y(e, t) {
|
|
|
261
261
|
} };
|
|
262
262
|
return n.Provider.__ = n.Consumer.contextType = n;
|
|
263
263
|
}
|
|
264
|
-
|
|
264
|
+
qe = or.slice, T = { __e: function(e, t, n, r) {
|
|
265
265
|
for (var o, i, a; t = t.__; ) if ((o = t.__c) && !o.__) try {
|
|
266
266
|
if ((i = o.constructor) && i.getDerivedStateFromError != null && (o.setState(i.getDerivedStateFromError(e)), a = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, r || {}), a = o.__d), a) return o.__E = o;
|
|
267
267
|
} catch (s) {
|
|
@@ -277,7 +277,7 @@ Ye = or.slice, T = { __e: function(e, t, n, r) {
|
|
|
277
277
|
return e.__v.__b - t.__v.__b;
|
|
278
278
|
}, it.__r = 0, Jt = 0, Ht = Tn(!1), At = Tn(!0), rr = 0;
|
|
279
279
|
var To = 0;
|
|
280
|
-
function
|
|
280
|
+
function v(e, t, n, r, o, i) {
|
|
281
281
|
t || (t = {});
|
|
282
282
|
var a, s, l = t;
|
|
283
283
|
if ("ref" in l) for (s in l = {}, t) s == "ref" ? a = t[s] : l[s] = t[s];
|
|
@@ -285,16 +285,16 @@ function _(e, t, n, r, o, i) {
|
|
|
285
285
|
if (typeof e == "function" && (a = e.defaultProps)) for (s in a) l[s] === void 0 && (l[s] = a[s]);
|
|
286
286
|
return T.vnode && T.vnode(u), u;
|
|
287
287
|
}
|
|
288
|
-
var ae, P, kt, kn, Le = 0, dr = [], O = T, Fn = O.__b,
|
|
288
|
+
var ae, P, kt, kn, Le = 0, dr = [], O = T, Fn = O.__b, xn = O.__r, Sn = O.diffed, Pn = O.__c, Ln = O.unmount, Mn = O.__;
|
|
289
289
|
function $e(e, t) {
|
|
290
290
|
O.__h && O.__h(P, e, Le || t), Le = 0;
|
|
291
291
|
var n = P.__H || (P.__H = { __: [], __h: [] });
|
|
292
292
|
return e >= n.__.length && n.__.push({}), n.__[e];
|
|
293
293
|
}
|
|
294
294
|
function k(e) {
|
|
295
|
-
return Le = 1,
|
|
295
|
+
return Le = 1, Ye(fr, e);
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function Ye(e, t, n) {
|
|
298
298
|
var r = $e(ae++, 2);
|
|
299
299
|
if (r.t = e, !r.__c && (r.__ = [n ? n(t) : fr(void 0, t), function(s) {
|
|
300
300
|
var l = r.__N ? r.__N[0] : r.__[0], u = r.t(l, s);
|
|
@@ -336,8 +336,8 @@ function Ee(e, t) {
|
|
|
336
336
|
var n = $e(ae++, 4);
|
|
337
337
|
!O.__s && an(n.__H, t) && (n.__ = e, n.i = t, P.__h.push(n));
|
|
338
338
|
}
|
|
339
|
-
function
|
|
340
|
-
return Le = 5,
|
|
339
|
+
function w(e) {
|
|
340
|
+
return Le = 5, x(function() {
|
|
341
341
|
return { current: e };
|
|
342
342
|
}, []);
|
|
343
343
|
}
|
|
@@ -350,12 +350,12 @@ function rn(e, t, n) {
|
|
|
350
350
|
}) : void 0;
|
|
351
351
|
}, n == null ? n : n.concat(e));
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function x(e, t) {
|
|
354
354
|
var n = $e(ae++, 7);
|
|
355
355
|
return an(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
|
|
356
356
|
}
|
|
357
357
|
function I(e, t) {
|
|
358
|
-
return Le = 8,
|
|
358
|
+
return Le = 8, x(function() {
|
|
359
359
|
return e;
|
|
360
360
|
}, t);
|
|
361
361
|
}
|
|
@@ -395,15 +395,15 @@ O.__b = function(e) {
|
|
|
395
395
|
}, O.__ = function(e, t) {
|
|
396
396
|
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Mn && Mn(e, t);
|
|
397
397
|
}, O.__r = function(e) {
|
|
398
|
-
|
|
398
|
+
xn && xn(e), ae = 0;
|
|
399
399
|
var t = (P = e.__c).__H;
|
|
400
400
|
t && (kt === P ? (t.__h = [], P.__h = [], t.__.forEach(function(n) {
|
|
401
401
|
n.__N && (n.__ = n.__N), n.i = n.__N = void 0;
|
|
402
402
|
})) : (t.__h.forEach(ot), t.__h.forEach(Rt), t.__h = [], ae = 0)), kt = P;
|
|
403
403
|
}, O.diffed = function(e) {
|
|
404
|
-
|
|
404
|
+
Sn && Sn(e);
|
|
405
405
|
var t = e.__c;
|
|
406
|
-
t && t.__H && (t.__H.__h.length && (dr.push(t) !== 1 && kn === O.requestAnimationFrame || ((kn = O.requestAnimationFrame) ||
|
|
406
|
+
t && t.__H && (t.__H.__h.length && (dr.push(t) !== 1 && kn === O.requestAnimationFrame || ((kn = O.requestAnimationFrame) || xo)(Fo)), t.__H.__.forEach(function(n) {
|
|
407
407
|
n.i && (n.__H = n.i), n.i = void 0;
|
|
408
408
|
})), kt = P = null;
|
|
409
409
|
}, O.__c = function(e, t) {
|
|
@@ -430,7 +430,7 @@ O.__b = function(e) {
|
|
|
430
430
|
}), n.__H = void 0, t && O.__e(t, n.__v));
|
|
431
431
|
};
|
|
432
432
|
var Nn = typeof requestAnimationFrame == "function";
|
|
433
|
-
function
|
|
433
|
+
function xo(e) {
|
|
434
434
|
var t, n = function() {
|
|
435
435
|
clearTimeout(r), Nn && cancelAnimationFrame(t), setTimeout(e);
|
|
436
436
|
}, r = setTimeout(n, 100);
|
|
@@ -464,7 +464,7 @@ function Vt(e, t) {
|
|
|
464
464
|
function at(e, t) {
|
|
465
465
|
this.props = e, this.context = t;
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function vr(e, t) {
|
|
468
468
|
function n(o) {
|
|
469
469
|
var i = this.props.ref, a = i == o.ref;
|
|
470
470
|
return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a : Vt(this.props, o);
|
|
@@ -481,13 +481,13 @@ var Dn = T.__b;
|
|
|
481
481
|
T.__b = function(e) {
|
|
482
482
|
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Dn && Dn(e);
|
|
483
483
|
};
|
|
484
|
-
var
|
|
484
|
+
var So = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
485
485
|
function sn(e) {
|
|
486
486
|
function t(n) {
|
|
487
487
|
var r = pr({}, n);
|
|
488
488
|
return delete r.ref, e(r, n.ref || null);
|
|
489
489
|
}
|
|
490
|
-
return t.$$typeof =
|
|
490
|
+
return t.$$typeof = So, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
491
491
|
}
|
|
492
492
|
var Hn = function(e, t) {
|
|
493
493
|
return e == null ? null : re(re(e).map(t));
|
|
@@ -505,26 +505,26 @@ T.__e = function(e, t, n, r) {
|
|
|
505
505
|
Po(e, t, n, r);
|
|
506
506
|
};
|
|
507
507
|
var An = T.unmount;
|
|
508
|
-
function
|
|
508
|
+
function _r(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
511
|
}), e.__c.__H = null), (e = pr({}, 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
|
|
512
|
+
return _r(r, t, n);
|
|
513
513
|
})), e;
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function mr(e, t, n) {
|
|
516
516
|
return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
|
|
517
|
-
return
|
|
517
|
+
return mr(r, t, n);
|
|
518
518
|
}), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
|
|
519
519
|
}
|
|
520
520
|
function Ue() {
|
|
521
521
|
this.__u = 0, this.t = null, this.__b = null;
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function yr(e) {
|
|
524
524
|
var t = e.__.__c;
|
|
525
525
|
return t && t.__a && t.__a(e);
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function gr(e) {
|
|
528
528
|
var t, n, r;
|
|
529
529
|
function o(i) {
|
|
530
530
|
if (t || (t = e()).then(function(a) {
|
|
@@ -537,7 +537,7 @@ function yr(e) {
|
|
|
537
537
|
}
|
|
538
538
|
return o.displayName = "Lazy", o.__f = !0, o;
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function Se() {
|
|
541
541
|
this.u = null, this.o = null;
|
|
542
542
|
}
|
|
543
543
|
T.unmount = function(e) {
|
|
@@ -546,7 +546,7 @@ T.unmount = function(e) {
|
|
|
546
546
|
}, (Ue.prototype = new Z()).__c = function(e, t) {
|
|
547
547
|
var n = t.__c, r = this;
|
|
548
548
|
r.t == null && (r.t = []), r.t.push(n);
|
|
549
|
-
var o =
|
|
549
|
+
var o = yr(r.__v), i = !1, a = function() {
|
|
550
550
|
i || (i = !0, n.__R = null, o ? o(s) : s());
|
|
551
551
|
};
|
|
552
552
|
n.__R = a;
|
|
@@ -554,7 +554,7 @@ T.unmount = function(e) {
|
|
|
554
554
|
if (!--r.__u) {
|
|
555
555
|
if (r.state.__a) {
|
|
556
556
|
var l = r.state.__a;
|
|
557
|
-
r.__v.__k[0] =
|
|
557
|
+
r.__v.__k[0] = mr(l, l.__c.__P, l.__c.__O);
|
|
558
558
|
}
|
|
559
559
|
var u;
|
|
560
560
|
for (r.setState({ __a: r.__b = null }); u = r.t.pop(); ) u.forceUpdate();
|
|
@@ -567,7 +567,7 @@ T.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] =
|
|
570
|
+
this.__v.__k[0] = _r(this.__b, n, r.__O = r.__P);
|
|
571
571
|
}
|
|
572
572
|
this.__b = null;
|
|
573
573
|
}
|
|
@@ -604,30 +604,30 @@ function pt(e, t) {
|
|
|
604
604
|
var n = X(Mo, { __v: e, i: t });
|
|
605
605
|
return n.containerInfo = t, n;
|
|
606
606
|
}
|
|
607
|
-
(
|
|
608
|
-
var t = this, n =
|
|
607
|
+
(Se.prototype = new Z()).__a = function(e) {
|
|
608
|
+
var t = this, n = yr(t.__v), r = t.o.get(e);
|
|
609
609
|
return r[0]++, function(o) {
|
|
610
610
|
var i = function() {
|
|
611
611
|
t.props.revealOrder ? (r.push(o), On(t, e, r)) : o();
|
|
612
612
|
};
|
|
613
613
|
n ? n(i) : i();
|
|
614
614
|
};
|
|
615
|
-
},
|
|
615
|
+
}, Se.prototype.render = function(e) {
|
|
616
616
|
this.u = null, this.o = /* @__PURE__ */ new Map();
|
|
617
617
|
var t = re(e.children);
|
|
618
618
|
e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
|
|
619
619
|
for (var n = t.length; n--; ) this.o.set(t[n], this.u = [1, 0, this.u]);
|
|
620
620
|
return e.children;
|
|
621
|
-
},
|
|
621
|
+
}, Se.prototype.componentDidUpdate = Se.prototype.componentDidMount = function() {
|
|
622
622
|
var e = this;
|
|
623
623
|
this.o.forEach(function(t, n) {
|
|
624
624
|
On(e, n, t);
|
|
625
625
|
});
|
|
626
626
|
};
|
|
627
|
-
var
|
|
627
|
+
var wr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, No = /^(?: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]/, Do = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Ho = /[A-Z0-9]/g, Ao = typeof document < "u", Oo = function(e) {
|
|
628
628
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
629
629
|
};
|
|
630
|
-
function
|
|
630
|
+
function br(e, t, n) {
|
|
631
631
|
return t.__k == null && (t.textContent = ""), Pe(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
632
632
|
}
|
|
633
633
|
function $r(e, t, n) {
|
|
@@ -670,7 +670,7 @@ T.vnode = function(e) {
|
|
|
670
670
|
})), r == "select" && o.defaultValue != null && (o.value = re(n.children).forEach(function(l) {
|
|
671
671
|
l.props.selected = o.multiple ? o.defaultValue.indexOf(l.props.value) != -1 : o.defaultValue == l.props.value;
|
|
672
672
|
})), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", Uo)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
|
|
673
|
-
}(e), e.$$typeof =
|
|
673
|
+
}(e), e.$$typeof = wr, Rn && Rn(e);
|
|
674
674
|
};
|
|
675
675
|
var Vn = T.__r;
|
|
676
676
|
T.__r = function(e) {
|
|
@@ -684,12 +684,12 @@ T.diffed = function(e) {
|
|
|
684
684
|
};
|
|
685
685
|
var Er = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
686
686
|
return ln.__n[e.__c].props.value;
|
|
687
|
-
}, useCallback: I, useContext: j, useDebugValue: on, useDeferredValue: dn, useEffect: N, useId: fe, useImperativeHandle: rn, useInsertionEffect: pn, useLayoutEffect: Ee, useMemo:
|
|
687
|
+
}, useCallback: I, useContext: j, useDebugValue: on, useDeferredValue: dn, useEffect: N, useId: fe, useImperativeHandle: rn, useInsertionEffect: pn, useLayoutEffect: Ee, useMemo: x, useReducer: Ye, useRef: w, useState: k, useSyncExternalStore: vt, useTransition: fn } } }, jo = "17.0.2";
|
|
688
688
|
function Cr(e) {
|
|
689
689
|
return X.bind(null, e);
|
|
690
690
|
}
|
|
691
691
|
function Ne(e) {
|
|
692
|
-
return !!e && e.$$typeof ===
|
|
692
|
+
return !!e && e.$$typeof === wr;
|
|
693
693
|
}
|
|
694
694
|
function Tr(e) {
|
|
695
695
|
return Ne(e) && e.type === H;
|
|
@@ -703,10 +703,10 @@ function cn(e) {
|
|
|
703
703
|
function Fr(e) {
|
|
704
704
|
return !!e.__k && (Pe(null, e), !0);
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function xr(e) {
|
|
707
707
|
return e && (e.base || e.nodeType === 1 && e) || null;
|
|
708
708
|
}
|
|
709
|
-
var
|
|
709
|
+
var Sr = function(e, t) {
|
|
710
710
|
return e(t);
|
|
711
711
|
}, Pr = function(e, t) {
|
|
712
712
|
return e(t);
|
|
@@ -721,7 +721,7 @@ function fn() {
|
|
|
721
721
|
return [!1, un];
|
|
722
722
|
}
|
|
723
723
|
var pn = Ee, Mr = Ne;
|
|
724
|
-
function
|
|
724
|
+
function vt(e, t) {
|
|
725
725
|
var n = t(), r = k({ h: { __: n, v: t } }), o = r[0].h, i = r[1];
|
|
726
726
|
return Ee(function() {
|
|
727
727
|
o.__ = n, o.v = t, Ft(o) && i({ h: o });
|
|
@@ -740,7 +740,7 @@ function Ft(e) {
|
|
|
740
740
|
return !0;
|
|
741
741
|
}
|
|
742
742
|
}
|
|
743
|
-
var E = { useState: k, useId: fe, useReducer:
|
|
743
|
+
var E = { useState: k, useId: fe, useReducer: Ye, useEffect: N, useLayoutEffect: Ee, useInsertionEffect: pn, useTransition: fn, useDeferredValue: dn, useSyncExternalStore: vt, startTransition: un, useRef: w, useImperativeHandle: rn, useMemo: x, useCallback: I, useContext: j, useDebugValue: on, version: "17.0.2", Children: hr, render: br, hydrate: $r, unmountComponentAtNode: Fr, createPortal: pt, createElement: X, createContext: q, createFactory: Cr, cloneElement: cn, createRef: en, Fragment: H, isValidElement: Ne, isElement: Mr, isFragment: Tr, isMemo: kr, findDOMNode: xr, Component: Z, PureComponent: at, memo: vr, forwardRef: sn, flushSync: Pr, unstable_batchedUpdates: Sr, StrictMode: Lr, Suspense: Ue, SuspenseList: Se, lazy: gr, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Er };
|
|
744
744
|
const jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
745
745
|
__proto__: null,
|
|
746
746
|
Children: hr,
|
|
@@ -749,16 +749,16 @@ const jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
749
749
|
PureComponent: at,
|
|
750
750
|
StrictMode: Lr,
|
|
751
751
|
Suspense: Ue,
|
|
752
|
-
SuspenseList:
|
|
752
|
+
SuspenseList: Se,
|
|
753
753
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Er,
|
|
754
754
|
cloneElement: cn,
|
|
755
|
-
createContext:
|
|
755
|
+
createContext: q,
|
|
756
756
|
createElement: X,
|
|
757
757
|
createFactory: Cr,
|
|
758
758
|
createPortal: pt,
|
|
759
759
|
createRef: en,
|
|
760
760
|
default: E,
|
|
761
|
-
findDOMNode:
|
|
761
|
+
findDOMNode: xr,
|
|
762
762
|
flushSync: Pr,
|
|
763
763
|
forwardRef: sn,
|
|
764
764
|
hydrate: $r,
|
|
@@ -766,12 +766,12 @@ const jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
766
766
|
isFragment: Tr,
|
|
767
767
|
isMemo: kr,
|
|
768
768
|
isValidElement: Ne,
|
|
769
|
-
lazy:
|
|
770
|
-
memo:
|
|
771
|
-
render:
|
|
769
|
+
lazy: gr,
|
|
770
|
+
memo: vr,
|
|
771
|
+
render: br,
|
|
772
772
|
startTransition: un,
|
|
773
773
|
unmountComponentAtNode: Fr,
|
|
774
|
-
unstable_batchedUpdates:
|
|
774
|
+
unstable_batchedUpdates: Sr,
|
|
775
775
|
useCallback: I,
|
|
776
776
|
useContext: j,
|
|
777
777
|
useDebugValue: on,
|
|
@@ -782,17 +782,17 @@ const jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
782
782
|
useImperativeHandle: rn,
|
|
783
783
|
useInsertionEffect: pn,
|
|
784
784
|
useLayoutEffect: Ee,
|
|
785
|
-
useMemo:
|
|
786
|
-
useReducer:
|
|
787
|
-
useRef:
|
|
785
|
+
useMemo: x,
|
|
786
|
+
useReducer: Ye,
|
|
787
|
+
useRef: w,
|
|
788
788
|
useState: k,
|
|
789
|
-
useSyncExternalStore:
|
|
789
|
+
useSyncExternalStore: vt,
|
|
790
790
|
useTransition: fn,
|
|
791
791
|
version: jo
|
|
792
792
|
}, Symbol.toStringTag, { value: "Module" })), Nr = typeof document < "u" ? E.useLayoutEffect : () => {
|
|
793
793
|
};
|
|
794
794
|
function Wo(e) {
|
|
795
|
-
const t =
|
|
795
|
+
const t = w(null);
|
|
796
796
|
return Nr(() => {
|
|
797
797
|
t.current = e;
|
|
798
798
|
}, [
|
|
@@ -805,7 +805,7 @@ function Wo(e) {
|
|
|
805
805
|
const Ke = (e) => {
|
|
806
806
|
var t;
|
|
807
807
|
return (t = e == null ? void 0 : e.ownerDocument) !== null && t !== void 0 ? t : document;
|
|
808
|
-
},
|
|
808
|
+
}, me = (e) => e && "window" in e && e.window === e ? e : Ke(e).defaultView || window;
|
|
809
809
|
function zo(e) {
|
|
810
810
|
var t;
|
|
811
811
|
return typeof window > "u" || window.navigator == null ? !1 : ((t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.brands.some((n) => e.test(n.brand))) || e.test(window.navigator.userAgent);
|
|
@@ -814,14 +814,14 @@ function Bo(e) {
|
|
|
814
814
|
var t;
|
|
815
815
|
return typeof window < "u" && window.navigator != null ? e.test(((t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.platform) || window.navigator.platform) : !1;
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function qo() {
|
|
818
818
|
return Bo(/^Mac/i);
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function Yo() {
|
|
821
821
|
return zo(/Android/i);
|
|
822
822
|
}
|
|
823
823
|
function Ko(e) {
|
|
824
|
-
return e.mozInputSource === 0 && e.isTrusted ? !0 :
|
|
824
|
+
return e.mozInputSource === 0 && e.isTrusted ? !0 : Yo() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
|
|
825
825
|
}
|
|
826
826
|
class Go {
|
|
827
827
|
isDefaultPrevented() {
|
|
@@ -843,7 +843,7 @@ class Go {
|
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
845
|
function Dr(e) {
|
|
846
|
-
let t =
|
|
846
|
+
let t = w({
|
|
847
847
|
isFocused: !1,
|
|
848
848
|
observer: null
|
|
849
849
|
});
|
|
@@ -910,38 +910,38 @@ function Zo(e) {
|
|
|
910
910
|
}
|
|
911
911
|
};
|
|
912
912
|
}
|
|
913
|
-
let Ge = null, Ut = /* @__PURE__ */ new Set(), je = /* @__PURE__ */ new Map(),
|
|
913
|
+
let Ge = null, Ut = /* @__PURE__ */ new Set(), je = /* @__PURE__ */ new Map(), be = !1, jt = !1;
|
|
914
914
|
const Xo = {
|
|
915
915
|
Tab: !0,
|
|
916
916
|
Escape: !0
|
|
917
917
|
};
|
|
918
|
-
function
|
|
918
|
+
function vn(e, t) {
|
|
919
919
|
for (let n of Ut) n(e, t);
|
|
920
920
|
}
|
|
921
921
|
function Qo(e) {
|
|
922
|
-
return !(e.metaKey || !
|
|
922
|
+
return !(e.metaKey || !qo() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
923
923
|
}
|
|
924
924
|
function st(e) {
|
|
925
|
-
|
|
925
|
+
be = !0, Qo(e) && (Ge = "keyboard", vn("keyboard", e));
|
|
926
926
|
}
|
|
927
927
|
function K(e) {
|
|
928
|
-
Ge = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (
|
|
928
|
+
Ge = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (be = !0, vn("pointer", e));
|
|
929
929
|
}
|
|
930
930
|
function Hr(e) {
|
|
931
|
-
Ko(e) && (
|
|
931
|
+
Ko(e) && (be = !0, Ge = "virtual");
|
|
932
932
|
}
|
|
933
933
|
function Ar(e) {
|
|
934
|
-
e.target === window || e.target === document || (!
|
|
934
|
+
e.target === window || e.target === document || (!be && !jt && (Ge = "virtual", vn("virtual", e)), be = !1, jt = !1);
|
|
935
935
|
}
|
|
936
936
|
function Or() {
|
|
937
|
-
|
|
937
|
+
be = !1, jt = !0;
|
|
938
938
|
}
|
|
939
939
|
function Wt(e) {
|
|
940
|
-
if (typeof window > "u" || je.get(
|
|
941
|
-
const t =
|
|
940
|
+
if (typeof window > "u" || je.get(me(e))) return;
|
|
941
|
+
const t = me(e), n = Ke(e);
|
|
942
942
|
let r = t.HTMLElement.prototype.focus;
|
|
943
943
|
t.HTMLElement.prototype.focus = function() {
|
|
944
|
-
|
|
944
|
+
be = !0, r.apply(this, arguments);
|
|
945
945
|
}, n.addEventListener("keydown", st, !0), n.addEventListener("keyup", st, !0), n.addEventListener("click", Hr, !0), t.addEventListener("focus", Ar, !0), t.addEventListener("blur", Or, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", K, !0), n.addEventListener("pointermove", K, !0), n.addEventListener("pointerup", K, !0)) : (n.addEventListener("mousedown", K, !0), n.addEventListener("mousemove", K, !0), n.addEventListener("mouseup", K, !0)), t.addEventListener("beforeunload", () => {
|
|
946
946
|
Ir(e);
|
|
947
947
|
}, {
|
|
@@ -951,7 +951,7 @@ function Wt(e) {
|
|
|
951
951
|
});
|
|
952
952
|
}
|
|
953
953
|
const Ir = (e, t) => {
|
|
954
|
-
const n =
|
|
954
|
+
const n = me(e), r = Ke(e);
|
|
955
955
|
t && r.removeEventListener("DOMContentLoaded", t), je.has(n) && (n.HTMLElement.prototype.focus = je.get(n).focus, r.removeEventListener("keydown", st, !0), r.removeEventListener("keyup", st, !0), r.removeEventListener("click", Hr, !0), n.removeEventListener("focus", Ar, !0), n.removeEventListener("blur", Or, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", K, !0), r.removeEventListener("pointermove", K, !0), r.removeEventListener("pointerup", K, !0)) : (r.removeEventListener("mousedown", K, !0), r.removeEventListener("mousemove", K, !0), r.removeEventListener("mouseup", K, !0)), je.delete(n));
|
|
956
956
|
};
|
|
957
957
|
function Jo(e) {
|
|
@@ -978,7 +978,7 @@ const ei = /* @__PURE__ */ new Set([
|
|
|
978
978
|
]);
|
|
979
979
|
function ti(e, t, n) {
|
|
980
980
|
var r;
|
|
981
|
-
const o = typeof window < "u" ?
|
|
981
|
+
const o = typeof window < "u" ? me(n == null ? void 0 : n.target).HTMLInputElement : HTMLInputElement, i = typeof window < "u" ? me(n == null ? void 0 : n.target).HTMLTextAreaElement : HTMLTextAreaElement, a = typeof window < "u" ? me(n == null ? void 0 : n.target).HTMLElement : HTMLElement, s = typeof window < "u" ? me(n == null ? void 0 : n.target).KeyboardEvent : KeyboardEvent;
|
|
982
982
|
return e = e || (n == null ? void 0 : n.target) instanceof o && !ei.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 a && (n == null ? void 0 : n.target.isContentEditable), !(e && t === "keyboard" && n instanceof s && !Xo[n.key]);
|
|
983
983
|
}
|
|
984
984
|
function ni(e, t, n) {
|
|
@@ -992,7 +992,7 @@ function ni(e, t, n) {
|
|
|
992
992
|
}, t);
|
|
993
993
|
}
|
|
994
994
|
function ri(e) {
|
|
995
|
-
let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: o } = e, i =
|
|
995
|
+
let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: o } = e, i = w({
|
|
996
996
|
isFocusWithin: !1
|
|
997
997
|
}), a = I((u) => {
|
|
998
998
|
i.current.isFocusWithin && !u.currentTarget.contains(u.relatedTarget) && (i.current.isFocusWithin = !1, n && n(u), o && o(!1));
|
|
@@ -1020,7 +1020,7 @@ function ri(e) {
|
|
|
1020
1020
|
}
|
|
1021
1021
|
};
|
|
1022
1022
|
}
|
|
1023
|
-
let lt = !1,
|
|
1023
|
+
let lt = !1, xt = 0;
|
|
1024
1024
|
function zt() {
|
|
1025
1025
|
lt = !0, setTimeout(() => {
|
|
1026
1026
|
lt = !1;
|
|
@@ -1031,36 +1031,36 @@ function Wn(e) {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
function oi() {
|
|
1033
1033
|
if (!(typeof document > "u"))
|
|
1034
|
-
return typeof PointerEvent < "u" ? document.addEventListener("pointerup", Wn) : document.addEventListener("touchend", zt),
|
|
1035
|
-
|
|
1034
|
+
return typeof PointerEvent < "u" ? document.addEventListener("pointerup", Wn) : document.addEventListener("touchend", zt), xt++, () => {
|
|
1035
|
+
xt--, !(xt > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", Wn) : document.removeEventListener("touchend", zt));
|
|
1036
1036
|
};
|
|
1037
1037
|
}
|
|
1038
1038
|
function ii(e) {
|
|
1039
|
-
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: o } = e, [i, a] = k(!1), s =
|
|
1039
|
+
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: o } = e, [i, a] = k(!1), s = w({
|
|
1040
1040
|
isHovered: !1,
|
|
1041
1041
|
ignoreEmulatedMouseEvents: !1,
|
|
1042
1042
|
pointerType: "",
|
|
1043
1043
|
target: null
|
|
1044
1044
|
}).current;
|
|
1045
1045
|
N(oi, []);
|
|
1046
|
-
let { hoverProps: l, triggerHoverEnd: u } =
|
|
1047
|
-
let d = (f,
|
|
1048
|
-
if (s.pointerType =
|
|
1046
|
+
let { hoverProps: l, triggerHoverEnd: u } = x(() => {
|
|
1047
|
+
let d = (f, _) => {
|
|
1048
|
+
if (s.pointerType = _, o || _ === "touch" || s.isHovered || !f.currentTarget.contains(f.target)) return;
|
|
1049
1049
|
s.isHovered = !0;
|
|
1050
|
-
let
|
|
1051
|
-
s.target =
|
|
1050
|
+
let y = f.currentTarget;
|
|
1051
|
+
s.target = y, t && t({
|
|
1052
1052
|
type: "hoverstart",
|
|
1053
|
-
target:
|
|
1054
|
-
pointerType:
|
|
1053
|
+
target: y,
|
|
1054
|
+
pointerType: _
|
|
1055
1055
|
}), n && n(!0), a(!0);
|
|
1056
|
-
}, c = (f,
|
|
1057
|
-
if (s.pointerType = "", s.target = null,
|
|
1056
|
+
}, c = (f, _) => {
|
|
1057
|
+
if (s.pointerType = "", s.target = null, _ === "touch" || !s.isHovered) return;
|
|
1058
1058
|
s.isHovered = !1;
|
|
1059
|
-
let
|
|
1059
|
+
let y = f.currentTarget;
|
|
1060
1060
|
r && r({
|
|
1061
1061
|
type: "hoverend",
|
|
1062
|
-
target:
|
|
1063
|
-
pointerType:
|
|
1062
|
+
target: y,
|
|
1063
|
+
pointerType: _
|
|
1064
1064
|
}), n && n(!1), a(!1);
|
|
1065
1065
|
}, p = {};
|
|
1066
1066
|
return typeof PointerEvent < "u" ? (p.onPointerEnter = (f) => {
|
|
@@ -1096,7 +1096,7 @@ function ii(e) {
|
|
|
1096
1096
|
};
|
|
1097
1097
|
}
|
|
1098
1098
|
function ai(e = {}) {
|
|
1099
|
-
let { autoFocus: t = !1, isTextInput: n, within: r } = e, o =
|
|
1099
|
+
let { autoFocus: t = !1, isTextInput: n, within: r } = e, o = w({
|
|
1100
1100
|
isFocused: !1,
|
|
1101
1101
|
isFocusVisible: t || Rr()
|
|
1102
1102
|
}), [i, a] = k(!1), [s, l] = k(() => o.current.isFocused && o.current.isFocusVisible), u = I(() => l(o.current.isFocused && o.current.isFocusVisible), []), d = I((f) => {
|
|
@@ -1122,10 +1122,10 @@ function ai(e = {}) {
|
|
|
1122
1122
|
focusProps: r ? p : c
|
|
1123
1123
|
};
|
|
1124
1124
|
}
|
|
1125
|
-
var si = Object.defineProperty, li = (e, t, n) => t in e ? si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n,
|
|
1125
|
+
var si = Object.defineProperty, li = (e, t, n) => t in e ? si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, St = (e, t, n) => (li(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
1126
1126
|
let ci = class {
|
|
1127
1127
|
constructor() {
|
|
1128
|
-
|
|
1128
|
+
St(this, "current", this.detect()), St(this, "handoffState", "pending"), St(this, "currentId", 0);
|
|
1129
1129
|
}
|
|
1130
1130
|
set(t) {
|
|
1131
1131
|
this.current !== t && (this.handoffState = "pending", this.currentId = 0, this.current = t);
|
|
@@ -1151,11 +1151,11 @@ let ci = class {
|
|
|
1151
1151
|
get isHandoffComplete() {
|
|
1152
1152
|
return this.handoffState === "complete";
|
|
1153
1153
|
}
|
|
1154
|
-
},
|
|
1154
|
+
}, ge = new ci();
|
|
1155
1155
|
function ht(e) {
|
|
1156
|
-
return
|
|
1156
|
+
return ge.isServer ? null : e instanceof Node ? e.ownerDocument : e != null && e.hasOwnProperty("current") && e.current instanceof Node ? e.current.ownerDocument : document;
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1158
|
+
function _t(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 pe() {
|
|
|
1173
1173
|
return t.add(() => clearTimeout(r));
|
|
1174
1174
|
}, microTask(...n) {
|
|
1175
1175
|
let r = { current: !0 };
|
|
1176
|
-
return
|
|
1176
|
+
return _t(() => {
|
|
1177
1177
|
r.current && n[0]();
|
|
1178
1178
|
}), t.add(() => {
|
|
1179
1179
|
r.current = !1;
|
|
@@ -1196,15 +1196,15 @@ function pe() {
|
|
|
1196
1196
|
} };
|
|
1197
1197
|
return t;
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1199
|
+
function mt() {
|
|
1200
1200
|
let [e] = k(pe);
|
|
1201
1201
|
return N(() => () => e.dispose(), [e]), e;
|
|
1202
1202
|
}
|
|
1203
1203
|
let W = (e, t) => {
|
|
1204
|
-
|
|
1204
|
+
ge.isServer ? N(e, t) : Ee(e, t);
|
|
1205
1205
|
};
|
|
1206
1206
|
function Ce(e) {
|
|
1207
|
-
let t =
|
|
1207
|
+
let t = w(e);
|
|
1208
1208
|
return W(() => {
|
|
1209
1209
|
t.current = e;
|
|
1210
1210
|
}, [e]), t;
|
|
@@ -1221,7 +1221,7 @@ function di(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
1223
|
function fi({ disabled: e = !1 } = {}) {
|
|
1224
|
-
let t =
|
|
1224
|
+
let t = w(null), [n, r] = k(!1), o = mt(), i = D(() => {
|
|
1225
1225
|
t.current = null, r(!1), o.dispose();
|
|
1226
1226
|
}), a = D((s) => {
|
|
1227
1227
|
if (o.dispose(), t.current === null) {
|
|
@@ -1239,7 +1239,7 @@ function fi({ disabled: e = !1 } = {}) {
|
|
|
1239
1239
|
});
|
|
1240
1240
|
return { pressed: n, pressProps: e ? {} : { onPointerDown: a, onPointerUp: i, onClick: i } };
|
|
1241
1241
|
}
|
|
1242
|
-
let pi =
|
|
1242
|
+
let pi = q(void 0);
|
|
1243
1243
|
function Vr() {
|
|
1244
1244
|
return j(pi);
|
|
1245
1245
|
}
|
|
@@ -1255,8 +1255,8 @@ function de(e, t, ...n) {
|
|
|
1255
1255
|
throw Error.captureStackTrace && Error.captureStackTrace(r, de), r;
|
|
1256
1256
|
}
|
|
1257
1257
|
var ct = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(ct || {}), ue = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(ue || {});
|
|
1258
|
-
function
|
|
1259
|
-
s = s ??
|
|
1258
|
+
function Y({ ourProps: e, theirProps: t, slot: n, defaultTag: r, features: o, visible: i = !0, name: a, mergeRefs: s }) {
|
|
1259
|
+
s = s ?? vi;
|
|
1260
1260
|
let l = Ur(t, e);
|
|
1261
1261
|
if (i) return nt(l, n, r, a, s);
|
|
1262
1262
|
let u = o ?? 0;
|
|
@@ -1280,25 +1280,25 @@ function nt(e, t = {}, n, r, o) {
|
|
|
1280
1280
|
let c = {};
|
|
1281
1281
|
if (t) {
|
|
1282
1282
|
let p = !1, f = [];
|
|
1283
|
-
for (let [
|
|
1283
|
+
for (let [_, y] of Object.entries(t)) typeof y == "boolean" && (p = !0), y === !0 && f.push(_.replace(/([A-Z])/g, (m) => `-${m.toLowerCase()}`));
|
|
1284
1284
|
if (p) {
|
|
1285
1285
|
c["data-headlessui-state"] = f.join(" ");
|
|
1286
|
-
for (let
|
|
1286
|
+
for (let _ of f) c[`data-${_}`] = "";
|
|
1287
1287
|
}
|
|
1288
1288
|
}
|
|
1289
|
-
if (i === H && (Object.keys(
|
|
1290
|
-
if (Object.keys(
|
|
1289
|
+
if (i === H && (Object.keys(ve(l)).length > 0 || Object.keys(ve(c)).length > 0)) if (!Ne(d) || Array.isArray(d) && d.length > 1) {
|
|
1290
|
+
if (Object.keys(ve(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(ve(l)).concat(Object.keys(ve(c))).map((p) => ` - ${p}`).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((p) => ` - ${p}`).join(`
|
|
1292
1292
|
`)].join(`
|
|
1293
1293
|
`));
|
|
1294
1294
|
} else {
|
|
1295
|
-
let p = d.props, f = p == null ? void 0 : p.className,
|
|
1296
|
-
for (let h in c) h in
|
|
1297
|
-
return cn(d, Object.assign({},
|
|
1295
|
+
let p = d.props, f = p == null ? void 0 : p.className, _ = typeof f == "function" ? (...h) => Bt(f(...h), l.className) : Bt(f, l.className), y = _ ? { className: _ } : {}, m = Ur(d.props, ve(Pt(l, ["ref"])));
|
|
1296
|
+
for (let h in c) h in m && delete c[h];
|
|
1297
|
+
return cn(d, Object.assign({}, m, c, u, { ref: o(d.ref, u.ref) }, y));
|
|
1298
1298
|
}
|
|
1299
1299
|
return X(i, Object.assign({}, Pt(l, ["ref"]), i !== H && u, i !== H && c), d);
|
|
1300
1300
|
}
|
|
1301
|
-
function
|
|
1301
|
+
function vi(...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,7 +1336,7 @@ function z(e) {
|
|
|
1336
1336
|
var t;
|
|
1337
1337
|
return Object.assign(sn(e), { displayName: (t = e.displayName) != null ? t : e.name });
|
|
1338
1338
|
}
|
|
1339
|
-
function
|
|
1339
|
+
function ve(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;
|
|
@@ -1346,22 +1346,22 @@ function Pt(e, t = []) {
|
|
|
1346
1346
|
for (let r of t) r in n && delete n[r];
|
|
1347
1347
|
return n;
|
|
1348
1348
|
}
|
|
1349
|
-
let
|
|
1350
|
-
function
|
|
1349
|
+
let _i = "button";
|
|
1350
|
+
function mi(e, t) {
|
|
1351
1351
|
var n;
|
|
1352
|
-
let r = Vr(), { disabled: o = r || !1, autoFocus: i = !1, ...a } = e, { isFocusVisible: s, focusProps: l } = ai({ autoFocus: i }), { isHovered: u, hoverProps: d } = ii({ isDisabled: o }), { pressed: c, pressProps: p } = fi({ disabled: o }), f = hi({ ref: t, type: (n = a.type) != null ? n : "button", disabled: o || void 0, autoFocus: i }, l, d, p),
|
|
1353
|
-
return
|
|
1352
|
+
let r = Vr(), { disabled: o = r || !1, autoFocus: i = !1, ...a } = e, { isFocusVisible: s, focusProps: l } = ai({ autoFocus: i }), { isHovered: u, hoverProps: d } = ii({ isDisabled: o }), { pressed: c, pressProps: p } = fi({ disabled: o }), f = hi({ ref: t, type: (n = a.type) != null ? n : "button", disabled: o || void 0, autoFocus: i }, l, d, p), _ = x(() => ({ disabled: o, hover: u, focus: s, active: c, autofocus: i }), [o, u, s, c, i]);
|
|
1353
|
+
return Y({ ourProps: f, theirProps: a, slot: _, defaultTag: _i, name: "Button" });
|
|
1354
1354
|
}
|
|
1355
|
-
let
|
|
1355
|
+
let yi = z(mi), gi = "div";
|
|
1356
1356
|
var ut = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(ut || {});
|
|
1357
|
-
function
|
|
1357
|
+
function wi(e, t) {
|
|
1358
1358
|
var n;
|
|
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
|
-
return
|
|
1360
|
+
return Y({ ourProps: i, theirProps: o, slot: {}, defaultTag: gi, name: "Hidden" });
|
|
1361
1361
|
}
|
|
1362
|
-
let
|
|
1362
|
+
let qt = z(wi), bi = q(null);
|
|
1363
1363
|
function $i({ children: e }) {
|
|
1364
|
-
let t = j(
|
|
1364
|
+
let t = j(bi);
|
|
1365
1365
|
if (!t) return E.createElement(E.Fragment, null, e);
|
|
1366
1366
|
let { target: n } = t;
|
|
1367
1367
|
return n ? pt(E.createElement(E.Fragment, null, e), n) : null;
|
|
@@ -1371,7 +1371,7 @@ function Ei(e, t = !0) {
|
|
|
1371
1371
|
return Object.assign(e, { [jr]: t });
|
|
1372
1372
|
}
|
|
1373
1373
|
function J(...e) {
|
|
1374
|
-
let t =
|
|
1374
|
+
let t = w(e);
|
|
1375
1375
|
N(() => {
|
|
1376
1376
|
t.current = e;
|
|
1377
1377
|
}, [e]);
|
|
@@ -1380,7 +1380,7 @@ function J(...e) {
|
|
|
1380
1380
|
});
|
|
1381
1381
|
return e.every((r) => r == null || (r == null ? void 0 : r[jr])) ? void 0 : n;
|
|
1382
1382
|
}
|
|
1383
|
-
let hn =
|
|
1383
|
+
let hn = q(null);
|
|
1384
1384
|
hn.displayName = "DescriptionContext";
|
|
1385
1385
|
function Wr() {
|
|
1386
1386
|
let e = j(hn);
|
|
@@ -1392,11 +1392,11 @@ function Wr() {
|
|
|
1392
1392
|
}
|
|
1393
1393
|
function Ci() {
|
|
1394
1394
|
let [e, t] = k([]);
|
|
1395
|
-
return [e.length > 0 ? e.join(" ") : void 0,
|
|
1395
|
+
return [e.length > 0 ? e.join(" ") : void 0, x(() => function(n) {
|
|
1396
1396
|
let r = D((i) => (t((a) => [...a, i]), () => t((a) => {
|
|
1397
1397
|
let s = a.slice(), l = s.indexOf(i);
|
|
1398
1398
|
return l !== -1 && s.splice(l, 1), s;
|
|
1399
|
-
}))), o =
|
|
1399
|
+
}))), o = x(() => ({ 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 E.createElement(hn.Provider, { value: o }, n.children);
|
|
1401
1401
|
}, [t])];
|
|
1402
1402
|
}
|
|
@@ -1404,15 +1404,15 @@ let Ti = "p";
|
|
|
1404
1404
|
function ki(e, t) {
|
|
1405
1405
|
let n = fe(), r = Vr(), { id: o = `headlessui-description-${n}`, ...i } = e, a = Wr(), s = J(t);
|
|
1406
1406
|
W(() => a.register(o), [o, a.register]);
|
|
1407
|
-
let l = r || !1, u =
|
|
1408
|
-
return
|
|
1407
|
+
let l = r || !1, u = x(() => ({ ...a.slot, disabled: l }), [a.slot, l]), d = { ref: s, ...a.props, id: o };
|
|
1408
|
+
return Y({ ourProps: d, theirProps: i, slot: u, defaultTag: Ti, name: a.name || "Description" });
|
|
1409
1409
|
}
|
|
1410
|
-
let Fi = z(ki),
|
|
1410
|
+
let Fi = z(ki), xi = Object.assign(Fi, {});
|
|
1411
1411
|
var zr = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(zr || {});
|
|
1412
|
-
let
|
|
1412
|
+
let Si = q(() => {
|
|
1413
1413
|
});
|
|
1414
1414
|
function Pi({ value: e, children: t }) {
|
|
1415
|
-
return E.createElement(
|
|
1415
|
+
return E.createElement(Si.Provider, { value: e }, t);
|
|
1416
1416
|
}
|
|
1417
1417
|
let Li = class extends Map {
|
|
1418
1418
|
constructor(t) {
|
|
@@ -1434,8 +1434,8 @@ function Br(e, t) {
|
|
|
1434
1434
|
a && (n = a, r.forEach((s) => s()));
|
|
1435
1435
|
} };
|
|
1436
1436
|
}
|
|
1437
|
-
function
|
|
1438
|
-
return
|
|
1437
|
+
function qr(e) {
|
|
1438
|
+
return vt(e.subscribe, e.getSnapshot, e.getSnapshot);
|
|
1439
1439
|
}
|
|
1440
1440
|
let Mi = new Li(() => Br(() => [], { ADD(e) {
|
|
1441
1441
|
return this.includes(e) ? this : [...this, e];
|
|
@@ -1446,25 +1446,25 @@ let Mi = new Li(() => Br(() => [], { ADD(e) {
|
|
|
1446
1446
|
return n.splice(t, 1), n;
|
|
1447
1447
|
} }));
|
|
1448
1448
|
function De(e, t) {
|
|
1449
|
-
let n = Mi.get(t), r = fe(), o =
|
|
1449
|
+
let n = Mi.get(t), r = fe(), o = qr(n);
|
|
1450
1450
|
if (W(() => {
|
|
1451
1451
|
if (e) return n.dispatch("ADD", r), () => n.dispatch("REMOVE", r);
|
|
1452
1452
|
}, [n, e]), !e) return !1;
|
|
1453
1453
|
let i = o.indexOf(r), a = o.length;
|
|
1454
1454
|
return i === -1 && (i = a, a += 1), i === a - 1;
|
|
1455
1455
|
}
|
|
1456
|
-
let
|
|
1456
|
+
let Yt = /* @__PURE__ */ new Map(), We = /* @__PURE__ */ new Map();
|
|
1457
1457
|
function zn(e) {
|
|
1458
1458
|
var t;
|
|
1459
1459
|
let n = (t = We.get(e)) != null ? t : 0;
|
|
1460
|
-
return We.set(e, n + 1), n !== 0 ? () => Bn(e) : (
|
|
1460
|
+
return We.set(e, n + 1), n !== 0 ? () => Bn(e) : (Yt.set(e, { "aria-hidden": e.getAttribute("aria-hidden"), inert: e.inert }), e.setAttribute("aria-hidden", "true"), e.inert = !0, () => Bn(e));
|
|
1461
1461
|
}
|
|
1462
1462
|
function Bn(e) {
|
|
1463
1463
|
var t;
|
|
1464
1464
|
let n = (t = We.get(e)) != null ? t : 1;
|
|
1465
1465
|
if (n === 1 ? We.delete(e) : We.set(e, n - 1), n !== 1) return;
|
|
1466
|
-
let r =
|
|
1467
|
-
r && (r["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", r["aria-hidden"]), e.inert = r.inert,
|
|
1466
|
+
let r = Yt.get(e);
|
|
1467
|
+
r && (r["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", r["aria-hidden"]), e.inert = r.inert, Yt.delete(e));
|
|
1468
1468
|
}
|
|
1469
1469
|
function Ni(e, { allowed: t, disallowed: n } = {}) {
|
|
1470
1470
|
let r = De(e, "inert-others");
|
|
@@ -1487,7 +1487,7 @@ function Ni(e, { allowed: t, disallowed: n } = {}) {
|
|
|
1487
1487
|
return a.dispose;
|
|
1488
1488
|
}, [r, t, n]);
|
|
1489
1489
|
}
|
|
1490
|
-
function
|
|
1490
|
+
function Yr(e, t, n) {
|
|
1491
1491
|
let r = Ce((o) => {
|
|
1492
1492
|
let i = o.getBoundingClientRect();
|
|
1493
1493
|
i.x === 0 && i.y === 0 && i.width === 0 && i.height === 0 && n();
|
|
@@ -1554,7 +1554,7 @@ function ji(e, t = (n) => n) {
|
|
|
1554
1554
|
}
|
|
1555
1555
|
function ze(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] } = {}) {
|
|
1556
1556
|
let i = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e.ownerDocument, a = Array.isArray(e) ? n ? ji(e) : e : t & 64 ? Oi(e) : Ai(e);
|
|
1557
|
-
o.length > 0 && a.length > 1 && (a = a.filter((f) => !o.some((
|
|
1557
|
+
o.length > 0 && a.length > 1 && (a = a.filter((f) => !o.some((_) => _ != null && "current" in _ ? (_ == null ? void 0 : _.current) === f : _ === f))), r = r ?? i.activeElement;
|
|
1558
1558
|
let s = (() => {
|
|
1559
1559
|
if (t & 5) return 1;
|
|
1560
1560
|
if (t & 10) return -1;
|
|
@@ -1607,7 +1607,7 @@ function Zr(e, t, n, r) {
|
|
|
1607
1607
|
return window.addEventListener(t, i, r), () => window.removeEventListener(t, i, r);
|
|
1608
1608
|
}, [e, t, r]);
|
|
1609
1609
|
}
|
|
1610
|
-
const
|
|
1610
|
+
const qn = 30;
|
|
1611
1611
|
function Bi(e, t, n) {
|
|
1612
1612
|
let r = De(e, "outside-click"), o = Ce(n), i = I(function(l, u) {
|
|
1613
1613
|
if (l.defaultPrevented) return;
|
|
@@ -1622,7 +1622,7 @@ function Bi(e, t, n) {
|
|
|
1622
1622
|
if (f != null && f.contains(d) || l.composed && l.composedPath().includes(f)) return;
|
|
1623
1623
|
}
|
|
1624
1624
|
return !Ii(d, Kr.Loose) && d.tabIndex !== -1 && l.preventDefault(), o.current(l, d);
|
|
1625
|
-
}, [o]), a =
|
|
1625
|
+
}, [o]), a = w(null);
|
|
1626
1626
|
Oe(r, "pointerdown", (l) => {
|
|
1627
1627
|
var u, d;
|
|
1628
1628
|
a.current = ((d = (u = l.composedPath) == null ? void 0 : u.call(l)) == null ? void 0 : d[0]) || l.target;
|
|
@@ -1632,16 +1632,16 @@ function Bi(e, t, n) {
|
|
|
1632
1632
|
}, !0), Oe(r, "click", (l) => {
|
|
1633
1633
|
zi() || a.current && (i(l, () => a.current), a.current = null);
|
|
1634
1634
|
}, !0);
|
|
1635
|
-
let s =
|
|
1635
|
+
let s = w({ x: 0, y: 0 });
|
|
1636
1636
|
Oe(r, "touchstart", (l) => {
|
|
1637
1637
|
s.current.x = l.touches[0].clientX, s.current.y = l.touches[0].clientY;
|
|
1638
1638
|
}, !0), Oe(r, "touchend", (l) => {
|
|
1639
1639
|
let u = { x: l.changedTouches[0].clientX, y: l.changedTouches[0].clientY };
|
|
1640
|
-
if (!(Math.abs(u.x - s.current.x) >=
|
|
1640
|
+
if (!(Math.abs(u.x - s.current.x) >= qn || Math.abs(u.y - s.current.y) >= qn)) return i(l, () => l.target instanceof HTMLElement ? l.target : null);
|
|
1641
1641
|
}, !0), Zr(r, "blur", (l) => i(l, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
1642
1642
|
}
|
|
1643
1643
|
function Ze(...e) {
|
|
1644
|
-
return
|
|
1644
|
+
return x(() => ht(...e), [...e]);
|
|
1645
1645
|
}
|
|
1646
1646
|
function Xr(e, t, n, r) {
|
|
1647
1647
|
let o = Ce(n);
|
|
@@ -1653,7 +1653,7 @@ function Xr(e, t, n, r) {
|
|
|
1653
1653
|
return e.addEventListener(t, i, r), () => e.removeEventListener(t, i, r);
|
|
1654
1654
|
}, [e, t, r]);
|
|
1655
1655
|
}
|
|
1656
|
-
function
|
|
1656
|
+
function qi() {
|
|
1657
1657
|
let e;
|
|
1658
1658
|
return { before({ doc: t }) {
|
|
1659
1659
|
var n;
|
|
@@ -1664,7 +1664,7 @@ function Yi() {
|
|
|
1664
1664
|
n.style(r, "paddingRight", `${i}px`);
|
|
1665
1665
|
} };
|
|
1666
1666
|
}
|
|
1667
|
-
function
|
|
1667
|
+
function Yi() {
|
|
1668
1668
|
return Gr() ? { before({ doc: e, d: t, meta: n }) {
|
|
1669
1669
|
function r(o) {
|
|
1670
1670
|
return n.containers.flatMap((i) => i()).some((i) => i.contains(o));
|
|
@@ -1717,7 +1717,7 @@ function Gi(e) {
|
|
|
1717
1717
|
for (let n of e) Object.assign(t, n(t));
|
|
1718
1718
|
return t;
|
|
1719
1719
|
}
|
|
1720
|
-
let
|
|
1720
|
+
let ye = Br(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
|
|
1721
1721
|
var n;
|
|
1722
1722
|
let r = (n = this.get(e)) != null ? n : { doc: e, count: 0, d: pe(), meta: /* @__PURE__ */ new Set() };
|
|
1723
1723
|
return r.count++, r.meta.add(t), this.set(e, r), this;
|
|
@@ -1725,25 +1725,25 @@ let ge = Br(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
|
|
|
1725
1725
|
let n = this.get(e);
|
|
1726
1726
|
return n && (n.count--, n.meta.delete(t)), this;
|
|
1727
1727
|
}, SCROLL_PREVENT({ doc: e, d: t, meta: n }) {
|
|
1728
|
-
let r = { doc: e, d: t, meta: Gi(n) }, o = [
|
|
1728
|
+
let r = { doc: e, d: t, meta: Gi(n) }, o = [Yi(), qi(), Ki()];
|
|
1729
1729
|
o.forEach(({ before: i }) => i == null ? void 0 : i(r)), o.forEach(({ after: i }) => i == null ? void 0 : i(r));
|
|
1730
1730
|
}, SCROLL_ALLOW({ d: e }) {
|
|
1731
1731
|
e.dispose();
|
|
1732
1732
|
}, TEARDOWN({ doc: e }) {
|
|
1733
1733
|
this.delete(e);
|
|
1734
1734
|
} });
|
|
1735
|
-
|
|
1736
|
-
let e =
|
|
1735
|
+
ye.subscribe(() => {
|
|
1736
|
+
let e = ye.getSnapshot(), t = /* @__PURE__ */ new Map();
|
|
1737
1737
|
for (let [n] of e) t.set(n, n.documentElement.style.overflow);
|
|
1738
1738
|
for (let n of e.values()) {
|
|
1739
1739
|
let r = t.get(n.doc) === "hidden", o = n.count !== 0;
|
|
1740
|
-
(o && !r || !o && r) &&
|
|
1740
|
+
(o && !r || !o && r) && ye.dispatch(n.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", n), n.count === 0 && ye.dispatch("TEARDOWN", n);
|
|
1741
1741
|
}
|
|
1742
1742
|
});
|
|
1743
1743
|
function Zi(e, t, n = () => ({ containers: [] })) {
|
|
1744
|
-
let r =
|
|
1744
|
+
let r = qr(ye), o = t ? r.get(t) : void 0, i = o ? o.count > 0 : !1;
|
|
1745
1745
|
return W(() => {
|
|
1746
|
-
if (!(!t || !e)) return
|
|
1746
|
+
if (!(!t || !e)) return ye.dispatch("PUSH", t, n), () => ye.dispatch("POP", t, n);
|
|
1747
1747
|
}, [e, t]), i;
|
|
1748
1748
|
}
|
|
1749
1749
|
function Xi(e, t, n = () => [document.body]) {
|
|
@@ -1770,19 +1770,19 @@ function ta(e) {
|
|
|
1770
1770
|
return t;
|
|
1771
1771
|
}
|
|
1772
1772
|
function na(e, t, n, r) {
|
|
1773
|
-
let [o, i] = k(n), { hasFlag: a, addFlag: s, removeFlag: l } = Ji(e && o ? 3 : 0), u =
|
|
1773
|
+
let [o, i] = k(n), { hasFlag: a, addFlag: s, removeFlag: l } = Ji(e && o ? 3 : 0), u = w(!1), d = w(!1), c = mt();
|
|
1774
1774
|
return W(function p() {
|
|
1775
1775
|
var f;
|
|
1776
1776
|
if (!e) return;
|
|
1777
1777
|
n && i(!0);
|
|
1778
|
-
let
|
|
1779
|
-
return
|
|
1778
|
+
let _ = t.current;
|
|
1779
|
+
return _ ? ((f = r == null ? void 0 : r.start) == null || f.call(r, n), ra(_, { inFlight: u, prepare() {
|
|
1780
1780
|
d.current ? d.current = !1 : d.current = u.current, u.current = !0, !d.current && (n ? (s(3), l(4)) : (s(4), l(2)));
|
|
1781
1781
|
}, run() {
|
|
1782
1782
|
d.current ? n ? (l(3), s(4)) : (l(4), s(3)) : n ? l(1) : s(1);
|
|
1783
1783
|
}, done() {
|
|
1784
|
-
var
|
|
1785
|
-
d.current && typeof
|
|
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
1786
|
} })) : n ? (s(3), c.nextFrame(() => p())) : void 0;
|
|
1787
1787
|
}, [e, n, t, c]), e ? [o, { closed: a(1), enter: a(2), leave: a(4), transition: a(2) || a(4) }] : [n, { closed: void 0, enter: void 0, leave: void 0, transition: void 0 }];
|
|
1788
1788
|
}
|
|
@@ -1824,8 +1824,8 @@ function ia(e, { inFlight: t, prepare: n }) {
|
|
|
1824
1824
|
let r = e.style.transition;
|
|
1825
1825
|
e.style.transition = "none", n(), e.offsetHeight, e.style.transition = r;
|
|
1826
1826
|
}
|
|
1827
|
-
function
|
|
1828
|
-
let n =
|
|
1827
|
+
function _n(e, t) {
|
|
1828
|
+
let n = w([]), r = D(e);
|
|
1829
1829
|
N(() => {
|
|
1830
1830
|
let o = [...n.current];
|
|
1831
1831
|
for (let [i, a] of t.entries()) if (n.current[i] !== a) {
|
|
@@ -1834,17 +1834,17 @@ function mn(e, t) {
|
|
|
1834
1834
|
}
|
|
1835
1835
|
}, [r, ...t]);
|
|
1836
1836
|
}
|
|
1837
|
-
let
|
|
1838
|
-
|
|
1837
|
+
let yt = q(null);
|
|
1838
|
+
yt.displayName = "OpenClosedContext";
|
|
1839
1839
|
var G = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(G || {});
|
|
1840
|
-
function
|
|
1841
|
-
return j(
|
|
1840
|
+
function gt() {
|
|
1841
|
+
return j(yt);
|
|
1842
1842
|
}
|
|
1843
1843
|
function aa({ value: e, children: t }) {
|
|
1844
|
-
return E.createElement(
|
|
1844
|
+
return E.createElement(yt.Provider, { value: e }, t);
|
|
1845
1845
|
}
|
|
1846
1846
|
function sa({ children: e }) {
|
|
1847
|
-
return E.createElement(
|
|
1847
|
+
return E.createElement(yt.Provider, { value: null }, e);
|
|
1848
1848
|
}
|
|
1849
1849
|
function la(e) {
|
|
1850
1850
|
function t() {
|
|
@@ -1860,9 +1860,9 @@ la(() => {
|
|
|
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
1862
|
function Qr(e) {
|
|
1863
|
-
let t = D(e), n =
|
|
1863
|
+
let t = D(e), n = w(!1);
|
|
1864
1864
|
N(() => (n.current = !1, () => {
|
|
1865
|
-
n.current = !0,
|
|
1865
|
+
n.current = !0, _t(() => {
|
|
1866
1866
|
n.current && t();
|
|
1867
1867
|
});
|
|
1868
1868
|
}), [t]);
|
|
@@ -1873,23 +1873,23 @@ function ca() {
|
|
|
1873
1873
|
}, () => !1, () => !e) : !1;
|
|
1874
1874
|
}
|
|
1875
1875
|
function Xe() {
|
|
1876
|
-
let e = ca(), [t, n] = k(
|
|
1877
|
-
return t &&
|
|
1876
|
+
let e = ca(), [t, n] = k(ge.isHandoffComplete);
|
|
1877
|
+
return t && ge.isHandoffComplete === !1 && n(!1), N(() => {
|
|
1878
1878
|
t !== !0 && n(!0);
|
|
1879
|
-
}, [t]), N(() =>
|
|
1879
|
+
}, [t]), N(() => ge.handoff(), []), e ? !1 : t;
|
|
1880
1880
|
}
|
|
1881
|
-
let Jr =
|
|
1881
|
+
let Jr = q(!1);
|
|
1882
1882
|
function ua() {
|
|
1883
1883
|
return j(Jr);
|
|
1884
1884
|
}
|
|
1885
|
-
function
|
|
1885
|
+
function Yn(e) {
|
|
1886
1886
|
return E.createElement(Jr.Provider, { value: e.force }, e.children);
|
|
1887
1887
|
}
|
|
1888
1888
|
function da(e) {
|
|
1889
1889
|
let t = ua(), n = j(to), r = Ze(e), [o, i] = k(() => {
|
|
1890
1890
|
var a;
|
|
1891
1891
|
if (!t && n !== null) return (a = n.current) != null ? a : null;
|
|
1892
|
-
if (
|
|
1892
|
+
if (ge.isServer) return null;
|
|
1893
1893
|
let s = r == null ? void 0 : r.getElementById("headlessui-portal-root");
|
|
1894
1894
|
if (s) return s;
|
|
1895
1895
|
if (r === null) return null;
|
|
@@ -1903,11 +1903,11 @@ function da(e) {
|
|
|
1903
1903
|
}, [n, i, t]), o;
|
|
1904
1904
|
}
|
|
1905
1905
|
let eo = H, fa = z(function(e, t) {
|
|
1906
|
-
let n = e, r =
|
|
1906
|
+
let n = e, r = w(null), o = J(Ei((d) => {
|
|
1907
1907
|
r.current = d;
|
|
1908
1908
|
}), t), i = Ze(r), a = da(r), [s] = k(() => {
|
|
1909
1909
|
var d;
|
|
1910
|
-
return
|
|
1910
|
+
return ge.isServer ? null : (d = i == null ? void 0 : i.createElement("div")) != null ? d : null;
|
|
1911
1911
|
}), l = j(Zt), u = Xe();
|
|
1912
1912
|
return W(() => {
|
|
1913
1913
|
!a || !s || a.contains(s) || (s.setAttribute("data-headlessui-portal", ""), a.appendChild(s));
|
|
@@ -1916,35 +1916,35 @@ let eo = H, fa = z(function(e, t) {
|
|
|
1916
1916
|
}, [l, s]), Qr(() => {
|
|
1917
1917
|
var d;
|
|
1918
1918
|
!a || !s || (s instanceof Node && a.contains(s) && a.removeChild(s), a.childNodes.length <= 0 && ((d = a.parentElement) == null || d.removeChild(a)));
|
|
1919
|
-
}), u ? !a || !s ? null : pt(
|
|
1919
|
+
}), u ? !a || !s ? null : pt(Y({ ourProps: { ref: o }, theirProps: n, slot: {}, defaultTag: eo, name: "Portal" }), s) : null;
|
|
1920
1920
|
});
|
|
1921
1921
|
function pa(e, t) {
|
|
1922
1922
|
let n = J(t), { enabled: r = !0, ...o } = e;
|
|
1923
|
-
return r ? E.createElement(fa, { ...o, ref: n }) :
|
|
1923
|
+
return r ? E.createElement(fa, { ...o, ref: n }) : Y({ ourProps: { ref: n }, theirProps: o, slot: {}, defaultTag: eo, name: "Portal" });
|
|
1924
1924
|
}
|
|
1925
|
-
let
|
|
1925
|
+
let va = H, to = q(null);
|
|
1926
1926
|
function ha(e, t) {
|
|
1927
1927
|
let { target: n, ...r } = e, o = { ref: J(t) };
|
|
1928
|
-
return E.createElement(to.Provider, { value: n },
|
|
1928
|
+
return E.createElement(to.Provider, { value: n }, Y({ ourProps: o, theirProps: r, defaultTag: va, name: "Popover.Group" }));
|
|
1929
1929
|
}
|
|
1930
|
-
let Zt =
|
|
1931
|
-
function
|
|
1932
|
-
let e = j(Zt), t =
|
|
1930
|
+
let Zt = q(null);
|
|
1931
|
+
function _a() {
|
|
1932
|
+
let e = j(Zt), t = w([]), n = D((i) => (t.current.push(i), e && e.register(i), () => r(i))), r = D((i) => {
|
|
1933
1933
|
let a = t.current.indexOf(i);
|
|
1934
1934
|
a !== -1 && t.current.splice(a, 1), e && e.unregister(i);
|
|
1935
|
-
}), o =
|
|
1936
|
-
return [t,
|
|
1935
|
+
}), o = x(() => ({ register: n, unregister: r, portals: t }), [n, r, t]);
|
|
1936
|
+
return [t, x(() => function({ children: i }) {
|
|
1937
1937
|
return E.createElement(Zt.Provider, { value: o }, i);
|
|
1938
1938
|
}, [o])];
|
|
1939
1939
|
}
|
|
1940
|
-
let
|
|
1941
|
-
function
|
|
1940
|
+
let ma = z(pa), no = z(ha), ya = Object.assign(ma, { Group: no });
|
|
1941
|
+
function ga(e, t = typeof document < "u" ? document.defaultView : null, n) {
|
|
1942
1942
|
let r = De(e, "escape");
|
|
1943
1943
|
Xr(t, "keydown", (o) => {
|
|
1944
1944
|
r && (o.defaultPrevented || o.key === zr.Escape && n(o));
|
|
1945
1945
|
});
|
|
1946
1946
|
}
|
|
1947
|
-
function
|
|
1947
|
+
function wa() {
|
|
1948
1948
|
var e;
|
|
1949
1949
|
let [t] = k(() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [n, r] = k((e = t == null ? void 0 : t.matches) != null ? e : !1);
|
|
1950
1950
|
return W(() => {
|
|
@@ -1955,9 +1955,9 @@ function ba() {
|
|
|
1955
1955
|
return t.addEventListener("change", o), () => t.removeEventListener("change", o);
|
|
1956
1956
|
}, [t]), n;
|
|
1957
1957
|
}
|
|
1958
|
-
function
|
|
1958
|
+
function ba({ defaultContainers: e = [], portals: t, mainTreeNodeRef: n } = {}) {
|
|
1959
1959
|
var r;
|
|
1960
|
-
let o =
|
|
1960
|
+
let o = w((r = n == null ? void 0 : n.current) != null ? r : null), i = Ze(o), a = D(() => {
|
|
1961
1961
|
var s, l, u;
|
|
1962
1962
|
let d = [];
|
|
1963
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));
|
|
@@ -1965,19 +1965,19 @@ function wa({ defaultContainers: e = [], portals: t, mainTreeNodeRef: n } = {})
|
|
|
1965
1965
|
for (let c of (s = i == null ? void 0 : i.querySelectorAll("html > *, body > *")) != null ? s : []) 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((p) => c.contains(p)) || d.push(c));
|
|
1966
1966
|
return d;
|
|
1967
1967
|
});
|
|
1968
|
-
return { resolveContainers: a, contains: D((s) => a().some((l) => l.contains(s))), mainTreeNodeRef: o, MainTreeNode:
|
|
1969
|
-
return n != null ? null : E.createElement(
|
|
1968
|
+
return { resolveContainers: a, contains: D((s) => a().some((l) => l.contains(s))), mainTreeNodeRef: o, MainTreeNode: x(() => function() {
|
|
1969
|
+
return n != null ? null : E.createElement(qt, { features: ut.Hidden, ref: o });
|
|
1970
1970
|
}, [o, n]) };
|
|
1971
1971
|
}
|
|
1972
|
-
function
|
|
1973
|
-
let e =
|
|
1972
|
+
function mn() {
|
|
1973
|
+
let e = w(!1);
|
|
1974
1974
|
return W(() => (e.current = !0, () => {
|
|
1975
1975
|
e.current = !1;
|
|
1976
1976
|
}), []), e;
|
|
1977
1977
|
}
|
|
1978
1978
|
var Re = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(Re || {});
|
|
1979
1979
|
function $a() {
|
|
1980
|
-
let e =
|
|
1980
|
+
let e = w(0);
|
|
1981
1981
|
return Zr(!0, "keydown", (t) => {
|
|
1982
1982
|
t.key === "Tab" && (e.current = t.shiftKey ? 1 : 0);
|
|
1983
1983
|
}, !0), e;
|
|
@@ -1990,41 +1990,41 @@ function ro(e) {
|
|
|
1990
1990
|
return t;
|
|
1991
1991
|
}
|
|
1992
1992
|
let Ea = "div";
|
|
1993
|
-
var
|
|
1993
|
+
var _e = ((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))(_e || {});
|
|
1994
1994
|
function Ca(e, t) {
|
|
1995
|
-
let n =
|
|
1995
|
+
let n = w(null), r = J(n, t), { initialFocus: o, initialFocusFallback: i, containers: a, features: s = 15, ...l } = e;
|
|
1996
1996
|
Xe() || (s = 0);
|
|
1997
1997
|
let u = Ze(n);
|
|
1998
|
-
|
|
1999
|
-
let d =
|
|
1998
|
+
xa(s, { ownerDocument: u });
|
|
1999
|
+
let d = Sa(s, { ownerDocument: u, container: n, initialFocus: o, initialFocusFallback: i });
|
|
2000
2000
|
Pa(s, { ownerDocument: u, container: n, containers: a, previousActiveElement: d });
|
|
2001
2001
|
let c = $a(), p = D((h) => {
|
|
2002
|
-
let
|
|
2003
|
-
|
|
2002
|
+
let g = n.current;
|
|
2003
|
+
g && ((C) => C())(() => {
|
|
2004
2004
|
de(c.current, { [Re.Forwards]: () => {
|
|
2005
|
-
ze(
|
|
2005
|
+
ze(g, te.First, { skipElements: [h.relatedTarget, i] });
|
|
2006
2006
|
}, [Re.Backwards]: () => {
|
|
2007
|
-
ze(
|
|
2007
|
+
ze(g, te.Last, { skipElements: [h.relatedTarget, i] });
|
|
2008
2008
|
} });
|
|
2009
2009
|
});
|
|
2010
|
-
}), f = De(!!(s & 2), "focus-trap#tab-lock"),
|
|
2011
|
-
h.key == "Tab" && (
|
|
2012
|
-
|
|
2010
|
+
}), f = De(!!(s & 2), "focus-trap#tab-lock"), _ = mt(), y = w(!1), m = { ref: r, onKeyDown(h) {
|
|
2011
|
+
h.key == "Tab" && (y.current = !0, _.requestAnimationFrame(() => {
|
|
2012
|
+
y.current = !1;
|
|
2013
2013
|
}));
|
|
2014
2014
|
}, onBlur(h) {
|
|
2015
2015
|
if (!(s & 4)) return;
|
|
2016
|
-
let
|
|
2017
|
-
n.current instanceof HTMLElement &&
|
|
2016
|
+
let g = ro(a);
|
|
2017
|
+
n.current instanceof HTMLElement && g.add(n.current);
|
|
2018
2018
|
let C = h.relatedTarget;
|
|
2019
|
-
C instanceof HTMLElement && C.dataset.headlessuiFocusGuard !== "true" && (oo(
|
|
2019
|
+
C instanceof HTMLElement && C.dataset.headlessuiFocusGuard !== "true" && (oo(g, C) || (y.current ? ze(n.current, de(c.current, { [Re.Forwards]: () => te.Next, [Re.Backwards]: () => te.Previous }) | te.WrapAround, { relativeTo: h.target }) : h.target instanceof HTMLElement && oe(h.target)));
|
|
2020
2020
|
} };
|
|
2021
|
-
return E.createElement(E.Fragment, null, f && E.createElement(
|
|
2021
|
+
return E.createElement(E.Fragment, null, f && E.createElement(qt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: p, features: ut.Focusable }), Y({ ourProps: m, theirProps: l, defaultTag: Ea, name: "FocusTrap" }), f && E.createElement(qt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: p, features: ut.Focusable }));
|
|
2022
2022
|
}
|
|
2023
|
-
let Ta = z(Ca), ka = Object.assign(Ta, { features:
|
|
2023
|
+
let Ta = z(Ca), ka = Object.assign(Ta, { features: _e });
|
|
2024
2024
|
function Fa(e = !0) {
|
|
2025
|
-
let t =
|
|
2026
|
-
return
|
|
2027
|
-
r === !0 && n === !1 &&
|
|
2025
|
+
let t = w(ce.slice());
|
|
2026
|
+
return _n(([n], [r]) => {
|
|
2027
|
+
r === !0 && n === !1 && _t(() => {
|
|
2028
2028
|
t.current.splice(0);
|
|
2029
2029
|
}), r === !1 && n === !0 && (t.current = ce.slice());
|
|
2030
2030
|
}, [e, ce, t]), D(() => {
|
|
@@ -2032,24 +2032,24 @@ function Fa(e = !0) {
|
|
|
2032
2032
|
return (n = t.current.find((r) => r != null && r.isConnected)) != null ? n : null;
|
|
2033
2033
|
});
|
|
2034
2034
|
}
|
|
2035
|
-
function
|
|
2035
|
+
function xa(e, { ownerDocument: t }) {
|
|
2036
2036
|
let n = !!(e & 8), r = Fa(n);
|
|
2037
|
-
|
|
2037
|
+
_n(() => {
|
|
2038
2038
|
n || (t == null ? void 0 : t.activeElement) === (t == null ? void 0 : t.body) && oe(r());
|
|
2039
2039
|
}, [n]), Qr(() => {
|
|
2040
2040
|
n && oe(r());
|
|
2041
2041
|
});
|
|
2042
2042
|
}
|
|
2043
|
-
function
|
|
2044
|
-
let i =
|
|
2045
|
-
return
|
|
2043
|
+
function Sa(e, { ownerDocument: t, container: n, initialFocus: r, initialFocusFallback: o }) {
|
|
2044
|
+
let i = w(null), a = De(!!(e & 1), "focus-trap#initial-focus"), s = mn();
|
|
2045
|
+
return _n(() => {
|
|
2046
2046
|
if (e === 0) return;
|
|
2047
2047
|
if (!a) {
|
|
2048
2048
|
o != null && o.current && oe(o.current);
|
|
2049
2049
|
return;
|
|
2050
2050
|
}
|
|
2051
2051
|
let l = n.current;
|
|
2052
|
-
l &&
|
|
2052
|
+
l && _t(() => {
|
|
2053
2053
|
if (!s.current) return;
|
|
2054
2054
|
let u = t == null ? void 0 : t.activeElement;
|
|
2055
2055
|
if (r != null && r.current) {
|
|
@@ -2074,7 +2074,7 @@ function xa(e, { ownerDocument: t, container: n, initialFocus: r, initialFocusFa
|
|
|
2074
2074
|
}, [o, a, e]), i;
|
|
2075
2075
|
}
|
|
2076
2076
|
function Pa(e, { ownerDocument: t, container: n, containers: r, previousActiveElement: o }) {
|
|
2077
|
-
let i =
|
|
2077
|
+
let i = mn(), a = !!(e & 4);
|
|
2078
2078
|
Xr(t == null ? void 0 : t.defaultView, "focus", (s) => {
|
|
2079
2079
|
if (!a || !i.current) return;
|
|
2080
2080
|
let l = ro(r);
|
|
@@ -2093,125 +2093,125 @@ function io(e) {
|
|
|
2093
2093
|
var t;
|
|
2094
2094
|
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((t = e.as) != null ? t : so) !== H || E.Children.count(e.children) === 1;
|
|
2095
2095
|
}
|
|
2096
|
-
let
|
|
2097
|
-
|
|
2096
|
+
let wt = q(null);
|
|
2097
|
+
wt.displayName = "TransitionContext";
|
|
2098
2098
|
var La = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(La || {});
|
|
2099
2099
|
function Ma() {
|
|
2100
|
-
let e = j(
|
|
2100
|
+
let e = j(wt);
|
|
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
2104
|
function Na() {
|
|
2105
|
-
let e = j(
|
|
2105
|
+
let e = j(bt);
|
|
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;
|
|
2108
2108
|
}
|
|
2109
|
-
let
|
|
2110
|
-
|
|
2109
|
+
let bt = q(null);
|
|
2110
|
+
bt.displayName = "NestingContext";
|
|
2111
2111
|
function $t(e) {
|
|
2112
2112
|
return "children" in e ? $t(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
|
|
2113
2113
|
}
|
|
2114
2114
|
function ao(e, t) {
|
|
2115
|
-
let n = Ce(e), r =
|
|
2116
|
-
let
|
|
2117
|
-
|
|
2118
|
-
r.current.splice(
|
|
2115
|
+
let n = Ce(e), r = w([]), o = mn(), i = mt(), a = D((f, _ = ue.Hidden) => {
|
|
2116
|
+
let y = r.current.findIndex(({ el: m }) => m === f);
|
|
2117
|
+
y !== -1 && (de(_, { [ue.Unmount]() {
|
|
2118
|
+
r.current.splice(y, 1);
|
|
2119
2119
|
}, [ue.Hidden]() {
|
|
2120
|
-
r.current[
|
|
2120
|
+
r.current[y].state = "hidden";
|
|
2121
2121
|
} }), i.microTask(() => {
|
|
2122
|
-
var
|
|
2123
|
-
!$t(r) && o.current && ((
|
|
2122
|
+
var m;
|
|
2123
|
+
!$t(r) && o.current && ((m = n.current) == null || m.call(n));
|
|
2124
2124
|
}));
|
|
2125
2125
|
}), s = D((f) => {
|
|
2126
|
-
let
|
|
2127
|
-
return
|
|
2128
|
-
}), l =
|
|
2129
|
-
l.current.splice(0), t && (t.chains.current[
|
|
2130
|
-
l.current.push(
|
|
2131
|
-
})]), t == null || t.chains.current[
|
|
2132
|
-
Promise.all(d.current[
|
|
2133
|
-
})]),
|
|
2134
|
-
}), p = D((f,
|
|
2135
|
-
Promise.all(d.current[
|
|
2136
|
-
var
|
|
2137
|
-
(
|
|
2138
|
-
}).then(() =>
|
|
2126
|
+
let _ = r.current.find(({ el: y }) => y === f);
|
|
2127
|
+
return _ ? _.state !== "visible" && (_.state = "visible") : r.current.push({ el: f, state: "visible" }), () => a(f, ue.Unmount);
|
|
2128
|
+
}), l = w([]), u = w(Promise.resolve()), d = w({ enter: [], leave: [] }), c = D((f, _, y) => {
|
|
2129
|
+
l.current.splice(0), t && (t.chains.current[_] = t.chains.current[_].filter(([m]) => m !== f)), t == null || t.chains.current[_].push([f, new Promise((m) => {
|
|
2130
|
+
l.current.push(m);
|
|
2131
|
+
})]), t == null || t.chains.current[_].push([f, new Promise((m) => {
|
|
2132
|
+
Promise.all(d.current[_].map(([h, g]) => g)).then(() => m());
|
|
2133
|
+
})]), _ === "enter" ? u.current = u.current.then(() => t == null ? void 0 : t.wait.current).then(() => y(_)) : y(_);
|
|
2134
|
+
}), p = D((f, _, y) => {
|
|
2135
|
+
Promise.all(d.current[_].splice(0).map(([m, h]) => h)).then(() => {
|
|
2136
|
+
var m;
|
|
2137
|
+
(m = l.current.shift()) == null || m();
|
|
2138
|
+
}).then(() => y(_));
|
|
2139
2139
|
});
|
|
2140
|
-
return
|
|
2140
|
+
return x(() => ({ children: r, register: s, unregister: a, onStart: c, onStop: p, wait: u, chains: d }), [s, a, r, c, p, d, u]);
|
|
2141
2141
|
}
|
|
2142
2142
|
let so = H, lo = ct.RenderStrategy;
|
|
2143
2143
|
function Da(e, t) {
|
|
2144
2144
|
var n, r;
|
|
2145
|
-
let { transition: o = !0, beforeEnter: i, afterEnter: a, beforeLeave: s, afterLeave: l, enter: u, enterFrom: d, enterTo: c, entered: p, leave: f, leaveFrom:
|
|
2145
|
+
let { transition: o = !0, beforeEnter: i, afterEnter: a, beforeLeave: s, afterLeave: l, enter: u, enterFrom: d, enterTo: c, entered: p, leave: f, leaveFrom: _, leaveTo: y, ...m } = e, h = w(null), g = io(e), C = J(...g ? [h, t] : t === null ? [] : [t]), b = (n = m.unmount) == null || n ? ue.Unmount : ue.Hidden, { show: $, appear: F, initial: A } = Ma(), [L, S] = k($ ? "visible" : "hidden"), M = Na(), { register: U, unregister: Q } = M;
|
|
2146
2146
|
W(() => U(h), [U, h]), W(() => {
|
|
2147
|
-
if (
|
|
2147
|
+
if (b === ue.Hidden && h.current) {
|
|
2148
2148
|
if ($ && L !== "visible") {
|
|
2149
|
-
|
|
2149
|
+
S("visible");
|
|
2150
2150
|
return;
|
|
2151
2151
|
}
|
|
2152
2152
|
return de(L, { hidden: () => Q(h), visible: () => U(h) });
|
|
2153
2153
|
}
|
|
2154
|
-
}, [L, h, U, Q, $,
|
|
2154
|
+
}, [L, h, U, Q, $, b]);
|
|
2155
2155
|
let ke = Xe();
|
|
2156
2156
|
W(() => {
|
|
2157
|
-
if (
|
|
2158
|
-
}, [h, L, ke,
|
|
2159
|
-
let Ct = A && !F, Qe = F && $ && A, Fe =
|
|
2160
|
-
Fe.current || (
|
|
2157
|
+
if (g && ke && L === "visible" && h.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
2158
|
+
}, [h, L, ke, g]);
|
|
2159
|
+
let Ct = A && !F, Qe = F && $ && A, Fe = w(!1), xe = ao(() => {
|
|
2160
|
+
Fe.current || (S("hidden"), Q(h));
|
|
2161
2161
|
}, M), Je = D((Tt) => {
|
|
2162
2162
|
Fe.current = !0;
|
|
2163
2163
|
let et = Tt ? "enter" : "leave";
|
|
2164
|
-
|
|
2164
|
+
xe.onStart(h, et, (Ae) => {
|
|
2165
2165
|
Ae === "enter" ? i == null || i() : Ae === "leave" && (s == null || s());
|
|
2166
2166
|
});
|
|
2167
2167
|
}), le = D((Tt) => {
|
|
2168
2168
|
let et = Tt ? "enter" : "leave";
|
|
2169
|
-
Fe.current = !1,
|
|
2169
|
+
Fe.current = !1, xe.onStop(h, et, (Ae) => {
|
|
2170
2170
|
Ae === "enter" ? a == null || a() : Ae === "leave" && (l == null || l());
|
|
2171
|
-
}), et === "leave" && !$t(
|
|
2171
|
+
}), et === "leave" && !$t(xe) && (S("hidden"), Q(h));
|
|
2172
2172
|
});
|
|
2173
2173
|
N(() => {
|
|
2174
|
-
|
|
2175
|
-
}, [$,
|
|
2176
|
-
let V = !(!o || !
|
|
2177
|
-
return L === "visible" && (He |= G.Open), L === "hidden" && (He |= G.Closed), R.enter && (He |= G.Opening), R.leave && (He |= G.Closing), E.createElement(
|
|
2174
|
+
g && o || (Je($), le($));
|
|
2175
|
+
}, [$, g, o]);
|
|
2176
|
+
let V = !(!o || !g || !ke || Ct), [, R] = na(V, h, $, { start: Je, end: le }), yo = ve({ ref: C, className: ((r = Bt(m.className, Qe && u, Qe && d, R.enter && u, R.enter && R.closed && d, R.enter && !R.closed && c, R.leave && f, R.leave && !R.closed && _, R.leave && R.closed && y, !R.transition && $ && p)) == null ? void 0 : r.trim()) || void 0, ...ta(R) }), He = 0;
|
|
2177
|
+
return L === "visible" && (He |= G.Open), L === "hidden" && (He |= G.Closed), R.enter && (He |= G.Opening), R.leave && (He |= G.Closing), E.createElement(bt.Provider, { value: xe }, E.createElement(aa, { value: He }, Y({ ourProps: yo, theirProps: m, defaultTag: so, features: lo, visible: L === "visible", name: "Transition.Child" })));
|
|
2178
2178
|
}
|
|
2179
2179
|
function Ha(e, t) {
|
|
2180
|
-
let { show: n, appear: r = !1, unmount: o = !0, ...i } = e, a =
|
|
2180
|
+
let { show: n, appear: r = !1, unmount: o = !0, ...i } = e, a = w(null), s = io(e), l = J(...s ? [a, t] : t === null ? [] : [t]);
|
|
2181
2181
|
Xe();
|
|
2182
|
-
let u =
|
|
2182
|
+
let u = gt();
|
|
2183
2183
|
if (n === void 0 && u !== null && (n = (u & G.Open) === G.Open), n === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
2184
2184
|
let [d, c] = k(n ? "visible" : "hidden"), p = ao(() => {
|
|
2185
2185
|
n || c("hidden");
|
|
2186
|
-
}), [f,
|
|
2186
|
+
}), [f, _] = k(!0), y = w([n]);
|
|
2187
2187
|
W(() => {
|
|
2188
|
-
f !== !1 &&
|
|
2189
|
-
}, [
|
|
2190
|
-
let
|
|
2191
|
-
|
|
2188
|
+
f !== !1 && y.current[y.current.length - 1] !== n && (y.current.push(n), _(!1));
|
|
2189
|
+
}, [y, n]);
|
|
2190
|
+
let m = x(() => ({ show: n, appear: r, initial: f }), [n, r, f]);
|
|
2191
|
+
Yr(n, a, () => c("hidden")), W(() => {
|
|
2192
2192
|
n ? c("visible") : !$t(p) && a.current !== null && c("hidden");
|
|
2193
2193
|
}, [n, p]);
|
|
2194
|
-
let h = { unmount: o },
|
|
2195
|
-
var
|
|
2196
|
-
f &&
|
|
2194
|
+
let h = { unmount: o }, g = D(() => {
|
|
2195
|
+
var b;
|
|
2196
|
+
f && _(!1), (b = e.beforeEnter) == null || b.call(e);
|
|
2197
2197
|
}), C = D(() => {
|
|
2198
|
-
var
|
|
2199
|
-
f &&
|
|
2198
|
+
var b;
|
|
2199
|
+
f && _(!1), (b = e.beforeLeave) == null || b.call(e);
|
|
2200
2200
|
});
|
|
2201
|
-
return E.createElement(
|
|
2201
|
+
return E.createElement(bt.Provider, { value: p }, E.createElement(wt.Provider, { value: m }, Y({ ourProps: { ...h, as: H, children: E.createElement(co, { ref: l, ...h, ...i, beforeEnter: g, beforeLeave: C }) }, theirProps: {}, defaultTag: H, features: lo, visible: d === "visible", name: "Transition" })));
|
|
2202
2202
|
}
|
|
2203
2203
|
function Aa(e, t) {
|
|
2204
|
-
let n = j(
|
|
2204
|
+
let n = j(wt) !== null, r = gt() !== null;
|
|
2205
2205
|
return E.createElement(E.Fragment, null, !n && r ? E.createElement(Xt, { ref: t, ...e }) : E.createElement(co, { ref: t, ...e }));
|
|
2206
2206
|
}
|
|
2207
|
-
let Xt = z(Ha), co = z(Da),
|
|
2207
|
+
let Xt = z(Ha), co = z(Da), yn = z(Aa), ie = Object.assign(Xt, { Child: yn, Root: Xt });
|
|
2208
2208
|
var Oa = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Oa || {}), Ia = ((e) => (e[e.SetTitleId = 0] = "SetTitleId", e))(Ia || {});
|
|
2209
2209
|
let Ra = { 0(e, t) {
|
|
2210
2210
|
return e.titleId === t.id ? e : { ...e, titleId: t.id };
|
|
2211
|
-
} },
|
|
2212
|
-
|
|
2211
|
+
} }, gn = q(null);
|
|
2212
|
+
gn.displayName = "DialogContext";
|
|
2213
2213
|
function Et(e) {
|
|
2214
|
-
let t = j(
|
|
2214
|
+
let t = j(gn);
|
|
2215
2215
|
if (t === null) {
|
|
2216
2216
|
let n = new Error(`<${e} /> is missing a parent <Dialog /> component.`);
|
|
2217
2217
|
throw Error.captureStackTrace && Error.captureStackTrace(n, Et), n;
|
|
@@ -2222,32 +2222,32 @@ function Va(e, t) {
|
|
|
2222
2222
|
return de(t.type, Ra, e, t);
|
|
2223
2223
|
}
|
|
2224
2224
|
let Kn = z(function(e, t) {
|
|
2225
|
-
let n = fe(), { id: r = `headlessui-dialog-${n}`, open: o, onClose: i, initialFocus: a, role: s = "dialog", autoFocus: l = !0, __demoMode: u = !1, ...d } = e, c =
|
|
2225
|
+
let n = fe(), { id: r = `headlessui-dialog-${n}`, open: o, onClose: i, initialFocus: a, role: s = "dialog", autoFocus: l = !0, __demoMode: u = !1, ...d } = e, c = w(!1);
|
|
2226
2226
|
s = function() {
|
|
2227
2227
|
return s === "dialog" || s === "alertdialog" ? s : (c.current || (c.current = !0, console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
|
|
2228
2228
|
}();
|
|
2229
|
-
let p =
|
|
2229
|
+
let p = gt();
|
|
2230
2230
|
o === void 0 && p !== null && (o = (p & G.Open) === G.Open);
|
|
2231
|
-
let f =
|
|
2231
|
+
let f = w(null), _ = J(f, t), y = Ze(f), m = o ? 0 : 1, [h, g] = Ye(Va, { titleId: null, descriptionId: null, panelRef: en() }), C = D(() => i(!1)), b = D((V) => g({ type: 0, id: V })), $ = Xe() ? m === 0 : !1, [F, A] = _a(), L = { get current() {
|
|
2232
2232
|
var V;
|
|
2233
2233
|
return (V = h.panelRef.current) != null ? V : f.current;
|
|
2234
|
-
} }, { resolveContainers:
|
|
2234
|
+
} }, { resolveContainers: S, mainTreeNodeRef: M, MainTreeNode: U } = ba({ portals: F, defaultContainers: [L] }), Q = p !== null ? (p & G.Closing) === G.Closing : !1;
|
|
2235
2235
|
Ni(u || Q ? !1 : $, { allowed: D(() => {
|
|
2236
2236
|
var V, R;
|
|
2237
2237
|
return [(R = (V = f.current) == null ? void 0 : V.closest("[data-headlessui-portal]")) != null ? R : null];
|
|
2238
2238
|
}), disallowed: D(() => {
|
|
2239
2239
|
var V, R;
|
|
2240
2240
|
return [(R = (V = M.current) == null ? void 0 : V.closest("body > *:not(#headlessui-portal-root)")) != null ? R : null];
|
|
2241
|
-
}) }), Bi($,
|
|
2241
|
+
}) }), Bi($, S, (V) => {
|
|
2242
2242
|
V.preventDefault(), C();
|
|
2243
|
-
}),
|
|
2243
|
+
}), ga($, y == null ? void 0 : y.defaultView, (V) => {
|
|
2244
2244
|
V.preventDefault(), V.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), C();
|
|
2245
|
-
}), Xi(u || Q ? !1 : $,
|
|
2246
|
-
let [ke, Ct] = Ci(), Qe =
|
|
2247
|
-
return $ && !u && (le |=
|
|
2245
|
+
}), Xi(u || Q ? !1 : $, y, S), Yr($, f, C);
|
|
2246
|
+
let [ke, Ct] = Ci(), Qe = x(() => [{ dialogState: m, close: C, setTitleId: b }, h], [m, h, C, b]), Fe = x(() => ({ open: m === 0 }), [m]), xe = { ref: _, id: r, role: s, tabIndex: -1, "aria-modal": u ? void 0 : m === 0 ? !0 : void 0, "aria-labelledby": h.titleId, "aria-describedby": ke }, Je = !wa(), le = _e.None;
|
|
2247
|
+
return $ && !u && (le |= _e.RestoreFocus, le |= _e.TabLock, l && (le |= _e.AutoFocus), Je && (le |= _e.InitialFocus)), E.createElement(sa, null, E.createElement(Yn, { force: !0 }, E.createElement(ya, null, E.createElement(gn.Provider, { value: Qe }, E.createElement(no, { target: f }, E.createElement(Yn, { force: !1 }, E.createElement(Ct, { slot: Fe }, E.createElement(A, null, E.createElement(ka, { initialFocus: a, initialFocusFallback: f, containers: S, features: le }, E.createElement(Pi, { value: C }, Y({ ourProps: xe, theirProps: d, slot: Fe, defaultTag: Ua, features: ja, visible: m === 0, name: "Dialog" })))))))))), E.createElement($i, null, E.createElement(U, null)));
|
|
2248
2248
|
}), Ua = "div", ja = ct.RenderStrategy | ct.Static;
|
|
2249
2249
|
function Wa(e, t) {
|
|
2250
|
-
let { transition: n = !1, open: r, ...o } = e, i =
|
|
2250
|
+
let { transition: n = !1, open: r, ...o } = e, i = gt(), a = e.hasOwnProperty("open") || i !== null, s = e.hasOwnProperty("onClose");
|
|
2251
2251
|
if (!a && !s) throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
|
|
2252
2252
|
if (!a) throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");
|
|
2253
2253
|
if (!s) throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");
|
|
@@ -2257,27 +2257,27 @@ function Wa(e, t) {
|
|
|
2257
2257
|
}
|
|
2258
2258
|
let za = "div";
|
|
2259
2259
|
function Ba(e, t) {
|
|
2260
|
-
let n = fe(), { id: r = `headlessui-dialog-panel-${n}`, transition: o = !1, ...i } = e, [{ dialogState: a }, s] = Et("Dialog.Panel"), l = J(t, s.panelRef), u =
|
|
2260
|
+
let n = fe(), { id: r = `headlessui-dialog-panel-${n}`, transition: o = !1, ...i } = e, [{ dialogState: a }, s] = Et("Dialog.Panel"), l = J(t, s.panelRef), u = x(() => ({ open: a === 0 }), [a]), d = D((c) => {
|
|
2261
2261
|
c.stopPropagation();
|
|
2262
2262
|
});
|
|
2263
|
-
return E.createElement(o ?
|
|
2263
|
+
return E.createElement(o ? yn : H, null, Y({ ourProps: { ref: l, id: r, onClick: d }, theirProps: i, slot: u, defaultTag: za, name: "Dialog.Panel" }));
|
|
2264
2264
|
}
|
|
2265
|
-
let
|
|
2266
|
-
function
|
|
2267
|
-
let { transition: n = !1, ...r } = e, [{ dialogState: o }] = Et("Dialog.Backdrop"), i =
|
|
2268
|
-
return E.createElement(n ?
|
|
2265
|
+
let qa = "div";
|
|
2266
|
+
function Ya(e, t) {
|
|
2267
|
+
let { transition: n = !1, ...r } = e, [{ dialogState: o }] = Et("Dialog.Backdrop"), i = x(() => ({ open: o === 0 }), [o]);
|
|
2268
|
+
return E.createElement(n ? yn : H, null, Y({ ourProps: { ref: t, "aria-hidden": !0 }, theirProps: r, slot: i, defaultTag: qa, name: "Dialog.Backdrop" }));
|
|
2269
2269
|
}
|
|
2270
2270
|
let Ka = "h2";
|
|
2271
2271
|
function Ga(e, t) {
|
|
2272
2272
|
let n = fe(), { id: r = `headlessui-dialog-title-${n}`, ...o } = e, [{ dialogState: i, setTitleId: a }] = Et("Dialog.Title"), s = J(t);
|
|
2273
2273
|
N(() => (a(r), () => a(null)), [r, a]);
|
|
2274
|
-
let l =
|
|
2275
|
-
return
|
|
2274
|
+
let l = x(() => ({ open: i === 0 }), [i]);
|
|
2275
|
+
return Y({ ourProps: { ref: s, id: r }, theirProps: o, slot: l, defaultTag: Ka, name: "Dialog.Title" });
|
|
2276
2276
|
}
|
|
2277
2277
|
let Za = z(Wa), uo = z(Ba);
|
|
2278
|
-
z(
|
|
2279
|
-
let Xa = z(Ga), Qa = Object.assign(Za, { Panel: uo, Title: Xa, Description:
|
|
2280
|
-
const Ja = "
|
|
2278
|
+
z(Ya);
|
|
2279
|
+
let Xa = z(Ga), Qa = Object.assign(Za, { Panel: uo, Title: Xa, Description: xi });
|
|
2280
|
+
const Ja = "_root_1hpzn_1", es = "_modal_1hpzn_10", ts = "_container_1hpzn_13", ns = "_page_1hpzn_16", rs = "_close_1hpzn_19", rt = {
|
|
2281
2281
|
root: Ja,
|
|
2282
2282
|
modal: es,
|
|
2283
2283
|
container: ts,
|
|
@@ -2294,21 +2294,21 @@ const Ja = "_root_1jvth_1", es = "_modal_1jvth_10", ts = "_container_1jvth_13",
|
|
|
2294
2294
|
strokeWidth: i,
|
|
2295
2295
|
className: a = "",
|
|
2296
2296
|
viewBox: s = "0 0 20 20"
|
|
2297
|
-
} = e, l =
|
|
2297
|
+
} = e, l = x(() => {
|
|
2298
2298
|
switch (n) {
|
|
2299
2299
|
case "sm":
|
|
2300
|
-
return "w-4 h-4";
|
|
2300
|
+
return "yvlw-w-4 yvlw-h-4";
|
|
2301
2301
|
case "lg":
|
|
2302
|
-
return "w-7 h-7";
|
|
2302
|
+
return "yvlw-w-7 yvlw-h-7";
|
|
2303
2303
|
case "xl":
|
|
2304
|
-
return "w-10 h-10";
|
|
2304
|
+
return "yvlw-w-10 yvlw-h-10";
|
|
2305
2305
|
case "custom":
|
|
2306
2306
|
return "";
|
|
2307
2307
|
default:
|
|
2308
|
-
return "w-5 h-5";
|
|
2308
|
+
return "yvlw-w-5 yvlw-h-5";
|
|
2309
2309
|
}
|
|
2310
2310
|
}, [n]);
|
|
2311
|
-
return /* @__PURE__ */
|
|
2311
|
+
return /* @__PURE__ */ v(
|
|
2312
2312
|
"svg",
|
|
2313
2313
|
{
|
|
2314
2314
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2320,91 +2320,91 @@ const Ja = "_root_1jvth_1", es = "_modal_1jvth_10", ts = "_container_1jvth_13",
|
|
|
2320
2320
|
children: t
|
|
2321
2321
|
}
|
|
2322
2322
|
);
|
|
2323
|
-
}, as = () => /* @__PURE__ */
|
|
2323
|
+
}, as = () => /* @__PURE__ */ v(se, { children: /* @__PURE__ */ v("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" }) }), fo = (e) => /* @__PURE__ */ v(se, { ...e, children: /* @__PURE__ */ v(
|
|
2324
2324
|
"path",
|
|
2325
2325
|
{
|
|
2326
2326
|
fillRule: "evenodd",
|
|
2327
2327
|
d: "M7.455 2.004a.75.75 0 01.26.77 7 7 0 009.958 7.967.75.75 0 011.067.853A8.5 8.5 0 116.647 1.921a.75.75 0 01.808.083z",
|
|
2328
2328
|
clipRule: "evenodd"
|
|
2329
2329
|
}
|
|
2330
|
-
) }), ss = (e) => /* @__PURE__ */
|
|
2331
|
-
/* @__PURE__ */
|
|
2332
|
-
/* @__PURE__ */
|
|
2333
|
-
] }), ls = (e) => /* @__PURE__ */
|
|
2334
|
-
/* @__PURE__ */
|
|
2335
|
-
/* @__PURE__ */
|
|
2336
|
-
] }), cs = (e) => /* @__PURE__ */
|
|
2337
|
-
/* @__PURE__ */
|
|
2338
|
-
/* @__PURE__ */
|
|
2339
|
-
] }), us = (e) => /* @__PURE__ */
|
|
2340
|
-
/* @__PURE__ */
|
|
2341
|
-
/* @__PURE__ */
|
|
2342
|
-
] }), ds = (e) => /* @__PURE__ */
|
|
2343
|
-
/* @__PURE__ */
|
|
2344
|
-
/* @__PURE__ */
|
|
2330
|
+
) }), ss = (e) => /* @__PURE__ */ v(se, { ...e, viewBox: "0 0 24 24", children: [
|
|
2331
|
+
/* @__PURE__ */ v("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2332
|
+
/* @__PURE__ */ v("path", { d: "M19.07 4.93l-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s6-2.69 6-6c0-1.66-.67-3.16-1.76-4.24l-1.41 1.41C15.55 9.9 16 10.9 16 12c0 2.21-1.79 4-4 4s-4-1.79-4-4c0-1.86 1.28-3.41 3-3.86v2.14c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2s2-.9 2-2c0-.74-.4-1.38-1-1.72V2h-1C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-2.76-1.12-5.26-2.93-7.07z" })
|
|
2333
|
+
] }), ls = (e) => /* @__PURE__ */ v(se, { ...e, viewBox: "0 0 24 24", children: [
|
|
2334
|
+
/* @__PURE__ */ v("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2335
|
+
/* @__PURE__ */ v("path", { d: "M3.72 6.04c.47.46 1.21.48 1.71.06.37-.32.69-.51.87-.43.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1h1.21c.69 0 1.25-.56 1.25-1.25s-.56-1.25-1.25-1.25h-1.22c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3c-1.09 0-2.04.63-2.7 1.22-.53.48-.53 1.32-.02 1.82zm10.16 12.51c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z" })
|
|
2336
|
+
] }), cs = (e) => /* @__PURE__ */ v(se, { ...e, viewBox: "0 0 24 24", children: [
|
|
2337
|
+
/* @__PURE__ */ v("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2338
|
+
/* @__PURE__ */ v("path", { d: "M3.72 6.04c.47.46 1.21.48 1.71.06.37-.32.69-.51.87-.43.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1h1.21c.69 0 1.25-.56 1.25-1.25s-.56-1.25-1.25-1.25h-1.22c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3c-1.09 0-2.04.63-2.7 1.22-.53.48-.53 1.32-.02 1.82zm10.16 12.51c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z" })
|
|
2339
|
+
] }), us = (e) => /* @__PURE__ */ v(se, { ...e, children: [
|
|
2340
|
+
/* @__PURE__ */ v("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2341
|
+
/* @__PURE__ */ v("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
|
+
] }), ds = (e) => /* @__PURE__ */ v(se, { ...e, children: /* @__PURE__ */ v("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" }) }), fs = (e) => /* @__PURE__ */ v(se, { ...e, children: /* @__PURE__ */ v("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" }) }), ps = (e) => /* @__PURE__ */ v(se, { ...e, viewBox: "0 0 99 32", children: [
|
|
2343
|
+
/* @__PURE__ */ v("g", { clipPath: "url(#clip0_9581_165880)", children: [
|
|
2344
|
+
/* @__PURE__ */ v(
|
|
2345
2345
|
"path",
|
|
2346
2346
|
{
|
|
2347
2347
|
d: "M98.9474 20.7006V2.701C98.9474 1.20997 97.7302 0 96.2304 0H87.4325H2.71699C1.21714 0 0 1.20997 0 2.701V29.299C0 30.79 1.21714 32 2.71699 32H86.6203C87.2911 32 87.938 31.7523 88.4388 31.3069L98.0489 22.7084C98.6191 22.1964 98.9474 21.4651 98.9474 20.7006Z",
|
|
2348
2348
|
fill: "#46B2C8"
|
|
2349
2349
|
}
|
|
2350
2350
|
),
|
|
2351
|
-
/* @__PURE__ */
|
|
2351
|
+
/* @__PURE__ */ v(
|
|
2352
2352
|
"path",
|
|
2353
2353
|
{
|
|
2354
2354
|
d: "M24.3666 25.2683H20.593C19.3951 25.2683 18.4199 24.2989 18.4199 23.108V8.8908C18.4199 7.69988 19.3951 6.73047 20.593 6.73047H24.3642C25.5622 6.73047 26.5374 7.69988 26.5374 8.8908V23.1056C26.5398 24.2989 25.5646 25.2683 24.3666 25.2683ZM20.593 8.52161C20.3894 8.52161 20.2217 8.68596 20.2217 8.8908V23.1056C20.2217 23.3081 20.387 23.4748 20.593 23.4748H24.3642C24.5679 23.4748 24.7356 23.3104 24.7356 23.1056V8.8908C24.7356 8.68834 24.5703 8.52161 24.3642 8.52161H20.593Z",
|
|
2355
2355
|
fill: "#C7E8EF"
|
|
2356
2356
|
}
|
|
2357
2357
|
),
|
|
2358
|
-
/* @__PURE__ */
|
|
2358
|
+
/* @__PURE__ */ v(
|
|
2359
2359
|
"path",
|
|
2360
2360
|
{
|
|
2361
2361
|
d: "M68.9385 6.74805H67.1367V25.2549H68.9385V6.74805Z",
|
|
2362
2362
|
fill: "white"
|
|
2363
2363
|
}
|
|
2364
2364
|
),
|
|
2365
|
-
/* @__PURE__ */
|
|
2365
|
+
/* @__PURE__ */ v(
|
|
2366
2366
|
"path",
|
|
2367
2367
|
{
|
|
2368
2368
|
d: "M55.0725 8.52161V6.73047H47.8535V25.2683H55.0725V23.4748H49.6577V18.9874H52.9664V17.1963H49.6577V8.52161H55.0725Z",
|
|
2369
2369
|
fill: "white"
|
|
2370
2370
|
}
|
|
2371
2371
|
),
|
|
2372
|
-
/* @__PURE__ */
|
|
2372
|
+
/* @__PURE__ */ v(
|
|
2373
2373
|
"path",
|
|
2374
2374
|
{
|
|
2375
2375
|
d: "M46.528 6.73828L44.4795 23.4993C44.283 24.5354 43.4061 25.2595 42.3447 25.2595C41.2833 25.2595 40.404 24.5354 40.2099 23.4993L40.2003 23.4421L38.1758 6.73828H39.9919L41.9853 23.1896C42.0404 23.4183 42.2081 23.4683 42.3447 23.4683C42.4789 23.4683 42.649 23.4183 42.7041 23.1896L44.7119 6.73828H46.528Z",
|
|
2376
2376
|
fill: "white"
|
|
2377
2377
|
}
|
|
2378
2378
|
),
|
|
2379
|
-
/* @__PURE__ */
|
|
2379
|
+
/* @__PURE__ */ v(
|
|
2380
2380
|
"path",
|
|
2381
2381
|
{
|
|
2382
2382
|
d: "M36.9104 6.73047V23.1056C36.9104 24.2965 35.9353 25.2659 34.7373 25.2659H30.9685C29.7681 25.2659 28.793 24.2965 28.793 23.1056V6.73047H30.5947V23.1056C30.5947 23.3104 30.7624 23.4748 30.9685 23.4748H34.7373C34.9433 23.4748 35.1087 23.3081 35.1087 23.1056V6.73047H36.9104Z",
|
|
2383
2383
|
fill: "#C7E8EF"
|
|
2384
2384
|
}
|
|
2385
2385
|
),
|
|
2386
|
-
/* @__PURE__ */
|
|
2386
|
+
/* @__PURE__ */ v(
|
|
2387
2387
|
"path",
|
|
2388
2388
|
{
|
|
2389
2389
|
d: "M78.6291 8.53181V6.73828H71.4102V25.2618H73.2143V18.9976H76.5231V17.2065H73.2143V8.53181H78.6291Z",
|
|
2390
2390
|
fill: "white"
|
|
2391
2391
|
}
|
|
2392
2392
|
),
|
|
2393
|
-
/* @__PURE__ */
|
|
2393
|
+
/* @__PURE__ */ v(
|
|
2394
2394
|
"path",
|
|
2395
2395
|
{
|
|
2396
2396
|
d: "M15.8797 6.73047L13.3089 14.9764L10.9034 6.73047H9.02734L12.3793 18.2157V25.2516H14.181V18.2324L17.7653 6.73047H15.8797Z",
|
|
2397
2397
|
fill: "#C7E8EF"
|
|
2398
2398
|
}
|
|
2399
2399
|
),
|
|
2400
|
-
/* @__PURE__ */
|
|
2400
|
+
/* @__PURE__ */ v(
|
|
2401
2401
|
"path",
|
|
2402
2402
|
{
|
|
2403
2403
|
d: "M85.7767 6.73047L83.2058 14.9764L80.7979 6.73047H78.9219L82.2738 18.2157V25.2516H84.0755V18.2324L87.6623 6.73047H85.7767Z",
|
|
2404
2404
|
fill: "white"
|
|
2405
2405
|
}
|
|
2406
2406
|
),
|
|
2407
|
-
/* @__PURE__ */
|
|
2407
|
+
/* @__PURE__ */ v(
|
|
2408
2408
|
"path",
|
|
2409
2409
|
{
|
|
2410
2410
|
d: "M61.2349 18.4801C63.4535 17.5226 65.0085 15.3241 65.0085 12.7732V8.8908C65.0085 7.69988 64.0357 6.73047 62.8354 6.73047H59.0618C57.8638 6.73047 56.8887 7.69988 56.8887 8.8908V18.0918V18.9874V25.2493H58.6904V18.9898H58.7527C58.9659 18.9898 59.1768 18.9779 59.3828 18.9588L63.6093 25.254H65.78L61.2349 18.4801ZM58.6928 17.1986V8.89318C58.6928 8.68834 58.8581 8.52399 59.0618 8.52399H62.8354C63.039 8.52399 63.2044 8.69072 63.2044 8.89318V12.7756C63.2044 15.2146 61.2085 17.1986 58.7551 17.1986H58.6928Z",
|
|
@@ -2412,7 +2412,7 @@ const Ja = "_root_1jvth_1", es = "_modal_1jvth_10", ts = "_container_1jvth_13",
|
|
|
2412
2412
|
}
|
|
2413
2413
|
)
|
|
2414
2414
|
] }),
|
|
2415
|
-
/* @__PURE__ */
|
|
2415
|
+
/* @__PURE__ */ v("defs", { children: /* @__PURE__ */ v("clipPath", { id: "clip0_9581_165880", children: /* @__PURE__ */ v("rect", { width: "98.9474", height: "32", fill: "white" }) }) })
|
|
2416
2416
|
] });
|
|
2417
2417
|
class Qt {
|
|
2418
2418
|
static async loadDetector() {
|
|
@@ -2434,18 +2434,18 @@ class Qt {
|
|
|
2434
2434
|
}
|
|
2435
2435
|
}
|
|
2436
2436
|
}
|
|
2437
|
-
const
|
|
2437
|
+
const vs = (e, t) => {
|
|
2438
2438
|
let n;
|
|
2439
2439
|
return typeof OffscreenCanvas < "u" ? n = new OffscreenCanvas(e, t) : (n = document.createElement("canvas"), n.width = e, n.height = t), n;
|
|
2440
2440
|
}, po = (e, t, n, r) => {
|
|
2441
2441
|
let o = 0, i = 0, a = t, s = n;
|
|
2442
|
-
const u =
|
|
2442
|
+
const u = vs(t, n).getContext("2d");
|
|
2443
2443
|
return u.drawImage(e, 0, 0), u.getImageData(o, i, a, s);
|
|
2444
2444
|
}, hs = (e) => new Promise((t) => {
|
|
2445
2445
|
const n = document.createElement("canvas");
|
|
2446
2446
|
n.width = e.width, n.height = e.height, n.getContext("2d").putImageData(e, 0, 0), n.toBlob((o) => t(o));
|
|
2447
2447
|
});
|
|
2448
|
-
function
|
|
2448
|
+
function _s() {
|
|
2449
2449
|
if (MediaRecorder.isTypeSupported("video/webm; codecs=vp9"))
|
|
2450
2450
|
return { mimeType: "video/webm; codecs=vp9" };
|
|
2451
2451
|
if (MediaRecorder.isTypeSupported("video/webm"))
|
|
@@ -2453,10 +2453,10 @@ function ms() {
|
|
|
2453
2453
|
if (MediaRecorder.isTypeSupported("video/mp4"))
|
|
2454
2454
|
return { mimeType: "video/mp4" };
|
|
2455
2455
|
}
|
|
2456
|
-
function
|
|
2456
|
+
function vo(e = {}) {
|
|
2457
2457
|
const { onRecord: t = () => {
|
|
2458
2458
|
}, onStop: n = () => {
|
|
2459
|
-
} } = e, r =
|
|
2459
|
+
} } = e, r = w([]), o = w(null), i = w(null), a = I((c) => {
|
|
2460
2460
|
r.current.push(c);
|
|
2461
2461
|
}, []), s = I(async (c) => {
|
|
2462
2462
|
if (o.current)
|
|
@@ -2470,7 +2470,7 @@ function _o(e = {}) {
|
|
|
2470
2470
|
}, []), d = I((c) => {
|
|
2471
2471
|
i.current || (i.current = new MediaRecorder(
|
|
2472
2472
|
c,
|
|
2473
|
-
|
|
2473
|
+
_s()
|
|
2474
2474
|
), i.current.ondataavailable = l, i.current.onstop = u, i.current.start(1e3));
|
|
2475
2475
|
}, []);
|
|
2476
2476
|
return {
|
|
@@ -2485,7 +2485,7 @@ function _o(e = {}) {
|
|
|
2485
2485
|
function Me(e, t) {
|
|
2486
2486
|
return Math.sqrt(e ** 2 + t ** 2);
|
|
2487
2487
|
}
|
|
2488
|
-
function
|
|
2488
|
+
function ms(e) {
|
|
2489
2489
|
const t = e.slice();
|
|
2490
2490
|
for (let n = t.length - 1; n > 0; n--) {
|
|
2491
2491
|
const r = Math.floor(Math.random() * (n + 1));
|
|
@@ -2493,7 +2493,7 @@ function vs(e) {
|
|
|
2493
2493
|
}
|
|
2494
2494
|
return t;
|
|
2495
2495
|
}
|
|
2496
|
-
function
|
|
2496
|
+
function ys(e, t) {
|
|
2497
2497
|
return new Promise((n, r) => {
|
|
2498
2498
|
const o = new File([e], `${Date.now()}`, {
|
|
2499
2499
|
type: t
|
|
@@ -2501,10 +2501,10 @@ function gs(e, t) {
|
|
|
2501
2501
|
i.readAsDataURL(o), i.onload = () => n(i.result), i.onerror = (a) => r(a);
|
|
2502
2502
|
});
|
|
2503
2503
|
}
|
|
2504
|
-
const
|
|
2505
|
-
function
|
|
2504
|
+
const gs = "https://identity.dev.svc.youverify.co";
|
|
2505
|
+
function ws() {
|
|
2506
2506
|
return { postData: async (t) => {
|
|
2507
|
-
const { faceImage: n, publicKey: r, passed: o, metadata: i } = t, a = await fetch(`${
|
|
2507
|
+
const { faceImage: n, publicKey: r, passed: o, metadata: i } = t, a = await fetch(`${gs}/v1/sdk/identity/liveness/`, {
|
|
2508
2508
|
method: "POST",
|
|
2509
2509
|
headers: {
|
|
2510
2510
|
"Content-Type": "application/json"
|
|
@@ -2519,10 +2519,10 @@ function bs() {
|
|
|
2519
2519
|
});
|
|
2520
2520
|
if (!a.ok)
|
|
2521
2521
|
throw a;
|
|
2522
|
-
return await a.json();
|
|
2522
|
+
return (await a.json()).data;
|
|
2523
2523
|
} };
|
|
2524
2524
|
}
|
|
2525
|
-
const
|
|
2525
|
+
const bs = 360, $s = "#125766", Es = "https://cdn.youverify.co/1721901834404-q2nxqyng5klm918b3BDVU.jpg", ho = {
|
|
2526
2526
|
"complete-the-circle": {
|
|
2527
2527
|
Icon: ss,
|
|
2528
2528
|
name: "Complete The Circle ⭕️",
|
|
@@ -2543,7 +2543,7 @@ const ws = 360, $s = "#125766", Es = "https://cdn.youverify.co/1721901834404-q2n
|
|
|
2543
2543
|
name: "Facial Expressions 🤪",
|
|
2544
2544
|
description: "First position your face in the camera frame. Then move your head in a circle to show all the angles of your face"
|
|
2545
2545
|
}
|
|
2546
|
-
},
|
|
2546
|
+
}, _o = q({
|
|
2547
2547
|
tasks: [],
|
|
2548
2548
|
namespace: "",
|
|
2549
2549
|
user: void 0,
|
|
@@ -2574,50 +2574,50 @@ function Cs(e) {
|
|
|
2574
2574
|
onSuccess: l = () => {
|
|
2575
2575
|
},
|
|
2576
2576
|
metadata: u
|
|
2577
|
-
} = e, [d, c] = k(0), [p, f] = k(0), [
|
|
2577
|
+
} = e, [d, c] = k(0), [p, f] = k(0), [_, y] = k(null), { saveStream: m, savePhoto: h, savedPhoto: g } = vo(), { postData: C } = ws(), b = x(
|
|
2578
2578
|
() => p === n.length,
|
|
2579
2579
|
[n, p]
|
|
2580
2580
|
), $ = () => {
|
|
2581
|
-
f((
|
|
2582
|
-
}, F = (
|
|
2581
|
+
f((S) => S + 1), c((S) => S + 1);
|
|
2582
|
+
}, F = (S) => {
|
|
2583
2583
|
const M = new Image();
|
|
2584
2584
|
M.crossOrigin = "Anonymous", M.src = Es, M.onload = () => {
|
|
2585
2585
|
const U = po(M, M.width, M.height);
|
|
2586
|
-
Qt.detectFaces(
|
|
2586
|
+
Qt.detectFaces(S, U);
|
|
2587
2587
|
};
|
|
2588
2588
|
}, A = async () => {
|
|
2589
|
-
const
|
|
2590
|
-
faceImage:
|
|
2589
|
+
const S = await C({
|
|
2590
|
+
faceImage: g.current ? await ys(g.current, "image/png") : null,
|
|
2591
2591
|
publicKey: t,
|
|
2592
2592
|
passed: !0,
|
|
2593
2593
|
metadata: u
|
|
2594
2594
|
});
|
|
2595
|
-
l(
|
|
2595
|
+
l(S), s();
|
|
2596
2596
|
}, L = async () => {
|
|
2597
|
-
const
|
|
2598
|
-
Gn =
|
|
2597
|
+
const S = await Qt.loadDetector();
|
|
2598
|
+
Gn = S, F(S), y(S);
|
|
2599
2599
|
};
|
|
2600
2600
|
return N(() => {
|
|
2601
2601
|
if (Zn) {
|
|
2602
|
-
|
|
2602
|
+
y(Gn);
|
|
2603
2603
|
return;
|
|
2604
2604
|
}
|
|
2605
2605
|
L(), Zn = !0;
|
|
2606
|
-
}, []), /* @__PURE__ */
|
|
2607
|
-
|
|
2606
|
+
}, []), /* @__PURE__ */ v(
|
|
2607
|
+
_o.Provider,
|
|
2608
2608
|
{
|
|
2609
2609
|
value: {
|
|
2610
2610
|
tasks: n,
|
|
2611
2611
|
namespace: o,
|
|
2612
2612
|
user: i,
|
|
2613
2613
|
currentTaskIndex: d,
|
|
2614
|
-
completed:
|
|
2614
|
+
completed: b,
|
|
2615
2615
|
completedCount: p,
|
|
2616
2616
|
nextTask: $,
|
|
2617
2617
|
branding: a,
|
|
2618
2618
|
onRequestClose: s,
|
|
2619
|
-
faceDetector:
|
|
2620
|
-
saveStream:
|
|
2619
|
+
faceDetector: _,
|
|
2620
|
+
saveStream: m,
|
|
2621
2621
|
savePhoto: h,
|
|
2622
2622
|
onComplete: A
|
|
2623
2623
|
},
|
|
@@ -2626,14 +2626,14 @@ function Cs(e) {
|
|
|
2626
2626
|
);
|
|
2627
2627
|
}
|
|
2628
2628
|
function Te() {
|
|
2629
|
-
return j(
|
|
2629
|
+
return j(_o);
|
|
2630
2630
|
}
|
|
2631
|
-
const Ts = "
|
|
2631
|
+
const Ts = "_root_vqy7d_1", ks = "_container_vqy7d_4", Fs = "_lhs_vqy7d_7", xs = "_info_vqy7d_11", Ss = "_active_vqy7d_32", Ps = "_completed_vqy7d_39", Ls = "_rhs_vqy7d_62", Ms = "_profile_vqy7d_65", Ns = "_avatar_vqy7d_68", Ds = "_main_vqy7d_81", Hs = "_content_vqy7d_84", B = {
|
|
2632
2632
|
root: Ts,
|
|
2633
2633
|
container: ks,
|
|
2634
2634
|
lhs: Fs,
|
|
2635
|
-
info:
|
|
2636
|
-
active:
|
|
2635
|
+
info: xs,
|
|
2636
|
+
active: Ss,
|
|
2637
2637
|
completed: Ps,
|
|
2638
2638
|
rhs: Ls,
|
|
2639
2639
|
profile: Ms,
|
|
@@ -2647,7 +2647,7 @@ const Ts = "_root_dndkf_1", ks = "_container_dndkf_4", Fs = "_lhs_dndkf_7", Ss =
|
|
|
2647
2647
|
};
|
|
2648
2648
|
function Rs() {
|
|
2649
2649
|
const { branding: e } = Te();
|
|
2650
|
-
return /* @__PURE__ */
|
|
2650
|
+
return /* @__PURE__ */ v("div", { className: Lt.root, children: /* @__PURE__ */ v("div", { className: Lt.container, children: /* @__PURE__ */ v("div", { className: Lt.brand, children: (e == null ? void 0 : e.logo) && /* @__PURE__ */ v("img", { className: "yvlw-h-10", src: e.logo, alt: "Logo" }) }) }) });
|
|
2651
2651
|
}
|
|
2652
2652
|
const Xn = "colorScheme";
|
|
2653
2653
|
function Vs() {
|
|
@@ -2664,17 +2664,17 @@ function Vs() {
|
|
|
2664
2664
|
return n(o === "dark" ? "light" : "dark");
|
|
2665
2665
|
}, getColorScheme: t };
|
|
2666
2666
|
}
|
|
2667
|
-
const Us = "
|
|
2667
|
+
const Us = "_root_bcsvc_1", js = {
|
|
2668
2668
|
root: Us
|
|
2669
2669
|
};
|
|
2670
2670
|
function Ws() {
|
|
2671
2671
|
if (!(window.screen.width >= 900))
|
|
2672
2672
|
return 10 / 9;
|
|
2673
2673
|
}
|
|
2674
|
-
function
|
|
2674
|
+
function wn(e) {
|
|
2675
2675
|
const { children: t, onStream: n = () => {
|
|
2676
2676
|
}, onRecord: r = () => {
|
|
2677
|
-
} } = e, o =
|
|
2677
|
+
} } = e, o = w(null), i = w(0), a = w(null), { start: s, stop: l } = vo({
|
|
2678
2678
|
onRecord: r
|
|
2679
2679
|
}), u = async () => {
|
|
2680
2680
|
try {
|
|
@@ -2699,16 +2699,16 @@ function bn(e) {
|
|
|
2699
2699
|
return u(), p.addEventListener("canplay", f), () => {
|
|
2700
2700
|
p.removeEventListener("canplay", f), cancelAnimationFrame(i.current), d();
|
|
2701
2701
|
};
|
|
2702
|
-
}, []), /* @__PURE__ */
|
|
2703
|
-
/* @__PURE__ */
|
|
2702
|
+
}, []), /* @__PURE__ */ v("div", { className: js.root, children: [
|
|
2703
|
+
/* @__PURE__ */ v("video", { ref: o, autoPlay: !0, loop: !0, playsInline: !0 }),
|
|
2704
2704
|
t
|
|
2705
2705
|
] });
|
|
2706
2706
|
}
|
|
2707
|
-
const zs = "
|
|
2707
|
+
const zs = "_container_mcmsr_1", Bs = "_focused_mcmsr_12", qs = "_progress_mcmsr_15", Ys = "_completed_mcmsr_36", Ks = "_marker_mcmsr_40", Ie = {
|
|
2708
2708
|
container: zs,
|
|
2709
2709
|
focused: Bs,
|
|
2710
|
-
progress:
|
|
2711
|
-
completed:
|
|
2710
|
+
progress: qs,
|
|
2711
|
+
completed: Ys,
|
|
2712
2712
|
marker: Ks
|
|
2713
2713
|
}, Qn = 360, Gs = 50;
|
|
2714
2714
|
function Zs(e) {
|
|
@@ -2717,30 +2717,30 @@ function Zs(e) {
|
|
|
2717
2717
|
sectionsCount: n,
|
|
2718
2718
|
faceDetected: r,
|
|
2719
2719
|
divisions: o = Gs
|
|
2720
|
-
} = e, i =
|
|
2720
|
+
} = e, i = x(() => {
|
|
2721
2721
|
const a = [Ie.container];
|
|
2722
2722
|
return r && a.push(Ie.focused), a.join(" ");
|
|
2723
2723
|
}, [r]);
|
|
2724
|
-
return /* @__PURE__ */
|
|
2725
|
-
/* @__PURE__ */
|
|
2724
|
+
return /* @__PURE__ */ v("div", { className: i, children: [
|
|
2725
|
+
/* @__PURE__ */ v(
|
|
2726
2726
|
ie,
|
|
2727
2727
|
{
|
|
2728
2728
|
as: "div",
|
|
2729
2729
|
show: r,
|
|
2730
|
-
leave: "transition linear duration-300",
|
|
2731
|
-
leaveFrom: "scale-100 opacity-100",
|
|
2732
|
-
leaveTo: "scale-125 opacity-0",
|
|
2733
|
-
enter: "transition linear duration-300",
|
|
2734
|
-
enterFrom: "scale-125 opacity-0",
|
|
2735
|
-
enterTo: "scale-100 opacity-100",
|
|
2736
|
-
className: "absolute",
|
|
2737
|
-
children: /* @__PURE__ */
|
|
2730
|
+
leave: "yvlw-transition yvlw-linear yvlw-duration-300",
|
|
2731
|
+
leaveFrom: "yvlw-scale-100 yvlw-opacity-100",
|
|
2732
|
+
leaveTo: "yvlw-scale-125 yvlw-opacity-0",
|
|
2733
|
+
enter: "yvlw-transition yvlw-linear yvlw-duration-300",
|
|
2734
|
+
enterFrom: "yvlw-scale-125 yvlw-opacity-0",
|
|
2735
|
+
enterTo: "yvlw-scale-100 yvlw-opacity-100",
|
|
2736
|
+
className: "yvlw-absolute",
|
|
2737
|
+
children: /* @__PURE__ */ v("div", { className: Ie.progress, children: Array.from(Array(o).keys()).map((a) => {
|
|
2738
2738
|
const s = a * Qn / o, l = Math.ceil(
|
|
2739
2739
|
(s + 1) * n / Qn
|
|
2740
2740
|
), u = t.includes(l), d = u ? a - (l - 1) * (o / n) : 0, c = [];
|
|
2741
2741
|
u && c.push(Ie.completed);
|
|
2742
2742
|
const p = u ? "translateX(158px)" : "translateX(150px)";
|
|
2743
|
-
return /* @__PURE__ */
|
|
2743
|
+
return /* @__PURE__ */ v(
|
|
2744
2744
|
"div",
|
|
2745
2745
|
{
|
|
2746
2746
|
className: c.join(" "),
|
|
@@ -2754,23 +2754,23 @@ function Zs(e) {
|
|
|
2754
2754
|
}) })
|
|
2755
2755
|
}
|
|
2756
2756
|
),
|
|
2757
|
-
/* @__PURE__ */
|
|
2757
|
+
/* @__PURE__ */ v(
|
|
2758
2758
|
ie,
|
|
2759
2759
|
{
|
|
2760
2760
|
as: "div",
|
|
2761
2761
|
show: !r,
|
|
2762
|
-
leave: "transition linear duration-200",
|
|
2763
|
-
leaveFrom: "scale-100 opacity-100",
|
|
2764
|
-
leaveTo: "scale-75 opacity-0",
|
|
2765
|
-
enter: "transition linear duration-200",
|
|
2766
|
-
enterFrom: "scale-75 opacity-0",
|
|
2767
|
-
enterTo: "scale-100 opacity-100",
|
|
2768
|
-
className: "absolute",
|
|
2769
|
-
children: /* @__PURE__ */
|
|
2770
|
-
/* @__PURE__ */
|
|
2771
|
-
/* @__PURE__ */
|
|
2772
|
-
/* @__PURE__ */
|
|
2773
|
-
/* @__PURE__ */
|
|
2762
|
+
leave: "yvlw-transition yvlw-linear yvlw-duration-200",
|
|
2763
|
+
leaveFrom: "yvlw-scale-100 yvlw-opacity-100",
|
|
2764
|
+
leaveTo: "yvlw-scale-75 yvlw-opacity-0",
|
|
2765
|
+
enter: "yvlw-transition yvlw-linear yvlw-duration-200",
|
|
2766
|
+
enterFrom: "yvlw-scale-75 yvlw-opacity-0",
|
|
2767
|
+
enterTo: "yvlw-scale-100 yvlw-opacity-100",
|
|
2768
|
+
className: "yvlw-absolute",
|
|
2769
|
+
children: /* @__PURE__ */ v("div", { className: Ie.marker, children: [
|
|
2770
|
+
/* @__PURE__ */ v("div", {}),
|
|
2771
|
+
/* @__PURE__ */ v("div", {}),
|
|
2772
|
+
/* @__PURE__ */ v("div", {}),
|
|
2773
|
+
/* @__PURE__ */ v("div", {})
|
|
2774
2774
|
] })
|
|
2775
2775
|
}
|
|
2776
2776
|
)
|
|
@@ -2790,7 +2790,7 @@ function Xs() {
|
|
|
2790
2790
|
throw new Error("Position head in frame");
|
|
2791
2791
|
} };
|
|
2792
2792
|
}
|
|
2793
|
-
function
|
|
2793
|
+
function bn(e = {}) {
|
|
2794
2794
|
const {
|
|
2795
2795
|
validations: t = ["zoom"],
|
|
2796
2796
|
frameSize: n,
|
|
@@ -2798,29 +2798,29 @@ function wn(e = {}) {
|
|
|
2798
2798
|
},
|
|
2799
2799
|
onError: o = () => {
|
|
2800
2800
|
}
|
|
2801
|
-
} = e, { faceDetector: i } = Te(), { checkFacialFeatures: a, checkZoomLevel: s, checkInFrame: l } = Xs(), u =
|
|
2802
|
-
var
|
|
2801
|
+
} = e, { faceDetector: i } = Te(), { checkFacialFeatures: a, checkZoomLevel: s, checkInFrame: l } = Xs(), u = w(null), d = (p, f) => {
|
|
2802
|
+
var _;
|
|
2803
2803
|
try {
|
|
2804
2804
|
if (p.length === 0)
|
|
2805
2805
|
throw new Error("Detecting face...");
|
|
2806
2806
|
if (p.length > 1)
|
|
2807
2807
|
throw new Error("A maximum of 1 face is allowed");
|
|
2808
|
-
const
|
|
2809
|
-
if (!
|
|
2808
|
+
const y = u.current, m = (_ = u.current) == null ? void 0 : _.parentElement;
|
|
2809
|
+
if (!y || !m)
|
|
2810
2810
|
return;
|
|
2811
2811
|
const h = p[0];
|
|
2812
|
-
for (const
|
|
2813
|
-
switch (
|
|
2812
|
+
for (const g of t)
|
|
2813
|
+
switch (g) {
|
|
2814
2814
|
case "zoom":
|
|
2815
2815
|
s(
|
|
2816
2816
|
h,
|
|
2817
|
-
Math.min(
|
|
2817
|
+
Math.min(m.clientHeight, m.clientWidth)
|
|
2818
2818
|
);
|
|
2819
2819
|
break;
|
|
2820
2820
|
case "features":
|
|
2821
2821
|
a(
|
|
2822
2822
|
h,
|
|
2823
|
-
Math.min(
|
|
2823
|
+
Math.min(m.clientHeight, m.clientWidth)
|
|
2824
2824
|
);
|
|
2825
2825
|
break;
|
|
2826
2826
|
case "in-frame":
|
|
@@ -2830,21 +2830,21 @@ function wn(e = {}) {
|
|
|
2830
2830
|
);
|
|
2831
2831
|
const C = n + 200;
|
|
2832
2832
|
l(h, {
|
|
2833
|
-
x: (
|
|
2834
|
-
y: (
|
|
2833
|
+
x: (m.clientWidth - C) / 2,
|
|
2834
|
+
y: (m.clientHeight - C) / 2,
|
|
2835
2835
|
width: C,
|
|
2836
2836
|
height: C,
|
|
2837
|
-
offsetX: (
|
|
2838
|
-
offsetY: (
|
|
2837
|
+
offsetX: (y.videoWidth - m.clientWidth) / 2,
|
|
2838
|
+
offsetY: (y.videoHeight - m.clientHeight) / 2
|
|
2839
2839
|
});
|
|
2840
2840
|
break;
|
|
2841
2841
|
default:
|
|
2842
2842
|
break;
|
|
2843
2843
|
}
|
|
2844
2844
|
r(h, f);
|
|
2845
|
-
} catch (
|
|
2846
|
-
const { message:
|
|
2847
|
-
o(
|
|
2845
|
+
} catch (y) {
|
|
2846
|
+
const { message: m } = y;
|
|
2847
|
+
o(m);
|
|
2848
2848
|
}
|
|
2849
2849
|
};
|
|
2850
2850
|
return { detectFaces: async (p) => {
|
|
@@ -2852,22 +2852,22 @@ function wn(e = {}) {
|
|
|
2852
2852
|
return;
|
|
2853
2853
|
const { ref: f } = p;
|
|
2854
2854
|
u.current = f.current;
|
|
2855
|
-
const
|
|
2856
|
-
if (!
|
|
2855
|
+
const _ = u.current;
|
|
2856
|
+
if (!_)
|
|
2857
2857
|
throw new Error("No Video Source detected");
|
|
2858
|
-
const { videoWidth:
|
|
2859
|
-
if (
|
|
2858
|
+
const { videoWidth: y, videoHeight: m } = _;
|
|
2859
|
+
if (y === 0 || m === 0)
|
|
2860
2860
|
return;
|
|
2861
2861
|
const h = po(
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2862
|
+
_,
|
|
2863
|
+
y,
|
|
2864
|
+
m
|
|
2865
2865
|
// frameSize,
|
|
2866
|
-
),
|
|
2867
|
-
d(
|
|
2866
|
+
), g = await Qt.detectFaces(i, h);
|
|
2867
|
+
d(g, h);
|
|
2868
2868
|
} };
|
|
2869
2869
|
}
|
|
2870
|
-
const Qs = "
|
|
2870
|
+
const Qs = "_root_1psx5_1", Js = "_container_1psx5_4", el = "_progress_1psx5_7", tl = "_intro_1psx5_12", nl = "_content_1psx5_15", rl = "_branding_1psx5_18", ol = "_instructionsContainer_1psx5_22", il = "_instructions_1psx5_22", ee = {
|
|
2871
2871
|
root: Qs,
|
|
2872
2872
|
container: Js,
|
|
2873
2873
|
progress: el,
|
|
@@ -2876,7 +2876,7 @@ const Qs = "_root_182pz_1", Js = "_container_182pz_4", el = "_progress_182pz_7",
|
|
|
2876
2876
|
branding: rl,
|
|
2877
2877
|
instructionsContainer: ol,
|
|
2878
2878
|
instructions: il
|
|
2879
|
-
}, al = "
|
|
2879
|
+
}, al = "_root_1j21c_1", sl = "_spinner_1j21c_18", ll = "_spin_1j21c_18", Jn = {
|
|
2880
2880
|
root: al,
|
|
2881
2881
|
spinner: sl,
|
|
2882
2882
|
spin: ll
|
|
@@ -2892,19 +2892,19 @@ function dt(e) {
|
|
|
2892
2892
|
loading: a = !1,
|
|
2893
2893
|
children: s
|
|
2894
2894
|
} = e;
|
|
2895
|
-
return /* @__PURE__ */
|
|
2896
|
-
/* @__PURE__ */
|
|
2897
|
-
/* @__PURE__ */
|
|
2898
|
-
/* @__PURE__ */
|
|
2899
|
-
/* @__PURE__ */
|
|
2900
|
-
|
|
2895
|
+
return /* @__PURE__ */ v("div", { className: Jn.root, children: [
|
|
2896
|
+
/* @__PURE__ */ v(t, { size: "custom", className: "yvlw-h-20 yvlw-mx-auto yvlw-mb-12" }),
|
|
2897
|
+
/* @__PURE__ */ v("h2", { children: r }),
|
|
2898
|
+
/* @__PURE__ */ v("p", { className: "subtext", children: n }),
|
|
2899
|
+
/* @__PURE__ */ v("div", { className: "yvlw-mt-12", children: /* @__PURE__ */ v(
|
|
2900
|
+
yi,
|
|
2901
2901
|
{
|
|
2902
2902
|
onClick: () => i(),
|
|
2903
|
-
className: "flex items-center space-x-3",
|
|
2903
|
+
className: "yvlw-flex yvlw-items-center yvlw-space-x-3",
|
|
2904
2904
|
disabled: a,
|
|
2905
2905
|
children: [
|
|
2906
|
-
/* @__PURE__ */
|
|
2907
|
-
a && /* @__PURE__ */
|
|
2906
|
+
/* @__PURE__ */ v("span", { className: "yvlw-flex-1 yvlw-flex yvlw-items-center yvlw-space-x-1 yvlw-justify-center", children: o }),
|
|
2907
|
+
a && /* @__PURE__ */ v("span", { className: Jn.spinner })
|
|
2908
2908
|
]
|
|
2909
2909
|
}
|
|
2910
2910
|
) }),
|
|
@@ -2913,31 +2913,31 @@ function dt(e) {
|
|
|
2913
2913
|
}
|
|
2914
2914
|
function $n(e) {
|
|
2915
2915
|
const { children: t, instruction: n, name: r, completed: o, onStart: i = () => {
|
|
2916
|
-
} } = e, [a, s] = k(!1), { completedCount: l, tasks: u, nextTask: d } = Te(), c =
|
|
2916
|
+
} } = e, [a, s] = k(!1), { completedCount: l, tasks: u, nextTask: d } = Te(), c = x(() => ho[r], [r]), p = x(
|
|
2917
2917
|
() => l * 100 / u.length,
|
|
2918
2918
|
[l, u.length]
|
|
2919
2919
|
);
|
|
2920
|
-
return /* @__PURE__ */
|
|
2921
|
-
/* @__PURE__ */
|
|
2920
|
+
return /* @__PURE__ */ v("div", { className: ee.root, children: /* @__PURE__ */ v("div", { className: `${ee.container} view`, children: [
|
|
2921
|
+
/* @__PURE__ */ v(
|
|
2922
2922
|
"div",
|
|
2923
2923
|
{
|
|
2924
2924
|
style: { width: `${p}%` },
|
|
2925
2925
|
className: ee.progress
|
|
2926
2926
|
}
|
|
2927
2927
|
),
|
|
2928
|
-
/* @__PURE__ */
|
|
2928
|
+
/* @__PURE__ */ v(
|
|
2929
2929
|
ie,
|
|
2930
2930
|
{
|
|
2931
2931
|
show: !a && !o,
|
|
2932
2932
|
as: "div",
|
|
2933
|
-
enter: "transform transition ease-in duration-300",
|
|
2934
|
-
enterFrom: "
|
|
2935
|
-
enterTo: "translate-x-0",
|
|
2936
|
-
leave: "transform transition ease-in duration-300",
|
|
2937
|
-
leaveFrom: "translate-x-0",
|
|
2938
|
-
leaveTo: "
|
|
2939
|
-
className: "absolute h-full w-full",
|
|
2940
|
-
children: /* @__PURE__ */
|
|
2933
|
+
enter: "yvlw-transform yvlw-transition yvlw-ease-in yvlw-duration-300",
|
|
2934
|
+
enterFrom: "yvlw--translate-x-full",
|
|
2935
|
+
enterTo: "yvlw-translate-x-0",
|
|
2936
|
+
leave: "yvlw-transform yvlw-transition yvlw-ease-in yvlw-duration-300",
|
|
2937
|
+
leaveFrom: "yvlw-translate-x-0",
|
|
2938
|
+
leaveTo: "yvlw--translate-x-full",
|
|
2939
|
+
className: "yvlw-absolute yvlw-h-full yvlw-w-full",
|
|
2940
|
+
children: /* @__PURE__ */ v("div", { className: `${ee.intro}`, children: /* @__PURE__ */ v(
|
|
2941
2941
|
dt,
|
|
2942
2942
|
{
|
|
2943
2943
|
Icon: c.Icon,
|
|
@@ -2951,47 +2951,47 @@ function $n(e) {
|
|
|
2951
2951
|
) })
|
|
2952
2952
|
}
|
|
2953
2953
|
),
|
|
2954
|
-
/* @__PURE__ */
|
|
2954
|
+
/* @__PURE__ */ v(
|
|
2955
2955
|
ie,
|
|
2956
2956
|
{
|
|
2957
2957
|
as: "div",
|
|
2958
2958
|
show: a && !o,
|
|
2959
|
-
enter: "transform transition ease-in duration-300",
|
|
2960
|
-
enterFrom: "translate-x-full",
|
|
2961
|
-
enterTo: "translate-x-0",
|
|
2962
|
-
leave: "transform transition ease-in duration-300",
|
|
2963
|
-
leaveFrom: "translate-x-0",
|
|
2964
|
-
leaveTo: "translate-x-full",
|
|
2965
|
-
className: "absolute w-full h-full",
|
|
2959
|
+
enter: "yvlw-transform yvlw-transition yvlw-ease-in yvlw-duration-300",
|
|
2960
|
+
enterFrom: "yvlw-translate-x-full",
|
|
2961
|
+
enterTo: "yvlw-translate-x-0",
|
|
2962
|
+
leave: "yvlw-transform yvlw-transition yvlw-ease-in yvlw-duration-300",
|
|
2963
|
+
leaveFrom: "yvlw-translate-x-0",
|
|
2964
|
+
leaveTo: "yvlw-translate-x-full",
|
|
2965
|
+
className: "yvlw-absolute yvlw-w-full yvlw-h-full",
|
|
2966
2966
|
children: [
|
|
2967
|
-
/* @__PURE__ */
|
|
2968
|
-
/* @__PURE__ */
|
|
2969
|
-
/* @__PURE__ */
|
|
2970
|
-
/* @__PURE__ */
|
|
2971
|
-
/* @__PURE__ */
|
|
2967
|
+
/* @__PURE__ */ v("div", { className: `${ee.content}`, children: t }),
|
|
2968
|
+
/* @__PURE__ */ v("div", { className: ee.instructionsContainer, children: [
|
|
2969
|
+
/* @__PURE__ */ v("div", { className: ee.instructions, children: [
|
|
2970
|
+
/* @__PURE__ */ v("h2", { children: n.title }),
|
|
2971
|
+
/* @__PURE__ */ v("p", { className: "subtext", children: n.description })
|
|
2972
2972
|
] }),
|
|
2973
|
-
/* @__PURE__ */
|
|
2974
|
-
/* @__PURE__ */
|
|
2973
|
+
/* @__PURE__ */ v("div", { className: ee.branding, children: [
|
|
2974
|
+
/* @__PURE__ */ v("span", { children: "Powered by" }),
|
|
2975
2975
|
" ",
|
|
2976
|
-
/* @__PURE__ */
|
|
2976
|
+
/* @__PURE__ */ v(ps, { size: "custom", className: "yvlw-h-3" })
|
|
2977
2977
|
] })
|
|
2978
2978
|
] })
|
|
2979
2979
|
]
|
|
2980
2980
|
}
|
|
2981
2981
|
),
|
|
2982
|
-
/* @__PURE__ */
|
|
2982
|
+
/* @__PURE__ */ v(
|
|
2983
2983
|
ie,
|
|
2984
2984
|
{
|
|
2985
2985
|
show: o,
|
|
2986
2986
|
as: "div",
|
|
2987
|
-
enter: "transform transition ease-in duration-300",
|
|
2988
|
-
enterFrom: "translate-x-full",
|
|
2989
|
-
enterTo: "translate-x-0",
|
|
2990
|
-
leave: "transform transition ease-in duration-300",
|
|
2991
|
-
leaveFrom: "translate-x-0",
|
|
2992
|
-
leaveTo: "translate-x-full",
|
|
2993
|
-
className: "absolute w-full h-full",
|
|
2994
|
-
children: /* @__PURE__ */
|
|
2987
|
+
enter: "yvlw-transform yvlw-transition yvlw-ease-in yvlw-duration-300",
|
|
2988
|
+
enterFrom: "yvlw-translate-x-full",
|
|
2989
|
+
enterTo: "yvlw-translate-x-0",
|
|
2990
|
+
leave: "yvlw-transform yvlw-transition yvlw-ease-in yvlw-duration-300",
|
|
2991
|
+
leaveFrom: "yvlw-translate-x-0",
|
|
2992
|
+
leaveTo: "yvlw-translate-x-full",
|
|
2993
|
+
className: "yvlw-absolute yvlw-w-full yvlw-h-full",
|
|
2994
|
+
children: /* @__PURE__ */ v("div", { className: `${ee.intro}`, children: /* @__PURE__ */ v(
|
|
2995
2995
|
dt,
|
|
2996
2996
|
{
|
|
2997
2997
|
Icon: c.Icon,
|
|
@@ -3010,15 +3010,15 @@ function $n(e) {
|
|
|
3010
3010
|
}
|
|
3011
3011
|
const cl = 1, Mt = 8;
|
|
3012
3012
|
function ul(e) {
|
|
3013
|
-
const { difficulty: t } = e, { saveStream: n, savePhoto: r } = Te(), [o, i] = k([]), [a, s] = k("Place face in frame"), [l, u] = k(!1), [d, c] = k(!1), p =
|
|
3014
|
-
const F = $ * Mt, A = Math.ceil((F + 1) /
|
|
3013
|
+
const { difficulty: t } = e, { saveStream: n, savePhoto: r } = Te(), [o, i] = k([]), [a, s] = k("Place face in frame"), [l, u] = k(!1), [d, c] = k(!1), p = w(/* @__PURE__ */ new Set()), f = w(!1), _ = w(null), y = ($) => {
|
|
3014
|
+
const F = $ * Mt, A = Math.ceil((F + 1) / bs);
|
|
3015
3015
|
p.current.has(A) || (p.current.add(A), i(Array.from(p.current))), p.current.size >= Mt && setTimeout(() => {
|
|
3016
3016
|
c(!0);
|
|
3017
3017
|
}, 1e3);
|
|
3018
|
-
},
|
|
3018
|
+
}, m = ($, F) => {
|
|
3019
3019
|
let L = Math.atan2(F, $) * (180 / Math.PI);
|
|
3020
3020
|
return L < 0 && (L += 360), L;
|
|
3021
|
-
}, h =
|
|
3021
|
+
}, h = x(() => {
|
|
3022
3022
|
if (p.current.size === 0)
|
|
3023
3023
|
return 25;
|
|
3024
3024
|
switch (t) {
|
|
@@ -3029,22 +3029,22 @@ function ul(e) {
|
|
|
3029
3029
|
default:
|
|
3030
3030
|
return 10;
|
|
3031
3031
|
}
|
|
3032
|
-
}, []),
|
|
3033
|
-
const { keypoints: F, box: A } = $, L = { x: A.width * 0.5, y: A.height * 0.5 },
|
|
3034
|
-
return Math.abs(U) < h && Math.abs(Q) < h ? null :
|
|
3035
|
-
}, { detectFaces: C } =
|
|
3032
|
+
}, []), g = ($) => {
|
|
3033
|
+
const { keypoints: F, box: A } = $, L = { x: A.width * 0.5, y: A.height * 0.5 }, S = F[cl], M = { y: S.y - A.yMin, x: S.x - A.xMin }, U = L.x - M.x, Q = M.y - L.y;
|
|
3034
|
+
return Math.abs(U) < h && Math.abs(Q) < h ? null : m(U, Q);
|
|
3035
|
+
}, { detectFaces: C } = bn({
|
|
3036
3036
|
frameSize: 280,
|
|
3037
3037
|
validations: ["zoom", "in-frame"],
|
|
3038
3038
|
onFace: ($, F) => {
|
|
3039
3039
|
r(F), u(!0), s("Slowly move head around to complete circle");
|
|
3040
|
-
const A =
|
|
3041
|
-
A &&
|
|
3040
|
+
const A = g($);
|
|
3041
|
+
A && y(A);
|
|
3042
3042
|
},
|
|
3043
3043
|
onError: ($) => {
|
|
3044
|
-
s($), i([]), p.current.clear(),
|
|
3044
|
+
s($), i([]), p.current.clear(), _.current = null, f.current = !1;
|
|
3045
3045
|
}
|
|
3046
3046
|
});
|
|
3047
|
-
return /* @__PURE__ */
|
|
3047
|
+
return /* @__PURE__ */ v(H, { children: /* @__PURE__ */ v(
|
|
3048
3048
|
$n,
|
|
3049
3049
|
{
|
|
3050
3050
|
instruction: {
|
|
@@ -3053,7 +3053,7 @@ function ul(e) {
|
|
|
3053
3053
|
},
|
|
3054
3054
|
name: "complete-the-circle",
|
|
3055
3055
|
completed: d,
|
|
3056
|
-
children: /* @__PURE__ */
|
|
3056
|
+
children: /* @__PURE__ */ v(wn, { onStream: ($) => {
|
|
3057
3057
|
try {
|
|
3058
3058
|
if (!$.current || d)
|
|
3059
3059
|
return;
|
|
@@ -3061,7 +3061,7 @@ function ul(e) {
|
|
|
3061
3061
|
C({ ref: $, frameSize: F });
|
|
3062
3062
|
} catch {
|
|
3063
3063
|
}
|
|
3064
|
-
}, onRecord: n, children: /* @__PURE__ */
|
|
3064
|
+
}, onRecord: n, children: /* @__PURE__ */ v(
|
|
3065
3065
|
Zs,
|
|
3066
3066
|
{
|
|
3067
3067
|
faceDetected: l,
|
|
@@ -3072,15 +3072,15 @@ function ul(e) {
|
|
|
3072
3072
|
}
|
|
3073
3073
|
) });
|
|
3074
3074
|
}
|
|
3075
|
-
const dl = "
|
|
3075
|
+
const dl = "_root_thujo_1", fl = "_sticker_thujo_4", pl = "_no_thujo_7", vl = "_yes_thujo_12", Nt = {
|
|
3076
3076
|
root: dl,
|
|
3077
3077
|
sticker: fl,
|
|
3078
3078
|
no: pl,
|
|
3079
|
-
yes:
|
|
3079
|
+
yes: vl
|
|
3080
3080
|
};
|
|
3081
3081
|
function hl(e) {
|
|
3082
3082
|
const { show: t, stickers: n } = e;
|
|
3083
|
-
return /* @__PURE__ */
|
|
3083
|
+
return /* @__PURE__ */ v(H, { children: t && /* @__PURE__ */ v("div", { className: Nt.root, children: n.map((r) => /* @__PURE__ */ v(
|
|
3084
3084
|
"div",
|
|
3085
3085
|
{
|
|
3086
3086
|
className: `${Nt.sticker} ${Nt[r]}`,
|
|
@@ -3089,20 +3089,20 @@ function hl(e) {
|
|
|
3089
3089
|
`sticker-${r}`
|
|
3090
3090
|
)) }) });
|
|
3091
3091
|
}
|
|
3092
|
-
const
|
|
3092
|
+
const _l = {
|
|
3093
3093
|
question: "Are you alive?",
|
|
3094
3094
|
errorMessage: "You have to be alive to proceed though",
|
|
3095
3095
|
answer: !0
|
|
3096
|
-
},
|
|
3097
|
-
function
|
|
3098
|
-
const { difficulty: t, questions: n = [
|
|
3099
|
-
const { keypoints: $ } =
|
|
3100
|
-
return 90 - Math.atan2(
|
|
3101
|
-
},
|
|
3102
|
-
c.current = "inactive", o(n[
|
|
3096
|
+
}, ml = "Wrong answer. Try again";
|
|
3097
|
+
function yl(e) {
|
|
3098
|
+
const { difficulty: t, questions: n = [_l] } = e, [r, o] = k("Keep face in camera"), [i, a] = k(!1), [s, l] = k(!1), { saveStream: u, savePhoto: d } = Te(), c = w("inactive"), p = w(0), f = w(!1), _ = (b) => {
|
|
3099
|
+
const { keypoints: $ } = b, F = $[1], A = $[9], L = F.x - A.x, S = F.y - A.y;
|
|
3100
|
+
return 90 - Math.atan2(S, L) * (180 / Math.PI);
|
|
3101
|
+
}, y = (b) => {
|
|
3102
|
+
c.current = "inactive", o(n[b].question), setTimeout(() => {
|
|
3103
3103
|
c.current = "active";
|
|
3104
3104
|
}, 2e3);
|
|
3105
|
-
},
|
|
3105
|
+
}, m = x(() => {
|
|
3106
3106
|
switch (t) {
|
|
3107
3107
|
case "easy":
|
|
3108
3108
|
return 2;
|
|
@@ -3111,34 +3111,34 @@ function gl(e) {
|
|
|
3111
3111
|
default:
|
|
3112
3112
|
return 4;
|
|
3113
3113
|
}
|
|
3114
|
-
}, []), h = (
|
|
3114
|
+
}, []), h = (b) => {
|
|
3115
3115
|
try {
|
|
3116
|
-
if (c.current = "inactive", Math.abs(
|
|
3116
|
+
if (c.current = "inactive", Math.abs(b) < m)
|
|
3117
3117
|
throw new Error("Tilt head further to answer");
|
|
3118
|
-
const $ =
|
|
3118
|
+
const $ = b > 0, F = n[p.current].answer;
|
|
3119
3119
|
if ($ === F)
|
|
3120
|
-
p.current += 1, p.current === n.length ? l(!0) :
|
|
3120
|
+
p.current += 1, p.current === n.length ? l(!0) : y(p.current);
|
|
3121
3121
|
else
|
|
3122
3122
|
throw new Error(
|
|
3123
|
-
n[p.current].errorMessage ||
|
|
3123
|
+
n[p.current].errorMessage || ml
|
|
3124
3124
|
);
|
|
3125
3125
|
} catch ($) {
|
|
3126
3126
|
o($.message), setTimeout(() => {
|
|
3127
|
-
|
|
3127
|
+
y(p.current);
|
|
3128
3128
|
}, 2e3);
|
|
3129
3129
|
}
|
|
3130
|
-
}, { detectFaces:
|
|
3131
|
-
onFace: (
|
|
3132
|
-
if (f.current || (a(!0), d($), f.current = !0,
|
|
3130
|
+
}, { detectFaces: g } = bn({
|
|
3131
|
+
onFace: (b, $) => {
|
|
3132
|
+
if (f.current || (a(!0), d($), f.current = !0, y(p.current)), c.current === "inactive")
|
|
3133
3133
|
return;
|
|
3134
|
-
const F =
|
|
3134
|
+
const F = _(b);
|
|
3135
3135
|
h(F);
|
|
3136
3136
|
},
|
|
3137
|
-
onError: (
|
|
3138
|
-
o(
|
|
3137
|
+
onError: (b) => {
|
|
3138
|
+
o(b);
|
|
3139
3139
|
}
|
|
3140
3140
|
});
|
|
3141
|
-
return /* @__PURE__ */
|
|
3141
|
+
return /* @__PURE__ */ v(
|
|
3142
3142
|
$n,
|
|
3143
3143
|
{
|
|
3144
3144
|
instruction: {
|
|
@@ -3147,19 +3147,19 @@ function gl(e) {
|
|
|
3147
3147
|
},
|
|
3148
3148
|
name: "yes-or-no",
|
|
3149
3149
|
completed: s,
|
|
3150
|
-
children: /* @__PURE__ */
|
|
3150
|
+
children: /* @__PURE__ */ v(wn, { onStream: (b) => {
|
|
3151
3151
|
try {
|
|
3152
|
-
if (!
|
|
3152
|
+
if (!b.current || s)
|
|
3153
3153
|
return;
|
|
3154
|
-
const { videoWidth: $ } =
|
|
3155
|
-
|
|
3154
|
+
const { videoWidth: $ } = b.current;
|
|
3155
|
+
g({ ref: b, frameSize: $ });
|
|
3156
3156
|
} catch {
|
|
3157
3157
|
}
|
|
3158
|
-
}, onRecord: u, children: /* @__PURE__ */
|
|
3158
|
+
}, onRecord: u, children: /* @__PURE__ */ v(hl, { show: i, stickers: ["yes", "no"] }) })
|
|
3159
3159
|
}
|
|
3160
3160
|
);
|
|
3161
3161
|
}
|
|
3162
|
-
function
|
|
3162
|
+
function gl(e = {}) {
|
|
3163
3163
|
const { onChange: t = () => {
|
|
3164
3164
|
} } = e, n = !!window.DeviceOrientationEvent, r = (o) => {
|
|
3165
3165
|
t({
|
|
@@ -3174,8 +3174,8 @@ function yl(e = {}) {
|
|
|
3174
3174
|
canUse: n
|
|
3175
3175
|
};
|
|
3176
3176
|
}
|
|
3177
|
-
function
|
|
3178
|
-
const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i =
|
|
3177
|
+
function wl(e) {
|
|
3178
|
+
const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i = w(null), a = w(!0), s = w(null), l = w(null), u = w(0), d = w(!1), c = x(() => {
|
|
3179
3179
|
switch (o) {
|
|
3180
3180
|
case "easy":
|
|
3181
3181
|
return 6;
|
|
@@ -3186,20 +3186,20 @@ function bl(e) {
|
|
|
3186
3186
|
}
|
|
3187
3187
|
}, []), p = () => {
|
|
3188
3188
|
if (u.current < t) {
|
|
3189
|
-
const
|
|
3190
|
-
let
|
|
3191
|
-
|
|
3189
|
+
const y = t - u.current;
|
|
3190
|
+
let m = `Nod head ${y} `;
|
|
3191
|
+
y < t && (m += "more "), m += y > 1 ? "times" : "time", n(m);
|
|
3192
3192
|
return;
|
|
3193
3193
|
}
|
|
3194
3194
|
d.current = !0, n("Great, hang on..."), setTimeout(() => {
|
|
3195
3195
|
r();
|
|
3196
3196
|
}, 500);
|
|
3197
|
-
}, { canUse: f } =
|
|
3198
|
-
onChange: (
|
|
3199
|
-
l.current =
|
|
3197
|
+
}, { canUse: f } = gl({
|
|
3198
|
+
onChange: (y) => {
|
|
3199
|
+
l.current = y;
|
|
3200
3200
|
}
|
|
3201
3201
|
});
|
|
3202
|
-
return { evaluate: (
|
|
3202
|
+
return { evaluate: (y) => {
|
|
3203
3203
|
if (!f) {
|
|
3204
3204
|
n("Cannot perform task. Transfer to mobile device to complete");
|
|
3205
3205
|
return;
|
|
@@ -3214,12 +3214,12 @@ function bl(e) {
|
|
|
3214
3214
|
}
|
|
3215
3215
|
if (d.current)
|
|
3216
3216
|
return;
|
|
3217
|
-
const { keypoints:
|
|
3218
|
-
|
|
3219
|
-
|
|
3217
|
+
const { keypoints: m } = y, h = Me(
|
|
3218
|
+
m[6].x - m[8].x,
|
|
3219
|
+
m[6].y - m[8].y
|
|
3220
3220
|
), C = Me(
|
|
3221
|
-
|
|
3222
|
-
|
|
3221
|
+
m[2].x - m[1].x,
|
|
3222
|
+
m[2].y - m[1].y
|
|
3223
3223
|
) / h * 10;
|
|
3224
3224
|
if (C > c) {
|
|
3225
3225
|
if (i.current || !a.current)
|
|
@@ -3232,8 +3232,8 @@ function bl(e) {
|
|
|
3232
3232
|
p();
|
|
3233
3233
|
} };
|
|
3234
3234
|
}
|
|
3235
|
-
function
|
|
3236
|
-
const { onMessage: t, onComplete: n, difficulty: r } = e, o =
|
|
3235
|
+
function bl(e) {
|
|
3236
|
+
const { onMessage: t, onComplete: n, difficulty: r } = e, o = w(!1), i = x(() => {
|
|
3237
3237
|
switch (r) {
|
|
3238
3238
|
case "easy":
|
|
3239
3239
|
return 80;
|
|
@@ -3263,7 +3263,7 @@ function wl(e) {
|
|
|
3263
3263
|
} };
|
|
3264
3264
|
}
|
|
3265
3265
|
function $l(e) {
|
|
3266
|
-
const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i =
|
|
3266
|
+
const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i = w(!0), a = w(!1), s = w(null), l = w(0), u = x(() => {
|
|
3267
3267
|
switch (o) {
|
|
3268
3268
|
case "easy":
|
|
3269
3269
|
return {
|
|
@@ -3281,35 +3281,35 @@ function $l(e) {
|
|
|
3281
3281
|
open: 30
|
|
3282
3282
|
};
|
|
3283
3283
|
}
|
|
3284
|
-
}, []), d = (
|
|
3285
|
-
i.current && (
|
|
3286
|
-
}, c = (
|
|
3287
|
-
if (!i.current && !(
|
|
3288
|
-
const
|
|
3289
|
-
(
|
|
3284
|
+
}, []), d = (_) => {
|
|
3285
|
+
i.current && (_ >= u.closed || (i.current = !1, s.current = Date.now()));
|
|
3286
|
+
}, c = (_) => {
|
|
3287
|
+
if (!i.current && !(_ < u.open) && (i.current = !0, s.current)) {
|
|
3288
|
+
const y = Date.now(), m = s.current;
|
|
3289
|
+
(y - m) / 1e3 <= 2 && (l.current += 1);
|
|
3290
3290
|
}
|
|
3291
3291
|
}, p = () => {
|
|
3292
3292
|
if (l.current < t) {
|
|
3293
|
-
const
|
|
3294
|
-
let
|
|
3295
|
-
|
|
3293
|
+
const _ = t - l.current;
|
|
3294
|
+
let y = `Blink right eye ${_} `;
|
|
3295
|
+
_ < t && (y += "more "), y += _ > 1 ? "times" : "time", n(y);
|
|
3296
3296
|
return;
|
|
3297
3297
|
}
|
|
3298
3298
|
a.current = !0, n("Great, hang on..."), setTimeout(() => {
|
|
3299
3299
|
r();
|
|
3300
3300
|
}, 500);
|
|
3301
3301
|
};
|
|
3302
|
-
return { evaluate: (
|
|
3302
|
+
return { evaluate: (_) => {
|
|
3303
3303
|
if (a.current)
|
|
3304
3304
|
return;
|
|
3305
|
-
const { keypoints:
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
),
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
) /
|
|
3312
|
-
d(
|
|
3305
|
+
const { keypoints: y } = _, m = Me(
|
|
3306
|
+
y[6].x - y[8].x,
|
|
3307
|
+
y[6].y - y[8].y
|
|
3308
|
+
), g = Me(
|
|
3309
|
+
y[145].x - y[159].x,
|
|
3310
|
+
y[145].y - y[159].y
|
|
3311
|
+
) / m * 100;
|
|
3312
|
+
d(g), c(g), p();
|
|
3313
3313
|
} };
|
|
3314
3314
|
}
|
|
3315
3315
|
function El() {
|
|
@@ -3323,48 +3323,48 @@ function El() {
|
|
|
3323
3323
|
}
|
|
3324
3324
|
};
|
|
3325
3325
|
}
|
|
3326
|
-
var
|
|
3327
|
-
const er =
|
|
3326
|
+
var mo = /* @__PURE__ */ ((e) => (e.nod = "nod", e.open_mouth = "open_mouth", e.blink = "blink", e))(mo || {});
|
|
3327
|
+
const er = ms(Object.keys(mo));
|
|
3328
3328
|
function Cl(e) {
|
|
3329
|
-
const { difficulty: t, maxBlinks: n = 5, maxNods: r = 5 } = e, o =
|
|
3329
|
+
const { difficulty: t, maxBlinks: n = 5, maxNods: r = 5 } = e, o = w(0), [i, a] = k("Keep face in camera"), [s, l] = k(!1), [u, d] = k(null), c = w(!1), { requestDeviceOrientationPermission: p } = El(), f = () => {
|
|
3330
3330
|
if (o.current === er.length - 1) {
|
|
3331
3331
|
l(!0);
|
|
3332
3332
|
return;
|
|
3333
3333
|
}
|
|
3334
3334
|
o.current += 1;
|
|
3335
|
-
},
|
|
3335
|
+
}, _ = wl({
|
|
3336
3336
|
total: Math.floor(Math.random() * r + 1),
|
|
3337
3337
|
difficulty: t,
|
|
3338
|
-
onMessage: (
|
|
3338
|
+
onMessage: (b) => a(b),
|
|
3339
3339
|
onComplete: f
|
|
3340
|
-
}),
|
|
3340
|
+
}), y = bl({
|
|
3341
3341
|
difficulty: t,
|
|
3342
|
-
onMessage: (
|
|
3342
|
+
onMessage: (b) => a(b),
|
|
3343
3343
|
onComplete: f
|
|
3344
|
-
}),
|
|
3344
|
+
}), m = $l({
|
|
3345
3345
|
total: Math.floor(Math.random() * n + 1),
|
|
3346
3346
|
difficulty: t,
|
|
3347
|
-
onMessage: (
|
|
3347
|
+
onMessage: (b) => a(b),
|
|
3348
3348
|
onComplete: f
|
|
3349
|
-
}), { detectFaces: h } =
|
|
3350
|
-
onFace: (
|
|
3349
|
+
}), { detectFaces: h } = bn({
|
|
3350
|
+
onFace: (b) => {
|
|
3351
3351
|
switch (c.current || (c.current = !0), er[o.current]) {
|
|
3352
3352
|
case "nod":
|
|
3353
|
-
|
|
3353
|
+
_.evaluate(b);
|
|
3354
3354
|
break;
|
|
3355
3355
|
case "open_mouth":
|
|
3356
|
-
|
|
3356
|
+
y.evaluate(b);
|
|
3357
3357
|
break;
|
|
3358
3358
|
case "blink":
|
|
3359
|
-
|
|
3359
|
+
m.evaluate(b);
|
|
3360
3360
|
break;
|
|
3361
3361
|
}
|
|
3362
3362
|
},
|
|
3363
|
-
onError: (
|
|
3364
|
-
a(
|
|
3363
|
+
onError: (b) => {
|
|
3364
|
+
a(b);
|
|
3365
3365
|
}
|
|
3366
3366
|
});
|
|
3367
|
-
return /* @__PURE__ */
|
|
3367
|
+
return /* @__PURE__ */ v(
|
|
3368
3368
|
$n,
|
|
3369
3369
|
{
|
|
3370
3370
|
instruction: {
|
|
@@ -3376,17 +3376,17 @@ function Cl(e) {
|
|
|
3376
3376
|
onStart: async () => {
|
|
3377
3377
|
try {
|
|
3378
3378
|
await p();
|
|
3379
|
-
} catch (
|
|
3380
|
-
const $ =
|
|
3379
|
+
} catch (b) {
|
|
3380
|
+
const $ = b;
|
|
3381
3381
|
a($.message), d($);
|
|
3382
3382
|
}
|
|
3383
3383
|
},
|
|
3384
|
-
children: u ? /* @__PURE__ */
|
|
3384
|
+
children: u ? /* @__PURE__ */ v(H, {}) : /* @__PURE__ */ v(wn, { onStream: async (b) => {
|
|
3385
3385
|
try {
|
|
3386
|
-
if (!
|
|
3386
|
+
if (!b.current || s)
|
|
3387
3387
|
return;
|
|
3388
|
-
const { videoWidth: $ } =
|
|
3389
|
-
await h({ ref:
|
|
3388
|
+
const { videoWidth: $ } = b.current;
|
|
3389
|
+
await h({ ref: b, frameSize: $, throttleInterval: 500 });
|
|
3390
3390
|
} catch {
|
|
3391
3391
|
}
|
|
3392
3392
|
} })
|
|
@@ -3394,13 +3394,13 @@ function Cl(e) {
|
|
|
3394
3394
|
);
|
|
3395
3395
|
}
|
|
3396
3396
|
function Tl() {
|
|
3397
|
-
var
|
|
3397
|
+
var m;
|
|
3398
3398
|
const { toggleColorScheme: e, getColorScheme: t, setColorScheme: n } = Vs(), { user: r, tasks: o, currentTaskIndex: i, completed: a, onComplete: s } = Te(), [l, u] = k(!1), [d, c] = k(!1), [p, f] = k(null);
|
|
3399
3399
|
N(() => {
|
|
3400
3400
|
const h = t();
|
|
3401
3401
|
n(h);
|
|
3402
3402
|
}, []);
|
|
3403
|
-
const
|
|
3403
|
+
const _ = async () => {
|
|
3404
3404
|
try {
|
|
3405
3405
|
u(!0), f(null), await s();
|
|
3406
3406
|
} catch (h) {
|
|
@@ -3408,41 +3408,41 @@ function Tl() {
|
|
|
3408
3408
|
} finally {
|
|
3409
3409
|
u(!1);
|
|
3410
3410
|
}
|
|
3411
|
-
},
|
|
3411
|
+
}, y = I(
|
|
3412
3412
|
(h) => h === i ? B.active : i > h ? B.completed : "subtext",
|
|
3413
3413
|
[i]
|
|
3414
3414
|
);
|
|
3415
|
-
return /* @__PURE__ */
|
|
3416
|
-
/* @__PURE__ */
|
|
3417
|
-
/* @__PURE__ */
|
|
3418
|
-
/* @__PURE__ */
|
|
3419
|
-
/* @__PURE__ */
|
|
3420
|
-
/* @__PURE__ */
|
|
3421
|
-
o.map((h,
|
|
3422
|
-
/* @__PURE__ */
|
|
3415
|
+
return /* @__PURE__ */ v("div", { className: B.root, children: /* @__PURE__ */ v("div", { className: B.container, children: [
|
|
3416
|
+
/* @__PURE__ */ v("div", { className: `${B.lhs} divider`, children: [
|
|
3417
|
+
/* @__PURE__ */ v("div", { className: B.info, children: [
|
|
3418
|
+
/* @__PURE__ */ v(Rs, {}),
|
|
3419
|
+
/* @__PURE__ */ v("div", { children: /* @__PURE__ */ v("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." }) }),
|
|
3420
|
+
/* @__PURE__ */ v("ol", { children: [
|
|
3421
|
+
o.map((h, g) => /* @__PURE__ */ v("li", { className: y(g), children: ho[h.id].name }, `task-${g}`)),
|
|
3422
|
+
/* @__PURE__ */ v("li", { className: a ? B.active : "", children: "Complete! 🎉" })
|
|
3423
3423
|
] })
|
|
3424
3424
|
] }),
|
|
3425
|
-
/* @__PURE__ */
|
|
3426
|
-
/* @__PURE__ */
|
|
3427
|
-
/* @__PURE__ */
|
|
3428
|
-
/* @__PURE__ */
|
|
3429
|
-
/* @__PURE__ */
|
|
3425
|
+
/* @__PURE__ */ v("footer", { className: "divider", children: [
|
|
3426
|
+
/* @__PURE__ */ v("div", { children: "Powered by Youverify" }),
|
|
3427
|
+
/* @__PURE__ */ v("div", { onClick: () => e(), role: "button", children: [
|
|
3428
|
+
/* @__PURE__ */ v("div", { className: "dark:yvlw-hidden", children: /* @__PURE__ */ v(fo, {}) }),
|
|
3429
|
+
/* @__PURE__ */ v("div", { className: "yvlw-hidden dark:yvlw-block", children: /* @__PURE__ */ v(as, {}) })
|
|
3430
3430
|
] })
|
|
3431
3431
|
] })
|
|
3432
3432
|
] }),
|
|
3433
|
-
/* @__PURE__ */
|
|
3434
|
-
/* @__PURE__ */
|
|
3433
|
+
/* @__PURE__ */ v("div", { className: B.main, children: /* @__PURE__ */ v("div", { className: B.content, children: [
|
|
3434
|
+
/* @__PURE__ */ v(
|
|
3435
3435
|
ie,
|
|
3436
3436
|
{
|
|
3437
3437
|
show: !d,
|
|
3438
3438
|
as: "div",
|
|
3439
|
-
leave: "transform transition duration-300",
|
|
3440
|
-
leaveFrom: "translate-y-0 opacity-100",
|
|
3441
|
-
leaveTo: "
|
|
3442
|
-
enterFrom: "translate-y-full opacity-0",
|
|
3443
|
-
enterTo: "translate-y-0 opacity-100",
|
|
3444
|
-
className: "h-full w-full",
|
|
3445
|
-
children: /* @__PURE__ */
|
|
3439
|
+
leave: "yvlw-transform yvlw-transition yvlw-duration-300",
|
|
3440
|
+
leaveFrom: "yvlw-translate-y-0 yvlw-opacity-100",
|
|
3441
|
+
leaveTo: "yvlw--translate-y-full yvlw-opacity-0",
|
|
3442
|
+
enterFrom: "yvlw-translate-y-full yvlw-opacity-0",
|
|
3443
|
+
enterTo: "yvlw-translate-y-0 yvlw-opacity-100",
|
|
3444
|
+
className: "yvlw-h-full yvlw-w-full",
|
|
3445
|
+
children: /* @__PURE__ */ v("div", { className: B.completed, children: /* @__PURE__ */ v(
|
|
3446
3446
|
dt,
|
|
3447
3447
|
{
|
|
3448
3448
|
Icon: us,
|
|
@@ -3454,51 +3454,51 @@ function Tl() {
|
|
|
3454
3454
|
) })
|
|
3455
3455
|
}
|
|
3456
3456
|
),
|
|
3457
|
-
o.map((h,
|
|
3457
|
+
o.map((h, g) => {
|
|
3458
3458
|
let C;
|
|
3459
3459
|
switch (h.id) {
|
|
3460
3460
|
case "complete-the-circle":
|
|
3461
|
-
C = /* @__PURE__ */
|
|
3461
|
+
C = /* @__PURE__ */ v(ul, { ...h });
|
|
3462
3462
|
break;
|
|
3463
3463
|
case "yes-or-no":
|
|
3464
|
-
C = /* @__PURE__ */
|
|
3464
|
+
C = /* @__PURE__ */ v(yl, { ...h });
|
|
3465
3465
|
break;
|
|
3466
3466
|
case "motions":
|
|
3467
|
-
C = /* @__PURE__ */
|
|
3467
|
+
C = /* @__PURE__ */ v(Cl, { ...h });
|
|
3468
3468
|
break;
|
|
3469
3469
|
default:
|
|
3470
|
-
C = /* @__PURE__ */
|
|
3470
|
+
C = /* @__PURE__ */ v(H, {});
|
|
3471
3471
|
break;
|
|
3472
3472
|
}
|
|
3473
|
-
return /* @__PURE__ */
|
|
3473
|
+
return /* @__PURE__ */ v(
|
|
3474
3474
|
ie,
|
|
3475
3475
|
{
|
|
3476
|
-
show: d && !a && i ===
|
|
3476
|
+
show: d && !a && i === g,
|
|
3477
3477
|
appear: !0,
|
|
3478
3478
|
as: "div",
|
|
3479
|
-
leave: "transform transition duration-300",
|
|
3480
|
-
leaveFrom: "translate-y-0 opacity-100",
|
|
3481
|
-
leaveTo: "
|
|
3482
|
-
enterFrom: "translate-y-full opacity-0",
|
|
3483
|
-
enterTo: "translate-y-0 opacity-100",
|
|
3484
|
-
className: "h-full",
|
|
3479
|
+
leave: "yvlw-transform yvlw-transition yvlw-duration-300",
|
|
3480
|
+
leaveFrom: "yvlw-translate-y-0 yvlw-opacity-100",
|
|
3481
|
+
leaveTo: "yvlw--translate-y-full yvlw-opacity-0",
|
|
3482
|
+
enterFrom: "yvlw-translate-y-full yvlw-opacity-0",
|
|
3483
|
+
enterTo: "yvlw-translate-y-0 yvlw-opacity-100",
|
|
3484
|
+
className: "yvlw-h-full",
|
|
3485
3485
|
children: C
|
|
3486
3486
|
},
|
|
3487
|
-
`task-${
|
|
3487
|
+
`task-${g}`
|
|
3488
3488
|
);
|
|
3489
3489
|
}),
|
|
3490
|
-
/* @__PURE__ */
|
|
3490
|
+
/* @__PURE__ */ v(
|
|
3491
3491
|
ie,
|
|
3492
3492
|
{
|
|
3493
3493
|
show: d && a,
|
|
3494
3494
|
as: "div",
|
|
3495
|
-
leave: "transform transition duration-300",
|
|
3496
|
-
leaveFrom: "translate-y-0 opacity-100",
|
|
3497
|
-
leaveTo: "
|
|
3498
|
-
enterFrom: "translate-y-full opacity-0",
|
|
3499
|
-
enterTo: "translate-y-0 opacity-100",
|
|
3500
|
-
className: "h-full w-full",
|
|
3501
|
-
children: /* @__PURE__ */
|
|
3495
|
+
leave: "yvlw-transform yvlw-transition yvlw-duration-300",
|
|
3496
|
+
leaveFrom: "yvlw-translate-y-0 yvlw-opacity-100",
|
|
3497
|
+
leaveTo: "yvlw--translate-y-full yvlw-opacity-0",
|
|
3498
|
+
enterFrom: "yvlw-translate-y-full yvlw-opacity-0",
|
|
3499
|
+
enterTo: "yvlw-translate-y-0 yvlw-opacity-100",
|
|
3500
|
+
className: "yvlw-h-full yvlw-w-full",
|
|
3501
|
+
children: /* @__PURE__ */ v("div", { className: B.completed, children: /* @__PURE__ */ v(
|
|
3502
3502
|
dt,
|
|
3503
3503
|
{
|
|
3504
3504
|
Icon: ds,
|
|
@@ -3506,31 +3506,31 @@ function Tl() {
|
|
|
3506
3506
|
description: "Your Identity verification has been completed successfully. Thanks for your patience",
|
|
3507
3507
|
actionText: "Finish",
|
|
3508
3508
|
loading: l,
|
|
3509
|
-
onActionClick:
|
|
3510
|
-
children: p && /* @__PURE__ */
|
|
3509
|
+
onActionClick: _,
|
|
3510
|
+
children: p && /* @__PURE__ */ v("div", { className: "yvlw-mt-3", children: p })
|
|
3511
3511
|
}
|
|
3512
3512
|
) })
|
|
3513
3513
|
}
|
|
3514
3514
|
)
|
|
3515
3515
|
] }) }),
|
|
3516
|
-
/* @__PURE__ */
|
|
3517
|
-
r && /* @__PURE__ */
|
|
3518
|
-
/* @__PURE__ */
|
|
3516
|
+
/* @__PURE__ */ v("div", { className: `${B.rhs} divider`, children: [
|
|
3517
|
+
r && /* @__PURE__ */ v("div", { className: `${B.profile} divider`, children: [
|
|
3518
|
+
/* @__PURE__ */ v("div", { children: /* @__PURE__ */ v("div", { className: B.avatar, children: [
|
|
3519
3519
|
r.firstName.charAt(0).toUpperCase(),
|
|
3520
|
-
(
|
|
3520
|
+
(m = r.lastName) == null ? void 0 : m.charAt(0).toUpperCase()
|
|
3521
3521
|
] }) }),
|
|
3522
|
-
/* @__PURE__ */
|
|
3523
|
-
/* @__PURE__ */
|
|
3522
|
+
/* @__PURE__ */ v("div", { children: [
|
|
3523
|
+
/* @__PURE__ */ v("h4", { children: [
|
|
3524
3524
|
r.firstName,
|
|
3525
3525
|
" ",
|
|
3526
3526
|
r.lastName
|
|
3527
3527
|
] }),
|
|
3528
|
-
r.email && /* @__PURE__ */
|
|
3528
|
+
r.email && /* @__PURE__ */ v("p", { className: "subtext", children: r.email })
|
|
3529
3529
|
] })
|
|
3530
3530
|
] }),
|
|
3531
|
-
/* @__PURE__ */
|
|
3532
|
-
/* @__PURE__ */
|
|
3533
|
-
/* @__PURE__ */
|
|
3531
|
+
/* @__PURE__ */ v("footer", { children: [
|
|
3532
|
+
/* @__PURE__ */ v("div", { children: "About · Terms · Help · Privacy · Contact" }),
|
|
3533
|
+
/* @__PURE__ */ v("div", { children: "© 2024 from Youverify Inc." })
|
|
3534
3534
|
] })
|
|
3535
3535
|
] })
|
|
3536
3536
|
] }) });
|
|
@@ -3551,7 +3551,7 @@ function kl(e) {
|
|
|
3551
3551
|
} = e, [c, p] = k(e.show), f = () => {
|
|
3552
3552
|
p(!1), i();
|
|
3553
3553
|
};
|
|
3554
|
-
return /* @__PURE__ */
|
|
3554
|
+
return /* @__PURE__ */ v(
|
|
3555
3555
|
Cs,
|
|
3556
3556
|
{
|
|
3557
3557
|
namespace: n,
|
|
@@ -3563,7 +3563,7 @@ function kl(e) {
|
|
|
3563
3563
|
onSuccess: a,
|
|
3564
3564
|
onFailure: s,
|
|
3565
3565
|
metadata: d,
|
|
3566
|
-
children: /* @__PURE__ */
|
|
3566
|
+
children: /* @__PURE__ */ v(
|
|
3567
3567
|
Qa,
|
|
3568
3568
|
{
|
|
3569
3569
|
id: n,
|
|
@@ -3576,15 +3576,15 @@ function kl(e) {
|
|
|
3576
3576
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3577
3577
|
},
|
|
3578
3578
|
children: [
|
|
3579
|
-
l === "modal" && /* @__PURE__ */
|
|
3580
|
-
/* @__PURE__ */
|
|
3579
|
+
l === "modal" && /* @__PURE__ */ v("div", { onClick: f, role: "button", className: rt.close, children: /* @__PURE__ */ v(fs, { className: "yvlw-text-white" }) }),
|
|
3580
|
+
/* @__PURE__ */ v(uo, { className: `${rt.container}`, children: /* @__PURE__ */ v(Tl, {}) })
|
|
3581
3581
|
]
|
|
3582
3582
|
}
|
|
3583
3583
|
)
|
|
3584
3584
|
}
|
|
3585
3585
|
);
|
|
3586
3586
|
}
|
|
3587
|
-
class
|
|
3587
|
+
class Sl {
|
|
3588
3588
|
constructor(t) {
|
|
3589
3589
|
this.tasks = [], this.container = null, this.namespace = "liveness-web-sdk", this.scriptsURLs = [
|
|
3590
3590
|
"https://cdn.jsdelivr.net/npm/@mediapipe/face_mesh@0.4.1633559619/face_mesh.min.js",
|
|
@@ -3615,7 +3615,7 @@ class xl {
|
|
|
3615
3615
|
}
|
|
3616
3616
|
async start(t) {
|
|
3617
3617
|
t && (this.tasks = t), this.validateOptions(), this.container = document.createElement("div"), document.body.appendChild(this.container), Pe(
|
|
3618
|
-
/* @__PURE__ */
|
|
3618
|
+
/* @__PURE__ */ v(
|
|
3619
3619
|
kl,
|
|
3620
3620
|
{
|
|
3621
3621
|
namespace: this.namespace,
|
|
@@ -3646,5 +3646,5 @@ class xl {
|
|
|
3646
3646
|
}
|
|
3647
3647
|
}
|
|
3648
3648
|
export {
|
|
3649
|
-
|
|
3649
|
+
Sl as default
|
|
3650
3650
|
};
|