youverify-liveness-web 0.1.15 → 0.1.16
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 +914 -888
- package/dist/index.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.yvlw-absolute{position:absolute}.yvlw-m-0{margin:0}.yvlw-mx-auto{margin-left:auto;margin-right:auto}.yvlw-mb-12{margin-bottom:3rem}.yvlw-mt-12{margin-top:3rem}.yvlw-mt-3{margin-top:.75rem}.yvlw-flex{display:flex}.yvlw-hidden{display:none}.yvlw-h-10{height:2.5rem}.yvlw-h-20{height:5rem}.yvlw-h-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_1duny_1{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:DM Sans,sans-serif;position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;min-height:100vh;min-height:-webkit-fill-available;align-items:center;justify-content:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s;transition-timing-function:cubic-bezier(0,0,.2,1)}._root_1duny_1[data-closed]{opacity:0}._root_1duny_1._modal_1duny_10{background-color:#0000004d}@media (min-width: 768px){._root_1duny_1._modal_1duny_10{padding:1rem}._root_1duny_1._modal_1duny_10 ._container_1duny_13{border-radius:.75rem}}._root_1duny_1._modal_1duny_10 ._container_1duny_13{max-width:1500px;max-height:700px}@media (min-width: 768px){._root_1duny_1._page_1duny_18{padding:0}}._root_1duny_1 ._close_1duny_21{position:absolute;top:.5rem;left:.5rem;display:flex;align-items:center;justify-content:center;z-index:20;height:1.5rem;width:1.5rem;border-radius:9999px;background-color:#00000080}._root_1duny_1 ._close_1duny_21 svg{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}._root_1duny_1 ._close_1duny_21 svg:hover{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}._root_1duny_1 ._container_1duny_13{height:100%;width:100%;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}._root_1duny_1 ._container_1duny_13:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_1h6qm_1 *,._root_1h6qm_1 :before,._root_1h6qm_1 :after{box-sizing:border-box;border-width:0;border-style:solid}._root_1h6qm_1 :before,._root_1h6qm_1 :after{--tw-content: ""}._root_1h6qm_1 html,._root_1h6qm_1 :host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";-webkit-tap-highlight-color:transparent}._root_1h6qm_1 body{margin:0;line-height:inherit}._root_1h6qm_1 hr{height:0;color:inherit;border-top-width:1px}._root_1h6qm_1 abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}._root_1h6qm_1 h1,._root_1h6qm_1 h2,._root_1h6qm_1 h3,._root_1h6qm_1 h4,._root_1h6qm_1 h5,._root_1h6qm_1 h6{font-size:inherit;font-weight:inherit}._root_1h6qm_1 a{color:inherit;text-decoration:inherit}._root_1h6qm_1 b,._root_1h6qm_1 strong{font-weight:bolder}._root_1h6qm_1 code,._root_1h6qm_1 kbd,._root_1h6qm_1 samp,._root_1h6qm_1 pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}._root_1h6qm_1 small{font-size:80%}._root_1h6qm_1 sub,._root_1h6qm_1 sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}._root_1h6qm_1 sub{bottom:-.25em}._root_1h6qm_1 sup{top:-.5em}._root_1h6qm_1 table{text-indent:0;border-color:inherit;border-collapse:collapse}._root_1h6qm_1 button,._root_1h6qm_1 input,._root_1h6qm_1 optgroup,._root_1h6qm_1 select,._root_1h6qm_1 textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}._root_1h6qm_1 button,._root_1h6qm_1 select{text-transform:none}._root_1h6qm_1 button,._root_1h6qm_1 input:where([type=button]),._root_1h6qm_1 input:where([type=reset]),._root_1h6qm_1 input:where([type=submit]){-moz-appearance:button;appearance:button;-webkit-appearance:button;background-color:transparent;background-image:none}._root_1h6qm_1 :-moz-focusring{outline:auto}._root_1h6qm_1 :-moz-ui-invalid{box-shadow:none}._root_1h6qm_1 progress{vertical-align:baseline}._root_1h6qm_1 ::-webkit-inner-spin-button,._root_1h6qm_1 ::-webkit-outer-spin-button{height:auto}._root_1h6qm_1 [type=search]{-moz-appearance:textfield;appearance:textfield;-webkit-appearance:textfield;outline-offset:-2px}._root_1h6qm_1 ::-webkit-search-decoration{-webkit-appearance:none}._root_1h6qm_1 ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}._root_1h6qm_1 summary{display:list-item}._root_1h6qm_1 blockquote,._root_1h6qm_1 dl,._root_1h6qm_1 dd,._root_1h6qm_1 h1,._root_1h6qm_1 h2,._root_1h6qm_1 h3,._root_1h6qm_1 h4,._root_1h6qm_1 h5,._root_1h6qm_1 h6,._root_1h6qm_1 hr,._root_1h6qm_1 figure,._root_1h6qm_1 p,._root_1h6qm_1 pre{margin:0}._root_1h6qm_1 fieldset{margin:0;padding:0}._root_1h6qm_1 legend{padding:0}._root_1h6qm_1 ol,._root_1h6qm_1 ul,._root_1h6qm_1 menu{list-style:none;margin:0;padding:0}._root_1h6qm_1 dialog{padding:0}._root_1h6qm_1 textarea{resize:vertical}._root_1h6qm_1 input::-moz-placeholder,._root_1h6qm_1 textarea::-moz-placeholder{opacity:1;color:#9ca3af}._root_1h6qm_1 input::placeholder,._root_1h6qm_1 textarea::placeholder{opacity:1;color:#9ca3af}._root_1h6qm_1 button,._root_1h6qm_1 [role=button]{cursor:pointer}._root_1h6qm_1 :disabled{cursor:default}._root_1h6qm_1 img,._root_1h6qm_1 svg,._root_1h6qm_1 video,._root_1h6qm_1 canvas,._root_1h6qm_1 audio,._root_1h6qm_1 iframe,._root_1h6qm_1 embed,._root_1h6qm_1 object{display:block}._root_1h6qm_1 [hidden]{display:none}._root_vqy7d_1{height:100%}._root_vqy7d_1 ._container_vqy7d_4{display:flex;height:100%}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7{display:none;width:20%;flex-direction:column;justify-content:space-between}@media (min-width: 1280px){._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7{display:flex}}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7{padding-top:.75rem;padding-bottom:.75rem}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11{padding-left:1.5rem;padding-right:1.5rem}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol{position:relative;margin:0;list-style-type:none;padding:0}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li{counter-increment:item;margin-bottom:24px;position:relative;font-size:.875rem;line-height:1.25rem;display:flex;align-items:center}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:before{width:28px;height:28px;border-radius:9999px;border-width:2px;--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *):before{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:before{margin-right:1rem;display:flex;align-items:center;justify-content:center;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *):before{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:before{content:counter(item);flex-shrink:0}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._active_vqy7d_32{font-weight:500}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._active_vqy7d_32:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._active_vqy7d_32:before{background-color:var(--branding-color);border-style:none;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._completed_vqy7d_39{font-weight:500;text-decoration-line:line-through}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._completed_vqy7d_39:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._completed_vqy7d_39:before{background-color:var(--branding-color);border-style:none;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:after{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *):after{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:after{top:28px;bottom:-24px;left:14px;content:"";position:absolute;width:1px}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:last-child:after{content:none}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 footer{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1.5rem}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62{display:none;width:20%}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62{padding-top:.75rem;padding-bottom:.75rem}@media (min-width: 1280px){._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62{display:block}}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65{display:flex;align-items:center;gap:.5rem;padding:1rem 1.5rem}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 ._avatar_vqy7d_68{height:2.5rem;width:2.5rem;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 ._avatar_vqy7d_68:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 ._avatar_vqy7d_68{display:flex;align-items:center;justify-content:center;font-size:1.125rem;line-height:1.75rem;font-weight:500}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 h4{margin-bottom:-.25rem;text-overflow:ellipsis;font-weight:600;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 h4:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 p{margin-top:0;margin-bottom:0;font-size:.75rem;line-height:1rem}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 footer>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 footer{padding-left:1.5rem;padding-right:1.5rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81{flex:1 1 0%}@media (min-width: 768px){._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81{padding-top:1rem;padding-bottom:1rem}}._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81 ._content_vqy7d_84{margin-left:auto;margin-right:auto;height:100%;width:100%;overflow:hidden;border-radius:1rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81 ._content_vqy7d_84:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81 ._content_vqy7d_84{max-width:500px}._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81 ._completed_vqy7d_39{display:flex;height:100%;width:100%;align-items:center;justify-content:center}._root_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_5hgaj_1{height:100%;text-align:center}._root_5hgaj_1 ._container_5hgaj_4{position:relative;height:100%}._root_5hgaj_1 ._container_5hgaj_4 ._progress_5hgaj_7{background-color:var(--branding-color);position:absolute;top:0;left:0;height:4px;border-radius:.5rem;z-index:2}._root_5hgaj_1 ._container_5hgaj_4 ._intro_5hgaj_12{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem 1rem}._root_5hgaj_1 ._container_5hgaj_4 ._content_5hgaj_15{height:70%;width:100%}._root_5hgaj_1 ._container_5hgaj_4 ._branding_5hgaj_18{position:absolute;left:0;right:0;bottom:1.5rem;text-align:center;font-size:.75rem;line-height:1rem;font-weight:500;display:flex;align-items:center;justify-content:center}._root_5hgaj_1 ._container_5hgaj_4 ._branding_5hgaj_18>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}._root_5hgaj_1 ._container_5hgaj_4 ._instructionsContainer_5hgaj_22{border-top-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}._root_5hgaj_1 ._container_5hgaj_4 ._instructionsContainer_5hgaj_22:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}._root_5hgaj_1 ._container_5hgaj_4 ._instructions_5hgaj_22{margin-left:auto;margin-right:auto;padding:1rem 1rem 1.5rem;text-align:center;max-width:400px}._root_5hgaj_1 ._container_5hgaj_4 h2{margin-top:.5rem;margin-bottom:.5rem;font-size:1.5rem;line-height:2rem;font-weight:900}._root_5hgaj_1 ._container_5hgaj_4 h2:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}._root_5hgaj_1 ._container_5hgaj_4 p{font-size:.875rem;line-height:1.25rem;font-weight:300;max-width:400px}._root_5hgaj_1 ._container_5hgaj_4 button{color:var(--branding-color);border-color:var(--branding-color);border-radius:9999px;border-width:2px;padding:.5rem 2rem;font-weight:500}._root_5hgaj_1 ._container_5hgaj_4 button:hover{background-color:var(--branding-color);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_h5elg_1{text-align:center;display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem .75rem}._root_h5elg_1 h2{margin-top:.5rem;margin-bottom:.5rem;font-size:1.5rem;line-height:2rem;font-weight:900}._root_h5elg_1 h2:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}._root_h5elg_1 p{font-size:.875rem;line-height:1.25rem;font-weight:300;max-width:400px}._root_h5elg_1 button{color:var(--branding-color);border-color:var(--branding-color);border-radius:9999px;border-width:2px;padding:.5rem 2rem;font-weight:500}._root_h5elg_1 button:hover{background-color:var(--branding-color);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_h5elg_1 button:hover ._spinner_h5elg_22{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity));border-left-color:transparent}._container_1vep2_1{height:100%;width:100%;border-radius:50%;border-width:2px;border-color:var(--branding-color);border-left-color:transparent;animation:_spin_1vep2_1 .7s linear infinite}._container_1vep2_1._md_1vep2_7{height:1rem;width:1rem}._container_1vep2_1._lg_1vep2_10{height:1.75rem;width:1.75rem}@keyframes _spin_1vep2_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._root_thujo_1{position:absolute;top:0;right:0;bottom:0;left:0}._root_thujo_1 ._sticker_thujo_4{position:absolute}._root_thujo_1 ._sticker_thujo_4._no_thujo_7{top:2.5rem;left:1.5rem;border-width:4px;--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity));padding:.5rem 1rem;--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);stroke:#fff;font-size:2.25rem;line-height:2.5rem;font-weight:900;letter-spacing:.1em;--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity));transform:rotate(335deg)}._root_thujo_1 ._sticker_thujo_4._yes_thujo_12{top:2.5rem;right:1.5rem;border-width:4px;--tw-border-opacity: 1;border-color:rgb(74 222 128 / var(--tw-border-opacity));padding:.5rem 1rem;--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);stroke:#fff;font-size:2.25rem;line-height:2.5rem;font-weight:900;letter-spacing:.1em;--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity));transform:rotate(45deg)}')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
-
var Xe,
|
|
2
|
+
var Xe, F, ur, Ee, Fn, dr, Rt, rn, Vt, Ut, fr, Ze = {}, pr = [], So = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, mt = Array.isArray;
|
|
3
3
|
function ue(e, t) {
|
|
4
4
|
for (var n in t) e[n] = t[n];
|
|
5
5
|
return e;
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function hr(e) {
|
|
8
8
|
var t = e.parentNode;
|
|
9
9
|
t && t.removeChild(e);
|
|
10
10
|
}
|
|
@@ -15,13 +15,13 @@ function ne(e, t, n) {
|
|
|
15
15
|
return ze(e, a, r, o, null);
|
|
16
16
|
}
|
|
17
17
|
function ze(e, t, n, r, o) {
|
|
18
|
-
var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: o ?? ++
|
|
19
|
-
return o == null &&
|
|
18
|
+
var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: o ?? ++ur, __i: -1, __u: 0 };
|
|
19
|
+
return o == null && F.vnode != null && F.vnode(i), i;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function on() {
|
|
22
22
|
return { current: null };
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function I(e) {
|
|
25
25
|
return e.children;
|
|
26
26
|
}
|
|
27
27
|
function te(e, t) {
|
|
@@ -32,38 +32,38 @@ function Fe(e, t) {
|
|
|
32
32
|
for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
|
|
33
33
|
return typeof e.type == "function" ? Fe(e) : null;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function _r(e) {
|
|
36
36
|
var t, n;
|
|
37
37
|
if ((e = e.__) != null && e.__c != null) {
|
|
38
38
|
for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) {
|
|
39
39
|
e.__e = e.__c.base = n.__e;
|
|
40
40
|
break;
|
|
41
41
|
}
|
|
42
|
-
return
|
|
42
|
+
return _r(e);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
(!e.__d && (e.__d = !0) &&
|
|
45
|
+
function Wt(e) {
|
|
46
|
+
(!e.__d && (e.__d = !0) && Ee.push(e) && !dt.__r++ || Fn !== F.debounceRendering) && ((Fn = F.debounceRendering) || dr)(dt);
|
|
47
47
|
}
|
|
48
48
|
function dt() {
|
|
49
49
|
var e, t, n, r, o, i, a, s;
|
|
50
|
-
for (
|
|
50
|
+
for (Ee.sort(Rt); e = Ee.shift(); ) e.__d && (t = Ee.length, r = void 0, i = (o = (n = e).__v).__e, a = [], s = [], n.__P && ((r = ue({}, o)).__v = o.__v + 1, F.vnode && F.vnode(r), an(n.__P, r, o, n.__n, n.__P.namespaceURI, 32 & o.__u ? [i] : null, a, i ?? Fe(o), !!(32 & o.__u), s), r.__v = o.__v, r.__.__k[r.__i] = r, yr(a, r, s), r.__e != i && _r(r)), Ee.length > t && Ee.sort(Rt));
|
|
51
51
|
dt.__r = 0;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
var c, p, f, v, y, m = r && r.__k ||
|
|
55
|
-
for (n.__d = l,
|
|
53
|
+
function vr(e, t, n, r, o, i, a, s, l, u, d) {
|
|
54
|
+
var c, p, f, v, y, m = r && r.__k || pr, _ = t.length;
|
|
55
|
+
for (n.__d = l, Mo(n, t, m), l = n.__d, c = 0; c < _; c++) (f = n.__k[c]) != null && typeof f != "boolean" && typeof f != "function" && (p = f.__i === -1 ? Ze : m[f.__i] || Ze, f.__i = c, an(e, f, p, o, i, a, s, l, u, d), v = f.__e, f.ref && p.ref != f.ref && (p.ref && sn(p.ref, null, f), d.push(f.ref, f.__c || v, f)), y == null && v != null && (y = v), 65536 & f.__u || p.__k === f.__k ? l = mr(f, l, e) : typeof f.type == "function" && f.__d !== void 0 ? l = f.__d : v && (l = v.nextSibling), f.__d = void 0, f.__u &= -196609);
|
|
56
56
|
n.__d = l, n.__e = y;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Mo(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 ? ze(null, o, null, null, null) : mt(o) ? ze(
|
|
61
|
-
if (d) for (r = 0; r < u; r++) (i = n[r]) != null && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = Fe(i)),
|
|
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 ? ze(null, o, null, null, null) : mt(o) ? ze(I, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? ze(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o) != null ? (o.__ = e, o.__b = e.__b + 1, s = No(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 = Fe(i)), jt(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 = Fe(i)), jt(i, i));
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function mr(e, t, n) {
|
|
64
64
|
var r, o;
|
|
65
65
|
if (typeof e.type == "function") {
|
|
66
|
-
for (r = e.__k, o = 0; r && o < r.length; o++) r[o] && (r[o].__ = e, t =
|
|
66
|
+
for (r = e.__k, o = 0; r && o < r.length; o++) r[o] && (r[o].__ = e, t = mr(r[o], t, n));
|
|
67
67
|
return t;
|
|
68
68
|
}
|
|
69
69
|
e.__e != t && (t && e.type && !n.contains(t) && (t = Fe(e)), n.insertBefore(e.__e, t || null), t = e.__e);
|
|
@@ -77,7 +77,7 @@ function de(e, t) {
|
|
|
77
77
|
de(n, t);
|
|
78
78
|
}) : t.push(e)), t;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function No(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; ) {
|
|
@@ -102,7 +102,7 @@ function ot(e, t, n, r, o) {
|
|
|
102
102
|
if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || Sn(e.style, t, "");
|
|
103
103
|
if (n) for (t in n) r && n[t] === r[t] || Sn(e.style, t, n[t]);
|
|
104
104
|
}
|
|
105
|
-
else if (t[0] === "o" && t[1] === "n") i = t !== (t = t.replace(/(PointerCapture)$|Capture$/i, "$1")), t = t.toLowerCase() in e || t === "onFocusOut" || t === "onFocusIn" ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = n, n ? r ? n.u = r.u : (n.u =
|
|
105
|
+
else if (t[0] === "o" && t[1] === "n") i = t !== (t = t.replace(/(PointerCapture)$|Capture$/i, "$1")), t = t.toLowerCase() in e || t === "onFocusOut" || t === "onFocusIn" ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = n, n ? r ? n.u = r.u : (n.u = rn, e.addEventListener(t, i ? Ut : Vt, i)) : e.removeEventListener(t, i ? Ut : Vt, i);
|
|
106
106
|
else {
|
|
107
107
|
if (o == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
108
108
|
else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
|
|
@@ -113,26 +113,26 @@ function ot(e, t, n, r, o) {
|
|
|
113
113
|
typeof n == "function" || (n == null || n === !1 && t[4] !== "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n));
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Mn(e) {
|
|
117
117
|
return function(t) {
|
|
118
118
|
if (this.l) {
|
|
119
119
|
var n = this.l[t.type + e];
|
|
120
|
-
if (t.t == null) t.t =
|
|
120
|
+
if (t.t == null) t.t = rn++;
|
|
121
121
|
else if (t.t < n.u) return;
|
|
122
|
-
return n(
|
|
122
|
+
return n(F.event ? F.event(t) : t);
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
var d, c, p, f, v, y, m, _, g, b, C, $,
|
|
126
|
+
function an(e, t, n, r, o, i, a, s, l, u) {
|
|
127
|
+
var d, c, p, f, v, y, m, _, g, b, C, $, N, O, R, W, E = t.type;
|
|
128
128
|
if (t.constructor !== void 0) return null;
|
|
129
|
-
128 & n.__u && (l = !!(32 & n.__u), i = [s = t.__e = n.__e]), (d =
|
|
129
|
+
128 & n.__u && (l = !!(32 & n.__u), i = [s = t.__e = n.__e]), (d = F.__b) && d(t);
|
|
130
130
|
e: if (typeof E == "function") try {
|
|
131
|
-
if (_ = t.props, g = "prototype" in E && E.prototype.render, b = (d = E.contextType) && r[d.__c], C = d ? b ? b.props.value : d.__ : r, n.__c ? m = (c = t.__c = n.__c).__ = c.__E : (g ? t.__c = c = new E(_, C) : (t.__c = c = new te(_, C), c.constructor = E, c.render =
|
|
131
|
+
if (_ = t.props, g = "prototype" in E && E.prototype.render, b = (d = E.contextType) && r[d.__c], C = d ? b ? b.props.value : d.__ : r, n.__c ? m = (c = t.__c = n.__c).__ = c.__E : (g ? t.__c = c = new E(_, C) : (t.__c = c = new te(_, C), c.constructor = E, c.render = Lo), b && b.sub(c), c.props = _, c.state || (c.state = {}), c.context = C, c.__n = r, p = c.__d = !0, c.__h = [], c._sb = []), g && c.__s == null && (c.__s = c.state), g && E.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = ue({}, c.__s)), ue(c.__s, E.getDerivedStateFromProps(_, c.__s))), f = c.props, v = c.state, c.__v = t, p) g && E.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), g && c.componentDidMount != null && c.__h.push(c.componentDidMount);
|
|
132
132
|
else {
|
|
133
133
|
if (g && E.getDerivedStateFromProps == null && _ !== f && c.componentWillReceiveProps != null && c.componentWillReceiveProps(_, C), !c.__e && (c.shouldComponentUpdate != null && c.shouldComponentUpdate(_, c.__s, C) === !1 || t.__v === n.__v)) {
|
|
134
|
-
for (t.__v !== n.__v && (c.props = _, c.state = c.__s, c.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function(
|
|
135
|
-
|
|
134
|
+
for (t.__v !== n.__v && (c.props = _, c.state = c.__s, c.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function(x) {
|
|
135
|
+
x && (x.__ = 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;
|
|
@@ -141,33 +141,33 @@ function on(e, t, n, r, o, i, a, s, l, u) {
|
|
|
141
141
|
c.componentDidUpdate(f, v, y);
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
|
-
if (c.context = C, c.props = _, c.__P = e, c.__e = !1,
|
|
145
|
-
for (c.state = c.__s, c.__d = !1,
|
|
144
|
+
if (c.context = C, c.props = _, c.__P = e, c.__e = !1, N = F.__r, O = 0, g) {
|
|
145
|
+
for (c.state = c.__s, c.__d = !1, N && N(t), d = c.render(c.props, c.state, c.context), R = 0; R < c._sb.length; R++) c.__h.push(c._sb[R]);
|
|
146
146
|
c._sb = [];
|
|
147
147
|
} else do
|
|
148
|
-
c.__d = !1,
|
|
148
|
+
c.__d = !1, N && N(t), d = c.render(c.props, c.state, c.context), c.state = c.__s;
|
|
149
149
|
while (c.__d && ++O < 25);
|
|
150
|
-
c.state = c.__s, c.getChildContext != null && (r = ue(ue({}, r), c.getChildContext())), g && !p && c.getSnapshotBeforeUpdate != null && (y = c.getSnapshotBeforeUpdate(f, v)),
|
|
151
|
-
} catch (
|
|
150
|
+
c.state = c.__s, c.getChildContext != null && (r = ue(ue({}, r), c.getChildContext())), g && !p && c.getSnapshotBeforeUpdate != null && (y = c.getSnapshotBeforeUpdate(f, v)), vr(e, mt(W = d != null && d.type === I && d.key == null ? d.props.children : d) ? W : [W], 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
|
+
} catch (x) {
|
|
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;
|
|
154
154
|
i[i.indexOf(s)] = null, t.__e = s;
|
|
155
155
|
} else t.__e = n.__e, t.__k = n.__k;
|
|
156
|
-
|
|
156
|
+
F.__e(x, t, n);
|
|
157
157
|
}
|
|
158
158
|
else i == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = Po(n.__e, t, n, r, o, i, a, l, u);
|
|
159
|
-
(d =
|
|
159
|
+
(d = F.diffed) && d(t);
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function yr(e, t, n) {
|
|
162
162
|
t.__d = void 0;
|
|
163
|
-
for (var r = 0; r < n.length; r++)
|
|
164
|
-
|
|
163
|
+
for (var r = 0; r < n.length; r++) sn(n[r], n[++r], n[++r]);
|
|
164
|
+
F.__c && F.__c(t, e), e.some(function(o) {
|
|
165
165
|
try {
|
|
166
166
|
e = o.__h, o.__h = [], e.some(function(i) {
|
|
167
167
|
i.call(o);
|
|
168
168
|
});
|
|
169
169
|
} catch (i) {
|
|
170
|
-
|
|
170
|
+
F.__e(i, o.__v);
|
|
171
171
|
}
|
|
172
172
|
});
|
|
173
173
|
}
|
|
@@ -195,51 +195,51 @@ function Po(e, t, n, r, o, i, a, s, l) {
|
|
|
195
195
|
}
|
|
196
196
|
for (u in _) f = _[u], u == "children" ? p = f : u == "dangerouslySetInnerHTML" ? d = f : u == "value" ? v = f : u == "checked" ? y = f : u === "key" || s && typeof f != "function" || m[u] === f || ot(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 = ""),
|
|
198
|
+
else if (c && (e.innerHTML = ""), vr(e, mt(p) ? p : [p], t, n, r, g === "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, a, i ? i[0] : n.__k && Fe(n, 0), s, l), i != null) for (u = i.length; u--; ) i[u] != null && hr(i[u]);
|
|
199
199
|
s || (u = "value", v !== void 0 && (v !== e[u] || g === "progress" && !v || g === "option" && v !== m[u]) && ot(e, u, v, m[u], o), u = "checked", y !== void 0 && y !== e[u] && ot(e, u, y, m[u], o));
|
|
200
200
|
}
|
|
201
201
|
return e;
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function sn(e, t, n) {
|
|
204
204
|
try {
|
|
205
205
|
if (typeof e == "function") {
|
|
206
206
|
var r = typeof e.__u == "function";
|
|
207
207
|
r && e.__u(), r && t == null || (e.__u = e(t));
|
|
208
208
|
} else e.current = t;
|
|
209
209
|
} catch (o) {
|
|
210
|
-
|
|
210
|
+
F.__e(o, n);
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function jt(e, t, n) {
|
|
214
214
|
var r, o;
|
|
215
|
-
if (
|
|
215
|
+
if (F.unmount && F.unmount(e), (r = e.ref) && (r.current && r.current !== e.__e || sn(r, null, t)), (r = e.__c) != null) {
|
|
216
216
|
if (r.componentWillUnmount) try {
|
|
217
217
|
r.componentWillUnmount();
|
|
218
218
|
} catch (i) {
|
|
219
|
-
|
|
219
|
+
F.__e(i, t);
|
|
220
220
|
}
|
|
221
221
|
r.base = r.__P = null;
|
|
222
222
|
}
|
|
223
|
-
if (r = e.__k) for (o = 0; o < r.length; o++) r[o] &&
|
|
224
|
-
n || e.__e == null ||
|
|
223
|
+
if (r = e.__k) for (o = 0; o < r.length; o++) r[o] && jt(r[o], t, n || typeof e.type != "function");
|
|
224
|
+
n || e.__e == null || hr(e.__e), e.__c = e.__ = e.__e = e.__d = void 0;
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function Lo(e, t, n) {
|
|
227
227
|
return this.constructor(e, n);
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function De(e, t, n) {
|
|
230
230
|
var r, o, i, a;
|
|
231
|
-
|
|
231
|
+
F.__ && F.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], a = [], an(t, e = (!r && n || t).__k = ne(I, null, [e]), o || Ze, Ze, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? Xe.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, a), yr(i, e, a);
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
|
|
233
|
+
function gr(e, t) {
|
|
234
|
+
De(e, t, gr);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function Ao(e, t, n) {
|
|
237
237
|
var r, o, i, a, s = ue({}, 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
239
|
return arguments.length > 2 && (s.children = arguments.length > 3 ? Xe.call(arguments, 2) : n), ze(e.type, s, r || e.key, o || e.ref, null);
|
|
240
240
|
}
|
|
241
|
-
function
|
|
242
|
-
var n = { __c: t = "__cC" +
|
|
241
|
+
function Y(e, t) {
|
|
242
|
+
var n = { __c: t = "__cC" + fr++, __: e, Consumer: function(r, o) {
|
|
243
243
|
return r.children(o);
|
|
244
244
|
}, Provider: function(r) {
|
|
245
245
|
var o, i;
|
|
@@ -249,7 +249,7 @@ function K(e, t) {
|
|
|
249
249
|
o = null;
|
|
250
250
|
}, this.shouldComponentUpdate = function(a) {
|
|
251
251
|
this.props.value !== a.value && o.some(function(s) {
|
|
252
|
-
s.__e = !0,
|
|
252
|
+
s.__e = !0, Wt(s);
|
|
253
253
|
});
|
|
254
254
|
}, this.sub = function(a) {
|
|
255
255
|
o.push(a);
|
|
@@ -261,42 +261,42 @@ function K(e, t) {
|
|
|
261
261
|
} };
|
|
262
262
|
return n.Provider.__ = n.Consumer.contextType = n;
|
|
263
263
|
}
|
|
264
|
-
Xe =
|
|
264
|
+
Xe = pr.slice, F = { __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) {
|
|
268
268
|
e = s;
|
|
269
269
|
}
|
|
270
270
|
throw e;
|
|
271
|
-
} },
|
|
271
|
+
} }, ur = 0, te.prototype.setState = function(e, t) {
|
|
272
272
|
var n;
|
|
273
|
-
n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = ue({}, this.state), typeof e == "function" && (e = e(ue({}, n), this.props)), e && ue(n, e), e != null && this.__v && (t && this._sb.push(t),
|
|
273
|
+
n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = ue({}, this.state), typeof e == "function" && (e = e(ue({}, n), this.props)), e && ue(n, e), e != null && this.__v && (t && this._sb.push(t), Wt(this));
|
|
274
274
|
}, te.prototype.forceUpdate = function(e) {
|
|
275
|
-
this.__v && (this.__e = !0, e && this.__h.push(e),
|
|
276
|
-
}, te.prototype.render =
|
|
275
|
+
this.__v && (this.__e = !0, e && this.__h.push(e), Wt(this));
|
|
276
|
+
}, te.prototype.render = I, Ee = [], dr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Rt = function(e, t) {
|
|
277
277
|
return e.__v.__b - t.__v.__b;
|
|
278
|
-
}, dt.__r = 0,
|
|
279
|
-
var
|
|
278
|
+
}, dt.__r = 0, rn = 0, Vt = Mn(!1), Ut = Mn(!0), fr = 0;
|
|
279
|
+
var Do = 0;
|
|
280
280
|
function h(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];
|
|
284
|
-
var u = { type: e, props: l, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --
|
|
284
|
+
var u = { type: e, props: l, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --Do, __i: -1, __u: 0, __source: o, __self: i };
|
|
285
285
|
if (typeof e == "function" && (a = e.defaultProps)) for (s in a) l[s] === void 0 && (l[s] = a[s]);
|
|
286
|
-
return
|
|
286
|
+
return F.vnode && F.vnode(u), u;
|
|
287
287
|
}
|
|
288
|
-
var
|
|
289
|
-
function
|
|
290
|
-
V.__h && V.__h(L, e,
|
|
288
|
+
var he, L, Mt, Nn, He = 0, wr = [], V = F, Pn = V.__b, Ln = V.__r, An = V.diffed, Dn = V.__c, Hn = V.unmount, In = V.__;
|
|
289
|
+
function Me(e, t) {
|
|
290
|
+
V.__h && V.__h(L, e, He || t), He = 0;
|
|
291
291
|
var n = L.__H || (L.__H = { __: [], __h: [] });
|
|
292
292
|
return e >= n.__.length && n.__.push({}), n.__[e];
|
|
293
293
|
}
|
|
294
|
-
function
|
|
295
|
-
return
|
|
294
|
+
function k(e) {
|
|
295
|
+
return He = 1, Qe(br, e);
|
|
296
296
|
}
|
|
297
297
|
function Qe(e, t, n) {
|
|
298
|
-
var r =
|
|
299
|
-
if (r.t = e, !r.__c && (r.__ = [n ? n(t) :
|
|
298
|
+
var r = Me(he++, 2);
|
|
299
|
+
if (r.t = e, !r.__c && (r.__ = [n ? n(t) : br(void 0, t), function(s) {
|
|
300
300
|
var l = r.__N ? r.__N[0] : r.__[0], u = r.t(l, s);
|
|
301
301
|
l !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
|
|
302
302
|
}], r.__c = L, !L.u)) {
|
|
@@ -328,21 +328,21 @@ function Qe(e, t, n) {
|
|
|
328
328
|
}
|
|
329
329
|
return r.__N || r.__;
|
|
330
330
|
}
|
|
331
|
-
function
|
|
332
|
-
var n =
|
|
333
|
-
!V.__s &&
|
|
331
|
+
function P(e, t) {
|
|
332
|
+
var n = Me(he++, 3);
|
|
333
|
+
!V.__s && un(n.__H, t) && (n.__ = e, n.i = t, L.__H.__h.push(n));
|
|
334
334
|
}
|
|
335
|
-
function
|
|
336
|
-
var n =
|
|
337
|
-
!V.__s &&
|
|
335
|
+
function Ne(e, t) {
|
|
336
|
+
var n = Me(he++, 4);
|
|
337
|
+
!V.__s && un(n.__H, t) && (n.__ = e, n.i = t, L.__h.push(n));
|
|
338
338
|
}
|
|
339
339
|
function w(e) {
|
|
340
|
-
return
|
|
340
|
+
return He = 5, M(function() {
|
|
341
341
|
return { current: e };
|
|
342
342
|
}, []);
|
|
343
343
|
}
|
|
344
|
-
function
|
|
345
|
-
|
|
344
|
+
function ln(e, t, n) {
|
|
345
|
+
He = 6, Ne(function() {
|
|
346
346
|
return typeof e == "function" ? (e(t()), function() {
|
|
347
347
|
return e(null);
|
|
348
348
|
}) : e ? (e.current = t(), function() {
|
|
@@ -351,31 +351,31 @@ function sn(e, t, n) {
|
|
|
351
351
|
}, n == null ? n : n.concat(e));
|
|
352
352
|
}
|
|
353
353
|
function M(e, t) {
|
|
354
|
-
var n =
|
|
355
|
-
return
|
|
354
|
+
var n = Me(he++, 7);
|
|
355
|
+
return un(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
|
|
356
356
|
}
|
|
357
357
|
function A(e, t) {
|
|
358
|
-
return
|
|
358
|
+
return He = 8, M(function() {
|
|
359
359
|
return e;
|
|
360
360
|
}, t);
|
|
361
361
|
}
|
|
362
362
|
function z(e) {
|
|
363
|
-
var t = L.context[e.__c], n =
|
|
363
|
+
var t = L.context[e.__c], n = Me(he++, 9);
|
|
364
364
|
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(L)), t.props.value) : e.__;
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function cn(e, t) {
|
|
367
367
|
V.useDebugValue && V.useDebugValue(t ? t(e) : e);
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
var t =
|
|
369
|
+
function Ho(e) {
|
|
370
|
+
var t = Me(he++, 10), n = k();
|
|
371
371
|
return t.__ = e, L.componentDidCatch || (L.componentDidCatch = function(r, o) {
|
|
372
372
|
t.__ && t.__(r, o), n[1](r);
|
|
373
373
|
}), [n[0], function() {
|
|
374
374
|
n[1](void 0);
|
|
375
375
|
}];
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
var e =
|
|
377
|
+
function ge() {
|
|
378
|
+
var e = Me(he++, 11);
|
|
379
379
|
if (!e.__) {
|
|
380
380
|
for (var t = L.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
|
|
381
381
|
var n = t.__m || (t.__m = [0, 0]);
|
|
@@ -383,9 +383,9 @@ function ye() {
|
|
|
383
383
|
}
|
|
384
384
|
return e.__;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
for (var e; e =
|
|
388
|
-
e.__H.__h.forEach(ut), e.__H.__h.forEach(
|
|
386
|
+
function Io() {
|
|
387
|
+
for (var e; e = wr.shift(); ) if (e.__P && e.__H) try {
|
|
388
|
+
e.__H.__h.forEach(ut), e.__H.__h.forEach(zt), e.__H.__h = [];
|
|
389
389
|
} catch (t) {
|
|
390
390
|
e.__H.__h = [], V.__e(t, e.__v);
|
|
391
391
|
}
|
|
@@ -393,33 +393,33 @@ function Ho() {
|
|
|
393
393
|
V.__b = function(e) {
|
|
394
394
|
L = null, Pn && Pn(e);
|
|
395
395
|
}, V.__ = function(e, t) {
|
|
396
|
-
e && t.__k && t.__k.__m && (e.__m = t.__k.__m),
|
|
396
|
+
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), In && In(e, t);
|
|
397
397
|
}, V.__r = function(e) {
|
|
398
|
-
|
|
398
|
+
Ln && Ln(e), he = 0;
|
|
399
399
|
var t = (L = e.__c).__H;
|
|
400
400
|
t && (Mt === L ? (t.__h = [], L.__h = [], t.__.forEach(function(n) {
|
|
401
401
|
n.__N && (n.__ = n.__N), n.i = n.__N = void 0;
|
|
402
|
-
})) : (t.__h.forEach(ut), t.__h.forEach(
|
|
402
|
+
})) : (t.__h.forEach(ut), t.__h.forEach(zt), t.__h = [], he = 0)), Mt = L;
|
|
403
403
|
}, V.diffed = function(e) {
|
|
404
|
-
|
|
404
|
+
An && An(e);
|
|
405
405
|
var t = e.__c;
|
|
406
|
-
t && t.__H && (t.__H.__h.length && (
|
|
406
|
+
t && t.__H && (t.__H.__h.length && (wr.push(t) !== 1 && Nn === V.requestAnimationFrame || ((Nn = V.requestAnimationFrame) || Oo)(Io)), t.__H.__.forEach(function(n) {
|
|
407
407
|
n.i && (n.__H = n.i), n.i = void 0;
|
|
408
408
|
})), Mt = L = null;
|
|
409
409
|
}, V.__c = function(e, t) {
|
|
410
410
|
t.some(function(n) {
|
|
411
411
|
try {
|
|
412
412
|
n.__h.forEach(ut), n.__h = n.__h.filter(function(r) {
|
|
413
|
-
return !r.__ ||
|
|
413
|
+
return !r.__ || zt(r);
|
|
414
414
|
});
|
|
415
415
|
} catch (r) {
|
|
416
416
|
t.some(function(o) {
|
|
417
417
|
o.__h && (o.__h = []);
|
|
418
418
|
}), t = [], V.__e(r, n.__v);
|
|
419
419
|
}
|
|
420
|
-
}),
|
|
420
|
+
}), Dn && Dn(e, t);
|
|
421
421
|
}, V.unmount = function(e) {
|
|
422
|
-
|
|
422
|
+
Hn && Hn(e);
|
|
423
423
|
var t, n = e.__c;
|
|
424
424
|
n && n.__H && (n.__H.__.forEach(function(r) {
|
|
425
425
|
try {
|
|
@@ -429,34 +429,34 @@ V.__b = function(e) {
|
|
|
429
429
|
}
|
|
430
430
|
}), n.__H = void 0, t && V.__e(t, n.__v));
|
|
431
431
|
};
|
|
432
|
-
var
|
|
433
|
-
function
|
|
432
|
+
var On = typeof requestAnimationFrame == "function";
|
|
433
|
+
function Oo(e) {
|
|
434
434
|
var t, n = function() {
|
|
435
|
-
clearTimeout(r),
|
|
435
|
+
clearTimeout(r), On && cancelAnimationFrame(t), setTimeout(e);
|
|
436
436
|
}, r = setTimeout(n, 100);
|
|
437
|
-
|
|
437
|
+
On && (t = requestAnimationFrame(n));
|
|
438
438
|
}
|
|
439
439
|
function ut(e) {
|
|
440
440
|
var t = L, n = e.__c;
|
|
441
441
|
typeof n == "function" && (e.__c = void 0, n()), L = t;
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function zt(e) {
|
|
444
444
|
var t = L;
|
|
445
445
|
e.__c = e.__(), L = t;
|
|
446
446
|
}
|
|
447
|
-
function
|
|
447
|
+
function un(e, t) {
|
|
448
448
|
return !e || e.length !== t.length || t.some(function(n, r) {
|
|
449
449
|
return n !== e[r];
|
|
450
450
|
});
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function br(e, t) {
|
|
453
453
|
return typeof t == "function" ? t(e) : t;
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function Er(e, t) {
|
|
456
456
|
for (var n in t) e[n] = t[n];
|
|
457
457
|
return e;
|
|
458
458
|
}
|
|
459
|
-
function
|
|
459
|
+
function Bt(e, t) {
|
|
460
460
|
for (var n in e) if (n !== "__source" && !(n in t)) return !0;
|
|
461
461
|
for (var r in t) if (r !== "__source" && e[r] !== t[r]) return !0;
|
|
462
462
|
return !1;
|
|
@@ -464,10 +464,10 @@ function zt(e, t) {
|
|
|
464
464
|
function ft(e, t) {
|
|
465
465
|
this.props = e, this.context = t;
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function $r(e, t) {
|
|
468
468
|
function n(o) {
|
|
469
469
|
var i = this.props.ref, a = i == o.ref;
|
|
470
|
-
return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a :
|
|
470
|
+
return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a : Bt(this.props, o);
|
|
471
471
|
}
|
|
472
472
|
function r(o) {
|
|
473
473
|
return this.shouldComponentUpdate = n, ne(e, o);
|
|
@@ -475,46 +475,46 @@ function Er(e, t) {
|
|
|
475
475
|
return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r;
|
|
476
476
|
}
|
|
477
477
|
(ft.prototype = new te()).isPureReactComponent = !0, ft.prototype.shouldComponentUpdate = function(e, t) {
|
|
478
|
-
return
|
|
478
|
+
return Bt(this.props, e) || Bt(this.state, t);
|
|
479
479
|
};
|
|
480
|
-
var
|
|
481
|
-
|
|
482
|
-
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null),
|
|
480
|
+
var Rn = F.__b;
|
|
481
|
+
F.__b = function(e) {
|
|
482
|
+
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Rn && Rn(e);
|
|
483
483
|
};
|
|
484
|
-
var
|
|
485
|
-
function
|
|
484
|
+
var Ro = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
485
|
+
function dn(e) {
|
|
486
486
|
function t(n) {
|
|
487
|
-
var r =
|
|
487
|
+
var r = Er({}, n);
|
|
488
488
|
return delete r.ref, e(r, n.ref || null);
|
|
489
489
|
}
|
|
490
|
-
return t.$$typeof =
|
|
490
|
+
return t.$$typeof = Ro, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
491
491
|
}
|
|
492
|
-
var
|
|
492
|
+
var Vn = function(e, t) {
|
|
493
493
|
return e == null ? null : de(de(e).map(t));
|
|
494
|
-
},
|
|
494
|
+
}, Tr = { map: Vn, forEach: Vn, count: function(e) {
|
|
495
495
|
return e ? de(e).length : 0;
|
|
496
496
|
}, only: function(e) {
|
|
497
497
|
var t = de(e);
|
|
498
498
|
if (t.length !== 1) throw "Children.only";
|
|
499
499
|
return t[0];
|
|
500
|
-
}, toArray: de },
|
|
501
|
-
|
|
500
|
+
}, toArray: de }, Vo = F.__e;
|
|
501
|
+
F.__e = function(e, t, n, r) {
|
|
502
502
|
if (e.then) {
|
|
503
503
|
for (var o, i = t; i = i.__; ) if ((o = i.__c) && o.__c) return t.__e == null && (t.__e = n.__e, t.__k = n.__k), o.__c(e, t);
|
|
504
504
|
}
|
|
505
|
-
|
|
505
|
+
Vo(e, t, n, r);
|
|
506
506
|
};
|
|
507
|
-
var
|
|
508
|
-
function
|
|
507
|
+
var Un = F.unmount;
|
|
508
|
+
function Cr(e, t, n) {
|
|
509
509
|
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
|
|
510
510
|
typeof r.__c == "function" && r.__c();
|
|
511
|
-
}), e.__c.__H = null), (e =
|
|
512
|
-
return
|
|
511
|
+
}), e.__c.__H = null), (e = Er({}, 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 Cr(r, t, n);
|
|
513
513
|
})), e;
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function xr(e, t, n) {
|
|
516
516
|
return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
|
|
517
|
-
return
|
|
517
|
+
return xr(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 Be() {
|
|
@@ -537,12 +537,12 @@ function Fr(e) {
|
|
|
537
537
|
}
|
|
538
538
|
return o.displayName = "Lazy", o.__f = !0, o;
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function Ae() {
|
|
541
541
|
this.u = null, this.o = null;
|
|
542
542
|
}
|
|
543
|
-
|
|
543
|
+
F.unmount = function(e) {
|
|
544
544
|
var t = e.__c;
|
|
545
|
-
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null),
|
|
545
|
+
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Un && Un(e);
|
|
546
546
|
}, (Be.prototype = new te()).__c = function(e, t) {
|
|
547
547
|
var n = t.__c, r = this;
|
|
548
548
|
r.t == null && (r.t = []), r.t.push(n);
|
|
@@ -554,7 +554,7 @@ S.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] = xr(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,29 +567,29 @@ S.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] = Cr(this.__b, n, r.__O = r.__P);
|
|
571
571
|
}
|
|
572
572
|
this.__b = null;
|
|
573
573
|
}
|
|
574
|
-
var o = t.__a && ne(
|
|
575
|
-
return o && (o.__u &= -33), [ne(
|
|
574
|
+
var o = t.__a && ne(I, null, e.fallback);
|
|
575
|
+
return o && (o.__u &= -33), [ne(I, null, t.__a ? null : e.children), o];
|
|
576
576
|
};
|
|
577
|
-
var
|
|
577
|
+
var Wn = function(e, t, n) {
|
|
578
578
|
if (++n[1] === n[0] && e.o.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.o.size)) for (n = e.u; n; ) {
|
|
579
579
|
for (; n.length > 3; ) n.pop()();
|
|
580
580
|
if (n[1] < n[0]) break;
|
|
581
581
|
e.u = n = n[2];
|
|
582
582
|
}
|
|
583
583
|
};
|
|
584
|
-
function
|
|
584
|
+
function Uo(e) {
|
|
585
585
|
return this.getChildContext = function() {
|
|
586
586
|
return e.context;
|
|
587
587
|
}, e.children;
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function Wo(e) {
|
|
590
590
|
var t = this, n = e.i;
|
|
591
591
|
t.componentWillUnmount = function() {
|
|
592
|
-
|
|
592
|
+
De(null, t.l), t.l = null, t.i = null;
|
|
593
593
|
}, t.i && t.i !== n && t.componentWillUnmount(), t.l || (t.i = n, t.l = { nodeType: 1, parentNode: n, childNodes: [], contains: function() {
|
|
594
594
|
return !0;
|
|
595
595
|
}, appendChild: function(r) {
|
|
@@ -598,40 +598,40 @@ function Uo(e) {
|
|
|
598
598
|
this.childNodes.push(r), t.i.appendChild(r);
|
|
599
599
|
}, removeChild: function(r) {
|
|
600
600
|
this.childNodes.splice(this.childNodes.indexOf(r) >>> 1, 1), t.i.removeChild(r);
|
|
601
|
-
} }),
|
|
601
|
+
} }), De(ne(Uo, { context: t.context }, e.__v), t.l);
|
|
602
602
|
}
|
|
603
603
|
function yt(e, t) {
|
|
604
|
-
var n = ne(
|
|
604
|
+
var n = ne(Wo, { __v: e, i: t });
|
|
605
605
|
return n.containerInfo = t, n;
|
|
606
606
|
}
|
|
607
|
-
(
|
|
607
|
+
(Ae.prototype = new te()).__a = function(e) {
|
|
608
608
|
var t = this, n = kr(t.__v), r = t.o.get(e);
|
|
609
609
|
return r[0]++, function(o) {
|
|
610
610
|
var i = function() {
|
|
611
|
-
t.props.revealOrder ? (r.push(o),
|
|
611
|
+
t.props.revealOrder ? (r.push(o), Wn(t, e, r)) : o();
|
|
612
612
|
};
|
|
613
613
|
n ? n(i) : i();
|
|
614
614
|
};
|
|
615
|
-
},
|
|
615
|
+
}, Ae.prototype.render = function(e) {
|
|
616
616
|
this.u = null, this.o = /* @__PURE__ */ new Map();
|
|
617
617
|
var t = de(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
|
+
}, Ae.prototype.componentDidUpdate = Ae.prototype.componentDidMount = function() {
|
|
622
622
|
var e = this;
|
|
623
623
|
this.o.forEach(function(t, n) {
|
|
624
|
-
|
|
624
|
+
Wn(e, n, t);
|
|
625
625
|
});
|
|
626
626
|
};
|
|
627
|
-
var Sr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103,
|
|
627
|
+
var Sr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, jo = /^(?: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]/, zo = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Bo = /[A-Z0-9]/g, qo = typeof document < "u", Ko = function(e) {
|
|
628
628
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
629
629
|
};
|
|
630
|
-
function xr(e, t, n) {
|
|
631
|
-
return t.__k == null && (t.textContent = ""), Ae(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
632
|
-
}
|
|
633
630
|
function Mr(e, t, n) {
|
|
634
|
-
return
|
|
631
|
+
return t.__k == null && (t.textContent = ""), De(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
632
|
+
}
|
|
633
|
+
function Nr(e, t, n) {
|
|
634
|
+
return gr(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
635
635
|
}
|
|
636
636
|
te.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
637
637
|
Object.defineProperty(te.prototype, e, { configurable: !0, get: function() {
|
|
@@ -640,98 +640,98 @@ te.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceive
|
|
|
640
640
|
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
|
|
641
641
|
} });
|
|
642
642
|
});
|
|
643
|
-
var
|
|
643
|
+
var jn = F.event;
|
|
644
644
|
function Yo() {
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function Go() {
|
|
647
647
|
return this.cancelBubble;
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function Zo() {
|
|
650
650
|
return this.defaultPrevented;
|
|
651
651
|
}
|
|
652
|
-
|
|
653
|
-
return
|
|
652
|
+
F.event = function(e) {
|
|
653
|
+
return jn && (e = jn(e)), e.persist = Yo, e.isPropagationStopped = Go, e.isDefaultPrevented = Zo, e.nativeEvent = e;
|
|
654
654
|
};
|
|
655
|
-
var
|
|
655
|
+
var fn, Xo = { enumerable: !1, configurable: !0, get: function() {
|
|
656
656
|
return this.class;
|
|
657
|
-
} },
|
|
658
|
-
|
|
657
|
+
} }, zn = F.vnode;
|
|
658
|
+
F.vnode = function(e) {
|
|
659
659
|
typeof e.type == "string" && function(t) {
|
|
660
660
|
var n = t.props, r = t.type, o = {};
|
|
661
661
|
for (var i in n) {
|
|
662
662
|
var a = n[i];
|
|
663
|
-
if (!(i === "value" && "defaultValue" in n && a == null ||
|
|
663
|
+
if (!(i === "value" && "defaultValue" in n && a == null || qo && i === "children" && r === "noscript" || i === "class" || i === "className")) {
|
|
664
664
|
var s = i.toLowerCase();
|
|
665
|
-
i === "defaultValue" && "value" in n && n.value == null ? i = "value" : i === "download" && a === !0 ? a = "" : s === "translate" && a === "no" ? a = !1 : s === "ondoubleclick" ? i = "ondblclick" : s !== "onchange" || r !== "input" && r !== "textarea" ||
|
|
665
|
+
i === "defaultValue" && "value" in n && n.value == null ? i = "value" : i === "download" && a === !0 ? a = "" : s === "translate" && a === "no" ? a = !1 : s === "ondoubleclick" ? i = "ondblclick" : s !== "onchange" || r !== "input" && r !== "textarea" || Ko(n.type) ? s === "onfocus" ? i = "onfocusin" : s === "onblur" ? i = "onfocusout" : zo.test(i) ? i = s : r.indexOf("-") === -1 && jo.test(i) ? i = i.replace(Bo, "-$&").toLowerCase() : a === null && (a = void 0) : s = i = "oninput", s === "oninput" && o[i = s] && (i = "oninputCapture"), o[i] = a;
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
668
|
r == "select" && o.multiple && Array.isArray(o.value) && (o.value = de(n.children).forEach(function(l) {
|
|
669
669
|
l.props.selected = o.value.indexOf(l.props.value) != -1;
|
|
670
670
|
})), r == "select" && o.defaultValue != null && (o.value = de(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
|
-
})), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className",
|
|
673
|
-
}(e), e.$$typeof = Sr,
|
|
672
|
+
})), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", Xo)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
|
|
673
|
+
}(e), e.$$typeof = Sr, zn && zn(e);
|
|
674
674
|
};
|
|
675
|
-
var
|
|
676
|
-
|
|
677
|
-
|
|
675
|
+
var Bn = F.__r;
|
|
676
|
+
F.__r = function(e) {
|
|
677
|
+
Bn && Bn(e), fn = e.__c;
|
|
678
678
|
};
|
|
679
|
-
var
|
|
680
|
-
|
|
681
|
-
|
|
679
|
+
var qn = F.diffed;
|
|
680
|
+
F.diffed = function(e) {
|
|
681
|
+
qn && qn(e);
|
|
682
682
|
var t = e.props, n = e.__e;
|
|
683
|
-
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value),
|
|
683
|
+
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), fn = null;
|
|
684
684
|
};
|
|
685
685
|
var Pr = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
686
|
-
return
|
|
687
|
-
}, useCallback: A, useContext: z, useDebugValue:
|
|
688
|
-
function
|
|
686
|
+
return fn.__n[e.__c].props.value;
|
|
687
|
+
}, useCallback: A, useContext: z, useDebugValue: cn, useDeferredValue: _n, useEffect: P, useId: ge, useImperativeHandle: ln, useInsertionEffect: mn, useLayoutEffect: Ne, useMemo: M, useReducer: Qe, useRef: w, useState: k, useSyncExternalStore: gt, useTransition: vn } } }, Qo = "17.0.2";
|
|
688
|
+
function Lr(e) {
|
|
689
689
|
return ne.bind(null, e);
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function Ie(e) {
|
|
692
692
|
return !!e && e.$$typeof === Sr;
|
|
693
693
|
}
|
|
694
|
-
function Lr(e) {
|
|
695
|
-
return De(e) && e.type === D;
|
|
696
|
-
}
|
|
697
694
|
function Ar(e) {
|
|
698
|
-
return
|
|
695
|
+
return Ie(e) && e.type === I;
|
|
699
696
|
}
|
|
700
|
-
function
|
|
701
|
-
return
|
|
697
|
+
function Dr(e) {
|
|
698
|
+
return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
|
|
702
699
|
}
|
|
703
|
-
function
|
|
704
|
-
return
|
|
700
|
+
function pn(e) {
|
|
701
|
+
return Ie(e) ? Ao.apply(null, arguments) : e;
|
|
705
702
|
}
|
|
706
703
|
function Hr(e) {
|
|
704
|
+
return !!e.__k && (De(null, e), !0);
|
|
705
|
+
}
|
|
706
|
+
function Ir(e) {
|
|
707
707
|
return e && (e.base || e.nodeType === 1 && e) || null;
|
|
708
708
|
}
|
|
709
|
-
var
|
|
709
|
+
var Or = function(e, t) {
|
|
710
710
|
return e(t);
|
|
711
|
-
},
|
|
711
|
+
}, Rr = function(e, t) {
|
|
712
712
|
return e(t);
|
|
713
|
-
},
|
|
714
|
-
function
|
|
713
|
+
}, Vr = I;
|
|
714
|
+
function hn(e) {
|
|
715
715
|
e();
|
|
716
716
|
}
|
|
717
|
-
function
|
|
717
|
+
function _n(e) {
|
|
718
718
|
return e;
|
|
719
719
|
}
|
|
720
|
-
function
|
|
721
|
-
return [!1,
|
|
720
|
+
function vn() {
|
|
721
|
+
return [!1, hn];
|
|
722
722
|
}
|
|
723
|
-
var
|
|
723
|
+
var mn = Ne, Ur = Ie;
|
|
724
724
|
function gt(e, t) {
|
|
725
|
-
var n = t(), r =
|
|
726
|
-
return
|
|
727
|
-
o.__ = n, o.v = t,
|
|
728
|
-
}, [e, n, t]),
|
|
729
|
-
return
|
|
730
|
-
|
|
725
|
+
var n = t(), r = k({ h: { __: n, v: t } }), o = r[0].h, i = r[1];
|
|
726
|
+
return Ne(function() {
|
|
727
|
+
o.__ = n, o.v = t, Nt(o) && i({ h: o });
|
|
728
|
+
}, [e, n, t]), P(function() {
|
|
729
|
+
return Nt(o) && i({ h: o }), e(function() {
|
|
730
|
+
Nt(o) && i({ h: o });
|
|
731
731
|
});
|
|
732
732
|
}, [e]), n;
|
|
733
733
|
}
|
|
734
|
-
function
|
|
734
|
+
function Nt(e) {
|
|
735
735
|
var t, n, r = e.v, o = e.__;
|
|
736
736
|
try {
|
|
737
737
|
var i = r();
|
|
@@ -740,60 +740,60 @@ function Pt(e) {
|
|
|
740
740
|
return !0;
|
|
741
741
|
}
|
|
742
742
|
}
|
|
743
|
-
var T = { useState:
|
|
744
|
-
const
|
|
743
|
+
var T = { useState: k, useId: ge, useReducer: Qe, useEffect: P, useLayoutEffect: Ne, useInsertionEffect: mn, useTransition: vn, useDeferredValue: _n, useSyncExternalStore: gt, startTransition: hn, useRef: w, useImperativeHandle: ln, useMemo: M, useCallback: A, useContext: z, useDebugValue: cn, version: "17.0.2", Children: Tr, render: Mr, hydrate: Nr, unmountComponentAtNode: Hr, createPortal: yt, createElement: ne, createContext: Y, createFactory: Lr, cloneElement: pn, createRef: on, Fragment: I, isValidElement: Ie, isElement: Ur, isFragment: Ar, isMemo: Dr, findDOMNode: Ir, Component: te, PureComponent: ft, memo: $r, forwardRef: dn, flushSync: Rr, unstable_batchedUpdates: Or, StrictMode: Vr, Suspense: Be, SuspenseList: Ae, lazy: Fr, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Pr };
|
|
744
|
+
const Kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
745
745
|
__proto__: null,
|
|
746
|
-
Children:
|
|
746
|
+
Children: Tr,
|
|
747
747
|
Component: te,
|
|
748
|
-
Fragment:
|
|
748
|
+
Fragment: I,
|
|
749
749
|
PureComponent: ft,
|
|
750
|
-
StrictMode:
|
|
750
|
+
StrictMode: Vr,
|
|
751
751
|
Suspense: Be,
|
|
752
|
-
SuspenseList:
|
|
752
|
+
SuspenseList: Ae,
|
|
753
753
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Pr,
|
|
754
|
-
cloneElement:
|
|
755
|
-
createContext:
|
|
754
|
+
cloneElement: pn,
|
|
755
|
+
createContext: Y,
|
|
756
756
|
createElement: ne,
|
|
757
|
-
createFactory:
|
|
757
|
+
createFactory: Lr,
|
|
758
758
|
createPortal: yt,
|
|
759
|
-
createRef:
|
|
759
|
+
createRef: on,
|
|
760
760
|
default: T,
|
|
761
|
-
findDOMNode:
|
|
762
|
-
flushSync:
|
|
763
|
-
forwardRef:
|
|
764
|
-
hydrate:
|
|
765
|
-
isElement:
|
|
766
|
-
isFragment:
|
|
767
|
-
isMemo:
|
|
768
|
-
isValidElement:
|
|
761
|
+
findDOMNode: Ir,
|
|
762
|
+
flushSync: Rr,
|
|
763
|
+
forwardRef: dn,
|
|
764
|
+
hydrate: Nr,
|
|
765
|
+
isElement: Ur,
|
|
766
|
+
isFragment: Ar,
|
|
767
|
+
isMemo: Dr,
|
|
768
|
+
isValidElement: Ie,
|
|
769
769
|
lazy: Fr,
|
|
770
|
-
memo:
|
|
771
|
-
render:
|
|
772
|
-
startTransition:
|
|
773
|
-
unmountComponentAtNode:
|
|
774
|
-
unstable_batchedUpdates:
|
|
770
|
+
memo: $r,
|
|
771
|
+
render: Mr,
|
|
772
|
+
startTransition: hn,
|
|
773
|
+
unmountComponentAtNode: Hr,
|
|
774
|
+
unstable_batchedUpdates: Or,
|
|
775
775
|
useCallback: A,
|
|
776
776
|
useContext: z,
|
|
777
|
-
useDebugValue:
|
|
778
|
-
useDeferredValue:
|
|
779
|
-
useEffect:
|
|
780
|
-
useErrorBoundary:
|
|
781
|
-
useId:
|
|
782
|
-
useImperativeHandle:
|
|
783
|
-
useInsertionEffect:
|
|
784
|
-
useLayoutEffect:
|
|
777
|
+
useDebugValue: cn,
|
|
778
|
+
useDeferredValue: _n,
|
|
779
|
+
useEffect: P,
|
|
780
|
+
useErrorBoundary: Ho,
|
|
781
|
+
useId: ge,
|
|
782
|
+
useImperativeHandle: ln,
|
|
783
|
+
useInsertionEffect: mn,
|
|
784
|
+
useLayoutEffect: Ne,
|
|
785
785
|
useMemo: M,
|
|
786
786
|
useReducer: Qe,
|
|
787
787
|
useRef: w,
|
|
788
|
-
useState:
|
|
788
|
+
useState: k,
|
|
789
789
|
useSyncExternalStore: gt,
|
|
790
|
-
useTransition:
|
|
791
|
-
version:
|
|
792
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
790
|
+
useTransition: vn,
|
|
791
|
+
version: Qo
|
|
792
|
+
}, Symbol.toStringTag, { value: "Module" })), Wr = typeof document < "u" ? T.useLayoutEffect : () => {
|
|
793
793
|
};
|
|
794
|
-
function
|
|
794
|
+
function Jo(e) {
|
|
795
795
|
const t = w(null);
|
|
796
|
-
return
|
|
796
|
+
return Wr(() => {
|
|
797
797
|
t.current = e;
|
|
798
798
|
}, [
|
|
799
799
|
e
|
|
@@ -805,25 +805,25 @@ function Qo(e) {
|
|
|
805
805
|
const Je = (e) => {
|
|
806
806
|
var t;
|
|
807
807
|
return (t = e == null ? void 0 : e.ownerDocument) !== null && t !== void 0 ? t : document;
|
|
808
|
-
},
|
|
809
|
-
function
|
|
808
|
+
}, Te = (e) => e && "window" in e && e.window === e ? e : Je(e).defaultView || window;
|
|
809
|
+
function ei(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);
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function ti(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 ti() {
|
|
818
|
-
return ei(/^Mac/i);
|
|
819
|
-
}
|
|
820
817
|
function ni() {
|
|
821
|
-
return
|
|
818
|
+
return ti(/^Mac/i);
|
|
819
|
+
}
|
|
820
|
+
function ri() {
|
|
821
|
+
return ei(/Android/i);
|
|
822
822
|
}
|
|
823
|
-
function
|
|
824
|
-
return e.mozInputSource === 0 && e.isTrusted ? !0 :
|
|
823
|
+
function oi(e) {
|
|
824
|
+
return e.mozInputSource === 0 && e.isTrusted ? !0 : ri() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
|
|
825
825
|
}
|
|
826
|
-
class
|
|
826
|
+
class ii {
|
|
827
827
|
isDefaultPrevented() {
|
|
828
828
|
return this.nativeEvent.defaultPrevented;
|
|
829
829
|
}
|
|
@@ -842,25 +842,25 @@ class oi {
|
|
|
842
842
|
this.nativeEvent = n, this.target = n.target, this.currentTarget = n.currentTarget, this.relatedTarget = n.relatedTarget, this.bubbles = n.bubbles, this.cancelable = n.cancelable, this.defaultPrevented = n.defaultPrevented, this.eventPhase = n.eventPhase, this.isTrusted = n.isTrusted, this.timeStamp = n.timeStamp, this.type = t;
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
|
-
function
|
|
845
|
+
function jr(e) {
|
|
846
846
|
let t = w({
|
|
847
847
|
isFocused: !1,
|
|
848
848
|
observer: null
|
|
849
849
|
});
|
|
850
|
-
|
|
850
|
+
Wr(() => {
|
|
851
851
|
const r = t.current;
|
|
852
852
|
return () => {
|
|
853
853
|
r.observer && (r.observer.disconnect(), r.observer = null);
|
|
854
854
|
};
|
|
855
855
|
}, []);
|
|
856
|
-
let n =
|
|
856
|
+
let n = Jo((r) => {
|
|
857
857
|
e == null || e(r);
|
|
858
858
|
});
|
|
859
859
|
return A((r) => {
|
|
860
860
|
if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
|
|
861
861
|
t.current.isFocused = !0;
|
|
862
862
|
let o = r.target, i = (a) => {
|
|
863
|
-
t.current.isFocused = !1, o.disabled && n(new
|
|
863
|
+
t.current.isFocused = !1, o.disabled && n(new ii("blur", a)), t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
|
|
864
864
|
};
|
|
865
865
|
o.addEventListener("focusout", i, {
|
|
866
866
|
once: !0
|
|
@@ -887,7 +887,7 @@ function Wr(e) {
|
|
|
887
887
|
n
|
|
888
888
|
]);
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function ai(e) {
|
|
891
891
|
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: o } = e;
|
|
892
892
|
const i = A((l) => {
|
|
893
893
|
if (l.target === l.currentTarget)
|
|
@@ -895,7 +895,7 @@ function ii(e) {
|
|
|
895
895
|
}, [
|
|
896
896
|
r,
|
|
897
897
|
o
|
|
898
|
-
]), a =
|
|
898
|
+
]), a = jr(i), s = A((l) => {
|
|
899
899
|
const u = Je(l.target);
|
|
900
900
|
l.target === l.currentTarget && u.activeElement === l.target && (n && n(l), o && o(!0), a(l));
|
|
901
901
|
}, [
|
|
@@ -910,62 +910,62 @@ function ii(e) {
|
|
|
910
910
|
}
|
|
911
911
|
};
|
|
912
912
|
}
|
|
913
|
-
let et = null,
|
|
914
|
-
const
|
|
913
|
+
let et = null, qt = /* @__PURE__ */ new Set(), qe = /* @__PURE__ */ new Map(), Se = !1, Kt = !1;
|
|
914
|
+
const si = {
|
|
915
915
|
Tab: !0,
|
|
916
916
|
Escape: !0
|
|
917
917
|
};
|
|
918
|
-
function
|
|
919
|
-
for (let n of
|
|
918
|
+
function yn(e, t) {
|
|
919
|
+
for (let n of qt) n(e, t);
|
|
920
920
|
}
|
|
921
|
-
function
|
|
922
|
-
return !(e.metaKey || !
|
|
921
|
+
function li(e) {
|
|
922
|
+
return !(e.metaKey || !ni() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
923
923
|
}
|
|
924
924
|
function pt(e) {
|
|
925
|
-
Se = !0,
|
|
925
|
+
Se = !0, li(e) && (et = "keyboard", yn("keyboard", e));
|
|
926
926
|
}
|
|
927
927
|
function X(e) {
|
|
928
|
-
et = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (Se = !0,
|
|
929
|
-
}
|
|
930
|
-
function jr(e) {
|
|
931
|
-
ri(e) && (Se = !0, et = "virtual");
|
|
928
|
+
et = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (Se = !0, yn("pointer", e));
|
|
932
929
|
}
|
|
933
930
|
function zr(e) {
|
|
934
|
-
e
|
|
931
|
+
oi(e) && (Se = !0, et = "virtual");
|
|
932
|
+
}
|
|
933
|
+
function Br(e) {
|
|
934
|
+
e.target === window || e.target === document || (!Se && !Kt && (et = "virtual", yn("virtual", e)), Se = !1, Kt = !1);
|
|
935
935
|
}
|
|
936
|
-
function
|
|
937
|
-
Se = !1,
|
|
936
|
+
function qr() {
|
|
937
|
+
Se = !1, Kt = !0;
|
|
938
938
|
}
|
|
939
939
|
function Yt(e) {
|
|
940
|
-
if (typeof window > "u" || qe.get(
|
|
941
|
-
const t =
|
|
940
|
+
if (typeof window > "u" || qe.get(Te(e))) return;
|
|
941
|
+
const t = Te(e), n = Je(e);
|
|
942
942
|
let r = t.HTMLElement.prototype.focus;
|
|
943
943
|
t.HTMLElement.prototype.focus = function() {
|
|
944
944
|
Se = !0, r.apply(this, arguments);
|
|
945
|
-
}, n.addEventListener("keydown", pt, !0), n.addEventListener("keyup", pt, !0), n.addEventListener("click",
|
|
946
|
-
|
|
945
|
+
}, n.addEventListener("keydown", pt, !0), n.addEventListener("keyup", pt, !0), n.addEventListener("click", zr, !0), t.addEventListener("focus", Br, !0), t.addEventListener("blur", qr, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", X, !0), n.addEventListener("pointermove", X, !0), n.addEventListener("pointerup", X, !0)) : (n.addEventListener("mousedown", X, !0), n.addEventListener("mousemove", X, !0), n.addEventListener("mouseup", X, !0)), t.addEventListener("beforeunload", () => {
|
|
946
|
+
Kr(e);
|
|
947
947
|
}, {
|
|
948
948
|
once: !0
|
|
949
949
|
}), qe.set(t, {
|
|
950
950
|
focus: r
|
|
951
951
|
});
|
|
952
952
|
}
|
|
953
|
-
const
|
|
954
|
-
const n =
|
|
955
|
-
t && r.removeEventListener("DOMContentLoaded", t), qe.has(n) && (n.HTMLElement.prototype.focus = qe.get(n).focus, r.removeEventListener("keydown", pt, !0), r.removeEventListener("keyup", pt, !0), r.removeEventListener("click",
|
|
953
|
+
const Kr = (e, t) => {
|
|
954
|
+
const n = Te(e), r = Je(e);
|
|
955
|
+
t && r.removeEventListener("DOMContentLoaded", t), qe.has(n) && (n.HTMLElement.prototype.focus = qe.get(n).focus, r.removeEventListener("keydown", pt, !0), r.removeEventListener("keyup", pt, !0), r.removeEventListener("click", zr, !0), n.removeEventListener("focus", Br, !0), n.removeEventListener("blur", qr, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", X, !0), r.removeEventListener("pointermove", X, !0), r.removeEventListener("pointerup", X, !0)) : (r.removeEventListener("mousedown", X, !0), r.removeEventListener("mousemove", X, !0), r.removeEventListener("mouseup", X, !0)), qe.delete(n));
|
|
956
956
|
};
|
|
957
|
-
function
|
|
957
|
+
function ci(e) {
|
|
958
958
|
const t = Je(e);
|
|
959
959
|
let n;
|
|
960
960
|
return t.readyState !== "loading" ? Yt(e) : (n = () => {
|
|
961
961
|
Yt(e);
|
|
962
|
-
}, t.addEventListener("DOMContentLoaded", n)), () =>
|
|
962
|
+
}, t.addEventListener("DOMContentLoaded", n)), () => Kr(e, n);
|
|
963
963
|
}
|
|
964
|
-
typeof document < "u" &&
|
|
964
|
+
typeof document < "u" && ci();
|
|
965
965
|
function Yr() {
|
|
966
966
|
return et !== "pointer";
|
|
967
967
|
}
|
|
968
|
-
const
|
|
968
|
+
const ui = /* @__PURE__ */ new Set([
|
|
969
969
|
"checkbox",
|
|
970
970
|
"radio",
|
|
971
971
|
"range",
|
|
@@ -976,22 +976,22 @@ const ci = /* @__PURE__ */ new Set([
|
|
|
976
976
|
"submit",
|
|
977
977
|
"reset"
|
|
978
978
|
]);
|
|
979
|
-
function
|
|
979
|
+
function di(e, t, n) {
|
|
980
980
|
var r;
|
|
981
|
-
const o = typeof window < "u" ?
|
|
982
|
-
return e = e || (n == null ? void 0 : n.target) instanceof o && !
|
|
981
|
+
const o = typeof window < "u" ? Te(n == null ? void 0 : n.target).HTMLInputElement : HTMLInputElement, i = typeof window < "u" ? Te(n == null ? void 0 : n.target).HTMLTextAreaElement : HTMLTextAreaElement, a = typeof window < "u" ? Te(n == null ? void 0 : n.target).HTMLElement : HTMLElement, s = typeof window < "u" ? Te(n == null ? void 0 : n.target).KeyboardEvent : KeyboardEvent;
|
|
982
|
+
return e = e || (n == null ? void 0 : n.target) instanceof o && !ui.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 && !si[n.key]);
|
|
983
983
|
}
|
|
984
|
-
function
|
|
985
|
-
Yt(),
|
|
984
|
+
function fi(e, t, n) {
|
|
985
|
+
Yt(), P(() => {
|
|
986
986
|
let r = (o, i) => {
|
|
987
|
-
|
|
987
|
+
di(!!(n != null && n.isTextInput), o, i) && e(Yr());
|
|
988
988
|
};
|
|
989
|
-
return
|
|
990
|
-
|
|
989
|
+
return qt.add(r), () => {
|
|
990
|
+
qt.delete(r);
|
|
991
991
|
};
|
|
992
992
|
}, t);
|
|
993
993
|
}
|
|
994
|
-
function
|
|
994
|
+
function pi(e) {
|
|
995
995
|
let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: o } = e, i = w({
|
|
996
996
|
isFocusWithin: !1
|
|
997
997
|
}), a = A((u) => {
|
|
@@ -1000,7 +1000,7 @@ function fi(e) {
|
|
|
1000
1000
|
n,
|
|
1001
1001
|
o,
|
|
1002
1002
|
i
|
|
1003
|
-
]), s =
|
|
1003
|
+
]), s = jr(a), l = A((u) => {
|
|
1004
1004
|
!i.current.isFocusWithin && document.activeElement === u.target && (r && r(u), o && o(!0), i.current.isFocusWithin = !0, s(u));
|
|
1005
1005
|
}, [
|
|
1006
1006
|
r,
|
|
@@ -1020,29 +1020,29 @@ function fi(e) {
|
|
|
1020
1020
|
}
|
|
1021
1021
|
};
|
|
1022
1022
|
}
|
|
1023
|
-
let ht = !1,
|
|
1024
|
-
function
|
|
1023
|
+
let ht = !1, Pt = 0;
|
|
1024
|
+
function Gt() {
|
|
1025
1025
|
ht = !0, setTimeout(() => {
|
|
1026
1026
|
ht = !1;
|
|
1027
1027
|
}, 50);
|
|
1028
1028
|
}
|
|
1029
1029
|
function Yn(e) {
|
|
1030
|
-
e.pointerType === "touch" &&
|
|
1030
|
+
e.pointerType === "touch" && Gt();
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1032
|
+
function hi() {
|
|
1033
1033
|
if (!(typeof document > "u"))
|
|
1034
|
-
return typeof PointerEvent < "u" ? document.addEventListener("pointerup", Yn) : document.addEventListener("touchend",
|
|
1035
|
-
|
|
1034
|
+
return typeof PointerEvent < "u" ? document.addEventListener("pointerup", Yn) : document.addEventListener("touchend", Gt), Pt++, () => {
|
|
1035
|
+
Pt--, !(Pt > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", Yn) : document.removeEventListener("touchend", Gt));
|
|
1036
1036
|
};
|
|
1037
1037
|
}
|
|
1038
|
-
function
|
|
1039
|
-
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: o } = e, [i, a] =
|
|
1038
|
+
function _i(e) {
|
|
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
|
+
P(hi, []);
|
|
1046
1046
|
let { hoverProps: l, triggerHoverEnd: u } = M(() => {
|
|
1047
1047
|
let d = (f, v) => {
|
|
1048
1048
|
if (s.pointerType = v, o || v === "touch" || s.isHovered || !f.currentTarget.contains(f.target)) return;
|
|
@@ -1084,7 +1084,7 @@ function hi(e) {
|
|
|
1084
1084
|
o,
|
|
1085
1085
|
s
|
|
1086
1086
|
]);
|
|
1087
|
-
return
|
|
1087
|
+
return P(() => {
|
|
1088
1088
|
o && u({
|
|
1089
1089
|
currentTarget: s.target
|
|
1090
1090
|
}, s.pointerType);
|
|
@@ -1095,24 +1095,24 @@ function hi(e) {
|
|
|
1095
1095
|
isHovered: i
|
|
1096
1096
|
};
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1098
|
+
function vi(e = {}) {
|
|
1099
1099
|
let { autoFocus: t = !1, isTextInput: n, within: r } = e, o = w({
|
|
1100
1100
|
isFocused: !1,
|
|
1101
1101
|
isFocusVisible: t || Yr()
|
|
1102
|
-
}), [i, a] =
|
|
1102
|
+
}), [i, a] = k(!1), [s, l] = k(() => o.current.isFocused && o.current.isFocusVisible), u = A(() => l(o.current.isFocused && o.current.isFocusVisible), []), d = A((f) => {
|
|
1103
1103
|
o.current.isFocused = f, a(f), u();
|
|
1104
1104
|
}, [
|
|
1105
1105
|
u
|
|
1106
1106
|
]);
|
|
1107
|
-
|
|
1107
|
+
fi((f) => {
|
|
1108
1108
|
o.current.isFocusVisible = f, u();
|
|
1109
1109
|
}, [], {
|
|
1110
1110
|
isTextInput: n
|
|
1111
1111
|
});
|
|
1112
|
-
let { focusProps: c } =
|
|
1112
|
+
let { focusProps: c } = ai({
|
|
1113
1113
|
isDisabled: r,
|
|
1114
1114
|
onFocusChange: d
|
|
1115
|
-
}), { focusWithinProps: p } =
|
|
1115
|
+
}), { focusWithinProps: p } = pi({
|
|
1116
1116
|
isDisabled: !r,
|
|
1117
1117
|
onFocusWithinChange: d
|
|
1118
1118
|
});
|
|
@@ -1122,8 +1122,8 @@ function _i(e = {}) {
|
|
|
1122
1122
|
focusProps: r ? p : c
|
|
1123
1123
|
};
|
|
1124
1124
|
}
|
|
1125
|
-
var
|
|
1126
|
-
let
|
|
1125
|
+
var mi = Object.defineProperty, yi = (e, t, n) => t in e ? mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Lt = (e, t, n) => (yi(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
1126
|
+
let gi = class {
|
|
1127
1127
|
constructor() {
|
|
1128
1128
|
Lt(this, "current", this.detect()), Lt(this, "handoffState", "pending"), Lt(this, "currentId", 0);
|
|
1129
1129
|
}
|
|
@@ -1151,16 +1151,16 @@ let yi = class {
|
|
|
1151
1151
|
get isHandoffComplete() {
|
|
1152
1152
|
return this.handoffState === "complete";
|
|
1153
1153
|
}
|
|
1154
|
-
},
|
|
1154
|
+
}, xe = new gi();
|
|
1155
1155
|
function wt(e) {
|
|
1156
|
-
return
|
|
1156
|
+
return xe.isServer ? null : e instanceof Node ? e.ownerDocument : e != null && e.hasOwnProperty("current") && e.current instanceof Node ? e.current.ownerDocument : document;
|
|
1157
1157
|
}
|
|
1158
1158
|
function bt(e) {
|
|
1159
1159
|
typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((t) => setTimeout(() => {
|
|
1160
1160
|
throw t;
|
|
1161
1161
|
}));
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1163
|
+
function we() {
|
|
1164
1164
|
let e = [], t = { addEventListener(n, r, o, i) {
|
|
1165
1165
|
return n.addEventListener(r, o, i), t.add(() => n.removeEventListener(r, o, i));
|
|
1166
1166
|
}, requestAnimationFrame(...n) {
|
|
@@ -1184,7 +1184,7 @@ function ge() {
|
|
|
1184
1184
|
Object.assign(n.style, { [r]: i });
|
|
1185
1185
|
});
|
|
1186
1186
|
}, group(n) {
|
|
1187
|
-
let r =
|
|
1187
|
+
let r = we();
|
|
1188
1188
|
return n(r), this.add(() => r.dispose());
|
|
1189
1189
|
}, add(n) {
|
|
1190
1190
|
return e.includes(n) || e.push(n), () => {
|
|
@@ -1197,11 +1197,11 @@ function ge() {
|
|
|
1197
1197
|
return t;
|
|
1198
1198
|
}
|
|
1199
1199
|
function Et() {
|
|
1200
|
-
let [e] =
|
|
1201
|
-
return
|
|
1200
|
+
let [e] = k(we);
|
|
1201
|
+
return P(() => () => e.dispose(), [e]), e;
|
|
1202
1202
|
}
|
|
1203
1203
|
let B = (e, t) => {
|
|
1204
|
-
|
|
1204
|
+
xe.isServer ? P(e, t) : Ne(e, t);
|
|
1205
1205
|
};
|
|
1206
1206
|
function Pe(e) {
|
|
1207
1207
|
let t = w(e);
|
|
@@ -1213,15 +1213,15 @@ let H = function(e) {
|
|
|
1213
1213
|
let t = Pe(e);
|
|
1214
1214
|
return T.useCallback((...n) => t.current(...n), [t]);
|
|
1215
1215
|
};
|
|
1216
|
-
function
|
|
1216
|
+
function wi(e) {
|
|
1217
1217
|
let t = e.width / 2, n = e.height / 2;
|
|
1218
1218
|
return { top: e.clientY - n, right: e.clientX + t, bottom: e.clientY + n, left: e.clientX - t };
|
|
1219
1219
|
}
|
|
1220
|
-
function
|
|
1220
|
+
function bi(e, t) {
|
|
1221
1221
|
return !(!e || !t || e.right < t.left || e.left > t.right || e.bottom < t.top || e.top > t.bottom);
|
|
1222
1222
|
}
|
|
1223
|
-
function
|
|
1224
|
-
let t = w(null), [n, r] =
|
|
1223
|
+
function Ei({ disabled: e = !1 } = {}) {
|
|
1224
|
+
let t = w(null), [n, r] = k(!1), o = Et(), i = H(() => {
|
|
1225
1225
|
t.current = null, r(!1), o.dispose();
|
|
1226
1226
|
}), a = H((s) => {
|
|
1227
1227
|
if (o.dispose(), t.current === null) {
|
|
@@ -1230,8 +1230,8 @@ function bi({ disabled: e = !1 } = {}) {
|
|
|
1230
1230
|
let l = wt(s.currentTarget);
|
|
1231
1231
|
o.addEventListener(l, "pointerup", i, !1), o.addEventListener(l, "pointermove", (u) => {
|
|
1232
1232
|
if (t.current) {
|
|
1233
|
-
let d =
|
|
1234
|
-
r(
|
|
1233
|
+
let d = wi(u);
|
|
1234
|
+
r(bi(d, t.current.getBoundingClientRect()));
|
|
1235
1235
|
}
|
|
1236
1236
|
}, !1), o.addEventListener(l, "pointercancel", i, !1);
|
|
1237
1237
|
}
|
|
@@ -1239,25 +1239,25 @@ function bi({ disabled: e = !1 } = {}) {
|
|
|
1239
1239
|
});
|
|
1240
1240
|
return { pressed: n, pressProps: e ? {} : { onPointerDown: a, onPointerUp: i, onClick: i } };
|
|
1241
1241
|
}
|
|
1242
|
-
let
|
|
1243
|
-
function
|
|
1244
|
-
return z(
|
|
1242
|
+
let $i = Y(void 0);
|
|
1243
|
+
function Gr() {
|
|
1244
|
+
return z($i);
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1246
|
+
function Zt(...e) {
|
|
1247
1247
|
return Array.from(new Set(e.flatMap((t) => typeof t == "string" ? t.split(" ") : []))).filter(Boolean).join(" ");
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function ye(e, t, ...n) {
|
|
1250
1250
|
if (e in t) {
|
|
1251
1251
|
let o = t[e];
|
|
1252
1252
|
return typeof o == "function" ? o(...n) : o;
|
|
1253
1253
|
}
|
|
1254
1254
|
let r = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((o) => `"${o}"`).join(", ")}.`);
|
|
1255
|
-
throw Error.captureStackTrace && Error.captureStackTrace(r,
|
|
1255
|
+
throw Error.captureStackTrace && Error.captureStackTrace(r, ye), r;
|
|
1256
1256
|
}
|
|
1257
|
-
var _t = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(_t || {}),
|
|
1257
|
+
var _t = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(_t || {}), me = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(me || {});
|
|
1258
1258
|
function G({ ourProps: e, theirProps: t, slot: n, defaultTag: r, features: o, visible: i = !0, name: a, mergeRefs: s }) {
|
|
1259
|
-
s = s ??
|
|
1260
|
-
let l =
|
|
1259
|
+
s = s ?? Ti;
|
|
1260
|
+
let l = Zr(t, e);
|
|
1261
1261
|
if (i) return it(l, n, r, a, s);
|
|
1262
1262
|
let u = o ?? 0;
|
|
1263
1263
|
if (u & 2) {
|
|
@@ -1266,7 +1266,7 @@ function G({ ourProps: e, theirProps: t, slot: n, defaultTag: r, features: o, vi
|
|
|
1266
1266
|
}
|
|
1267
1267
|
if (u & 1) {
|
|
1268
1268
|
let { unmount: d = !0, ...c } = l;
|
|
1269
|
-
return
|
|
1269
|
+
return ye(d ? 0 : 1, { 0() {
|
|
1270
1270
|
return null;
|
|
1271
1271
|
}, 1() {
|
|
1272
1272
|
return it({ ...c, hidden: !0, style: { display: "none" } }, n, r, a, s);
|
|
@@ -1286,24 +1286,24 @@ function it(e, t = {}, n, r, o) {
|
|
|
1286
1286
|
for (let v of f) c[`data-${v}`] = "";
|
|
1287
1287
|
}
|
|
1288
1288
|
}
|
|
1289
|
-
if (i ===
|
|
1290
|
-
if (Object.keys(
|
|
1289
|
+
if (i === I && (Object.keys(be(l)).length > 0 || Object.keys(be(c)).length > 0)) if (!Ie(d) || Array.isArray(d) && d.length > 1) {
|
|
1290
|
+
if (Object.keys(be(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(be(l)).concat(Object.keys(be(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, v = typeof f == "function" ? (..._) =>
|
|
1295
|
+
let p = d.props, f = p == null ? void 0 : p.className, v = typeof f == "function" ? (..._) => Zt(f(..._), l.className) : Zt(f, l.className), y = v ? { className: v } : {}, m = Zr(d.props, be(At(l, ["ref"])));
|
|
1296
1296
|
for (let _ in c) _ in m && delete c[_];
|
|
1297
|
-
return
|
|
1297
|
+
return pn(d, Object.assign({}, m, c, u, { ref: o(d.ref, u.ref) }, y));
|
|
1298
1298
|
}
|
|
1299
|
-
return ne(i, Object.assign({}, At(l, ["ref"]), i !==
|
|
1299
|
+
return ne(i, Object.assign({}, At(l, ["ref"]), i !== I && u, i !== I && c), d);
|
|
1300
1300
|
}
|
|
1301
|
-
function
|
|
1301
|
+
function Ti(...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
|
};
|
|
1305
1305
|
}
|
|
1306
|
-
function
|
|
1306
|
+
function Zr(...e) {
|
|
1307
1307
|
if (e.length === 0) return {};
|
|
1308
1308
|
if (e.length === 1) return e[0];
|
|
1309
1309
|
let t = {}, n = {};
|
|
@@ -1321,7 +1321,7 @@ function Gr(...e) {
|
|
|
1321
1321
|
} });
|
|
1322
1322
|
return t;
|
|
1323
1323
|
}
|
|
1324
|
-
function
|
|
1324
|
+
function Ci(...e) {
|
|
1325
1325
|
if (e.length === 0) return {};
|
|
1326
1326
|
if (e.length === 1) return e[0];
|
|
1327
1327
|
let t = {}, n = {};
|
|
@@ -1334,9 +1334,9 @@ function Ti(...e) {
|
|
|
1334
1334
|
}
|
|
1335
1335
|
function q(e) {
|
|
1336
1336
|
var t;
|
|
1337
|
-
return Object.assign(
|
|
1337
|
+
return Object.assign(dn(e), { displayName: (t = e.displayName) != null ? t : e.name });
|
|
1338
1338
|
}
|
|
1339
|
-
function
|
|
1339
|
+
function be(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,75 +1346,75 @@ function At(e, t = []) {
|
|
|
1346
1346
|
for (let r of t) r in n && delete n[r];
|
|
1347
1347
|
return n;
|
|
1348
1348
|
}
|
|
1349
|
-
let
|
|
1349
|
+
let xi = "button";
|
|
1350
1350
|
function ki(e, t) {
|
|
1351
1351
|
var n;
|
|
1352
|
-
let r =
|
|
1353
|
-
return G({ ourProps: f, theirProps: a, slot: v, defaultTag:
|
|
1352
|
+
let r = Gr(), { disabled: o = r || !1, autoFocus: i = !1, ...a } = e, { isFocusVisible: s, focusProps: l } = vi({ autoFocus: i }), { isHovered: u, hoverProps: d } = _i({ isDisabled: o }), { pressed: c, pressProps: p } = Ei({ disabled: o }), f = Ci({ ref: t, type: (n = a.type) != null ? n : "button", disabled: o || void 0, autoFocus: i }, l, d, p), v = M(() => ({ disabled: o, hover: u, focus: s, active: c, autofocus: i }), [o, u, s, c, i]);
|
|
1353
|
+
return G({ ourProps: f, theirProps: a, slot: v, defaultTag: xi, name: "Button" });
|
|
1354
1354
|
}
|
|
1355
1355
|
let Fi = q(ki), Si = "div";
|
|
1356
1356
|
var vt = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(vt || {});
|
|
1357
|
-
function
|
|
1357
|
+
function Mi(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
1360
|
return G({ ourProps: i, theirProps: o, slot: {}, defaultTag: Si, name: "Hidden" });
|
|
1361
1361
|
}
|
|
1362
|
-
let
|
|
1362
|
+
let Xt = q(Mi), Ni = Y(null);
|
|
1363
1363
|
function Pi({ children: e }) {
|
|
1364
|
-
let t = z(
|
|
1364
|
+
let t = z(Ni);
|
|
1365
1365
|
if (!t) return T.createElement(T.Fragment, null, e);
|
|
1366
1366
|
let { target: n } = t;
|
|
1367
1367
|
return n ? yt(T.createElement(T.Fragment, null, e), n) : null;
|
|
1368
1368
|
}
|
|
1369
|
-
let
|
|
1370
|
-
function
|
|
1371
|
-
return Object.assign(e, { [
|
|
1369
|
+
let Xr = Symbol();
|
|
1370
|
+
function Li(e, t = !0) {
|
|
1371
|
+
return Object.assign(e, { [Xr]: t });
|
|
1372
1372
|
}
|
|
1373
1373
|
function ae(...e) {
|
|
1374
1374
|
let t = w(e);
|
|
1375
|
-
|
|
1375
|
+
P(() => {
|
|
1376
1376
|
t.current = e;
|
|
1377
1377
|
}, [e]);
|
|
1378
1378
|
let n = H((r) => {
|
|
1379
1379
|
for (let o of t.current) o != null && (typeof o == "function" ? o(r) : o.current = r);
|
|
1380
1380
|
});
|
|
1381
|
-
return e.every((r) => r == null || (r == null ? void 0 : r[
|
|
1381
|
+
return e.every((r) => r == null || (r == null ? void 0 : r[Xr])) ? void 0 : n;
|
|
1382
1382
|
}
|
|
1383
|
-
let
|
|
1384
|
-
|
|
1385
|
-
function
|
|
1386
|
-
let e = z(
|
|
1383
|
+
let gn = Y(null);
|
|
1384
|
+
gn.displayName = "DescriptionContext";
|
|
1385
|
+
function Qr() {
|
|
1386
|
+
let e = z(gn);
|
|
1387
1387
|
if (e === null) {
|
|
1388
1388
|
let t = new Error("You used a <Description /> component, but it is not inside a relevant parent.");
|
|
1389
|
-
throw Error.captureStackTrace && Error.captureStackTrace(t,
|
|
1389
|
+
throw Error.captureStackTrace && Error.captureStackTrace(t, Qr), t;
|
|
1390
1390
|
}
|
|
1391
1391
|
return e;
|
|
1392
1392
|
}
|
|
1393
|
-
function
|
|
1394
|
-
let [e, t] =
|
|
1393
|
+
function Ai() {
|
|
1394
|
+
let [e, t] = k([]);
|
|
1395
1395
|
return [e.length > 0 ? e.join(" ") : void 0, M(() => function(n) {
|
|
1396
1396
|
let r = H((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
1399
|
}))), o = M(() => ({ register: r, slot: n.slot, name: n.name, props: n.props, value: n.value }), [r, n.slot, n.name, n.props, n.value]);
|
|
1400
|
-
return T.createElement(
|
|
1400
|
+
return T.createElement(gn.Provider, { value: o }, n.children);
|
|
1401
1401
|
}, [t])];
|
|
1402
1402
|
}
|
|
1403
|
-
let
|
|
1404
|
-
function
|
|
1405
|
-
let n =
|
|
1403
|
+
let Di = "p";
|
|
1404
|
+
function Hi(e, t) {
|
|
1405
|
+
let n = ge(), r = Gr(), { id: o = `headlessui-description-${n}`, ...i } = e, a = Qr(), s = ae(t);
|
|
1406
1406
|
B(() => a.register(o), [o, a.register]);
|
|
1407
1407
|
let l = r || !1, u = M(() => ({ ...a.slot, disabled: l }), [a.slot, l]), d = { ref: s, ...a.props, id: o };
|
|
1408
|
-
return G({ ourProps: d, theirProps: i, slot: u, defaultTag:
|
|
1408
|
+
return G({ ourProps: d, theirProps: i, slot: u, defaultTag: Di, name: a.name || "Description" });
|
|
1409
1409
|
}
|
|
1410
|
-
let
|
|
1411
|
-
var
|
|
1412
|
-
let
|
|
1410
|
+
let Ii = q(Hi), Oi = Object.assign(Ii, {});
|
|
1411
|
+
var Jr = ((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))(Jr || {});
|
|
1412
|
+
let Ri = Y(() => {
|
|
1413
1413
|
});
|
|
1414
|
-
function
|
|
1415
|
-
return T.createElement(
|
|
1414
|
+
function Vi({ value: e, children: t }) {
|
|
1415
|
+
return T.createElement(Ri.Provider, { value: e }, t);
|
|
1416
1416
|
}
|
|
1417
|
-
let
|
|
1417
|
+
let Ui = class extends Map {
|
|
1418
1418
|
constructor(t) {
|
|
1419
1419
|
super(), this.factory = t;
|
|
1420
1420
|
}
|
|
@@ -1423,7 +1423,7 @@ let Vi = class extends Map {
|
|
|
1423
1423
|
return n === void 0 && (n = this.factory(t), this.set(t, n)), n;
|
|
1424
1424
|
}
|
|
1425
1425
|
};
|
|
1426
|
-
function
|
|
1426
|
+
function eo(e, t) {
|
|
1427
1427
|
let n = e(), r = /* @__PURE__ */ new Set();
|
|
1428
1428
|
return { getSnapshot() {
|
|
1429
1429
|
return n;
|
|
@@ -1434,10 +1434,10 @@ function Jr(e, t) {
|
|
|
1434
1434
|
a && (n = a, r.forEach((s) => s()));
|
|
1435
1435
|
} };
|
|
1436
1436
|
}
|
|
1437
|
-
function
|
|
1437
|
+
function to(e) {
|
|
1438
1438
|
return gt(e.subscribe, e.getSnapshot, e.getSnapshot);
|
|
1439
1439
|
}
|
|
1440
|
-
let
|
|
1440
|
+
let Wi = new Ui(() => eo(() => [], { ADD(e) {
|
|
1441
1441
|
return this.includes(e) ? this : [...this, e];
|
|
1442
1442
|
}, REMOVE(e) {
|
|
1443
1443
|
let t = this.indexOf(e);
|
|
@@ -1446,33 +1446,33 @@ let Ui = new Vi(() => Jr(() => [], { ADD(e) {
|
|
|
1446
1446
|
return n.splice(t, 1), n;
|
|
1447
1447
|
} }));
|
|
1448
1448
|
function Oe(e, t) {
|
|
1449
|
-
let n =
|
|
1449
|
+
let n = Wi.get(t), r = ge(), o = to(n);
|
|
1450
1450
|
if (B(() => {
|
|
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
|
|
1457
|
-
function
|
|
1456
|
+
let Qt = /* @__PURE__ */ new Map(), Ke = /* @__PURE__ */ new Map();
|
|
1457
|
+
function Gn(e) {
|
|
1458
1458
|
var t;
|
|
1459
|
-
let n = (t =
|
|
1460
|
-
return
|
|
1459
|
+
let n = (t = Ke.get(e)) != null ? t : 0;
|
|
1460
|
+
return Ke.set(e, n + 1), n !== 0 ? () => Zn(e) : (Qt.set(e, { "aria-hidden": e.getAttribute("aria-hidden"), inert: e.inert }), e.setAttribute("aria-hidden", "true"), e.inert = !0, () => Zn(e));
|
|
1461
1461
|
}
|
|
1462
|
-
function
|
|
1462
|
+
function Zn(e) {
|
|
1463
1463
|
var t;
|
|
1464
|
-
let n = (t =
|
|
1465
|
-
if (n === 1 ?
|
|
1466
|
-
let r =
|
|
1467
|
-
r && (r["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", r["aria-hidden"]), e.inert = r.inert,
|
|
1464
|
+
let n = (t = Ke.get(e)) != null ? t : 1;
|
|
1465
|
+
if (n === 1 ? Ke.delete(e) : Ke.set(e, n - 1), n !== 1) return;
|
|
1466
|
+
let r = Qt.get(e);
|
|
1467
|
+
r && (r["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", r["aria-hidden"]), e.inert = r.inert, Qt.delete(e));
|
|
1468
1468
|
}
|
|
1469
|
-
function
|
|
1469
|
+
function ji(e, { allowed: t, disallowed: n } = {}) {
|
|
1470
1470
|
let r = Oe(e, "inert-others");
|
|
1471
1471
|
B(() => {
|
|
1472
1472
|
var o, i;
|
|
1473
1473
|
if (!r) return;
|
|
1474
|
-
let a =
|
|
1475
|
-
for (let l of (o = n == null ? void 0 : n()) != null ? o : []) l && a.add(
|
|
1474
|
+
let a = we();
|
|
1475
|
+
for (let l of (o = n == null ? void 0 : n()) != null ? o : []) l && a.add(Gn(l));
|
|
1476
1476
|
let s = (i = t == null ? void 0 : t()) != null ? i : [];
|
|
1477
1477
|
for (let l of s) {
|
|
1478
1478
|
if (!l) continue;
|
|
@@ -1480,23 +1480,23 @@ function Wi(e, { allowed: t, disallowed: n } = {}) {
|
|
|
1480
1480
|
if (!u) continue;
|
|
1481
1481
|
let d = l.parentElement;
|
|
1482
1482
|
for (; d && d !== u.body; ) {
|
|
1483
|
-
for (let c of d.children) s.some((p) => c.contains(p)) || a.add(
|
|
1483
|
+
for (let c of d.children) s.some((p) => c.contains(p)) || a.add(Gn(c));
|
|
1484
1484
|
d = d.parentElement;
|
|
1485
1485
|
}
|
|
1486
1486
|
}
|
|
1487
1487
|
return a.dispose;
|
|
1488
1488
|
}, [r, t, n]);
|
|
1489
1489
|
}
|
|
1490
|
-
function
|
|
1490
|
+
function no(e, t, n) {
|
|
1491
1491
|
let r = Pe((o) => {
|
|
1492
1492
|
let i = o.getBoundingClientRect();
|
|
1493
1493
|
i.x === 0 && i.y === 0 && i.width === 0 && i.height === 0 && n();
|
|
1494
1494
|
});
|
|
1495
|
-
|
|
1495
|
+
P(() => {
|
|
1496
1496
|
if (!e) return;
|
|
1497
1497
|
let o = t === null ? null : t instanceof HTMLElement ? t : t.current;
|
|
1498
1498
|
if (!o) return;
|
|
1499
|
-
let i =
|
|
1499
|
+
let i = we();
|
|
1500
1500
|
if (typeof ResizeObserver < "u") {
|
|
1501
1501
|
let a = new ResizeObserver(() => r.current(o));
|
|
1502
1502
|
a.observe(o), i.add(() => a.disconnect());
|
|
@@ -1508,29 +1508,29 @@ function to(e, t, n) {
|
|
|
1508
1508
|
return () => i.dispose();
|
|
1509
1509
|
}, [t, r, e]);
|
|
1510
1510
|
}
|
|
1511
|
-
let
|
|
1512
|
-
var ce = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))(ce || {}),
|
|
1513
|
-
function Bi(e = document.body) {
|
|
1514
|
-
return e == null ? [] : Array.from(e.querySelectorAll(Qt)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
1515
|
-
}
|
|
1511
|
+
let Jt = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(","), zi = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
|
|
1512
|
+
var ce = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))(ce || {}), en = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(en || {}), Bi = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(Bi || {});
|
|
1516
1513
|
function qi(e = document.body) {
|
|
1517
|
-
return e == null ? [] : Array.from(e.querySelectorAll(
|
|
1514
|
+
return e == null ? [] : Array.from(e.querySelectorAll(Jt)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
1515
|
+
}
|
|
1516
|
+
function Ki(e = document.body) {
|
|
1517
|
+
return e == null ? [] : Array.from(e.querySelectorAll(zi)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
1518
1518
|
}
|
|
1519
|
-
var
|
|
1519
|
+
var ro = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(ro || {});
|
|
1520
1520
|
function Yi(e, t = 0) {
|
|
1521
1521
|
var n;
|
|
1522
|
-
return e === ((n = wt(e)) == null ? void 0 : n.body) ? !1 :
|
|
1523
|
-
return e.matches(
|
|
1522
|
+
return e === ((n = wt(e)) == null ? void 0 : n.body) ? !1 : ye(t, { 0() {
|
|
1523
|
+
return e.matches(Jt);
|
|
1524
1524
|
}, 1() {
|
|
1525
1525
|
let r = e;
|
|
1526
1526
|
for (; r !== null; ) {
|
|
1527
|
-
if (r.matches(
|
|
1527
|
+
if (r.matches(Jt)) return !0;
|
|
1528
1528
|
r = r.parentElement;
|
|
1529
1529
|
}
|
|
1530
1530
|
return !1;
|
|
1531
1531
|
} });
|
|
1532
1532
|
}
|
|
1533
|
-
var
|
|
1533
|
+
var Gi = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(Gi || {});
|
|
1534
1534
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
|
|
1535
1535
|
e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
1536
1536
|
}, !0), document.addEventListener("click", (e) => {
|
|
@@ -1539,12 +1539,12 @@ typeof window < "u" && typeof document < "u" && (document.addEventListener("keyd
|
|
|
1539
1539
|
function fe(e) {
|
|
1540
1540
|
e == null || e.focus({ preventScroll: !0 });
|
|
1541
1541
|
}
|
|
1542
|
-
let
|
|
1543
|
-
function
|
|
1542
|
+
let Zi = ["textarea", "input"].join(",");
|
|
1543
|
+
function Xi(e) {
|
|
1544
1544
|
var t, n;
|
|
1545
|
-
return (n = (t = e == null ? void 0 : e.matches) == null ? void 0 : t.call(e,
|
|
1545
|
+
return (n = (t = e == null ? void 0 : e.matches) == null ? void 0 : t.call(e, Zi)) != null ? n : !1;
|
|
1546
1546
|
}
|
|
1547
|
-
function
|
|
1547
|
+
function Qi(e, t = (n) => n) {
|
|
1548
1548
|
return e.slice().sort((n, r) => {
|
|
1549
1549
|
let o = t(n), i = t(r);
|
|
1550
1550
|
if (o === null || i === null) return 0;
|
|
@@ -1552,8 +1552,8 @@ function Xi(e, t = (n) => n) {
|
|
|
1552
1552
|
return a & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : a & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
|
|
1553
1553
|
});
|
|
1554
1554
|
}
|
|
1555
|
-
function
|
|
1556
|
-
let i = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e.ownerDocument, a = Array.isArray(e) ? n ?
|
|
1555
|
+
function Ye(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] } = {}) {
|
|
1556
|
+
let i = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e.ownerDocument, a = Array.isArray(e) ? n ? Qi(e) : e : t & 64 ? Ki(e) : qi(e);
|
|
1557
1557
|
o.length > 0 && a.length > 1 && (a = a.filter((f) => !o.some((v) => v != null && "current" in v ? (v == null ? void 0 : v.current) === f : v === f))), r = r ?? i.activeElement;
|
|
1558
1558
|
let s = (() => {
|
|
1559
1559
|
if (t & 5) return 1;
|
|
@@ -1576,20 +1576,20 @@ function Ke(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] }
|
|
|
1576
1576
|
}
|
|
1577
1577
|
p = a[f], p == null || p.focus(u), d += s;
|
|
1578
1578
|
} while (p !== i.activeElement);
|
|
1579
|
-
return t & 6 &&
|
|
1579
|
+
return t & 6 && Xi(p) && p.select(), 2;
|
|
1580
1580
|
}
|
|
1581
|
-
function
|
|
1581
|
+
function oo() {
|
|
1582
1582
|
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
1583
1583
|
}
|
|
1584
|
-
function
|
|
1584
|
+
function Ji() {
|
|
1585
1585
|
return /Android/gi.test(window.navigator.userAgent);
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1588
|
-
return
|
|
1587
|
+
function ea() {
|
|
1588
|
+
return oo() || Ji();
|
|
1589
1589
|
}
|
|
1590
1590
|
function Ue(e, t, n, r) {
|
|
1591
1591
|
let o = Pe(n);
|
|
1592
|
-
|
|
1592
|
+
P(() => {
|
|
1593
1593
|
if (!e) return;
|
|
1594
1594
|
function i(a) {
|
|
1595
1595
|
o.current(a);
|
|
@@ -1597,9 +1597,9 @@ function Ue(e, t, n, r) {
|
|
|
1597
1597
|
return document.addEventListener(t, i, r), () => document.removeEventListener(t, i, r);
|
|
1598
1598
|
}, [e, t, r]);
|
|
1599
1599
|
}
|
|
1600
|
-
function
|
|
1600
|
+
function io(e, t, n, r) {
|
|
1601
1601
|
let o = Pe(n);
|
|
1602
|
-
|
|
1602
|
+
P(() => {
|
|
1603
1603
|
if (!e) return;
|
|
1604
1604
|
function i(a) {
|
|
1605
1605
|
o.current(a);
|
|
@@ -1607,8 +1607,8 @@ function oo(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
|
|
1611
|
-
function
|
|
1610
|
+
const Xn = 30;
|
|
1611
|
+
function ta(e, t, n) {
|
|
1612
1612
|
let r = Oe(e, "outside-click"), o = Pe(n), i = A(function(l, u) {
|
|
1613
1613
|
if (l.defaultPrevented) return;
|
|
1614
1614
|
let d = u(l);
|
|
@@ -1621,7 +1621,7 @@ function ea(e, t, n) {
|
|
|
1621
1621
|
let f = p instanceof HTMLElement ? p : p.current;
|
|
1622
1622
|
if (f != null && f.contains(d) || l.composed && l.composedPath().includes(f)) return;
|
|
1623
1623
|
}
|
|
1624
|
-
return !Yi(d,
|
|
1624
|
+
return !Yi(d, ro.Loose) && d.tabIndex !== -1 && l.preventDefault(), o.current(l, d);
|
|
1625
1625
|
}, [o]), a = w(null);
|
|
1626
1626
|
Ue(r, "pointerdown", (l) => {
|
|
1627
1627
|
var u, d;
|
|
@@ -1630,22 +1630,22 @@ function ea(e, t, n) {
|
|
|
1630
1630
|
var u, d;
|
|
1631
1631
|
a.current = ((d = (u = l.composedPath) == null ? void 0 : u.call(l)) == null ? void 0 : d[0]) || l.target;
|
|
1632
1632
|
}, !0), Ue(r, "click", (l) => {
|
|
1633
|
-
|
|
1633
|
+
ea() || a.current && (i(l, () => a.current), a.current = null);
|
|
1634
1634
|
}, !0);
|
|
1635
1635
|
let s = w({ x: 0, y: 0 });
|
|
1636
1636
|
Ue(r, "touchstart", (l) => {
|
|
1637
1637
|
s.current.x = l.touches[0].clientX, s.current.y = l.touches[0].clientY;
|
|
1638
1638
|
}, !0), Ue(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) >=
|
|
1641
|
-
}, !0),
|
|
1640
|
+
if (!(Math.abs(u.x - s.current.x) >= Xn || Math.abs(u.y - s.current.y) >= Xn)) return i(l, () => l.target instanceof HTMLElement ? l.target : null);
|
|
1641
|
+
}, !0), io(r, "blur", (l) => i(l, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
1642
1642
|
}
|
|
1643
1643
|
function tt(...e) {
|
|
1644
1644
|
return M(() => wt(...e), [...e]);
|
|
1645
1645
|
}
|
|
1646
|
-
function
|
|
1646
|
+
function ao(e, t, n, r) {
|
|
1647
1647
|
let o = Pe(n);
|
|
1648
|
-
|
|
1648
|
+
P(() => {
|
|
1649
1649
|
e = e ?? window;
|
|
1650
1650
|
function i(a) {
|
|
1651
1651
|
o.current(a);
|
|
@@ -1653,7 +1653,7 @@ function io(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 na() {
|
|
1657
1657
|
let e;
|
|
1658
1658
|
return { before({ doc: t }) {
|
|
1659
1659
|
var n;
|
|
@@ -1664,15 +1664,15 @@ function ta() {
|
|
|
1664
1664
|
n.style(r, "paddingRight", `${i}px`);
|
|
1665
1665
|
} };
|
|
1666
1666
|
}
|
|
1667
|
-
function
|
|
1668
|
-
return
|
|
1667
|
+
function ra() {
|
|
1668
|
+
return oo() ? { 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));
|
|
1671
1671
|
}
|
|
1672
1672
|
t.microTask(() => {
|
|
1673
1673
|
var o;
|
|
1674
1674
|
if (window.getComputedStyle(e.documentElement).scrollBehavior !== "auto") {
|
|
1675
|
-
let s =
|
|
1675
|
+
let s = we();
|
|
1676
1676
|
s.style(e.documentElement, "scrollBehavior", "auto"), t.add(() => t.microTask(() => s.dispose()));
|
|
1677
1677
|
}
|
|
1678
1678
|
let i = (o = window.scrollY) != null ? o : window.pageYOffset, a = null;
|
|
@@ -1707,76 +1707,76 @@ function na() {
|
|
|
1707
1707
|
});
|
|
1708
1708
|
} } : {};
|
|
1709
1709
|
}
|
|
1710
|
-
function
|
|
1710
|
+
function oa() {
|
|
1711
1711
|
return { before({ doc: e, d: t }) {
|
|
1712
1712
|
t.style(e.documentElement, "overflow", "hidden");
|
|
1713
1713
|
} };
|
|
1714
1714
|
}
|
|
1715
|
-
function
|
|
1715
|
+
function ia(e) {
|
|
1716
1716
|
let t = {};
|
|
1717
1717
|
for (let n of e) Object.assign(t, n(t));
|
|
1718
1718
|
return t;
|
|
1719
1719
|
}
|
|
1720
|
-
let
|
|
1720
|
+
let Ce = eo(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
|
|
1721
1721
|
var n;
|
|
1722
|
-
let r = (n = this.get(e)) != null ? n : { doc: e, count: 0, d:
|
|
1722
|
+
let r = (n = this.get(e)) != null ? n : { doc: e, count: 0, d: we(), meta: /* @__PURE__ */ new Set() };
|
|
1723
1723
|
return r.count++, r.meta.add(t), this.set(e, r), this;
|
|
1724
1724
|
}, POP(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:
|
|
1728
|
+
let r = { doc: e, d: t, meta: ia(n) }, o = [ra(), na(), oa()];
|
|
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
|
+
Ce.subscribe(() => {
|
|
1736
|
+
let e = Ce.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) && Ce.dispatch(n.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", n), n.count === 0 && Ce.dispatch("TEARDOWN", n);
|
|
1741
1741
|
}
|
|
1742
1742
|
});
|
|
1743
|
-
function
|
|
1744
|
-
let r =
|
|
1743
|
+
function aa(e, t, n = () => ({ containers: [] })) {
|
|
1744
|
+
let r = to(Ce), o = t ? r.get(t) : void 0, i = o ? o.count > 0 : !1;
|
|
1745
1745
|
return B(() => {
|
|
1746
|
-
if (!(!t || !e)) return
|
|
1746
|
+
if (!(!t || !e)) return Ce.dispatch("PUSH", t, n), () => Ce.dispatch("POP", t, n);
|
|
1747
1747
|
}, [e, t]), i;
|
|
1748
1748
|
}
|
|
1749
|
-
function
|
|
1749
|
+
function sa(e, t, n = () => [document.body]) {
|
|
1750
1750
|
let r = Oe(e, "scroll-lock");
|
|
1751
|
-
|
|
1751
|
+
aa(r, t, (o) => {
|
|
1752
1752
|
var i;
|
|
1753
1753
|
return { containers: [...(i = o.containers) != null ? i : [], n] };
|
|
1754
1754
|
});
|
|
1755
1755
|
}
|
|
1756
|
-
function
|
|
1756
|
+
function la(e) {
|
|
1757
1757
|
let t = { called: !1 };
|
|
1758
1758
|
return (...n) => {
|
|
1759
1759
|
if (!t.called) return t.called = !0, e(...n);
|
|
1760
1760
|
};
|
|
1761
1761
|
}
|
|
1762
|
-
function
|
|
1763
|
-
let [t, n] =
|
|
1762
|
+
function ca(e = 0) {
|
|
1763
|
+
let [t, n] = k(e), r = A((l) => n(l), [t]), o = A((l) => n((u) => u | l), [t]), i = A((l) => (t & l) === l, [t]), a = A((l) => n((u) => u & ~l), [n]), s = A((l) => n((u) => u ^ l), [n]);
|
|
1764
1764
|
return { flags: t, setFlag: r, addFlag: o, hasFlag: i, removeFlag: a, toggleFlag: s };
|
|
1765
1765
|
}
|
|
1766
|
-
var
|
|
1767
|
-
function
|
|
1766
|
+
var ua = ((e) => (e[e.None = 0] = "None", e[e.Closed = 1] = "Closed", e[e.Enter = 2] = "Enter", e[e.Leave = 4] = "Leave", e))(ua || {});
|
|
1767
|
+
function da(e) {
|
|
1768
1768
|
let t = {};
|
|
1769
1769
|
for (let n in e) e[n] === !0 && (t[`data-${n}`] = "");
|
|
1770
1770
|
return t;
|
|
1771
1771
|
}
|
|
1772
|
-
function
|
|
1773
|
-
let [o, i] =
|
|
1772
|
+
function fa(e, t, n, r) {
|
|
1773
|
+
let [o, i] = k(n), { hasFlag: a, addFlag: s, removeFlag: l } = ca(e && o ? 3 : 0), u = w(!1), d = w(!1), c = Et();
|
|
1774
1774
|
return B(function p() {
|
|
1775
1775
|
var f;
|
|
1776
1776
|
if (!e) return;
|
|
1777
1777
|
n && i(!0);
|
|
1778
1778
|
let v = t.current;
|
|
1779
|
-
return v ? ((f = r == null ? void 0 : r.start) == null || f.call(r, n),
|
|
1779
|
+
return v ? ((f = r == null ? void 0 : r.start) == null || f.call(r, n), pa(v, { 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);
|
|
@@ -1786,14 +1786,14 @@ function da(e, t, n, r) {
|
|
|
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
|
}
|
|
1789
|
-
function
|
|
1790
|
-
let i =
|
|
1791
|
-
return
|
|
1792
|
-
i.add(
|
|
1789
|
+
function pa(e, { prepare: t, run: n, done: r, inFlight: o }) {
|
|
1790
|
+
let i = we();
|
|
1791
|
+
return _a(e, { prepare: t, inFlight: o }), i.nextFrame(() => {
|
|
1792
|
+
i.add(ha(e, r)), n();
|
|
1793
1793
|
}), i.dispose;
|
|
1794
1794
|
}
|
|
1795
|
-
function
|
|
1796
|
-
let n =
|
|
1795
|
+
function ha(e, t) {
|
|
1796
|
+
let n = la(t), r = we();
|
|
1797
1797
|
if (!e) return r.dispose;
|
|
1798
1798
|
let { transitionDuration: o, transitionDelay: i } = getComputedStyle(e), [a, s] = [o, i].map((u) => {
|
|
1799
1799
|
let [d = 0] = u.split(",").filter(Boolean).map((c) => c.includes("ms") ? parseFloat(c) : parseFloat(c) * 1e3).sort((c, p) => p - c);
|
|
@@ -1816,7 +1816,7 @@ function pa(e, t) {
|
|
|
1816
1816
|
} else n();
|
|
1817
1817
|
return r.dispose;
|
|
1818
1818
|
}
|
|
1819
|
-
function
|
|
1819
|
+
function _a(e, { inFlight: t, prepare: n }) {
|
|
1820
1820
|
if (t != null && t.current) {
|
|
1821
1821
|
n();
|
|
1822
1822
|
return;
|
|
@@ -1824,9 +1824,9 @@ function ha(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
|
|
1827
|
+
function wn(e, t) {
|
|
1828
1828
|
let n = w([]), r = H(e);
|
|
1829
|
-
|
|
1829
|
+
P(() => {
|
|
1830
1830
|
let o = [...n.current];
|
|
1831
1831
|
for (let [i, a] of t.entries()) if (n.current[i] !== a) {
|
|
1832
1832
|
let s = r(t, o);
|
|
@@ -1834,119 +1834,119 @@ function gn(e, t) {
|
|
|
1834
1834
|
}
|
|
1835
1835
|
}, [r, ...t]);
|
|
1836
1836
|
}
|
|
1837
|
-
let $t =
|
|
1837
|
+
let $t = Y(null);
|
|
1838
1838
|
$t.displayName = "OpenClosedContext";
|
|
1839
1839
|
var ee = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(ee || {});
|
|
1840
1840
|
function Tt() {
|
|
1841
1841
|
return z($t);
|
|
1842
1842
|
}
|
|
1843
|
-
function
|
|
1843
|
+
function va({ value: e, children: t }) {
|
|
1844
1844
|
return T.createElement($t.Provider, { value: e }, t);
|
|
1845
1845
|
}
|
|
1846
|
-
function
|
|
1846
|
+
function ma({ children: e }) {
|
|
1847
1847
|
return T.createElement($t.Provider, { value: null }, e);
|
|
1848
1848
|
}
|
|
1849
|
-
function
|
|
1849
|
+
function ya(e) {
|
|
1850
1850
|
function t() {
|
|
1851
1851
|
document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", t));
|
|
1852
1852
|
}
|
|
1853
1853
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", t), t());
|
|
1854
1854
|
}
|
|
1855
|
-
let
|
|
1856
|
-
|
|
1855
|
+
let ve = [];
|
|
1856
|
+
ya(() => {
|
|
1857
1857
|
function e(t) {
|
|
1858
|
-
t.target instanceof HTMLElement && t.target !== document.body &&
|
|
1858
|
+
t.target instanceof HTMLElement && t.target !== document.body && ve[0] !== t.target && (ve.unshift(t.target), ve = ve.filter((n) => n != null && n.isConnected), ve.splice(10));
|
|
1859
1859
|
}
|
|
1860
1860
|
window.addEventListener("click", e, { capture: !0 }), window.addEventListener("mousedown", e, { capture: !0 }), window.addEventListener("focus", e, { capture: !0 }), document.body.addEventListener("click", e, { capture: !0 }), document.body.addEventListener("mousedown", e, { capture: !0 }), document.body.addEventListener("focus", e, { capture: !0 });
|
|
1861
1861
|
});
|
|
1862
|
-
function
|
|
1862
|
+
function so(e) {
|
|
1863
1863
|
let t = H(e), n = w(!1);
|
|
1864
|
-
|
|
1864
|
+
P(() => (n.current = !1, () => {
|
|
1865
1865
|
n.current = !0, bt(() => {
|
|
1866
1866
|
n.current && t();
|
|
1867
1867
|
});
|
|
1868
1868
|
}), [t]);
|
|
1869
1869
|
}
|
|
1870
|
-
function
|
|
1870
|
+
function ga() {
|
|
1871
1871
|
let e = typeof document > "u";
|
|
1872
|
-
return "useSyncExternalStore" in
|
|
1872
|
+
return "useSyncExternalStore" in Kn ? ((t) => t.useSyncExternalStore)(Kn)(() => () => {
|
|
1873
1873
|
}, () => !1, () => !e) : !1;
|
|
1874
1874
|
}
|
|
1875
1875
|
function nt() {
|
|
1876
|
-
let e =
|
|
1877
|
-
return t &&
|
|
1876
|
+
let e = ga(), [t, n] = k(xe.isHandoffComplete);
|
|
1877
|
+
return t && xe.isHandoffComplete === !1 && n(!1), P(() => {
|
|
1878
1878
|
t !== !0 && n(!0);
|
|
1879
|
-
}, [t]),
|
|
1879
|
+
}, [t]), P(() => xe.handoff(), []), e ? !1 : t;
|
|
1880
1880
|
}
|
|
1881
|
-
let
|
|
1882
|
-
function
|
|
1883
|
-
return z(
|
|
1881
|
+
let lo = Y(!1);
|
|
1882
|
+
function wa() {
|
|
1883
|
+
return z(lo);
|
|
1884
1884
|
}
|
|
1885
|
-
function
|
|
1886
|
-
return T.createElement(
|
|
1885
|
+
function Qn(e) {
|
|
1886
|
+
return T.createElement(lo.Provider, { value: e.force }, e.children);
|
|
1887
1887
|
}
|
|
1888
|
-
function
|
|
1889
|
-
let t =
|
|
1888
|
+
function ba(e) {
|
|
1889
|
+
let t = wa(), n = z(uo), r = tt(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 (xe.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;
|
|
1896
1896
|
let l = r.createElement("div");
|
|
1897
1897
|
return l.setAttribute("id", "headlessui-portal-root"), r.body.appendChild(l);
|
|
1898
1898
|
});
|
|
1899
|
-
return
|
|
1899
|
+
return P(() => {
|
|
1900
1900
|
o !== null && (r != null && r.body.contains(o) || r == null || r.body.appendChild(o));
|
|
1901
|
-
}, [o, r]),
|
|
1901
|
+
}, [o, r]), P(() => {
|
|
1902
1902
|
t || n !== null && i(n.current);
|
|
1903
1903
|
}, [n, i, t]), o;
|
|
1904
1904
|
}
|
|
1905
|
-
let
|
|
1906
|
-
let n = e, r = w(null), o = ae(
|
|
1905
|
+
let co = I, Ea = q(function(e, t) {
|
|
1906
|
+
let n = e, r = w(null), o = ae(Li((d) => {
|
|
1907
1907
|
r.current = d;
|
|
1908
|
-
}), t), i = tt(r), a =
|
|
1908
|
+
}), t), i = tt(r), a = ba(r), [s] = k(() => {
|
|
1909
1909
|
var d;
|
|
1910
|
-
return
|
|
1911
|
-
}), l = z(
|
|
1910
|
+
return xe.isServer ? null : (d = i == null ? void 0 : i.createElement("div")) != null ? d : null;
|
|
1911
|
+
}), l = z(tn), u = nt();
|
|
1912
1912
|
return B(() => {
|
|
1913
1913
|
!a || !s || a.contains(s) || (s.setAttribute("data-headlessui-portal", ""), a.appendChild(s));
|
|
1914
1914
|
}, [a, s]), B(() => {
|
|
1915
1915
|
if (s && l) return l.register(s);
|
|
1916
|
-
}, [l, s]),
|
|
1916
|
+
}, [l, s]), so(() => {
|
|
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 : yt(G({ ourProps: { ref: o }, theirProps: n, slot: {}, defaultTag:
|
|
1919
|
+
}), u ? !a || !s ? null : yt(G({ ourProps: { ref: o }, theirProps: n, slot: {}, defaultTag: co, name: "Portal" }), s) : null;
|
|
1920
1920
|
});
|
|
1921
|
-
function
|
|
1921
|
+
function $a(e, t) {
|
|
1922
1922
|
let n = ae(t), { enabled: r = !0, ...o } = e;
|
|
1923
|
-
return r ? T.createElement(
|
|
1923
|
+
return r ? T.createElement(Ea, { ...o, ref: n }) : G({ ourProps: { ref: n }, theirProps: o, slot: {}, defaultTag: co, name: "Portal" });
|
|
1924
1924
|
}
|
|
1925
|
-
let
|
|
1926
|
-
function
|
|
1925
|
+
let Ta = I, uo = Y(null);
|
|
1926
|
+
function Ca(e, t) {
|
|
1927
1927
|
let { target: n, ...r } = e, o = { ref: ae(t) };
|
|
1928
|
-
return T.createElement(
|
|
1928
|
+
return T.createElement(uo.Provider, { value: n }, G({ ourProps: o, theirProps: r, defaultTag: Ta, name: "Popover.Group" }));
|
|
1929
1929
|
}
|
|
1930
|
-
let
|
|
1931
|
-
function
|
|
1932
|
-
let e = z(
|
|
1930
|
+
let tn = Y(null);
|
|
1931
|
+
function xa() {
|
|
1932
|
+
let e = z(tn), t = w([]), n = H((i) => (t.current.push(i), e && e.register(i), () => r(i))), r = H((i) => {
|
|
1933
1933
|
let a = t.current.indexOf(i);
|
|
1934
1934
|
a !== -1 && t.current.splice(a, 1), e && e.unregister(i);
|
|
1935
1935
|
}), o = M(() => ({ register: n, unregister: r, portals: t }), [n, r, t]);
|
|
1936
1936
|
return [t, M(() => function({ children: i }) {
|
|
1937
|
-
return T.createElement(
|
|
1937
|
+
return T.createElement(tn.Provider, { value: o }, i);
|
|
1938
1938
|
}, [o])];
|
|
1939
1939
|
}
|
|
1940
|
-
let ka = q(
|
|
1940
|
+
let ka = q($a), fo = q(Ca), Fa = Object.assign(ka, { Group: fo });
|
|
1941
1941
|
function Sa(e, t = typeof document < "u" ? document.defaultView : null, n) {
|
|
1942
1942
|
let r = Oe(e, "escape");
|
|
1943
|
-
|
|
1944
|
-
r && (o.defaultPrevented || o.key ===
|
|
1943
|
+
ao(t, "keydown", (o) => {
|
|
1944
|
+
r && (o.defaultPrevented || o.key === Jr.Escape && n(o));
|
|
1945
1945
|
});
|
|
1946
1946
|
}
|
|
1947
|
-
function
|
|
1947
|
+
function Ma() {
|
|
1948
1948
|
var e;
|
|
1949
|
-
let [t] =
|
|
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 B(() => {
|
|
1951
1951
|
if (!t) return;
|
|
1952
1952
|
function o(i) {
|
|
@@ -1955,7 +1955,7 @@ function xa() {
|
|
|
1955
1955
|
return t.addEventListener("change", o), () => t.removeEventListener("change", o);
|
|
1956
1956
|
}, [t]), n;
|
|
1957
1957
|
}
|
|
1958
|
-
function
|
|
1958
|
+
function Na({ defaultContainers: e = [], portals: t, mainTreeNodeRef: n } = {}) {
|
|
1959
1959
|
var r;
|
|
1960
1960
|
let o = w((r = n == null ? void 0 : n.current) != null ? r : null), i = tt(o), a = H(() => {
|
|
1961
1961
|
var s, l, u;
|
|
@@ -1966,10 +1966,10 @@ function Ma({ defaultContainers: e = [], portals: t, mainTreeNodeRef: n } = {})
|
|
|
1966
1966
|
return d;
|
|
1967
1967
|
});
|
|
1968
1968
|
return { resolveContainers: a, contains: H((s) => a().some((l) => l.contains(s))), mainTreeNodeRef: o, MainTreeNode: M(() => function() {
|
|
1969
|
-
return n != null ? null : T.createElement(
|
|
1969
|
+
return n != null ? null : T.createElement(Xt, { features: vt.Hidden, ref: o });
|
|
1970
1970
|
}, [o, n]) };
|
|
1971
1971
|
}
|
|
1972
|
-
function
|
|
1972
|
+
function bn() {
|
|
1973
1973
|
let e = w(!1);
|
|
1974
1974
|
return B(() => (e.current = !0, () => {
|
|
1975
1975
|
e.current = !1;
|
|
@@ -1978,33 +1978,33 @@ function wn() {
|
|
|
1978
1978
|
var je = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(je || {});
|
|
1979
1979
|
function Pa() {
|
|
1980
1980
|
let e = w(0);
|
|
1981
|
-
return
|
|
1981
|
+
return io(!0, "keydown", (t) => {
|
|
1982
1982
|
t.key === "Tab" && (e.current = t.shiftKey ? 1 : 0);
|
|
1983
1983
|
}, !0), e;
|
|
1984
1984
|
}
|
|
1985
|
-
function
|
|
1985
|
+
function po(e) {
|
|
1986
1986
|
if (!e) return /* @__PURE__ */ new Set();
|
|
1987
1987
|
if (typeof e == "function") return new Set(e());
|
|
1988
1988
|
let t = /* @__PURE__ */ new Set();
|
|
1989
1989
|
for (let n of e.current) n.current instanceof HTMLElement && t.add(n.current);
|
|
1990
1990
|
return t;
|
|
1991
1991
|
}
|
|
1992
|
-
let
|
|
1993
|
-
var
|
|
1994
|
-
function
|
|
1992
|
+
let La = "div";
|
|
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
|
+
function Aa(e, t) {
|
|
1995
1995
|
let n = w(null), r = ae(n, t), { initialFocus: o, initialFocusFallback: i, containers: a, features: s = 15, ...l } = e;
|
|
1996
1996
|
nt() || (s = 0);
|
|
1997
1997
|
let u = tt(n);
|
|
1998
|
-
|
|
1999
|
-
let d =
|
|
2000
|
-
|
|
1998
|
+
Oa(s, { ownerDocument: u });
|
|
1999
|
+
let d = Ra(s, { ownerDocument: u, container: n, initialFocus: o, initialFocusFallback: i });
|
|
2000
|
+
Va(s, { ownerDocument: u, container: n, containers: a, previousActiveElement: d });
|
|
2001
2001
|
let c = Pa(), p = H((_) => {
|
|
2002
2002
|
let g = n.current;
|
|
2003
2003
|
g && ((b) => b())(() => {
|
|
2004
|
-
|
|
2005
|
-
|
|
2004
|
+
ye(c.current, { [je.Forwards]: () => {
|
|
2005
|
+
Ye(g, ce.First, { skipElements: [_.relatedTarget, i] });
|
|
2006
2006
|
}, [je.Backwards]: () => {
|
|
2007
|
-
|
|
2007
|
+
Ye(g, ce.Last, { skipElements: [_.relatedTarget, i] });
|
|
2008
2008
|
} });
|
|
2009
2009
|
});
|
|
2010
2010
|
}), f = Oe(!!(s & 2), "focus-trap#tab-lock"), v = Et(), y = w(!1), m = { ref: r, onKeyDown(_) {
|
|
@@ -2013,36 +2013,36 @@ function La(e, t) {
|
|
|
2013
2013
|
}));
|
|
2014
2014
|
}, onBlur(_) {
|
|
2015
2015
|
if (!(s & 4)) return;
|
|
2016
|
-
let g =
|
|
2016
|
+
let g = po(a);
|
|
2017
2017
|
n.current instanceof HTMLElement && g.add(n.current);
|
|
2018
2018
|
let b = _.relatedTarget;
|
|
2019
|
-
b instanceof HTMLElement && b.dataset.headlessuiFocusGuard !== "true" && (
|
|
2019
|
+
b instanceof HTMLElement && b.dataset.headlessuiFocusGuard !== "true" && (ho(g, b) || (y.current ? Ye(n.current, ye(c.current, { [je.Forwards]: () => ce.Next, [je.Backwards]: () => ce.Previous }) | ce.WrapAround, { relativeTo: _.target }) : _.target instanceof HTMLElement && fe(_.target)));
|
|
2020
2020
|
} };
|
|
2021
|
-
return T.createElement(T.Fragment, null, f && T.createElement(
|
|
2021
|
+
return T.createElement(T.Fragment, null, f && T.createElement(Xt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: p, features: vt.Focusable }), G({ ourProps: m, theirProps: l, defaultTag: La, name: "FocusTrap" }), f && T.createElement(Xt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: p, features: vt.Focusable }));
|
|
2022
2022
|
}
|
|
2023
|
-
let
|
|
2024
|
-
function
|
|
2025
|
-
let t = w(
|
|
2026
|
-
return
|
|
2023
|
+
let Da = q(Aa), Ha = Object.assign(Da, { features: $e });
|
|
2024
|
+
function Ia(e = !0) {
|
|
2025
|
+
let t = w(ve.slice());
|
|
2026
|
+
return wn(([n], [r]) => {
|
|
2027
2027
|
r === !0 && n === !1 && bt(() => {
|
|
2028
2028
|
t.current.splice(0);
|
|
2029
|
-
}), r === !1 && n === !0 && (t.current =
|
|
2030
|
-
}, [e,
|
|
2029
|
+
}), r === !1 && n === !0 && (t.current = ve.slice());
|
|
2030
|
+
}, [e, ve, t]), H(() => {
|
|
2031
2031
|
var n;
|
|
2032
2032
|
return (n = t.current.find((r) => r != null && r.isConnected)) != null ? n : null;
|
|
2033
2033
|
});
|
|
2034
2034
|
}
|
|
2035
|
-
function
|
|
2036
|
-
let n = !!(e & 8), r =
|
|
2037
|
-
|
|
2035
|
+
function Oa(e, { ownerDocument: t }) {
|
|
2036
|
+
let n = !!(e & 8), r = Ia(n);
|
|
2037
|
+
wn(() => {
|
|
2038
2038
|
n || (t == null ? void 0 : t.activeElement) === (t == null ? void 0 : t.body) && fe(r());
|
|
2039
|
-
}, [n]),
|
|
2039
|
+
}, [n]), so(() => {
|
|
2040
2040
|
n && fe(r());
|
|
2041
2041
|
});
|
|
2042
2042
|
}
|
|
2043
|
-
function
|
|
2044
|
-
let i = w(null), a = Oe(!!(e & 1), "focus-trap#initial-focus"), s =
|
|
2045
|
-
return
|
|
2043
|
+
function Ra(e, { ownerDocument: t, container: n, initialFocus: r, initialFocusFallback: o }) {
|
|
2044
|
+
let i = w(null), a = Oe(!!(e & 1), "focus-trap#initial-focus"), s = bn();
|
|
2045
|
+
return wn(() => {
|
|
2046
2046
|
if (e === 0) return;
|
|
2047
2047
|
if (!a) {
|
|
2048
2048
|
o != null && o.current && fe(o.current);
|
|
@@ -2064,8 +2064,8 @@ function Oa(e, { ownerDocument: t, container: n, initialFocus: r, initialFocusFa
|
|
|
2064
2064
|
if (r != null && r.current) fe(r.current);
|
|
2065
2065
|
else {
|
|
2066
2066
|
if (e & 16) {
|
|
2067
|
-
if (
|
|
2068
|
-
} else if (
|
|
2067
|
+
if (Ye(l, ce.First | ce.AutoFocus) !== en.Error) return;
|
|
2068
|
+
} else if (Ye(l, ce.First) !== en.Error) return;
|
|
2069
2069
|
if (o != null && o.current && (fe(o.current), (t == null ? void 0 : t.activeElement) === o.current)) return;
|
|
2070
2070
|
console.warn("There are no focusable elements inside the <FocusTrap />");
|
|
2071
2071
|
}
|
|
@@ -2073,58 +2073,58 @@ function Oa(e, { ownerDocument: t, container: n, initialFocus: r, initialFocusFa
|
|
|
2073
2073
|
});
|
|
2074
2074
|
}, [o, a, e]), i;
|
|
2075
2075
|
}
|
|
2076
|
-
function
|
|
2077
|
-
let i =
|
|
2078
|
-
|
|
2076
|
+
function Va(e, { ownerDocument: t, container: n, containers: r, previousActiveElement: o }) {
|
|
2077
|
+
let i = bn(), a = !!(e & 4);
|
|
2078
|
+
ao(t == null ? void 0 : t.defaultView, "focus", (s) => {
|
|
2079
2079
|
if (!a || !i.current) return;
|
|
2080
|
-
let l =
|
|
2080
|
+
let l = po(r);
|
|
2081
2081
|
n.current instanceof HTMLElement && l.add(n.current);
|
|
2082
2082
|
let u = o.current;
|
|
2083
2083
|
if (!u) return;
|
|
2084
2084
|
let d = s.target;
|
|
2085
|
-
d && d instanceof HTMLElement ?
|
|
2085
|
+
d && d instanceof HTMLElement ? ho(l, d) ? (o.current = d, fe(d)) : (s.preventDefault(), s.stopPropagation(), fe(u)) : fe(o.current);
|
|
2086
2086
|
}, !0);
|
|
2087
2087
|
}
|
|
2088
|
-
function
|
|
2088
|
+
function ho(e, t) {
|
|
2089
2089
|
for (let n of e) if (n.contains(t)) return !0;
|
|
2090
2090
|
return !1;
|
|
2091
2091
|
}
|
|
2092
|
-
function
|
|
2092
|
+
function _o(e) {
|
|
2093
2093
|
var t;
|
|
2094
|
-
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((t = e.as) != null ? t :
|
|
2094
|
+
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((t = e.as) != null ? t : mo) !== I || T.Children.count(e.children) === 1;
|
|
2095
2095
|
}
|
|
2096
|
-
let Ct =
|
|
2096
|
+
let Ct = Y(null);
|
|
2097
2097
|
Ct.displayName = "TransitionContext";
|
|
2098
|
-
var
|
|
2099
|
-
function
|
|
2098
|
+
var Ua = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(Ua || {});
|
|
2099
|
+
function Wa() {
|
|
2100
2100
|
let e = z(Ct);
|
|
2101
2101
|
if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
2102
2102
|
return e;
|
|
2103
2103
|
}
|
|
2104
|
-
function
|
|
2105
|
-
let e = z(
|
|
2104
|
+
function ja() {
|
|
2105
|
+
let e = z(xt);
|
|
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
|
-
|
|
2111
|
-
function
|
|
2112
|
-
return "children" in e ?
|
|
2109
|
+
let xt = Y(null);
|
|
2110
|
+
xt.displayName = "NestingContext";
|
|
2111
|
+
function kt(e) {
|
|
2112
|
+
return "children" in e ? kt(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
|
|
2113
2113
|
}
|
|
2114
|
-
function
|
|
2115
|
-
let n = Pe(e), r = w([]), o =
|
|
2114
|
+
function vo(e, t) {
|
|
2115
|
+
let n = Pe(e), r = w([]), o = bn(), i = Et(), a = H((f, v = me.Hidden) => {
|
|
2116
2116
|
let y = r.current.findIndex(({ el: m }) => m === f);
|
|
2117
|
-
y !== -1 && (
|
|
2117
|
+
y !== -1 && (ye(v, { [me.Unmount]() {
|
|
2118
2118
|
r.current.splice(y, 1);
|
|
2119
|
-
}, [
|
|
2119
|
+
}, [me.Hidden]() {
|
|
2120
2120
|
r.current[y].state = "hidden";
|
|
2121
2121
|
} }), i.microTask(() => {
|
|
2122
2122
|
var m;
|
|
2123
|
-
!
|
|
2123
|
+
!kt(r) && o.current && ((m = n.current) == null || m.call(n));
|
|
2124
2124
|
}));
|
|
2125
2125
|
}), s = H((f) => {
|
|
2126
2126
|
let v = r.current.find(({ el: y }) => y === f);
|
|
2127
|
-
return v ? v.state !== "visible" && (v.state = "visible") : r.current.push({ el: f, state: "visible" }), () => a(f,
|
|
2127
|
+
return v ? v.state !== "visible" && (v.state = "visible") : r.current.push({ el: f, state: "visible" }), () => a(f, me.Unmount);
|
|
2128
2128
|
}), l = w([]), u = w(Promise.resolve()), d = w({ enter: [], leave: [] }), c = H((f, v, y) => {
|
|
2129
2129
|
l.current.splice(0), t && (t.chains.current[v] = t.chains.current[v].filter(([m]) => m !== f)), t == null || t.chains.current[v].push([f, new Promise((m) => {
|
|
2130
2130
|
l.current.push(m);
|
|
@@ -2139,57 +2139,57 @@ function _o(e, t) {
|
|
|
2139
2139
|
});
|
|
2140
2140
|
return M(() => ({ children: r, register: s, unregister: a, onStart: c, onStop: p, wait: u, chains: d }), [s, a, r, c, p, d, u]);
|
|
2141
2141
|
}
|
|
2142
|
-
let
|
|
2143
|
-
function
|
|
2142
|
+
let mo = I, yo = _t.RenderStrategy;
|
|
2143
|
+
function za(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: v, leaveTo: y, ...m } = e, _ = w(null), g =
|
|
2146
|
-
B(() =>
|
|
2147
|
-
if (C ===
|
|
2145
|
+
let { transition: o = !0, beforeEnter: i, afterEnter: a, beforeLeave: s, afterLeave: l, enter: u, enterFrom: d, enterTo: c, entered: p, leave: f, leaveFrom: v, leaveTo: y, ...m } = e, _ = w(null), g = _o(e), b = ae(...g ? [_, t] : t === null ? [] : [t]), C = (n = m.unmount) == null || n ? me.Unmount : me.Hidden, { show: $, appear: N, initial: O } = Wa(), [R, W] = k($ ? "visible" : "hidden"), E = ja(), { register: x, unregister: S } = E;
|
|
2146
|
+
B(() => x(_), [x, _]), B(() => {
|
|
2147
|
+
if (C === me.Hidden && _.current) {
|
|
2148
2148
|
if ($ && R !== "visible") {
|
|
2149
2149
|
W("visible");
|
|
2150
2150
|
return;
|
|
2151
2151
|
}
|
|
2152
|
-
return
|
|
2152
|
+
return ye(R, { hidden: () => S(_), visible: () => x(_) });
|
|
2153
2153
|
}
|
|
2154
|
-
}, [R, _,
|
|
2155
|
-
let
|
|
2154
|
+
}, [R, _, x, S, $, C]);
|
|
2155
|
+
let D = nt();
|
|
2156
2156
|
B(() => {
|
|
2157
|
-
if (g &&
|
|
2158
|
-
}, [_, R,
|
|
2159
|
-
let Z = O && !
|
|
2160
|
-
Q.current || (W("hidden"),
|
|
2161
|
-
}, E),
|
|
2157
|
+
if (g && D && R === "visible" && _.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
2158
|
+
}, [_, R, D, g]);
|
|
2159
|
+
let Z = O && !N, re = N && $ && O, Q = w(!1), J = vo(() => {
|
|
2160
|
+
Q.current || (W("hidden"), S(_));
|
|
2161
|
+
}, E), _e = H((St) => {
|
|
2162
2162
|
Q.current = !0;
|
|
2163
|
-
let rt =
|
|
2163
|
+
let rt = St ? "enter" : "leave";
|
|
2164
2164
|
J.onStart(_, rt, (Ve) => {
|
|
2165
2165
|
Ve === "enter" ? i == null || i() : Ve === "leave" && (s == null || s());
|
|
2166
2166
|
});
|
|
2167
|
-
}), le = H((
|
|
2168
|
-
let rt =
|
|
2167
|
+
}), le = H((St) => {
|
|
2168
|
+
let rt = St ? "enter" : "leave";
|
|
2169
2169
|
Q.current = !1, J.onStop(_, rt, (Ve) => {
|
|
2170
2170
|
Ve === "enter" ? a == null || a() : Ve === "leave" && (l == null || l());
|
|
2171
|
-
}), rt === "leave" && !
|
|
2171
|
+
}), rt === "leave" && !kt(J) && (W("hidden"), S(_));
|
|
2172
2172
|
});
|
|
2173
|
-
|
|
2174
|
-
g && o || (
|
|
2173
|
+
P(() => {
|
|
2174
|
+
g && o || (_e($), le($));
|
|
2175
2175
|
}, [$, g, o]);
|
|
2176
|
-
let j = !(!o || !g || !
|
|
2177
|
-
return R === "visible" && (Re |= ee.Open), R === "hidden" && (Re |= ee.Closed), U.enter && (Re |= ee.Opening), U.leave && (Re |= ee.Closing), T.createElement(
|
|
2176
|
+
let j = !(!o || !g || !D || Z), [, U] = fa(j, _, $, { start: _e, end: le }), Fo = be({ ref: b, className: ((r = Zt(m.className, re && u, re && d, U.enter && u, U.enter && U.closed && d, U.enter && !U.closed && c, U.leave && f, U.leave && !U.closed && v, U.leave && U.closed && y, !U.transition && $ && p)) == null ? void 0 : r.trim()) || void 0, ...da(U) }), Re = 0;
|
|
2177
|
+
return R === "visible" && (Re |= ee.Open), R === "hidden" && (Re |= ee.Closed), U.enter && (Re |= ee.Opening), U.leave && (Re |= ee.Closing), T.createElement(xt.Provider, { value: J }, T.createElement(va, { value: Re }, G({ ourProps: Fo, theirProps: m, defaultTag: mo, features: yo, visible: R === "visible", name: "Transition.Child" })));
|
|
2178
2178
|
}
|
|
2179
|
-
function
|
|
2180
|
-
let { show: n, appear: r = !1, unmount: o = !0, ...i } = e, a = w(null), s =
|
|
2179
|
+
function Ba(e, t) {
|
|
2180
|
+
let { show: n, appear: r = !1, unmount: o = !0, ...i } = e, a = w(null), s = _o(e), l = ae(...s ? [a, t] : t === null ? [] : [t]);
|
|
2181
2181
|
nt();
|
|
2182
2182
|
let u = Tt();
|
|
2183
2183
|
if (n === void 0 && u !== null && (n = (u & ee.Open) === ee.Open), n === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
2184
|
-
let [d, c] =
|
|
2184
|
+
let [d, c] = k(n ? "visible" : "hidden"), p = vo(() => {
|
|
2185
2185
|
n || c("hidden");
|
|
2186
|
-
}), [f, v] =
|
|
2186
|
+
}), [f, v] = k(!0), y = w([n]);
|
|
2187
2187
|
B(() => {
|
|
2188
2188
|
f !== !1 && y.current[y.current.length - 1] !== n && (y.current.push(n), v(!1));
|
|
2189
2189
|
}, [y, n]);
|
|
2190
2190
|
let m = M(() => ({ show: n, appear: r, initial: f }), [n, r, f]);
|
|
2191
|
-
|
|
2192
|
-
n ? c("visible") : !
|
|
2191
|
+
no(n, a, () => c("hidden")), B(() => {
|
|
2192
|
+
n ? c("visible") : !kt(p) && a.current !== null && c("hidden");
|
|
2193
2193
|
}, [n, p]);
|
|
2194
2194
|
let _ = { unmount: o }, g = H(() => {
|
|
2195
2195
|
var C;
|
|
@@ -2198,93 +2198,93 @@ function za(e, t) {
|
|
|
2198
2198
|
var C;
|
|
2199
2199
|
f && v(!1), (C = e.beforeLeave) == null || C.call(e);
|
|
2200
2200
|
});
|
|
2201
|
-
return T.createElement(
|
|
2201
|
+
return T.createElement(xt.Provider, { value: p }, T.createElement(Ct.Provider, { value: m }, G({ ourProps: { ..._, as: I, children: T.createElement(go, { ref: l, ..._, ...i, beforeEnter: g, beforeLeave: b }) }, theirProps: {}, defaultTag: I, features: yo, visible: d === "visible", name: "Transition" })));
|
|
2202
2202
|
}
|
|
2203
|
-
function
|
|
2203
|
+
function qa(e, t) {
|
|
2204
2204
|
let n = z(Ct) !== null, r = Tt() !== null;
|
|
2205
|
-
return T.createElement(T.Fragment, null, !n && r ? T.createElement(
|
|
2205
|
+
return T.createElement(T.Fragment, null, !n && r ? T.createElement(nn, { ref: t, ...e }) : T.createElement(go, { ref: t, ...e }));
|
|
2206
2206
|
}
|
|
2207
|
-
let
|
|
2208
|
-
var
|
|
2209
|
-
let
|
|
2207
|
+
let nn = q(Ba), go = q(za), En = q(qa), ie = Object.assign(nn, { Child: En, Root: nn });
|
|
2208
|
+
var Ka = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Ka || {}), Ya = ((e) => (e[e.SetTitleId = 0] = "SetTitleId", e))(Ya || {});
|
|
2209
|
+
let Ga = { 0(e, t) {
|
|
2210
2210
|
return e.titleId === t.id ? e : { ...e, titleId: t.id };
|
|
2211
|
-
} },
|
|
2212
|
-
|
|
2213
|
-
function
|
|
2214
|
-
let t = z(
|
|
2211
|
+
} }, $n = Y(null);
|
|
2212
|
+
$n.displayName = "DialogContext";
|
|
2213
|
+
function Ft(e) {
|
|
2214
|
+
let t = z($n);
|
|
2215
2215
|
if (t === null) {
|
|
2216
2216
|
let n = new Error(`<${e} /> is missing a parent <Dialog /> component.`);
|
|
2217
|
-
throw Error.captureStackTrace && Error.captureStackTrace(n,
|
|
2217
|
+
throw Error.captureStackTrace && Error.captureStackTrace(n, Ft), n;
|
|
2218
2218
|
}
|
|
2219
2219
|
return t;
|
|
2220
2220
|
}
|
|
2221
|
-
function
|
|
2222
|
-
return
|
|
2221
|
+
function Za(e, t) {
|
|
2222
|
+
return ye(t.type, Ga, e, t);
|
|
2223
2223
|
}
|
|
2224
|
-
let
|
|
2225
|
-
let n =
|
|
2224
|
+
let Jn = q(function(e, t) {
|
|
2225
|
+
let n = ge(), { 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
2229
|
let p = Tt();
|
|
2230
2230
|
o === void 0 && p !== null && (o = (p & ee.Open) === ee.Open);
|
|
2231
|
-
let f = w(null), v = ae(f, t), y = tt(f), m = o ? 0 : 1, [_, g] = Qe(
|
|
2231
|
+
let f = w(null), v = ae(f, t), y = tt(f), m = o ? 0 : 1, [_, g] = Qe(Za, { titleId: null, descriptionId: null, panelRef: on() }), b = H(() => i(!1)), C = H((j) => g({ type: 0, id: j })), $ = nt() ? m === 0 : !1, [N, O] = xa(), R = { get current() {
|
|
2232
2232
|
var j;
|
|
2233
2233
|
return (j = _.panelRef.current) != null ? j : f.current;
|
|
2234
|
-
} }, { resolveContainers: W, mainTreeNodeRef: E, MainTreeNode:
|
|
2235
|
-
|
|
2234
|
+
} }, { resolveContainers: W, mainTreeNodeRef: E, MainTreeNode: x } = Na({ portals: N, defaultContainers: [R] }), S = p !== null ? (p & ee.Closing) === ee.Closing : !1;
|
|
2235
|
+
ji(u || S ? !1 : $, { allowed: H(() => {
|
|
2236
2236
|
var j, U;
|
|
2237
2237
|
return [(U = (j = f.current) == null ? void 0 : j.closest("[data-headlessui-portal]")) != null ? U : null];
|
|
2238
2238
|
}), disallowed: H(() => {
|
|
2239
2239
|
var j, U;
|
|
2240
2240
|
return [(U = (j = E.current) == null ? void 0 : j.closest("body > *:not(#headlessui-portal-root)")) != null ? U : null];
|
|
2241
|
-
}) }),
|
|
2241
|
+
}) }), ta($, W, (j) => {
|
|
2242
2242
|
j.preventDefault(), b();
|
|
2243
2243
|
}), Sa($, y == null ? void 0 : y.defaultView, (j) => {
|
|
2244
2244
|
j.preventDefault(), j.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), b();
|
|
2245
|
-
}),
|
|
2246
|
-
let [
|
|
2247
|
-
return $ && !u && (le |=
|
|
2248
|
-
}),
|
|
2249
|
-
function
|
|
2245
|
+
}), sa(u || S ? !1 : $, y, W), no($, f, b);
|
|
2246
|
+
let [D, Z] = Ai(), re = M(() => [{ dialogState: m, close: b, setTitleId: C }, _], [m, _, b, C]), Q = M(() => ({ open: m === 0 }), [m]), J = { ref: v, id: r, role: s, tabIndex: -1, "aria-modal": u ? void 0 : m === 0 ? !0 : void 0, "aria-labelledby": _.titleId, "aria-describedby": D }, _e = !Ma(), le = $e.None;
|
|
2247
|
+
return $ && !u && (le |= $e.RestoreFocus, le |= $e.TabLock, l && (le |= $e.AutoFocus), _e && (le |= $e.InitialFocus)), T.createElement(ma, null, T.createElement(Qn, { force: !0 }, T.createElement(Fa, null, T.createElement($n.Provider, { value: re }, T.createElement(fo, { target: f }, T.createElement(Qn, { force: !1 }, T.createElement(Z, { slot: Q }, T.createElement(O, null, T.createElement(Ha, { initialFocus: a, initialFocusFallback: f, containers: W, features: le }, T.createElement(Vi, { value: b }, G({ ourProps: J, theirProps: d, slot: Q, defaultTag: Xa, features: Qa, visible: m === 0, name: "Dialog" })))))))))), T.createElement(Pi, null, T.createElement(x, null)));
|
|
2248
|
+
}), Xa = "div", Qa = _t.RenderStrategy | _t.Static;
|
|
2249
|
+
function Ja(e, t) {
|
|
2250
2250
|
let { transition: n = !1, open: r, ...o } = e, i = Tt(), 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.");
|
|
2254
2254
|
if (!i && typeof e.open != "boolean") throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);
|
|
2255
2255
|
if (typeof e.onClose != "function") throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);
|
|
2256
|
-
return (r !== void 0 || n) && !o.static ? T.createElement(ie, { show: r, transition: n, unmount: o.unmount }, T.createElement(
|
|
2256
|
+
return (r !== void 0 || n) && !o.static ? T.createElement(ie, { show: r, transition: n, unmount: o.unmount }, T.createElement(Jn, { ref: t, ...o })) : T.createElement(Jn, { ref: t, open: r, ...o });
|
|
2257
2257
|
}
|
|
2258
|
-
let
|
|
2259
|
-
function
|
|
2260
|
-
let n =
|
|
2258
|
+
let es = "div";
|
|
2259
|
+
function ts(e, t) {
|
|
2260
|
+
let n = ge(), { id: r = `headlessui-dialog-panel-${n}`, transition: o = !1, ...i } = e, [{ dialogState: a }, s] = Ft("Dialog.Panel"), l = ae(t, s.panelRef), u = M(() => ({ open: a === 0 }), [a]), d = H((c) => {
|
|
2261
2261
|
c.stopPropagation();
|
|
2262
2262
|
});
|
|
2263
|
-
return T.createElement(o ?
|
|
2263
|
+
return T.createElement(o ? En : I, null, G({ ourProps: { ref: l, id: r, onClick: d }, theirProps: i, slot: u, defaultTag: es, name: "Dialog.Panel" }));
|
|
2264
2264
|
}
|
|
2265
|
-
let
|
|
2266
|
-
function
|
|
2267
|
-
let { transition: n = !1, ...r } = e, [{ dialogState: o }] =
|
|
2268
|
-
return T.createElement(n ?
|
|
2265
|
+
let ns = "div";
|
|
2266
|
+
function rs(e, t) {
|
|
2267
|
+
let { transition: n = !1, ...r } = e, [{ dialogState: o }] = Ft("Dialog.Backdrop"), i = M(() => ({ open: o === 0 }), [o]);
|
|
2268
|
+
return T.createElement(n ? En : I, null, G({ ourProps: { ref: t, "aria-hidden": !0 }, theirProps: r, slot: i, defaultTag: ns, name: "Dialog.Backdrop" }));
|
|
2269
2269
|
}
|
|
2270
|
-
let
|
|
2271
|
-
function
|
|
2272
|
-
let n =
|
|
2273
|
-
|
|
2270
|
+
let os = "h2";
|
|
2271
|
+
function is(e, t) {
|
|
2272
|
+
let n = ge(), { id: r = `headlessui-dialog-title-${n}`, ...o } = e, [{ dialogState: i, setTitleId: a }] = Ft("Dialog.Title"), s = ae(t);
|
|
2273
|
+
P(() => (a(r), () => a(null)), [r, a]);
|
|
2274
2274
|
let l = M(() => ({ open: i === 0 }), [i]);
|
|
2275
|
-
return G({ ourProps: { ref: s, id: r }, theirProps: o, slot: l, defaultTag:
|
|
2276
|
-
}
|
|
2277
|
-
let
|
|
2278
|
-
q(
|
|
2279
|
-
let
|
|
2280
|
-
const
|
|
2281
|
-
root:
|
|
2282
|
-
modal:
|
|
2283
|
-
container:
|
|
2284
|
-
page:
|
|
2285
|
-
close:
|
|
2286
|
-
},
|
|
2287
|
-
root:
|
|
2275
|
+
return G({ ourProps: { ref: s, id: r }, theirProps: o, slot: l, defaultTag: os, name: "Dialog.Title" });
|
|
2276
|
+
}
|
|
2277
|
+
let as = q(Ja), wo = q(ts);
|
|
2278
|
+
q(rs);
|
|
2279
|
+
let ss = q(is), ls = Object.assign(as, { Panel: wo, Title: ss, Description: Oi });
|
|
2280
|
+
const cs = "_root_1duny_1", us = "_modal_1duny_10", ds = "_container_1duny_13", fs = "_page_1duny_18", ps = "_close_1duny_21", at = {
|
|
2281
|
+
root: cs,
|
|
2282
|
+
modal: us,
|
|
2283
|
+
container: ds,
|
|
2284
|
+
page: fs,
|
|
2285
|
+
close: ps
|
|
2286
|
+
}, hs = "_root_1h6qm_1", _s = {
|
|
2287
|
+
root: hs
|
|
2288
2288
|
}, se = (e) => {
|
|
2289
2289
|
const {
|
|
2290
2290
|
children: t,
|
|
@@ -2320,26 +2320,26 @@ const ls = "_root_1duny_1", cs = "_modal_1duny_10", us = "_container_1duny_13",
|
|
|
2320
2320
|
children: t
|
|
2321
2321
|
}
|
|
2322
2322
|
);
|
|
2323
|
-
},
|
|
2323
|
+
}, vs = () => /* @__PURE__ */ h(se, { children: /* @__PURE__ */ h("path", { d: "M10 2a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5A.75.75 0 0110 2zM10 15a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5A.75.75 0 0110 15zM10 7a3 3 0 100 6 3 3 0 000-6zM15.657 5.404a.75.75 0 10-1.06-1.06l-1.061 1.06a.75.75 0 001.06 1.06l1.06-1.06zM6.464 14.596a.75.75 0 10-1.06-1.06l-1.06 1.06a.75.75 0 001.06 1.06l1.06-1.06zM18 10a.75.75 0 01-.75.75h-1.5a.75.75 0 010-1.5h1.5A.75.75 0 0118 10zM5 10a.75.75 0 01-.75.75h-1.5a.75.75 0 010-1.5h1.5A.75.75 0 015 10zM14.596 15.657a.75.75 0 001.06-1.06l-1.06-1.061a.75.75 0 10-1.06 1.06l1.06 1.06zM5.404 6.464a.75.75 0 001.06-1.06l-1.06-1.06a.75.75 0 10-1.061 1.06l1.06 1.06z" }) }), bo = (e) => /* @__PURE__ */ h(se, { ...e, children: /* @__PURE__ */ h(
|
|
2324
2324
|
"path",
|
|
2325
2325
|
{
|
|
2326
2326
|
fillRule: "evenodd",
|
|
2327
2327
|
d: "M7.455 2.004a.75.75 0 01.26.77 7 7 0 009.958 7.967.75.75 0 011.067.853A8.5 8.5 0 116.647 1.921a.75.75 0 01.808.083z",
|
|
2328
2328
|
clipRule: "evenodd"
|
|
2329
2329
|
}
|
|
2330
|
-
) }),
|
|
2330
|
+
) }), ms = (e) => /* @__PURE__ */ h(se, { ...e, viewBox: "0 0 24 24", children: [
|
|
2331
2331
|
/* @__PURE__ */ h("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2332
2332
|
/* @__PURE__ */ h("path", { d: "M19.07 4.93l-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s6-2.69 6-6c0-1.66-.67-3.16-1.76-4.24l-1.41 1.41C15.55 9.9 16 10.9 16 12c0 2.21-1.79 4-4 4s-4-1.79-4-4c0-1.86 1.28-3.41 3-3.86v2.14c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2s2-.9 2-2c0-.74-.4-1.38-1-1.72V2h-1C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-2.76-1.12-5.26-2.93-7.07z" })
|
|
2333
|
-
] }),
|
|
2333
|
+
] }), ys = (e) => /* @__PURE__ */ h(se, { ...e, viewBox: "0 0 24 24", children: [
|
|
2334
2334
|
/* @__PURE__ */ h("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2335
2335
|
/* @__PURE__ */ h("path", { d: "M3.72 6.04c.47.46 1.21.48 1.71.06.37-.32.69-.51.87-.43.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1h1.21c.69 0 1.25-.56 1.25-1.25s-.56-1.25-1.25-1.25h-1.22c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3c-1.09 0-2.04.63-2.7 1.22-.53.48-.53 1.32-.02 1.82zm10.16 12.51c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z" })
|
|
2336
|
-
] }),
|
|
2336
|
+
] }), gs = (e) => /* @__PURE__ */ h(se, { ...e, viewBox: "0 0 24 24", children: [
|
|
2337
2337
|
/* @__PURE__ */ h("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2338
2338
|
/* @__PURE__ */ h("path", { d: "M3.72 6.04c.47.46 1.21.48 1.71.06.37-.32.69-.51.87-.43.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1h1.21c.69 0 1.25-.56 1.25-1.25s-.56-1.25-1.25-1.25h-1.22c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3c-1.09 0-2.04.63-2.7 1.22-.53.48-.53 1.32-.02 1.82zm10.16 12.51c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z" })
|
|
2339
|
-
] }),
|
|
2339
|
+
] }), ws = (e) => /* @__PURE__ */ h(se, { ...e, children: [
|
|
2340
2340
|
/* @__PURE__ */ h("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2341
2341
|
/* @__PURE__ */ h("path", { d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm0 7c-2.67 0-8 1.34-8 4v2c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-2c0-2.66-5.33-4-8-4zm6 5H6v-.99c.2-.72 3.3-2.01 6-2.01s5.8 1.29 6 2v1z" })
|
|
2342
|
-
] }),
|
|
2342
|
+
] }), bs = (e) => /* @__PURE__ */ h(se, { ...e, children: /* @__PURE__ */ h("path", { d: "M18,10l-1.77-2.03l0.25-2.69l-2.63-0.6l-1.37-2.32L10,3.43L7.53,2.36L6.15,4.68L3.53,5.28l0.25,2.69L2,10l1.77,2.03 l-0.25,2.69l2.63,0.6l1.37,2.32L10,16.56l2.47,1.07l1.37-2.32l2.63-0.6l-0.25-2.69L18,10z M13.18,8.47l-4.24,4.24 c-0.2,0.2-0.51,0.2-0.71,0L6.82,11.3c-0.2-0.2-0.2-0.51,0-0.71s0.51-0.2,0.71,0l1.06,1.06l3.89-3.89c0.2-0.2,0.51-0.2,0.71,0 S13.38,8.28,13.18,8.47z" }) }), Es = (e) => /* @__PURE__ */ h(se, { ...e, viewBox: "0 0 24 24", children: /* @__PURE__ */ h("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" }) }), $s = (e) => /* @__PURE__ */ h(se, { ...e, children: /* @__PURE__ */ h("path", { d: "M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z" }) }), Ts = (e) => /* @__PURE__ */ h(se, { ...e, viewBox: "0 0 99 32", children: [
|
|
2343
2343
|
/* @__PURE__ */ h("g", { clipPath: "url(#clip0_9581_165880)", children: [
|
|
2344
2344
|
/* @__PURE__ */ h(
|
|
2345
2345
|
"path",
|
|
@@ -2476,14 +2476,14 @@ class ke {
|
|
|
2476
2476
|
}
|
|
2477
2477
|
}
|
|
2478
2478
|
}
|
|
2479
|
-
const
|
|
2479
|
+
const Cs = (e, t) => {
|
|
2480
2480
|
let n;
|
|
2481
2481
|
return typeof OffscreenCanvas < "u" ? n = new OffscreenCanvas(e, t) : (n = document.createElement("canvas"), n.width = e, n.height = t), n;
|
|
2482
|
-
},
|
|
2482
|
+
}, Eo = (e, t, n, r) => {
|
|
2483
2483
|
let o = 0, i = 0, a = t, s = n;
|
|
2484
|
-
const u =
|
|
2484
|
+
const u = Cs(t, n).getContext("2d");
|
|
2485
2485
|
return u.drawImage(e, 0, 0), u.getImageData(o, i, a, s);
|
|
2486
|
-
},
|
|
2486
|
+
}, xs = (e) => new Promise((t) => {
|
|
2487
2487
|
const n = document.createElement("canvas");
|
|
2488
2488
|
let { width: r } = e, { height: o } = e;
|
|
2489
2489
|
e instanceof HTMLVideoElement && (r = e.videoWidth, o = e.videoHeight), n.width = r, n.height = o, n.getContext("2d").drawImage(e, 0, 0), n.toBlob((a) => t(a));
|
|
@@ -2496,7 +2496,7 @@ function ks() {
|
|
|
2496
2496
|
if (MediaRecorder.isTypeSupported("video/mp4"))
|
|
2497
2497
|
return { mimeType: "video/mp4" };
|
|
2498
2498
|
}
|
|
2499
|
-
function
|
|
2499
|
+
function $o(e = {}) {
|
|
2500
2500
|
const { onRecord: t = () => {
|
|
2501
2501
|
}, onStop: n = () => {
|
|
2502
2502
|
} } = e, r = w([]), o = w(null), i = w(null), a = A((c) => {
|
|
@@ -2505,7 +2505,7 @@ function Eo(e = {}) {
|
|
|
2505
2505
|
async (c) => {
|
|
2506
2506
|
if (o.current)
|
|
2507
2507
|
return;
|
|
2508
|
-
const p = await
|
|
2508
|
+
const p = await xs(c);
|
|
2509
2509
|
o.current = p;
|
|
2510
2510
|
},
|
|
2511
2511
|
[]
|
|
@@ -2528,7 +2528,7 @@ function Eo(e = {}) {
|
|
|
2528
2528
|
savedPhoto: o
|
|
2529
2529
|
};
|
|
2530
2530
|
}
|
|
2531
|
-
function
|
|
2531
|
+
function pe(e, t) {
|
|
2532
2532
|
return Math.sqrt(e ** 2 + t ** 2);
|
|
2533
2533
|
}
|
|
2534
2534
|
function Fs(e) {
|
|
@@ -2547,10 +2547,10 @@ function Ss(e, t) {
|
|
|
2547
2547
|
i.readAsDataURL(o), i.onload = () => n(i.result), i.onerror = (a) => r(a);
|
|
2548
2548
|
});
|
|
2549
2549
|
}
|
|
2550
|
-
const
|
|
2551
|
-
function
|
|
2550
|
+
const Ms = (e) => e ? "https://identity.staging.svc.youverify.co" : "https://identity.svc.youverify.co";
|
|
2551
|
+
function Ns(e) {
|
|
2552
2552
|
return { postData: async (n) => {
|
|
2553
|
-
const { faceImage: r, publicKey: o, passed: i, metadata: a } = n, s =
|
|
2553
|
+
const { faceImage: r, publicKey: o, passed: i, metadata: a } = n, s = Ms(e), l = await fetch(`${s}/v1/sdk/identity/liveness/`, {
|
|
2554
2554
|
method: "POST",
|
|
2555
2555
|
headers: {
|
|
2556
2556
|
"Content-Type": "application/json"
|
|
@@ -2568,28 +2568,28 @@ function Ms(e) {
|
|
|
2568
2568
|
return (await l.json()).data;
|
|
2569
2569
|
} };
|
|
2570
2570
|
}
|
|
2571
|
-
const Ps = 360,
|
|
2571
|
+
const Ps = 360, Ls = "#125766", As = "https://cdn.youverify.co/1721901834404-q2nxqyng5klm918b3BDVU.jpg", To = {
|
|
2572
2572
|
"complete-the-circle": {
|
|
2573
|
-
Icon:
|
|
2573
|
+
Icon: ms,
|
|
2574
2574
|
name: "Complete The Circle ⭕️",
|
|
2575
2575
|
description: "First position your face in the camera frame. Then move your head in a circle to show all the angles of your face"
|
|
2576
2576
|
},
|
|
2577
2577
|
"yes-or-no": {
|
|
2578
|
-
Icon:
|
|
2578
|
+
Icon: ys,
|
|
2579
2579
|
name: "Yes or No ❓",
|
|
2580
2580
|
description: "First position your face in the camera. Then tilt your head to the left to answer No and to the right to answer Yes"
|
|
2581
2581
|
},
|
|
2582
2582
|
motions: {
|
|
2583
|
-
Icon:
|
|
2583
|
+
Icon: gs,
|
|
2584
2584
|
name: "Motions 💫",
|
|
2585
2585
|
description: "First position your face in the camera frame, then follow the instructions"
|
|
2586
2586
|
},
|
|
2587
2587
|
"facial-expressions": {
|
|
2588
|
-
Icon:
|
|
2588
|
+
Icon: bo,
|
|
2589
2589
|
name: "Facial Expressions 🤪",
|
|
2590
2590
|
description: "First position your face in the camera frame. Then move your head in a circle to show all the angles of your face"
|
|
2591
2591
|
}
|
|
2592
|
-
},
|
|
2592
|
+
}, Co = Y({
|
|
2593
2593
|
tasks: [],
|
|
2594
2594
|
namespace: "",
|
|
2595
2595
|
user: void 0,
|
|
@@ -2607,8 +2607,8 @@ const Ps = 360, Ns = "#125766", Ls = "https://cdn.youverify.co/1721901834404-q2n
|
|
|
2607
2607
|
},
|
|
2608
2608
|
onComplete: () => Promise.resolve()
|
|
2609
2609
|
});
|
|
2610
|
-
let
|
|
2611
|
-
function
|
|
2610
|
+
let er, tr = !1;
|
|
2611
|
+
function Ds(e) {
|
|
2612
2612
|
const {
|
|
2613
2613
|
publicKey: t,
|
|
2614
2614
|
tasks: n,
|
|
@@ -2622,44 +2622,44 @@ function As(e) {
|
|
|
2622
2622
|
metadata: u,
|
|
2623
2623
|
presentation: d,
|
|
2624
2624
|
sandboxEnvironment: c = !0
|
|
2625
|
-
} = e, [p, f] =
|
|
2625
|
+
} = e, [p, f] = k(0), [v, y] = k(0), [m, _] = k(null), { saveStream: g, savePhoto: b, savedPhoto: C } = $o(), { postData: $ } = Ns(c), N = M(
|
|
2626
2626
|
() => v === n.length,
|
|
2627
2627
|
[n, v]
|
|
2628
2628
|
), O = () => {
|
|
2629
|
-
y((
|
|
2630
|
-
}, R = (
|
|
2631
|
-
const
|
|
2632
|
-
|
|
2633
|
-
const
|
|
2634
|
-
ke.detectFaces(
|
|
2629
|
+
y((x) => x + 1), f((x) => x + 1);
|
|
2630
|
+
}, R = (x) => {
|
|
2631
|
+
const S = new Image();
|
|
2632
|
+
S.crossOrigin = "Anonymous", S.src = As, S.onload = () => {
|
|
2633
|
+
const D = Eo(S, S.width, S.height);
|
|
2634
|
+
ke.detectFaces(x, D);
|
|
2635
2635
|
};
|
|
2636
2636
|
}, W = async () => {
|
|
2637
|
-
const
|
|
2637
|
+
const x = await $({
|
|
2638
2638
|
faceImage: C.current ? await Ss(C.current, "image/png") : null,
|
|
2639
2639
|
publicKey: t,
|
|
2640
2640
|
passed: !0,
|
|
2641
2641
|
metadata: u
|
|
2642
2642
|
});
|
|
2643
|
-
l(
|
|
2643
|
+
l(x), s();
|
|
2644
2644
|
}, E = async () => {
|
|
2645
|
-
const
|
|
2646
|
-
|
|
2645
|
+
const x = await ke.loadDetector();
|
|
2646
|
+
er = x, R(x), _(x);
|
|
2647
2647
|
};
|
|
2648
|
-
return
|
|
2649
|
-
if (
|
|
2650
|
-
_(
|
|
2648
|
+
return P(() => {
|
|
2649
|
+
if (tr) {
|
|
2650
|
+
_(er);
|
|
2651
2651
|
return;
|
|
2652
2652
|
}
|
|
2653
|
-
E(),
|
|
2653
|
+
E(), tr = !0;
|
|
2654
2654
|
}, []), /* @__PURE__ */ h(
|
|
2655
|
-
|
|
2655
|
+
Co.Provider,
|
|
2656
2656
|
{
|
|
2657
2657
|
value: {
|
|
2658
2658
|
tasks: n,
|
|
2659
2659
|
namespace: o,
|
|
2660
2660
|
user: i,
|
|
2661
2661
|
currentTaskIndex: p,
|
|
2662
|
-
completed:
|
|
2662
|
+
completed: N,
|
|
2663
2663
|
completedCount: v,
|
|
2664
2664
|
nextTask: O,
|
|
2665
2665
|
branding: a,
|
|
@@ -2674,37 +2674,37 @@ function As(e) {
|
|
|
2674
2674
|
}
|
|
2675
2675
|
);
|
|
2676
2676
|
}
|
|
2677
|
-
function
|
|
2678
|
-
return z(
|
|
2679
|
-
}
|
|
2680
|
-
const
|
|
2681
|
-
root:
|
|
2682
|
-
container:
|
|
2683
|
-
lhs:
|
|
2684
|
-
info:
|
|
2685
|
-
active:
|
|
2686
|
-
completed:
|
|
2687
|
-
rhs:
|
|
2688
|
-
profile:
|
|
2689
|
-
avatar:
|
|
2690
|
-
main:
|
|
2691
|
-
content:
|
|
2692
|
-
},
|
|
2693
|
-
root:
|
|
2677
|
+
function Le() {
|
|
2678
|
+
return z(Co);
|
|
2679
|
+
}
|
|
2680
|
+
const Hs = "_root_vqy7d_1", Is = "_container_vqy7d_4", Os = "_lhs_vqy7d_7", Rs = "_info_vqy7d_11", Vs = "_active_vqy7d_32", Us = "_completed_vqy7d_39", Ws = "_rhs_vqy7d_62", js = "_profile_vqy7d_65", zs = "_avatar_vqy7d_68", Bs = "_main_vqy7d_81", qs = "_content_vqy7d_84", K = {
|
|
2681
|
+
root: Hs,
|
|
2682
|
+
container: Is,
|
|
2683
|
+
lhs: Os,
|
|
2684
|
+
info: Rs,
|
|
2685
|
+
active: Vs,
|
|
2686
|
+
completed: Us,
|
|
2687
|
+
rhs: Ws,
|
|
2688
|
+
profile: js,
|
|
2689
|
+
avatar: zs,
|
|
2690
|
+
main: Bs,
|
|
2691
|
+
content: qs
|
|
2692
|
+
}, Ks = "_root_135td_1", Ys = "_container_135td_1", Gs = "_brand_135td_1", Dt = {
|
|
2693
|
+
root: Ks,
|
|
2694
2694
|
container: Ys,
|
|
2695
|
-
brand:
|
|
2695
|
+
brand: Gs
|
|
2696
2696
|
};
|
|
2697
|
-
function Gs() {
|
|
2698
|
-
const { branding: e } = Ne();
|
|
2699
|
-
return /* @__PURE__ */ h("div", { className: It.root, children: /* @__PURE__ */ h("div", { className: It.container, children: /* @__PURE__ */ h("div", { className: It.brand, children: (e == null ? void 0 : e.logo) && /* @__PURE__ */ h("img", { className: "yvlw-h-10", src: e.logo, alt: "Logo" }) }) }) });
|
|
2700
|
-
}
|
|
2701
|
-
const tr = "colorScheme";
|
|
2702
2697
|
function Zs() {
|
|
2703
|
-
const {
|
|
2704
|
-
|
|
2698
|
+
const { branding: e } = Le();
|
|
2699
|
+
return /* @__PURE__ */ h("div", { className: Dt.root, children: /* @__PURE__ */ h("div", { className: Dt.container, children: /* @__PURE__ */ h("div", { className: Dt.brand, children: (e == null ? void 0 : e.logo) && /* @__PURE__ */ h("img", { className: "yvlw-h-10", src: e.logo, alt: "Logo" }) }) }) });
|
|
2700
|
+
}
|
|
2701
|
+
const nr = "colorScheme";
|
|
2702
|
+
function Xs() {
|
|
2703
|
+
const { namespace: e } = Le(), t = () => {
|
|
2704
|
+
const o = localStorage.getItem(nr);
|
|
2705
2705
|
return !o && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : o;
|
|
2706
2706
|
}, n = (o = null) => {
|
|
2707
|
-
o && localStorage.setItem(
|
|
2707
|
+
o && localStorage.setItem(nr, o);
|
|
2708
2708
|
const i = `${e}-color-scheme`, a = document.documentElement;
|
|
2709
2709
|
o && o === "dark" ? a == null || a.setAttribute(i, "dark") : a == null || a.removeAttribute(i);
|
|
2710
2710
|
};
|
|
@@ -2713,22 +2713,22 @@ function Zs() {
|
|
|
2713
2713
|
return n(o === "dark" ? "light" : "dark");
|
|
2714
2714
|
}, getColorScheme: t };
|
|
2715
2715
|
}
|
|
2716
|
-
const
|
|
2717
|
-
root:
|
|
2716
|
+
const Qs = "_root_bcsvc_1", Js = {
|
|
2717
|
+
root: Qs
|
|
2718
2718
|
};
|
|
2719
|
-
function
|
|
2719
|
+
function el() {
|
|
2720
2720
|
if (!(window.screen.width >= 900))
|
|
2721
2721
|
return 10 / 9;
|
|
2722
2722
|
}
|
|
2723
|
-
function
|
|
2723
|
+
function Tn(e) {
|
|
2724
2724
|
const { children: t, onStream: n = () => {
|
|
2725
2725
|
}, onRecord: r = () => {
|
|
2726
|
-
} } = e, o = w(null), i = w(0), a = w(null), { start: s, stop: l } =
|
|
2726
|
+
} } = e, o = w(null), i = w(0), a = w(null), { start: s, stop: l } = $o({
|
|
2727
2727
|
onRecord: r
|
|
2728
2728
|
}), u = async () => {
|
|
2729
2729
|
try {
|
|
2730
2730
|
const p = await navigator.mediaDevices.getUserMedia({
|
|
2731
|
-
video: { aspectRatio: { exact:
|
|
2731
|
+
video: { aspectRatio: { exact: el() } }
|
|
2732
2732
|
});
|
|
2733
2733
|
a.current = p, s(p), o.current && (o.current.srcObject = p);
|
|
2734
2734
|
} catch {
|
|
@@ -2738,7 +2738,7 @@ function $n(e) {
|
|
|
2738
2738
|
}, c = () => {
|
|
2739
2739
|
n(o), i.current = requestAnimationFrame(c);
|
|
2740
2740
|
};
|
|
2741
|
-
return
|
|
2741
|
+
return P(() => {
|
|
2742
2742
|
const p = o.current;
|
|
2743
2743
|
if (!p)
|
|
2744
2744
|
return;
|
|
@@ -2748,24 +2748,24 @@ function $n(e) {
|
|
|
2748
2748
|
return u(), p.addEventListener("canplay", f), () => {
|
|
2749
2749
|
p.removeEventListener("canplay", f), cancelAnimationFrame(i.current), d();
|
|
2750
2750
|
};
|
|
2751
|
-
}, []), /* @__PURE__ */ h("div", { className:
|
|
2751
|
+
}, []), /* @__PURE__ */ h("div", { className: Js.root, children: [
|
|
2752
2752
|
/* @__PURE__ */ h("video", { ref: o, autoPlay: !0, loop: !0, playsInline: !0 }),
|
|
2753
2753
|
t
|
|
2754
2754
|
] });
|
|
2755
2755
|
}
|
|
2756
|
-
const
|
|
2757
|
-
container:
|
|
2758
|
-
focused:
|
|
2759
|
-
progress:
|
|
2760
|
-
completed:
|
|
2761
|
-
marker:
|
|
2762
|
-
},
|
|
2763
|
-
function
|
|
2756
|
+
const tl = "_container_mcmsr_1", nl = "_focused_mcmsr_12", rl = "_progress_mcmsr_15", ol = "_completed_mcmsr_36", il = "_marker_mcmsr_40", We = {
|
|
2757
|
+
container: tl,
|
|
2758
|
+
focused: nl,
|
|
2759
|
+
progress: rl,
|
|
2760
|
+
completed: ol,
|
|
2761
|
+
marker: il
|
|
2762
|
+
}, rr = 360, al = 50;
|
|
2763
|
+
function sl(e) {
|
|
2764
2764
|
const {
|
|
2765
2765
|
visitedSections: t,
|
|
2766
2766
|
sectionsCount: n,
|
|
2767
2767
|
faceDetected: r,
|
|
2768
|
-
divisions: o =
|
|
2768
|
+
divisions: o = al
|
|
2769
2769
|
} = e, i = M(() => {
|
|
2770
2770
|
const a = [We.container];
|
|
2771
2771
|
return r && a.push(We.focused), a.join(" ");
|
|
@@ -2784,8 +2784,8 @@ function al(e) {
|
|
|
2784
2784
|
enterTo: "yvlw-scale-100 yvlw-opacity-100",
|
|
2785
2785
|
className: "yvlw-absolute",
|
|
2786
2786
|
children: /* @__PURE__ */ h("div", { className: We.progress, children: Array.from(Array(o).keys()).map((a) => {
|
|
2787
|
-
const s = a *
|
|
2788
|
-
(s + 1) * n /
|
|
2787
|
+
const s = a * rr / o, l = Math.ceil(
|
|
2788
|
+
(s + 1) * n / rr
|
|
2789
2789
|
), u = t.includes(l), d = u ? a - (l - 1) * (o / n) : 0, c = [];
|
|
2790
2790
|
u && c.push(We.completed);
|
|
2791
2791
|
const p = u ? "translateX(158px)" : "translateX(150px)";
|
|
@@ -2825,7 +2825,7 @@ function al(e) {
|
|
|
2825
2825
|
)
|
|
2826
2826
|
] });
|
|
2827
2827
|
}
|
|
2828
|
-
function
|
|
2828
|
+
function ll() {
|
|
2829
2829
|
return { checkZoomLevel: (r, o) => {
|
|
2830
2830
|
const { box: i } = r, { width: a, height: s } = i, l = a * s, u = o ** 2, d = l / u;
|
|
2831
2831
|
if (d > 0.9)
|
|
@@ -2839,7 +2839,37 @@ function sl() {
|
|
|
2839
2839
|
throw new Error("Position head in frame");
|
|
2840
2840
|
} };
|
|
2841
2841
|
}
|
|
2842
|
-
|
|
2842
|
+
const cl = 1, ul = 9, Ht = {
|
|
2843
|
+
centerMin: 20,
|
|
2844
|
+
centerMax: 100,
|
|
2845
|
+
verticalMin: 230
|
|
2846
|
+
};
|
|
2847
|
+
function dl() {
|
|
2848
|
+
return {
|
|
2849
|
+
isReady: (t) => {
|
|
2850
|
+
const { keypoints: n, box: r } = t, o = n[cl], i = n[ul], a = n[6], s = { x: r.width * 0.5, y: r.height * 0.5 }, l = { y: o.y - r.yMin, x: o.x - r.xMin }, u = {
|
|
2851
|
+
y: a.y - r.yMin,
|
|
2852
|
+
x: a.x - r.xMin
|
|
2853
|
+
}, d = {
|
|
2854
|
+
y: i.y - r.yMin,
|
|
2855
|
+
x: i.x - r.xMin
|
|
2856
|
+
}, c = pe(
|
|
2857
|
+
u.x - d.x,
|
|
2858
|
+
u.y - d.y
|
|
2859
|
+
);
|
|
2860
|
+
let p = pe(
|
|
2861
|
+
s.x - l.x,
|
|
2862
|
+
s.y - l.y
|
|
2863
|
+
), f = pe(
|
|
2864
|
+
d.x - l.x,
|
|
2865
|
+
d.y - l.y
|
|
2866
|
+
);
|
|
2867
|
+
return p = p / c * 100, f = f / c * 100, p < Ht.centerMax && p > Ht.centerMin && // verticalEuclideanDist < THRESHOLD.verticalMax &&
|
|
2868
|
+
f > Ht.verticalMin;
|
|
2869
|
+
}
|
|
2870
|
+
};
|
|
2871
|
+
}
|
|
2872
|
+
function Cn(e = {}) {
|
|
2843
2873
|
const {
|
|
2844
2874
|
validations: t = ["zoom"],
|
|
2845
2875
|
frameSize: n,
|
|
@@ -2847,7 +2877,7 @@ function Tn(e = {}) {
|
|
|
2847
2877
|
},
|
|
2848
2878
|
onError: o = () => {
|
|
2849
2879
|
}
|
|
2850
|
-
} = e, { faceDetector: i, savePhoto: a } =
|
|
2880
|
+
} = e, { faceDetector: i, savePhoto: a } = Le(), s = w(!1), { isReady: l } = dl(), { checkFacialFeatures: u, checkZoomLevel: d, checkInFrame: c } = ll(), p = w(null), f = (y, m) => {
|
|
2851
2881
|
var _;
|
|
2852
2882
|
try {
|
|
2853
2883
|
if (y.length === 0)
|
|
@@ -2877,12 +2907,12 @@ function Tn(e = {}) {
|
|
|
2877
2907
|
throw new Error(
|
|
2878
2908
|
"Frame size is required to check if face is in frame"
|
|
2879
2909
|
);
|
|
2880
|
-
const
|
|
2910
|
+
const N = n + 200;
|
|
2881
2911
|
c(C, {
|
|
2882
|
-
x: (b.clientWidth -
|
|
2883
|
-
y: (b.clientHeight -
|
|
2884
|
-
width:
|
|
2885
|
-
height:
|
|
2912
|
+
x: (b.clientWidth - N) / 2,
|
|
2913
|
+
y: (b.clientHeight - N) / 2,
|
|
2914
|
+
width: N,
|
|
2915
|
+
height: N,
|
|
2886
2916
|
offsetX: (g.videoWidth - b.clientWidth) / 2,
|
|
2887
2917
|
offsetY: (g.videoHeight - b.clientHeight) / 2
|
|
2888
2918
|
});
|
|
@@ -2890,11 +2920,7 @@ function Tn(e = {}) {
|
|
|
2890
2920
|
default:
|
|
2891
2921
|
break;
|
|
2892
2922
|
}
|
|
2893
|
-
|
|
2894
|
-
throw s.current || (s.current = !0, setTimeout(() => {
|
|
2895
|
-
a(m), l.current = !0;
|
|
2896
|
-
}, 3e3)), new Error("Keep head still for a photograph");
|
|
2897
|
-
r(C);
|
|
2923
|
+
s.current || l(C) && (a(m), s.current = !0), r(C);
|
|
2898
2924
|
} catch (g) {
|
|
2899
2925
|
const { message: b } = g;
|
|
2900
2926
|
o(b);
|
|
@@ -2911,7 +2937,7 @@ function Tn(e = {}) {
|
|
|
2911
2937
|
const { videoWidth: g, videoHeight: b } = _;
|
|
2912
2938
|
if (g === 0 || b === 0)
|
|
2913
2939
|
return;
|
|
2914
|
-
const C =
|
|
2940
|
+
const C = Eo(
|
|
2915
2941
|
_,
|
|
2916
2942
|
g,
|
|
2917
2943
|
b
|
|
@@ -2920,30 +2946,30 @@ function Tn(e = {}) {
|
|
|
2920
2946
|
f($, _);
|
|
2921
2947
|
} };
|
|
2922
2948
|
}
|
|
2923
|
-
const
|
|
2924
|
-
root:
|
|
2925
|
-
container:
|
|
2926
|
-
progress:
|
|
2927
|
-
intro:
|
|
2928
|
-
content:
|
|
2929
|
-
branding:
|
|
2930
|
-
instructionsContainer:
|
|
2931
|
-
instructions:
|
|
2932
|
-
},
|
|
2933
|
-
root:
|
|
2934
|
-
spinner:
|
|
2935
|
-
},
|
|
2936
|
-
container:
|
|
2937
|
-
spin:
|
|
2938
|
-
md:
|
|
2939
|
-
lg:
|
|
2949
|
+
const fl = "_root_5hgaj_1", pl = "_container_5hgaj_4", hl = "_progress_5hgaj_7", _l = "_intro_5hgaj_12", vl = "_content_5hgaj_15", ml = "_branding_5hgaj_18", yl = "_instructionsContainer_5hgaj_22", gl = "_instructions_5hgaj_22", oe = {
|
|
2950
|
+
root: fl,
|
|
2951
|
+
container: pl,
|
|
2952
|
+
progress: hl,
|
|
2953
|
+
intro: _l,
|
|
2954
|
+
content: vl,
|
|
2955
|
+
branding: ml,
|
|
2956
|
+
instructionsContainer: yl,
|
|
2957
|
+
instructions: gl
|
|
2958
|
+
}, wl = "_root_h5elg_1", bl = "_spinner_h5elg_22", or = {
|
|
2959
|
+
root: wl,
|
|
2960
|
+
spinner: bl
|
|
2961
|
+
}, El = "_container_1vep2_1", $l = "_spin_1vep2_1", Tl = "_md_1vep2_7", Cl = "_lg_1vep2_10", ir = {
|
|
2962
|
+
container: El,
|
|
2963
|
+
spin: $l,
|
|
2964
|
+
md: Tl,
|
|
2965
|
+
lg: Cl
|
|
2940
2966
|
};
|
|
2941
|
-
function
|
|
2967
|
+
function xo(e) {
|
|
2942
2968
|
const { size: t = "md", className: n = "" } = e;
|
|
2943
2969
|
return /* @__PURE__ */ h(
|
|
2944
2970
|
"span",
|
|
2945
2971
|
{
|
|
2946
|
-
className: `${
|
|
2972
|
+
className: `${ir.container} ${ir[t]} ${n}`
|
|
2947
2973
|
}
|
|
2948
2974
|
);
|
|
2949
2975
|
}
|
|
@@ -2959,7 +2985,7 @@ function Ge(e) {
|
|
|
2959
2985
|
children: s,
|
|
2960
2986
|
hideButton: l = !1
|
|
2961
2987
|
} = e;
|
|
2962
|
-
return /* @__PURE__ */ h("div", { className:
|
|
2988
|
+
return /* @__PURE__ */ h("div", { className: or.root, children: [
|
|
2963
2989
|
/* @__PURE__ */ h(t, { size: "custom", className: "yvlw-h-20 yvlw-mx-auto yvlw-mb-12" }),
|
|
2964
2990
|
/* @__PURE__ */ h("h2", { children: r }),
|
|
2965
2991
|
/* @__PURE__ */ h("p", { className: "subtext", children: n }),
|
|
@@ -2971,7 +2997,7 @@ function Ge(e) {
|
|
|
2971
2997
|
disabled: a,
|
|
2972
2998
|
children: [
|
|
2973
2999
|
/* @__PURE__ */ h("span", { className: "yvlw-flex-1 yvlw-flex yvlw-items-center yvlw-space-x-1 yvlw-justify-center", children: o }),
|
|
2974
|
-
a && /* @__PURE__ */ h(
|
|
3000
|
+
a && /* @__PURE__ */ h(xo, { className: or.spinner })
|
|
2975
3001
|
]
|
|
2976
3002
|
}
|
|
2977
3003
|
) }),
|
|
@@ -2979,7 +3005,7 @@ function Ge(e) {
|
|
|
2979
3005
|
] });
|
|
2980
3006
|
}
|
|
2981
3007
|
const st = "yvlw-absolute yvlw-w-full yvlw-h-full", lt = "yvlw-transform yvlw-transition yvlw-ease-in yvlw-duration-300", ct = "yvlw-transform yvlw-transition yvlw-ease-in yvlw-duration-300";
|
|
2982
|
-
function
|
|
3008
|
+
function xn(e) {
|
|
2983
3009
|
const {
|
|
2984
3010
|
children: t,
|
|
2985
3011
|
instruction: n,
|
|
@@ -2990,7 +3016,7 @@ function Cn(e) {
|
|
|
2990
3016
|
},
|
|
2991
3017
|
onReset: s = () => {
|
|
2992
3018
|
}
|
|
2993
|
-
} = e, [l, u] =
|
|
3019
|
+
} = e, [l, u] = k(!1), { completedCount: d, tasks: c, nextTask: p } = Le(), f = M(() => To[r], [r]), v = M(
|
|
2994
3020
|
() => d * 100 / c.length,
|
|
2995
3021
|
[d, c.length]
|
|
2996
3022
|
);
|
|
@@ -3050,7 +3076,7 @@ function Cn(e) {
|
|
|
3050
3076
|
/* @__PURE__ */ h("div", { className: oe.branding, children: [
|
|
3051
3077
|
/* @__PURE__ */ h("span", { children: "Powered by" }),
|
|
3052
3078
|
" ",
|
|
3053
|
-
/* @__PURE__ */ h(
|
|
3079
|
+
/* @__PURE__ */ h(Ts, { size: "custom", className: "yvlw-h-3" })
|
|
3054
3080
|
] })
|
|
3055
3081
|
] })
|
|
3056
3082
|
]
|
|
@@ -3098,7 +3124,7 @@ function Cn(e) {
|
|
|
3098
3124
|
children: /* @__PURE__ */ h("div", { className: `${oe.intro}`, children: /* @__PURE__ */ h(
|
|
3099
3125
|
Ge,
|
|
3100
3126
|
{
|
|
3101
|
-
Icon:
|
|
3127
|
+
Icon: Es,
|
|
3102
3128
|
title: "Oops, task failed!",
|
|
3103
3129
|
description: "Could not confirm liveness on this task. Click on the button below to go again",
|
|
3104
3130
|
onActionClick: s,
|
|
@@ -3111,7 +3137,7 @@ function Cn(e) {
|
|
|
3111
3137
|
}
|
|
3112
3138
|
function kn(e = {}) {
|
|
3113
3139
|
const { timeout: t, onTimeout: n = () => {
|
|
3114
|
-
} } = e, [r, o] =
|
|
3140
|
+
} } = e, [r, o] = k(!1), i = w(null), a = A(() => {
|
|
3115
3141
|
t && i.current && clearTimeout(i.current);
|
|
3116
3142
|
}, []), s = A(() => {
|
|
3117
3143
|
t && (i.current = setTimeout(() => {
|
|
@@ -3120,31 +3146,31 @@ function kn(e = {}) {
|
|
|
3120
3146
|
}, []), l = A(() => {
|
|
3121
3147
|
o(!1), s();
|
|
3122
3148
|
}, []);
|
|
3123
|
-
return
|
|
3149
|
+
return P(() => a, []), {
|
|
3124
3150
|
timedOut: r,
|
|
3125
3151
|
reset: l,
|
|
3126
3152
|
start: s,
|
|
3127
3153
|
stop: a
|
|
3128
3154
|
};
|
|
3129
3155
|
}
|
|
3130
|
-
const
|
|
3131
|
-
function
|
|
3132
|
-
const { difficulty: t, timeout: n } = e, { saveStream: r } =
|
|
3156
|
+
const xl = 1, It = 8, ar = "Place face in frame";
|
|
3157
|
+
function kl(e) {
|
|
3158
|
+
const { difficulty: t, timeout: n } = e, { saveStream: r } = Le(), [o, i] = k([]), [a, s] = k(ar), [l, u] = k(!1), [d, c] = k(!1), p = w(/* @__PURE__ */ new Set()), f = w(!1), v = w(null), {
|
|
3133
3159
|
reset: y,
|
|
3134
3160
|
start: m,
|
|
3135
3161
|
stop: _,
|
|
3136
3162
|
timedOut: g
|
|
3137
3163
|
} = kn({ timeout: n }), b = () => {
|
|
3138
|
-
i([]), s(
|
|
3164
|
+
i([]), s(ar), u(!1), c(!1), p.current = /* @__PURE__ */ new Set(), f.current = !1, v.current = null, y();
|
|
3139
3165
|
}, C = (E) => {
|
|
3140
|
-
const
|
|
3141
|
-
p.current.has(
|
|
3166
|
+
const x = E * It, S = Math.ceil((x + 1) / Ps);
|
|
3167
|
+
p.current.has(S) || (p.current.add(S), i(Array.from(p.current))), p.current.size >= It && (_(), setTimeout(() => {
|
|
3142
3168
|
c(!0);
|
|
3143
3169
|
}, 1e3));
|
|
3144
|
-
}, $ = (E,
|
|
3145
|
-
let
|
|
3146
|
-
return
|
|
3147
|
-
},
|
|
3170
|
+
}, $ = (E, x) => {
|
|
3171
|
+
let D = Math.atan2(x, E) * (180 / Math.PI);
|
|
3172
|
+
return D < 0 && (D += 360), D;
|
|
3173
|
+
}, N = A(() => {
|
|
3148
3174
|
if (p.current.size === 0)
|
|
3149
3175
|
return 25;
|
|
3150
3176
|
switch (t) {
|
|
@@ -3156,22 +3182,22 @@ function $l(e) {
|
|
|
3156
3182
|
return 10;
|
|
3157
3183
|
}
|
|
3158
3184
|
}, []), O = (E) => {
|
|
3159
|
-
const { keypoints:
|
|
3160
|
-
return Math.abs(Q) <
|
|
3161
|
-
}, { detectFaces: R } =
|
|
3185
|
+
const { keypoints: x, box: S } = E, D = { x: S.width * 0.5, y: S.height * 0.5 }, Z = x[xl], re = { y: Z.y - S.yMin, x: Z.x - S.xMin }, Q = D.x - re.x, J = re.y - D.y, _e = N();
|
|
3186
|
+
return Math.abs(Q) < _e && Math.abs(J) < _e ? null : $(Q, J);
|
|
3187
|
+
}, { detectFaces: R } = Cn({
|
|
3162
3188
|
frameSize: 280,
|
|
3163
3189
|
validations: ["zoom", "in-frame"],
|
|
3164
3190
|
onFace: (E) => {
|
|
3165
3191
|
u(!0), s("Slowly move head around to complete circle");
|
|
3166
|
-
const
|
|
3167
|
-
|
|
3192
|
+
const x = O(E);
|
|
3193
|
+
x && C(x);
|
|
3168
3194
|
},
|
|
3169
3195
|
onError: (E) => {
|
|
3170
3196
|
s(E), i([]), p.current.clear(), v.current = null, f.current = !1;
|
|
3171
3197
|
}
|
|
3172
3198
|
});
|
|
3173
|
-
return /* @__PURE__ */ h(
|
|
3174
|
-
|
|
3199
|
+
return /* @__PURE__ */ h(I, { children: /* @__PURE__ */ h(
|
|
3200
|
+
xn,
|
|
3175
3201
|
{
|
|
3176
3202
|
instruction: {
|
|
3177
3203
|
title: a,
|
|
@@ -3182,49 +3208,49 @@ function $l(e) {
|
|
|
3182
3208
|
failed: g,
|
|
3183
3209
|
onReset: b,
|
|
3184
3210
|
onStart: m,
|
|
3185
|
-
children: /* @__PURE__ */ h(
|
|
3211
|
+
children: /* @__PURE__ */ h(Tn, { onStream: (E) => {
|
|
3186
3212
|
try {
|
|
3187
3213
|
if (!E.current || d)
|
|
3188
3214
|
return;
|
|
3189
|
-
const { videoWidth:
|
|
3190
|
-
R({ ref: E, frameSize:
|
|
3215
|
+
const { videoWidth: x } = E.current;
|
|
3216
|
+
R({ ref: E, frameSize: x });
|
|
3191
3217
|
} catch {
|
|
3192
3218
|
}
|
|
3193
3219
|
}, onRecord: r, children: /* @__PURE__ */ h(
|
|
3194
|
-
|
|
3220
|
+
sl,
|
|
3195
3221
|
{
|
|
3196
3222
|
faceDetected: l,
|
|
3197
|
-
sectionsCount:
|
|
3223
|
+
sectionsCount: It,
|
|
3198
3224
|
visitedSections: o
|
|
3199
3225
|
}
|
|
3200
3226
|
) })
|
|
3201
3227
|
}
|
|
3202
3228
|
) });
|
|
3203
3229
|
}
|
|
3204
|
-
const
|
|
3205
|
-
root:
|
|
3206
|
-
sticker:
|
|
3207
|
-
no:
|
|
3208
|
-
yes:
|
|
3230
|
+
const Fl = "_root_thujo_1", Sl = "_sticker_thujo_4", Ml = "_no_thujo_7", Nl = "_yes_thujo_12", Ot = {
|
|
3231
|
+
root: Fl,
|
|
3232
|
+
sticker: Sl,
|
|
3233
|
+
no: Ml,
|
|
3234
|
+
yes: Nl
|
|
3209
3235
|
};
|
|
3210
|
-
function
|
|
3236
|
+
function Pl(e) {
|
|
3211
3237
|
const { show: t, stickers: n } = e;
|
|
3212
|
-
return /* @__PURE__ */ h(
|
|
3238
|
+
return /* @__PURE__ */ h(I, { children: t && /* @__PURE__ */ h("div", { className: Ot.root, children: n.map((r) => /* @__PURE__ */ h(
|
|
3213
3239
|
"div",
|
|
3214
3240
|
{
|
|
3215
|
-
className: `${
|
|
3241
|
+
className: `${Ot.sticker} ${Ot[r]}`,
|
|
3216
3242
|
children: r.toUpperCase()
|
|
3217
3243
|
},
|
|
3218
3244
|
`sticker-${r}`
|
|
3219
3245
|
)) }) });
|
|
3220
3246
|
}
|
|
3221
|
-
const
|
|
3247
|
+
const Ll = {
|
|
3222
3248
|
question: "Are you alive?",
|
|
3223
3249
|
errorMessage: "You have to be alive to proceed though",
|
|
3224
3250
|
answer: !0
|
|
3225
|
-
},
|
|
3226
|
-
function
|
|
3227
|
-
const { difficulty: t, questions: n = [
|
|
3251
|
+
}, Al = "Wrong answer. Try again", sr = "Keep face in camera";
|
|
3252
|
+
function Dl(e) {
|
|
3253
|
+
const { difficulty: t, questions: n = [Ll], timeout: r } = e, [o, i] = k(sr), [a, s] = k(!1), [l, u] = k(!1), { saveStream: d } = Le(), c = w("inactive"), p = w(0), f = w(!1), v = w(null), y = w(null), m = () => {
|
|
3228
3254
|
v.current && clearTimeout(v.current), y.current && clearTimeout(y.current);
|
|
3229
3255
|
}, {
|
|
3230
3256
|
reset: _,
|
|
@@ -3235,12 +3261,12 @@ function Pl(e) {
|
|
|
3235
3261
|
timeout: r,
|
|
3236
3262
|
onTimeout: m
|
|
3237
3263
|
}), $ = () => {
|
|
3238
|
-
i(
|
|
3239
|
-
},
|
|
3240
|
-
const { keypoints:
|
|
3264
|
+
i(sr), s(!1), u(!1), c.current = "inactive", p.current = 0, f.current = !1, _();
|
|
3265
|
+
}, N = (S) => {
|
|
3266
|
+
const { keypoints: D } = S, Z = D[1], re = D[9], Q = Z.x - re.x, J = Z.y - re.y;
|
|
3241
3267
|
return 90 - Math.atan2(J, Q) * (180 / Math.PI);
|
|
3242
|
-
}, O = (
|
|
3243
|
-
c.current = "inactive", i(n[
|
|
3268
|
+
}, O = (S) => {
|
|
3269
|
+
c.current = "inactive", i(n[S].question), v.current = setTimeout(() => {
|
|
3244
3270
|
c.current = "active";
|
|
3245
3271
|
}, 2e3);
|
|
3246
3272
|
}, R = M(() => {
|
|
@@ -3252,43 +3278,43 @@ function Pl(e) {
|
|
|
3252
3278
|
default:
|
|
3253
3279
|
return 4;
|
|
3254
3280
|
}
|
|
3255
|
-
}, []), W = (
|
|
3281
|
+
}, []), W = (S) => {
|
|
3256
3282
|
try {
|
|
3257
|
-
if (c.current = "inactive", Math.abs(
|
|
3283
|
+
if (c.current = "inactive", Math.abs(S) < R)
|
|
3258
3284
|
throw new Error("Tilt head further to answer");
|
|
3259
|
-
const
|
|
3260
|
-
if (
|
|
3285
|
+
const D = S > 0, Z = n[p.current].answer;
|
|
3286
|
+
if (D === Z)
|
|
3261
3287
|
p.current += 1, p.current === n.length ? (u(!0), b()) : O(p.current);
|
|
3262
3288
|
else
|
|
3263
3289
|
throw new Error(
|
|
3264
|
-
n[p.current].errorMessage ||
|
|
3290
|
+
n[p.current].errorMessage || Al
|
|
3265
3291
|
);
|
|
3266
|
-
} catch (
|
|
3267
|
-
i(
|
|
3292
|
+
} catch (D) {
|
|
3293
|
+
i(D.message), y.current = setTimeout(() => {
|
|
3268
3294
|
O(p.current);
|
|
3269
3295
|
}, 2e3);
|
|
3270
3296
|
}
|
|
3271
|
-
}, { detectFaces: E } =
|
|
3272
|
-
onFace: (
|
|
3297
|
+
}, { detectFaces: E } = Cn({
|
|
3298
|
+
onFace: (S) => {
|
|
3273
3299
|
if (f.current || (s(!0), f.current = !0, O(p.current)), c.current === "inactive")
|
|
3274
3300
|
return;
|
|
3275
|
-
const
|
|
3276
|
-
W(
|
|
3301
|
+
const D = N(S);
|
|
3302
|
+
W(D);
|
|
3277
3303
|
},
|
|
3278
|
-
onError: (
|
|
3279
|
-
i(
|
|
3304
|
+
onError: (S) => {
|
|
3305
|
+
i(S);
|
|
3280
3306
|
}
|
|
3281
|
-
}),
|
|
3307
|
+
}), x = (S) => {
|
|
3282
3308
|
try {
|
|
3283
|
-
if (!
|
|
3309
|
+
if (!S.current || l)
|
|
3284
3310
|
return;
|
|
3285
|
-
const { videoWidth:
|
|
3286
|
-
E({ ref:
|
|
3311
|
+
const { videoWidth: D } = S.current;
|
|
3312
|
+
E({ ref: S, frameSize: D });
|
|
3287
3313
|
} catch {
|
|
3288
3314
|
}
|
|
3289
3315
|
};
|
|
3290
|
-
return
|
|
3291
|
-
|
|
3316
|
+
return P(() => m, []), /* @__PURE__ */ h(
|
|
3317
|
+
xn,
|
|
3292
3318
|
{
|
|
3293
3319
|
instruction: {
|
|
3294
3320
|
title: o,
|
|
@@ -3299,11 +3325,11 @@ function Pl(e) {
|
|
|
3299
3325
|
onReset: $,
|
|
3300
3326
|
onStart: g,
|
|
3301
3327
|
completed: l,
|
|
3302
|
-
children: /* @__PURE__ */ h(
|
|
3328
|
+
children: /* @__PURE__ */ h(Tn, { onStream: x, onRecord: d, children: /* @__PURE__ */ h(Pl, { show: a, stickers: ["yes", "no"] }) })
|
|
3303
3329
|
}
|
|
3304
3330
|
);
|
|
3305
3331
|
}
|
|
3306
|
-
function
|
|
3332
|
+
function Hl(e = {}) {
|
|
3307
3333
|
const { onChange: t = () => {
|
|
3308
3334
|
} } = e, n = !!window.DeviceOrientationEvent, r = (o) => {
|
|
3309
3335
|
t({
|
|
@@ -3312,13 +3338,13 @@ function Nl(e = {}) {
|
|
|
3312
3338
|
gamma: o.gamma
|
|
3313
3339
|
});
|
|
3314
3340
|
};
|
|
3315
|
-
return
|
|
3341
|
+
return P(() => (window.addEventListener("deviceorientation", r), () => {
|
|
3316
3342
|
window.removeEventListener("deviceorientation", r);
|
|
3317
3343
|
}), []), {
|
|
3318
3344
|
canUse: n
|
|
3319
3345
|
};
|
|
3320
3346
|
}
|
|
3321
|
-
function
|
|
3347
|
+
function Il(e) {
|
|
3322
3348
|
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 = M(() => {
|
|
3323
3349
|
switch (o) {
|
|
3324
3350
|
case "easy":
|
|
@@ -3338,7 +3364,7 @@ function Ll(e) {
|
|
|
3338
3364
|
d.current = !0, n("Great, hang on..."), setTimeout(() => {
|
|
3339
3365
|
r();
|
|
3340
3366
|
}, 500);
|
|
3341
|
-
}, { canUse: f } =
|
|
3367
|
+
}, { canUse: f } = Hl({
|
|
3342
3368
|
onChange: (m) => {
|
|
3343
3369
|
l.current = m;
|
|
3344
3370
|
}
|
|
@@ -3358,10 +3384,10 @@ function Ll(e) {
|
|
|
3358
3384
|
}
|
|
3359
3385
|
if (d.current)
|
|
3360
3386
|
return;
|
|
3361
|
-
const { keypoints: _ } = m, g =
|
|
3387
|
+
const { keypoints: _ } = m, g = pe(
|
|
3362
3388
|
_[6].x - _[8].x,
|
|
3363
3389
|
_[6].y - _[8].y
|
|
3364
|
-
), C =
|
|
3390
|
+
), C = pe(
|
|
3365
3391
|
_[2].x - _[1].x,
|
|
3366
3392
|
_[2].y - _[1].y
|
|
3367
3393
|
) / g * 10;
|
|
@@ -3378,7 +3404,7 @@ function Ll(e) {
|
|
|
3378
3404
|
i.current = null, a.current = !0, s.current = null, l.current = null, u.current = 0, d.current = !1;
|
|
3379
3405
|
} };
|
|
3380
3406
|
}
|
|
3381
|
-
function
|
|
3407
|
+
function Ol(e) {
|
|
3382
3408
|
const { onMessage: t, onComplete: n, difficulty: r } = e, o = w(!1), i = M(() => {
|
|
3383
3409
|
switch (r) {
|
|
3384
3410
|
case "easy":
|
|
@@ -3392,11 +3418,11 @@ function Al(e) {
|
|
|
3392
3418
|
return { evaluate: (l) => {
|
|
3393
3419
|
if (o.current)
|
|
3394
3420
|
return;
|
|
3395
|
-
const { keypoints: u } = l, d =
|
|
3421
|
+
const { keypoints: u } = l, d = pe(
|
|
3396
3422
|
u[6].x - u[8].x,
|
|
3397
3423
|
u[6].y - u[8].y
|
|
3398
3424
|
);
|
|
3399
|
-
if (
|
|
3425
|
+
if (pe(
|
|
3400
3426
|
u[14].x - u[13].x,
|
|
3401
3427
|
u[14].y - u[13].y
|
|
3402
3428
|
) / d * 100 > i) {
|
|
@@ -3410,7 +3436,7 @@ function Al(e) {
|
|
|
3410
3436
|
o.current = !1;
|
|
3411
3437
|
} };
|
|
3412
3438
|
}
|
|
3413
|
-
function
|
|
3439
|
+
function Rl(e) {
|
|
3414
3440
|
const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i = w(!0), a = w(!1), s = w(null), l = w(0), u = M(() => {
|
|
3415
3441
|
switch (o) {
|
|
3416
3442
|
case "easy":
|
|
@@ -3450,10 +3476,10 @@ function Il(e) {
|
|
|
3450
3476
|
return { evaluate: (y) => {
|
|
3451
3477
|
if (a.current)
|
|
3452
3478
|
return;
|
|
3453
|
-
const { keypoints: m } = y, _ =
|
|
3479
|
+
const { keypoints: m } = y, _ = pe(
|
|
3454
3480
|
m[6].x - m[8].x,
|
|
3455
3481
|
m[6].y - m[8].y
|
|
3456
|
-
), b =
|
|
3482
|
+
), b = pe(
|
|
3457
3483
|
m[145].x - m[159].x,
|
|
3458
3484
|
m[145].y - m[159].y
|
|
3459
3485
|
) / _ * 100;
|
|
@@ -3462,7 +3488,7 @@ function Il(e) {
|
|
|
3462
3488
|
i.current = !0, a.current = !1, s.current = null, l.current = 0;
|
|
3463
3489
|
} };
|
|
3464
3490
|
}
|
|
3465
|
-
function
|
|
3491
|
+
function Vl() {
|
|
3466
3492
|
return {
|
|
3467
3493
|
requestDeviceOrientationPermission: async () => {
|
|
3468
3494
|
if (!window.DeviceOrientationEvent)
|
|
@@ -3474,36 +3500,36 @@ function Hl() {
|
|
|
3474
3500
|
};
|
|
3475
3501
|
}
|
|
3476
3502
|
var ko = /* @__PURE__ */ ((e) => (e.nod = "nod", e.open_mouth = "open_mouth", e.blink = "blink", e))(ko || {});
|
|
3477
|
-
const
|
|
3478
|
-
function
|
|
3479
|
-
const { difficulty: t, maxBlinks: n = 5, maxNods: r = 5, timeout: o } = e, i = w(0), [a, s] =
|
|
3503
|
+
const lr = Fs(Object.keys(ko)), cr = "Keep face in camera";
|
|
3504
|
+
function Ul(e) {
|
|
3505
|
+
const { difficulty: t, maxBlinks: n = 5, maxNods: r = 5, timeout: o } = e, i = w(0), [a, s] = k(cr), [l, u] = k(!1), [d, c] = k(null), p = w(!1), { requestDeviceOrientationPermission: f } = Vl(), {
|
|
3480
3506
|
reset: v,
|
|
3481
3507
|
start: y,
|
|
3482
3508
|
stop: m,
|
|
3483
3509
|
timedOut: _
|
|
3484
3510
|
} = kn({ timeout: o }), g = () => {
|
|
3485
|
-
if (i.current ===
|
|
3511
|
+
if (i.current === lr.length - 1) {
|
|
3486
3512
|
u(!0), m();
|
|
3487
3513
|
return;
|
|
3488
3514
|
}
|
|
3489
3515
|
i.current += 1;
|
|
3490
|
-
}, b =
|
|
3516
|
+
}, b = Il({
|
|
3491
3517
|
total: Math.floor(Math.random() * r + 1),
|
|
3492
3518
|
difficulty: t,
|
|
3493
3519
|
onMessage: (E) => s(E),
|
|
3494
3520
|
onComplete: g
|
|
3495
|
-
}), C =
|
|
3521
|
+
}), C = Ol({
|
|
3496
3522
|
difficulty: t,
|
|
3497
3523
|
onMessage: (E) => s(E),
|
|
3498
3524
|
onComplete: g
|
|
3499
|
-
}), $ =
|
|
3525
|
+
}), $ = Rl({
|
|
3500
3526
|
total: Math.floor(Math.random() * n + 1),
|
|
3501
3527
|
difficulty: t,
|
|
3502
3528
|
onMessage: (E) => s(E),
|
|
3503
3529
|
onComplete: g
|
|
3504
|
-
}), { detectFaces:
|
|
3530
|
+
}), { detectFaces: N } = Cn({
|
|
3505
3531
|
onFace: (E) => {
|
|
3506
|
-
switch (p.current || (p.current = !0),
|
|
3532
|
+
switch (p.current || (p.current = !0), lr[i.current]) {
|
|
3507
3533
|
case "nod":
|
|
3508
3534
|
b.evaluate(E);
|
|
3509
3535
|
break;
|
|
@@ -3519,25 +3545,25 @@ function Dl(e) {
|
|
|
3519
3545
|
s(E);
|
|
3520
3546
|
}
|
|
3521
3547
|
}), O = () => {
|
|
3522
|
-
i.current = 0, s(
|
|
3548
|
+
i.current = 0, s(cr), u(!1), p.current = !1, $.reset(), b.reset(), C.reset(), v();
|
|
3523
3549
|
}, R = async (E) => {
|
|
3524
3550
|
try {
|
|
3525
3551
|
if (!E.current || l)
|
|
3526
3552
|
return;
|
|
3527
|
-
const { videoWidth:
|
|
3528
|
-
await
|
|
3553
|
+
const { videoWidth: x } = E.current;
|
|
3554
|
+
await N({ ref: E, frameSize: x, throttleInterval: 500 });
|
|
3529
3555
|
} catch {
|
|
3530
3556
|
}
|
|
3531
3557
|
}, W = async () => {
|
|
3532
3558
|
try {
|
|
3533
3559
|
await f();
|
|
3534
3560
|
} catch (E) {
|
|
3535
|
-
const
|
|
3536
|
-
s(
|
|
3561
|
+
const x = E;
|
|
3562
|
+
s(x.message), c(x);
|
|
3537
3563
|
}
|
|
3538
3564
|
};
|
|
3539
3565
|
return /* @__PURE__ */ h(
|
|
3540
|
-
|
|
3566
|
+
xn,
|
|
3541
3567
|
{
|
|
3542
3568
|
instruction: {
|
|
3543
3569
|
title: a,
|
|
@@ -3550,13 +3576,13 @@ function Dl(e) {
|
|
|
3550
3576
|
onStart: async () => {
|
|
3551
3577
|
await W(), y();
|
|
3552
3578
|
},
|
|
3553
|
-
children: d ? /* @__PURE__ */ h(
|
|
3579
|
+
children: d ? /* @__PURE__ */ h(I, {}) : /* @__PURE__ */ h(Tn, { onStream: R })
|
|
3554
3580
|
}
|
|
3555
3581
|
);
|
|
3556
3582
|
}
|
|
3557
|
-
function
|
|
3583
|
+
function Wl() {
|
|
3558
3584
|
var C;
|
|
3559
|
-
const { toggleColorScheme: e, getColorScheme: t, setColorScheme: n } =
|
|
3585
|
+
const { toggleColorScheme: e, getColorScheme: t, setColorScheme: n } = Xs(), {
|
|
3560
3586
|
user: r,
|
|
3561
3587
|
tasks: o,
|
|
3562
3588
|
currentTaskIndex: i,
|
|
@@ -3564,8 +3590,8 @@ function Ol() {
|
|
|
3564
3590
|
onComplete: s,
|
|
3565
3591
|
faceDetector: l,
|
|
3566
3592
|
presentation: u
|
|
3567
|
-
} =
|
|
3568
|
-
|
|
3593
|
+
} = Le(), [d, c] = k(!1), [p, f] = k(!1), [v, y] = k(null), [m, _] = k(!1);
|
|
3594
|
+
P(() => {
|
|
3569
3595
|
const $ = t();
|
|
3570
3596
|
n($);
|
|
3571
3597
|
}, []);
|
|
@@ -3578,28 +3604,28 @@ function Ol() {
|
|
|
3578
3604
|
c(!1);
|
|
3579
3605
|
}
|
|
3580
3606
|
}, b = A(
|
|
3581
|
-
($) => $ === i ?
|
|
3607
|
+
($) => $ === i ? K.active : i > $ ? K.completed : "subtext",
|
|
3582
3608
|
[i]
|
|
3583
3609
|
);
|
|
3584
|
-
return /* @__PURE__ */ h("div", { className:
|
|
3585
|
-
/* @__PURE__ */ h("div", { className: `${
|
|
3586
|
-
/* @__PURE__ */ h("div", { className:
|
|
3587
|
-
/* @__PURE__ */ h(
|
|
3610
|
+
return /* @__PURE__ */ h("div", { className: K.root, children: /* @__PURE__ */ h("div", { className: K.container, children: [
|
|
3611
|
+
/* @__PURE__ */ h("div", { className: `${K.lhs} divider`, children: [
|
|
3612
|
+
/* @__PURE__ */ h("div", { className: K.info, children: [
|
|
3613
|
+
/* @__PURE__ */ h(Zs, {}),
|
|
3588
3614
|
/* @__PURE__ */ h("div", { children: /* @__PURE__ */ h("p", { className: "yvlw-text-xs yvlw-m-0 yvlw-p-0 subtext", children: "You have been given this set of tasks to complete. They are pretty easy to do but we will be guiding you every step of the way." }) }),
|
|
3589
3615
|
/* @__PURE__ */ h("ol", { children: [
|
|
3590
|
-
o.map(($,
|
|
3591
|
-
/* @__PURE__ */ h("li", { className: a ?
|
|
3616
|
+
o.map(($, N) => /* @__PURE__ */ h("li", { className: b(N), children: To[$.id].name }, `task-${N}`)),
|
|
3617
|
+
/* @__PURE__ */ h("li", { className: a ? K.active : "", children: "Complete! 🎉" })
|
|
3592
3618
|
] })
|
|
3593
3619
|
] }),
|
|
3594
3620
|
/* @__PURE__ */ h("footer", { className: "divider", children: [
|
|
3595
3621
|
/* @__PURE__ */ h("div", { children: "Powered by Youverify" }),
|
|
3596
3622
|
/* @__PURE__ */ h("div", { onClick: () => e(), role: "button", children: [
|
|
3597
|
-
/* @__PURE__ */ h("div", { className: "dark:yvlw-hidden", children: /* @__PURE__ */ h(
|
|
3598
|
-
/* @__PURE__ */ h("div", { className: "yvlw-hidden dark:yvlw-block", children: /* @__PURE__ */ h(
|
|
3623
|
+
/* @__PURE__ */ h("div", { className: "dark:yvlw-hidden", children: /* @__PURE__ */ h(bo, {}) }),
|
|
3624
|
+
/* @__PURE__ */ h("div", { className: "yvlw-hidden dark:yvlw-block", children: /* @__PURE__ */ h(vs, {}) })
|
|
3599
3625
|
] })
|
|
3600
3626
|
] })
|
|
3601
3627
|
] }),
|
|
3602
|
-
/* @__PURE__ */ h("div", { className:
|
|
3628
|
+
/* @__PURE__ */ h("div", { className: K.main, children: /* @__PURE__ */ h("div", { className: K.content, children: [
|
|
3603
3629
|
/* @__PURE__ */ h(
|
|
3604
3630
|
ie,
|
|
3605
3631
|
{
|
|
@@ -3611,38 +3637,38 @@ function Ol() {
|
|
|
3611
3637
|
enterFrom: "yvlw-translate-y-full yvlw-opacity-0",
|
|
3612
3638
|
enterTo: "yvlw-translate-y-0 yvlw-opacity-100",
|
|
3613
3639
|
className: "yvlw-h-full yvlw-w-full",
|
|
3614
|
-
children: /* @__PURE__ */ h("div", { className:
|
|
3640
|
+
children: /* @__PURE__ */ h("div", { className: K.completed, children: l ? /* @__PURE__ */ h(
|
|
3615
3641
|
Ge,
|
|
3616
3642
|
{
|
|
3617
|
-
Icon:
|
|
3643
|
+
Icon: ws,
|
|
3618
3644
|
title: "Liveness Check",
|
|
3619
3645
|
description: "To ensure the security of your identity, we conduct a liveness check to verify that you are a real person actively engaging with the process.",
|
|
3620
3646
|
actionText: "Start Liveness Test",
|
|
3621
3647
|
onActionClick: () => f(!0)
|
|
3622
3648
|
}
|
|
3623
|
-
) : /* @__PURE__ */ h(
|
|
3649
|
+
) : /* @__PURE__ */ h(xo, { size: "lg" }) })
|
|
3624
3650
|
}
|
|
3625
3651
|
),
|
|
3626
|
-
o.map(($,
|
|
3652
|
+
o.map(($, N) => {
|
|
3627
3653
|
let O;
|
|
3628
3654
|
switch ($.id) {
|
|
3629
3655
|
case "complete-the-circle":
|
|
3630
|
-
O = /* @__PURE__ */ h(
|
|
3656
|
+
O = /* @__PURE__ */ h(kl, { ...$ });
|
|
3631
3657
|
break;
|
|
3632
3658
|
case "yes-or-no":
|
|
3633
|
-
O = /* @__PURE__ */ h(
|
|
3659
|
+
O = /* @__PURE__ */ h(Dl, { ...$ });
|
|
3634
3660
|
break;
|
|
3635
3661
|
case "motions":
|
|
3636
|
-
O = /* @__PURE__ */ h(
|
|
3662
|
+
O = /* @__PURE__ */ h(Ul, { ...$ });
|
|
3637
3663
|
break;
|
|
3638
3664
|
default:
|
|
3639
|
-
O = /* @__PURE__ */ h(
|
|
3665
|
+
O = /* @__PURE__ */ h(I, {});
|
|
3640
3666
|
break;
|
|
3641
3667
|
}
|
|
3642
3668
|
return /* @__PURE__ */ h(
|
|
3643
3669
|
ie,
|
|
3644
3670
|
{
|
|
3645
|
-
show: p && !a && i ===
|
|
3671
|
+
show: p && !a && i === N,
|
|
3646
3672
|
appear: !0,
|
|
3647
3673
|
as: "div",
|
|
3648
3674
|
leave: "yvlw-transform yvlw-transition yvlw-duration-300",
|
|
@@ -3653,7 +3679,7 @@ function Ol() {
|
|
|
3653
3679
|
className: "yvlw-h-full",
|
|
3654
3680
|
children: O
|
|
3655
3681
|
},
|
|
3656
|
-
`task-${
|
|
3682
|
+
`task-${N}`
|
|
3657
3683
|
);
|
|
3658
3684
|
}),
|
|
3659
3685
|
/* @__PURE__ */ h(
|
|
@@ -3667,10 +3693,10 @@ function Ol() {
|
|
|
3667
3693
|
enterFrom: "yvlw-translate-y-full yvlw-opacity-0",
|
|
3668
3694
|
enterTo: "yvlw-translate-y-0 yvlw-opacity-100",
|
|
3669
3695
|
className: "yvlw-h-full yvlw-w-full",
|
|
3670
|
-
children: /* @__PURE__ */ h("div", { className:
|
|
3696
|
+
children: /* @__PURE__ */ h("div", { className: K.completed, children: /* @__PURE__ */ h(
|
|
3671
3697
|
Ge,
|
|
3672
3698
|
{
|
|
3673
|
-
Icon:
|
|
3699
|
+
Icon: bs,
|
|
3674
3700
|
title: m ? "All Set!" : "Completed",
|
|
3675
3701
|
description: m ? "You can now close or exit the window" : "Your Identity verification has been completed successfully. Thanks for your patience",
|
|
3676
3702
|
actionText: "Finish",
|
|
@@ -3683,8 +3709,8 @@ function Ol() {
|
|
|
3683
3709
|
}
|
|
3684
3710
|
)
|
|
3685
3711
|
] }) }),
|
|
3686
|
-
/* @__PURE__ */ h("div", { className: `${
|
|
3687
|
-
/* @__PURE__ */ h("div", { children: /* @__PURE__ */ h("div", { className:
|
|
3712
|
+
/* @__PURE__ */ h("div", { className: `${K.rhs} divider`, children: r && /* @__PURE__ */ h("div", { className: `${K.profile} divider`, children: [
|
|
3713
|
+
/* @__PURE__ */ h("div", { children: /* @__PURE__ */ h("div", { className: K.avatar, children: [
|
|
3688
3714
|
r.firstName.charAt(0).toUpperCase(),
|
|
3689
3715
|
(C = r.lastName) == null ? void 0 : C.charAt(0).toUpperCase()
|
|
3690
3716
|
] }) }),
|
|
@@ -3699,7 +3725,7 @@ function Ol() {
|
|
|
3699
3725
|
] }) })
|
|
3700
3726
|
] }) });
|
|
3701
3727
|
}
|
|
3702
|
-
function
|
|
3728
|
+
function jl(e) {
|
|
3703
3729
|
const {
|
|
3704
3730
|
tasks: t,
|
|
3705
3731
|
namespace: n,
|
|
@@ -3713,11 +3739,11 @@ function Rl(e) {
|
|
|
3713
3739
|
publicKey: u,
|
|
3714
3740
|
metadata: d,
|
|
3715
3741
|
sandboxEnvironment: c
|
|
3716
|
-
} = e, [p, f] =
|
|
3742
|
+
} = e, [p, f] = k(e.show), v = () => {
|
|
3717
3743
|
f(!1), i();
|
|
3718
3744
|
};
|
|
3719
3745
|
return /* @__PURE__ */ h(
|
|
3720
|
-
|
|
3746
|
+
Ds,
|
|
3721
3747
|
{
|
|
3722
3748
|
namespace: n,
|
|
3723
3749
|
publicKey: u,
|
|
@@ -3731,27 +3757,27 @@ function Rl(e) {
|
|
|
3731
3757
|
presentation: l,
|
|
3732
3758
|
sandboxEnvironment: c,
|
|
3733
3759
|
children: /* @__PURE__ */ h(
|
|
3734
|
-
|
|
3760
|
+
ls,
|
|
3735
3761
|
{
|
|
3736
3762
|
id: n,
|
|
3737
3763
|
open: l === "page" ? !0 : p,
|
|
3738
3764
|
onClose: v,
|
|
3739
3765
|
transition: !0,
|
|
3740
|
-
className: `${
|
|
3766
|
+
className: `${_s.root} ${at.root} ${at[l]}`,
|
|
3741
3767
|
style: {
|
|
3742
|
-
"--branding-color": (o == null ? void 0 : o.color) ??
|
|
3768
|
+
"--branding-color": (o == null ? void 0 : o.color) ?? Ls
|
|
3743
3769
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3744
3770
|
},
|
|
3745
3771
|
children: [
|
|
3746
|
-
l === "modal" && /* @__PURE__ */ h("div", { onClick: v, role: "button", className: at.close, children: /* @__PURE__ */ h(
|
|
3747
|
-
/* @__PURE__ */ h(
|
|
3772
|
+
l === "modal" && /* @__PURE__ */ h("div", { onClick: v, role: "button", className: at.close, children: /* @__PURE__ */ h($s, { className: "yvlw-text-white" }) }),
|
|
3773
|
+
/* @__PURE__ */ h(wo, { className: `${at.container}`, children: /* @__PURE__ */ h(Wl, {}) })
|
|
3748
3774
|
]
|
|
3749
3775
|
}
|
|
3750
3776
|
)
|
|
3751
3777
|
}
|
|
3752
3778
|
);
|
|
3753
3779
|
}
|
|
3754
|
-
class
|
|
3780
|
+
class ql {
|
|
3755
3781
|
constructor(t) {
|
|
3756
3782
|
this.tasks = [], this.container = null, this.namespace = "liveness-web-sdk";
|
|
3757
3783
|
const { presentation: n = "modal" } = t;
|
|
@@ -3766,9 +3792,9 @@ class Wl {
|
|
|
3766
3792
|
throw new Error("First Name is required when User object is supplied");
|
|
3767
3793
|
}
|
|
3768
3794
|
async start(t) {
|
|
3769
|
-
t && (this.tasks = t), this.validateOptions(), this.container = document.createElement("div"), document.body.appendChild(this.container),
|
|
3795
|
+
t && (this.tasks = t), this.validateOptions(), this.container = document.createElement("div"), document.body.appendChild(this.container), De(
|
|
3770
3796
|
/* @__PURE__ */ h(
|
|
3771
|
-
|
|
3797
|
+
jl,
|
|
3772
3798
|
{
|
|
3773
3799
|
namespace: this.namespace,
|
|
3774
3800
|
publicKey: this.props.publicKey,
|
|
@@ -3796,5 +3822,5 @@ class Wl {
|
|
|
3796
3822
|
}
|
|
3797
3823
|
}
|
|
3798
3824
|
export {
|
|
3799
|
-
|
|
3825
|
+
ql as default
|
|
3800
3826
|
};
|