@exam_guard/core 10.1.0 → 10.1.2

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/proctor.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see proctor.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Proctor",[],t):"object"==typeof exports?exports.Proctor=t():e.Proctor=t()}(this,()=>(()=>{var e={8723(e,t,n){"use strict";var r=n(1601),o=n.n(r),i=n(6314),a=n.n(i)()(o());a.push([e.id,":root {\n --toastify-color-light: #fff;\n --toastify-color-dark: #121212;\n --toastify-color-info: #3498db;\n --toastify-color-success: #07bc0c;\n --toastify-color-warning: #f1c40f;\n --toastify-color-error: hsl(6, 78%, 57%);\n --toastify-color-transparent: rgba(255, 255, 255, 0.7);\n\n --toastify-icon-color-info: var(--toastify-color-info);\n --toastify-icon-color-success: var(--toastify-color-success);\n --toastify-icon-color-warning: var(--toastify-color-warning);\n --toastify-icon-color-error: var(--toastify-color-error);\n\n --toastify-container-width: fit-content;\n --toastify-toast-width: 320px;\n --toastify-toast-offset: 16px;\n --toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));\n --toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));\n --toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));\n --toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));\n --toastify-toast-background: #fff;\n --toastify-toast-padding: 14px;\n --toastify-toast-min-height: 64px;\n --toastify-toast-max-height: 800px;\n --toastify-toast-bd-radius: 6px;\n --toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);\n --toastify-font-family: sans-serif;\n --toastify-z-index: 9999;\n --toastify-text-color-light: #757575;\n --toastify-text-color-dark: #fff;\n\n /* Used only for colored theme */\n --toastify-text-color-info: #fff;\n --toastify-text-color-success: #fff;\n --toastify-text-color-warning: #fff;\n --toastify-text-color-error: #fff;\n\n --toastify-spinner-color: #616161;\n --toastify-spinner-color-empty-area: #e0e0e0;\n --toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);\n --toastify-color-progress-dark: #bb86fc;\n --toastify-color-progress-info: var(--toastify-color-info);\n --toastify-color-progress-success: var(--toastify-color-success);\n --toastify-color-progress-warning: var(--toastify-color-warning);\n --toastify-color-progress-error: var(--toastify-color-error);\n /* used to control the opacity of the progress trail */\n --toastify-color-progress-bgo: 0.2;\n}\n\n.Toastify__toast-container {\n z-index: var(--toastify-z-index);\n -webkit-transform: translate3d(0, 0, var(--toastify-z-index));\n position: fixed;\n width: var(--toastify-container-width);\n box-sizing: border-box;\n color: #fff;\n display: flex;\n flex-direction: column;\n}\n\n.Toastify__toast-container--top-left {\n top: var(--toastify-toast-top);\n left: var(--toastify-toast-left);\n}\n.Toastify__toast-container--top-center {\n top: var(--toastify-toast-top);\n left: 50%;\n transform: translateX(-50%);\n align-items: center;\n}\n.Toastify__toast-container--top-right {\n top: var(--toastify-toast-top);\n right: var(--toastify-toast-right);\n align-items: end;\n}\n.Toastify__toast-container--bottom-left {\n bottom: var(--toastify-toast-bottom);\n left: var(--toastify-toast-left);\n}\n.Toastify__toast-container--bottom-center {\n bottom: var(--toastify-toast-bottom);\n left: 50%;\n transform: translateX(-50%);\n align-items: center;\n}\n.Toastify__toast-container--bottom-right {\n bottom: var(--toastify-toast-bottom);\n right: var(--toastify-toast-right);\n align-items: end;\n}\n\n.Toastify__toast {\n --y: 0px;\n position: relative;\n touch-action: none;\n width: var(--toastify-toast-width);\n min-height: var(--toastify-toast-min-height);\n box-sizing: border-box;\n margin-bottom: 1rem;\n padding: var(--toastify-toast-padding);\n border-radius: var(--toastify-toast-bd-radius);\n box-shadow: var(--toastify-toast-shadow);\n max-height: var(--toastify-toast-max-height);\n font-family: var(--toastify-font-family);\n /* webkit only issue #791 */\n z-index: 0;\n /* inner swag */\n display: flex;\n flex: 1 auto;\n align-items: center;\n word-break: break-word;\n}\n\n@media only screen and (max-width: 480px) {\n .Toastify__toast-container {\n width: 100vw;\n left: env(safe-area-inset-left);\n margin: 0;\n }\n .Toastify__toast-container--top-left,\n .Toastify__toast-container--top-center,\n .Toastify__toast-container--top-right {\n top: env(safe-area-inset-top);\n transform: translateX(0);\n }\n .Toastify__toast-container--bottom-left,\n .Toastify__toast-container--bottom-center,\n .Toastify__toast-container--bottom-right {\n bottom: env(safe-area-inset-bottom);\n transform: translateX(0);\n }\n .Toastify__toast-container--rtl {\n right: env(safe-area-inset-right);\n left: initial;\n }\n .Toastify__toast {\n --toastify-toast-width: 100%;\n margin-bottom: 0;\n border-radius: 0;\n }\n}\n\n.Toastify__toast-container[data-stacked='true'] {\n width: var(--toastify-toast-width);\n}\n\n@media only screen and (max-width: 480px) {\n .Toastify__toast-container[data-stacked='true'] {\n width: 100vw;\n }\n}\n\n.Toastify__toast--stacked {\n position: absolute;\n width: 100%;\n transform: translate3d(0, var(--y), 0) scale(var(--s));\n transition: transform 0.3s;\n}\n\n.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,\n.Toastify__toast--stacked[data-collapsed] .Toastify__close-button {\n transition: opacity 0.1s;\n}\n\n.Toastify__toast--stacked[data-collapsed='false'] {\n overflow: visible;\n}\n\n.Toastify__toast--stacked[data-collapsed='true']:not(:last-child) > * {\n opacity: 0;\n}\n\n.Toastify__toast--stacked:after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n height: calc(var(--g) * 1px);\n bottom: 100%;\n}\n\n.Toastify__toast--stacked[data-pos='top'] {\n top: 0;\n}\n\n.Toastify__toast--stacked[data-pos='bot'] {\n bottom: 0;\n}\n\n.Toastify__toast--stacked[data-pos='bot'].Toastify__toast--stacked:before {\n transform-origin: top;\n}\n\n.Toastify__toast--stacked[data-pos='top'].Toastify__toast--stacked:before {\n transform-origin: bottom;\n}\n\n.Toastify__toast--stacked:before {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n transform: scaleY(3);\n z-index: -1;\n}\n\n.Toastify__toast--rtl {\n direction: rtl;\n}\n\n.Toastify__toast--close-on-click {\n cursor: pointer;\n}\n\n.Toastify__toast-icon {\n margin-inline-end: 10px;\n width: 22px;\n flex-shrink: 0;\n display: flex;\n}\n\n.Toastify--animate {\n animation-fill-mode: both;\n animation-duration: 0.5s;\n}\n\n.Toastify--animate-icon {\n animation-fill-mode: both;\n animation-duration: 0.3s;\n}\n\n.Toastify__toast-theme--dark {\n background: var(--toastify-color-dark);\n color: var(--toastify-text-color-dark);\n}\n\n.Toastify__toast-theme--light {\n background: var(--toastify-color-light);\n color: var(--toastify-text-color-light);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--default {\n background: var(--toastify-color-light);\n color: var(--toastify-text-color-light);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--info {\n color: var(--toastify-text-color-info);\n background: var(--toastify-color-info);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--success {\n color: var(--toastify-text-color-success);\n background: var(--toastify-color-success);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--warning {\n color: var(--toastify-text-color-warning);\n background: var(--toastify-color-warning);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--error {\n color: var(--toastify-text-color-error);\n background: var(--toastify-color-error);\n}\n\n.Toastify__progress-bar-theme--light {\n background: var(--toastify-color-progress-light);\n}\n\n.Toastify__progress-bar-theme--dark {\n background: var(--toastify-color-progress-dark);\n}\n\n.Toastify__progress-bar--info {\n background: var(--toastify-color-progress-info);\n}\n\n.Toastify__progress-bar--success {\n background: var(--toastify-color-progress-success);\n}\n\n.Toastify__progress-bar--warning {\n background: var(--toastify-color-progress-warning);\n}\n\n.Toastify__progress-bar--error {\n background: var(--toastify-color-progress-error);\n}\n\n.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,\n.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,\n.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,\n.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error {\n background: var(--toastify-color-transparent);\n}\n\n.Toastify__close-button {\n color: #fff;\n position: absolute;\n top: 6px;\n right: 6px;\n background: transparent;\n outline: none;\n border: none;\n padding: 0;\n cursor: pointer;\n opacity: 0.7;\n transition: 0.3s ease;\n z-index: 1;\n}\n\n.Toastify__toast--rtl .Toastify__close-button {\n left: 6px;\n right: unset;\n}\n\n.Toastify__close-button--light {\n color: #000;\n opacity: 0.3;\n}\n\n.Toastify__close-button > svg {\n fill: currentColor;\n height: 16px;\n width: 14px;\n}\n\n.Toastify__close-button:hover,\n.Toastify__close-button:focus {\n opacity: 1;\n}\n\n@keyframes Toastify__trackProgress {\n 0% {\n transform: scaleX(1);\n }\n 100% {\n transform: scaleX(0);\n }\n}\n\n.Toastify__progress-bar {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 1;\n opacity: 0.7;\n transform-origin: left;\n}\n\n.Toastify__progress-bar--animated {\n animation: Toastify__trackProgress linear 1 forwards;\n}\n\n.Toastify__progress-bar--controlled {\n transition: transform 0.2s;\n}\n\n.Toastify__progress-bar--rtl {\n right: 0;\n left: initial;\n transform-origin: right;\n border-bottom-left-radius: initial;\n}\n\n.Toastify__progress-bar--wrp {\n position: absolute;\n overflow: hidden;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 5px;\n border-bottom-left-radius: var(--toastify-toast-bd-radius);\n border-bottom-right-radius: var(--toastify-toast-bd-radius);\n}\n\n.Toastify__progress-bar--wrp[data-hidden='true'] {\n opacity: 0;\n}\n\n.Toastify__progress-bar--bg {\n opacity: var(--toastify-color-progress-bgo);\n width: 100%;\n height: 100%;\n}\n\n.Toastify__spinner {\n width: 20px;\n height: 20px;\n box-sizing: border-box;\n border: 2px solid;\n border-radius: 100%;\n border-color: var(--toastify-spinner-color-empty-area);\n border-right-color: var(--toastify-spinner-color);\n animation: Toastify__spin 0.65s linear infinite;\n}\n\n@keyframes Toastify__bounceInRight {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n from {\n opacity: 0;\n transform: translate3d(3000px, 0, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(-25px, 0, 0);\n }\n 75% {\n transform: translate3d(10px, 0, 0);\n }\n 90% {\n transform: translate3d(-5px, 0, 0);\n }\n to {\n transform: none;\n }\n}\n\n@keyframes Toastify__bounceOutRight {\n 20% {\n opacity: 1;\n transform: translate3d(-20px, var(--y), 0);\n }\n to {\n opacity: 0;\n transform: translate3d(2000px, var(--y), 0);\n }\n}\n\n@keyframes Toastify__bounceInLeft {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n 0% {\n opacity: 0;\n transform: translate3d(-3000px, 0, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(25px, 0, 0);\n }\n 75% {\n transform: translate3d(-10px, 0, 0);\n }\n 90% {\n transform: translate3d(5px, 0, 0);\n }\n to {\n transform: none;\n }\n}\n\n@keyframes Toastify__bounceOutLeft {\n 20% {\n opacity: 1;\n transform: translate3d(20px, var(--y), 0);\n }\n to {\n opacity: 0;\n transform: translate3d(-2000px, var(--y), 0);\n }\n}\n\n@keyframes Toastify__bounceInUp {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n from {\n opacity: 0;\n transform: translate3d(0, 3000px, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(0, -20px, 0);\n }\n 75% {\n transform: translate3d(0, 10px, 0);\n }\n 90% {\n transform: translate3d(0, -5px, 0);\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n}\n\n@keyframes Toastify__bounceOutUp {\n 20% {\n transform: translate3d(0, calc(var(--y) - 10px), 0);\n }\n 40%,\n 45% {\n opacity: 1;\n transform: translate3d(0, calc(var(--y) + 20px), 0);\n }\n to {\n opacity: 0;\n transform: translate3d(0, -2000px, 0);\n }\n}\n\n@keyframes Toastify__bounceInDown {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n 0% {\n opacity: 0;\n transform: translate3d(0, -3000px, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(0, 25px, 0);\n }\n 75% {\n transform: translate3d(0, -10px, 0);\n }\n 90% {\n transform: translate3d(0, 5px, 0);\n }\n to {\n transform: none;\n }\n}\n\n@keyframes Toastify__bounceOutDown {\n 20% {\n transform: translate3d(0, calc(var(--y) - 10px), 0);\n }\n 40%,\n 45% {\n opacity: 1;\n transform: translate3d(0, calc(var(--y) + 20px), 0);\n }\n to {\n opacity: 0;\n transform: translate3d(0, 2000px, 0);\n }\n}\n\n.Toastify__bounce-enter--top-left,\n.Toastify__bounce-enter--bottom-left {\n animation-name: Toastify__bounceInLeft;\n}\n\n.Toastify__bounce-enter--top-right,\n.Toastify__bounce-enter--bottom-right {\n animation-name: Toastify__bounceInRight;\n}\n\n.Toastify__bounce-enter--top-center {\n animation-name: Toastify__bounceInDown;\n}\n\n.Toastify__bounce-enter--bottom-center {\n animation-name: Toastify__bounceInUp;\n}\n\n.Toastify__bounce-exit--top-left,\n.Toastify__bounce-exit--bottom-left {\n animation-name: Toastify__bounceOutLeft;\n}\n\n.Toastify__bounce-exit--top-right,\n.Toastify__bounce-exit--bottom-right {\n animation-name: Toastify__bounceOutRight;\n}\n\n.Toastify__bounce-exit--top-center {\n animation-name: Toastify__bounceOutUp;\n}\n\n.Toastify__bounce-exit--bottom-center {\n animation-name: Toastify__bounceOutDown;\n}\n\n@keyframes Toastify__zoomIn {\n from {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n 50% {\n opacity: 1;\n }\n}\n\n@keyframes Toastify__zoomOut {\n from {\n opacity: 1;\n }\n 50% {\n opacity: 0;\n transform: translate3d(0, var(--y), 0) scale3d(0.3, 0.3, 0.3);\n }\n to {\n opacity: 0;\n }\n}\n\n.Toastify__zoom-enter {\n animation-name: Toastify__zoomIn;\n}\n\n.Toastify__zoom-exit {\n animation-name: Toastify__zoomOut;\n}\n\n@keyframes Toastify__flipIn {\n from {\n transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n animation-timing-function: ease-in;\n opacity: 0;\n }\n 40% {\n transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n animation-timing-function: ease-in;\n }\n 60% {\n transform: perspective(400px) rotate3d(1, 0, 0, 10deg);\n opacity: 1;\n }\n 80% {\n transform: perspective(400px) rotate3d(1, 0, 0, -5deg);\n }\n to {\n transform: perspective(400px);\n }\n}\n\n@keyframes Toastify__flipOut {\n from {\n transform: translate3d(0, var(--y), 0) perspective(400px);\n }\n 30% {\n transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, -20deg);\n opacity: 1;\n }\n to {\n transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, 90deg);\n opacity: 0;\n }\n}\n\n.Toastify__flip-enter {\n animation-name: Toastify__flipIn;\n}\n\n.Toastify__flip-exit {\n animation-name: Toastify__flipOut;\n}\n\n@keyframes Toastify__slideInRight {\n from {\n transform: translate3d(110%, 0, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideInLeft {\n from {\n transform: translate3d(-110%, 0, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideInUp {\n from {\n transform: translate3d(0, 110%, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideInDown {\n from {\n transform: translate3d(0, -110%, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideOutRight {\n from {\n transform: translate3d(0, var(--y), 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(110%, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideOutLeft {\n from {\n transform: translate3d(0, var(--y), 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(-110%, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideOutDown {\n from {\n transform: translate3d(0, var(--y), 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(0, 500px, 0);\n }\n}\n\n@keyframes Toastify__slideOutUp {\n from {\n transform: translate3d(0, var(--y), 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(0, -500px, 0);\n }\n}\n\n.Toastify__slide-enter--top-left,\n.Toastify__slide-enter--bottom-left {\n animation-name: Toastify__slideInLeft;\n}\n\n.Toastify__slide-enter--top-right,\n.Toastify__slide-enter--bottom-right {\n animation-name: Toastify__slideInRight;\n}\n\n.Toastify__slide-enter--top-center {\n animation-name: Toastify__slideInDown;\n}\n\n.Toastify__slide-enter--bottom-center {\n animation-name: Toastify__slideInUp;\n}\n\n.Toastify__slide-exit--top-left,\n.Toastify__slide-exit--bottom-left {\n animation-name: Toastify__slideOutLeft;\n animation-timing-function: ease-in;\n animation-duration: 0.3s;\n}\n\n.Toastify__slide-exit--top-right,\n.Toastify__slide-exit--bottom-right {\n animation-name: Toastify__slideOutRight;\n animation-timing-function: ease-in;\n animation-duration: 0.3s;\n}\n\n.Toastify__slide-exit--top-center {\n animation-name: Toastify__slideOutUp;\n animation-timing-function: ease-in;\n animation-duration: 0.3s;\n}\n\n.Toastify__slide-exit--bottom-center {\n animation-name: Toastify__slideOutDown;\n animation-timing-function: ease-in;\n animation-duration: 0.3s;\n}\n\n@keyframes Toastify__spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}\n",""]);const l=a;n.d(t,["A",0,l])},8321(e,t,n){"use strict";var r=n(1601),o=n.n(r),i=n(6314),a=n.n(i)()(o());a.push([e.id,'.proctor-library-root *, .proctor-library-root ::before, .proctor-library-root ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n .proctor-library-root ::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n /*\n! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com\n*/\n /*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n .proctor-library-root *,\n.proctor-library-root ::before,\n.proctor-library-root ::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n .proctor-library-root ::before,\n.proctor-library-root ::after {\n --tw-content: \'\';\n}\n /*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n .proctor-library-root html,\n.proctor-library-root :host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n /*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n .proctor-library-root body {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n /*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n .proctor-library-root hr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n /*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n .proctor-library-root abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n /*\nRemove the default font size and weight for headings.\n*/\n .proctor-library-root h1,\n.proctor-library-root h2,\n.proctor-library-root h3,\n.proctor-library-root h4,\n.proctor-library-root h5,\n.proctor-library-root h6 {\n font-size: inherit;\n font-weight: inherit;\n}\n /*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n .proctor-library-root a {\n color: inherit;\n text-decoration: inherit;\n}\n /*\nAdd the correct font weight in Edge and Safari.\n*/\n .proctor-library-root b,\n.proctor-library-root strong {\n font-weight: bolder;\n}\n /*\n1. Use the user\'s configured `mono` font-family by default.\n2. Use the user\'s configured `mono` font-feature-settings by default.\n3. Use the user\'s configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n .proctor-library-root code,\n.proctor-library-root kbd,\n.proctor-library-root samp,\n.proctor-library-root pre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n /*\nAdd the correct font size in all browsers.\n*/\n .proctor-library-root small {\n font-size: 80%;\n}\n /*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n .proctor-library-root sub,\n.proctor-library-root sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n .proctor-library-root sub {\n bottom: -0.25em;\n}\n .proctor-library-root sup {\n top: -0.5em;\n}\n /*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n .proctor-library-root table {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n /*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n .proctor-library-root button,\n.proctor-library-root input,\n.proctor-library-root optgroup,\n.proctor-library-root select,\n.proctor-library-root textarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n /*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n .proctor-library-root button,\n.proctor-library-root select {\n text-transform: none;\n}\n /*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n .proctor-library-root button,\n.proctor-library-root input:where([type=\'button\']),\n.proctor-library-root input:where([type=\'reset\']),\n.proctor-library-root input:where([type=\'submit\']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n /*\nUse the modern Firefox focus style for all focusable elements.\n*/\n .proctor-library-root :-moz-focusring {\n outline: auto;\n}\n /*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n .proctor-library-root :-moz-ui-invalid {\n box-shadow: none;\n}\n /*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n .proctor-library-root progress {\n vertical-align: baseline;\n}\n /*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n .proctor-library-root ::-webkit-inner-spin-button,\n.proctor-library-root ::-webkit-outer-spin-button {\n height: auto;\n}\n /*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n .proctor-library-root [type=\'search\'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n /*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n .proctor-library-root ::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n /*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n .proctor-library-root ::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n /*\nAdd the correct display in Chrome and Safari.\n*/\n .proctor-library-root summary {\n display: list-item;\n}\n /*\nRemoves the default spacing and border for appropriate elements.\n*/\n .proctor-library-root blockquote,\n.proctor-library-root dl,\n.proctor-library-root dd,\n.proctor-library-root h1,\n.proctor-library-root h2,\n.proctor-library-root h3,\n.proctor-library-root h4,\n.proctor-library-root h5,\n.proctor-library-root h6,\n.proctor-library-root hr,\n.proctor-library-root figure,\n.proctor-library-root p,\n.proctor-library-root pre {\n margin: 0;\n}\n .proctor-library-root fieldset {\n margin: 0;\n padding: 0;\n}\n .proctor-library-root legend {\n padding: 0;\n}\n .proctor-library-root ol,\n.proctor-library-root ul,\n.proctor-library-root menu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n /*\nReset default styling for dialogs.\n*/\n .proctor-library-root dialog {\n padding: 0;\n}\n /*\nPrevent resizing textareas horizontally by default.\n*/\n .proctor-library-root textarea {\n resize: vertical;\n}\n /*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/\n .proctor-library-root input::-moz-placeholder, .proctor-library-root textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n .proctor-library-root input::placeholder,\n.proctor-library-root textarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n /*\nSet the default cursor for buttons.\n*/\n .proctor-library-root button,\n.proctor-library-root [role="button"] {\n cursor: pointer;\n}\n /*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/\n .proctor-library-root :disabled {\n cursor: default;\n}\n /*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n .proctor-library-root img,\n.proctor-library-root svg,\n.proctor-library-root video,\n.proctor-library-root canvas,\n.proctor-library-root audio,\n.proctor-library-root iframe,\n.proctor-library-root embed,\n.proctor-library-root object {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n /*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n .proctor-library-root img,\n.proctor-library-root video {\n max-width: 100%;\n height: auto;\n}\n /* Make elements with the HTML hidden attribute stay hidden by default */\n .proctor-library-root [hidden]:where(:not([hidden="until-found"])) {\n display: none;\n}\n .proctor-library-root .\\!container {\n width: 100% !important;\n}\n .proctor-library-root .container {\n width: 100%;\n}\n @media (min-width: 640px) {\n .proctor-library-root .\\!container {\n max-width: 640px !important;\n }\n}\n @media (min-width: 640px) {\n .proctor-library-root .container {\n max-width: 640px;\n }\n}\n @media (min-width: 768px) {\n .proctor-library-root .\\!container {\n max-width: 768px !important;\n }\n}\n @media (min-width: 768px) {\n .proctor-library-root .container {\n max-width: 768px;\n }\n}\n @media (min-width: 1024px) {\n .proctor-library-root .\\!container {\n max-width: 1024px !important;\n }\n}\n @media (min-width: 1024px) {\n .proctor-library-root .container {\n max-width: 1024px;\n }\n}\n @media (min-width: 1280px) {\n .proctor-library-root .\\!container {\n max-width: 1280px !important;\n }\n}\n @media (min-width: 1280px) {\n .proctor-library-root .container {\n max-width: 1280px;\n }\n}\n @media (min-width: 1536px) {\n .proctor-library-root .\\!container {\n max-width: 1536px !important;\n }\n}\n @media (min-width: 1536px) {\n .proctor-library-root .container {\n max-width: 1536px;\n }\n}\n .proctor-library-root #proctor-library-root-id .pointer-events-none {\n pointer-events: none;\n}\n .proctor-library-root #proctor-library-root-id .visible {\n visibility: visible;\n}\n .proctor-library-root #proctor-library-root-id .static {\n position: static;\n}\n .proctor-library-root #proctor-library-root-id .fixed {\n position: fixed;\n}\n .proctor-library-root #proctor-library-root-id .absolute {\n position: absolute;\n}\n .proctor-library-root #proctor-library-root-id .relative {\n position: relative;\n}\n .proctor-library-root #proctor-library-root-id .inset-0 {\n inset: 0px;\n}\n .proctor-library-root #proctor-library-root-id .-bottom-6 {\n bottom: -1.5rem;\n}\n .proctor-library-root #proctor-library-root-id .bottom-3 {\n bottom: 0.75rem;\n}\n .proctor-library-root #proctor-library-root-id .bottom-4 {\n bottom: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .left-0 {\n left: 0px;\n}\n .proctor-library-root #proctor-library-root-id .left-1\\/2 {\n left: 50%;\n}\n .proctor-library-root #proctor-library-root-id .left-4 {\n left: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .left-5 {\n left: 1.25rem;\n}\n .proctor-library-root #proctor-library-root-id .right-1\\/2 {\n right: 50%;\n}\n .proctor-library-root #proctor-library-root-id .right-3 {\n right: 0.75rem;\n}\n .proctor-library-root #proctor-library-root-id .right-4 {\n right: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .right-5 {\n right: 1.25rem;\n}\n .proctor-library-root #proctor-library-root-id .top-0 {\n top: 0px;\n}\n .proctor-library-root #proctor-library-root-id .top-1\\/2 {\n top: 50%;\n}\n .proctor-library-root #proctor-library-root-id .top-4 {\n top: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .top-5 {\n top: 1.25rem;\n}\n .proctor-library-root #proctor-library-root-id .top-\\[47\\%\\] {\n top: 47%;\n}\n .proctor-library-root #proctor-library-root-id .z-10 {\n z-index: 10;\n}\n .proctor-library-root #proctor-library-root-id .z-40 {\n z-index: 40;\n}\n .proctor-library-root #proctor-library-root-id .z-50 {\n z-index: 50;\n}\n .proctor-library-root #proctor-library-root-id .z-\\[100\\] {\n z-index: 100;\n}\n .proctor-library-root #proctor-library-root-id .mx-8 {\n margin-left: 2rem;\n margin-right: 2rem;\n}\n .proctor-library-root #proctor-library-root-id .mx-auto {\n margin-left: auto;\n margin-right: auto;\n}\n .proctor-library-root #proctor-library-root-id .my-16 {\n margin-top: 4rem;\n margin-bottom: 4rem;\n}\n .proctor-library-root #proctor-library-root-id .my-4 {\n margin-top: 1rem;\n margin-bottom: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .my-9 {\n margin-top: 2.25rem;\n margin-bottom: 2.25rem;\n}\n .proctor-library-root #proctor-library-root-id .mb-1 {\n margin-bottom: 0.25rem;\n}\n .proctor-library-root #proctor-library-root-id .mb-10 {\n margin-bottom: 2.5rem;\n}\n .proctor-library-root #proctor-library-root-id .mb-2 {\n margin-bottom: 0.5rem;\n}\n .proctor-library-root #proctor-library-root-id .mb-4 {\n margin-bottom: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .mb-6 {\n margin-bottom: 1.5rem;\n}\n .proctor-library-root #proctor-library-root-id .mb-8 {\n margin-bottom: 2rem;\n}\n .proctor-library-root #proctor-library-root-id .ml-2 {\n margin-left: 0.5rem;\n}\n .proctor-library-root #proctor-library-root-id .ml-4 {\n margin-left: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .ml-6 {\n margin-left: 1.5rem;\n}\n .proctor-library-root #proctor-library-root-id .mr-2 {\n margin-right: 0.5rem;\n}\n .proctor-library-root #proctor-library-root-id .mr-3 {\n margin-right: 0.75rem;\n}\n .proctor-library-root #proctor-library-root-id .mr-4 {\n margin-right: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .mr-6 {\n margin-right: 1.5rem;\n}\n .proctor-library-root #proctor-library-root-id .mt-0\\.5 {\n margin-top: 0.125rem;\n}\n .proctor-library-root #proctor-library-root-id .mt-1 {\n margin-top: 0.25rem;\n}\n .proctor-library-root #proctor-library-root-id .mt-10 {\n margin-top: 2.5rem;\n}\n .proctor-library-root #proctor-library-root-id .mt-12 {\n margin-top: 3rem;\n}\n .proctor-library-root #proctor-library-root-id .mt-16 {\n margin-top: 4rem;\n}\n .proctor-library-root #proctor-library-root-id .mt-2 {\n margin-top: 0.5rem;\n}\n .proctor-library-root #proctor-library-root-id .mt-20 {\n margin-top: 5rem;\n}\n .proctor-library-root #proctor-library-root-id .mt-3 {\n margin-top: 0.75rem;\n}\n .proctor-library-root #proctor-library-root-id .mt-4 {\n margin-top: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .mt-5 {\n margin-top: 1.25rem;\n}\n .proctor-library-root #proctor-library-root-id .mt-6 {\n margin-top: 1.5rem;\n}\n .proctor-library-root #proctor-library-root-id .mt-8 {\n margin-top: 2rem;\n}\n .proctor-library-root #proctor-library-root-id .block {\n display: block;\n}\n .proctor-library-root #proctor-library-root-id .inline-block {\n display: inline-block;\n}\n .proctor-library-root #proctor-library-root-id .flex {\n display: flex;\n}\n .proctor-library-root #proctor-library-root-id .inline-flex {\n display: inline-flex;\n}\n .proctor-library-root #proctor-library-root-id .grid {\n display: grid;\n}\n .proctor-library-root #proctor-library-root-id .hidden {\n display: none;\n}\n .proctor-library-root #proctor-library-root-id .aspect-\\[16\\/9\\] {\n aspect-ratio: 16/9;\n}\n .proctor-library-root #proctor-library-root-id .aspect-\\[3\\/4\\] {\n aspect-ratio: 3/4;\n}\n .proctor-library-root #proctor-library-root-id .aspect-\\[4\\/3\\] {\n aspect-ratio: 4/3;\n}\n .proctor-library-root #proctor-library-root-id .aspect-video {\n aspect-ratio: 16 / 9;\n}\n .proctor-library-root #proctor-library-root-id .h-10 {\n height: 2.5rem;\n}\n .proctor-library-root #proctor-library-root-id .h-11 {\n height: 2.75rem;\n}\n .proctor-library-root #proctor-library-root-id .h-12 {\n height: 3rem;\n}\n .proctor-library-root #proctor-library-root-id .h-16 {\n height: 4rem;\n}\n .proctor-library-root #proctor-library-root-id .h-2 {\n height: 0.5rem;\n}\n .proctor-library-root #proctor-library-root-id .h-20 {\n height: 5rem;\n}\n .proctor-library-root #proctor-library-root-id .h-24 {\n height: 6rem;\n}\n .proctor-library-root #proctor-library-root-id .h-28 {\n height: 7rem;\n}\n .proctor-library-root #proctor-library-root-id .h-32 {\n height: 8rem;\n}\n .proctor-library-root #proctor-library-root-id .h-4 {\n height: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .h-5 {\n height: 1.25rem;\n}\n .proctor-library-root #proctor-library-root-id .h-6 {\n height: 1.5rem;\n}\n .proctor-library-root #proctor-library-root-id .h-7 {\n height: 1.75rem;\n}\n .proctor-library-root #proctor-library-root-id .h-8 {\n height: 2rem;\n}\n .proctor-library-root #proctor-library-root-id .h-9 {\n height: 2.25rem;\n}\n .proctor-library-root #proctor-library-root-id .h-\\[1\\.6rem\\] {\n height: 1.6rem;\n}\n .proctor-library-root #proctor-library-root-id .h-\\[1\\.8rem\\] {\n height: 1.8rem;\n}\n .proctor-library-root #proctor-library-root-id .h-\\[100\\%\\] {\n height: 100%;\n}\n .proctor-library-root #proctor-library-root-id .h-\\[2\\.2rem\\] {\n height: 2.2rem;\n}\n .proctor-library-root #proctor-library-root-id .h-\\[2rem\\] {\n height: 2rem;\n}\n .proctor-library-root #proctor-library-root-id .h-\\[60rem\\] {\n height: 60rem;\n}\n .proctor-library-root #proctor-library-root-id .h-\\[640px\\] {\n height: 640px;\n}\n .proctor-library-root #proctor-library-root-id .h-\\[7\\.2rem\\] {\n height: 7.2rem;\n}\n .proctor-library-root #proctor-library-root-id .h-\\[78\\%\\] {\n height: 78%;\n}\n .proctor-library-root #proctor-library-root-id .h-\\[80\\%\\] {\n height: 80%;\n}\n .proctor-library-root #proctor-library-root-id .h-\\[calc\\(100vh-22px\\)\\] {\n height: calc(100vh - 22px);\n}\n .proctor-library-root #proctor-library-root-id .h-auto {\n height: auto;\n}\n .proctor-library-root #proctor-library-root-id .h-full {\n height: 100%;\n}\n .proctor-library-root #proctor-library-root-id .max-h-60 {\n max-height: 15rem;\n}\n .proctor-library-root #proctor-library-root-id .max-h-\\[300px\\] {\n max-height: 300px;\n}\n .proctor-library-root #proctor-library-root-id .max-h-\\[95\\%\\] {\n max-height: 95%;\n}\n .proctor-library-root #proctor-library-root-id .min-h-\\[15rem\\] {\n min-height: 15rem;\n}\n .proctor-library-root #proctor-library-root-id .min-h-\\[4\\.6rem\\] {\n min-height: 4.6rem;\n}\n .proctor-library-root #proctor-library-root-id .min-h-\\[7\\.2rem\\] {\n min-height: 7.2rem;\n}\n .proctor-library-root #proctor-library-root-id .w-1\\.5 {\n width: 0.375rem;\n}\n .proctor-library-root #proctor-library-root-id .w-1\\/2 {\n width: 50%;\n}\n .proctor-library-root #proctor-library-root-id .w-1\\/3 {\n width: 33.333333%;\n}\n .proctor-library-root #proctor-library-root-id .w-10 {\n width: 2.5rem;\n}\n .proctor-library-root #proctor-library-root-id .w-11\\/12 {\n width: 91.666667%;\n}\n .proctor-library-root #proctor-library-root-id .w-12 {\n width: 3rem;\n}\n .proctor-library-root #proctor-library-root-id .w-16 {\n width: 4rem;\n}\n .proctor-library-root #proctor-library-root-id .w-2 {\n width: 0.5rem;\n}\n .proctor-library-root #proctor-library-root-id .w-20 {\n width: 5rem;\n}\n .proctor-library-root #proctor-library-root-id .w-24 {\n width: 6rem;\n}\n .proctor-library-root #proctor-library-root-id .w-3\\/4 {\n width: 75%;\n}\n .proctor-library-root #proctor-library-root-id .w-32 {\n width: 8rem;\n}\n .proctor-library-root #proctor-library-root-id .w-4 {\n width: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .w-4\\/5 {\n width: 80%;\n}\n .proctor-library-root #proctor-library-root-id .w-5 {\n width: 1.25rem;\n}\n .proctor-library-root #proctor-library-root-id .w-6 {\n width: 1.5rem;\n}\n .proctor-library-root #proctor-library-root-id .w-7 {\n width: 1.75rem;\n}\n .proctor-library-root #proctor-library-root-id .w-8 {\n width: 2rem;\n}\n .proctor-library-root #proctor-library-root-id .w-9\\/12 {\n width: 75%;\n}\n .proctor-library-root #proctor-library-root-id .w-\\[1\\.6rem\\] {\n width: 1.6rem;\n}\n .proctor-library-root #proctor-library-root-id .w-\\[1\\.8rem\\] {\n width: 1.8rem;\n}\n .proctor-library-root #proctor-library-root-id .w-\\[100\\%\\] {\n width: 100%;\n}\n .proctor-library-root #proctor-library-root-id .w-\\[2\\.2rem\\] {\n width: 2.2rem;\n}\n .proctor-library-root #proctor-library-root-id .w-\\[2rem\\] {\n width: 2rem;\n}\n .proctor-library-root #proctor-library-root-id .w-\\[7\\.2rem\\] {\n width: 7.2rem;\n}\n .proctor-library-root #proctor-library-root-id .w-full {\n width: 100%;\n}\n .proctor-library-root #proctor-library-root-id .max-w-2xl {\n max-width: 42rem;\n}\n .proctor-library-root #proctor-library-root-id .max-w-3xl {\n max-width: 48rem;\n}\n .proctor-library-root #proctor-library-root-id .max-w-5xl {\n max-width: 64rem;\n}\n .proctor-library-root #proctor-library-root-id .max-w-\\[26rem\\] {\n max-width: 26rem;\n}\n .proctor-library-root #proctor-library-root-id .max-w-\\[34ch\\] {\n max-width: 34ch;\n}\n .proctor-library-root #proctor-library-root-id .max-w-\\[600px\\] {\n max-width: 600px;\n}\n .proctor-library-root #proctor-library-root-id .max-w-\\[700px\\] {\n max-width: 700px;\n}\n .proctor-library-root #proctor-library-root-id .max-w-\\[88\\%\\] {\n max-width: 88%;\n}\n .proctor-library-root #proctor-library-root-id .max-w-\\[90\\%\\] {\n max-width: 90%;\n}\n .proctor-library-root #proctor-library-root-id .max-w-full {\n max-width: 100%;\n}\n .proctor-library-root #proctor-library-root-id .max-w-none {\n max-width: none;\n}\n .proctor-library-root #proctor-library-root-id .max-w-xl {\n max-width: 36rem;\n}\n .proctor-library-root #proctor-library-root-id .flex-1 {\n flex: 1 1 0%;\n}\n .proctor-library-root #proctor-library-root-id .flex-shrink-0 {\n flex-shrink: 0;\n}\n .proctor-library-root #proctor-library-root-id .shrink-0 {\n flex-shrink: 0;\n}\n .proctor-library-root #proctor-library-root-id .grow {\n flex-grow: 1;\n}\n .proctor-library-root #proctor-library-root-id .-translate-x-1\\/2 {\n --tw-translate-x: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n .proctor-library-root #proctor-library-root-id .-translate-y-1\\/2 {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n .proctor-library-root #proctor-library-root-id .translate-x-1\\/2 {\n --tw-translate-x: 50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n .proctor-library-root #proctor-library-root-id .translate-y-\\[-50\\%\\] {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n .proctor-library-root #proctor-library-root-id .rotate-180 {\n --tw-rotate: 180deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n .proctor-library-root #proctor-library-root-id .transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n @keyframes spin {\n to {\n transform: rotate(360deg);\n }\n}\n .proctor-library-root #proctor-library-root-id .animate-\\[spin_1s_linear_infinite\\] {\n animation: spin 1s linear infinite;\n}\n @keyframes pulse {\n 50% {\n opacity: .5;\n }\n}\n .proctor-library-root #proctor-library-root-id .animate-pulse {\n animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;\n}\n @keyframes spin {\n to {\n transform: rotate(360deg);\n }\n}\n .proctor-library-root #proctor-library-root-id .animate-spin {\n animation: spin 1s linear infinite;\n}\n .proctor-library-root #proctor-library-root-id .cursor-pointer {\n cursor: pointer;\n}\n .proctor-library-root #proctor-library-root-id .resize {\n resize: both;\n}\n .proctor-library-root #proctor-library-root-id .list-disc {\n list-style-type: disc;\n}\n .proctor-library-root #proctor-library-root-id .appearance-none {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n .proctor-library-root #proctor-library-root-id .grid-cols-2 {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n}\n .proctor-library-root #proctor-library-root-id .grid-cols-\\[34rem_1fr\\] {\n grid-template-columns: 34rem 1fr;\n}\n .proctor-library-root #proctor-library-root-id .flex-row {\n flex-direction: row;\n}\n .proctor-library-root #proctor-library-root-id .flex-col {\n flex-direction: column;\n}\n .proctor-library-root #proctor-library-root-id .flex-wrap {\n flex-wrap: wrap;\n}\n .proctor-library-root #proctor-library-root-id .items-start {\n align-items: flex-start;\n}\n .proctor-library-root #proctor-library-root-id .items-center {\n align-items: center;\n}\n .proctor-library-root #proctor-library-root-id .items-stretch {\n align-items: stretch;\n}\n .proctor-library-root #proctor-library-root-id .justify-end {\n justify-content: flex-end;\n}\n .proctor-library-root #proctor-library-root-id .justify-center {\n justify-content: center;\n}\n .proctor-library-root #proctor-library-root-id .justify-between {\n justify-content: space-between;\n}\n .proctor-library-root #proctor-library-root-id .gap-1 {\n gap: 0.25rem;\n}\n .proctor-library-root #proctor-library-root-id .gap-1\\.5 {\n gap: 0.375rem;\n}\n .proctor-library-root #proctor-library-root-id .gap-12 {\n gap: 3rem;\n}\n .proctor-library-root #proctor-library-root-id .gap-2 {\n gap: 0.5rem;\n}\n .proctor-library-root #proctor-library-root-id .gap-3 {\n gap: 0.75rem;\n}\n .proctor-library-root #proctor-library-root-id .gap-4 {\n gap: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .gap-5 {\n gap: 1.25rem;\n}\n .proctor-library-root #proctor-library-root-id .gap-6 {\n gap: 1.5rem;\n}\n .proctor-library-root #proctor-library-root-id .gap-8 {\n gap: 2rem;\n}\n .proctor-library-root #proctor-library-root-id :is(.space-x-2 > :not([hidden]) ~ :not([hidden])) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));\n}\n .proctor-library-root #proctor-library-root-id :is(.space-y-1 > :not([hidden]) ~ :not([hidden])) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));\n}\n .proctor-library-root #proctor-library-root-id :is(.space-y-1\\.5 > :not([hidden]) ~ :not([hidden])) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));\n}\n .proctor-library-root #proctor-library-root-id :is(.space-y-2 > :not([hidden]) ~ :not([hidden])) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));\n}\n .proctor-library-root #proctor-library-root-id :is(.space-y-4 > :not([hidden]) ~ :not([hidden])) {\n --tw-space-y-reverse: 0;\n margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(1rem * var(--tw-space-y-reverse));\n}\n .proctor-library-root #proctor-library-root-id :is(.space-y-6 > :not([hidden]) ~ :not([hidden])) {\n --tw-space-y-reverse: 0;\n margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));\n}\n .proctor-library-root #proctor-library-root-id :is(.divide-y > :not([hidden]) ~ :not([hidden])) {\n --tw-divide-y-reverse: 0;\n border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));\n border-bottom-width: calc(1px * var(--tw-divide-y-reverse));\n}\n .proctor-library-root #proctor-library-root-id :is(.divide-gray-200 > :not([hidden]) ~ :not([hidden])) {\n --tw-divide-opacity: 1;\n border-color: rgb(229 231 235 / var(--tw-divide-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .overflow-auto {\n overflow: auto;\n}\n .proctor-library-root #proctor-library-root-id .overflow-hidden {\n overflow: hidden;\n}\n .proctor-library-root #proctor-library-root-id .overflow-y-auto {\n overflow-y: auto;\n}\n .proctor-library-root #proctor-library-root-id .rounded {\n border-radius: 0.25rem;\n}\n .proctor-library-root #proctor-library-root-id .rounded-2xl {\n border-radius: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .rounded-\\[50\\%\\] {\n border-radius: 50%;\n}\n .proctor-library-root #proctor-library-root-id .rounded-full {\n border-radius: 9999px;\n}\n .proctor-library-root #proctor-library-root-id .rounded-lg {\n border-radius: var(--radius);\n}\n .proctor-library-root #proctor-library-root-id .rounded-md {\n border-radius: calc(var(--radius) - 2px);\n}\n .proctor-library-root #proctor-library-root-id .rounded-sm {\n border-radius: calc(var(--radius) - 4px);\n}\n .proctor-library-root #proctor-library-root-id .rounded-xl {\n border-radius: 0.75rem;\n}\n .proctor-library-root #proctor-library-root-id .rounded-b-lg {\n border-bottom-right-radius: var(--radius);\n border-bottom-left-radius: var(--radius);\n}\n .proctor-library-root #proctor-library-root-id .rounded-t-2xl {\n border-top-left-radius: 1rem;\n border-top-right-radius: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .rounded-t-lg {\n border-top-left-radius: var(--radius);\n border-top-right-radius: var(--radius);\n}\n .proctor-library-root #proctor-library-root-id .border {\n border-width: 1px;\n}\n .proctor-library-root #proctor-library-root-id .border-4 {\n border-width: 4px;\n}\n .proctor-library-root #proctor-library-root-id .border-b {\n border-bottom-width: 1px;\n}\n .proctor-library-root #proctor-library-root-id .border-dashed {\n border-style: dashed;\n}\n .proctor-library-root #proctor-library-root-id .border-\\[\\#0080FF\\] {\n --tw-border-opacity: 1;\n border-color: rgb(0 128 255 / var(--tw-border-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .border-base-200 {\n --tw-border-opacity: 1;\n border-color: rgb(97 115 142 / var(--tw-border-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .border-blue-500 {\n --tw-border-opacity: 1;\n border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .border-gray-200 {\n --tw-border-opacity: 1;\n border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .border-gray-300 {\n --tw-border-opacity: 1;\n border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .border-gray-400 {\n --tw-border-opacity: 1;\n border-color: rgb(156 163 175 / var(--tw-border-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .border-green-600 {\n --tw-border-opacity: 1;\n border-color: rgb(22 163 74 / var(--tw-border-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .border-primary {\n border-color: hsl(var(--primary));\n}\n .proctor-library-root #proctor-library-root-id .border-red-500 {\n --tw-border-opacity: 1;\n border-color: rgb(239 68 68 / var(--tw-border-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .border-scaler-500 {\n --tw-border-opacity: 1;\n border-color: rgb(0 128 255 / var(--tw-border-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .border-transparent {\n border-color: transparent;\n}\n .proctor-library-root #proctor-library-root-id .border-t-\\[\\#0080FF\\] {\n --tw-border-opacity: 1;\n border-top-color: rgb(0 128 255 / var(--tw-border-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-\\[\\#141A24\\] {\n --tw-bg-opacity: 1;\n background-color: rgb(20 26 36 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-\\[\\#E6F2FF\\] {\n --tw-bg-opacity: 1;\n background-color: rgb(230 242 255 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-\\[\\#FFEBEF\\] {\n --tw-bg-opacity: 1;\n background-color: rgb(255 235 239 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-\\[rgba\\(11\\2c 27\\2c 58\\2c 0\\.82\\)\\] {\n background-color: rgba(11,27,58,0.82);\n}\n .proctor-library-root #proctor-library-root-id .bg-base-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(239 246 252 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-black\\/50 {\n background-color: rgb(0 0 0 / 0.5);\n}\n .proctor-library-root #proctor-library-root-id .bg-card {\n background-color: hsl(var(--card));\n}\n .proctor-library-root #proctor-library-root-id .bg-destructive {\n background-color: hsl(var(--destructive));\n}\n .proctor-library-root #proctor-library-root-id .bg-gray-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-gray-200 {\n --tw-bg-opacity: 1;\n background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-gray-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-green-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(240 253 244 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-green-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(34 197 94 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-muted {\n background-color: hsl(var(--muted));\n}\n .proctor-library-root #proctor-library-root-id .bg-primary {\n background-color: hsl(var(--primary));\n}\n .proctor-library-root #proctor-library-root-id .bg-primary\\/20 {\n background-color: hsl(var(--primary) / 0.2);\n}\n .proctor-library-root #proctor-library-root-id .bg-red-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-red-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-red-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-red-500\\/90 {\n background-color: rgb(239 68 68 / 0.9);\n}\n .proctor-library-root #proctor-library-root-id .bg-red-700 {\n --tw-bg-opacity: 1;\n background-color: rgb(185 28 28 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-scaler-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(230 242 255 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-scaler-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(0 128 255 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-scaler-900 {\n --tw-bg-opacity: 1;\n background-color: rgb(0 51 102 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-secondary {\n background-color: hsl(var(--secondary));\n}\n .proctor-library-root #proctor-library-root-id .bg-slate-200 {\n --tw-bg-opacity: 1;\n background-color: rgb(226 232 240 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-opacity-50 {\n --tw-bg-opacity: 0.5;\n}\n .proctor-library-root #proctor-library-root-id .fill-black {\n fill: #000;\n}\n .proctor-library-root #proctor-library-root-id .fill-green-600 {\n fill: #16a34a;\n}\n .proctor-library-root #proctor-library-root-id .object-contain {\n -o-object-fit: contain;\n object-fit: contain;\n}\n .proctor-library-root #proctor-library-root-id .object-cover {\n -o-object-fit: cover;\n object-fit: cover;\n}\n .proctor-library-root #proctor-library-root-id .p-1 {\n padding: 0.25rem;\n}\n .proctor-library-root #proctor-library-root-id .p-12 {\n padding: 3rem;\n}\n .proctor-library-root #proctor-library-root-id .p-16 {\n padding: 4rem;\n}\n .proctor-library-root #proctor-library-root-id .p-2 {\n padding: 0.5rem;\n}\n .proctor-library-root #proctor-library-root-id .p-20 {\n padding: 5rem;\n}\n .proctor-library-root #proctor-library-root-id .p-3 {\n padding: 0.75rem;\n}\n .proctor-library-root #proctor-library-root-id .p-4 {\n padding: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .p-5 {\n padding: 1.25rem;\n}\n .proctor-library-root #proctor-library-root-id .p-6 {\n padding: 1.5rem;\n}\n .proctor-library-root #proctor-library-root-id .p-8 {\n padding: 2rem;\n}\n .proctor-library-root #proctor-library-root-id .px-10 {\n padding-left: 2.5rem;\n padding-right: 2.5rem;\n}\n .proctor-library-root #proctor-library-root-id .px-12 {\n padding-left: 3rem;\n padding-right: 3rem;\n}\n .proctor-library-root #proctor-library-root-id .px-16 {\n padding-left: 4rem;\n padding-right: 4rem;\n}\n .proctor-library-root #proctor-library-root-id .px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n .proctor-library-root #proctor-library-root-id .px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n .proctor-library-root #proctor-library-root-id .px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .px-5 {\n padding-left: 1.25rem;\n padding-right: 1.25rem;\n}\n .proctor-library-root #proctor-library-root-id .px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n}\n .proctor-library-root #proctor-library-root-id .py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n .proctor-library-root #proctor-library-root-id .py-16 {\n padding-top: 4rem;\n padding-bottom: 4rem;\n}\n .proctor-library-root #proctor-library-root-id .py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n .proctor-library-root #proctor-library-root-id .py-3 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n .proctor-library-root #proctor-library-root-id .py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .py-6 {\n padding-top: 1.5rem;\n padding-bottom: 1.5rem;\n}\n .proctor-library-root #proctor-library-root-id .py-8 {\n padding-top: 2rem;\n padding-bottom: 2rem;\n}\n .proctor-library-root #proctor-library-root-id .py-9 {\n padding-top: 2.25rem;\n padding-bottom: 2.25rem;\n}\n .proctor-library-root #proctor-library-root-id .pb-10 {\n padding-bottom: 2.5rem;\n}\n .proctor-library-root #proctor-library-root-id .pb-4 {\n padding-bottom: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .pb-6 {\n padding-bottom: 1.5rem;\n}\n .proctor-library-root #proctor-library-root-id .pl-16 {\n padding-left: 4rem;\n}\n .proctor-library-root #proctor-library-root-id .pl-5 {\n padding-left: 1.25rem;\n}\n .proctor-library-root #proctor-library-root-id .pr-4 {\n padding-right: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .pr-8 {\n padding-right: 2rem;\n}\n .proctor-library-root #proctor-library-root-id .pt-0 {\n padding-top: 0px;\n}\n .proctor-library-root #proctor-library-root-id .pt-20 {\n padding-top: 5rem;\n}\n .proctor-library-root #proctor-library-root-id .pt-24 {\n padding-top: 6rem;\n}\n .proctor-library-root #proctor-library-root-id .pt-8 {\n padding-top: 2rem;\n}\n .proctor-library-root #proctor-library-root-id .text-center {\n text-align: center;\n}\n .proctor-library-root #proctor-library-root-id .text-2xl {\n font-size: 2.5rem;\n}\n .proctor-library-root #proctor-library-root-id .text-3xl {\n font-size: 3.2rem;\n}\n .proctor-library-root #proctor-library-root-id .text-base {\n font-size: 1.6rem;\n}\n .proctor-library-root #proctor-library-root-id .text-lg {\n font-size: 1.8rem;\n}\n .proctor-library-root #proctor-library-root-id .text-sm {\n font-size: 1.4rem;\n}\n .proctor-library-root #proctor-library-root-id .text-sm\\/7 {\n font-size: 1.4rem;\n line-height: 1.75rem;\n}\n .proctor-library-root #proctor-library-root-id .text-xl {\n font-size: 2rem;\n}\n .proctor-library-root #proctor-library-root-id .text-xs {\n font-size: 1.2rem;\n}\n .proctor-library-root #proctor-library-root-id .font-bold {\n font-weight: 700;\n}\n .proctor-library-root #proctor-library-root-id .font-medium {\n font-weight: 500;\n}\n .proctor-library-root #proctor-library-root-id .font-semibold {\n font-weight: 600;\n}\n .proctor-library-root #proctor-library-root-id .uppercase {\n text-transform: uppercase;\n}\n .proctor-library-root #proctor-library-root-id .italic {\n font-style: italic;\n}\n .proctor-library-root #proctor-library-root-id .leading-none {\n line-height: 1;\n}\n .proctor-library-root #proctor-library-root-id .leading-relaxed {\n line-height: 1.625;\n}\n .proctor-library-root #proctor-library-root-id .tracking-tight {\n letter-spacing: -0.025em;\n}\n .proctor-library-root #proctor-library-root-id .tracking-widest {\n letter-spacing: 0.1em;\n}\n .proctor-library-root #proctor-library-root-id .text-base-200 {\n --tw-text-opacity: 1;\n color: rgb(97 115 142 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-base-500 {\n --tw-text-opacity: 1;\n color: rgb(26 44 71 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-base-700 {\n --tw-text-opacity: 1;\n color: rgb(2 16 40 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-black {\n --tw-text-opacity: 1;\n color: rgb(0 0 0 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-blue-400 {\n --tw-text-opacity: 1;\n color: rgb(96 165 250 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-blue-500 {\n --tw-text-opacity: 1;\n color: rgb(59 130 246 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-card-foreground {\n color: hsl(var(--card-foreground));\n}\n .proctor-library-root #proctor-library-root-id .text-current {\n color: currentColor;\n}\n .proctor-library-root #proctor-library-root-id .text-destructive-foreground {\n color: hsl(var(--destructive-foreground));\n}\n .proctor-library-root #proctor-library-root-id .text-gray-400 {\n --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-gray-500 {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-gray-600 {\n --tw-text-opacity: 1;\n color: rgb(75 85 99 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-gray-800 {\n --tw-text-opacity: 1;\n color: rgb(31 41 55 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-gray-900 {\n --tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-green-600 {\n --tw-text-opacity: 1;\n color: rgb(22 163 74 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-muted-foreground {\n color: hsl(var(--muted-foreground));\n}\n .proctor-library-root #proctor-library-root-id .text-primary {\n color: hsl(var(--primary));\n}\n .proctor-library-root #proctor-library-root-id .text-primary-foreground {\n color: hsl(var(--primary-foreground));\n}\n .proctor-library-root #proctor-library-root-id .text-red-400 {\n --tw-text-opacity: 1;\n color: rgb(248 113 113 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-red-500 {\n --tw-text-opacity: 1;\n color: rgb(239 68 68 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-red-600 {\n --tw-text-opacity: 1;\n color: rgb(220 38 38 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-red-700 {\n --tw-text-opacity: 1;\n color: rgb(185 28 28 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-scaler-500 {\n --tw-text-opacity: 1;\n color: rgb(0 128 255 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-secondary-foreground {\n color: hsl(var(--secondary-foreground));\n}\n .proctor-library-root #proctor-library-root-id .text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .underline {\n text-decoration-line: underline;\n}\n .proctor-library-root #proctor-library-root-id .underline-offset-2 {\n text-underline-offset: 2px;\n}\n .proctor-library-root #proctor-library-root-id .underline-offset-4 {\n text-underline-offset: 4px;\n}\n .proctor-library-root #proctor-library-root-id .opacity-0 {\n opacity: 0;\n}\n .proctor-library-root #proctor-library-root-id .opacity-100 {\n opacity: 1;\n}\n .proctor-library-root #proctor-library-root-id .opacity-25 {\n opacity: 0.25;\n}\n .proctor-library-root #proctor-library-root-id .shadow-\\[0_0_0_9999px_rgba\\(11\\2c 27\\2c 58\\2c 0\\.55\\)\\] {\n --tw-shadow: 0 0 0 9999px rgba(11,27,58,0.55);\n --tw-shadow-colored: 0 0 0 9999px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n .proctor-library-root #proctor-library-root-id .shadow-\\[0px_0px_24px_0px_rgba\\(0\\2c 0\\2c 0\\2c 0\\.08\\)\\] {\n --tw-shadow: 0px 0px 24px 0px rgba(0,0,0,0.08);\n --tw-shadow-colored: 0px 0px 24px 0px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n .proctor-library-root #proctor-library-root-id .shadow-\\[0px_2px_14px_0px_rgba\\(16\\2c 24\\2c 40\\2c 0\\.05\\)\\] {\n --tw-shadow: 0px 2px 14px 0px rgba(16,24,40,0.05);\n --tw-shadow-colored: 0px 2px 14px 0px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n .proctor-library-root #proctor-library-root-id .shadow-lg {\n --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n .proctor-library-root #proctor-library-root-id .shadow-sm {\n --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n .proctor-library-root #proctor-library-root-id .outline {\n outline-style: solid;\n}\n .proctor-library-root #proctor-library-root-id .ring {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n .proctor-library-root #proctor-library-root-id .ring-offset-background {\n --tw-ring-offset-color: hsl(var(--background));\n}\n .proctor-library-root #proctor-library-root-id .blur {\n --tw-blur: blur(8px);\n 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);\n}\n .proctor-library-root #proctor-library-root-id .filter {\n 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);\n}\n .proctor-library-root #proctor-library-root-id .transition {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n .proctor-library-root #proctor-library-root-id .transition-all {\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n .proctor-library-root #proctor-library-root-id .transition-colors {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n .proctor-library-root #proctor-library-root-id .transition-opacity {\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n .proctor-library-root #proctor-library-root-id .transition-transform {\n transition-property: transform;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n .proctor-library-root #proctor-library-root-id .duration-1000 {\n transition-duration: 1000ms;\n}\n .proctor-library-root #proctor-library-root-id .duration-500 {\n transition-duration: 500ms;\n}\n .proctor-library-root #proctor-library-root-id .ease-in-out {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n .proctor-library-root #proctor-library-root-id .ease-linear {\n transition-timing-function: linear;\n}\n @keyframes enter {\n from {\n opacity: var(--tw-enter-opacity, 1);\n transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));\n }\n}\n @keyframes exit {\n to {\n opacity: var(--tw-exit-opacity, 1);\n transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));\n }\n}\n .proctor-library-root #proctor-library-root-id .duration-1000 {\n animation-duration: 1000ms;\n}\n .proctor-library-root #proctor-library-root-id .duration-500 {\n animation-duration: 500ms;\n}\n .proctor-library-root #proctor-library-root-id .ease-in-out {\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n .proctor-library-root #proctor-library-root-id .ease-linear {\n animation-timing-function: linear;\n}\n .proctor-library-root #proctor-library-root-id .running {\n animation-play-state: running;\n}\n .proctor-library-root {\n\n --background: 0 0% 100%;\n --foreground: 222.2 47.4% 11.2%;\n --muted: 210 40% 96.1%;\n --muted-foreground: 215.4 16.3% 46.9%;\n --popover: 0 0% 100%;\n --popover-foreground: 222.2 47.4% 11.2%;\n --border: 214.3 31.8% 91.4%;\n --input: 214.3 31.8% 91.4%;\n --card: 0 0% 100%;\n --card-foreground: 222.2 47.4% 11.2%;\n --primary: 222.2 47.4% 11.2%;\n --primary-foreground: 210 40% 98%;\n --secondary: 210 40% 96.1%;\n --secondary-foreground: 222.2 47.4% 11.2%;\n --accent: 210 40% 96.1%;\n --accent-foreground: 222.2 47.4% 11.2%;\n --destructive: 0 100% 50%;\n --destructive-foreground: 210 40% 98%;\n --ring: 215 20.2% 65.1%;\n --radius: 0.5rem;\n\n\n border-color: var(--border);\n background-color: var(--background);\n color: var(--foreground);\n font-family: SourceSansPro, sans-serif !important;\n font-size: 10px;\n}\n\n\n\n\n.proctor-library-root * {\n margin: 0;\n padding: 0;\n font-size: inherit;\n font-family: SourceSansPro, sans-serif !important;\n}\n\n\n.proctor-library-root .markdown-content {\n color: #1a1a1a;\n line-height: 1.6;\n font-size: 16px;\n}\n\n.proctor-library-root .markdown-content h1,\n.proctor-library-root .markdown-content h2,\n.proctor-library-root .markdown-content h3,\n.proctor-library-root .markdown-content h4,\n.proctor-library-root .markdown-content h5,\n.proctor-library-root .markdown-content h6 {\n margin: 1em 0;\n font-weight: 600;\n line-height: 1.25;\n color: #111;\n}\n\n.proctor-library-root .markdown-content h1 {\n font-size: 2em;\n border-bottom: 2px solid #eaecef;\n padding-bottom: 0.3em;\n}\n\n.proctor-library-root .markdown-content h2 {\n font-size: 1.5em;\n border-bottom: 1px solid #eaecef;\n padding-bottom: 0.3em;\n}\n\n.proctor-library-root .markdown-content h3 {\n font-size: 1.25em;\n}\n\n.proctor-library-root .markdown-content h4 {\n font-size: 1em;\n}\n\n.proctor-library-root .markdown-content h5 {\n font-size: 0.875em;\n}\n\n.proctor-library-root .markdown-content h6 {\n font-size: 0.85em;\n color: #6a737d;\n}\n\n/* Paragraphs */\n.proctor-library-root .markdown-content p {\n margin: 1em 0;\n line-height: 1.75;\n}\n\n/* Lists */\n.proctor-library-root .markdown-content ul,\n.proctor-library-root .markdown-content ol {\n margin: 1em 0;\n padding-left: 2em;\n}\n\n.proctor-library-root .markdown-content li {\n margin: 0.5em 0;\n list-style-type: disc;\n}\n\n.proctor-library-root .markdown-content li::marker {\n color: #6a737d;\n}\n\n.proctor-library-root .markdown-content li p {\n margin: 0.5em 0;\n}\n\n.proctor-library-root .markdown-content li ul,\n.proctor-library-root .markdown-content li ol {\n margin: 0.5em 0;\n}\n\n/* Definition lists */\n.proctor-library-root .markdown-content dl {\n margin: 1em 0;\n}\n\n.proctor-library-root .markdown-content dt {\n font-weight: 600;\n margin-top: 1em;\n}\n\n.proctor-library-root .markdown-content dd {\n margin-left: 2em;\n margin-top: 0.5em;\n}\n\n.proctor-library-root .markdown-content blockquote {\n margin: 1.5em 0;\n padding: 0.5em 1.5em;\n border-left: 4px solid #60a5fa;\n background-color: #f8fafc;\n color: #4a5568;\n}\n\n.proctor-library-root .markdown-content blockquote p {\n margin: 0.5em 0;\n}\n\n.proctor-library-root .markdown-content blockquote p:first-child {\n margin-top: 0;\n}\n\n.proctor-library-root .markdown-content blockquote p:last-child {\n margin-bottom: 0;\n}\n\n.proctor-library-root .markdown-content blockquote blockquote {\n border-left-color: #93c5fd;\n background-color: #f1f5f9;\n}\n\n.proctor-library-root .markdown-content a {\n color: #2563eb;\n text-decoration: none;\n transition: color 0.2s ease;\n}\n\n.proctor-library-root .markdown-content a:hover {\n color: #1d4ed8;\n text-decoration: underline;\n}\n\n.proctor-library-root .markdown-content a:visited {\n color: #7c3aed;\n}\n\n.proctor-library-root .markdown-content img {\n max-width: 100%;\n height: auto;\n margin: 1.5em 0;\n border-radius: 6px;\n box-shadow: 0 4px 6px -1px rgb(0 0 0 / 10%);\n}\n\n#proctor-library-root-id .last\\:border-b-0:last-child {\n border-bottom-width: 0px;\n}\n\n#proctor-library-root-id .hover\\:bg-accent:hover {\n background-color: hsl(var(--accent));\n}\n\n#proctor-library-root-id .hover\\:bg-blue-50:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));\n}\n\n#proctor-library-root-id .hover\\:bg-blue-600:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));\n}\n\n#proctor-library-root-id .hover\\:bg-destructive\\/90:hover {\n background-color: hsl(var(--destructive) / 0.9);\n}\n\n#proctor-library-root-id .hover\\:bg-primary\\/90:hover {\n background-color: hsl(var(--primary) / 0.9);\n}\n\n#proctor-library-root-id .hover\\:bg-scaler-500\\/90:hover {\n background-color: rgb(0 128 255 / 0.9);\n}\n\n#proctor-library-root-id .hover\\:bg-opacity-75:hover {\n --tw-bg-opacity: 0.75;\n}\n\n#proctor-library-root-id .hover\\:text-accent-foreground:hover {\n color: hsl(var(--accent-foreground));\n}\n\n#proctor-library-root-id .hover\\:text-blue-600:hover {\n --tw-text-opacity: 1;\n color: rgb(37 99 235 / var(--tw-text-opacity, 1));\n}\n\n#proctor-library-root-id .hover\\:text-gray-800:hover {\n --tw-text-opacity: 1;\n color: rgb(31 41 55 / var(--tw-text-opacity, 1));\n}\n\n#proctor-library-root-id .hover\\:underline:hover {\n text-decoration-line: underline;\n}\n\n#proctor-library-root-id .focus\\:border-blue-400:focus {\n --tw-border-opacity: 1;\n border-color: rgb(96 165 250 / var(--tw-border-opacity, 1));\n}\n\n#proctor-library-root-id .focus\\:outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n#proctor-library-root-id .focus\\:ring-1:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n\n#proctor-library-root-id .focus\\:ring-blue-400:focus {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity, 1));\n}\n\n#proctor-library-root-id .focus-visible\\:outline-none:focus-visible {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n#proctor-library-root-id .focus-visible\\:ring-2:focus-visible {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n\n#proctor-library-root-id .focus-visible\\:ring-ring:focus-visible {\n --tw-ring-color: hsl(var(--ring));\n}\n\n#proctor-library-root-id .focus-visible\\:ring-offset-2:focus-visible {\n --tw-ring-offset-width: 2px;\n}\n\n#proctor-library-root-id .disabled\\:pointer-events-none:disabled {\n pointer-events: none;\n}\n\n#proctor-library-root-id .disabled\\:cursor-not-allowed:disabled {\n cursor: not-allowed;\n}\n\n#proctor-library-root-id .disabled\\:opacity-50:disabled {\n opacity: 0.5;\n}\n\n#proctor-library-root-id .data-\\[state\\=checked\\]\\:border-blue-500[data-state="checked"] {\n --tw-border-opacity: 1;\n border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));\n}\n\n#proctor-library-root-id .data-\\[state\\=checked\\]\\:bg-scaler-500[data-state="checked"] {\n --tw-bg-opacity: 1;\n background-color: rgb(0 128 255 / var(--tw-bg-opacity, 1));\n}\n\n#proctor-library-root-id .data-\\[state\\=checked\\]\\:text-primary-foreground[data-state="checked"] {\n color: hsl(var(--primary-foreground));\n}\n\n@media (min-width: 768px) {\n #proctor-library-root-id .md\\:mt-2 {\n margin-top: 0.5rem;\n }\n}\n',""]);const l=a;n.d(t,["A",0,l])},2859(e,t,n){"use strict";var r=n(1601),o=n.n(r),i=n(6314),a=n.n(i)()(o());a.push([e.id,".warning-modal{display:none;padding:1.6rem 2rem 2.4rem;color:#fff;border-radius:1.6rem;background-color:#a42137;position:fixed;z-index:99999;top:2%;left:50%;transform:translateX(-50%);max-width:47rem;font-size:1.6rem}.warning-modal__close-btn{position:absolute;top:0;right:0;padding:.8rem 1.2rem;border-radius:50%;background-color:#851a2d;display:flex;transform:translate(25%, -25%);cursor:pointer}.warning-modal__body{display:flex;align-items:start}.warning-modal__icon-wrap{background-color:#851a2d;padding:2.6rem 1.1rem;display:flex;justify-content:center;align-items:center;border-radius:1.1rem;height:6.4rem;width:6.4rem;margin-right:1.5rem}.warning-modal__heading{font-size:2rem;font-style:normal;font-weight:600;line-height:3.2rem}.warning-modal__action{cursor:pointer;background-color:#fff;color:#a42137;text-align:center;padding:.8rem 2.4rem;border-radius:.4rem;font-weight:600;margin-top:2.4rem}.warning-modal--networkAlert{background-color:#d97706}.warning-modal--networkAlert .warning-modal__close-btn,.warning-modal--networkAlert .warning-modal__icon-wrap{background-color:#b45309}.warning-modal--networkAlert .warning-modal__action{color:#b45309}",""]);const l=a;n.d(t,["A",0,l])},6707(e,t,n){"use strict";var r=n(1354),o=n.n(r),i=n(6314),a=n.n(i)()(o());a.push([e.id,".CompatibilityModalStepsScreen-module__stepNumber___nf944{letter-spacing:.11em}","",{version:3,sources:["webpack://./src/components/CompatibilityModalStepsScreen/CompatibilityModalStepsScreen.module.scss"],names:[],mappings:"AAAA,0DAAY,oBAAoB",sourcesContent:[".stepNumber{letter-spacing:.11em}"],sourceRoot:""}]),a.locals={stepNumber:"CompatibilityModalStepsScreen-module__stepNumber___nf944"};const l=a;n.d(t,["A",0,l])},1243(e,t,n){"use strict";var r=n(1354),o=n.n(r),i=n(6314),a=n.n(i)()(o());a.push([e.id,".MobileCameraStep-module__pairingContainer___M9XqR{display:flex;align-items:center;justify-content:space-between;overflow-x:auto}.MobileCameraStep-module__qrCodeContainer___i1Su0{display:flex;align-items:center;justify-content:center;margin-right:2.4rem}.MobileCameraStep-module__qrCodeContainer___i1Su0 img{height:18.5rem;min-width:18.5rem !important;width:18.5rem}.MobileCameraStep-module__dividerLine___Zu4eF{background-color:#eaeff4;width:.1rem;height:4.3rem}.MobileCameraStep-module__divider___q8GV2{display:flex;flex-direction:column;justify-content:center;align-items:center}.MobileCameraStep-module__dividerText___bc5GT{margin:.4rem;color:#d6dee5}.MobileCameraStep-module__copyLinkHeading___EipZ5{font-size:1.4rem;font-weight:bold}.MobileCameraStep-module__copyLinkBody___vlVHB{color:#91a1b7;font-size:1.2rem}.MobileCameraStep-module__copyLinkContainer___KsklA{display:flex;flex-direction:column;justify-content:center;margin-left:2.4rem}.MobileCameraStep-module__copyIcon___j4hlE{margin-right:.5rem}.MobileCameraStep-module__copyLinkOption___AXXFZ{display:flex;align-items:center;margin-top:1rem}.MobileCameraStep-module__copyLinkBox___iMSVQ{border-radius:.8rem;border:.1rem solid #d6dee5;padding:1.2rem 1.6rem;white-space:nowrap;overflow:hidden !important;text-overflow:ellipsis;width:30rem}.MobileCameraStep-module__copyLinkText___tGI74{display:flex;align-items:center;font-size:1.2rem;color:#61738e;margin-left:1rem;cursor:pointer}.MobileCameraStep-module__demo___rivwq{display:flex;justify-content:center;margin-top:2.4rem}.MobileCameraStep-module__demo___rivwq img{width:100%;border-radius:1.2rem}.MobileCameraStep-module__retrySnapshot___QlhjO{font-weight:bold !important;color:#3b82f6 !important;width:100% !important;padding:.8rem 1.6rem !important;cursor:pointer !important;font-size:1.2rem}.MobileCameraStep-module__snapshotPreview___OAmiZ{display:flex;align-items:center;justify-content:center;flex:1}.MobileCameraStep-module__snapshotImageContainer___nFF7N{position:relative;width:100%;padding-top:75%;overflow:hidden;background-color:#f4f6f9;border-radius:1.2rem}.MobileCameraStep-module__snapshotImage___TmrSE{position:absolute;top:0;left:0;width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.MobileCameraStep-module__orientationContainer___JX7Lc{display:flex}.MobileCameraStep-module__snapshotPreviewContainer___KqcLT{display:flex;flex-direction:column;flex:1}.MobileCameraStep-module__referenceImage___mJ5yK{height:6.4rem;width:6.4rem;margin-right:2.4rem}.MobileCameraStep-module__orientationInstructions___XQszl{margin-bottom:3.2rem}.MobileCameraStep-module__orientationInstructionPoints___EytKg{list-style:disc !important;padding-left:2rem !important;padding-top:.5rem !important;color:#61738e;font-size:1.2rem;line-height:2.2rem}.MobileCameraStep-module__orientationInstructionHeading___UL9ml{font-size:1.4rem;font-weight:600;font-style:italic}.MobileCameraStep-module__referenceImageList___zKW9w{display:flex}.MobileCameraStep-module__referenceImageContainer___ghCtl{flex:1;padding-right:2.4rem}.MobileCameraStep-module__compatibilityTitle___xYAz6{font-size:1.8rem;font-weight:600}.MobileCameraStep-module__compatibilityBody___zoa5B{color:#61738e;font-size:1.6rem;font-style:italic;line-height:2.6rem}.MobileCameraStep-module__compatibilityWarningIcon___Z1uVA{height:4rem;width:4rem}.MobileCameraStep-module__compatibilityAlert___ljLqY{color:#dc2626;background-color:#fee2e2;font-size:1.4rem;padding:.8rem 1.6rem;margin:4rem -4rem -4rem;border-radius:0 0 1.2rem 1.2rem}","",{version:3,sources:["webpack://./src/components/MobileCameraStep/MobileCameraStep.module.scss"],names:[],mappings:"AAAA,mDAAkB,YAAY,CAAC,kBAAkB,CAAC,6BAA6B,CAAC,eAAe,CAAC,kDAAiB,YAAY,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,sDAAqB,cAAc,CAAC,4BAA4B,CAAC,aAAa,CAAC,8CAAa,wBAAwB,CAAC,WAAW,CAAC,aAAa,CAAC,0CAAS,YAAY,CAAC,qBAAqB,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,8CAAa,YAAY,CAAC,aAAa,CAAC,kDAAiB,gBAAgB,CAAC,gBAAgB,CAAC,+CAAc,aAAa,CAAC,gBAAgB,CAAC,oDAAmB,YAAY,CAAC,qBAAqB,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,2CAAU,kBAAkB,CAAC,iDAAgB,YAAY,CAAC,kBAAkB,CAAC,eAAe,CAAC,8CAAa,mBAAmB,CAAC,0BAA0B,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,0BAA0B,CAAC,sBAAsB,CAAC,WAAW,CAAC,+CAAc,YAAY,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,aAAa,CAAC,gBAAgB,CAAC,cAAc,CAAC,uCAAM,YAAY,CAAC,sBAAsB,CAAC,iBAAiB,CAAC,2CAAU,UAAU,CAAC,oBAAoB,CAAC,gDAAe,2BAA2B,CAAC,wBAAwB,CAAC,qBAAqB,CAAC,+BAA+B,CAAC,yBAAyB,CAAC,gBAAgB,CAAC,kDAAiB,YAAY,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,MAAM,CAAC,yDAAwB,iBAAiB,CAAC,UAAU,CAAC,eAAe,CAAC,eAAe,CAAC,wBAAwB,CAAC,oBAAoB,CAAC,gDAAe,iBAAiB,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,uDAAsB,YAAY,CAAC,2DAA0B,YAAY,CAAC,qBAAqB,CAAC,MAAM,CAAC,iDAAgB,aAAa,CAAC,YAAY,CAAC,mBAAmB,CAAC,0DAAyB,oBAAoB,CAAC,+DAA8B,0BAA0B,CAAC,4BAA4B,CAAC,4BAA4B,CAAC,aAAa,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,gEAA+B,gBAAgB,CAAC,eAAe,CAAC,iBAAiB,CAAC,qDAAoB,YAAY,CAAC,0DAAyB,MAAM,CAAC,oBAAoB,CAAC,qDAAoB,gBAAgB,CAAC,eAAe,CAAC,oDAAmB,aAAa,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,2DAA0B,WAAW,CAAC,UAAU,CAAC,qDAAoB,aAAa,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,+BAA+B",sourcesContent:[".pairingContainer{display:flex;align-items:center;justify-content:space-between;overflow-x:auto}.qrCodeContainer{display:flex;align-items:center;justify-content:center;margin-right:2.4rem}.qrCodeContainer img{height:18.5rem;min-width:18.5rem !important;width:18.5rem}.dividerLine{background-color:#eaeff4;width:.1rem;height:4.3rem}.divider{display:flex;flex-direction:column;justify-content:center;align-items:center}.dividerText{margin:.4rem;color:#d6dee5}.copyLinkHeading{font-size:1.4rem;font-weight:bold}.copyLinkBody{color:#91a1b7;font-size:1.2rem}.copyLinkContainer{display:flex;flex-direction:column;justify-content:center;margin-left:2.4rem}.copyIcon{margin-right:.5rem}.copyLinkOption{display:flex;align-items:center;margin-top:1rem}.copyLinkBox{border-radius:.8rem;border:.1rem solid #d6dee5;padding:1.2rem 1.6rem;white-space:nowrap;overflow:hidden !important;text-overflow:ellipsis;width:30rem}.copyLinkText{display:flex;align-items:center;font-size:1.2rem;color:#61738e;margin-left:1rem;cursor:pointer}.demo{display:flex;justify-content:center;margin-top:2.4rem}.demo img{width:100%;border-radius:1.2rem}.retrySnapshot{font-weight:bold !important;color:#3b82f6 !important;width:100% !important;padding:.8rem 1.6rem !important;cursor:pointer !important;font-size:1.2rem}.snapshotPreview{display:flex;align-items:center;justify-content:center;flex:1}.snapshotImageContainer{position:relative;width:100%;padding-top:75%;overflow:hidden;background-color:#f4f6f9;border-radius:1.2rem}.snapshotImage{position:absolute;top:0;left:0;width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.orientationContainer{display:flex}.snapshotPreviewContainer{display:flex;flex-direction:column;flex:1}.referenceImage{height:6.4rem;width:6.4rem;margin-right:2.4rem}.orientationInstructions{margin-bottom:3.2rem}.orientationInstructionPoints{list-style:disc !important;padding-left:2rem !important;padding-top:.5rem !important;color:#61738e;font-size:1.2rem;line-height:2.2rem}.orientationInstructionHeading{font-size:1.4rem;font-weight:600;font-style:italic}.referenceImageList{display:flex}.referenceImageContainer{flex:1;padding-right:2.4rem}.compatibilityTitle{font-size:1.8rem;font-weight:600}.compatibilityBody{color:#61738e;font-size:1.6rem;font-style:italic;line-height:2.6rem}.compatibilityWarningIcon{height:4rem;width:4rem}.compatibilityAlert{color:#dc2626;background-color:#fee2e2;font-size:1.4rem;padding:.8rem 1.6rem;margin:4rem -4rem -4rem;border-radius:0 0 1.2rem 1.2rem}"],sourceRoot:""}]),a.locals={pairingContainer:"MobileCameraStep-module__pairingContainer___M9XqR",qrCodeContainer:"MobileCameraStep-module__qrCodeContainer___i1Su0",dividerLine:"MobileCameraStep-module__dividerLine___Zu4eF",divider:"MobileCameraStep-module__divider___q8GV2",dividerText:"MobileCameraStep-module__dividerText___bc5GT",copyLinkHeading:"MobileCameraStep-module__copyLinkHeading___EipZ5",copyLinkBody:"MobileCameraStep-module__copyLinkBody___vlVHB",copyLinkContainer:"MobileCameraStep-module__copyLinkContainer___KsklA",copyIcon:"MobileCameraStep-module__copyIcon___j4hlE",copyLinkOption:"MobileCameraStep-module__copyLinkOption___AXXFZ",copyLinkBox:"MobileCameraStep-module__copyLinkBox___iMSVQ",copyLinkText:"MobileCameraStep-module__copyLinkText___tGI74",demo:"MobileCameraStep-module__demo___rivwq",retrySnapshot:"MobileCameraStep-module__retrySnapshot___QlhjO",snapshotPreview:"MobileCameraStep-module__snapshotPreview___OAmiZ",snapshotImageContainer:"MobileCameraStep-module__snapshotImageContainer___nFF7N",snapshotImage:"MobileCameraStep-module__snapshotImage___TmrSE",orientationContainer:"MobileCameraStep-module__orientationContainer___JX7Lc",snapshotPreviewContainer:"MobileCameraStep-module__snapshotPreviewContainer___KqcLT",referenceImage:"MobileCameraStep-module__referenceImage___mJ5yK",orientationInstructions:"MobileCameraStep-module__orientationInstructions___XQszl",orientationInstructionPoints:"MobileCameraStep-module__orientationInstructionPoints___EytKg",orientationInstructionHeading:"MobileCameraStep-module__orientationInstructionHeading___UL9ml",referenceImageList:"MobileCameraStep-module__referenceImageList___zKW9w",referenceImageContainer:"MobileCameraStep-module__referenceImageContainer___ghCtl",compatibilityTitle:"MobileCameraStep-module__compatibilityTitle___xYAz6",compatibilityBody:"MobileCameraStep-module__compatibilityBody___zoa5B",compatibilityWarningIcon:"MobileCameraStep-module__compatibilityWarningIcon___Z1uVA",compatibilityAlert:"MobileCameraStep-module__compatibilityAlert___ljLqY"};const l=a;n.d(t,["A",0,l])},2445(e,t,n){"use strict";var r=n(1354),o=n.n(r),i=n(6314),a=n.n(i)()(o());a.push([e.id,".StepHeader-module__stepNumber___f9xM3{letter-spacing:.11em}","",{version:3,sources:["webpack://./src/ui/StepHeader/StepHeader.module.scss"],names:[],mappings:"AAAA,uCAAY,oBAAoB",sourcesContent:[".stepNumber{letter-spacing:.11em}"],sourceRoot:""}]),a.locals={stepNumber:"StepHeader-module__stepNumber___f9xM3"};const l=a;n.d(t,["A",0,l])},8807(e,t,n){"use strict";var r=n(1354),o=n.n(r),i=n(6314),a=n.n(i)()(o());a.push([e.id,".Tabs-module__tabs___bKumb{display:flex;flex-direction:column;border-radius:1.2rem;box-shadow:0 2px 10px rgba(0,0,0,.1)}.Tabs-module__tabList___YAob6{display:flex}.Tabs-module__tabList___YAob6>:first-child{border-radius:1.2rem 0 0}.Tabs-module__tabList___YAob6>:last-child{border-radius:0 1.2rem 0 0}.Tabs-module__tab___UQtuy{display:flex;align-items:center;justify-content:center;padding:1.6rem 3rem;color:#fff;background-color:#021028;cursor:pointer;transition:color .3s;font-size:1.4rem;flex:1;font-weight:600}.Tabs-module__tab___UQtuy:hover{color:#73b9ff}.Tabs-module__active___XWp63{color:#73b9ff;border-bottom:4px solid #73b9ff}.Tabs-module__disabled___WeFAj{color:#61738e;cursor:not-allowed}.Tabs-module__tabContent___M0YqI{padding:4rem;position:relative}","",{version:3,sources:["webpack://./src/ui/Tabs/Tabs.module.scss"],names:[],mappings:"AAAA,2BAAM,YAAY,CAAC,qBAAqB,CAAC,oBAAoB,CAAC,oCAAoC,CAAC,8BAAS,YAAY,CAAC,2CAAsB,wBAAwB,CAAC,0CAAqB,0BAA0B,CAAC,0BAAK,YAAY,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,UAAU,CAAC,wBAAwB,CAAC,cAAc,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,MAAM,CAAC,eAAe,CAAC,gCAAW,aAAa,CAAC,6BAAQ,aAAa,CAAC,+BAA+B,CAAC,+BAAU,aAAa,CAAC,kBAAkB,CAAC,iCAAY,YAAY,CAAC,iBAAiB",sourcesContent:[".tabs{display:flex;flex-direction:column;border-radius:1.2rem;box-shadow:0 2px 10px rgba(0,0,0,.1)}.tabList{display:flex}.tabList>:first-child{border-radius:1.2rem 0 0}.tabList>:last-child{border-radius:0 1.2rem 0 0}.tab{display:flex;align-items:center;justify-content:center;padding:1.6rem 3rem;color:#fff;background-color:#021028;cursor:pointer;transition:color .3s;font-size:1.4rem;flex:1;font-weight:600}.tab:hover{color:#73b9ff}.active{color:#73b9ff;border-bottom:4px solid #73b9ff}.disabled{color:#61738e;cursor:not-allowed}.tabContent{padding:4rem;position:relative}"],sourceRoot:""}]),a.locals={tabs:"Tabs-module__tabs___bKumb",tabList:"Tabs-module__tabList___YAob6",tab:"Tabs-module__tab___UQtuy",active:"Tabs-module__active___XWp63",disabled:"Tabs-module__disabled___WeFAj",tabContent:"Tabs-module__tabContent___M0YqI"};const l=a;n.d(t,["A",0,l])},6314(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(a[s]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},1601(e){"use strict";e.exports=function(e){return e[1]}},1354(e){"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),i="/*# ".concat(o," */");return[t].concat([i]).join("\n")}return[t].join("\n")}},9788(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(s,c):c}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var d=1,f=1;function p(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:d,column:f};return function(t){return t.position=new m(e),v(),t}}function m(e){this.start=e,this.end={line:d,column:f},this.source=s.source}m.prototype.content=e;var y=[];function b(t){var n=new Error(s.source+":"+d+":"+f+": "+t);if(n.reason=t,n.filename=s.source,n.line=d,n.column=f,n.source=e,!s.silent)throw n;y.push(n)}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function v(){g(r)}function w(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return b("End of comment missing");var r=e.slice(2,n-2);return f+=2,p(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}function k(){var e=h(),n=g(o);if(n){if(x(),!g(i))return b("property missing ':'");var r=g(a),s=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return g(l),s}}return v(),function(){var e,t=[];for(w(t);e=k();)!1!==e&&(t.push(e),w(t));return t}()}},1873(e,t,n){var r=n(9325).Symbol;e.exports=r},4932(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},882(e){e.exports=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}},1074(e){e.exports=function(e){return e.split("")}},1733(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},2552(e,t,n){var r=n(1873),o=n(659),i=n(9350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},4552(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},5160(e){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},7556(e,t,n){var r=n(1873),o=n(4932),i=n(6449),a=n(4394),l=r?r.prototype:void 0,s=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return s?s.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},8754(e,t,n){var r=n(5160);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},2507(e,t,n){var r=n(8754),o=n(9698),i=n(3912),a=n(3222);e.exports=function(e){return function(t){t=a(t);var n=o(t)?i(t):void 0,l=n?n[0]:t.charAt(0),s=n?r(n,1).join(""):t.slice(1);return l[e]()+s}}},5539(e,t,n){var r=n(882),o=n(828),i=n(6645),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(i(o(t).replace(a,"")),e,"")}}},4647(e,t,n){var r=n(4552)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=r},4840(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},659(e,t,n){var r=n(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[l]=n:delete e[l]),o}},9698(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},5434(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},9350(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9325(e,t,n){var r=n(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},3912(e,t,n){var r=n(1074),o=n(9698),i=n(2054);e.exports=function(e){return o(e)?i(e):r(e)}},2054(e){var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+r+"|"+o+")?",c="[\\ufe0e\\ufe0f]?",u=c+s+"(?:\\u200d(?:"+[i,a,l].join("|")+")"+c+s+")*",d="(?:"+[i+r+"?",r,a,l,n].join("|")+")",f=RegExp(o+"(?="+o+")|"+d+u,"g");e.exports=function(e){return e.match(f)||[]}},2225(e){var t="\\ud800-\\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",o="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+i+"]",l="\\d+",s="["+n+"]",c="["+r+"]",u="[^"+t+i+l+n+r+o+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",p="["+o+"]",h="(?:"+c+"|"+u+")",m="(?:"+p+"|"+u+")",y="(?:['’](?:d|ll|m|re|s|t|ve))?",b="(?:['’](?:D|LL|M|RE|S|T|VE))?",g="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",v="[\\ufe0e\\ufe0f]?",w=v+g+"(?:\\u200d(?:"+["[^"+t+"]",d,f].join("|")+")"+v+g+")*",x="(?:"+[s,d,f].join("|")+")"+w,k=RegExp([p+"?"+c+"+"+y+"(?="+[a,p,"$"].join("|")+")",m+"+"+b+"(?="+[a,p+h,"$"].join("|")+")",p+"?"+h+"+"+y,p+"+"+b,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",l,x].join("|"),"g");e.exports=function(e){return e.match(k)||[]}},4058(e,t,n){var r=n(4792),o=n(5539)(function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)});e.exports=o},4792(e,t,n){var r=n(3222),o=n(5808);e.exports=function(e){return o(r(e).toLowerCase())}},828(e,t,n){var r=n(4647),o=n(3222),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(i,r).replace(a,"")}},6449(e){var t=Array.isArray;e.exports=t},346(e){e.exports=function(e){return null!=e&&"object"==typeof e}},4394(e,t,n){var r=n(2552),o=n(346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},128(e,t,n){var r=n(5539),o=n(5808),i=r(function(e,t,n){return e+(n?" ":"")+o(t)});e.exports=i},3222(e,t,n){var r=n(7556);e.exports=function(e){return null==e?"":r(e)}},5808(e,t,n){var r=n(2507)("toUpperCase");e.exports=r},6645(e,t,n){var r=n(1733),o=n(5434),i=n(3222),a=n(2225);e.exports=function(e,t,n){return e=i(e),void 0===(t=n?void 0:t)?o(e)?a(e):r(e):e.match(t)||[]}},5236(){var e;"undefined"!=typeof window&&(Worker=(e=Worker,class extends e{constructor(e,t){const n=String(e);super(n.includes("://")&&!n.startsWith(location.origin)?URL.createObjectURL(new Blob([`importScripts=((i)=>(...a)=>i(...a.map((u)=>''+new URL(u,"${n}"))))(importScripts);importScripts("${n}")`],{type:"text/javascript"})):e,t)}}))},4693(e,t,n){const r={"./common.md":[7414,[414]],"./linux/chrome.md":[2574,[574]],"./linux/edge.md":[1337,[337]],"./linux/firefox.md":[8371,[371]],"./macos/chrome.md":[8051,[51]],"./macos/edge.md":[8268,[268]],"./macos/firefox.md":[5936,[936]],"./macos/safari.md":[5997,[997]],"./windows/chrome.md":[2411,[411]],"./windows/edge.md":[7876,[876]],"./windows/firefox.md":[2171,[552]]};function o(e){try{if(!n.o(r,e))return Promise.resolve().then(()=>{const t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}catch(e){return Promise.reject(e)}const t=r[e],o=t[0];return n.e(t[1][0]).then(()=>n(o))}o.keys=()=>Object.keys(r),o.id=4693,e.exports=o},4989(e,t,n){"use strict";e.exports=n.p+"images/white-warning34a3cc42412be81a674d.svg"},6942(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}};const t={};function n(r){const o=t[r];if(void 0!==o)return o.exports;const i=t[r]={id:r,exports:{}};return e[r](i,i.exports,n),i.exports}n.m=e,n.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.cw=e=>{var t;return()=>{if(e){var n=e;e=0,t={exports:{}},n.call(t.exports,t,t.exports)}return t.exports}},(()=>{const e=Object.getPrototypeOf;let t;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"==typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"==typeof r.then)return r}const i=Object.create(null);n.r(i);const a={};t=t||[null,e({}),e([]),e(e)];for(var l=2&o&&r;("object"==typeof l||"function"==typeof l)&&!~t.indexOf(l);l=e(l))Object.getOwnPropertyNames(l).forEach(e=>a[e]=()=>r[e]);return a.default=()=>r,n.d(i,a),i}})(),n.d=(e,t)=>{if(Array.isArray(t))for(var r=0;r<t.length;){var o=t[r++],i=t[r++],a=0===i?{enumerable:!0,value:t[r++]}:{enumerable:!0,get:i};n.o(e,o)||Object.defineProperty(e,o,a)}else for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.f={},n.e=e=>{const t=[];return n.f.j(e,t),Promise.all(t)},n.u=e=>e+".proctor.js",n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e={},t="Proctor:";n.l=(r,o,i,a)=>{if(e[r])return void e[r].push(o);let l,s;if(void 0!==i){const e=document.getElementsByTagName("script");for(var c=0;c<e.length;c++){const n=e[c];if(n.getAttribute("src")==r||n.getAttribute("data-webpack")==t+i){l=n;break}}}l||(s=!0,l=document.createElement("script"),l.charset="utf-8",n.nc&&l.setAttribute("nonce",n.nc),l.setAttribute("data-webpack",t+i),l.src=r),e[r]=[o];const u=(t,n)=>{l.onerror=l.onload=null,clearTimeout(d);const o=e[r];if(delete e[r],l.parentNode?.removeChild(l),o?.forEach(e=>e(n)),t)return t(n)},d=setTimeout(u.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=u.bind(null,l.onerror),l.onload=u.bind(null,l.onload),s&&document.head.appendChild(l)}})(),n.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;n.g.importScripts&&(e=n.g.location+"");const t=n.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const n=t.getElementsByTagName("script");if(n.length){let t=n.length-1;for(;t>-1&&(!e||!/^https?:/.test(e));)e=n[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),n.p=e})(),(()=>{n.b="undefined"!=typeof document&&document.baseURI||self.location.href;const e={792:0};n.f.j=(t,r)=>{let o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{const i=new Promise((n,r)=>o=e[t]=[n,r]);r.push(o[2]=i);const a=new Error,l=r=>{if(n.o(e,t)&&(o=e[t],0!==o&&(e[t]=void 0),o)){const e=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+e+": "+n+")",a.name="ChunkLoadError",a.type=e,a.request=n,a.event=r,o[1](a)}};n.l(n.p+n.u(t),l,"chunk-"+t,t)}};const t=(t,r)=>{let[o,i,a]=r;var l,s,c=0;if(o.some(t=>0!==e[t])){for(l in i)n.o(i,l)&&(n.m[l]=i[l]);a&&a(n)}for(t&&t(r);c<o.length;c++)s=o[c],n.o(e,s)&&e[s]&&e[s][0](),e[s]=0},r=this.webpackChunkProctor=this.webpackChunkProctor||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),n.nc=void 0;let r={};return(()=>{"use strict";n.d(r,{default:()=>Ky});var e=n.cw(function(e,t){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},l=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,o=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(t in e);return void 0===t||n.call(e,t)},s=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,n,r,o,i,u,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=c(d,n),d!==(o=c(t,n))&&(h&&o&&(l(o)||(i=a(o)))?(i?(i=!1,u=r&&a(r)?r:[]):u=r&&l(r)?r:{},s(d,{name:n,newValue:e(h,u,o)})):void 0!==o&&s(d,{name:n,newValue:o}));return d}}),t=n.cw(function(e,t){var n=s(),r=d();function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,a={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(a[e]=t,e=0;e<t.length;e++)i.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},m={};function y(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){b[e]=new y(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];b[t]=new y(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){b[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){b[e]=new y(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){b[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){b[e]=new y(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){b[e]=new y(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){b[e]=new y(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){b[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)});var g=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function w(e,t,n,r){var o=b.hasOwnProperty(t)?b[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!f.call(m,e)||!f.call(h,e)&&(p.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(g,v);b[t]=new y(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(g,v);b[t]=new y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(g,v);b[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){b[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)}),b.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){b[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)});var x=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=Symbol.for("react.element"),S=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),T=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var L=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var z=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=z&&e[z]||e["@@iterator"])?e:null}var R,D=Object.assign;function F(e){if(void 0===R)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);R=t&&t[1]||""}return"\n"+R+e}var B=!1;function q(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function U(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return q(e.type,!1);case 11:return q(e.type.render,!1);case 1:return q(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case _:return"Fragment";case S:return"Portal";case E:return"Profiler";case C:return"StrictMode";case N:return"Suspense";case O:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case A:return(e._context.displayName||"Context")+".Provider";case j:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return W(e(t))}catch(e){}}return null}function V(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function H(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=H(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function $(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=H(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Q(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function J(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function Z(e,t){J(e,t);var n=Q(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?te(e,t.type,n):t.hasOwnProperty("defaultValue")&&te(e,t.type,Q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ee(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function te(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ne=Array.isArray;function re(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Q(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function oe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return D({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(ne(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Q(n)}}function ae(e,t){var n=Q(t.value),r=Q(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function le(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ce(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,de,fe=(de=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return de(e,t)})}:de);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function ye(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function be(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ye(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(he).forEach(function(e){me.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]})});var ge=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function we(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,_e=null,Ce=null;function Ee(e){if(e=xo(e)){if("function"!=typeof Se)throw Error(o(280));var t=e.stateNode;t&&(t=So(t),Se(e.stateNode,e.type,t))}}function Ae(e){_e?Ce?Ce.push(e):Ce=[e]:_e=e}function Te(){if(_e){var e=_e,t=Ce;if(Ce=_e=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function je(e,t){return e(t)}function Ne(){}var Oe=!1;function Pe(e,t,n){if(Oe)return e(t,n);Oe=!0;try{return je(e,t,n)}finally{Oe=!1,(null!==_e||null!==Ce)&&(Ne(),Te())}}function Ie(e,t){var n=e.stateNode;if(null===n)return null;var r=So(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Le=!1;if(u)try{var ze={};Object.defineProperty(ze,"passive",{get:function(){Le=!0}}),window.addEventListener("test",ze,ze),window.removeEventListener("test",ze,ze)}catch(de){Le=!1}function Me(e,t,n,r,o,i,a,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Re=!1,De=null,Fe=!1,Be=null,qe={onError:function(e){Re=!0,De=e}};function Ue(e,t,n,r,o,i,a,l,s){Re=!1,De=null,Me.apply(qe,arguments)}function We(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Qe(e){if(We(e)!==e)throw Error(o(188))}function He(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=We(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Qe(i),e;if(a===r)return Qe(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var l=!1,s=i.child;s;){if(s===n){l=!0,n=i,r=a;break}if(s===r){l=!0,r=i,n=a;break}s=s.sibling}if(!l){for(s=a.child;s;){if(s===n){l=!0,n=a,r=i;break}if(s===r){l=!0,r=a,n=i;break}s=s.sibling}if(!l)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ke(e):null}function Ke(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ke(e);if(null!==t)return t;e=e.sibling}return null}var $e=r.unstable_scheduleCallback,Ye=r.unstable_cancelCallback,Ge=r.unstable_shouldYield,Xe=r.unstable_requestPaint,Je=r.unstable_now,Ze=r.unstable_getCurrentPriorityLevel,et=r.unstable_ImmediatePriority,tt=r.unstable_UserBlockingPriority,nt=r.unstable_NormalPriority,rt=r.unstable_LowPriority,ot=r.unstable_IdlePriority,it=null,at=null,lt=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/ct|0)|0},st=Math.log,ct=Math.LN2,ut=64,dt=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=ft(l):0!==(i&=a)&&(r=ft(i))}else 0!==(a=n&~o)?r=ft(a):0!==i&&(r=ft(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-lt(t)),r|=e[n],t&=~o;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function mt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function yt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-lt(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-lt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var wt=0;function xt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var kt,St,_t,Ct,Et,At=!1,Tt=[],jt=null,Nt=null,Ot=null,Pt=new Map,It=new Map,Lt=[],zt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mt(e,t){switch(e){case"focusin":case"focusout":jt=null;break;case"dragenter":case"dragleave":Nt=null;break;case"mouseover":case"mouseout":Ot=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Rt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=xo(t))&&St(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Dt(e){var t=wo(e.target);if(null!==t){var n=We(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void Et(e.priority,function(){_t(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Bt(e,t,n){Ft(e)&&n.delete(t)}function qt(){At=!1,null!==jt&&Ft(jt)&&(jt=null),null!==Nt&&Ft(Nt)&&(Nt=null),null!==Ot&&Ft(Ot)&&(Ot=null),Pt.forEach(Bt),It.forEach(Bt)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,At||(At=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,qt)))}function Wt(e){function t(t){return Ut(t,e)}if(0<Tt.length){Ut(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==jt&&Ut(jt,e),null!==Nt&&Ut(Nt,e),null!==Ot&&Ut(Ot,e),Pt.forEach(t),It.forEach(t),n=0;n<Lt.length;n++)(r=Lt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Lt.length&&null===(n=Lt[0]).blockedOn;)Dt(n),null===n.blockedOn&&Lt.shift()}var Vt=x.ReactCurrentBatchConfig,Qt=!0;function Ht(e,t,n,r){var o=wt,i=Vt.transition;Vt.transition=null;try{wt=1,$t(e,t,n,r)}finally{wt=o,Vt.transition=i}}function Kt(e,t,n,r){var o=wt,i=Vt.transition;Vt.transition=null;try{wt=4,$t(e,t,n,r)}finally{wt=o,Vt.transition=i}}function $t(e,t,n,r){if(Qt){var o=Gt(e,t,n,r);if(null===o)Qr(e,t,r,Yt,n),Mt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return jt=Rt(jt,e,t,n,r,o),!0;case"dragenter":return Nt=Rt(Nt,e,t,n,r,o),!0;case"mouseover":return Ot=Rt(Ot,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Pt.set(i,Rt(Pt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,It.set(i,Rt(It.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Mt(e,r),4&t&&-1<zt.indexOf(e)){for(;null!==o;){var i=xo(o);if(null!==i&&kt(i),null===(i=Gt(e,t,n,r))&&Qr(e,t,r,Yt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Qr(e,t,r,null,n)}}var Yt=null;function Gt(e,t,n,r){if(Yt=null,null!==(e=wo(e=ke(r))))if(null===(t=We(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case et:return 1;case tt:return 4;case nt:case rt:return 16;case ot:return 536870912;default:return 16}default:return 16}}var Jt=null,Zt=null,en=null;function tn(){if(en)return en;var e,t,n=Zt,r=n.length,o="value"in Jt?Jt.value:Jt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return en=o.slice(e,1<t?1-t:void 0)}function nn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rn(){return!0}function on(){return!1}function an(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?rn:on,this.isPropagationStopped=on,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rn)},persist:function(){},isPersistent:rn}),t}var ln,sn,cn,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=an(un),fn=D({},un,{view:0,detail:0}),pn=an(fn),hn=D({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(ln=e.screenX-cn.screenX,sn=e.screenY-cn.screenY):sn=ln=0,cn=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),mn=an(hn),yn=an(D({},hn,{dataTransfer:0})),bn=an(D({},fn,{relatedTarget:0})),gn=an(D({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=D({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wn=an(vn),xn=an(D({},un,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_n={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=_n[e])&&!!t[e]}function En(){return Cn}var An=D({},fn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=nn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?nn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?nn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=an(An),jn=an(D({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=an(D({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),On=an(D({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=D({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=an(Pn),Ln=[9,13,27,32],zn=u&&"CompositionEvent"in window,Mn=null;u&&"documentMode"in document&&(Mn=document.documentMode);var Rn=u&&"TextEvent"in window&&!Mn,Dn=u&&(!zn||Mn&&8<Mn&&11>=Mn),Fn=String.fromCharCode(32),Bn=!1;function qn(e,t){switch(e){case"keyup":return-1!==Ln.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1,Vn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function Hn(e,t,n,r){Ae(r),0<(t=Kr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,$n=null;function Yn(e){Fr(e,0)}function Gn(e){if($(ko(e)))return e}function Xn(e,t){if("change"===e)return t}var Jn=!1;if(u){var Zn;if(u){var er="oninput"in document;if(!er){var tr=document.createElement("div");tr.setAttribute("oninput","return;"),er="function"==typeof tr.oninput}Zn=er}else Zn=!1;Jn=Zn&&(!document.documentMode||9<document.documentMode)}function nr(){Kn&&(Kn.detachEvent("onpropertychange",rr),$n=Kn=null)}function rr(e){if("value"===e.propertyName&&Gn($n)){var t=[];Hn(t,$n,e,ke(e)),Pe(Yn,t)}}function or(e,t,n){"focusin"===e?(nr(),$n=n,(Kn=t).attachEvent("onpropertychange",rr)):"focusout"===e&&nr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn($n)}function ar(e,t){if("click"===e)return Gn(t)}function lr(e,t){if("input"===e||"change"===e)return Gn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function cr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!f.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function mr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=dr(n,i);var a=dr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var yr=u&&"documentMode"in document&&11>=document.documentMode,br=null,gr=null,vr=null,wr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wr||null==br||br!==Y(r)||(r="selectionStart"in(r=br)&&hr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&cr(vr,r)||(vr=r,0<(r=Kr(gr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=br)))}function kr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:kr("Animation","AnimationEnd"),animationiteration:kr("Animation","AnimationIteration"),animationstart:kr("Animation","AnimationStart"),transitionend:kr("Transition","TransitionEnd")},_r={},Cr={};function Er(e){if(_r[e])return _r[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return _r[e]=n[t];return e}u&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var Ar=Er("animationend"),Tr=Er("animationiteration"),jr=Er("animationstart"),Nr=Er("transitionend"),Or=new Map,Pr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(e,t){Or.set(e,t),l(t,[e])}for(var Lr=0;Lr<Pr.length;Lr++){var zr=Pr[Lr];Ir(zr.toLowerCase(),"on"+(zr[0].toUpperCase()+zr.slice(1)))}Ir(Ar,"onAnimationEnd"),Ir(Tr,"onAnimationIteration"),Ir(jr,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(Nr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Rr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mr));function Dr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,l,s,c){if(Ue.apply(this,arguments),Re){if(!Re)throw Error(o(198));var u=De;Re=!1,De=null,Fe||(Fe=!0,Be=u)}}(r,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;Dr(o,l,c),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,c=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;Dr(o,l,c),i=s}}}if(Fe)throw e=Be,Fe=!1,Be=null,e}function Br(e,t){var n=t[bo];void 0===n&&(n=t[bo]=new Set);var r=e+"__bubble";n.has(r)||(Vr(t,e,2,!1),n.add(r))}function qr(e,t,n){var r=0;t&&(r|=4),Vr(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function Wr(e){if(!e[Ur]){e[Ur]=!0,i.forEach(function(t){"selectionchange"!==t&&(Rr.has(t)||qr(t,!1,e),qr(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,qr("selectionchange",!1,t))}}function Vr(e,t,n,r){switch(Xt(t)){case 1:var o=Ht;break;case 4:o=Kt;break;default:o=$t}n=o.bind(null,t,n,e),o=void 0,!Le||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Qr(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=wo(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}Pe(function(){var r=i,o=ke(n),a=[];e:{var l=Or.get(e);if(void 0!==l){var s=dn,c=e;switch(e){case"keypress":if(0===nn(n))break e;case"keydown":case"keyup":s=Tn;break;case"focusin":c="focus",s=bn;break;case"focusout":c="blur",s=bn;break;case"beforeblur":case"afterblur":s=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Nn;break;case Ar:case Tr:case jr:s=gn;break;case Nr:s=On;break;case"scroll":s=pn;break;case"wheel":s=In;break;case"copy":case"cut":case"paste":s=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=jn}var u=!!(4&t),d=!u&&"scroll"===e,f=u?null!==l?l+"Capture":null:l;u=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&null!=(m=Ie(h,f))&&u.push(Hr(h,m,p))),d)break;h=h.return}0<u.length&&(l=new s(l,c,null,n,o),a.push({event:l,listeners:u}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===xe||!(c=n.relatedTarget||n.fromElement)||!wo(c)&&!c[yo])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(c=(c=n.relatedTarget||n.toElement)?wo(c):null)&&(c!==(d=We(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=mn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=jn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==s?l:ko(s),p=null==c?l:ko(c),(l=new u(m,h+"leave",s,n,o)).target=d,l.relatedTarget=p,m=null,wo(o)===r&&((u=new u(f,h+"enter",c,n,o)).target=p,u.relatedTarget=d,m=u),d=m,s&&c)e:{for(f=c,h=0,p=u=s;p;p=$r(p))h++;for(p=0,m=f;m;m=$r(m))p++;for(;0<h-p;)u=$r(u),h--;for(;0<p-h;)f=$r(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=$r(u),f=$r(f)}u=null}else u=null;null!==s&&Yr(a,l,s,u,!1),null!==c&&null!==d&&Yr(a,d,c,u,!0)}if("select"===(s=(l=r?ko(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var y=Xn;else if(Qn(l))if(Jn)y=lr;else{y=ir;var b=or}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(y=ar);switch(y&&(y=y(e,r))?Hn(a,y,n,o):(b&&b(e,l,r),"focusout"===e&&(b=l._wrapperState)&&b.controlled&&"number"===l.type&&te(l,"number",l.value)),b=r?ko(r):window,e){case"focusin":(Qn(b)||"true"===b.contentEditable)&&(br=b,gr=r,vr=null);break;case"focusout":vr=gr=br=null;break;case"mousedown":wr=!0;break;case"contextmenu":case"mouseup":case"dragend":wr=!1,xr(a,n,o);break;case"selectionchange":if(yr)break;case"keydown":case"keyup":xr(a,n,o)}var g;if(zn)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else Wn?qn(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(Dn&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==v?"onCompositionEnd"===v&&Wn&&(g=tn()):(Zt="value"in(Jt=o)?Jt.value:Jt.textContent,Wn=!0)),0<(b=Kr(r,v)).length&&(v=new xn(v,e,null,n,o),a.push({event:v,listeners:b}),(g||null!==(g=Un(n)))&&(v.data=g))),(g=Rn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Bn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!zn&&qn(e,t)?(e=tn(),en=Zt=Jt=null,Wn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Kr(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=g)}Fr(a,t)})}function Hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Kr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ie(e,n))&&r.unshift(Hr(e,i,o)),null!=(i=Ie(e,t))&&r.push(Hr(e,i,o))),e=e.return}return r}function $r(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==c&&(l=c,o?null!=(s=Ie(n,i))&&a.unshift(Hr(n,s,l)):o||null!=(s=Ie(n,i))&&a.push(Hr(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Gr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Jr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Xr,"")}function Zr(e,t,n){if(t=Jr(t),Jr(e)!==t&&n)throw Error(o(425))}function eo(){}var to=null,no=null;function ro(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var oo="function"==typeof setTimeout?setTimeout:void 0,io="function"==typeof clearTimeout?clearTimeout:void 0,ao="function"==typeof Promise?Promise:void 0,lo="function"==typeof queueMicrotask?queueMicrotask:void 0!==ao?function(e){return ao.resolve(null).then(e).catch(so)}:oo;function so(e){setTimeout(function(){throw e})}function co(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Wt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Wt(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function fo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),ho="__reactFiber$"+po,mo="__reactProps$"+po,yo="__reactContainer$"+po,bo="__reactEvents$"+po,go="__reactListeners$"+po,vo="__reactHandles$"+po;function wo(e){var t=e[ho];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yo]||n[ho]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=fo(e);null!==e;){if(n=e[ho])return n;e=fo(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[ho]||e[yo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ko(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function So(e){return e[mo]||null}var _o=[],Co=-1;function Eo(e){return{current:e}}function Ao(e){0>Co||(e.current=_o[Co],_o[Co]=null,Co--)}function To(e,t){Co++,_o[Co]=e.current,e.current=t}var jo={},No=Eo(jo),Oo=Eo(!1),Po=jo;function Io(e,t){var n=e.type.contextTypes;if(!n)return jo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Lo(e){return null!=e.childContextTypes}function zo(){Ao(Oo),Ao(No)}function Mo(e,t,n){if(No.current!==jo)throw Error(o(168));To(No,t),To(Oo,n)}function Ro(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,V(e)||"Unknown",i));return D({},n,r)}function Do(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jo,Po=No.current,To(No,e),To(Oo,Oo.current),!0}function Fo(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Ro(e,t,Po),r.__reactInternalMemoizedMergedChildContext=e,Ao(Oo),Ao(No),To(No,e)):Ao(Oo),To(Oo,n)}var Bo=null,qo=!1,Uo=!1;function Wo(e){null===Bo?Bo=[e]:Bo.push(e)}function Vo(){if(!Uo&&null!==Bo){Uo=!0;var e=0,t=wt;try{var n=Bo;for(wt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Bo=null,qo=!1}catch(t){throw null!==Bo&&(Bo=Bo.slice(e+1)),$e(et,Vo),t}finally{wt=t,Uo=!1}}return null}var Qo=[],Ho=0,Ko=null,$o=0,Yo=[],Go=0,Xo=null,Jo=1,Zo="";function ei(e,t){Qo[Ho++]=$o,Qo[Ho++]=Ko,Ko=e,$o=t}function ti(e,t,n){Yo[Go++]=Jo,Yo[Go++]=Zo,Yo[Go++]=Xo,Xo=e;var r=Jo;e=Zo;var o=32-lt(r)-1;r&=~(1<<o),n+=1;var i=32-lt(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Jo=1<<32-lt(t)+o|n<<o|r,Zo=i+e}else Jo=1<<i|n<<o|r,Zo=e}function ni(e){null!==e.return&&(ei(e,1),ti(e,1,0))}function ri(e){for(;e===Ko;)Ko=Qo[--Ho],Qo[Ho]=null,$o=Qo[--Ho],Qo[Ho]=null;for(;e===Xo;)Xo=Yo[--Go],Yo[Go]=null,Zo=Yo[--Go],Yo[Go]=null,Jo=Yo[--Go],Yo[Go]=null}var oi=null,ii=null,ai=!1,li=null;function si(e,t){var n=Pc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ci(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,oi=e,ii=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,oi=e,ii=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xo?{id:Jo,overflow:Zo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Pc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,oi=e,ii=null,!0);default:return!1}}function ui(e){return!(!(1&e.mode)||128&e.flags)}function di(e){if(ai){var t=ii;if(t){var n=t;if(!ci(e,t)){if(ui(e))throw Error(o(418));t=uo(n.nextSibling);var r=oi;t&&ci(e,t)?si(r,n):(e.flags=-4097&e.flags|2,ai=!1,oi=e)}}else{if(ui(e))throw Error(o(418));e.flags=-4097&e.flags|2,ai=!1,oi=e}}}function fi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;oi=e}function pi(e){if(e!==oi)return!1;if(!ai)return fi(e),ai=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ro(e.type,e.memoizedProps)),t&&(t=ii)){if(ui(e))throw hi(),Error(o(418));for(;t;)si(e,t),t=uo(t.nextSibling)}if(fi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ii=uo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ii=null}}else ii=oi?uo(e.stateNode.nextSibling):null;return!0}function hi(){for(var e=ii;e;)e=uo(e.nextSibling)}function mi(){ii=oi=null,ai=!1}function yi(e){null===li?li=[e]:li.push(e)}var bi=x.ReactCurrentBatchConfig;function gi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function vi(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function wi(e){return(0,e._init)(e._payload)}function xi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Lc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Dc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===_?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===I&&wi(o)===t.type)?((r=i(t,n.props)).ref=gi(e,t,n),r.return=e,r):((r=zc(n.type,n.key,n.props,null,e.mode,r)).ref=gi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Mc(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Dc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case k:return(n=zc(t.type,t.key,t.props,null,e.mode,n)).ref=gi(e,null,t),n.return=e,n;case S:return(t=Fc(t,e.mode,n)).return=e,t;case I:return f(e,(0,t._init)(t._payload),n)}if(ne(t)||M(t))return(t=Mc(t,e.mode,n,null)).return=e,t;vi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===o?c(e,t,n,r):null;case S:return n.key===o?u(e,t,n,r):null;case I:return p(e,t,(o=n._init)(n._payload),r)}if(ne(n)||M(n))return null!==o?null:d(e,t,n,r,null);vi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case S:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case I:return h(e,t,n,(0,r._init)(r._payload),o)}if(ne(r)||M(r))return d(t,e=e.get(n)||null,r,o,null);vi(t,r)}return null}function m(o,i,l,s){for(var c=null,u=null,d=i,m=i=0,y=null;null!==d&&m<l.length;m++){d.index>m?(y=d,d=null):y=d.sibling;var b=p(o,d,l[m],s);if(null===b){null===d&&(d=y);break}e&&d&&null===b.alternate&&t(o,d),i=a(b,i,m),null===u?c=b:u.sibling=b,u=b,d=y}if(m===l.length)return n(o,d),ai&&ei(o,m),c;if(null===d){for(;m<l.length;m++)null!==(d=f(o,l[m],s))&&(i=a(d,i,m),null===u?c=d:u.sibling=d,u=d);return ai&&ei(o,m),c}for(d=r(o,d);m<l.length;m++)null!==(y=h(d,o,m,l[m],s))&&(e&&null!==y.alternate&&d.delete(null===y.key?m:y.key),i=a(y,i,m),null===u?c=y:u.sibling=y,u=y);return e&&d.forEach(function(e){return t(o,e)}),ai&&ei(o,m),c}function y(i,l,s,c){var u=M(s);if("function"!=typeof u)throw Error(o(150));if(null==(s=u.call(s)))throw Error(o(151));for(var d=u=null,m=l,y=l=0,b=null,g=s.next();null!==m&&!g.done;y++,g=s.next()){m.index>y?(b=m,m=null):b=m.sibling;var v=p(i,m,g.value,c);if(null===v){null===m&&(m=b);break}e&&m&&null===v.alternate&&t(i,m),l=a(v,l,y),null===d?u=v:d.sibling=v,d=v,m=b}if(g.done)return n(i,m),ai&&ei(i,y),u;if(null===m){for(;!g.done;y++,g=s.next())null!==(g=f(i,g.value,c))&&(l=a(g,l,y),null===d?u=g:d.sibling=g,d=g);return ai&&ei(i,y),u}for(m=r(i,m);!g.done;y++,g=s.next())null!==(g=h(m,i,y,g.value,c))&&(e&&null!==g.alternate&&m.delete(null===g.key?y:g.key),l=a(g,l,y),null===d?u=g:d.sibling=g,d=g);return e&&m.forEach(function(e){return t(i,e)}),ai&&ei(i,y),u}return function e(r,o,a,s){if("object"==typeof a&&null!==a&&a.type===_&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case k:e:{for(var c=a.key,u=o;null!==u;){if(u.key===c){if((c=a.type)===_){if(7===u.tag){n(r,u.sibling),(o=i(u,a.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===I&&wi(c)===u.type){n(r,u.sibling),(o=i(u,a.props)).ref=gi(r,u,a),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===_?((o=Mc(a.props.children,r.mode,s,a.key)).return=r,r=o):((s=zc(a.type,a.key,a.props,null,r.mode,s)).ref=gi(r,o,a),s.return=r,r=s)}return l(r);case S:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Fc(a,r.mode,s)).return=r,r=o}return l(r);case I:return e(r,o,(u=a._init)(a._payload),s)}if(ne(a))return m(r,o,a,s);if(M(a))return y(r,o,a,s);vi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Dc(a,r.mode,s)).return=r,r=o),l(r)):n(r,o)}}var ki=xi(!0),Si=xi(!1),_i=Eo(null),Ci=null,Ei=null,Ai=null;function Ti(){Ai=Ei=Ci=null}function ji(e){var t=_i.current;Ao(_i),e._currentValue=t}function Ni(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Oi(e,t){Ci=e,Ai=Ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(wl=!0),e.firstContext=null)}function Pi(e){var t=e._currentValue;if(Ai!==e)if(e={context:e,memoizedValue:t,next:null},null===Ei){if(null===Ci)throw Error(o(308));Ei=e,Ci.dependencies={lanes:0,firstContext:e}}else Ei=Ei.next=e;return t}var Ii=null;function Li(e){null===Ii?Ii=[e]:Ii.push(e)}function zi(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Li(t)):(n.next=o.next,o.next=n),t.interleaved=n,Mi(e,r)}function Mi(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ri=!1;function Di(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function qi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&js){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Mi(e,n)}return null===(o=r.interleaved)?(t.next=t,Li(r)):(t.next=o.next,o.next=t),r.interleaved=t,Mi(e,n)}function Ui(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function Wi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Vi(e,t,n,r){var o=e.updateQueue;Ri=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,c=s.next;s.next=null,null===a?i=c:a.next=c,a=s;var u=e.alternate;null!==u&&(l=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s)}if(null!==i){var d=o.baseState;for(a=0,u=c=s=null,l=i;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=D({},d,f);break e;case 2:Ri=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=p,s=d):u=u.next=p,a|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(f=l).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Rs|=a,e.lanes=a,e.memoizedState=d}}function Qi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(o(191,i));i.call(r)}}}var Hi={},Ki=Eo(Hi),$i=Eo(Hi),Yi=Eo(Hi);function Gi(e){if(e===Hi)throw Error(o(174));return e}function Xi(e,t){switch(To(Yi,t),To($i,e),To(Ki,Hi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ce(null,"");break;default:t=ce(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ao(Ki),To(Ki,t)}function Ji(){Ao(Ki),Ao($i),Ao(Yi)}function Zi(e){Gi(Yi.current);var t=Gi(Ki.current),n=ce(t,e.type);t!==n&&(To($i,e),To(Ki,n))}function ea(e){$i.current===e&&(Ao(Ki),Ao($i))}var ta=Eo(0);function na(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ra=[];function oa(){for(var e=0;e<ra.length;e++)ra[e]._workInProgressVersionPrimary=null;ra.length=0}var ia=x.ReactCurrentDispatcher,aa=x.ReactCurrentBatchConfig,la=0,sa=null,ca=null,ua=null,da=!1,fa=!1,pa=0,ha=0;function ma(){throw Error(o(321))}function ya(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ba(e,t,n,r,i,a){if(la=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?el:tl,e=n(r,i),fa){a=0;do{if(fa=!1,pa=0,25<=a)throw Error(o(301));a+=1,ua=ca=null,t.updateQueue=null,ia.current=nl,e=n(r,i)}while(fa)}if(ia.current=Za,t=null!==ca&&null!==ca.next,la=0,ua=ca=sa=null,da=!1,t)throw Error(o(300));return e}function ga(){var e=0!==pa;return pa=0,e}function va(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ua?sa.memoizedState=ua=e:ua=ua.next=e,ua}function wa(){if(null===ca){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=ca.next;var t=null===ua?sa.memoizedState:ua.next;if(null!==t)ua=t,ca=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ca=e).memoizedState,baseState:ca.baseState,baseQueue:ca.baseQueue,queue:ca.queue,next:null},null===ua?sa.memoizedState=ua=e:ua=ua.next=e}return ua}function xa(e,t){return"function"==typeof t?t(e):t}function ka(e){var t=wa(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=ca,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var l=i.next;i.next=a.next,a.next=l}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var s=l=null,c=null,u=a;do{var d=u.lane;if((la&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(s=c=f,l=r):c=c.next=f,sa.lanes|=d,Rs|=d}u=u.next}while(null!==u&&u!==a);null===c?l=r:c.next=s,sr(r,t.memoizedState)||(wl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Rs|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Sa(e){var t=wa(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var l=i=i.next;do{a=e(a,l.action),l=l.next}while(l!==i);sr(a,t.memoizedState)||(wl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function _a(){}function Ca(e,t){var n=sa,r=wa(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,wl=!0),r=r.queue,Ra(Ta.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(n.flags|=2048,Pa(9,Aa.bind(null,n,r,i,t),void 0,null),null===Ns)throw Error(o(349));30&la||Ea(n,t,i)}return i}function Ea(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Aa(e,t,n,r){t.value=n,t.getSnapshot=r,ja(t)&&Na(e)}function Ta(e,t,n){return n(function(){ja(t)&&Na(e)})}function ja(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Na(e){var t=Mi(e,1);null!==t&&rc(t,e,1,-1)}function Oa(e){var t=va();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ya.bind(null,sa,e),[t.memoizedState,e]}function Pa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ia(){return wa().memoizedState}function La(e,t,n,r){var o=va();sa.flags|=e,o.memoizedState=Pa(1|t,n,void 0,void 0===r?null:r)}function za(e,t,n,r){var o=wa();r=void 0===r?null:r;var i=void 0;if(null!==ca){var a=ca.memoizedState;if(i=a.destroy,null!==r&&ya(r,a.deps))return void(o.memoizedState=Pa(t,n,i,r))}sa.flags|=e,o.memoizedState=Pa(1|t,n,i,r)}function Ma(e,t){return La(8390656,8,e,t)}function Ra(e,t){return za(2048,8,e,t)}function Da(e,t){return za(4,2,e,t)}function Fa(e,t){return za(4,4,e,t)}function Ba(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function qa(e,t,n){return n=null!=n?n.concat([e]):null,za(4,4,Ba.bind(null,t,e),n)}function Ua(){}function Wa(e,t){var n=wa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ya(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Va(e,t){var n=wa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ya(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qa(e,t,n){return 21&la?(sr(n,t)||(n=yt(),sa.lanes|=n,Rs|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,wl=!0),e.memoizedState=n)}function Ha(e,t){var n=wt;wt=0!==n&&4>n?n:4,e(!0);var r=aa.transition;aa.transition={};try{e(!1),t()}finally{wt=n,aa.transition=r}}function Ka(){return wa().memoizedState}function $a(e,t,n){var r=nc(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ga(e)?Xa(t,n):null!==(n=zi(e,t,n,r))&&(rc(n,e,r,tc()),Ja(n,t,r))}function Ya(e,t,n){var r=nc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ga(e))Xa(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,sr(l,a)){var s=t.interleaved;return null===s?(o.next=o,Li(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=zi(e,t,o,r))&&(rc(n,e,r,o=tc()),Ja(n,t,r))}}function Ga(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Xa(e,t){fa=da=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ja(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var Za={readContext:Pi,useCallback:ma,useContext:ma,useEffect:ma,useImperativeHandle:ma,useInsertionEffect:ma,useLayoutEffect:ma,useMemo:ma,useReducer:ma,useRef:ma,useState:ma,useDebugValue:ma,useDeferredValue:ma,useTransition:ma,useMutableSource:ma,useSyncExternalStore:ma,useId:ma,unstable_isNewReconciler:!1},el={readContext:Pi,useCallback:function(e,t){return va().memoizedState=[e,void 0===t?null:t],e},useContext:Pi,useEffect:Ma,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,La(4194308,4,Ba.bind(null,t,e),n)},useLayoutEffect:function(e,t){return La(4194308,4,e,t)},useInsertionEffect:function(e,t){return La(4,2,e,t)},useMemo:function(e,t){var n=va();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=va();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=$a.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},va().memoizedState=e},useState:Oa,useDebugValue:Ua,useDeferredValue:function(e){return va().memoizedState=e},useTransition:function(){var e=Oa(!1),t=e[0];return e=Ha.bind(null,e[1]),va().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,i=va();if(ai){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Ns)throw Error(o(349));30&la||Ea(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ma(Ta.bind(null,r,a,e),[e]),r.flags|=2048,Pa(9,Aa.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=va(),t=Ns.identifierPrefix;if(ai){var n=Zo;t=":"+t+"R"+(n=(Jo&~(1<<32-lt(Jo)-1)).toString(32)+n),0<(n=pa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ha++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},tl={readContext:Pi,useCallback:Wa,useContext:Pi,useEffect:Ra,useImperativeHandle:qa,useInsertionEffect:Da,useLayoutEffect:Fa,useMemo:Va,useReducer:ka,useRef:Ia,useState:function(){return ka(xa)},useDebugValue:Ua,useDeferredValue:function(e){return Qa(wa(),ca.memoizedState,e)},useTransition:function(){return[ka(xa)[0],wa().memoizedState]},useMutableSource:_a,useSyncExternalStore:Ca,useId:Ka,unstable_isNewReconciler:!1},nl={readContext:Pi,useCallback:Wa,useContext:Pi,useEffect:Ra,useImperativeHandle:qa,useInsertionEffect:Da,useLayoutEffect:Fa,useMemo:Va,useReducer:Sa,useRef:Ia,useState:function(){return Sa(xa)},useDebugValue:Ua,useDeferredValue:function(e){var t=wa();return null===ca?t.memoizedState=e:Qa(t,ca.memoizedState,e)},useTransition:function(){return[Sa(xa)[0],wa().memoizedState]},useMutableSource:_a,useSyncExternalStore:Ca,useId:Ka,unstable_isNewReconciler:!1};function rl(e,t){if(e&&e.defaultProps){for(var n in t=D({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function ol(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:D({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var il={isMounted:function(e){return!!(e=e._reactInternals)&&We(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),i=Bi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=qi(e,i,o))&&(rc(t,e,o,r),Ui(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),i=Bi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=qi(e,i,o))&&(rc(t,e,o,r),Ui(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),o=Bi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=qi(e,o,r))&&(rc(t,e,r,n),Ui(t,e,r))}};function al(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&cr(n,r)&&cr(o,i))}function ll(e,t,n){var r=!1,o=jo,i=t.contextType;return"object"==typeof i&&null!==i?i=Pi(i):(o=Lo(t)?Po:No.current,i=(r=null!=(r=t.contextTypes))?Io(e,o):jo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=il,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function sl(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&il.enqueueReplaceState(t,t.state,null)}function cl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Di(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Pi(i):(i=Lo(t)?Po:No.current,o.context=Io(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(ol(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&il.enqueueReplaceState(o,o.state,null),Vi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function ul(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function dl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fl(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var pl="function"==typeof WeakMap?WeakMap:Map;function hl(e,t,n){(n=Bi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Qs||(Qs=!0,Hs=r),fl(0,t)},n}function ml(e,t,n){(n=Bi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){fl(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){fl(0,t),"function"!=typeof r&&(null===Ks?Ks=new Set([this]):Ks.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function yl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ec.bind(null,e,t,n),t.then(e,e))}function bl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gl(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Bi(-1,1)).tag=2,qi(n,t,1))),n.lanes|=1),e)}var vl=x.ReactCurrentOwner,wl=!1;function xl(e,t,n,r){t.child=null===e?Si(t,null,n,r):ki(t,e.child,n,r)}function kl(e,t,n,r,o){n=n.render;var i=t.ref;return Oi(t,o),r=ba(e,t,n,r,i,o),n=ga(),null===e||wl?(ai&&n&&ni(t),t.flags|=1,xl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ql(e,t,o))}function Sl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Ic(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=zc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,_l(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:cr)(a,r)&&e.ref===t.ref)return Ql(e,t,o)}return t.flags|=1,(e=Lc(i,r)).ref=t.ref,e.return=t,t.child=e}function _l(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(cr(i,r)&&e.ref===t.ref){if(wl=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Ql(e,t,o);131072&e.flags&&(wl=!0)}}return Al(e,t,n,r,o)}function Cl(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,To(Ls,Is),Is|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,To(Ls,Is),Is|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},To(Ls,Is),Is|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,To(Ls,Is),Is|=r;return xl(e,t,o,n),t.child}function El(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Al(e,t,n,r,o){var i=Lo(n)?Po:No.current;return i=Io(t,i),Oi(t,o),n=ba(e,t,n,r,i,o),r=ga(),null===e||wl?(ai&&r&&ni(t),t.flags|=1,xl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ql(e,t,o))}function Tl(e,t,n,r,o){if(Lo(n)){var i=!0;Do(t)}else i=!1;if(Oi(t,o),null===t.stateNode)Vl(e,t),ll(t,n,r),cl(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=n.contextType;c="object"==typeof c&&null!==c?Pi(c):Io(t,c=Lo(n)?Po:No.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==c)&&sl(t,a,r,c),Ri=!1;var f=t.memoizedState;a.state=f,Vi(t,r,a,o),s=t.memoizedState,l!==r||f!==s||Oo.current||Ri?("function"==typeof u&&(ol(t,n,u,r),s=t.memoizedState),(l=Ri||al(t,n,l,r,f,s,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=c,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Fi(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:rl(t.type,l),a.props=c,d=t.pendingProps,f=a.context,s="object"==typeof(s=n.contextType)&&null!==s?Pi(s):Io(t,s=Lo(n)?Po:No.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||f!==s)&&sl(t,a,r,s),Ri=!1,f=t.memoizedState,a.state=f,Vi(t,r,a,o);var h=t.memoizedState;l!==d||f!==h||Oo.current||Ri?("function"==typeof p&&(ol(t,n,p,r),h=t.memoizedState),(c=Ri||al(t,n,c,r,f,h,s)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=c):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return jl(e,t,n,r,i,o)}function jl(e,t,n,r,o,i){El(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Fo(t,n,!1),Ql(e,t,i);r=t.stateNode,vl.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=ki(t,e.child,null,i),t.child=ki(t,null,l,i)):xl(e,t,l,i),t.memoizedState=r.state,o&&Fo(t,n,!0),t.child}function Nl(e){var t=e.stateNode;t.pendingContext?Mo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Mo(0,t.context,!1),Xi(e,t.containerInfo)}function Ol(e,t,n,r,o){return mi(),yi(o),t.flags|=256,xl(e,t,n,r),t.child}var Pl,Il,Ll,zl,Ml={dehydrated:null,treeContext:null,retryLane:0};function Rl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Dl(e,t,n){var r,i=t.pendingProps,a=ta.current,l=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),To(ta,1&a),null===e)return di(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=i.children,e=i.fallback,l?(i=t.mode,l=t.child,s={mode:"hidden",children:s},1&i||null===l?l=Rc(s,i,0,null):(l.childLanes=0,l.pendingProps=s),e=Mc(e,i,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Rl(n),t.memoizedState=Ml,e):Fl(t,s));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,l){if(n)return 256&t.flags?(t.flags&=-257,Bl(e,t,l,r=dl(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Rc({mode:"visible",children:r.children},i,0,null),(a=Mc(a,i,l,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&ki(t,e.child,null,l),t.child.memoizedState=Rl(l),t.memoizedState=Ml,a);if(!(1&t.mode))return Bl(e,t,l,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;return r=s,Bl(e,t,l,r=dl(a=Error(o(419)),r,void 0))}if(s=0!==(l&e.childLanes),wl||s){if(null!==(r=Ns)){switch(l&-l){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|l))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Mi(e,i),rc(r,e,i,-1))}return yc(),Bl(e,t,l,r=dl(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Tc.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ii=uo(i.nextSibling),oi=t,ai=!0,li=null,null!==e&&(Yo[Go++]=Jo,Yo[Go++]=Zo,Yo[Go++]=Xo,Jo=e.id,Zo=e.overflow,Xo=t),(t=Fl(t,r.children)).flags|=4096,t)}(e,t,s,i,r,a,n);if(l){l=i.fallback,s=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:i.children};return 1&s||t.child===a?(i=Lc(a,c)).subtreeFlags=14680064&a.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null),null!==r?l=Lc(r,l):(l=Mc(l,s,n,null)).flags|=2,l.return=t,i.return=t,i.sibling=l,t.child=i,i=l,l=t.child,s=null===(s=e.child.memoizedState)?Rl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Ml,i}return e=(l=e.child).sibling,i=Lc(l,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Fl(e,t){return(t=Rc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bl(e,t,n,r){return null!==r&&yi(r),ki(t,e.child,null,n),(e=Fl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function ql(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ni(e.return,t,n)}function Ul(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Wl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(xl(e,t,r.children,n),2&(r=ta.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ql(e,n,t);else if(19===e.tag)ql(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(To(ta,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===na(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ul(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===na(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ul(t,!0,n,null,i);break;case"together":Ul(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Vl(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ql(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Rs|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Lc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Lc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Hl(e,t){if(!ai)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Kl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $l(e,t,n){var r=t.pendingProps;switch(ri(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kl(t),null;case 1:case 17:return Lo(t.type)&&zo(),Kl(t),null;case 3:return r=t.stateNode,Ji(),Ao(Oo),Ao(No),oa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(pi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==li&&(lc(li),li=null))),Il(e,t),Kl(t),null;case 5:ea(t);var i=Gi(Yi.current);if(n=t.type,null!==e&&null!=t.stateNode)Ll(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Kl(t),null}if(e=Gi(Ki.current),pi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[ho]=t,r[mo]=l,e=!!(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(i=0;i<Mr.length;i++)Br(Mr[i],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":X(r,l),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Br("invalid",r);break;case"textarea":ie(r,l),Br("invalid",r)}for(var s in ve(n,l),i=null,l)if(l.hasOwnProperty(s)){var c=l[s];"children"===s?"string"==typeof c?r.textContent!==c&&(!0!==l.suppressHydrationWarning&&Zr(r.textContent,c,e),i=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==l.suppressHydrationWarning&&Zr(r.textContent,c,e),i=["children",""+c]):a.hasOwnProperty(s)&&null!=c&&"onScroll"===s&&Br("scroll",r)}switch(n){case"input":K(r),ee(r,l,!0);break;case"textarea":K(r),le(r);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(r.onclick=eo)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[ho]=t,e[mo]=r,Pl(e,t,!1,!1),t.stateNode=e;e:{switch(s=we(n,r),n){case"dialog":Br("cancel",e),Br("close",e),i=r;break;case"iframe":case"object":case"embed":Br("load",e),i=r;break;case"video":case"audio":for(i=0;i<Mr.length;i++)Br(Mr[i],e);i=r;break;case"source":Br("error",e),i=r;break;case"img":case"image":case"link":Br("error",e),Br("load",e),i=r;break;case"details":Br("toggle",e),i=r;break;case"input":X(e,r),i=G(e,r),Br("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=D({},r,{value:void 0}),Br("invalid",e);break;case"textarea":ie(e,r),i=oe(e,r),Br("invalid",e)}for(l in ve(n,i),c=i)if(c.hasOwnProperty(l)){var u=c[l];"style"===l?be(e,u):"dangerouslySetInnerHTML"===l?null!=(u=u?u.__html:void 0)&&fe(e,u):"children"===l?"string"==typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"==typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(a.hasOwnProperty(l)?null!=u&&"onScroll"===l&&Br("scroll",e):null!=u&&w(e,l,u,s))}switch(n){case"input":K(e),ee(e,r,!1);break;case"textarea":K(e),le(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Q(r.value));break;case"select":e.multiple=!!r.multiple,null!=(l=r.value)?re(e,!!r.multiple,l,!1):null!=r.defaultValue&&re(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=eo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Kl(t),null;case 6:if(e&&null!=t.stateNode)zl(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=Gi(Yi.current),Gi(Ki.current),pi(t)){if(r=t.stateNode,n=t.memoizedProps,r[ho]=t,(l=r.nodeValue!==n)&&null!==(e=oi))switch(e.tag){case 3:Zr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,!!(1&e.mode))}l&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ho]=t,t.stateNode=r}return Kl(t),null;case 13:if(Ao(ta),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ai&&null!==ii&&1&t.mode&&!(128&t.flags))hi(),mi(),t.flags|=98560,l=!1;else if(l=pi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(o(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(o(317));l[ho]=t}else mi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Kl(t),l=!1}else null!==li&&(lc(li),li=null),l=!0;if(!l)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ta.current?0===zs&&(zs=3):yc())),null!==t.updateQueue&&(t.flags|=4),Kl(t),null);case 4:return Ji(),Il(e,t),null===e&&Wr(t.stateNode.containerInfo),Kl(t),null;case 10:return ji(t.type._context),Kl(t),null;case 19:if(Ao(ta),null===(l=t.memoizedState))return Kl(t),null;if(r=!!(128&t.flags),null===(s=l.rendering))if(r)Hl(l,!1);else{if(0!==zs||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(s=na(e))){for(t.flags|=128,Hl(l,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(l=n).flags&=14680066,null===(s=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return To(ta,1&ta.current|2),t.child}e=e.sibling}null!==l.tail&&Je()>Ws&&(t.flags|=128,r=!0,Hl(l,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=na(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Hl(l,!0),null===l.tail&&"hidden"===l.tailMode&&!s.alternate&&!ai)return Kl(t),null}else 2*Je()-l.renderingStartTime>Ws&&1073741824!==n&&(t.flags|=128,r=!0,Hl(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=l.last)?n.sibling=s:t.child=s,l.last=s)}return null!==l.tail?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Je(),t.sibling=null,n=ta.current,To(ta,r?1&n|2:1&n),t):(Kl(t),null);case 22:case 23:return fc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Is)&&(Kl(t),6&t.subtreeFlags&&(t.flags|=8192)):Kl(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Yl(e,t){switch(ri(t),t.tag){case 1:return Lo(t.type)&&zo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ji(),Ao(Oo),Ao(No),oa(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ea(t),null;case 13:if(Ao(ta),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));mi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ao(ta),null;case 4:return Ji(),null;case 10:return ji(t.type._context),null;case 22:case 23:return fc(),null;default:return null}}Pl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Il=function(){},Ll=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Gi(Ki.current);var i,l=null;switch(n){case"input":o=G(e,o),r=G(e,r),l=[];break;case"select":o=D({},o,{value:void 0}),r=D({},r,{value:void 0}),l=[];break;case"textarea":o=oe(e,o),r=oe(e,r),l=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=eo)}for(u in ve(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var s=o[u];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(a.hasOwnProperty(u)?l||(l=[]):(l=l||[]).push(u,null));for(u in r){var c=r[u];if(s=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(null!=c||null!=s))if("style"===u)if(s){for(i in s)!s.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&s[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(l||(l=[]),l.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(l=l||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(a.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Br("scroll",e),l||s===c||(l=[])):(l=l||[]).push(u,c))}n&&(l=l||[]).push("style",n);var u=l;(t.updateQueue=u)&&(t.flags|=4)}},zl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Gl=!1,Xl=!1,Jl="function"==typeof WeakSet?WeakSet:Set,Zl=null;function es(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Cc(e,t,n)}else n.current=null}function ts(e,t,n){try{n()}catch(n){Cc(e,t,n)}}var ns=!1;function rs(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&ts(t,n,i)}o=o.next}while(o!==r)}}function os(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function is(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function as(e){var t=e.alternate;null!==t&&(e.alternate=null,as(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[ho],delete t[mo],delete t[bo],delete t[go],delete t[vo]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ls(e){return 5===e.tag||3===e.tag||4===e.tag}function ss(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ls(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=eo));else if(4!==r&&null!==(e=e.child))for(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}function us(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}var ds=null,fs=!1;function ps(e,t,n){for(n=n.child;null!==n;)hs(e,t,n),n=n.sibling}function hs(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(it,n)}catch(e){}switch(n.tag){case 5:Xl||es(n,t);case 6:var r=ds,o=fs;ds=null,ps(e,t,n),fs=o,null!==(ds=r)&&(fs?(e=ds,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ds.removeChild(n.stateNode));break;case 18:null!==ds&&(fs?(e=ds,n=n.stateNode,8===e.nodeType?co(e.parentNode,n):1===e.nodeType&&co(e,n),Wt(e)):co(ds,n.stateNode));break;case 4:r=ds,o=fs,ds=n.stateNode.containerInfo,fs=!0,ps(e,t,n),ds=r,fs=o;break;case 0:case 11:case 14:case 15:if(!Xl&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&ts(n,t,a),o=o.next}while(o!==r)}ps(e,t,n);break;case 1:if(!Xl&&(es(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Cc(n,t,e)}ps(e,t,n);break;case 21:ps(e,t,n);break;case 22:1&n.mode?(Xl=(r=Xl)||null!==n.memoizedState,ps(e,t,n),Xl=r):ps(e,t,n);break;default:ps(e,t,n)}}function ms(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Jl),t.forEach(function(t){var r=jc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function ys(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:ds=s.stateNode,fs=!1;break e;case 3:case 4:ds=s.stateNode.containerInfo,fs=!0;break e}s=s.return}if(null===ds)throw Error(o(160));hs(a,l,i),ds=null,fs=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(e){Cc(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)bs(t,e),t=t.sibling}function bs(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ys(t,e),gs(e),4&r){try{rs(3,e,e.return),os(3,e)}catch(t){Cc(e,e.return,t)}try{rs(5,e,e.return)}catch(t){Cc(e,e.return,t)}}break;case 1:ys(t,e),gs(e),512&r&&null!==n&&es(n,n.return);break;case 5:if(ys(t,e),gs(e),512&r&&null!==n&&es(n,n.return),32&e.flags){var i=e.stateNode;try{pe(i,"")}catch(t){Cc(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,l=null!==n?n.memoizedProps:a,s=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===s&&"radio"===a.type&&null!=a.name&&J(i,a),we(s,l);var u=we(s,a);for(l=0;l<c.length;l+=2){var d=c[l],f=c[l+1];"style"===d?be(i,f):"dangerouslySetInnerHTML"===d?fe(i,f):"children"===d?pe(i,f):w(i,d,f,u)}switch(s){case"input":Z(i,a);break;case"textarea":ae(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?re(i,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?re(i,!!a.multiple,a.defaultValue,!0):re(i,!!a.multiple,a.multiple?[]:"",!1))}i[mo]=a}catch(t){Cc(e,e.return,t)}}break;case 6:if(ys(t,e),gs(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){Cc(e,e.return,t)}}break;case 3:if(ys(t,e),gs(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Wt(t.containerInfo)}catch(t){Cc(e,e.return,t)}break;case 4:default:ys(t,e),gs(e);break;case 13:ys(t,e),gs(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Us=Je())),4&r&&ms(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Xl=(u=Xl)||d,ys(t,e),Xl=u):ys(t,e),gs(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(Zl=e,d=e.child;null!==d;){for(f=Zl=d;null!==Zl;){switch(h=(p=Zl).child,p.tag){case 0:case 11:case 14:case 15:rs(4,p,p.return);break;case 1:es(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Cc(r,n,e)}}break;case 5:es(p,p.return);break;case 22:if(null!==p.memoizedState){ks(f);continue}}null!==h?(h.return=p,Zl=h):ks(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,u?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=f.stateNode,l=null!=(c=f.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,s.style.display=ye("display",l))}catch(t){Cc(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(t){Cc(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ys(t,e),gs(e),4&r&&ms(e);case 21:}}function gs(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ls(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(pe(i,""),r.flags&=-33),us(e,ss(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;cs(e,ss(e),a);break;default:throw Error(o(161))}}catch(t){Cc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vs(e,t,n){Zl=e,ws(e,t,n)}function ws(e,t,n){for(var r=!!(1&e.mode);null!==Zl;){var o=Zl,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Gl;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Xl;l=Gl;var c=Xl;if(Gl=a,(Xl=s)&&!c)for(Zl=o;null!==Zl;)s=(a=Zl).child,22===a.tag&&null!==a.memoizedState?Ss(o):null!==s?(s.return=a,Zl=s):Ss(o);for(;null!==i;)Zl=i,ws(i,t,n),i=i.sibling;Zl=o,Gl=l,Xl=c}xs(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Zl=i):xs(e)}}function xs(e){for(;null!==Zl;){var t=Zl;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Xl||os(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xl)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:rl(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Qi(t,a,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Qi(t,l,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Wt(f)}}}break;default:throw Error(o(163))}Xl||512&t.flags&&is(t)}catch(e){Cc(t,t.return,e)}}if(t===e){Zl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zl=n;break}Zl=t.return}}function ks(e){for(;null!==Zl;){var t=Zl;if(t===e){Zl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zl=n;break}Zl=t.return}}function Ss(e){for(;null!==Zl;){var t=Zl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{os(4,t)}catch(e){Cc(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Cc(t,o,e)}}var i=t.return;try{is(t)}catch(e){Cc(t,i,e)}break;case 5:var a=t.return;try{is(t)}catch(e){Cc(t,a,e)}}}catch(e){Cc(t,t.return,e)}if(t===e){Zl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Zl=l;break}Zl=t.return}}var _s,Cs=Math.ceil,Es=x.ReactCurrentDispatcher,As=x.ReactCurrentOwner,Ts=x.ReactCurrentBatchConfig,js=0,Ns=null,Os=null,Ps=0,Is=0,Ls=Eo(0),zs=0,Ms=null,Rs=0,Ds=0,Fs=0,Bs=null,qs=null,Us=0,Ws=1/0,Vs=null,Qs=!1,Hs=null,Ks=null,$s=!1,Ys=null,Gs=0,Xs=0,Js=null,Zs=-1,ec=0;function tc(){return 6&js?Je():-1!==Zs?Zs:Zs=Je()}function nc(e){return 1&e.mode?2&js&&0!==Ps?Ps&-Ps:null!==bi.transition?(0===ec&&(ec=yt()),ec):0!==(e=wt)?e:e=void 0===(e=window.event)?16:Xt(e.type):1}function rc(e,t,n,r){if(50<Xs)throw Xs=0,Js=null,Error(o(185));gt(e,n,r),2&js&&e===Ns||(e===Ns&&(!(2&js)&&(Ds|=n),4===zs&&sc(e,Ps)),oc(e,r),1===n&&0===js&&!(1&t.mode)&&(Ws=Je()+500,qo&&Vo()))}function oc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-lt(i),l=1<<a,s=o[a];-1===s?0!==(l&n)&&0===(l&r)||(o[a]=ht(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=pt(e,e===Ns?Ps:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){qo=!0,Wo(e)}(cc.bind(null,e)):Wo(cc.bind(null,e)),lo(function(){!(6&js)&&Vo()}),n=null;else{switch(xt(r)){case 1:n=et;break;case 4:n=tt;break;case 16:default:n=nt;break;case 536870912:n=ot}n=Nc(n,ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ic(e,t){if(Zs=-1,ec=0,6&js)throw Error(o(327));var n=e.callbackNode;if(Sc()&&e.callbackNode!==n)return null;var r=pt(e,e===Ns?Ps:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=bc(e,r);else{t=r;var i=js;js|=2;var a=mc();for(Ns===e&&Ps===t||(Vs=null,Ws=Je()+500,pc(e,t));;)try{vc();break}catch(t){hc(e,t)}Ti(),Es.current=a,js=i,null!==Os?t=0:(Ns=null,Ps=0,t=zs)}if(0!==t){if(2===t&&0!==(i=mt(e))&&(r=i,t=ac(e,i)),1===t)throw n=Ms,pc(e,0),sc(e,r),oc(e,Je()),n;if(6===t)sc(e,r);else{if(i=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=bc(e,r),2===t&&(a=mt(e),0!==a&&(r=a,t=ac(e,a))),1!==t)))throw n=Ms,pc(e,0),sc(e,r),oc(e,Je()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:kc(e,qs,Vs);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=Us+500-Je())){if(0!==pt(e,0))break;if(((i=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=oo(kc.bind(null,e,qs,Vs),t);break}kc(e,qs,Vs);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var l=31-lt(r);a=1<<l,(l=t[l])>i&&(i=l),r&=~a}if(r=i,10<(r=(120>(r=Je()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cs(r/1960))-r)){e.timeoutHandle=oo(kc.bind(null,e,qs,Vs),r);break}kc(e,qs,Vs);break;default:throw Error(o(329))}}}return oc(e,Je()),e.callbackNode===n?ic.bind(null,e):null}function ac(e,t){var n=Bs;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=bc(e,t))&&(t=qs,qs=n,null!==t&&lc(t)),e}function lc(e){null===qs?qs=e:qs.push.apply(qs,e)}function sc(e,t){for(t&=~Fs,t&=~Ds,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-lt(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(6&js)throw Error(o(327));Sc();var t=pt(e,0);if(!(1&t))return oc(e,Je()),null;var n=bc(e,t);if(0!==e.tag&&2===n){var r=mt(e);0!==r&&(t=r,n=ac(e,r))}if(1===n)throw n=Ms,pc(e,0),sc(e,t),oc(e,Je()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kc(e,qs,Vs),oc(e,Je()),null}function uc(e,t){var n=js;js|=1;try{return e(t)}finally{0===(js=n)&&(Ws=Je()+500,qo&&Vo())}}function dc(e){null!==Ys&&0===Ys.tag&&!(6&js)&&Sc();var t=js;js|=1;var n=Ts.transition,r=wt;try{if(Ts.transition=null,wt=1,e)return e()}finally{wt=r,Ts.transition=n,!(6&(js=t))&&Vo()}}function fc(){Is=Ls.current,Ao(Ls)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,io(n)),null!==Os)for(n=Os.return;null!==n;){var r=n;switch(ri(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&zo();break;case 3:Ji(),Ao(Oo),Ao(No),oa();break;case 5:ea(r);break;case 4:Ji();break;case 13:case 19:Ao(ta);break;case 10:ji(r.type._context);break;case 22:case 23:fc()}n=n.return}if(Ns=e,Os=e=Lc(e.current,null),Ps=Is=t,zs=0,Ms=null,Fs=Ds=Rs=0,qs=Bs=null,null!==Ii){for(t=0;t<Ii.length;t++)if(null!==(r=(n=Ii[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ii=null}return e}function hc(e,t){for(;;){var n=Os;try{if(Ti(),ia.current=Za,da){for(var r=sa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}da=!1}if(la=0,ua=ca=sa=null,fa=!1,pa=0,As.current=null,null===n||null===n.return){zs=1,Ms=t,Os=null;break}e:{var a=e,l=n.return,s=n,c=t;if(t=Ps,s.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=s,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=bl(l);if(null!==h){h.flags&=-257,gl(h,l,s,0,t),1&h.mode&&yl(a,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var y=new Set;y.add(c),t.updateQueue=y}else m.add(c);break e}if(!(1&t)){yl(a,u,t),yc();break e}c=Error(o(426))}else if(ai&&1&s.mode){var b=bl(l);if(null!==b){!(65536&b.flags)&&(b.flags|=256),gl(b,l,s,0,t),yi(ul(c,s));break e}}a=c=ul(c,s),4!==zs&&(zs=2),null===Bs?Bs=[a]:Bs.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Wi(a,hl(0,c,t));break e;case 1:s=c;var g=a.type,v=a.stateNode;if(!(128&a.flags||"function"!=typeof g.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==Ks&&Ks.has(v)))){a.flags|=65536,t&=-t,a.lanes|=t,Wi(a,ml(a,s,t));break e}}a=a.return}while(null!==a)}xc(n)}catch(e){t=e,Os===n&&null!==n&&(Os=n=n.return);continue}break}}function mc(){var e=Es.current;return Es.current=Za,null===e?Za:e}function yc(){0!==zs&&3!==zs&&2!==zs||(zs=4),null===Ns||!(268435455&Rs)&&!(268435455&Ds)||sc(Ns,Ps)}function bc(e,t){var n=js;js|=2;var r=mc();for(Ns===e&&Ps===t||(Vs=null,pc(e,t));;)try{gc();break}catch(t){hc(e,t)}if(Ti(),js=n,Es.current=r,null!==Os)throw Error(o(261));return Ns=null,Ps=0,zs}function gc(){for(;null!==Os;)wc(Os)}function vc(){for(;null!==Os&&!Ge();)wc(Os)}function wc(e){var t=_s(e.alternate,e,Is);e.memoizedProps=e.pendingProps,null===t?xc(e):Os=t,As.current=null}function xc(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Yl(n,t)))return n.flags&=32767,void(Os=n);if(null===e)return zs=6,void(Os=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=$l(n,t,Is)))return void(Os=n);if(null!==(t=t.sibling))return void(Os=t);Os=t=e}while(null!==t);0===zs&&(zs=5)}function kc(e,t,n){var r=wt,i=Ts.transition;try{Ts.transition=null,wt=1,function(e,t,n,r){do{Sc()}while(null!==Ys);if(6&js)throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-lt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Ns&&(Os=Ns=null,Ps=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||$s||($s=!0,Nc(nt,function(){return Sc(),null})),a=!!(15990&n.flags),15990&n.subtreeFlags||a){a=Ts.transition,Ts.transition=null;var l=wt;wt=1;var s=js;js|=4,As.current=null,function(e,t){if(to=Qt,hr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var l=0,s=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==i&&3!==f.nodeType||(s=l+i),f!==a||0!==r&&3!==f.nodeType||(c=l+r),3===f.nodeType&&(l+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===i&&(s=l),p===a&&++d===r&&(c=l),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===s||-1===c?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(no={focusedElem:e,selectionRange:n},Qt=!1,Zl=t;null!==Zl;)if(e=(t=Zl).child,1028&t.subtreeFlags&&null!==e)e.return=t,Zl=e;else for(;null!==Zl;){t=Zl;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var y=m.memoizedProps,b=m.memoizedState,g=t.stateNode,v=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:rl(t.type,y),b);g.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(o(163))}}catch(e){Cc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zl=e;break}Zl=t.return}m=ns,ns=!1}(e,n),bs(n,e),mr(no),Qt=!!to,no=to=null,e.current=n,vs(n,e,i),Xe(),js=s,wt=l,Ts.transition=a}else e.current=n;if($s&&($s=!1,Ys=e,Gs=i),0===(a=e.pendingLanes)&&(Ks=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(it,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),oc(e,Je()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if(Qs)throw Qs=!1,e=Hs,Hs=null,e;!!(1&Gs)&&0!==e.tag&&Sc(),1&(a=e.pendingLanes)?e===Js?Xs++:(Xs=0,Js=e):Xs=0,Vo()}(e,t,n,r)}finally{Ts.transition=i,wt=r}return null}function Sc(){if(null!==Ys){var e=xt(Gs),t=Ts.transition,n=wt;try{if(Ts.transition=null,wt=16>e?16:e,null===Ys)var r=!1;else{if(e=Ys,Ys=null,Gs=0,6&js)throw Error(o(331));var i=js;for(js|=4,Zl=e.current;null!==Zl;){var a=Zl,l=a.child;if(16&Zl.flags){var s=a.deletions;if(null!==s){for(var c=0;c<s.length;c++){var u=s[c];for(Zl=u;null!==Zl;){var d=Zl;switch(d.tag){case 0:case 11:case 15:rs(8,d,a)}var f=d.child;if(null!==f)f.return=d,Zl=f;else for(;null!==Zl;){var p=(d=Zl).sibling,h=d.return;if(as(d),d===u){Zl=null;break}if(null!==p){p.return=h,Zl=p;break}Zl=h}}}var m=a.alternate;if(null!==m){var y=m.child;if(null!==y){m.child=null;do{var b=y.sibling;y.sibling=null,y=b}while(null!==y)}}Zl=a}}if(2064&a.subtreeFlags&&null!==l)l.return=a,Zl=l;else e:for(;null!==Zl;){if(2048&(a=Zl).flags)switch(a.tag){case 0:case 11:case 15:rs(9,a,a.return)}var g=a.sibling;if(null!==g){g.return=a.return,Zl=g;break e}Zl=a.return}}var v=e.current;for(Zl=v;null!==Zl;){var w=(l=Zl).child;if(2064&l.subtreeFlags&&null!==w)w.return=l,Zl=w;else e:for(l=v;null!==Zl;){if(2048&(s=Zl).flags)try{switch(s.tag){case 0:case 11:case 15:os(9,s)}}catch(e){Cc(s,s.return,e)}if(s===l){Zl=null;break e}var x=s.sibling;if(null!==x){x.return=s.return,Zl=x;break e}Zl=s.return}}if(js=i,Vo(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(it,e)}catch(e){}r=!0}return r}finally{wt=n,Ts.transition=t}}return!1}function _c(e,t,n){e=qi(e,t=hl(0,t=ul(n,t),1),1),t=tc(),null!==e&&(gt(e,1,t),oc(e,t))}function Cc(e,t,n){if(3===e.tag)_c(e,e,n);else for(;null!==t;){if(3===t.tag){_c(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ks||!Ks.has(r))){t=qi(t,e=ml(t,e=ul(n,e),1),1),e=tc(),null!==t&&(gt(t,1,e),oc(t,e));break}}t=t.return}}function Ec(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,Ns===e&&(Ps&n)===n&&(4===zs||3===zs&&(130023424&Ps)===Ps&&500>Je()-Us?pc(e,0):Fs|=n),oc(e,t)}function Ac(e,t){0===t&&(1&e.mode?(t=dt,!(130023424&(dt<<=1))&&(dt=4194304)):t=1);var n=tc();null!==(e=Mi(e,t))&&(gt(e,t,n),oc(e,n))}function Tc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ac(e,n)}function jc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Ac(e,n)}function Nc(e,t){return $e(e,t)}function Oc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pc(e,t,n,r){return new Oc(e,t,n,r)}function Ic(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Lc(e,t){var n=e.alternate;return null===n?((n=Pc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function zc(e,t,n,r,i,a){var l=2;if(r=e,"function"==typeof e)Ic(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case _:return Mc(n.children,i,a,t);case C:l=8,i|=8;break;case E:return(e=Pc(12,n,t,2|i)).elementType=E,e.lanes=a,e;case N:return(e=Pc(13,n,t,i)).elementType=N,e.lanes=a,e;case O:return(e=Pc(19,n,t,i)).elementType=O,e.lanes=a,e;case L:return Rc(n,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case A:l=10;break e;case T:l=9;break e;case j:l=11;break e;case P:l=14;break e;case I:l=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Pc(l,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Mc(e,t,n,r){return(e=Pc(7,e,r,t)).lanes=n,e}function Rc(e,t,n,r){return(e=Pc(22,e,r,t)).elementType=L,e.lanes=n,e.stateNode={isHidden:!1},e}function Dc(e,t,n){return(e=Pc(6,e,null,t)).lanes=n,e}function Fc(e,t,n){return(t=Pc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bt(0),this.expirationTimes=bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function qc(e,t,n,r,o,i,a,l,s){return e=new Bc(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Pc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Di(i),e}function Uc(e){if(!e)return jo;e:{if(We(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Lo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Lo(n))return Ro(e,n,t)}return t}function Wc(e,t,n,r,o,i,a,l,s){return(e=qc(n,r,!0,e,0,i,0,l,s)).context=Uc(null),n=e.current,(i=Bi(r=tc(),o=nc(n))).callback=null!=t?t:null,qi(n,i,o),e.current.lanes=o,gt(e,o,r),oc(e,r),e}function Vc(e,t,n,r){var o=t.current,i=tc(),a=nc(o);return n=Uc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Bi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=qi(o,t,a))&&(rc(e,o,a,i),Ui(e,o,a)),a}function Qc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Hc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Kc(e,t){Hc(e,t),(e=e.alternate)&&Hc(e,t)}_s=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Oo.current)wl=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return wl=!1,function(e,t,n){switch(t.tag){case 3:Nl(t),mi();break;case 5:Zi(t);break;case 1:Lo(t.type)&&Do(t);break;case 4:Xi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;To(_i,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(To(ta,1&ta.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Dl(e,t,n):(To(ta,1&ta.current),null!==(e=Ql(e,t,n))?e.sibling:null);To(ta,1&ta.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Wl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),To(ta,ta.current),r)break;return null;case 22:case 23:return t.lanes=0,Cl(e,t,n)}return Ql(e,t,n)}(e,t,n);wl=!!(131072&e.flags)}else wl=!1,ai&&1048576&t.flags&&ti(t,$o,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vl(e,t),e=t.pendingProps;var i=Io(t,No.current);Oi(t,n),i=ba(null,t,r,e,i,n);var a=ga();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Lo(r)?(a=!0,Do(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Di(t),i.updater=il,t.stateNode=i,i._reactInternals=t,cl(t,r,e,n),t=jl(null,t,r,!0,a,n)):(t.tag=0,ai&&a&&ni(t),xl(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vl(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return Ic(e)?1:0;if(null!=e){if((e=e.$$typeof)===j)return 11;if(e===P)return 14}return 2}(r),e=rl(r,e),i){case 0:t=Al(null,t,r,e,n);break e;case 1:t=Tl(null,t,r,e,n);break e;case 11:t=kl(null,t,r,e,n);break e;case 14:t=Sl(null,t,r,rl(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Al(e,t,r,i=t.elementType===r?i:rl(r,i),n);case 1:return r=t.type,i=t.pendingProps,Tl(e,t,r,i=t.elementType===r?i:rl(r,i),n);case 3:e:{if(Nl(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Fi(e,t),Vi(t,r,null,n);var l=t.memoizedState;if(r=l.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ol(e,t,r,n,i=ul(Error(o(423)),t));break e}if(r!==i){t=Ol(e,t,r,n,i=ul(Error(o(424)),t));break e}for(ii=uo(t.stateNode.containerInfo.firstChild),oi=t,ai=!0,li=null,n=Si(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(mi(),r===i){t=Ql(e,t,n);break e}xl(e,t,r,n)}t=t.child}return t;case 5:return Zi(t),null===e&&di(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,l=i.children,ro(r,i)?l=null:null!==a&&ro(r,a)&&(t.flags|=32),El(e,t),xl(e,t,l,n),t.child;case 6:return null===e&&di(t),null;case 13:return Dl(e,t,n);case 4:return Xi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ki(t,null,r,n):xl(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,kl(e,t,r,i=t.elementType===r?i:rl(r,i),n);case 7:return xl(e,t,t.pendingProps,n),t.child;case 8:case 12:return xl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,l=i.value,To(_i,r._currentValue),r._currentValue=l,null!==a)if(sr(a.value,l)){if(a.children===i.children&&!Oo.current){t=Ql(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){l=a.child;for(var c=s.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Bi(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),Ni(a.return,n,t),s.lanes|=n;break}c=c.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(o(341));l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),Ni(l,n,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}xl(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Oi(t,n),r=r(i=Pi(i)),t.flags|=1,xl(e,t,r,n),t.child;case 14:return i=rl(r=t.type,t.pendingProps),Sl(e,t,r,i=rl(r.type,i),n);case 15:return _l(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rl(r,i),Vl(e,t),t.tag=1,Lo(r)?(e=!0,Do(t)):e=!1,Oi(t,n),ll(t,r,i),cl(t,r,i,n),jl(null,t,r,!0,e,n);case 19:return Wl(e,t,n);case 22:return Cl(e,t,n)}throw Error(o(156,t.tag))};var $c="function"==typeof reportError?reportError:function(e){console.error(e)};function Yc(e){this._internalRoot=e}function Gc(e){this._internalRoot=e}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zc(){}function eu(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=Qc(a);l.call(e)}}Vc(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Qc(a);i.call(e)}}var a=Wc(t,r,e,0,null,!1,0,"",Zc);return e._reactRootContainer=a,e[yo]=a.current,Wr(8===e.nodeType?e.parentNode:e),dc(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Qc(s);l.call(e)}}var s=qc(e,0,!1,null,0,!1,0,"",Zc);return e._reactRootContainer=s,e[yo]=s.current,Wr(8===e.nodeType?e.parentNode:e),dc(function(){Vc(t,s,n,r)}),s}(n,t,e,o,r);return Qc(a)}Gc.prototype.render=Yc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Vc(e,t,null,null)},Gc.prototype.unmount=Yc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc(function(){Vc(null,e,null,null)}),t[yo]=null}},Gc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lt.length&&0!==t&&t<Lt[n].priority;n++);Lt.splice(n,0,e),0===n&&Dt(e)}},kt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(vt(t,1|n),oc(t,Je()),!(6&js)&&(Ws=Je()+500,Vo()))}break;case 13:dc(function(){var t=Mi(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}}),Kc(e,1)}},St=function(e){if(13===e.tag){var t=Mi(e,134217728);null!==t&&rc(t,e,134217728,tc()),Kc(e,134217728)}},_t=function(e){if(13===e.tag){var t=nc(e),n=Mi(e,t);null!==n&&rc(n,e,t,tc()),Kc(e,t)}},Ct=function(){return wt},Et=function(e,t){var n=wt;try{return wt=e,t()}finally{wt=n}},Se=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=So(r);if(!i)throw Error(o(90));$(r),Z(r,i)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&re(e,!!n.multiple,t,!1)}},je=uc,Ne=dc;var tu={usingClientEntryPoint:!1,Events:[xo,ko,So,Ae,Te,uc]},nu={findFiberByHostInstance:wo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=He(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{it=ou.inject(ru),at=ou}catch(de){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xc(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xc(e))throw Error(o(299));var n=!1,r="",i=$c;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=qc(e,1,!1,null,0,n,0,r,i),e[yo]=t.current,Wr(8===e.nodeType?e.parentNode:e),new Yc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return null===(e=He(t))?null:e.stateNode},t.flushSync=function(e){return dc(e)},t.hydrate=function(e,t,n){if(!Jc(t))throw Error(o(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xc(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",l=$c;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Wc(t,null,e,1,null!=n?n:null,i,0,a,l),e[yo]=t.current,Wr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Gc(t)},t.render=function(e,t,n){if(!Jc(t))throw Error(o(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Jc(e))throw Error(o(40));return!!e._reactRootContainer&&(dc(function(){eu(null,null,e,!1,function(){e._reactRootContainer=null,e[yo]=null})}),!0)},t.unstable_batchedUpdates=uc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Jc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return eu(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"}),o=n.cw(function(e,t){var n=i();t.H=n.createRoot,n.hydrateRoot}),i=n.cw(function(e,n){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=t()}),a=n.cw(function(e,t){var n=s(),r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var o,s={},c=null,u=null;for(o in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,o)&&!l.hasOwnProperty(o)&&(s[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===s[o]&&(s[o]=t[o]);return{$$typeof:r,type:e,key:c,ref:u,props:s,_owner:a.current}}t.Fragment=o,t.jsx=c,t.jsxs=c}),l=n.cw(function(e,t){var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,y={};function b(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}function g(){}function v(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=b.prototype;var w=v.prototype=new g;w.constructor=v,m(w,b.prototype),w.isPureReactComponent=!0;var x=Array.isArray,k=Object.prototype.hasOwnProperty,S={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var o,i={},a=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)k.call(t,o)&&!_.hasOwnProperty(o)&&(i[o]=t[o]);var s=arguments.length-2;if(1===s)i.children=r;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===i[o]&&(i[o]=s[o]);return{$$typeof:n,type:e,key:a,ref:l,props:i,_owner:S.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var A=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function j(e,t,o,i,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return a=a(s=e),e=""===i?"."+T(s,0):i,x(a)?(o="",null!=e&&(o=e.replace(A,"$&/")+"/"),j(a,t,o,"",function(e){return e})):null!=a&&(E(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(A,"$&/")+"/")+e)),t.push(a)),1;if(s=0,i=""===i?".":i+":",x(e))for(var c=0;c<e.length;c++){var u=i+T(l=e[c],c);s+=j(l,t,o,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(l=e.next()).done;)s+=j(l=l.value,t,o,u=i+T(l,c++),a);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function N(e,t,n){if(null==e)return e;var r=[],o=0;return j(e,r,"","",function(e){return t.call(n,e,o++)}),r}function O(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},I={transition:null},L={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:I,ReactCurrentOwner:S};function z(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:N,forEach:function(e,t,n){N(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return N(e,function(){t++}),t},toArray:function(e){return N(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=b,t.Fragment=o,t.Profiler=a,t.PureComponent=v,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.act=z,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=S.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)k.call(t,c)&&!_.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];o.children=s}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=z,t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return P.current.useTransition()},t.version="18.3.1"}),s=n.cw(function(e,t){e.exports=l()}),c=n.cw(function(e,t){e.exports=a()}),u=n.cw(function(e,t){function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>i(s,n))c<o&&0>i(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var c=[],u=[],d=1,f=null,p=3,h=!1,m=!1,y=!1,b="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(y=!1,w(e),!m)if(null!==r(c))m=!0,I(k);else{var t=r(u);null!==t&&L(x,t.startTime-e)}}function k(e,n){m=!1,y&&(y=!1,g(E),E=-1),h=!0;var i=p;try{for(w(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!j());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var l=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?f.callback=l:f===r(c)&&o(c),w(n)}else o(c);f=r(c)}if(null!==f)var s=!0;else{var d=r(u);null!==d&&L(x,d.startTime-n),s=!1}return s}finally{f=null,p=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,_=!1,C=null,E=-1,A=5,T=-1;function j(){return!(t.unstable_now()-T<A)}function N(){if(null!==C){var e=t.unstable_now();T=e;var n=!0;try{n=C(!0,e)}finally{n?S():(_=!1,C=null)}}else _=!1}if("function"==typeof v)S=function(){v(N)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,P=O.port2;O.port1.onmessage=N,S=function(){P.postMessage(null)}}else S=function(){b(N,0)};function I(e){C=e,_||(_=!0,S())}function L(e,n){E=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,I(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(y?(g(E),E=-1):y=!0,L(x,i-a))):(e.sortIndex=l,n(c,e),m||h||(m=!0,I(k))),e},t.unstable_shouldYield=j,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}),d=n.cw(function(e,t){e.exports=u()}),f=n.cw(function(e,t){var n=[];function r(e){for(var t=-1,r=0;r<n.length;r++)if(n[r].identifier===e){t=r;break}return t}function o(e,t){for(var o={},a=[],l=0;l<e.length;l++){var s=e[l],c=t.base?s[0]+t.base:s[0],u=o[c]||0,d="".concat(c," ").concat(u);o[c]=u+1;var f=r(d),p={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==f)n[f].references++,n[f].updater(p);else{var h=i(p,t);t.byIndex=l,n.splice(l,0,{identifier:d,updater:h,references:1})}a.push(d)}return a}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,t){var i=o(e=e||[],t=t||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var l=r(i[a]);n[l].references--}for(var s=o(e,t),c=0;c<i.length;c++){var u=r(i[c]);0===n[u].references&&(n[u].updater(),n.splice(u,1))}i=s}}}),p=n.cw(function(e,t){var n={};e.exports=function(e,t){var r=function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[e]=t}return n[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}}),h=n.cw(function(e,t){e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}}),m=n.cw(function(e,t){e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}}),y=n.cw(function(e,t){e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}}),b=n.cw(function(e,t){e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}),g=n.cw(function(e,t){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,o.default)(e),i="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,o=e.value;i?t(r,o,e):o&&((n=n||{})[r]=o)}}),n};var o=r(n(9788))}),v=n.cw(function(e,t){var n=s(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,i=n.useRef,a=n.useEffect,l=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,s,u){var d=i(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!a){if(a=!0,o=e,e=s(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return i=t}return i=e}if(t=i,r(o,e))return t;var n=s(e);return void 0!==u&&u(t,n)?t:(o=e,i=n)}var o,i,a=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,s,u]);var p=o(e,d[0],d[1]);return a(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}}),w=n.cw(function(e,t){e.exports=v()}),x={};n.r(x),n.d(x,{boolean:()=>Pl,booleanish:()=>Il,commaOrSpaceSeparated:()=>Dl,commaSeparated:()=>Rl,number:()=>zl,overloadedBoolean:()=>Ll,spaceSeparated:()=>Ml});var k={};n.r(k),n.d(k,{attentionMarkers:()=>hu,contentInitial:()=>su,disable:()=>mu,document:()=>lu,flow:()=>uu,flowInitial:()=>cu,insideSpan:()=>pu,string:()=>du,text:()=>fu}),s(),i(),o(),w();var S=s(),_=Symbol.for("react-redux-context"),C="undefined"!=typeof globalThis?globalThis:{};function E(){if(!S.createContext)return{};const e=C[_]??(C[_]=new Map);let t=e.get(S.createContext);return t||(t=S.createContext(null),e.set(S.createContext,t)),t}var A=E();function T(e=A){return function(){return S.useContext(e)}}var j=T(),N=()=>{throw new Error("uSES not initialized!")},O=(e,t)=>e===t;function P(e=A){const t=e===A?j:T(e),n=(e,n={})=>{const{equalityFn:r=O,devModeChecks:o={}}="function"==typeof n?{equalityFn:n}:n,{store:i,subscription:a,getServerState:l,stabilityCheck:s,identityFunctionCheck:c}=t(),u=(S.useRef(!0),S.useCallback({[e.name]:t=>e(t)}[e.name],[e,s,o.stabilityCheck])),d=N(a.addNestedSub,i.getState,l||i.getState,u,r);return S.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var I=P();function L(e){e()}Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.client.reference");var z={notify(){},get:()=>[]};var M=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),R="undefined"!=typeof navigator&&"ReactNative"===navigator.product,D=M||R?S.useLayoutEffect:S.useEffect;function F(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function B(e,t){if(F(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!F(e[n[r]],t[n[r]]))return!1;return!0}Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var q=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){const a=S.useMemo(()=>{const t=function(e,t){let n,r=z,o=0,i=!1;function a(){c.onStateChange&&c.onStateChange()}function l(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){L(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function s(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=z)}const c={addNestedSub:function(e){l();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),s())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,l())},tryUnsubscribe:function(){i&&(i=!1,s())},getListeners:()=>r};return c}(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}},[e,r,o,i]),l=S.useMemo(()=>e.getState(),[e]);D(()=>{const{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),l!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}},[a,l]);const s=t||A;return S.createElement(s.Provider,{value:a},n)};function U(e=A){const t=e===A?j:T(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var W=U();function V(e=A){const t=e===A?W:U(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Q,H=V(),K=L;function $(){return $.c||($.c=n.n(f()))}function Y(){return Y.c||(Y.c=n.n(y()))}function G(){return G.c||(G.c=n.n(p()))}function X(){return X.c||(X.c=n.n(m()))}function J(){return J.c||(J.c=n.n(h()))}function Z(){return Z.c||(Z.c=n.n(b()))}Q=v().useSyncExternalStoreWithSelector,N=Q,l().useSyncExternalStore,f(),y(),p(),m(),h(),b();var ee=n(8321),te={};function ne(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ne(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function re(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ne(e))&&(r&&(r+=" "),r+=t);return r}te.styleTagTransform=Z()(),te.setAttributes=X()(),te.insert=G()().bind(null,"head"),te.domAPI=Y()(),te.insertStyleElement=J()(),$()()(ee.A,te),ee.A&&ee.A.locals&&ee.A.locals;const oe=re;var ie=e=>"number"==typeof e&&!isNaN(e),ae=e=>"string"==typeof e,le=e=>"function"==typeof e,se=e=>ae(e)||le(e)?e:null,ce=(e,t)=>!1===e||ie(e)&&e>0?e:t,ue=e=>(0,l().isValidElement)(e)||ae(e)||le(e)||ie(e);function de({enter:e,exit:t,appendPosition:n=!1,collapse:r=!0,collapseDuration:o=300}){return function({children:i,position:a,preventExitTransition:s,done:c,nodeRef:u,isIn:d,playToast:f}){let p=n?`${e}--${a}`:e,h=n?`${t}--${a}`:t,m=(0,l().useRef)(0);return(0,l().useLayoutEffect)(()=>{let e=u.current,t=p.split(" "),n=r=>{r.target===u.current&&(f(),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===m.current&&"animationcancel"!==r.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)},[]),(0,l().useEffect)(()=>{let e=u.current,t=()=>{e.removeEventListener("animationend",t),r?function(e,t,n=300){let{scrollHeight:r,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}(e,c,o):c()};d||(s?t():(m.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))},[d]),l().createElement(l().Fragment,null,i)}}function fe(e,t){return{content:pe(e.content,e.props),containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,reason:e.removalReason,status:t}}function pe(e,t,n=!1){return(0,l().isValidElement)(e)&&!ae(e.type)?(0,l().cloneElement)(e,{closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:n}):le(e)?e({closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:n}):e}function he({delay:e,isRunning:t,closeToast:n,type:r="default",hide:o,className:i,controlledProgress:a,progress:s,rtl:c,isIn:u,theme:d}){let f=o||a&&0===s,p={animationDuration:`${e}ms`,animationPlayState:t?"running":"paused"};a&&(p.transform=`scaleX(${s})`);let h=oe("Toastify__progress-bar",a?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${d}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":c}),m=le(i)?i({rtl:c,type:r,defaultClassName:h}):oe(h,i),y={[a&&s>=1?"onTransitionEnd":"onAnimationEnd"]:a&&s<1?null:()=>{u&&n()}};return l().createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":f},l().createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${d} Toastify__progress-bar--${r}`}),l().createElement("div",{role:"progressbar","aria-hidden":f?"true":"false","aria-label":"notification timer","aria-valuenow":a?Math.round(100*s):void 0,"aria-valuemin":0,"aria-valuemax":100,className:m,style:p,...y}))}var me=1,ye=()=>""+me++;var be=new Map,ge=[],ve=new Set,we=e=>ve.forEach(t=>t(e)),xe=()=>be.size>0;function ke(e,t){var n;if(t)return!(null==(n=be.get(t))||!n.isToastActive(e));let r=!1;return be.forEach(t=>{t.isToastActive(e)&&(r=!0)}),r}function Se(e,t){ue(e)&&(xe()||ge.push({content:e,options:t}),be.forEach(n=>{n.buildToast(e,t)}))}function _e(e,t){be.forEach(n=>{(null==t||null==t||!t.containerId||(null==t?void 0:t.containerId)===n.id)&&n.toggle(e,null==t?void 0:t.id)})}function Ce(e){let t=e.containerId||1;return{subscribe(n){let r=function(e,t,n){let r=1,o=0,i=[],a=[],l=t,s=new Map,c=new Set,u=()=>{a=Array.from(s.values()),c.forEach(e=>e())},d=e=>{var t,r;e.isActive&&(null==(r=null==(t=e.props)?void 0:t.onClose)||r.call(t,e.removalReason),e.isActive=!1,n(fe(e,"removed")))},f=e=>{if(null==e)s.forEach(d);else{let t=s.get(e);t&&d(t)}u()},p=e=>{var t,r;let{toastId:o,updateId:i}=e.props,a=null==i;e.staleId&&s.delete(e.staleId),e.isActive=!0,s.set(o,e),u(),n(fe(e,a?"added":"updated")),a&&(null==(r=(t=e.props).onOpen)||r.call(t))};return{id:e,props:l,observe:e=>(c.add(e),()=>c.delete(e)),toggle:(e,t)=>{s.forEach(n=>{var r;(null==t||t===n.props.toastId)&&(null==(r=n.toggle)||r.call(n,e))})},removeToast:f,toasts:s,clearQueue:()=>{o-=i.length,i=[]},buildToast:(t,n)=>{if((({containerId:t,toastId:n,updateId:r})=>{let o=t?t!==e:1!==e,i=s.has(n)&&null==r;return o||i})(n))return;let{toastId:a,updateId:c,data:d,staleId:h,delay:m}=n,y=null==c;y&&o++;let b={...l,style:l.toastStyle,key:r++,...Object.fromEntries(Object.entries(n).filter(([e,t])=>null!=t)),toastId:a,updateId:c,data:d,isIn:!1,className:se(n.className||l.toastClassName),progressClassName:se(n.progressClassName||l.progressClassName),autoClose:!n.isLoading&&ce(n.autoClose,l.autoClose),closeToast(e){let t=s.get(a);t&&(t.removalReason=e,f(a))},deleteToast(){if(null!=s.get(a)){if(s.delete(a),o--,o<0&&(o=0),i.length>0)return void p(i.shift());u()}}};b.closeButton=l.closeButton,!1===n.closeButton||ue(n.closeButton)?b.closeButton=n.closeButton:!0===n.closeButton&&(b.closeButton=!ue(l.closeButton)||l.closeButton);let g={content:t,props:b,staleId:h};l.limit&&l.limit>0&&o>l.limit&&y?i.push(g):ie(m)?setTimeout(()=>{p(g)},m):p(g)},setProps(e){l=e},setToggle:(e,t)=>{let n=s.get(e);n&&(n.toggle=t)},isToastActive:e=>{var t;return null==(t=s.get(e))?void 0:t.isActive},getSnapshot:()=>a}}(t,e,we);be.set(t,r);let o=r.observe(n);return ge.forEach(e=>Se(e.content,e.options)),ge=[],()=>{o(),be.delete(t)}},setProps(e){var n;null==(n=be.get(t))||n.setProps(e)},getSnapshot(){var e;return null==(e=be.get(t))?void 0:e.getSnapshot()}}}function Ee(e){return e&&(ae(e.toastId)||ie(e.toastId))?e.toastId:ye()}function Ae(e,t){return Se(e,t),t.toastId}function Te(e,t){return{...t,type:t&&t.type||e,toastId:Ee(t)}}function je(e){return(t,n)=>Ae(t,Te(e,n))}function Ne(e,t){return Ae(e,Te("default",t))}Ne.loading=(e,t)=>Ae(e,Te("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Ne.promise=function(e,{pending:t,error:n,success:r},o){let i;t&&(i=ae(t)?Ne.loading(t,o):Ne.loading(t.render,{...o,...t}));let a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(e,t,n)=>{if(null==t)return void Ne.dismiss(i);let r={type:e,...a,...o,data:n},l=ae(t)?{render:t}:t;return i?Ne.update(i,{...r,...l}):Ne(l.render,{...r,...l}),n},s=le(e)?e():e;return s.then(e=>l("success",r,e)).catch(e=>l("error",n,e)),s},Ne.success=je("success"),Ne.info=je("info"),Ne.error=je("error"),Ne.warning=je("warning"),Ne.warn=Ne.warning,Ne.dark=(e,t)=>Ae(e,Te("default",{theme:"dark",...t})),Ne.dismiss=function(e){!function(e){if(xe()){if(null==e||(e=>ae(e)||ie(e))(e))be.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=be.get(e.containerId);t?t.removeToast(e.id):be.forEach(t=>{t.removeToast(e.id)})}}else ge=ge.filter(t=>null!=e&&t.options.toastId!==e)}(e)},Ne.clearWaitingQueue=(e={})=>{be.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})},Ne.isActive=ke,Ne.update=(e,t={})=>{let n=((e,{containerId:t})=>{var n;return null==(n=be.get(t||1))?void 0:n.toasts.get(e)})(e,t);if(n){let{props:r,content:o}=n,i={delay:100,...r,...t,toastId:t.toastId||e,updateId:ye()};i.toastId!==e&&(i.staleId=e);let a=i.render||o;delete i.render,Ae(a,i)}},Ne.done=e=>{Ne.update(e,{progress:1})},Ne.onChange=function(e){return ve.add(e),()=>{ve.delete(e)}},Ne.play=e=>_e(!0,e),Ne.pause=e=>_e(!1,e);var Oe="undefined"!=typeof window?l().useLayoutEffect:l().useEffect,Pe=({theme:e,type:t,isLoading:n,...r})=>l().createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===e?"currentColor":`var(--toastify-icon-color-${t})`,...r}),Ie={info:function(e){return l().createElement(Pe,{...e},l().createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return l().createElement(Pe,{...e},l().createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return l().createElement(Pe,{...e},l().createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return l().createElement(Pe,{...e},l().createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return l().createElement("div",{className:"Toastify__spinner"})}};var Le=e=>{let{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:o,playToast:i}=function(e){let[t,n]=(0,l().useState)(!1),[r,o]=(0,l().useState)(!1),i=(0,l().useRef)(null),a=(0,l().useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:s,pauseOnHover:c,closeToast:u,onClick:d,closeOnClick:f}=e;function p(){n(!0)}function h(){n(!1)}function m(n){let r=i.current;if(a.canDrag&&r){a.didMove=!0,t&&h(),"x"===e.draggableDirection?a.delta=n.clientX-a.start:a.delta=n.clientY-a.start,a.start!==n.clientX&&(a.canCloseOnClick=!1);let o="x"===e.draggableDirection?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`;r.style.transform=`translate3d(${o},0)`,r.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance))}}function y(){document.removeEventListener("pointermove",m),document.removeEventListener("pointerup",y);let t=i.current;if(a.canDrag&&a.didMove&&t){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return o(!0),e.closeToast(!0),void e.collapseAll();t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}(function(e){var t;null==(t=be.get(e.containerId||1))||t.setToggle(e.id,e.fn)})({id:e.toastId,containerId:e.containerId,fn:n}),(0,l().useEffect)(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||h(),window.addEventListener("focus",p),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",p),window.removeEventListener("blur",h)}},[e.pauseOnFocusLoss]);let b={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){a.didMove=!1,document.addEventListener("pointermove",m),document.addEventListener("pointerup",y);let n=i.current;a.canCloseOnClick=!0,a.canDrag=!0,n.style.transition="none","x"===e.draggableDirection?(a.start=t.clientX,a.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(a.start=t.clientY,a.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){let{top:n,bottom:r,left:o,right:a}=i.current.getBoundingClientRect();"mouse"===t.pointerType&&e.pauseOnHover&&t.clientX>=o&&t.clientX<=a&&t.clientY>=n&&t.clientY<=r?h():p()}};return s&&c&&(b.onMouseEnter=h,e.stacked||(b.onMouseLeave=p)),f&&(b.onClick=e=>{d&&d(e),a.canCloseOnClick&&u(!0)}),{playToast:p,pauseToast:h,isRunning:t,preventExitTransition:r,toastRef:i,eventHandlers:b}}(e),{closeButton:a,children:s,autoClose:c,onClick:u,type:d,hideProgressBar:f,closeToast:p,transition:h,position:m,className:y,style:b,progressClassName:g,updateId:v,role:w,progress:x,rtl:k,toastId:S,deleteToast:_,isIn:C,isLoading:E,closeOnClick:A,theme:T,ariaLabel:j}=e,N=oe("Toastify__toast",`Toastify__toast-theme--${T}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":k},{"Toastify__toast--close-on-click":A}),O=le(y)?y({rtl:k,position:m,type:d,defaultClassName:N}):oe(N,y),P=function({theme:e,type:t,isLoading:n,icon:r}){let o=null,i={theme:e,type:t};return!1===r||(le(r)?o=r({...i,isLoading:n}):(0,l().isValidElement)(r)?o=(0,l().cloneElement)(r,i):n?o=Ie.spinner():(e=>e in Ie)(t)&&(o=Ie[t](i))),o}(e),I=!!x||!c,L={closeToast:p,type:d,theme:T},z=null;return!1===a||(z=le(a)?a(L):(0,l().isValidElement)(a)?(0,l().cloneElement)(a,L):function({closeToast:e,theme:t,ariaLabel:n="close"}){return l().createElement("button",{className:`Toastify__close-button Toastify__close-button--${t}`,type:"button",onClick:t=>{t.stopPropagation(),e(!0)},"aria-label":n},l().createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},l().createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(L)),l().createElement(h,{isIn:C,done:_,position:m,preventExitTransition:n,nodeRef:r,playToast:i},l().createElement("div",{id:S,tabIndex:0,onClick:u,"data-in":C,className:O,...o,style:b,ref:r,...C&&{role:w,"aria-label":j}},null!=P&&l().createElement("div",{className:oe("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!E})},P),pe(s,e,!t),z,!e.customProgressBar&&l().createElement(he,{...v&&!I?{key:`p-${v}`}:{},rtl:k,theme:T,delay:c,isRunning:t,isIn:C,closeToast:p,hide:f,type:d,className:g,controlledProgress:I,progress:x||0})))},ze=(e,t=!1)=>({enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}),Me=de(ze("bounce",!0)),Re=(de(ze("slide",!0)),de(ze("zoom")),de(ze("flip")),{position:"top-right",transition:Me,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:e=>e.altKey&&"KeyT"===e.code});function De(e){let t={...Re,...e},n=e.stacked,[r,o]=(0,l().useState)(!0),i=(0,l().useRef)(null),{getToastToRender:a,isToastActive:s,count:c}=function(e){var t;let{subscribe:n,getSnapshot:r,setProps:o}=(0,l().useRef)(Ce(e)).current;o(e);let i=null==(t=(0,l().useSyncExternalStore)(n,r,r))?void 0:t.slice();return{getToastToRender:function(t){if(!i)return[];let n=new Map;return e.newestOnTop&&i.reverse(),i.forEach(e=>{let{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)}),Array.from(n,e=>t(e[0],e[1]))},isToastActive:ke,count:null==i?void 0:i.length}}(t),{className:u,style:d,rtl:f,containerId:p,hotKeys:h}=t;function m(e){let t=oe("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":f});return le(u)?u({position:e,rtl:f,defaultClassName:t}):oe(t,se(u))}function y(){n&&(o(!0),Ne.play())}return Oe(()=>{var e;if(n){let n=i.current.querySelectorAll('[data-in="true"]'),o=12,a=null==(e=t.position)?void 0:e.includes("top"),l=0,s=0;Array.from(n).reverse().forEach((e,t)=>{let n=e;n.classList.add("Toastify__toast--stacked"),t>0&&(n.dataset.collapsed=`${r}`),n.dataset.pos||(n.dataset.pos=a?"top":"bot");let i=l*(r?.2:1)+(r?0:o*t),c=Math.max(.5,1-(r?s:0));n.style.setProperty("--y",`${a?i:-1*i}px`),n.style.setProperty("--g",`${o}`),n.style.setProperty("--s",`${c}`),l+=n.offsetHeight,s+=.025})}},[r,c,n]),(0,l().useEffect)(()=>{function e(e){var t;let n=i.current;h(e)&&(null==(t=null==n?void 0:n.querySelector('[tabIndex="0"]'))||t.focus(),o(!1),Ne.pause()),"Escape"===e.key&&(document.activeElement===n||null!=n&&n.contains(document.activeElement))&&(o(!0),Ne.play())}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[h]),l().createElement("section",{ref:i,className:"Toastify",id:p,onMouseEnter:()=>{n&&(o(!1),Ne.pause())},onMouseLeave:y,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":t["aria-label"]},a((e,t)=>{let r=t.length?{...d}:{...d,pointerEvents:"none"};return l().createElement("div",{tabIndex:-1,className:m(e),"data-stacked":n,style:r,key:`c-${e}`},t.map(({content:e,props:t})=>l().createElement(Le,{...t,stacked:n,collapseAll:y,isIn:s(t.toastId,t.containerId),key:`t-${t.key}`},e)))}))}var Fe=new Map;function Be(e){return((e,t)=>{Oe(()=>{if("undefined"==typeof document)return;let n=document,r=Fe.get(n);if(r)return void(t&&r.setAttribute("nonce",t));let o=n.createElement("style");o.textContent=e,t&&o.setAttribute("nonce",t),n.head.appendChild(o),Fe.set(n,o)},[t])})(":root {\n --toastify-color-light: #fff;\n --toastify-color-dark: #121212;\n --toastify-color-info: #3498db;\n --toastify-color-success: #07bc0c;\n --toastify-color-warning: #f1c40f;\n --toastify-color-error: hsl(6, 78%, 57%);\n --toastify-color-transparent: rgba(255, 255, 255, 0.7);\n\n --toastify-icon-color-info: var(--toastify-color-info);\n --toastify-icon-color-success: var(--toastify-color-success);\n --toastify-icon-color-warning: var(--toastify-color-warning);\n --toastify-icon-color-error: var(--toastify-color-error);\n\n --toastify-container-width: fit-content;\n --toastify-toast-width: 320px;\n --toastify-toast-offset: 16px;\n --toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));\n --toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));\n --toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));\n --toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));\n --toastify-toast-background: #fff;\n --toastify-toast-padding: 14px;\n --toastify-toast-min-height: 64px;\n --toastify-toast-max-height: 800px;\n --toastify-toast-bd-radius: 6px;\n --toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);\n --toastify-font-family: sans-serif;\n --toastify-z-index: 9999;\n --toastify-text-color-light: #757575;\n --toastify-text-color-dark: #fff;\n\n /* Used only for colored theme */\n --toastify-text-color-info: #fff;\n --toastify-text-color-success: #fff;\n --toastify-text-color-warning: #fff;\n --toastify-text-color-error: #fff;\n\n --toastify-spinner-color: #616161;\n --toastify-spinner-color-empty-area: #e0e0e0;\n --toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);\n --toastify-color-progress-dark: #bb86fc;\n --toastify-color-progress-info: var(--toastify-color-info);\n --toastify-color-progress-success: var(--toastify-color-success);\n --toastify-color-progress-warning: var(--toastify-color-warning);\n --toastify-color-progress-error: var(--toastify-color-error);\n /* used to control the opacity of the progress trail */\n --toastify-color-progress-bgo: 0.2;\n}\n\n.Toastify__toast-container {\n z-index: var(--toastify-z-index);\n -webkit-transform: translate3d(0, 0, var(--toastify-z-index));\n position: fixed;\n width: var(--toastify-container-width);\n box-sizing: border-box;\n color: #fff;\n display: flex;\n flex-direction: column;\n}\n\n.Toastify__toast-container--top-left {\n top: var(--toastify-toast-top);\n left: var(--toastify-toast-left);\n}\n.Toastify__toast-container--top-center {\n top: var(--toastify-toast-top);\n left: 50%;\n transform: translateX(-50%);\n align-items: center;\n}\n.Toastify__toast-container--top-right {\n top: var(--toastify-toast-top);\n right: var(--toastify-toast-right);\n align-items: end;\n}\n.Toastify__toast-container--bottom-left {\n bottom: var(--toastify-toast-bottom);\n left: var(--toastify-toast-left);\n}\n.Toastify__toast-container--bottom-center {\n bottom: var(--toastify-toast-bottom);\n left: 50%;\n transform: translateX(-50%);\n align-items: center;\n}\n.Toastify__toast-container--bottom-right {\n bottom: var(--toastify-toast-bottom);\n right: var(--toastify-toast-right);\n align-items: end;\n}\n\n.Toastify__toast {\n --y: 0px;\n position: relative;\n touch-action: none;\n width: var(--toastify-toast-width);\n min-height: var(--toastify-toast-min-height);\n box-sizing: border-box;\n margin-bottom: 1rem;\n padding: var(--toastify-toast-padding);\n border-radius: var(--toastify-toast-bd-radius);\n box-shadow: var(--toastify-toast-shadow);\n max-height: var(--toastify-toast-max-height);\n font-family: var(--toastify-font-family);\n /* webkit only issue #791 */\n z-index: 0;\n /* inner swag */\n display: flex;\n flex: 1 auto;\n align-items: center;\n word-break: break-word;\n}\n\n@media only screen and (max-width: 480px) {\n .Toastify__toast-container {\n width: 100vw;\n left: env(safe-area-inset-left);\n margin: 0;\n }\n .Toastify__toast-container--top-left,\n .Toastify__toast-container--top-center,\n .Toastify__toast-container--top-right {\n top: env(safe-area-inset-top);\n transform: translateX(0);\n }\n .Toastify__toast-container--bottom-left,\n .Toastify__toast-container--bottom-center,\n .Toastify__toast-container--bottom-right {\n bottom: env(safe-area-inset-bottom);\n transform: translateX(0);\n }\n .Toastify__toast-container--rtl {\n right: env(safe-area-inset-right);\n left: initial;\n }\n .Toastify__toast {\n --toastify-toast-width: 100%;\n margin-bottom: 0;\n border-radius: 0;\n }\n}\n\n.Toastify__toast-container[data-stacked='true'] {\n width: var(--toastify-toast-width);\n}\n\n@media only screen and (max-width: 480px) {\n .Toastify__toast-container[data-stacked='true'] {\n width: 100vw;\n }\n}\n\n.Toastify__toast--stacked {\n position: absolute;\n width: 100%;\n transform: translate3d(0, var(--y), 0) scale(var(--s));\n transition: transform 0.3s;\n}\n\n.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,\n.Toastify__toast--stacked[data-collapsed] .Toastify__close-button {\n transition: opacity 0.1s;\n}\n\n.Toastify__toast--stacked[data-collapsed='false'] {\n overflow: visible;\n}\n\n.Toastify__toast--stacked[data-collapsed='true']:not(:last-child) > * {\n opacity: 0;\n}\n\n.Toastify__toast--stacked:after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n height: calc(var(--g) * 1px);\n bottom: 100%;\n}\n\n.Toastify__toast--stacked[data-pos='top'] {\n top: 0;\n}\n\n.Toastify__toast--stacked[data-pos='bot'] {\n bottom: 0;\n}\n\n.Toastify__toast--stacked[data-pos='bot'].Toastify__toast--stacked:before {\n transform-origin: top;\n}\n\n.Toastify__toast--stacked[data-pos='top'].Toastify__toast--stacked:before {\n transform-origin: bottom;\n}\n\n.Toastify__toast--stacked:before {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n transform: scaleY(3);\n z-index: -1;\n}\n\n.Toastify__toast--rtl {\n direction: rtl;\n}\n\n.Toastify__toast--close-on-click {\n cursor: pointer;\n}\n\n.Toastify__toast-icon {\n margin-inline-end: 10px;\n width: 22px;\n flex-shrink: 0;\n display: flex;\n}\n\n.Toastify--animate {\n animation-fill-mode: both;\n animation-duration: 0.5s;\n}\n\n.Toastify--animate-icon {\n animation-fill-mode: both;\n animation-duration: 0.3s;\n}\n\n.Toastify__toast-theme--dark {\n background: var(--toastify-color-dark);\n color: var(--toastify-text-color-dark);\n}\n\n.Toastify__toast-theme--light {\n background: var(--toastify-color-light);\n color: var(--toastify-text-color-light);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--default {\n background: var(--toastify-color-light);\n color: var(--toastify-text-color-light);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--info {\n color: var(--toastify-text-color-info);\n background: var(--toastify-color-info);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--success {\n color: var(--toastify-text-color-success);\n background: var(--toastify-color-success);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--warning {\n color: var(--toastify-text-color-warning);\n background: var(--toastify-color-warning);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--error {\n color: var(--toastify-text-color-error);\n background: var(--toastify-color-error);\n}\n\n.Toastify__progress-bar-theme--light {\n background: var(--toastify-color-progress-light);\n}\n\n.Toastify__progress-bar-theme--dark {\n background: var(--toastify-color-progress-dark);\n}\n\n.Toastify__progress-bar--info {\n background: var(--toastify-color-progress-info);\n}\n\n.Toastify__progress-bar--success {\n background: var(--toastify-color-progress-success);\n}\n\n.Toastify__progress-bar--warning {\n background: var(--toastify-color-progress-warning);\n}\n\n.Toastify__progress-bar--error {\n background: var(--toastify-color-progress-error);\n}\n\n.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,\n.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,\n.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,\n.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error {\n background: var(--toastify-color-transparent);\n}\n\n.Toastify__close-button {\n color: #fff;\n position: absolute;\n top: 6px;\n right: 6px;\n background: transparent;\n outline: none;\n border: none;\n padding: 0;\n cursor: pointer;\n opacity: 0.7;\n transition: 0.3s ease;\n z-index: 1;\n}\n\n.Toastify__toast--rtl .Toastify__close-button {\n left: 6px;\n right: unset;\n}\n\n.Toastify__close-button--light {\n color: #000;\n opacity: 0.3;\n}\n\n.Toastify__close-button > svg {\n fill: currentColor;\n height: 16px;\n width: 14px;\n}\n\n.Toastify__close-button:hover,\n.Toastify__close-button:focus {\n opacity: 1;\n}\n\n@keyframes Toastify__trackProgress {\n 0% {\n transform: scaleX(1);\n }\n 100% {\n transform: scaleX(0);\n }\n}\n\n.Toastify__progress-bar {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 1;\n opacity: 0.7;\n transform-origin: left;\n}\n\n.Toastify__progress-bar--animated {\n animation: Toastify__trackProgress linear 1 forwards;\n}\n\n.Toastify__progress-bar--controlled {\n transition: transform 0.2s;\n}\n\n.Toastify__progress-bar--rtl {\n right: 0;\n left: initial;\n transform-origin: right;\n border-bottom-left-radius: initial;\n}\n\n.Toastify__progress-bar--wrp {\n position: absolute;\n overflow: hidden;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 5px;\n border-bottom-left-radius: var(--toastify-toast-bd-radius);\n border-bottom-right-radius: var(--toastify-toast-bd-radius);\n}\n\n.Toastify__progress-bar--wrp[data-hidden='true'] {\n opacity: 0;\n}\n\n.Toastify__progress-bar--bg {\n opacity: var(--toastify-color-progress-bgo);\n width: 100%;\n height: 100%;\n}\n\n.Toastify__spinner {\n width: 20px;\n height: 20px;\n box-sizing: border-box;\n border: 2px solid;\n border-radius: 100%;\n border-color: var(--toastify-spinner-color-empty-area);\n border-right-color: var(--toastify-spinner-color);\n animation: Toastify__spin 0.65s linear infinite;\n}\n\n@keyframes Toastify__bounceInRight {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n from {\n opacity: 0;\n transform: translate3d(3000px, 0, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(-25px, 0, 0);\n }\n 75% {\n transform: translate3d(10px, 0, 0);\n }\n 90% {\n transform: translate3d(-5px, 0, 0);\n }\n to {\n transform: none;\n }\n}\n\n@keyframes Toastify__bounceOutRight {\n 20% {\n opacity: 1;\n transform: translate3d(-20px, var(--y), 0);\n }\n to {\n opacity: 0;\n transform: translate3d(2000px, var(--y), 0);\n }\n}\n\n@keyframes Toastify__bounceInLeft {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n 0% {\n opacity: 0;\n transform: translate3d(-3000px, 0, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(25px, 0, 0);\n }\n 75% {\n transform: translate3d(-10px, 0, 0);\n }\n 90% {\n transform: translate3d(5px, 0, 0);\n }\n to {\n transform: none;\n }\n}\n\n@keyframes Toastify__bounceOutLeft {\n 20% {\n opacity: 1;\n transform: translate3d(20px, var(--y), 0);\n }\n to {\n opacity: 0;\n transform: translate3d(-2000px, var(--y), 0);\n }\n}\n\n@keyframes Toastify__bounceInUp {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n from {\n opacity: 0;\n transform: translate3d(0, 3000px, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(0, -20px, 0);\n }\n 75% {\n transform: translate3d(0, 10px, 0);\n }\n 90% {\n transform: translate3d(0, -5px, 0);\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n}\n\n@keyframes Toastify__bounceOutUp {\n 20% {\n transform: translate3d(0, calc(var(--y) - 10px), 0);\n }\n 40%,\n 45% {\n opacity: 1;\n transform: translate3d(0, calc(var(--y) + 20px), 0);\n }\n to {\n opacity: 0;\n transform: translate3d(0, -2000px, 0);\n }\n}\n\n@keyframes Toastify__bounceInDown {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n 0% {\n opacity: 0;\n transform: translate3d(0, -3000px, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(0, 25px, 0);\n }\n 75% {\n transform: translate3d(0, -10px, 0);\n }\n 90% {\n transform: translate3d(0, 5px, 0);\n }\n to {\n transform: none;\n }\n}\n\n@keyframes Toastify__bounceOutDown {\n 20% {\n transform: translate3d(0, calc(var(--y) - 10px), 0);\n }\n 40%,\n 45% {\n opacity: 1;\n transform: translate3d(0, calc(var(--y) + 20px), 0);\n }\n to {\n opacity: 0;\n transform: translate3d(0, 2000px, 0);\n }\n}\n\n.Toastify__bounce-enter--top-left,\n.Toastify__bounce-enter--bottom-left {\n animation-name: Toastify__bounceInLeft;\n}\n\n.Toastify__bounce-enter--top-right,\n.Toastify__bounce-enter--bottom-right {\n animation-name: Toastify__bounceInRight;\n}\n\n.Toastify__bounce-enter--top-center {\n animation-name: Toastify__bounceInDown;\n}\n\n.Toastify__bounce-enter--bottom-center {\n animation-name: Toastify__bounceInUp;\n}\n\n.Toastify__bounce-exit--top-left,\n.Toastify__bounce-exit--bottom-left {\n animation-name: Toastify__bounceOutLeft;\n}\n\n.Toastify__bounce-exit--top-right,\n.Toastify__bounce-exit--bottom-right {\n animation-name: Toastify__bounceOutRight;\n}\n\n.Toastify__bounce-exit--top-center {\n animation-name: Toastify__bounceOutUp;\n}\n\n.Toastify__bounce-exit--bottom-center {\n animation-name: Toastify__bounceOutDown;\n}\n\n@keyframes Toastify__zoomIn {\n from {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n 50% {\n opacity: 1;\n }\n}\n\n@keyframes Toastify__zoomOut {\n from {\n opacity: 1;\n }\n 50% {\n opacity: 0;\n transform: translate3d(0, var(--y), 0) scale3d(0.3, 0.3, 0.3);\n }\n to {\n opacity: 0;\n }\n}\n\n.Toastify__zoom-enter {\n animation-name: Toastify__zoomIn;\n}\n\n.Toastify__zoom-exit {\n animation-name: Toastify__zoomOut;\n}\n\n@keyframes Toastify__flipIn {\n from {\n transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n animation-timing-function: ease-in;\n opacity: 0;\n }\n 40% {\n transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n animation-timing-function: ease-in;\n }\n 60% {\n transform: perspective(400px) rotate3d(1, 0, 0, 10deg);\n opacity: 1;\n }\n 80% {\n transform: perspective(400px) rotate3d(1, 0, 0, -5deg);\n }\n to {\n transform: perspective(400px);\n }\n}\n\n@keyframes Toastify__flipOut {\n from {\n transform: translate3d(0, var(--y), 0) perspective(400px);\n }\n 30% {\n transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, -20deg);\n opacity: 1;\n }\n to {\n transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, 90deg);\n opacity: 0;\n }\n}\n\n.Toastify__flip-enter {\n animation-name: Toastify__flipIn;\n}\n\n.Toastify__flip-exit {\n animation-name: Toastify__flipOut;\n}\n\n@keyframes Toastify__slideInRight {\n from {\n transform: translate3d(110%, 0, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideInLeft {\n from {\n transform: translate3d(-110%, 0, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideInUp {\n from {\n transform: translate3d(0, 110%, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideInDown {\n from {\n transform: translate3d(0, -110%, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideOutRight {\n from {\n transform: translate3d(0, var(--y), 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(110%, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideOutLeft {\n from {\n transform: translate3d(0, var(--y), 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(-110%, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideOutDown {\n from {\n transform: translate3d(0, var(--y), 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(0, 500px, 0);\n }\n}\n\n@keyframes Toastify__slideOutUp {\n from {\n transform: translate3d(0, var(--y), 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(0, -500px, 0);\n }\n}\n\n.Toastify__slide-enter--top-left,\n.Toastify__slide-enter--bottom-left {\n animation-name: Toastify__slideInLeft;\n}\n\n.Toastify__slide-enter--top-right,\n.Toastify__slide-enter--bottom-right {\n animation-name: Toastify__slideInRight;\n}\n\n.Toastify__slide-enter--top-center {\n animation-name: Toastify__slideInDown;\n}\n\n.Toastify__slide-enter--bottom-center {\n animation-name: Toastify__slideInUp;\n}\n\n.Toastify__slide-exit--top-left,\n.Toastify__slide-exit--bottom-left {\n animation-name: Toastify__slideOutLeft;\n animation-timing-function: ease-in;\n animation-duration: 0.3s;\n}\n\n.Toastify__slide-exit--top-right,\n.Toastify__slide-exit--bottom-right {\n animation-name: Toastify__slideOutRight;\n animation-timing-function: ease-in;\n animation-duration: 0.3s;\n}\n\n.Toastify__slide-exit--top-center {\n animation-name: Toastify__slideOutUp;\n animation-timing-function: ease-in;\n animation-duration: 0.3s;\n}\n\n.Toastify__slide-exit--bottom-center {\n animation-name: Toastify__slideOutDown;\n animation-timing-function: ease-in;\n animation-duration: 0.3s;\n}\n\n@keyframes Toastify__spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}\n",e.nonce),l().createElement(De,{...e})}function qe(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Ue=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),We=()=>Math.random().toString(36).substring(7).split("").join("."),Ve={INIT:`@@redux/INIT${We()}`,REPLACE:`@@redux/REPLACE${We()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${We()}`};function Qe(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function He(e,t,n){if("function"!=typeof e)throw new Error(qe(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(qe(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(qe(1));return n(He)(e,t)}let r=e,o=t,i=new Map,a=i,l=0,s=!1;function c(){a===i&&(a=new Map,i.forEach((e,t)=>{a.set(t,e)}))}function u(){if(s)throw new Error(qe(3));return o}function d(e){if("function"!=typeof e)throw new Error(qe(4));if(s)throw new Error(qe(5));let t=!0;c();const n=l++;return a.set(n,e),function(){if(t){if(s)throw new Error(qe(6));t=!1,c(),a.delete(n),i=null}}}function f(e){if(!Qe(e))throw new Error(qe(7));if(void 0===e.type)throw new Error(qe(8));if("string"!=typeof e.type)throw new Error(qe(17));if(s)throw new Error(qe(9));try{s=!0,o=r(o,e)}finally{s=!1}return(i=a).forEach(e=>{e()}),e}return f({type:Ve.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(qe(10));r=e,f({type:Ve.REPLACE})},[Ue]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(qe(11));function n(){const e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[Ue](){return this}}}}}function Ke(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}const r=Object.keys(n);let o;try{!function(e){Object.keys(e).forEach(t=>{const n=e[t];if(void 0===n(void 0,{type:Ve.INIT}))throw new Error(qe(12));if(void 0===n(void 0,{type:Ve.PROBE_UNKNOWN_ACTION()}))throw new Error(qe(13))})}(n)}catch(e){o=e}return function(e={},t){if(o)throw o;let i=!1;const a={};for(let o=0;o<r.length;o++){const l=r[o],s=n[l],c=e[l],u=s(c,t);if(void 0===u)throw t&&t.type,new Error(qe(14));a[l]=u,i=i||u!==c}return i=i||r.length!==Object.keys(e).length,i?a:e}}function $e(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function Ye(e){return Qe(e)&&"type"in e&&"string"==typeof e.type}function Ge(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}var Xe=Ge(),Je=Ge,Ze=Symbol.for("immer-nothing"),et=Symbol.for("immer-draftable"),tt=Symbol.for("immer-state");function nt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var rt=Object.getPrototypeOf;function ot(e){return!!e&&!!e[tt]}function it(e){return!!e&&(lt(e)||Array.isArray(e)||!!e[et]||!!e.constructor?.[et]||pt(e)||ht(e))}var at=Object.prototype.constructor.toString();function lt(e){if(!e||"object"!=typeof e)return!1;const t=rt(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===at}function st(e,t){0===ct(e)?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function ct(e){const t=e[tt];return t?t.type_:Array.isArray(e)?1:pt(e)?2:ht(e)?3:0}function ut(e,t){return 2===ct(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function dt(e,t){return 2===ct(e)?e.get(t):e[t]}function ft(e,t,n){const r=ct(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function pt(e){return e instanceof Map}function ht(e){return e instanceof Set}function mt(e){return e.copy_||e.base_}function yt(e,t){if(pt(e))return new Map(e);if(ht(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=lt(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[tt];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(rt(e),t)}{const t=rt(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function bt(e,t=!1){return vt(e)||ot(e)||!it(e)||(ct(e)>1&&(e.set=e.add=e.clear=e.delete=gt),Object.freeze(e),t&&Object.entries(e).forEach(([e,t])=>bt(t,!0))),e}function gt(){nt(2)}function vt(e){return Object.isFrozen(e)}var wt,xt={};function kt(e){const t=xt[e];return t||nt(0),t}function St(){return wt}function _t(e,t){t&&(kt("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Ct(e){Et(e),e.drafts_.forEach(Tt),e.drafts_=null}function Et(e){e===wt&&(wt=e.parent_)}function At(e){return wt={drafts_:[],parent_:wt,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Tt(e){const t=e[tt];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function jt(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[tt].modified_&&(Ct(t),nt(4)),it(e)&&(e=Nt(t,e),t.parent_||Pt(t,e)),t.patches_&&kt("Patches").generateReplacementPatches_(n[tt].base_,e,t.patches_,t.inversePatches_)):e=Nt(t,n,[]),Ct(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Ze?e:void 0}function Nt(e,t,n){if(vt(t))return t;const r=t[tt];if(!r)return st(t,(o,i)=>Ot(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Pt(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),st(o,(o,a)=>Ot(e,r,t,o,a,n,i)),Pt(e,t,!1),n&&e.patches_&&kt("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Ot(e,t,n,r,o,i,a){if(ot(o)){const a=Nt(e,o,i&&t&&3!==t.type_&&!ut(t.assigned_,r)?i.concat(r):void 0);if(ft(n,r,a),!ot(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(it(o)&&!vt(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Nt(e,o),t&&t.scope_.parent_||"symbol"==typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||Pt(e,o)}}function Pt(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&bt(t,n)}var It={get(e,t){if(t===tt)return e;const n=mt(e);if(!ut(n,t))return function(e,t,n){const r=Mt(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!it(r)?r:r===zt(e.base_,t)?(Dt(e),e.copy_[t]=Ft(r,e)):r},has:(e,t)=>t in mt(e),ownKeys:e=>Reflect.ownKeys(mt(e)),set(e,t,n){const r=Mt(mt(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=zt(mt(e),t),a=r?.[tt];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((o=n)===(i=r)?0!==o||1/o==1/i:o!=o&&i!=i)&&(void 0!==n||ut(e.base_,t)))return!0;Dt(e),Rt(e)}var o,i;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==zt(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Dt(e),Rt(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=mt(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){nt(11)},getPrototypeOf:e=>rt(e.base_),setPrototypeOf(){nt(12)}},Lt={};function zt(e,t){const n=e[tt];return(n?mt(n):e)[t]}function Mt(e,t){if(!(t in e))return;let n=rt(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=rt(n)}}function Rt(e){e.modified_||(e.modified_=!0,e.parent_&&Rt(e.parent_))}function Dt(e){e.copy_||(e.copy_=yt(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function Ft(e,t){const n=pt(e)?kt("MapSet").proxyMap_(e,t):ht(e)?kt("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:St(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=It;n&&(o=[r],i=Lt);const{revoke:a,proxy:l}=Proxy.revocable(o,i);return r.draft_=l,r.revoke_=a,l}(e,t);return(t?t.scope_:St()).drafts_.push(n),n}function Bt(e){if(!it(e)||vt(e))return e;const t=e[tt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=yt(e,t.scope_.immer_.useStrictShallowCopy_)}else n=yt(e,!0);return st(n,(e,t)=>{ft(n,e,Bt(t))}),t&&(t.finalized_=!1),n}function qt(){const e="replace",t="add",n="remove";function r(e){if(!it(e))return e;if(Array.isArray(e))return e.map(r);if(pt(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,r(t)]));if(ht(e))return new Set(Array.from(e).map(r));const t=Object.create(rt(e));for(const n in e)t[n]=r(e[n]);return ut(e,et)&&(t[et]=e[et]),t}function o(e){return ot(e)?r(e):e}var i,a;a={applyPatches_:function(o,i){return i.forEach(i=>{const{path:a,op:l}=i;let s=o;for(let e=0;e<a.length-1;e++){const t=ct(s);let n=a[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),0!==t&&1!==t||"__proto__"!==n&&"constructor"!==n||nt(19),"function"==typeof s&&"prototype"===n&&nt(19),s=dt(s,n),"object"!=typeof s&&nt(18,a.join("/"))}const c=ct(s),u=r(i.value),d=a[a.length-1];switch(l){case e:switch(c){case 2:return s.set(d,u);case 3:nt(16);default:return s[d]=u}case t:switch(c){case 1:return"-"===d?s.push(u):s.splice(d,0,u);case 2:return s.set(d,u);case 3:return s.add(u);default:return s[d]=u}case n:switch(c){case 1:return s.splice(d,1);case 2:return s.delete(d);case 3:return s.delete(i.value);default:return delete s[d]}default:nt(17)}}),o},generatePatches_:function(r,i,a,l){switch(r.type_){case 0:case 2:return function(r,i,a,l){const{base_:s,copy_:c}=r;st(r.assigned_,(r,u)=>{const d=dt(s,r),f=dt(c,r),p=u?ut(s,r)?e:t:n;if(d===f&&p===e)return;const h=i.concat(r);a.push(p===n?{op:p,path:h}:{op:p,path:h,value:f}),l.push(p===t?{op:n,path:h}:p===n?{op:t,path:h,value:o(d)}:{op:e,path:h,value:o(d)})})}(r,i,a,l);case 1:return function(r,i,a,l){let{base_:s,assigned_:c}=r,u=r.copy_;u.length<s.length&&([s,u]=[u,s],[a,l]=[l,a]);for(let t=0;t<s.length;t++)if(c[t]&&u[t]!==s[t]){const n=i.concat([t]);a.push({op:e,path:n,value:o(u[t])}),l.push({op:e,path:n,value:o(s[t])})}for(let e=s.length;e<u.length;e++){const n=i.concat([e]);a.push({op:t,path:n,value:o(u[e])})}for(let e=u.length-1;s.length<=e;--e){const t=i.concat([e]);l.push({op:n,path:t})}}(r,i,a,l);case 3:return function(e,r,o,i){let{base_:a,copy_:l}=e,s=0;a.forEach(e=>{if(!l.has(e)){const a=r.concat([s]);o.push({op:n,path:a,value:e}),i.unshift({op:t,path:a,value:e})}s++}),s=0,l.forEach(e=>{if(!a.has(e)){const a=r.concat([s]);o.push({op:t,path:a,value:e}),i.unshift({op:n,path:a,value:e})}s++})}(r,i,a,l)}},generateReplacementPatches_:function(t,n,r,o){r.push({op:e,path:[],value:n===Ze?void 0:n}),o.push({op:e,path:[],value:t})}},xt[i="Patches"]||(xt[i]=a)}st(It,(e,t)=>{Lt[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Lt.deleteProperty=function(e,t){return Lt.set.call(this,e,t,void 0)},Lt.set=function(e,t,n){return It.set.call(this,e[0],t,n,e[0])};var Ut=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,e=>t.call(this,e,...o))}}let r;if("function"!=typeof t&&nt(6),void 0!==n&&"function"!=typeof n&&nt(7),it(e)){const o=At(this),i=Ft(e,void 0);let a=!0;try{r=t(i),a=!1}finally{a?Ct(o):Et(o)}return _t(o,n),jt(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===Ze&&(r=void 0),this.autoFreeze_&&bt(r,!0),n){const t=[],o=[];kt("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}nt(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){var t;it(e)||nt(8),ot(e)&&(ot(t=e)||nt(10),e=Bt(t));const n=At(this),r=Ft(e,void 0);return r[tt].isManual_=!0,Et(n),r}finishDraft(e,t){const n=e&&e[tt];n&&n.isManual_||nt(9);const{scope_:r}=n;return _t(r,t),jt(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=kt("Patches").applyPatches_;return ot(e)?r(e,t):this.produce(e,e=>r(e,t))}},Wt=Ut.produce,Vt=Ut.produceWithPatches.bind(Ut),Qt=(Ut.setAutoFreeze.bind(Ut),Ut.setUseStrictShallowCopy.bind(Ut),Ut.applyPatches.bind(Ut));Ut.createDraft.bind(Ut),Ut.finishDraft.bind(Ut);var Ht="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?$e:$e.apply(null,arguments)},Kt=("undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__,e=>e&&"function"==typeof e.match);function $t(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(Tn(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>Ye(t)&&t.type===e,n}var Yt=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function Gt(e){return it(e)?Wt(e,()=>{}):e}function Xt(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(Tn(10));const r=n.insert(t,e);return e.set(t,r),r}var Jt="RTK_autoBatch",Zt=()=>e=>({payload:e,meta:{[Jt]:!0}}),en=e=>t=>{setTimeout(t,e)},tn="undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:en(10);function nn(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(Tn(28));if(r in t)throw new Error(Tn(29));return t[r]=n,o},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}var rn=(e,t)=>Kt(e)?e.match(t):e(t);function on(...e){return t=>e.some(e=>rn(e,t))}function an(...e){return t=>e.every(e=>rn(e,t))}function ln(e,t){if(!e||!e.meta)return!1;const n="string"==typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function sn(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function cn(...e){return 0===e.length?e=>ln(e,["pending"]):sn(e)?on(...e.map(e=>e.pending)):cn()(e[0])}function un(...e){return 0===e.length?e=>ln(e,["rejected"]):sn(e)?on(...e.map(e=>e.rejected)):un()(e[0])}function dn(...e){return 0===e.length||sn(e)?an(un(...e),e=>e&&e.meta&&e.meta.rejectedWithValue):dn()(e[0])}function fn(...e){return 0===e.length?e=>ln(e,["fulfilled"]):sn(e)?on(...e.map(e=>e.fulfilled)):fn()(e[0])}function pn(...e){return 0===e.length?e=>ln(e,["pending","fulfilled","rejected"]):sn(e)?on(...e.flatMap(e=>[e.pending,e.rejected,e.fulfilled])):pn()(e[0])}var hn=(e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},mn=["name","message","stack","code"],yn=class{constructor(e,t){this.payload=e,this.meta=t}_type},bn=class{constructor(e,t){this.payload=e,this.meta=t}_type},gn=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of mn)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},vn=(()=>{function e(e,t,n){const r=$t(e+"/fulfilled",(e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}})),o=$t(e+"/pending",(e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}})),i=$t(e+"/rejected",(e,t,r,o,i)=>({payload:o,error:(n&&n.serializeError||gn)(e||"Rejected"),meta:{...i||{},arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===e?.name,condition:"ConditionError"===e?.name}}));return Object.assign(function(e){return(a,l,s)=>{const c=n?.idGenerator?n.idGenerator(e):hn(),u=new AbortController;let d,f;function p(e){f=e,u.abort()}const h=async function(){let h;try{let i=n?.condition?.(e,{getState:l,extra:s});if(null!==(m=i)&&"object"==typeof m&&"function"==typeof m.then&&(i=await i),!1===i||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const y=new Promise((e,t)=>{d=()=>{t({name:"AbortError",message:f||"Aborted"})},u.signal.addEventListener("abort",d)});a(o(c,e,n?.getPendingMeta?.({requestId:c,arg:e},{getState:l,extra:s}))),h=await Promise.race([y,Promise.resolve(t(e,{dispatch:a,getState:l,extra:s,requestId:c,signal:u.signal,abort:p,rejectWithValue:(e,t)=>new yn(e,t),fulfillWithValue:(e,t)=>new bn(e,t)})).then(t=>{if(t instanceof yn)throw t;return t instanceof bn?r(t.payload,c,e,t.meta):r(t,c,e)})])}catch(t){h=t instanceof yn?i(null,c,e,t.payload,t.meta):i(t,c,e)}finally{d&&u.signal.removeEventListener("abort",d)}var m;return n&&!n.dispatchConditionRejection&&i.match(h)&&h.meta.condition||a(h),h}();return Object.assign(h,{abort:p,requestId:c,arg:e,unwrap:()=>h.then(wn)})}},{pending:o,rejected:i,fulfilled:r,settled:on(i,r),typePrefix:e})}return e.withTypes=()=>e,e})();function wn(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var xn=Symbol.for("rtk-slice-createasyncthunk");function kn(e,t){return`${e}/${t}`}function Sn({creators:e}={}){const t=e?.asyncThunk?.[xn];return function(e){const{name:n,reducerPath:r=n}=e;if(!n)throw new Error(Tn(11));const o=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},i=Object.keys(o),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(Tn(12));if(n in a.sliceCaseReducersByType)throw new Error(Tn(13));return a.sliceCaseReducersByType[n]=t,l},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),l),exposeAction:(e,t)=>(a.actionCreators[e]=t,l),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,l)};function s(){const[t={},n=[],r]="function"==typeof e.extraReducers?nn(e.extraReducers):[e.extraReducers],o={...t,...a.sliceCaseReducersByType};return function(e){let t,[i,l,s]=nn(e=>{for(let t in o)e.addCase(t,o[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)});if("function"==typeof e)t=()=>Gt(e());else{const n=Gt(e);t=()=>n}function c(e=t(),n){let r=[i[n.type],...l.filter(({matcher:e})=>e(n)).map(({reducer:e})=>e)];return 0===r.filter(e=>!!e).length&&(r=[s]),r.reduce((e,t)=>{if(t){if(ot(e)){const r=t(e,n);return void 0===r?e:r}if(it(e))return Wt(e,e=>t(e,n));{const r=t(e,n);if(void 0===r){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}}return e},e)}return c.getInitialState=t,c}(e.initialState)}i.forEach(r=>{const i=o[r],a={reducerName:r,type:kn(n,r),createNotation:"function"==typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(i)?function({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(r))throw new Error(Tn(17));i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?$t(e,a):$t(e))}(a,i,l):function({type:e,reducerName:t},n,r,o){if(!o)throw new Error(Tn(18));const{payloadCreator:i,fulfilled:a,pending:l,rejected:s,settled:c,options:u}=n,d=o(e,i,u);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a),l&&r.addCase(d.pending,l),s&&r.addCase(d.rejected,s),c&&r.addMatcher(d.settled,c),r.exposeCaseReducer(t,{fulfilled:a||En,pending:l||En,rejected:s||En,settled:c||En})}(a,i,l,t)});const c=e=>e,u=new Map;let d;function f(e,t){return d||(d=s()),d(e,t)}function p(){return d||(d=s()),d.getInitialState()}function h(t,n=!1){function r(e){let r=e[t];return void 0===r&&n&&(r=p()),r}function o(t=c){const r=Xt(u,n,{insert:()=>new WeakMap});return Xt(r,t,{insert:()=>{const r={};for(const[o,i]of Object.entries(e.selectors??{}))r[o]=_n(i,t,p,n);return r}})}return{reducerPath:t,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}const m={name:n,reducer:f,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:p,...h(r),injectInto(e,{reducerPath:t,...n}={}){const o=t??r;return e.inject({reducerPath:o,reducer:f},n),{...m,...h(o,!0)}}};return m}}function _n(e,t,n,r){function o(o,...i){let a=t(o);return void 0===a&&r&&(a=n()),e(a,...i)}return o.unwrapped=e,o}var Cn=Sn();function En(){}var{assign:An}=Object;function Tn(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}Symbol.for("rtk-state-proxy-original");var jn=e=>Array.isArray(e)?e:[e];Symbol(),Object.getPrototypeOf({});var Nn="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function On(){return{s:0,v:void 0,o:null,p:null}}function Pn(e,t={}){let n={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:r}=t;let o,i=0;function a(){let t=n;const{length:a}=arguments;for(let e=0,n=a;e<n;e++){const n=arguments[e];if("function"==typeof n||"object"==typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t=On(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t=On(),e.set(n,t)):t=r}}const l=t;let s;if(1===t.s)s=t.v;else if(s=e.apply(null,arguments),i++,r){const e=o?.deref?.()??o;null!=e&&r(e,s)&&(s=e,0!==i&&i--),o="object"==typeof s&&null!==s||"function"==typeof s?new Nn(s):s}return l.s=1,l.v=s,s}return a.clearCache=()=>{n={s:0,v:void 0,o:null,p:null},a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function In(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,o=0,i={},a=e.pop();"object"==typeof a&&(i=a,a=e.pop()),function(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const l={...n,...i},{memoize:s,memoizeOptions:c=[],argsMemoize:u=Pn,argsMemoizeOptions:d=[],devModeChecks:f={}}=l,p=jn(c),h=jn(d),m=function(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){const n=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}(e),y=s(function(){return r++,a.apply(null,arguments)},...p),b=u(function(){o++;const e=function(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}(m,arguments);return t=y.apply(null,e),t},...h);return Object.assign(b,{resultFunc:a,memoizedResultFunc:y,dependencies:m,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:s,argsMemoize:u})};return Object.assign(r,{withTypes:()=>r}),r}var Ln=In(Pn),zn=Object.assign((e,t=Ln)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map(t=>e[t]),(...e)=>e.reduce((e,t,r)=>(e[n[r]]=t,e),{}))},{withTypes:()=>zn}),Mn=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(Mn||{}),Rn=Qe;function Dn(e,t){if(e===t||!(Rn(e)&&Rn(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let o=n.length===r.length;const i=Array.isArray(t)?[]:{};for(const r of n)i[r]=Dn(e[r],t[r]),o&&(o=e[r]===i[r]);return o?e:i}function Fn(e){let t=0;for(const n in e)t++;return t}var Bn=e=>[].concat(...e);function qn(e){return null!=e}var Un=(...e)=>fetch(...e),Wn=e=>e.status>=200&&e.status<=299,Vn=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function Qn(e){if(!Qe(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}var Hn=class{constructor(e,t=void 0){this.value=e,this.meta=t}},Kn=$t("__rtkq/focused"),$n=$t("__rtkq/unfocused"),Yn=$t("__rtkq/online"),Gn=$t("__rtkq/offline");function Xn(e){return"query"===e.type}function Jn(e,t,n,r,o,i){return"function"==typeof e?e(t,n,r,o).map(Zn).map(i):Array.isArray(e)?e.map(Zn).map(i):[]}function Zn(e){return"string"==typeof e?{type:e}:e}var er=Symbol("forceQueryFn"),tr=e=>"function"==typeof e[er];function nr(e){return e}function rr(e,t,n,r){return Jn(n[e.meta.arg.endpointName][t],fn(e)?e.payload:void 0,dn(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function or(e,t,n){const r=e[t];r&&n(r)}function ir(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function ar(e,t,n){const r=e[ir(t)];r&&n(r)}var lr={};function sr({reducerPath:e,queryThunk:t,mutationThunk:n,serializeQueryArgs:r,context:{endpointDefinitions:o,apiUid:i,extractRehydrationInfo:a,hasRehydrationInfo:l},assertTagType:s,config:c}){const u=$t(`${e}/resetApiState`);function d(e,t,n,r){e[t.queryCacheKey]??={status:"uninitialized",endpointName:t.endpointName},or(e,t.queryCacheKey,e=>{e.status="pending",e.requestId=n&&e.requestId?e.requestId:r.requestId,void 0!==t.originalArgs&&(e.originalArgs=t.originalArgs),e.startedTimeStamp=r.startedTimeStamp})}function f(e,t,n){or(e,t.arg.queryCacheKey,e=>{if(e.requestId!==t.requestId&&!tr(t.arg))return;const{merge:r}=o[t.arg.endpointName];if(e.status="fulfilled",r)if(void 0!==e.data){const{fulfilledTimeStamp:o,arg:i,baseQueryMeta:a,requestId:l}=t;let s=Wt(e.data,e=>r(e,n,{arg:i.originalArgs,baseQueryMeta:a,fulfilledTimeStamp:o,requestId:l}));e.data=s}else e.data=n;else e.data=o[t.arg.endpointName].structuralSharing??!0?Dn(ot(e.data)?(ot(i=e.data)||nt(15),i[tt].base_):e.data,n):n;var i;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp})}const p=Cn({name:`${e}/queries`,initialState:lr,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Zt()},cacheEntriesUpserted:{reducer(e,t){for(const n of t.payload){const{queryDescription:r,value:o}=n;d(e,r,!0,{arg:r,requestId:t.meta.requestId,startedTimeStamp:t.meta.timestamp}),f(e,{arg:r,requestId:t.meta.requestId,fulfilledTimeStamp:t.meta.timestamp,baseQueryMeta:{}},o)}},prepare:e=>({payload:e.map(e=>{const{endpointName:t,arg:n,value:i}=e,a=o[t];return{queryDescription:{type:"query",endpointName:t,originalArgs:e.arg,queryCacheKey:r({queryArgs:n,endpointDefinition:a,endpointName:t})},value:i}}),meta:{[Jt]:!0,requestId:hn(),timestamp:Date.now()}})},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){or(e,t,e=>{e.data=Qt(e.data,n.concat())})},prepare:Zt()}},extraReducers(e){e.addCase(t.pending,(e,{meta:t,meta:{arg:n}})=>{d(e,n,tr(n),t)}).addCase(t.fulfilled,(e,{meta:t,payload:n})=>{f(e,t,n)}).addCase(t.rejected,(e,{meta:{condition:t,arg:n,requestId:r},error:o,payload:i})=>{or(e,n.queryCacheKey,e=>{if(t);else{if(e.requestId!==r)return;e.status="rejected",e.error=i??o}})}).addMatcher(l,(e,t)=>{const{queries:n}=a(t);for(const[t,r]of Object.entries(n))"fulfilled"!==r?.status&&"rejected"!==r?.status||(e[t]=r)})}}),h=Cn({name:`${e}/mutations`,initialState:lr,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=ir(t);n in e&&delete e[n]},prepare:Zt()}},extraReducers(e){e.addCase(n.pending,(e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:o}})=>{r.track&&(e[ir(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:o})}).addCase(n.fulfilled,(e,{payload:t,meta:n})=>{n.arg.track&&ar(e,n,e=>{e.requestId===n.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)})}).addCase(n.rejected,(e,{payload:t,error:n,meta:r})=>{r.arg.track&&ar(e,r,e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)})}).addMatcher(l,(e,t)=>{const{mutations:n}=a(t);for(const[t,r]of Object.entries(n))"fulfilled"!==r?.status&&"rejected"!==r?.status||t===r?.requestId||(e[t]=r)})}}),m=Cn({name:`${e}/invalidation`,initialState:lr,reducers:{updateProvidedBy:{reducer(e,t){const{queryCacheKey:n,providedTags:r}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(n);-1!==t&&e.splice(t,1)}for(const{type:t,id:o}of r){const r=(e[t]??={})[o||"__internal_without_id"]??=[];r.includes(n)||r.push(n)}},prepare:Zt()}},extraReducers(e){e.addCase(p.actions.removeQueryResult,(e,{payload:{queryCacheKey:t}})=>{for(const n of Object.values(e))for(const e of Object.values(n)){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}).addMatcher(l,(e,t)=>{const{provided:n}=a(t);for(const[t,r]of Object.entries(n))for(const[n,o]of Object.entries(r)){const r=(e[t]??={})[n||"__internal_without_id"]??=[];for(const e of o)r.includes(e)||r.push(e)}}).addMatcher(on(fn(t),dn(t)),(e,t)=>{const n=rr(t,"providesTags",o,s),{queryCacheKey:r}=t.meta.arg;m.caseReducers.updateProvidedBy(e,m.actions.updateProvidedBy({queryCacheKey:r,providedTags:n}))})}}),y=Cn({name:`${e}/subscriptions`,initialState:lr,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),b=Cn({name:`${e}/internalSubscriptions`,initialState:lr,reducers:{subscriptionsUpdated:{reducer:(e,t)=>Qt(e,t.payload),prepare:Zt()}}}),g=Cn({name:`${e}/config`,initialState:{online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine,focused:"undefined"==typeof document||"hidden"!==document.visibilityState,middlewareRegistered:!1,...c},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&i===t||"conflict"}},extraReducers:e=>{e.addCase(Yn,e=>{e.online=!0}).addCase(Gn,e=>{e.online=!1}).addCase(Kn,e=>{e.focused=!0}).addCase($n,e=>{e.focused=!1}).addMatcher(l,e=>({...e}))}}),v=Ke({queries:p.reducer,mutations:h.reducer,provided:m.reducer,subscriptions:b.reducer,config:g.reducer});return{reducer:(e,t)=>v(u.match(t)?void 0:e,t),actions:{...g.actions,...p.actions,...y.actions,...b.actions,...h.actions,...m.actions,resetApiState:u}}}var cr=Symbol.for("RTKQ/skipToken"),ur={status:"uninitialized"},dr=Wt(ur,()=>{}),fr=Wt(ur,()=>{}),pr=WeakMap?new WeakMap:void 0,hr=({endpointName:e,queryArgs:t})=>{let n="";const r=pr?.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,(e,t)=>t=Qe(t="bigint"==typeof t?{$bigint:t.toString()}:t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t);Qe(t)&&pr?.set(t,e),n=e}return`${e}(${n})`};function mr(...e){return function(t){const n=Pn(e=>t.extractRehydrationInfo?.(e,{reducerPath:t.reducerPath??"api"})),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=hr;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:hr({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},o={endpointDefinitions:{},batch(e){e()},apiUid:hn(),extractRehydrationInfo:n,hasRehydrationInfo:Pn(e=>null!=n(e))},i={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in o.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(Tn(39))}else{o.endpointDefinitions[n]=r;for(const e of a)e.injectEndpoint(n,r)}return i},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const t of e)r.tagTypes.includes(t)||r.tagTypes.push(t);if(t)for(const[e,n]of Object.entries(t))"function"==typeof n?n(o.endpointDefinitions[e]):Object.assign(o.endpointDefinitions[e]||{},n);return i}},a=e.map(e=>e.init(i,r,o));return i.injectEndpoints({endpoints:t.endpoints})}}function yr(e,...t){return Object.assign(e,...t)}var br=({reducerPath:e,api:t,queryThunk:n,context:r,internalState:o})=>{const{removeQueryResult:i,unsubscribeQueryResult:a,cacheEntriesUpserted:l}=t.internalActions,s=on(a.match,n.fulfilled,n.rejected,l.match);function c(e){const t=o.currentSubscriptions[e];return!!t&&!function(e){for(const t in e)return!1;return!0}(t)}const u={};function d(e,t,n,o){const a=r.endpointDefinitions[t],l=a?.keepUnusedDataFor??o.keepUnusedDataFor;if(l===1/0)return;const s=Math.max(0,Math.min(l,2147482.647));if(!c(e)){const t=u[e];t&&clearTimeout(t),u[e]=setTimeout(()=>{c(e)||n.dispatch(i({queryCacheKey:e})),delete u[e]},1e3*s)}}return(n,o,i)=>{if(s(n)){const t=o.getState()[e];let r;if(l.match(n))r=n.payload.map(e=>e.queryDescription.queryCacheKey);else{const{queryCacheKey:e}=a.match(n)?n.payload:n.meta.arg;r=[e]}for(const e of r)d(e,t.queries[e]?.endpointName,o,t.config)}if(t.util.resetApiState.match(n))for(const[e,t]of Object.entries(u))t&&clearTimeout(t),delete u[e];if(r.hasRehydrationInfo(n)){const t=o.getState()[e],{queries:i}=r.extractRehydrationInfo(n);for(const[e,n]of Object.entries(i))d(e,n?.endpointName,o,t.config)}}},gr=new Error("Promise never resolved before cacheEntryRemoved."),vr=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:o,internalState:i})=>{const a=pn(r),l=pn(o),s=fn(r,o),c={};function u(e,t,n){const r=c[e];r?.valueResolved&&(r.valueResolved({data:t,meta:n}),delete r.valueResolved)}function d(e){const t=c[e];t&&(delete c[e],t.cacheEntryRemoved())}function f(t,r,o,i,a){const l=n.endpointDefinitions[t],s=l?.onCacheEntryAdded;if(!s)return;const u={},d=new Promise(e=>{u.cacheEntryRemoved=e}),f=Promise.race([new Promise(e=>{u.valueResolved=e}),d.then(()=>{throw gr})]);f.catch(()=>{}),c[o]=u;const p=e.endpoints[t].select("query"===l.type?r:o),h=i.dispatch((e,t,n)=>n),m={...i,getCacheEntry:()=>p(i.getState()),requestId:a,extra:h,updateCachedData:"query"===l.type?n=>i.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:f,cacheEntryRemoved:d},y=s(r,m);Promise.resolve(y).catch(e=>{if(e!==gr)throw e})}return(n,i,p)=>{const h=function(t){return a(t)?t.meta.arg.queryCacheKey:l(t)?t.meta.arg.fixedCacheKey??t.meta.requestId:e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?ir(t.payload):""}(n);function m(e,n,r,o){const a=p[t].queries[n],l=i.getState()[t].queries[n];!a&&l&&f(e,o,n,i,r)}if(r.pending.match(n))m(n.meta.arg.endpointName,h,n.meta.requestId,n.meta.arg.originalArgs);else if(e.internalActions.cacheEntriesUpserted.match(n))for(const{queryDescription:e,value:t}of n.payload){const{endpointName:r,originalArgs:o,queryCacheKey:i}=e;m(r,i,n.meta.requestId,o),u(i,t,{})}else if(o.pending.match(n))i.getState()[t].mutations[h]&&f(n.meta.arg.endpointName,n.meta.arg.originalArgs,h,i,n.meta.requestId);else if(s(n))u(h,n.payload,n.meta.baseQueryMeta);else if(e.internalActions.removeQueryResult.match(n)||e.internalActions.removeMutationResult.match(n))d(h);else if(e.util.resetApiState.match(n))for(const e of Object.keys(c))d(e)}},wr=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},xr=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:o,api:i,assertTagType:a,refetchQuery:l,internalState:s})=>{const{removeQueryResult:c}=i.internalActions,u=on(fn(r),dn(r)),d=on(fn(r,o),un(r,o));let f=[];function p(n,r){const o=r.getState(),a=o[e];if(f.push(...n),"delayed"===a.config.invalidationBehavior&&function(e){for(const t in e.queries)if("pending"===e.queries[t]?.status)return!0;for(const t in e.mutations)if("pending"===e.mutations[t]?.status)return!0;return!1}(a))return;const u=f;if(f=[],0===u.length)return;const d=i.util.selectInvalidatedBy(o,u);t.batch(()=>{const e=Array.from(d.values());for(const{queryCacheKey:t}of e){const e=a.queries[t],n=s.currentSubscriptions[t]??{};e&&(0===Fn(n)?r.dispatch(c({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(l(e)))}})}return(e,t)=>{u(e)?p(rr(e,"invalidatesTags",n,a),t):d(e)?p([],t):i.util.invalidateTags.match(e)&&p(Jn(e.payload,void 0,void 0,void 0,void 0,a),t)}},kr=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:o})=>{const i={};function a({queryCacheKey:t},n){const l=n.getState()[e],s=l.queries[t],u=o.currentSubscriptions[t];if(!s||"uninitialized"===s.status)return;const{lowestPollingInterval:d,skipPollingIfUnfocused:f}=c(u);if(!Number.isFinite(d))return;const p=i[t];p?.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const h=Date.now()+d;i[t]={nextPollTimestamp:h,pollingInterval:d,timeout:setTimeout(()=>{!l.config.focused&&f||n.dispatch(r(s)),a({queryCacheKey:t},n)},d)}}function l({queryCacheKey:t},n){const r=n.getState()[e].queries[t],l=o.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:u}=c(l);if(!Number.isFinite(u))return void s(t);const d=i[t],f=Date.now()+u;(!d||f<d.nextPollTimestamp)&&a({queryCacheKey:t},n)}function s(e){const t=i[e];t?.timeout&&clearTimeout(t.timeout),delete i[e]}function c(e={}){let t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&l(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&l(e.meta.arg,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&a(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(i))s(e)}()}},Sr=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const o=cn(n,r),i=un(n,r),a=fn(n,r),l={};return(n,r)=>{if(o(n)){const{requestId:o,arg:{endpointName:i,originalArgs:a}}=n.meta,s=t.endpointDefinitions[i],c=s?.onQueryStarted;if(c){const t={},n=new Promise((e,n)=>{t.resolve=e,t.reject=n});n.catch(()=>{}),l[o]=t;const u=e.endpoints[i].select("query"===s.type?a:o),d=r.dispatch((e,t,n)=>n),f={...r,getCacheEntry:()=>u(r.getState()),requestId:o,extra:d,updateCachedData:"query"===s.type?t=>r.dispatch(e.util.updateQueryData(i,a,t)):void 0,queryFulfilled:n};c(a,f)}}else if(a(n)){const{requestId:e,baseQueryMeta:t}=n.meta;l[e]?.resolve({data:n.payload,meta:t}),delete l[e]}else if(i(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;l[e]?.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete l[e]}}};function _r(e){const{reducerPath:t,queryThunk:n,api:r,context:o}=e,{apiUid:i}=o,a={invalidateTags:$t(`${t}/invalidateTags`)},l=e=>e.type.startsWith(`${t}/`),s=[wr,br,xr,kr,vr,Sr];return{middleware:n=>{let a=!1;const u={...e,internalState:{currentSubscriptions:{}},refetchQuery:c,isThisApiSliceAction:l},d=s.map(e=>e(u)),f=(({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let o=null,i=null;const{updateSubscriptionOptions:a,unsubscribeQueryResult:l}=e.internalActions,s=()=>n.currentSubscriptions,c={getSubscriptions:s,getSubscriptionCount:e=>Fn(s()[e]??{}),isRequestSubscribed:(e,t)=>{const n=s();return!!n?.[e]?.[t]}};return(s,u)=>{if(o||(o=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(s))return o=n.currentSubscriptions={},i=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(s))return[!1,c];const d=((n,r)=>{if(a.match(r)){const{queryCacheKey:e,requestId:t,options:o}=r.payload;return n?.[e]?.[t]&&(n[e][t]=o),!0}if(l.match(r)){const{queryCacheKey:e,requestId:t}=r.payload;return n[e]&&delete n[e][t],!0}if(e.internalActions.removeQueryResult.match(r))return delete n[r.payload.queryCacheKey],!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,o=n[e.queryCacheKey]??={};return o[`${t}_running`]={},e.subscribe&&(o[t]=e.subscriptionOptions??o[t]??{}),!0}let o=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;o||=!!e[t],delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:i}}=r;if(e&&t.subscribe){const e=n[t.queryCacheKey]??={};e[i]=t.subscriptionOptions??e[i]??{},o=!0}}return o})(n.currentSubscriptions,s);let f=!0;if(d){i||(i=setTimeout(()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=Vt(o,()=>t);u.next(e.internalActions.subscriptionsUpdated(r)),o=t,i=null},500));const a="string"==typeof s.type&&!!s.type.startsWith(r),l=t.rejected.match(s)&&s.meta.condition&&!!s.meta.arg.subscribe;f=!a&&!l}return[f,!1]}})(u),p=(({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:o})=>{const{removeQueryResult:i}=n.internalActions;function a(n,a){const l=n.getState()[e],s=l.queries,c=o.currentSubscriptions;t.batch(()=>{for(const e of Object.keys(c)){const t=s[e],o=c[e];o&&t&&(Object.values(o).some(e=>!0===e[a])||Object.values(o).every(e=>void 0===e[a])&&l.config[a])&&(0===Fn(o)?n.dispatch(i({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t)))}})}return(e,t)=>{Kn.match(e)&&a(t,"refetchOnFocus"),Yn.match(e)&&a(t,"refetchOnReconnect")}})(u);return e=>s=>{if(!Ye(s))return e(s);a||(a=!0,n.dispatch(r.internalActions.middlewareRegistered(i)));const c={...n,next:e},u=n.getState(),[h,m]=f(s,c,u);let y;if(y=h?e(s):m,n.getState()[t]&&(p(s,c,u),l(s)||o.hasRehydrationInfo(s)))for(const e of d)e(s,c,u);return y}},actions:a};function c(t){return e.api.endpoints[t.endpointName].initiate(t.originalArgs,{subscribe:!1,forceRefetch:!0})}}var Cr=Symbol(),Er=({createSelector:e=Ln}={})=>({name:Cr,init(t,{baseQuery:n,tagTypes:r,reducerPath:o,serializeQueryArgs:i,keepUnusedDataFor:a,refetchOnMountOrArgChange:l,refetchOnFocus:s,refetchOnReconnect:c,invalidationBehavior:u},d){qt();const f=e=>e;Object.assign(t,{reducerPath:o,endpoints:{},internalActions:{onOnline:Yn,onOffline:Gn,onFocus:Kn,onFocusLost:$n},util:{}});const{queryThunk:p,mutationThunk:h,patchQueryData:m,updateQueryData:y,upsertQueryData:b,prefetch:g,buildMatchThunkActions:v}=function({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:o,assertTagType:i}){const a=async(e,{signal:r,abort:o,rejectWithValue:i,fulfillWithValue:a,dispatch:s,getState:c,extra:u})=>{const d=n[e.endpointName];try{let n,i=nr;const f={signal:r,abort:o,dispatch:s,getState:c,extra:u,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?l(e,c()):void 0,queryCacheKey:"query"===e.type?e.queryCacheKey:void 0},p="query"===e.type?e[er]:void 0;if(p?n=p():d.query?(n=await t(d.query(e.originalArgs),f,d.extraOptions),d.transformResponse&&(i=d.transformResponse)):n=await d.queryFn(e.originalArgs,f,d.extraOptions,e=>t(e,f,d.extraOptions)),n.error)throw new Hn(n.error,n.meta);return a(await i(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[Jt]:!0})}catch(t){let n=t;if(n instanceof Hn){let t=nr;d.query&&d.transformErrorResponse&&(t=d.transformErrorResponse);try{return i(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[Jt]:!0})}catch(e){n=e}}throw console.error(n),n}};function l(t,n){const r=n[e]?.queries?.[t.queryCacheKey],o=n[e]?.config.refetchOnMountOrArgChange,i=r?.fulfilledTimeStamp,a=t.forceRefetch??(t.subscribe&&o);return!!a&&(!0===a||(Number(new Date)-Number(i))/1e3>=a)}const s=vn(`${e}/executeQuery`,a,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[Jt]:!0}),condition(t,{getState:r}){const o=r(),i=o[e]?.queries?.[t.queryCacheKey],a=i?.fulfilledTimeStamp,s=t.originalArgs,c=i?.originalArgs,u=n[t.endpointName];return!(!tr(t)&&("pending"===i?.status||!l(t,o)&&(!Xn(u)||!u?.forceRefetch?.({currentArg:s,previousArg:c,endpointState:i,state:o}))&&a))},dispatchConditionRejection:!0});function c(e){return t=>t?.meta?.arg?.endpointName===e}return{queryThunk:s,mutationThunk:vn(`${e}/executeMutation`,a,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[Jt]:!0})}),prefetch:(e,t,n)=>(r,i)=>{const a=(e=>"force"in e)(n)&&n.force,l=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,s=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return o.endpoints[e].initiate(t,r)},c=o.endpoints[e].select(t)(i());if(a)r(s());else if(l){const e=c?.fulfilledTimeStamp;if(!e)return void r(s());(Number(new Date)-Number(new Date(e)))/1e3>=l&&r(s())}else r(s(!1))},updateQueryData:(e,t,n,r=!0)=>(i,a)=>{const l=o.endpoints[e].select(t)(a()),s={patches:[],inversePatches:[],undo:()=>i(o.util.patchQueryData(e,t,s.inversePatches,r))};if("uninitialized"===l.status)return s;let c;if("data"in l)if(it(l.data)){const[e,t,r]=Vt(l.data,n);s.patches.push(...t),s.inversePatches.push(...r),c=e}else c=n(l.data),s.patches.push({op:"replace",path:[],value:c}),s.inversePatches.push({op:"replace",path:[],value:l.data});return 0===s.patches.length||i(o.util.patchQueryData(e,t,s.patches,r)),s},upsertQueryData:(e,t,n)=>r=>r(o.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[er]:()=>({data:n})})),patchQueryData:(e,t,a,l)=>(s,c)=>{const u=n[e],d=r({queryArgs:t,endpointDefinition:u,endpointName:e});if(s(o.internalActions.queryResultPatched({queryCacheKey:d,patches:a})),!l)return;const f=o.endpoints[e].select(t)(c()),p=Jn(u.providesTags,f.data,void 0,t,{},i);s(o.internalActions.updateProvidedBy({queryCacheKey:d,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:an(cn(e),c(t)),matchFulfilled:an(fn(e),c(t)),matchRejected:an(un(e),c(t))}}}}({baseQuery:n,reducerPath:o,context:d,api:t,serializeQueryArgs:i,assertTagType:f}),{reducer:w,actions:x}=sr({context:d,queryThunk:p,mutationThunk:h,serializeQueryArgs:i,reducerPath:o,assertTagType:f,config:{refetchOnFocus:s,refetchOnReconnect:c,refetchOnMountOrArgChange:l,keepUnusedDataFor:a,reducerPath:o,invalidationBehavior:u}});yr(t.util,{patchQueryData:m,updateQueryData:y,upsertQueryData:b,prefetch:g,resetApiState:x.resetApiState,upsertQueryEntries:x.cacheEntriesUpserted}),yr(t.internalActions,x);const{middleware:k,actions:S}=_r({reducerPath:o,context:d,queryThunk:p,mutationThunk:h,api:t,assertTagType:f});yr(t.util,S),yr(t,{reducer:w,middleware:k});const{buildQuerySelector:_,buildMutationSelector:C,selectInvalidatedBy:E,selectCachedArgsForQuery:A}=function({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>dr,o=e=>fr;return{buildQuerySelector:function(t,o){return l=>{const s=e({queryArgs:l,endpointDefinition:o,endpointName:t});return n(l===cr?r:e=>a(e)?.queries?.[s]??dr,i)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?ir(e)??cr:e,n(t===cr?o:e=>a(e)?.mutations?.[t]??fr,i)}},selectInvalidatedBy:function(e,n){const r=e[t],o=new Set;for(const e of n.map(Zn)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:Bn(Object.values(t)))??[];for(const e of n)o.add(e)}return Bn(Array.from(o.values()).map(e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]}))},selectCachedArgsForQuery:function(e,n){return Object.values(e[t].queries).filter(e=>e?.endpointName===n&&"uninitialized"!==e.status).map(e=>e.originalArgs)}};function i(e){return{...e,...(t=e.status,{status:t,isUninitialized:"uninitialized"===t,isLoading:"pending"===t,isSuccess:"fulfilled"===t,isError:"rejected"===t})};var t}function a(e){return e[t]}}({serializeQueryArgs:i,reducerPath:o,createSelector:e});yr(t.util,{selectInvalidatedBy:E,selectCachedArgsForQuery:A});const{buildInitiateQuery:T,buildInitiateMutation:j,getRunningMutationThunk:N,getRunningMutationsThunk:O,getRunningQueriesThunk:P,getRunningQueryThunk:I}=function({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:o}){const i=new Map,a=new Map,{unsubscribeQueryResult:l,removeMutationResult:s,updateSubscriptionOptions:c}=r.internalActions;return{buildInitiateQuery:function(n,o){const a=(s,{subscribe:u=!0,forceRefetch:d,subscriptionOptions:f,[er]:p,...h}={})=>(m,y)=>{const b=e({queryArgs:s,endpointDefinition:o,endpointName:n}),g=t({...h,type:"query",subscribe:u,forceRefetch:d,subscriptionOptions:f,endpointName:n,originalArgs:s,queryCacheKey:b,[er]:p}),v=r.endpoints[n].select(s),w=m(g),x=v(y()),{requestId:k,abort:S}=w,_=x.requestId!==k,C=i.get(m)?.[b],E=()=>v(y()),A=Object.assign(p?w.then(E):_&&!C?Promise.resolve(x):Promise.all([C,w]).then(E),{arg:s,requestId:k,subscriptionOptions:f,queryCacheKey:b,abort:S,async unwrap(){const e=await A;if(e.isError)throw e.error;return e.data},refetch:()=>m(a(s,{subscribe:!1,forceRefetch:!0})),unsubscribe(){u&&m(l({queryCacheKey:b,requestId:k}))},updateSubscriptionOptions(e){A.subscriptionOptions=e,m(c({endpointName:n,requestId:k,queryCacheKey:b,options:e}))}});if(!C&&!_&&!p){const e=i.get(m)||{};e[b]=A,i.set(m,e),A.then(()=>{delete e[b],Fn(e)||i.delete(m)})}return A};return a},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:o}={})=>(i,l)=>{const c=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:o}),u=i(c),{requestId:d,abort:f,unwrap:p}=u,h=(m=e=>({error:e}),u.unwrap().then(e=>({data:e})).catch(m));var m;const y=Object.assign(h,{arg:u.arg,requestId:d,abort:f,unwrap:p,reset:()=>{i(s({requestId:d,fixedCacheKey:o}))}}),b=a.get(i)||{};return a.set(i,b),b[d]=y,y.then(()=>{delete b[d],Fn(b)||a.delete(i)}),o&&(b[o]=y,y.then(()=>{b[o]===y&&(delete b[o],Fn(b)||a.delete(i))})),y}},getRunningQueryThunk:function(t,n){return r=>{const a=o.endpointDefinitions[t],l=e({queryArgs:n,endpointDefinition:a,endpointName:t});return i.get(r)?.[l]}},getRunningMutationThunk:function(e,t){return e=>a.get(e)?.[t]},getRunningQueriesThunk:function(){return e=>Object.values(i.get(e)||{}).filter(qn)},getRunningMutationsThunk:function(){return e=>Object.values(a.get(e)||{}).filter(qn)}}}({queryThunk:p,mutationThunk:h,api:t,serializeQueryArgs:i,context:d});return yr(t.util,{getRunningMutationThunk:N,getRunningMutationsThunk:O,getRunningQueryThunk:I,getRunningQueriesThunk:P}),{name:Cr,injectEndpoint(e,n){const r=t;r.endpoints[e]??={},Xn(n)?yr(r.endpoints[e],{name:e,select:_(e,n),initiate:T(e,n)},v(p,e)):"mutation"===n.type&&yr(r.endpoints[e],{name:e,select:C(),initiate:j(e)},v(h,e))}}}});function Ar(e,...t){return Object.assign(e,...t)}function Tr(e){return e.replace(e[0],e[0].toUpperCase())}Er();var jr=WeakMap?new WeakMap:void 0,Nr=({endpointName:e,queryArgs:t})=>{let n="";const r=jr?.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,(e,t)=>t=Qe(t="bigint"==typeof t?{$bigint:t.toString()}:t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t);Qe(t)&&jr?.set(t,e),n=e}return`${e}(${n})`},Or=Symbol();function Pr(e,t,n,r){const o=(0,l().useMemo)(()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e}),[e,t,n,r]),i=(0,l().useRef)(o);return(0,l().useEffect)(()=>{i.current.serialized!==o.serialized&&(i.current=o)},[o]),i.current.serialized===o.serialized?i.current.queryArgs:e}function Ir(e){const t=(0,l().useRef)(e);return(0,l().useEffect)(()=>{B(t.current,e)||(t.current=e)},[e]),B(t.current,e)?t.current:e}var Lr=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),zr=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),Mr=(()=>Lr||zr?l().useLayoutEffect:l().useEffect)(),Rr=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:Mn.pending}:e,Dr=Symbol(),Fr=mr(Er(),(({batch:e=K,hooks:t={useDispatch:H,useSelector:I,useStore:W},createSelector:n=Ln,unstable__sideEffectsInRender:r=!1,...o}={})=>({name:Dr,init(o,{serializeQueryArgs:i},a){const s=o,{buildQueryHooks:c,buildMutationHook:u,usePrefetch:d}=function({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:o},unstable__sideEffectsInRender:i,createSelector:a},serializeQueryArgs:s,context:c}){const u=i?e=>e():l().useEffect;return{buildQueryHooks:function(i){const f=(t,{refetchOnReconnect:r,refetchOnFocus:o,refetchOnMountOrArgChange:a,skip:s=!1,pollingInterval:d=0,skipPollingIfUnfocused:f=!1}={})=>{const{initiate:p}=e.endpoints[i],h=n(),m=(0,l().useRef)(void 0);if(!m.current){const t=h(e.internalActions.internal_getRTKQSubscriptions());m.current=t}const y=Pr(s?cr:t,Nr,c.endpointDefinitions[i],i),b=Ir({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:d,skipPollingIfUnfocused:f}),g=(0,l().useRef)(!1),v=(0,l().useRef)(void 0);let{queryCacheKey:w,requestId:x}=v.current||{},k=!1;w&&x&&(k=m.current.isRequestSubscribed(w,x));const S=!k&&g.current;return u(()=>{g.current=k}),u(()=>{S&&(v.current=void 0)},[S]),u(()=>{const e=v.current;if(y===cr)return e?.unsubscribe(),void(v.current=void 0);const t=v.current?.subscriptionOptions;if(e&&e.arg===y)b!==t&&e.updateSubscriptionOptions(b);else{e?.unsubscribe();const t=h(p(y,{subscriptionOptions:b,forceRefetch:a}));v.current=t}},[h,p,a,y,b,S]),(0,l().useEffect)(()=>()=>{v.current?.unsubscribe(),v.current=void 0},[]),(0,l().useMemo)(()=>({refetch:()=>{if(!v.current)throw new Error(Tn(38));return v.current?.refetch()}}),[])},p=({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:a=0,skipPollingIfUnfocused:s=!1}={})=>{const{initiate:c}=e.endpoints[i],d=n(),[f,p]=(0,l().useState)(Or),h=(0,l().useRef)(void 0),m=Ir({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:a,skipPollingIfUnfocused:s});u(()=>{const e=h.current?.subscriptionOptions;m!==e&&h.current?.updateSubscriptionOptions(m)},[m]);const y=(0,l().useRef)(m);u(()=>{y.current=m},[m]);const b=(0,l().useCallback)(function(e,n=!1){let r;return t(()=>{h.current?.unsubscribe(),h.current=r=d(c(e,{subscriptionOptions:y.current,forceRefetch:!n})),p(e)}),r},[d,c]);return(0,l().useEffect)(()=>()=>{h?.current?.unsubscribe()},[]),(0,l().useEffect)(()=>{f===Or||h.current||b(f,!0)},[f,b]),(0,l().useMemo)(()=>[b,f],[b,f])},h=(t,{skip:n=!1,selectFromResult:u}={})=>{const{select:f}=e.endpoints[i],p=Pr(n?cr:t,s,c.endpointDefinitions[i],i),h=(0,l().useRef)(void 0),m=(0,l().useMemo)(()=>a([f(p),(e,t)=>t,e=>p],d,{memoizeOptions:{resultEqualityCheck:B}}),[f,p]),y=(0,l().useMemo)(()=>u?a([m],u,{devModeChecks:{identityFunctionCheck:"never"}}):m,[m,u]),b=r(e=>y(e,h.current),B),g=o(),v=m(g.getState(),h.current);return Mr(()=>{h.current=v},[v]),b};return{useQueryState:h,useQuerySubscription:f,useLazyQuerySubscription:p,useLazyQuery(e){const[t,n]=p(e),r=h(n,{...e,skip:n===Or}),o=(0,l().useMemo)(()=>({lastArg:n}),[n]);return(0,l().useMemo)(()=>[t,r,o],[t,r,o])},useQuery(e,t){const n=f(e,t),r=h(e,{selectFromResult:e===cr||t?.skip?void 0:Rr,...t}),{data:o,status:i,isLoading:a,isSuccess:s,isError:c,error:u}=r;return(0,l().useDebugValue)({data:o,status:i,isLoading:a,isSuccess:s,isError:c,error:u}),(0,l().useMemo)(()=>({...r,...n}),[r,n])}}},buildMutationHook:function(o){return({selectFromResult:i,fixedCacheKey:s}={})=>{const{select:c,initiate:u}=e.endpoints[o],d=n(),[f,p]=(0,l().useState)();(0,l().useEffect)(()=>()=>{f?.arg.fixedCacheKey||f?.reset()},[f]);const h=(0,l().useCallback)(function(e){const t=d(u(e,{fixedCacheKey:s}));return p(t),t},[d,u,s]),{requestId:m}=f||{},y=(0,l().useMemo)(()=>c({fixedCacheKey:s,requestId:f?.requestId}),[s,f,c]),b=(0,l().useMemo)(()=>i?a([y],i):y,[i,y]),g=r(b,B),v=null==s?f?.arg.originalArgs:void 0,w=(0,l().useCallback)(()=>{t(()=>{f&&p(void 0),s&&d(e.internalActions.removeMutationResult({requestId:m,fixedCacheKey:s}))})},[d,s,f,m]),{endpointName:x,data:k,status:S,isLoading:_,isSuccess:C,isError:E,error:A}=g;(0,l().useDebugValue)({endpointName:x,data:k,status:S,isLoading:_,isSuccess:C,isError:E,error:A});const T=(0,l().useMemo)(()=>({...g,originalArgs:v,reset:w}),[g,v,w]);return(0,l().useMemo)(()=>[h,T],[h,T])}},usePrefetch:function(t,r){const o=n(),i=Ir(r);return(0,l().useCallback)((n,r)=>o(e.util.prefetch(t,n,{...i,...r})),[t,o,i])}};function d(e,t,n){if(t?.endpointName&&e.isUninitialized){const{endpointName:e}=t,r=c.endpointDefinitions[e];s({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===s({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:t?.data;void 0===r&&(r=e.data);const o=void 0!==r,i=e.isLoading,a=(!t||t.isLoading||t.isUninitialized)&&!o&&i,l=e.isSuccess||i&&o;return{...e,data:r,currentData:e.data,isFetching:i,isLoading:a,isSuccess:l}}}({api:o,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:i,context:a});return Ar(s,{usePrefetch:d}),Ar(a,{batch:e}),{injectEndpoint(e,t){if("query"===t.type){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:a}=c(e);Ar(s.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:a}),o[`use${Tr(e)}Query`]=t,o[`useLazy${Tr(e)}Query`]=n}else if("mutation"===t.type){const t=u(e);Ar(s.endpoints[e],{useMutation:t}),o[`use${Tr(e)}Mutation`]=t}}}}}))());function Br(e){return Br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Br(e)}function qr(){qr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:E(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",y={};function b(){}function g(){}function v(){}var w={};c(w,a,function(){return this});var x=Object.getPrototypeOf,k=x&&x(x(O([])));k&&k!==n&&r.call(k,a)&&(w=k);var S=v.prototype=b.prototype=Object.create(w);function _(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==Br(u)&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,l)})}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=A(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function A(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Br(t)+" is not iterable")}return g.prototype=v,o(S,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(C.prototype),c(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},_(S),c(S,s,"Generator"),c(S,a,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function Ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ur(Object(n),!0).forEach(function(t){Vr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ur(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vr(e,t,n){return(t=function(e){var t=function(e){if("object"!=Br(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Br(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Br(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qr(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}var Hr=window.location.origin,Kr=function(e){null!=e&&e.baseUrl&&(Hr=e.baseUrl)},$r=function({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=Un,paramsSerializer:r,isJsonContentType:o=Vn,jsonContentType:i="application/json",jsonReplacer:a,timeout:l,responseHandler:s,validateStatus:c,...u}={}){return"undefined"==typeof fetch&&n===Un&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(f,p,h)=>{const{getState:m,extra:y,endpoint:b,forced:g,type:v}=p;let w,x,{url:k,headers:S=new Headers(u.headers),params:_,responseHandler:C=s??"json",validateStatus:E=c??Wn,timeout:A=l,...T}="string"==typeof f?{url:f}:f,j=p.signal;A&&(x=new AbortController,p.signal.addEventListener("abort",x.abort),j=x.signal);let N={...u,signal:j,...T};S=new Headers(Qn(S)),N.headers=await t(S,{getState:m,arg:f,extra:y,endpoint:b,forced:g,type:v,extraOptions:h})||S;const O=e=>"object"==typeof e&&(Qe(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!N.headers.has("content-type")&&O(N.body)&&N.headers.set("content-type",i),O(N.body)&&o(N.headers)&&(N.body=JSON.stringify(N.body,a)),_){const e=~k.indexOf("?")?"&":"?";k+=e+(r?r(_):new URLSearchParams(Qn(_)))}k=function(e,t){if(!e)return t;if(!t)return e;if(function(e){return new RegExp("(^|:)//").test(e)}(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=(e=>e.replace(/\/$/,""))(e),`${e}${n}${t=(e=>e.replace(/^\//,""))(t)}`}(e,k);const P=new Request(k,N);w={request:new Request(k,N)};let I,L=!1,z=x&&setTimeout(()=>{L=!0,x.abort()},A);try{I=await n(P)}catch(e){return{error:{status:L?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:w}}finally{z&&clearTimeout(z),x?.signal.removeEventListener("abort",x.abort)}const M=I.clone();let R;w.response=M;let D="";try{let e;if(await Promise.all([d(I,C).then(e=>R=e,t=>e=t),M.text().then(e=>D=e,()=>{})]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:I.status,data:D,error:String(e)},meta:w}}return E(I,R)?{data:R,meta:w}:{error:{status:I.status,data:R},meta:w}};async function d(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=o(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}({baseUrl:"",prepareHeaders:function(e,t){var n=(0,t.getState)().assessmentInfo.token;return n&&e.set("X-Session-Token",n),e}}),Yr=Fr({reducerPath:"mobilePairing",tagTypes:[],baseQuery:function(){var e,t=(e=qr().mark(function e(t,n,r){var o,i;return qr().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o="".concat(Hr).concat(t.url),i=Wr(Wr({},t),{},{url:o}),e.abrupt("return",$r(i,n,r));case 3:case"end":return e.stop()}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Qr(i,r,o,a,l,"next",e)}function l(e){Qr(i,r,o,a,l,"throw",e)}a(void 0)})});return function(e,n,r){return t.apply(this,arguments)}}(),endpoints:function(e){return{getQrCode:e.query({query:function(e){return{method:"GET",url:e.endpoint||"/api/v1/proctoring/plugins/dual_camera/qr_code"}}}),getPollingData:e.query({query:function(e){return{method:"GET",url:e.endpoint||"/api/v1/proctoring/events"}}}),validateImagePosition:e.mutation({query:function(e){var t=e.imageFile,n=new FormData;return t&&n.append("image",t),{url:"/api/rt/orientation-check",method:"POST",body:n}}}),sendProctorEvent:e.mutation({query:function(e){var t=e.eventType,n=e.eventName,r=e.endpoint,o=e.extraData;return{url:r||"/api/v1/proctoring/events",method:"POST",body:{events:[{type:t,name:n,data:void 0===o?{}:o}]}}}})}}}),Gr=Yr.useGetQrCodeQuery,Xr=Yr.useGetPollingDataQuery,Jr=(Yr.util,Yr.useSendProctorEventMutation),Zr=Yr.useValidateImagePositionMutation;const eo=Yr;var to,no=function(){return H()},ro=I,oo=function(){return oo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oo.apply(this,arguments)},io=vn("assessmentInfo/fetchToken",function(e){return t=void 0,n=[e],o=function(e){var t,n,r,o=e.baseUrl,i=e.payload;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}(this,function(e){switch(e.label){case 0:return[4,fetch("".concat(o,"/api/v3/proctoring/dual_camera/init"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)})];case 1:return[4,e.sent().json()];case 2:return t=e.sent(),n=null==t?void 0:t.token,window.PROCTORING_SESSION_TOKEN=n,[2,{token:n,identity:null!==(r=null==t?void 0:t.identity)&&void 0!==r?r:null}]}})},new((r=void 0)||(r=Promise))(function(e,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function l(e){try{s(o.throw(e))}catch(e){i(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r(function(e){e(n)})).then(a,l)}s((o=o.apply(t,n||[])).next())});var t,n,r,o}),ao=Cn({name:"assessmentInfo",initialState:{userName:"",assessmentName:"",proctor:null,token:null,identity:null},reducers:{setAssessmentInfo:function(e,t){return oo(oo({},e),{userName:t.payload.userName,assessmentName:t.payload.assessmentName})},setProctor:function(e,t){return oo(oo({},e),{proctor:t.payload})}},extraReducers:function(e){e.addCase(io.fulfilled,function(e,t){e.token=t.payload.token,e.identity=t.payload.identity})}}),lo=(to=ao.actions).setAssessmentInfo,so=to.setProctor;const co=ao.reducer;var uo,fo=function(e){return e.assessmentInfo.proctor},po={no_face:"We couldn't find a face. Sit facing the camera with your whole face in the frame.",multiple_faces:"More than one face is visible. Make sure only you are in the frame.",low_confidence:"Your face was not clear enough. Face the camera in good light.",blurry:"The photo was blurry. Hold still and try again.",too_dark:"The photo was too dark. Move to a brighter place or face a light source.",turned_away:"Look straight at the camera and try again.",mismatch:"The photo didn't match your reference photo. Remove anything covering your face and try again.",upload_missing:"Your photo didn't upload. Check your connection and try again.",no_reference_image:"No reference photo is on file for you.",attempts_exhausted:"Your photos did not match your reference photo.",captures_exhausted:"You have used all your verification attempts.",engine_timeout:"Verification is taking longer than expected.",liveness_failed:"We couldn't confirm a live person in front of the camera. Face the camera in good light and try again.",liveness_expired:"The liveness check didn't finish in time. Try again.",liveness_incomplete:"The liveness check didn't finish. Try again.",liveness_no_frame:"The liveness check couldn't capture your face. Face the camera and try again.",engine_capacity:"Many candidates are verifying right now. Please try again in a moment.",engine_throttled:"Many candidates are verifying right now. Please try again in a moment.",unreadable_image:"We couldn't read the photo from your camera. Please try again.",virtual_camera:"A virtual camera is selected. Choose your physical webcam to continue.",liveness_in_progress:"Another liveness check is already running for this test. Close it and try again.",liveness_not_enabled:"This test does not use the liveness check.",engine_unavailable:"The verification service is unavailable right now. Please try again in a moment.",unknown_liveness_session:"This check expired. Start it again.",liveness_session_expired:"This check expired. Start a new one.",already_verified:"You are already verified for this test.",already_captured:"Your check is already recorded for this test.",verification_in_progress:"Your previous check is still being verified. Please wait for the result.",not_required:"This test does not need identity verification.",consent_required:"Agree to the face scan to continue.",consent_version_outdated:"The consent text has changed. Reload the page and agree again.",service_unavailable:"The verification service is unavailable right now.",request_failed:"The request failed. Check your connection and try again.",upload_failed:"Your photo didn't upload. Check your connection and try again."},ho=function(e,t){return"".concat(t||yo(e)," (Error code: ").concat(e,")")},mo=function(e){return Boolean(null==e?void 0:e.liveness)&&"off"!==e.liveness.mode},yo=function(e){return e&&po[e]?po[e]:(null==e?void 0:e.startsWith("engine_"))?"The verification service is unavailable right now.":"Please try again."},bo=["cameraShare","identityVerification","screenShare","mobileCameraShare","compatibilityChecks"],go=function(){return go=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},go.apply(this,arguments)},vo=function(e,t){return void 0===t&&(t=!0),{locked:t,acknowledged:!1,activeSubStep:e.length>0?e[0]:"",enabled:!0,setupMode:!1,subSteps:e.reduce(function(e,t){var n;return go(go({},e),((n={})[t]={status:"locked",error:"",enabled:!0},n))},{})}},wo={enableProctoring:!1,modalOpen:!1,isDisqualified:!1,activeStep:"cameraShare",steps:{cameraShare:vo(["cameraShare"],!1),screenShare:vo(["screenShare"]),mobileCameraShare:vo(["codeScan","cameraPairing","systemChecks"]),compatibilityChecks:vo(["systemChecks","networkChecks","fullScreenCheck"]),identityVerification:vo(["identityCapture"])},onWorkflowComplete:function(){},beepConfig:{enabled:!1,sounds:{screenShare:"",cameraShare:"",mobileCameraShare:"",compatibilityChecks:"",identityVerification:""}}},xo=function(e){var t=bo,n=t.indexOf(e.activeStep),r=t.findIndex(function(t,r){return r>n&&e.steps[t].enabled});if(-1!==r){var o=t[r];e.steps[o].locked&&(e.steps[o].locked=!1),e.activeStep=o}else e.modalOpen=!1,e.onWorkflowComplete&&e.onWorkflowComplete()},ko=Cn({name:"workflow",initialState:wo,reducers:{setActiveStep:function(e,t){e.activeStep=t.payload,e.steps[t.payload].locked=!1},setActiveSubStep:function(e,t){var n=t.payload,r=n.step,o=n.subStep;e.steps[r].activeSubStep=o},nextStep:function(e){xo(e)},nextSubStep:function(e){var t=e.steps[e.activeStep],n=t.subSteps;if(n&&!(Object.keys(n).length<=0)){var r=Object.keys(n),o=r.indexOf(t.activeSubStep);if(o<r.length-1){n[r[o]].status="completed";var i=r[o+1];n[i].status="pending",t.activeSubStep=i}}},setStepLocked:function(e,t){var n=t.payload,r=n.step,o=n.locked;e.steps[r].locked=o},setStepSetupMode:function(e,t){var n=t.payload,r=n.step,o=n.setupMode;e.steps[r].setupMode=o},setStepAcknowledged:function(e,t){var n=t.payload,r=n.step,o=n.acknowledged;e.steps[r].acknowledged=o},setSubStepStatus:function(e,t){var n=t.payload,r=n.step,o=n.subStep,i=n.status,a=n.clearError;if(e.steps[r].subSteps[o].status=i,a&&(e.steps[r].subSteps[o].error=""),e.enableProctoring){var l=Object.entries(e.steps).every(function(e){e[0];var t=e[1];return!t.enabled||Object.values(t.subSteps).every(function(e){return e.enabled&&"completed"===e.status})});l&&(e.modalOpen=!1)}},setSubStepError:function(e,t){var n=t.payload,r=n.step,o=n.subStep,i=n.error;e.steps[r].subSteps[o].status="error",e.steps[r].subSteps[o].error=i},resetStep:function(e,t){var n=t.payload.step,r=Object.keys(e.steps[n].subSteps);e.steps[n]=vo(r)},setBulkStepEnabled:function(e,t){Object.values(t.payload).forEach(function(t){var n=t.step,r=t.enabled,o=t.subSteps;e.steps[n].enabled=r,o&&Object.entries(o).forEach(function(t){var r=t[0],o=t[1];e.steps[n].subSteps[r].enabled=o})});var n=bo.find(function(t){return e.steps[t].enabled});n&&(e.activeStep=n)},setModalOpen:function(e,t){e.modalOpen=t.payload},setEnableProctoring:function(e,t){e.enableProctoring=t.payload,t.payload&&Object.keys(e.steps).forEach(function(t){e.steps[t].locked=!1})},setBeepConfig:function(e,t){e.beepConfig=t.payload},setOnWorkflowComplete:function(e,t){e.onWorkflowComplete=t.payload},setIsDisqualified:function(e,t){e.isDisqualified=t.payload},resetAll:function(){return wo}},extraReducers:function(e){e.addCase(io.fulfilled,function(e,t){var n,r=e.steps.identityVerification;!r.enabled||(n=t.payload.identity,Boolean(true)&&Boolean(n)&&"off"!==n.mode)||(r.enabled=!1,"identityVerification"===e.activeStep&&xo(e))})}}),So=(uo=ko.actions).setActiveStep,_o=uo.nextStep,Co=uo.nextSubStep,Eo=uo.setStepLocked,Ao=uo.setStepAcknowledged,To=uo.setSubStepStatus,jo=uo.setSubStepError,No=uo.setBulkStepEnabled,Oo=uo.setModalOpen,Po=uo.resetStep,Io=(uo.resetAll,uo.setEnableProctoring),Lo=uo.setOnWorkflowComplete,zo=uo.setActiveSubStep,Mo=uo.setStepSetupMode,Ro=uo.setIsDisqualified,Do=uo.setBeepConfig;const Fo=ko.reducer;var Bo,qo=function(e,t){return e.workflow.steps[t]},Uo=function(e,t,n){return e.workflow.steps[t].subSteps[n]},Wo=function(e){const t=function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:o=!0}=e??{};let i=new Yt;return t&&("boolean"==typeof t?i.push(Xe):i.push(Je(t.extraArgument))),i},{reducer:n,middleware:r,devTools:o=!0,preloadedState:i,enhancers:a}=e||{};let l,s;if("function"==typeof n)l=n;else{if(!Qe(n))throw new Error(Tn(1));l=Ke(n)}s="function"==typeof r?r(t):t();let c=$e;o&&(c=Ht({trace:!1,..."object"==typeof o&&o}));const u=function(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(qe(15))};const a={getState:o.getState,dispatch:(e,...t)=>i(e,...t)},l=e.map(e=>e(a));return i=$e(...l)(o.dispatch),{...o,dispatch:i}}}(...s),d=(e=>function(t){const{autoBatch:n=!0}=t??{};let r=new Yt(e);return n&&r.push(((e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,a=!1;const l=new Set,s="tick"===e.type?queueMicrotask:"raf"===e.type?tn:"callback"===e.type?e.queueNotification:en(e.timeout),c=()=>{a=!1,i&&(i=!1,l.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){const t=r.subscribe(()=>o&&e());return l.add(e),()=>{t(),l.delete(e)}},dispatch(e){try{return o=!e?.meta?.[Jt],i=!o,i&&(a||(a=!0,s(c))),r.dispatch(e)}finally{o=!0}}})})("object"==typeof n?n:void 0)),r})(u);return He(l,i,c(..."function"==typeof a?a(d):d()))}({reducer:Ke(((Bo={assessmentInfo:co,workflow:Fo})[eo.reducerPath]=eo.reducer,Bo)),middleware:function(e){return e({serializableCheck:!1}).concat(eo.middleware)},devTools:!1});const Vo=Wo;var Qo={screenshare:{step:"screenShare",subStep:"screenShare"},webcam:{step:"cameraShare",subStep:"cameraShare"},mobileSetup:{step:"mobileCameraShare",subStep:"codeScan"},mobileSnapshot:{step:"mobileCameraShare",subStep:"cameraPairing"},mobileBattery:{step:"mobileCameraShare",subStep:"systemChecks"},browser:{step:"compatibilityChecks",subStep:"systemChecks"},networkSpeed:{step:"compatibilityChecks",subStep:"networkChecks"},fullscreen:{step:"compatibilityChecks",subStep:"fullScreenCheck"}};const Ho=function(e,t){var n=this;this.CHECK_ORDER=["screenshare","webcam","mobileSetup","mobileSnapshot","mobileBattery","browser","networkSpeed","fullscreen"],this.handleFullScreenEnabled=function(){n.dispatch(To({step:"compatibilityChecks",subStep:"fullScreenCheck",status:"completed",clearError:!0}))},this.handleFullScreenDisabled=function(){},this.handleDisqualifyUser=function(){var e,t;null===(t=null===(e=Wo.getState().assessmentInfo)||void 0===e?void 0:e.proctor)||void 0===t||t.handleCleanup(),n.dispatch(Oo(!1)),n.dispatch(Ro(!0))},this.handleCompatibilityCheckSuccess=function(){var e=Wo.getState().workflow.enableProctoring;Object.values(Qo).forEach(function(e){n.dispatch(To({step:e.step,subStep:e.subStep,status:"completed",clearError:!0}))}),e&&n.dispatch(Oo(!1))},this.handleCompatibilityCheckFail=function(e){var t=!1,r={};n.CHECK_ORDER.forEach(function(o){var i;if(o in e.passedChecks){var a=e.passedChecks[o],l=Qo[o],s=null===(i=n.steps[l.step])||void 0===i?void 0:i.enabled;l&&s&&(n.dispatch(To({step:l.step,subStep:l.subStep,status:a?"completed":"error",clearError:a})),a||t||(n.dispatch(So(l.step)),n.dispatch(Oo(!0)),t=!0),a||r[l.step]||(n.dispatch(zo({step:l.step,subStep:l.subStep})),r[l.step]=!0))}})},this.dispatch=e,this.steps=t};c();const Ko=(...e)=>e.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim();var $o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Yo=(0,l().forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...s},c)=>(0,l().createElement)("svg",{ref:c,...$o,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:Ko("lucide",o),...s},[...a.map(([e,t])=>(0,l().createElement)(e,t)),...Array.isArray(i)?i:[i]])),Go=(e,t)=>{const n=(0,l().forwardRef)(({className:n,...r},o)=>{return(0,l().createElement)(Yo,{ref:o,iconNode:t,className:Ko(`lucide-${i=e,i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...r});var i});return n.displayName=`${e}`,n},Xo=Go("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]),Jo=Go("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]),Zo=Go("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]),ei=Go("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),ti=Go("ScanFace",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["path",{d:"M15 9h.01",key:"x1ddxp"}]]),ni=Go("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),ri=e=>{const t=li(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),oi(n,t)||ai(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},oi=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?oi(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find(({validator:e})=>e(i))?.classGroupId},ii=/^\[(.+)\]$/,ai=e=>{if(ii.test(e)){const t=ii.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},li=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return di(Object.entries(e.classGroups),n).forEach(([e,n])=>{si(n,r,e,t)}),r},si=(e,t,n,r)=>{e.forEach(e=>{if("string"!=typeof e)return"function"==typeof e?ui(e)?void si(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n}):void Object.entries(e).forEach(([e,o])=>{si(o,ci(t,e),n,r)});(""===e?t:ci(t,e)).classGroupId=n})},ci=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},ui=e=>e.isThemeGetter,di=(e,t)=>t?e.map(([e,n])=>[e,n.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e,fi=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},pi=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],i=t.length,a=e=>{const n=[];let a,l=0,s=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===l){if(u===o&&(r||e.slice(c,c+i)===t)){n.push(e.slice(s,c)),s=c+i;continue}if("/"===u){a=c;continue}}"["===u?l++:"]"===u&&l--}const c=0===n.length?e:e.substring(s),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:a&&a>s?a-s:void 0}};return n?e=>n({className:e,parseClassName:a}):a},hi=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},mi=/\s+/;function yi(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=bi(e))&&(r&&(r+=" "),r+=t);return r}const bi=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=bi(e[r]))&&(n&&(n+=" "),n+=t);return n};function gi(e,...t){let n,r,o,i=function(l){const s=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:fi(e.cacheSize),parseClassName:pi(e),...ri(e)}))(s),r=n.cache.get,o=n.cache.set,i=a,a(l)};function a(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(mi);let l="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{modifiers:s,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(t);let f=Boolean(d),p=r(f?u.substring(0,d):u);if(!p){if(!f){l=t+(l.length>0?" "+l:l);continue}if(p=r(u),!p){l=t+(l.length>0?" "+l:l);continue}f=!1}const h=hi(s).join(":"),m=c?h+"!":h,y=m+p;if(i.includes(y))continue;i.push(y);const b=o(p,f);for(let e=0;e<b.length;++e){const t=b[e];i.push(m+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return o(e,i),i}return function(){return i(yi.apply(null,arguments))}}const vi=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},wi=/^\[(?:([a-z-]+):)?(.+)\]$/i,xi=/^\d+\/\d+$/,ki=new Set(["px","full","screen"]),Si=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_i=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ci=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ei=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ai=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ti=e=>Ni(e)||ki.has(e)||xi.test(e),ji=e=>Wi(e,"length",Vi),Ni=e=>Boolean(e)&&!Number.isNaN(Number(e)),Oi=e=>Wi(e,"number",Ni),Pi=e=>Boolean(e)&&Number.isInteger(Number(e)),Ii=e=>e.endsWith("%")&&Ni(e.slice(0,-1)),Li=e=>wi.test(e),zi=e=>Si.test(e),Mi=new Set(["length","size","percentage"]),Ri=e=>Wi(e,Mi,Qi),Di=e=>Wi(e,"position",Qi),Fi=new Set(["image","url"]),Bi=e=>Wi(e,Fi,Ki),qi=e=>Wi(e,"",Hi),Ui=()=>!0,Wi=(e,t,n)=>{const r=wi.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},Vi=e=>_i.test(e)&&!Ci.test(e),Qi=()=>!1,Hi=e=>Ei.test(e),Ki=e=>Ai.test(e),$i=gi((Symbol.toStringTag,()=>{const e=vi("colors"),t=vi("spacing"),n=vi("blur"),r=vi("brightness"),o=vi("borderColor"),i=vi("borderRadius"),a=vi("borderSpacing"),l=vi("borderWidth"),s=vi("contrast"),c=vi("grayscale"),u=vi("hueRotate"),d=vi("invert"),f=vi("gap"),p=vi("gradientColorStops"),h=vi("gradientColorStopPositions"),m=vi("inset"),y=vi("margin"),b=vi("opacity"),g=vi("padding"),v=vi("saturate"),w=vi("scale"),x=vi("sepia"),k=vi("skew"),S=vi("space"),_=vi("translate"),C=()=>["auto",Li,t],E=()=>[Li,t],A=()=>["",Ti,ji],T=()=>["auto",Ni,Li],j=()=>["","0",Li],N=()=>[Ni,Li];return{cacheSize:500,separator:":",theme:{colors:[Ui],spacing:[Ti,ji],blur:["none","",zi,Li],brightness:N(),borderColor:[e],borderRadius:["none","","full",zi,Li],borderSpacing:E(),borderWidth:A(),contrast:N(),grayscale:j(),hueRotate:N(),invert:j(),gap:E(),gradientColorStops:[e],gradientColorStopPositions:[Ii,ji],inset:C(),margin:C(),opacity:N(),padding:E(),saturate:N(),scale:N(),sepia:j(),skew:N(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",Li]}],container:["container"],columns:[{columns:[zi]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Li]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Pi,Li]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Li]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",Pi,Li]}],"grid-cols":[{"grid-cols":[Ui]}],"col-start-end":[{col:["auto",{span:["full",Pi,Li]},Li]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[Ui]}],"row-start-end":[{row:["auto",{span:[Pi,Li]},Li]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Li]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Li]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Li,t]}],"min-w":[{"min-w":[Li,t,"min","max","fit"]}],"max-w":[{"max-w":[Li,t,"none","full","min","max","fit","prose",{screen:[zi]},zi]}],h:[{h:[Li,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Li,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Li,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Li,t,"auto","min","max","fit"]}],"font-size":[{text:["base",zi,ji]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Oi]}],"font-family":[{font:[Ui]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Li]}],"line-clamp":[{"line-clamp":["none",Ni,Oi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ti,Li]}],"list-image":[{"list-image":["none",Li]}],"list-style-type":[{list:["none","disc","decimal",Li]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ti,ji]}],"underline-offset":[{"underline-offset":["auto",Ti,Li]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Li]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Li]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Di]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ri]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Bi]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Ti,Li]}],"outline-w":[{outline:[Ti,ji]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:A()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Ti,ji]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",zi,qi]}],"shadow-color":[{shadow:[Ui]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",zi,Li]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Li]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",Li]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",Li]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Pi,Li]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Li]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Li]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Li]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ti,ji,Oi]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}));function Yi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return $i(re(e))}var Gi=function(){return Gi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Gi.apply(this,arguments)},Xi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Ji=l().forwardRef(function(e,t){var n=e.className,r=Xi(e,["className"]);return(0,a().jsx)("div",Gi({ref:t,className:Yi("rounded-2xl border bg-card text-card-foreground shadow-sm",n)},r))});Ji.displayName="Card";var Zi=l().forwardRef(function(e,t){var n=e.className,r=Xi(e,["className"]);return(0,a().jsx)("div",Gi({ref:t,className:Yi("flex flex-col space-y-1.5 p-6",n)},r))});Zi.displayName="CardHeader";var ea=l().forwardRef(function(e,t){var n=e.className,r=Xi(e,["className"]);return(0,a().jsx)("h3",Gi({ref:t,className:Yi("text-lg font-semibold leading-none tracking-tight",n)},r))});ea.displayName="CardTitle";var ta=l().forwardRef(function(e,t){var n=e.className,r=Xi(e,["className"]);return(0,a().jsx)("p",Gi({ref:t,className:Yi("text-xs text-muted-foreground",n)},r))});ta.displayName="CardDescription";var na=l().forwardRef(function(e,t){var n=e.className,r=Xi(e,["className"]);return(0,a().jsx)("div",Gi({ref:t,className:Yi("p-6 pt-0",n)},r))});na.displayName="CardContent";var ra=l().forwardRef(function(e,t){var n=e.className,r=Xi(e,["className"]);return(0,a().jsx)("div",Gi({ref:t,className:Yi(" flex items-center p-6 pt-0",n)},r))});ra.displayName="CardFooter";var oa=function(){return oa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oa.apply(this,arguments)},ia=l().forwardRef(function(e,t){var n=e.containerClassName,r=e.modalClassName,o=e.isOpen,i=e.children,l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["containerClassName","modalClassName","isOpen","children"]);return o?(0,a().jsx)("div",oa({ref:t,className:Yi("fixed inset-0 bg-black/50 flex items-center justify-center z-50",n)},l,{children:(0,a().jsx)(Ji,{className:r,children:i})})):null});function aa(e){return(null==e?void 0:e.length)?e.some(function(e){return"error"===e.status})?"error":e.every(function(e){return"completed"===e.status})?"completed":"pending":"pending"}ia.displayName="Modal";const la=n.p+"images/logo42f1917ce9c309caf961.svg";function sa(){var e,t=ro(function(e){return e.assessmentInfo});return(0,a().jsxs)("div",{children:[(0,a().jsx)("img",{src:la,alt:"Scaler Logo",className:"h-6"}),(0,a().jsxs)("div",{className:"mt-12",children:[(0,a().jsx)("p",{className:"text-base-200 text-base",children:(null===(e=null==t?void 0:t.userName)||void 0===e?void 0:e.trim())?"Hi ".concat(t.userName.trim(),"!"):"Hi!"}),(0,a().jsx)("h1",{className:"text-2xl font-bold mt-1",children:null==t?void 0:t.assessmentName})]})]})}const ca=Go("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),ua=Go("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);var da=n(6707),fa={};fa.styleTagTransform=Z()(),fa.setAttributes=X()(),fa.insert=G()().bind(null,"head"),fa.domAPI=Y()(),fa.insertStyleElement=J()(),$()()(da.A,fa);const pa=da.A&&da.A.locals?da.A.locals:void 0;var ha=function(e){var t=e.icon,n=e.title,r=e.step,o=e.active,i=e.onClick,l=e.isLast,s=e.status;return(0,a().jsxs)("div",{className:"relative flex items-start gap-4 cursor-pointer",onClick:i,children:[(0,a().jsxs)("div",{className:"flex flex-col items-center",children:[(0,a().jsx)("div",{className:"rounded-full p-5 ".concat("completed"===s?"bg-scaler-900 text-white":"error"===s?"bg-red-500 text-white":o?"bg-scaler-500 text-white":"bg-scaler-100 text-blue-400"),children:"completed"===s?(0,a().jsx)(ca,{className:"w-8 h-8"}):"error"===s?(0,a().jsx)(ua,{className:"w-8 h-8"}):(0,a().jsx)(t,{className:"w-8 h-8"})}),!l&&(0,a().jsx)("div",{className:"w-1.5 h-28 bg-scaler-100"})]}),(0,a().jsxs)("div",{className:"md:mt-2",children:[(0,a().jsxs)("div",{className:"text-xs text-gray-400 ".concat(pa.stepNumber),children:["STEP ",r]}),(0,a().jsx)("div",{className:"text-base ".concat("error"===s?"font-bold text-red-500":o?"font-bold text-scaler-500":"font-medium text-base-700"),children:n})]})]})};const ma=function(e){var t=e.step_data,n=ro(function(e){return e.workflow.activeStep}),r=ro(function(e){return e.workflow.steps}),o=no();return(0,a().jsx)("div",{className:"mt-16",children:Object.entries(t).map(function(e,i){var l=e[0],s=e[1],c=r[l],u=!c.locked,d=aa(Object.values(c.subSteps));return(0,a().jsx)(ha,{icon:s.icon,title:s.title,step:i+1,active:n===l,onClick:function(){return u&&o(So(l))},isLast:i===Object.keys(t).length-1,status:d},l)})})},ya=Go("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),ba=Go("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);function ga(...e){return t=>e.forEach(e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t))}function va(...e){return l().useCallback(ga(...e),e)}var wa=l().forwardRef((e,t)=>{const{children:n,...r}=e,o=l().Children.toArray(n),i=o.find(Sa);if(i){const e=i.props.children,n=o.map(t=>t===i?l().Children.count(e)>1?l().Children.only(null):l().isValidElement(e)?e.props.children:null:t);return(0,a().jsx)(xa,{...r,ref:t,children:l().isValidElement(e)?l().cloneElement(e,void 0,n):null})}return(0,a().jsx)(xa,{...r,ref:t,children:n})});wa.displayName="Slot";var xa=l().forwardRef((e,t)=>{const{children:n,...r}=e;if(l().isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(n);return l().cloneElement(n,{..._a(r,n.props),ref:t?ga(t,e):e})}return l().Children.count(n)>1?l().Children.only(null):null});xa.displayName="SlotClone";var ka=({children:e})=>(0,a().jsx)(a().Fragment,{children:e});function Sa(e){return l().isValidElement(e)&&e.type===ka}function _a(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Ca(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ca(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const Ea=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,Aa=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ca(e))&&(r&&(r+=" "),r+=t);return r};var Ta,ja,Na=function(){return Na=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Na.apply(this,arguments)},Oa=(Ta="inline-flex items-center justify-center rounded-2xl text-base font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background",ja={variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-blue-500 text-scaler-500 hover:bg-scaler hover:text-scaler-200 transition",secondary:"bg-secondary text-secondary-foreground hover:underline",ghost:"hover:bg-accent hover:text-accent-foreground",link:"underline-offset-4 hover:underline text-primary",primary:"bg-scaler-500 text-white hover:bg-scaler-500/90"},size:{default:"h-16 py-4 px-6",xs:"h-6 px-2 text-xs",sm:"h-9 px-3 text-sm",lg:"h-11 py-9 px-16 text-base font-semibold"}},defaultVariants:{variant:"default",size:"default"}},e=>{var t;if(null==(null==ja?void 0:ja.variants))return Aa(Ta,null==e?void 0:e.class,null==e?void 0:e.className);const{variants:n,defaultVariants:r}=ja,o=Object.keys(n).map(t=>{const o=null==e?void 0:e[t],i=null==r?void 0:r[t];if(null===o)return null;const a=Ea(o)||Ea(i);return n[t][a]}),i=e&&Object.entries(e).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),a=null==ja||null===(t=ja.compoundVariants)||void 0===t?void 0:t.reduce((e,t)=>{let{class:n,className:o,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...r,...i}[t]):{...r,...i}[t]===n})?[...e,n,o]:e},[]);return Aa(Ta,o,a,null==e?void 0:e.class,null==e?void 0:e.className)}),Pa=l().forwardRef(function(e,t){var n=e.className,r=e.variant,o=e.size,i=e.asChild,l=void 0!==i&&i,s=e.type,c=void 0===s?"button":s,u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","variant","size","asChild","type"]),d=l?wa:"button";return(0,a().jsx)(d,Na({type:c,className:Yi(Oa({variant:r,size:o,className:n})),ref:t},u))});function Ia(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return l().useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function La(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function za(e){const t=l().useRef(e);return l().useEffect(()=>{t.current=e}),l().useMemo(()=>(...e)=>t.current?.(...e),[])}Pa.displayName="Button";var Ma=Boolean(globalThis?.document)?l().useLayoutEffect:()=>{},Ra=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=l().useState(),r=l().useRef({}),o=l().useRef(e),i=l().useRef("none"),a=e?"mounted":"unmounted",[s,c]=function(e,t){return l().useReducer((e,n)=>t[e][n]??e,e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l().useEffect(()=>{const e=Da(r.current);i.current="mounted"===s?e:"none"},[s]),Ma(()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Da(t);c(e?"MOUNT":"none"===a||"none"===t?.display?"UNMOUNT":n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Ma(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,a=i=>{const a=Da(r.current).includes(i.animationName);if(i.target===t&&a&&(c("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},l=e=>{e.target===t&&(i.current=Da(r.current))};return t.addEventListener("animationstart",l),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",l),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l().useCallback(e=>{e&&(r.current=getComputedStyle(e)),n(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):l().Children.only(n),i=va(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(o));return"function"==typeof n||r.isPresent?l().cloneElement(o,{ref:i}):null};function Da(e){return e?.animationName||"none"}Ra.displayName="Presence";var Fa=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=l().forwardRef((e,n)=>{const{asChild:r,...o}=e,i=r?wa:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a().jsx)(i,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Ba="Checkbox",[qa,Ua]=function(e,t=[]){let n=[];const r=()=>{const t=n.map(e=>l().createContext(e));return function(n){const r=n?.[e]||t;return l().useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){const o=l().createContext(r),i=n.length;n=[...n,r];const s=t=>{const{scope:n,children:r,...s}=t,c=n?.[e]?.[i]||o,u=l().useMemo(()=>s,Object.values(s));return(0,a().jsx)(c.Provider,{value:u,children:r})};return s.displayName=t+"Provider",[s,function(n,a){const s=a?.[e]?.[i]||o,c=l().useContext(s);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Ia(r,...t)]}(Ba),[Wa,Va]=qa(Ba),Qa=l().forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:s,disabled:c,value:u="on",onCheckedChange:d,form:f,...p}=e,[h,m]=l().useState(null),y=va(t,e=>m(e)),b=l().useRef(!1),g=!h||f||!!h.closest("form"),[v=!1,w]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=function({defaultProp:e,onChange:t}){const n=l().useState(e),[r]=n,o=l().useRef(r),i=za(t);return l().useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,s=za(n);return[a,l().useCallback(t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)},[i,e,o,s])]}({prop:o,defaultProp:i,onChange:d}),x=l().useRef(v);return l().useEffect(()=>{const e=h?.form;if(e){const t=()=>w(x.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[h,w]),(0,a().jsxs)(Wa,{scope:n,state:v,disabled:c,children:[(0,a().jsx)(Fa.button,{type:"button",role:"checkbox","aria-checked":Ya(v)?"mixed":v,"aria-required":s,"data-state":Ga(v),"data-disabled":c?"":void 0,disabled:c,value:u,...p,ref:y,onKeyDown:La(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:La(e.onClick,e=>{w(e=>!!Ya(e)||!e),g&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})}),g&&(0,a().jsx)($a,{control:h,bubbles:!b.current,name:r,value:u,checked:v,required:s,disabled:c,form:f,style:{transform:"translateX(-100%)"},defaultChecked:!Ya(i)&&i})]})});Qa.displayName=Ba;var Ha="CheckboxIndicator",Ka=l().forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=Va(Ha,n);return(0,a().jsx)(Ra,{present:r||Ya(i.state)||!0===i.state,children:(0,a().jsx)(Fa.span,{"data-state":Ga(i.state),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Ka.displayName=Ha;var $a=e=>{const{control:t,checked:n,bubbles:r=!0,defaultChecked:o,...i}=e,s=l().useRef(null),c=function(e){const t=l().useRef({value:e,previous:e});return l().useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(n),u=function(e){const[t,n]=l().useState(void 0);return Ma(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(t);l().useEffect(()=>{const e=s.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(c!==n&&o){const t=new Event("click",{bubbles:r});e.indeterminate=Ya(n),o.call(e,!Ya(n)&&n),e.dispatchEvent(t)}},[c,n,r]);const d=l().useRef(!Ya(n)&&n);return(0,a().jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o??d.current,...i,tabIndex:-1,ref:s,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Ya(e){return"indeterminate"===e}function Ga(e){return Ya(e)?"indeterminate":e?"checked":"unchecked"}var Xa=Qa,Ja=Ka,Za=function(){return Za=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Za.apply(this,arguments)},el=l().forwardRef(function(e,t){var n=e.className,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className"]);return(0,a().jsx)(Xa,Za({ref:t,className:Yi("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-scaler-500 data-[state=checked]:text-primary-foreground data-[state=checked]:border-blue-500",n)},r,{children:(0,a().jsx)(Ja,{className:Yi("flex items-center justify-center text-current"),children:(0,a().jsx)(ca,{className:"h-4 w-4"})})}))});el.displayName=Xa.displayName;var tl="Chrome",nl="Edge",rl="Firefox",ol="Safari",il="Opera",al={chrome:{name:tl,minVersion:80},firefox:{name:rl,minVersion:78},edge:{name:nl,minVersion:80},opera:{name:il,minVersion:70},safari:{name:ol,minVersion:14}},ll=function(){var e=navigator.userAgent,t=!!window.opr&&!!window.opr.addons||!!window.opera||e.indexOf(" OPR/")>=0,n=-1!==e.indexOf("Firefox"),r=/^((?!chrome|android).)*safari/i.test(e),o=-1!==e.indexOf("Edg"),i=!!window.chrome&&/Chrome/.test(e)&&!o&&!t,a="Unknown",l=0,s=function(t){var n=e.match(t);return n?parseInt(n[1],10):0};o?(a=nl,l=s(/Edg\/(\d+)/)):n?(a=rl,l=s(/Firefox\/(\d+)/)):t?(a=il,l=s(/OPR\/(\d+)/)):r?(a=ol,l=s(/Version\/(\d+)/)):i&&(a=tl,l=s(/Chrome\/(\d+)/));var c=Object.values(al).some(function(e){return e.name===a&&l>=e.minVersion});return{name:a,version:l,isSupported:c}},sl=function(){var e=navigator.userAgent;return{osName:/iPad|iPhone|iPod/.test(e)?"iOS":/Win/.test(e)?"Windows":/Mac/.test(e)?"MacOS":/Android/.test(e)?"Android":/Linux/.test(e)?"Linux":"Unknown"}},cl=function(e){var t=ro(function(e){return e.workflow.steps});return String(function(e,t){return function(e){return bo.filter(function(t){var n;return null===(n=e[t])||void 0===n?void 0:n.enabled})}(t).indexOf(e)+1}(e,t))};const ul=Go("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]),dl=Go("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var fl=function(){return fl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},fl.apply(this,arguments)},pl=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((r=r.apply(e,t||[])).next())})},hl=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}},ml={video:{width:{ideal:160},height:{ideal:120},frameRate:{ideal:4},facingMode:"user",advanced:[{aspectRatio:4/3},{resizeMode:"crop-and-scale"}]}},yl=(0,l().memo)(function(e){var t=e.isVisible,n=(e.onStreamReady,(0,l().useRef)(null));return(0,l().useEffect)(function(){var e=n.current;if(e)return e.autoplay=!0,e.muted=!0,e.playsInline=!0,e.disablePictureInPicture=!0,e.style.objectFit="cover",e.style.transform="scale(-1, 1)",e.addEventListener("loadedmetadata",function(){e.play().catch(console.error)}),function(){e.srcObject instanceof MediaStream&&e.srcObject.getTracks().forEach(function(e){return e.stop()})}},[]),(0,a().jsx)("video",{ref:n,id:"webcam-video",className:"w-full h-full object-cover rounded-lg ".concat(t?"block":"hidden")})});yl.displayName="WebcamVideo";var bl=(0,l().memo)(function(e){var t=e.onClick;return(0,a().jsxs)("div",{className:"flex flex-col items-center gap-4 p-6 text-center cursor-pointer",onClick:t,children:[(0,a().jsx)(Xo,{className:"w-16 h-16 text-red-400",strokeWidth:1.5}),(0,a().jsx)("div",{className:"space-y-2",children:(0,a().jsx)("p",{className:"text-red-600 font-medium",children:"Camera access is blocked. Follow the steps below to fix it."})})]})});function gl(){var e=this,t=no(),n=ro(fo),r=ro(function(e){return Uo(e,"cameraShare","cameraShare")}),o=ro(function(e){return e.workflow}).enableProctoring,i=(0,l().useState)(""),s=i[0],c=i[1],u=(0,l().useState)([]),d=u[0],f=u[1],p=(0,l().useRef)(null),h=(0,l().useCallback)(function(){p.current&&(p.current.getTracks().forEach(function(e){e.stop(),e.enabled=!1}),p.current=null)},[o]),m=(0,l().useCallback)(function(){return pl(e,void 0,void 0,function(){var e,r,o,i,a;return hl(this,function(l){switch(l.label){case 0:l.trys.push([0,10,,11]),h(),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,navigator.permissions.query({name:"camera"})];case 2:return l.sent().state,[3,4];case 3:return l.sent(),console.log("Permission query not supported, proceeding with getUserMedia"),[3,4];case 4:return[4,navigator.mediaDevices.getUserMedia(fl(fl({},ml),{video:fl(fl({},ml.video),{deviceId:s?{exact:s}:void 0})}))];case 5:return e=l.sent(),p.current=e,[4,null==n?void 0:n.getWebcamDevices()];case 6:return(null==(r=l.sent())?void 0:r.length)?(f(r),s?[3,9]:(c(r[0].id),[4,null==n?void 0:n.setWebcamDevice(r[0].id)])):[3,9];case 7:return l.sent(),[4,null==n?void 0:n.handleWebcamRequest()];case 8:l.sent(),l.label=9;case 9:return(o=document.getElementById("webcam-video"))&&(o.srcObject=e),[3,11];case 10:return i=l.sent(),console.error("Camera initialization error:",i),a="Camera permission denied","NotAllowedError"===i.name||"PermissionDeniedError"===i.name?a="Camera access was denied. Please allow camera access in your browser settings.":"NotFoundError"===i.name?a="No camera device found. Please connect a camera and try again.":"NotReadableError"===i.name&&(a="Camera is in use by another application. Please close other apps using the camera."),t(jo({step:"cameraShare",subStep:"cameraShare",error:a})),[3,11];case 11:return[2]}})})},[n,t,h,s]);(0,l().useEffect)(function(){m();var e=function(){p.current&&p.current.getTracks().forEach(function(e){e.enabled=!document.hidden})};return document.addEventListener("visibilitychange",e),function(){h(),document.removeEventListener("visibilitychange",e)}},[m]);var y=(0,l().useCallback)(function(t){return pl(e,void 0,void 0,function(){return hl(this,function(e){switch(e.label){case 0:return c(t),n?[4,n.setWebcamDevice(t)]:[3,3];case 1:return e.sent(),[4,n.handleWebcamRequest()];case 2:e.sent(),e.label=3;case 3:return[2]}})})},[n]),b=(0,l().useCallback)(function(e){var t=setTimeout(function(){y(e)},300);return function(){return clearTimeout(t)}},[y]);return(0,a().jsx)("div",{className:"flex flex-col gap-4 items-center w-full max-w-5xl mx-auto",children:(0,a().jsxs)("div",{className:"overflow-hidden shadow-lg bg-white w-full pb-6 space-y-6 rounded-2xl",children:[(0,a().jsxs)("div",{className:"aspect-video bg-gray-100 rounded-lg flex items-center justify-center",children:["error"===r.status&&(0,a().jsx)(bl,{onClick:m}),(0,a().jsx)(yl,{isVisible:"completed"===r.status,onStreamReady:function(e){p.current=e}})]}),(0,a().jsxs)("div",{className:"relative mx-8",children:[(0,a().jsxs)("select",{id:"camera-select",value:s,onChange:function(e){return b(e.target.value)},className:"w-full text-sm appearance-none rounded-lg border border-gray-300 bg-white py-4 pl-16 pr-8 shadow-sm focus:border-blue-400 focus:outline-none focus:ring-1 focus:ring-blue-400",children:[(0,a().jsx)("option",{value:"",disabled:!0,children:"Select Camera Input"}),null==d?void 0:d.map(function(e){return(0,a().jsx)("option",{value:e.id,children:e.label||"Unnamed Camera"},e.id)})]}),(0,a().jsx)(ul,{className:"w-8 h-8 fill-black absolute left-5 top-1/2 -translate-y-1/2 pointer-events-none"}),(0,a().jsx)(dl,{className:"w-8 h-8 text-gray-500 absolute right-5 top-1/2 -translate-y-1/2 pointer-events-none"})]})]})})}function vl(){}function wl(){}bl.displayName="CameraError";const xl=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,kl=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Sl={};function _l(e,t){return((t||Sl).jsx?kl:xl).test(e)}const Cl=/[ \t\n\f\r]/g;function El(e){return""===e.replace(Cl,"")}class Al{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function Tl(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new Al(n,r,t)}function jl(e){return e.toLowerCase()}Al.prototype.property={},Al.prototype.normal={},Al.prototype.space=null;class Nl{constructor(e,t){this.property=e,this.attribute=t}}Nl.prototype.space=null,Nl.prototype.boolean=!1,Nl.prototype.booleanish=!1,Nl.prototype.overloadedBoolean=!1,Nl.prototype.number=!1,Nl.prototype.commaSeparated=!1,Nl.prototype.spaceSeparated=!1,Nl.prototype.commaOrSpaceSeparated=!1,Nl.prototype.mustUseProperty=!1,Nl.prototype.defined=!1;let Ol=0;const Pl=Fl(),Il=Fl(),Ll=Fl(),zl=Fl(),Ml=Fl(),Rl=Fl(),Dl=Fl();function Fl(){return 2**++Ol}const Bl=Object.keys(x);class ql extends Nl{constructor(e,t,n,r){let o=-1;if(super(e,t),Ul(this,"space",r),"number"==typeof n)for(;++o<Bl.length;){const e=Bl[o];Ul(this,Bl[o],(n&x[e])===x[e])}}}function Ul(e,t,n){n&&(e[t]=n)}ql.prototype.defined=!0;const Wl={}.hasOwnProperty;function Vl(e){const t={},n={};let r;for(r in e.properties)if(Wl.call(e.properties,r)){const o=e.properties[r],i=new ql(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[jl(r)]=r,n[jl(i.attribute)]=r}return new Al(t,n,e.space)}const Ql=Vl({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Hl=Vl({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Kl(e,t){return t in e?e[t]:t}function $l(e,t){return Kl(e,t.toLowerCase())}const Yl=Vl({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:$l,properties:{xmlns:null,xmlnsXLink:null}}),Gl=Vl({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Il,ariaAutoComplete:null,ariaBusy:Il,ariaChecked:Il,ariaColCount:zl,ariaColIndex:zl,ariaColSpan:zl,ariaControls:Ml,ariaCurrent:null,ariaDescribedBy:Ml,ariaDetails:null,ariaDisabled:Il,ariaDropEffect:Ml,ariaErrorMessage:null,ariaExpanded:Il,ariaFlowTo:Ml,ariaGrabbed:Il,ariaHasPopup:null,ariaHidden:Il,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ml,ariaLevel:zl,ariaLive:null,ariaModal:Il,ariaMultiLine:Il,ariaMultiSelectable:Il,ariaOrientation:null,ariaOwns:Ml,ariaPlaceholder:null,ariaPosInSet:zl,ariaPressed:Il,ariaReadOnly:Il,ariaRelevant:null,ariaRequired:Il,ariaRoleDescription:Ml,ariaRowCount:zl,ariaRowIndex:zl,ariaRowSpan:zl,ariaSelected:Il,ariaSetSize:zl,ariaSort:null,ariaValueMax:zl,ariaValueMin:zl,ariaValueNow:zl,ariaValueText:null,role:null}}),Xl=Vl({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:$l,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Rl,acceptCharset:Ml,accessKey:Ml,action:null,allow:null,allowFullScreen:Pl,allowPaymentRequest:Pl,allowUserMedia:Pl,alt:null,as:null,async:Pl,autoCapitalize:null,autoComplete:Ml,autoFocus:Pl,autoPlay:Pl,blocking:Ml,capture:null,charSet:null,checked:Pl,cite:null,className:Ml,cols:zl,colSpan:null,content:null,contentEditable:Il,controls:Pl,controlsList:Ml,coords:zl|Rl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Pl,defer:Pl,dir:null,dirName:null,disabled:Pl,download:Ll,draggable:Il,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Pl,formTarget:null,headers:Ml,height:zl,hidden:Pl,high:zl,href:null,hrefLang:null,htmlFor:Ml,httpEquiv:Ml,id:null,imageSizes:null,imageSrcSet:null,inert:Pl,inputMode:null,integrity:null,is:null,isMap:Pl,itemId:null,itemProp:Ml,itemRef:Ml,itemScope:Pl,itemType:Ml,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Pl,low:zl,manifest:null,max:null,maxLength:zl,media:null,method:null,min:null,minLength:zl,multiple:Pl,muted:Pl,name:null,nonce:null,noModule:Pl,noValidate:Pl,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Pl,optimum:zl,pattern:null,ping:Ml,placeholder:null,playsInline:Pl,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Pl,referrerPolicy:null,rel:Ml,required:Pl,reversed:Pl,rows:zl,rowSpan:zl,sandbox:Ml,scope:null,scoped:Pl,seamless:Pl,selected:Pl,shadowRootClonable:Pl,shadowRootDelegatesFocus:Pl,shadowRootMode:null,shape:null,size:zl,sizes:null,slot:null,span:zl,spellCheck:Il,src:null,srcDoc:null,srcLang:null,srcSet:null,start:zl,step:null,style:null,tabIndex:zl,target:null,title:null,translate:null,type:null,typeMustMatch:Pl,useMap:null,value:Il,width:zl,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ml,axis:null,background:null,bgColor:null,border:zl,borderColor:null,bottomMargin:zl,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Pl,declare:Pl,event:null,face:null,frame:null,frameBorder:null,hSpace:zl,leftMargin:zl,link:null,longDesc:null,lowSrc:null,marginHeight:zl,marginWidth:zl,noResize:Pl,noHref:Pl,noShade:Pl,noWrap:Pl,object:null,profile:null,prompt:null,rev:null,rightMargin:zl,rules:null,scheme:null,scrolling:Il,standby:null,summary:null,text:null,topMargin:zl,valueType:null,version:null,vAlign:null,vLink:null,vSpace:zl,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Pl,disableRemotePlayback:Pl,prefix:null,property:null,results:zl,security:null,unselectable:null}}),Jl=Vl({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Kl,properties:{about:Dl,accentHeight:zl,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:zl,amplitude:zl,arabicForm:null,ascent:zl,attributeName:null,attributeType:null,azimuth:zl,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:zl,by:null,calcMode:null,capHeight:zl,className:Ml,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:zl,diffuseConstant:zl,direction:null,display:null,dur:null,divisor:zl,dominantBaseline:null,download:Pl,dx:null,dy:null,edgeMode:null,editable:null,elevation:zl,enableBackground:null,end:null,event:null,exponent:zl,externalResourcesRequired:null,fill:null,fillOpacity:zl,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Rl,g2:Rl,glyphName:Rl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:zl,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:zl,horizOriginX:zl,horizOriginY:zl,id:null,ideographic:zl,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:zl,k:zl,k1:zl,k2:zl,k3:zl,k4:zl,kernelMatrix:Dl,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:zl,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:zl,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:zl,overlineThickness:zl,paintOrder:null,panose1:null,path:null,pathLength:zl,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ml,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:zl,pointsAtY:zl,pointsAtZ:zl,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Dl,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Dl,rev:Dl,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Dl,requiredFeatures:Dl,requiredFonts:Dl,requiredFormats:Dl,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:zl,specularExponent:zl,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:zl,strikethroughThickness:zl,string:null,stroke:null,strokeDashArray:Dl,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:zl,strokeOpacity:zl,strokeWidth:null,style:null,surfaceScale:zl,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Dl,tabIndex:zl,tableValues:null,target:null,targetX:zl,targetY:zl,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Dl,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:zl,underlineThickness:zl,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:zl,values:null,vAlphabetic:zl,vMathematical:zl,vectorEffect:null,vHanging:zl,vIdeographic:zl,version:null,vertAdvY:zl,vertOriginX:zl,vertOriginY:zl,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:zl,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Zl=Tl([Hl,Ql,Yl,Gl,Xl],"html"),es=Tl([Hl,Ql,Yl,Gl,Jl],"svg"),ts=/^data[-\w.:]+$/i,ns=/-[a-z]/g,rs=/[A-Z]/g;function os(e){return"-"+e.toLowerCase()}function is(e){return e.charAt(1).toUpperCase()}const as={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};g();const ls=g().default||g(),ss=us("end"),cs=us("start");function us(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function ds(e){return e&&"object"==typeof e?"position"in e||"type"in e?ps(e.position):"start"in e||"end"in e?ps(e):"line"in e||"column"in e?fs(e):"":""}function fs(e){return hs(e&&e.line)+":"+hs(e&&e.column)}function ps(e){return fs(e&&e.start)+"-"+fs(e&&e.end)}function hs(e){return e&&"number"==typeof e?e:1}class ms extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=ds(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}ms.prototype.file="",ms.prototype.name="",ms.prototype.reason="",ms.prototype.message="",ms.prototype.stack="",ms.prototype.column=void 0,ms.prototype.line=void 0,ms.prototype.ancestors=void 0,ms.prototype.cause=void 0,ms.prototype.fatal=void 0,ms.prototype.place=void 0,ms.prototype.ruleId=void 0,ms.prototype.source=void 0;const ys={}.hasOwnProperty,bs=new Map,gs=/[A-Z]/g,vs=/-([a-z])/g,ws=new Set(["table","tbody","thead","tfoot","tr"]),xs=new Set(["td","th"]),ks="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ss(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=es,e.schema=o),e.ancestors.push(t);const i=Ts(e,t.tagName,!1),a=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&ys.call(t.properties,o)){const i=As(e,o,t.properties[o]);if(i){const[o,a]=i;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof a&&xs.has(t.tagName)?r=a:n[o]=a}}return r&&((n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r),n}(e,t);let l=Es(e,t);return ws.has(t.tagName)&&(l=l.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&El(t.value):El(t));var t})),_s(e,a,i,t),Cs(a,l),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}js(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=es,e.schema=o),e.ancestors.push(t);const i=null===t.name?e.Fragment:Ts(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];vl(t.type);const o=t.expression;vl(o.type);const i=o.properties[0];vl(i.type),Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else js(e,t.position);else{const o=r.name;let i;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];vl(t.type),i=e.evaluater.evaluateExpression(t.expression)}else js(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),l=Es(e,t);return _s(e,a,i,t),Cs(a,l),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);js(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return Cs(r,Es(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function _s(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Cs(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Es(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:bs;for(;++r<t.children.length;){const i=t.children[r];let a;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=o.get(e)||0;a=e+"-"+t,o.set(e,t+1)}}const l=Ss(e,i,a);void 0!==l&&n.push(l)}return n}function As(e,t,n){const r=function(e,t){const n=jl(t);let r=t,o=Nl;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&ts.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(ns,is);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!ns.test(e)){let n=e.replace(rs,os);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=ql}return new o(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){const n={};try{ls(t,function(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(vs,Os)),n[r]=t})}catch(t){if(!e.ignoreInvalidStyle){const n=t,r=new ms("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=ks+"#cannot-parse-style-attribute",r}}return n}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)ys.call(e,n)&&(t[Ns(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?as[r.property]||r.property:r.attribute,n]}}function Ts(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=_l(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(o&&"Literal"===t.type),optional:!1}:t}r=n}else r=_l(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return ys.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);js(e)}function js(e,t){const n=new ms("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ks+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Ns(e){let t=e.replace(gs,Ps);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function Os(e,t){return t.toUpperCase()}function Ps(e){return"-"+e.toLowerCase()}const Is={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Ls={};function zs(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ms(e.children,t,n)}return Array.isArray(e)?Ms(e,t,n):""}function Ms(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=zs(e[o],t,n);return r.join("")}function Rs(e,t,n,r){const o=e.length;let i,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function Ds(e,t){return e.length>0?(Rs(e,e.length,0,t),e):t}class Fs{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=t??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&Bs(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Bs(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Bs(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);Bs(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Bs(this.left,t.reverse())}}}function Bs(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function qs(e){const t={};let n,r,o,i,a,l,s,c=-1;const u=new Fs(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(l=n[1]._tokenizer.events,o=0,o<l.length&&"lineEndingBlank"===l[o][1].type&&(o+=2),o<l.length&&"content"===l[o][1].type))for(;++o<l.length&&"content"!==l[o][1].type;)"chunkText"===l[o][1].type&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Us(u,c)),c=t[c],s=!0);else if(n[1]._container){for(o=c,r=void 0;o--&&(i=u.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type);)"enter"===i[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);r&&(n[1].end={...u.get(r)[1].start},a=u.slice(r,c),a.unshift(n),u.splice(r,c-r+1,a))}}return Rs(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!s}function Us(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[],a=n._tokenizer||r.parser[n.contentType](n.start),l=a.events,s=[],c={};let u,d,f=-1,p=n,h=0,m=0;const y=[m];for(;p;){for(;e.get(++o)[1]!==p;);i.push(o),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<l.length;)"exit"===l[f][0]&&"enter"===l[f-1][0]&&l[f][1].type===l[f-1][1].type&&l[f][1].start.line!==l[f][1].end.line&&(m=f+1,y.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):y.pop(),f=y.length;f--;){const t=l.slice(y[f],y[f+1]),n=i.pop();s.push([n,n+t.length-1]),e.splice(n,2,t)}for(s.reverse(),f=-1;++f<s.length;)c[h+s[f][0]]=h+s[f][1],h+=s[f][1]-s[f][0]-1;return c}const Ws={}.hasOwnProperty;function Vs(e,t){let n;for(n in t){const r=(Ws.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){Ws.call(r,i)||(r[i]=[]);const e=o[i];Qs(r[i],Array.isArray(e)?e:e?[e]:[])}}}function Qs(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Rs(e,0,0,r)}const Hs=oc(/[A-Za-z]/),Ks=oc(/[\dA-Za-z]/),$s=oc(/[#-'*+\--9=?A-Z^-~]/);function Ys(e){return null!==e&&(e<32||127===e)}const Gs=oc(/\d/),Xs=oc(/[\dA-Fa-f]/),Js=oc(/[!-/:-@[-`{-~]/);function Zs(e){return null!==e&&e<-2}function ec(e){return null!==e&&(e<0||32===e)}function tc(e){return-2===e||-1===e||32===e}const nc=oc(/\p{P}|\p{S}/u),rc=oc(/\s/);function oc(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function ic(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){return tc(r)?(e.enter(n),a(r)):t(r)};function a(r){return tc(r)&&i++<o?(e.consume(r),a):(e.exit(n),t(r))}}const ac={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ic(e,t,"linePrefix");e.consume(n)},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Zs(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}},lc={tokenize:function(e){const t=this,n=[];let r,o,i,a=0;return l;function l(r){if(a<n.length){const o=n[a];return t.containerState=o[1],e.attempt(o[0].continuation,s,c)(r)}return c(r)}function s(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&g();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}b(a);let l=n;for(;l<t.events.length;)t.events[l][1].end={...o},l++;return Rs(t.events,i+1,0,t.events.slice(n)),t.events.length=l,c(e)}return l(e)}function c(o){if(a===n.length){if(!r)return f(o);if(r.currentConstruct&&r.currentConstruct.concrete)return h(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(sc,u,d)(o)}function u(e){return r&&g(),b(a),f(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,h(e)}function f(n){return t.containerState={},e.attempt(sc,p,h)(n)}function p(e){return a++,n.push([t.currentConstruct,t.containerState]),f(e)}function h(n){return null===n?(r&&g(),b(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),m(n))}function m(n){return null===n?(y(e.exit("chunkFlow"),!0),b(0),void e.consume(n)):Zs(n)?(e.consume(n),y(e.exit("chunkFlow")),a=0,t.interrupt=void 0,l):(e.consume(n),m)}function y(e,n){const l=t.sliceStream(e);if(n&&l.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(l),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,l,s=n;for(;s--;)if("exit"===t.events[s][0]&&"chunkFlow"===t.events[s][1].type){if(o){l=t.events[s][1].end;break}o=!0}for(b(a),e=n;e<t.events.length;)t.events[e][1].end={...l},e++;Rs(t.events,s+1,0,t.events.slice(n)),t.events.length=e}}function b(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function g(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},sc={tokenize:function(e,t,n){return ic(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},cc={partial:!0,tokenize:function(e,t,n){return function(t){return tc(t)?ic(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Zs(e)?t(e):n(e)}}},uc={resolve:function(e){return qs(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):Zs(t)?e.check(dc,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},dc={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ic(e,o,"linePrefix")};function o(o){if(null===o||Zs(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}},fc={tokenize:function(e){const t=this,n=e.attempt(cc,function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)},e.attempt(this.parser.constructs.flowInitial,r,ic(e,e.attempt(this.parser.constructs.flow,r,e.attempt(uc,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},pc={resolveAll:bc()},hc=yc("string"),mc=yc("text");function yc(e){return{resolveAll:bc("text"===e?gc:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return s(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),l;t.consume(e)}function l(e){return s(e)?(t.exit("data"),o(e)):(t.consume(e),l)}function s(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function bc(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function gc(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,a=o.length,l=-1,s=0;for(;a--;){const e=o[a];if("string"==typeof e){for(l=e.length;32===e.charCodeAt(l-1);)s++,l--;if(l)break;l=-1}else if(-2===e)i=!0,s++;else if(-1!==e){a++;break}}if(s){const o={type:n===e.length||i||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?l:r.start._bufferIndex+l,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...o.start},r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}const vc={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),a(i)):o>=3&&(null===i||Zs(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),tc(t)?ic(e,i,"whitespace")(t):i(t))}}},wc={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(cc,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ic(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!tc(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(kc,t,o)(n))});function o(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,ic(e,e.attempt(wc,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:Gs(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(vc,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(t)}return n(t)};function l(t){return Gs(t)&&++a<10?(e.consume(t),l):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),s(t)):n(t)}function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(cc,r.interrupt?n:c,e.attempt(xc,d,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return tc(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},xc={partial:!0,tokenize:function(e,t,n){const r=this;return ic(e,function(e){const o=r.events[r.events.length-1];return!tc(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},kc={partial:!0,tokenize:function(e,t,n){const r=this;return ic(e,function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},Sc={continuation:{tokenize:function(e,t,n){const r=this;return function(t){return tc(t)?ic(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):o(t)};function o(r){return e.attempt(Sc,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return tc(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function _c(e,t,n,r,o,i,a,l,s){const c=s||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d):null===t||32===t||41===t||Ys(t)?n(t):(e.enter(r),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(l),d(t)):null===t||60===t||Zs(t)?n(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function h(o){return u||null!==o&&41!==o&&!ec(o)?u<c&&40===o?(e.consume(o),u++,h):41===o?(e.consume(o),u--,h):null===o||32===o||40===o||Ys(o)?n(o):(e.consume(o),92===o?m:h):(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),t(o))}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function Cc(e,t,n,r,o,i){const a=this;let l,s=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),c};function c(d){return s>999||null===d||91===d||93===d&&!l||94===d&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):Zs(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||Zs(t)||s++>999?(e.exit("chunkString"),c(t)):(e.consume(t),l||(l=!tc(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function Ec(e,t,n,r,o,i){let a;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,l):n(t)};function l(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),s(n))}function s(t){return t===a?(e.exit(i),l(a)):null===t?n(t):Zs(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ic(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||Zs(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function Ac(e,t){let n;return function r(o){return Zs(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):tc(o)?ic(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}function Tc(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const jc={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return Cc.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=Tc(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return ec(t)?Ac(e,l)(t):l(t)}function l(t){return _c(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(Nc,c,c)(t)}function c(t){return tc(t)?ic(e,u,"whitespace")(t):u(t)}function u(i){return null===i||Zs(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},Nc={partial:!0,tokenize:function(e,t,n){return function(t){return ec(t)?Ac(e,r)(t):n(t)};function r(t){return Ec(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return tc(t)?ic(e,i,"whitespace")(t):i(t)}function i(e){return null===e||Zs(e)?t(e):n(e)}}},Oc={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),ic(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?l(t):Zs(t)?e.attempt(Pc,i,l)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||Zs(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function l(n){return e.exit("codeIndented"),t(n)}}},Pc={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):Zs(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):ic(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):Zs(e)?o(e):n(e)}}},Ic={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,i=3;return"whitespace"===e[i][1].type&&(i+=2),o-2>i&&"whitespace"===e[o][1].type&&(o-=2),"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4),o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},Rs(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||ec(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||Zs(n)?(e.exit("atxHeading"),t(n)):tc(n)?ic(e,i,"whitespace")(n):(e.enter("atxHeadingText"),l(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function l(t){return null===t||35===t||ec(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),l)}}},Lc={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=a,e.push(["exit",a,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let a,l=r.events.length;for(;l--;)if("lineEnding"!==r.events[l][1].type&&"linePrefix"!==r.events[l][1].type&&"content"!==r.events[l][1].type){a="paragraph"===r.events[l][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!a?n(t):(e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t))};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),tc(t)?ic(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||Zs(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},zc=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Mc=["pre","script","style","textarea"],Rc={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){const r=this;let o,i,a,l,s;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(l){return 33===l?(e.consume(l),u):47===l?(e.consume(l),i=!0,p):63===l?(e.consume(l),o=3,r.interrupt?t:L):Hs(l)?(e.consume(l),a=String.fromCharCode(l),h):n(l)}function u(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,l=0,f):Hs(i)?(e.consume(i),o=4,r.interrupt?t:L):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:L):n(o)}function f(o){return o==="CDATA[".charCodeAt(l++)?(e.consume(o),6===l?r.interrupt?t:E:f):n(o)}function p(t){return Hs(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(l){if(null===l||47===l||62===l||ec(l)){const s=47===l,c=a.toLowerCase();return s||i||!Mc.includes(c)?zc.includes(a.toLowerCase())?(o=6,s?(e.consume(l),m):r.interrupt?t(l):E(l)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(l):i?y(l):b(l)):(o=1,r.interrupt?t(l):E(l))}return 45===l||Ks(l)?(e.consume(l),a+=String.fromCharCode(l),h):n(l)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:E):n(o)}function y(t){return tc(t)?(e.consume(t),y):_(t)}function b(t){return 47===t?(e.consume(t),_):58===t||95===t||Hs(t)?(e.consume(t),g):tc(t)?(e.consume(t),b):_(t)}function g(t){return 45===t||46===t||58===t||95===t||Ks(t)?(e.consume(t),g):v(t)}function v(t){return 61===t?(e.consume(t),w):tc(t)?(e.consume(t),v):b(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,x):tc(t)?(e.consume(t),w):k(t)}function x(t){return t===s?(e.consume(t),s=null,S):null===t||Zs(t)?n(t):(e.consume(t),x)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||ec(t)?v(t):(e.consume(t),k)}function S(e){return 47===e||62===e||tc(e)?b(e):n(e)}function _(t){return 62===t?(e.consume(t),C):n(t)}function C(t){return null===t||Zs(t)?E(t):tc(t)?(e.consume(t),C):n(t)}function E(t){return 45===t&&2===o?(e.consume(t),N):60===t&&1===o?(e.consume(t),O):62===t&&4===o?(e.consume(t),z):63===t&&3===o?(e.consume(t),L):93===t&&5===o?(e.consume(t),I):!Zs(t)||6!==o&&7!==o?null===t||Zs(t)?(e.exit("htmlFlowData"),A(t)):(e.consume(t),E):(e.exit("htmlFlowData"),e.check(Dc,M,A)(t))}function A(t){return e.check(Fc,T,M)(t)}function T(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),j}function j(t){return null===t||Zs(t)?A(t):(e.enter("htmlFlowData"),E(t))}function N(t){return 45===t?(e.consume(t),L):E(t)}function O(t){return 47===t?(e.consume(t),a="",P):E(t)}function P(t){if(62===t){const n=a.toLowerCase();return Mc.includes(n)?(e.consume(t),z):E(t)}return Hs(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),P):E(t)}function I(t){return 93===t?(e.consume(t),L):E(t)}function L(t){return 62===t?(e.consume(t),z):45===t&&2===o?(e.consume(t),L):E(t)}function z(t){return null===t||Zs(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),z)}function M(n){return e.exit("htmlFlow"),t(n)}}},Dc={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(cc,t,n)}}},Fc={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return Zs(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},Bc={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},qc={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(t){return e.enter("codeFencedFence"),tc(t)?ic(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===i?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===i?(o++,e.consume(t),c):o>=l?(e.exit("codeFencedFenceSequence"),tc(t)?ic(e,u,"whitespace")(t):u(t)):n(t)}function u(r){return null===r||Zs(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let i,a=0,l=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}(t)};function s(t){return t===i?(l++,e.consume(t),s):l<3?n(t):(e.exit("codeFencedFenceSequence"),tc(t)?ic(e,c,"whitespace")(t):c(t))}function c(n){return null===n||Zs(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Bc,p,g)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||Zs(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):tc(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ic(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){return null===t||Zs(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||Zs(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),f)}function p(t){return e.attempt(o,g,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&tc(t)?ic(e,y,"linePrefix",a+1)(t):y(t)}function y(t){return null===t||Zs(t)?e.check(Bc,p,g)(t):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||Zs(t)?(e.exit("codeFlowValue"),y(t)):(e.consume(t),b)}function g(n){return e.exit("codeFenced"),t(n)}}},Uc=document.createElement("i");function Wc(e){const t="&"+e+";";Uc.innerHTML=t;const n=Uc.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}const Vc={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,i=Ks,c(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=Xs,c):(e.enter("characterReferenceValue"),o=7,i=Gs,c(t))}function c(l){if(59===l&&a){const o=e.exit("characterReferenceValue");return i!==Ks||Wc(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return i(l)&&a++<o?(e.consume(l),c):n(l)}}},Qc={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return Js(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},Hc={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ic(e,t,"linePrefix")}}};function Kc(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const $c={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&Rs(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,o,i,a=e.length,l=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){l=2;break}}else"labelEnd"===n.type&&(o=a);const s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[r+l+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",s,t],["enter",c,t]],i=Ds(i,e.slice(r+1,r+l+3)),i=Ds(i,[["enter",u,t]]),i=Ds(i,Kc(t.parser.constructs.insideSpan.null,e.slice(r+l+4,o-3),t)),i=Ds(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),i=Ds(i,e.slice(o+1)),i=Ds(i,[["exit",s,t]]),Rs(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){o=r.events[a][1];break}return function(t){return o?o._inactive?u(t):(i=r.parser.defined.includes(Tc(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l):n(t)};function l(t){return 40===t?e.attempt(Yc,c,i?c:u)(t):91===t?e.attempt(Gc,c,i?s:u)(t):i?c(t):u(t)}function s(t){return e.attempt(Xc,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}}},Yc={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return ec(t)?Ac(e,o)(t):o(t)}function o(t){return 41===t?c(t):_c(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return ec(t)?Ac(e,l)(t):c(t)}function a(e){return n(e)}function l(t){return 34===t||39===t||40===t?Ec(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function s(t){return ec(t)?Ac(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},Gc={tokenize:function(e,t,n){const r=this;return function(t){return Cc.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(Tc(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},Xc={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},Jc={name:"labelStartImage",resolveAll:$c.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};function Zc(e){return null===e||ec(e)||rc(e)?1:nc(e)?2:void 0}const eu={name:"attention",resolveAll:function(e,t){let n,r,o,i,a,l,s,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},f={...e[u][1].start};tu(d,-l),tu(f,l),i={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:f},o={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:l>1?"strong":"emphasis",start:{...i.start},end:{...a.end}},e[n][1].end={...i.start},e[u][1].start={...a.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=Ds(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=Ds(s,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),s=Ds(s,Kc(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),s=Ds(s,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,s=Ds(s,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Rs(e,n-1,u-n+3,s),u=n+s.length-c-2;break}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Zc(r);let i;return function(t){return i=t,e.enter("attentionSequence"),a(t)};function a(l){if(l===i)return e.consume(l),a;const s=e.exit("attentionSequence"),c=Zc(l),u=!c||2===c&&o||n.includes(l),d=!o||2===o&&c||n.includes(r);return s._open=Boolean(42===i?u:u&&(o||!d)),s._close=Boolean(42===i?d:d&&(c||!u)),t(l)}}};function tu(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const nu={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return Hs(t)?(e.consume(t),i):64===t?n(t):s(t)}function i(e){return 43===e||45===e||46===e||Ks(e)?(r=1,a(e)):s(e)}function a(t){return 58===t?(e.consume(t),r=0,l):(43===t||45===t||46===t||Ks(t))&&r++<32?(e.consume(t),a):(r=0,s(t))}function l(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||Ys(r)?n(r):(e.consume(r),l)}function s(t){return 64===t?(e.consume(t),c):$s(t)?(e.consume(t),s):n(t)}function c(e){return Ks(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||Ks(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}},ru={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),w):63===t?(e.consume(t),g):Hs(t)?(e.consume(t),S):n(t)}function s(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,p):Hs(t)?(e.consume(t),b):n(t)}function c(t){return 45===t?(e.consume(t),f):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):Zs(t)?(a=u,P(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),f):u(t)}function f(e){return 62===e?O(e):45===e?d(e):u(e)}function p(t){return t==="CDATA[".charCodeAt(i++)?(e.consume(t),6===i?h:p):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):Zs(t)?(a=h,P(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),y):h(t)}function y(t){return 62===t?O(t):93===t?(e.consume(t),y):h(t)}function b(t){return null===t||62===t?O(t):Zs(t)?(a=b,P(t)):(e.consume(t),b)}function g(t){return null===t?n(t):63===t?(e.consume(t),v):Zs(t)?(a=g,P(t)):(e.consume(t),g)}function v(e){return 62===e?O(e):g(e)}function w(t){return Hs(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||Ks(t)?(e.consume(t),x):k(t)}function k(t){return Zs(t)?(a=k,P(t)):tc(t)?(e.consume(t),k):O(t)}function S(t){return 45===t||Ks(t)?(e.consume(t),S):47===t||62===t||ec(t)?_(t):n(t)}function _(t){return 47===t?(e.consume(t),O):58===t||95===t||Hs(t)?(e.consume(t),C):Zs(t)?(a=_,P(t)):tc(t)?(e.consume(t),_):O(t)}function C(t){return 45===t||46===t||58===t||95===t||Ks(t)?(e.consume(t),C):E(t)}function E(t){return 61===t?(e.consume(t),A):Zs(t)?(a=E,P(t)):tc(t)?(e.consume(t),E):_(t)}function A(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,T):Zs(t)?(a=A,P(t)):tc(t)?(e.consume(t),A):(e.consume(t),j)}function T(t){return t===o?(e.consume(t),o=void 0,N):null===t?n(t):Zs(t)?(a=T,P(t)):(e.consume(t),T)}function j(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||ec(t)?_(t):(e.consume(t),j)}function N(e){return 47===e||62===e||ec(e)?_(e):n(e)}function O(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function P(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return tc(t)?ic(e,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),a(t)}}},ou={name:"labelStartLink",resolveAll:$c.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},iu={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return Zs(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},au={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}for(t=o-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),i++,a):(e.exit("codeTextSequence"),l(t))}function l(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),l):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):Zs(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("codeTextData"),s(t))}function s(t){return null===t||32===t||96===t||Zs(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),s)}function c(n){return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",s(n))}}},lu={42:wc,43:wc,45:wc,48:wc,49:wc,50:wc,51:wc,52:wc,53:wc,54:wc,55:wc,56:wc,57:wc,62:Sc},su={91:jc},cu={[-2]:Oc,[-1]:Oc,32:Oc},uu={35:Ic,42:vc,45:[Lc,vc],60:Rc,61:Lc,95:vc,96:qc,126:qc},du={38:Vc,92:Qc},fu={[-5]:Hc,[-4]:Hc,[-3]:Hc,33:Jc,38:Vc,42:eu,60:[nu,ru],91:ou,92:[iu,Qc],93:$c,95:eu,96:au},pu={null:[eu,pc]},hu={null:[42,95]},mu={null:[]};function yu(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let a=[],l=[],s=!0;const c={attempt:b(function(e,t){g(e,t.from)}),check:b(y),consume:function(e){Zs(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,v()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e,s=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=h(),u.events.push(["enter",n,u]),l.push(n),n},exit:function(e){const t=l.pop();return t.end=h(),u.events.push(["exit",t,u]),t},interrupt:b(y,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,v()},events:[],now:h,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let a;if("string"==typeof i)a=i;else switch(i){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,r.push(a)}return r.join("")}(p(e),t)},sliceStream:p,write:function(e){return a=Ds(a,e),function(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)m(t.charCodeAt(r._bufferIndex));else m(t)}}(),null!==a[a.length-1]?[]:(g(t,0),u.events=Kc(i,u.events,u),u.events)}};let d,f=t.tokenize.call(u,c);return t.resolveAll&&i.push(t),u;function p(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(n===o)a=[e[n].slice(r,i)];else{if(a=e.slice(n,o),r>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function h(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:i}}function m(e){s=void 0,d=e,f=f(e)}function y(e,t){t.restore()}function b(e,t){return function(n,o,i){let a,d,f,p;return Array.isArray(n)?y(n):"tokenize"in n?y([n]):(m=n,function(e){const t=null!==e&&m[e],n=null!==e&&m.null;return y([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});var m;function y(e){return a=e,d=0,0===e.length?i:b(e[d])}function b(e){return function(n){return p=function(){const e=h(),t=u.previous,n=u.currentConstruct,o=u.events.length,i=Array.from(l);return{from:o,restore:function(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=o,l=i,v()}}}(),f=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name)?w():e.tokenize.call(t?Object.assign(Object.create(u),t):u,c,g,w)(n)}}function g(t){return s=!0,e(f,p),o}function w(e){return s=!0,p.restore(),++d<a.length?b(a[d]):i}}}function g(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&Rs(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function v(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const bu=/[\0\t\n\r]/g;function gu(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}const vu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function wu(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return gu(n.slice(t?2:1),t?16:10)}return Wc(n)||e}const xu={}.hasOwnProperty;function ku(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(g),autolinkProtocol:u,autolinkEmail:u,atxHeading:o(m),blockQuote:o(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:o(h),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:o(h,i),codeText:o(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:o(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:o(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:o(y),hardBreakTrailing:o(y),htmlFlow:o(b,i),htmlFlowData:u,htmlText:o(b,i),htmlTextData:u,image:o(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:o(g),listItem:o(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:o(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:o(v),paragraph:o(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:o(m),strong:o(function(){return{type:"strong",children:[]}}),thematicBreak:o(function(){return{type:"thematicBreak"}})},exit:{atxHeading:l(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:l(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:l(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;n?(r=gu(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=Wc(t);this.stack[this.stack.length-1].value+=r},characterReference:function(e){this.stack.pop().position.end=Su(e.end)},codeFenced:l(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:l(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:l(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:d,data:d,definition:l(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Tc(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:l(),hardBreakEscape:l(f),hardBreakTrailing:l(f),htmlFlow:l(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:d,htmlText:l(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:d,image:l(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(vu,wu)}(t),n.identifier=Tc(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak)return n.children[n.children.length-1].position.end=Su(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),d.call(this,e))},link:l(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Tc(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:l(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:l(),thematicBreak:l()}};_u(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let o={type:"root",children:[]};const l={stack:[o],tokenStack:[],config:t,enter:a,exit:s,buffer:i,resume:c,data:n},u=[];let d=-1;for(;++d<e.length;)"listOrdered"!==e[d][1].type&&"listUnordered"!==e[d][1].type||("enter"===e[d][0]?u.push(d):d=r(e,u.pop(),d));for(d=-1;++d<e.length;){const n=t[e[d][0]];xu.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},l),e[d][1])}if(l.tokenStack.length>0){const e=l.tokenStack[l.tokenStack.length-1];(e[1]||Eu).call(l,void 0,e[0])}for(o.position={start:Su(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Su(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)o=t.transforms[d](o)||o;return o};function r(e,t,n){let r,o,i,a,l=t-1,s=-1,c=!1;for(;++l<=n;){const t=e[l];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||s||i||(i=l),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=l;for(o=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",o=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||l,0,["exit",r,t[2]]),l++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(l,0,["enter",o,t[2]]),l++,n++,i=void 0,a=!0}}}return e[t][1]._spread=c,n}function o(e,t){return function(n){a.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Su(t.start),end:void 0}}function l(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+ds({start:e.start,end:e.end})+"): it’s not open");r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Eu).call(this,e,r[0])),n.position.end=Su(e.end)}function c(){return function(e){return zs(e,"boolean"!=typeof Ls.includeImageAlt||Ls.includeImageAlt,"boolean"!=typeof Ls.includeHtml||Ls.includeHtml)}(this.stack.pop())}function u(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n={type:"text",value:""},n.position={start:Su(e.start),end:void 0},t.push(n)),this.stack.push(n)}function d(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Su(e.end)}function f(){this.data.atHardBreak=!0}function p(e){this.data.characterReferenceType=e.type}function h(){return{type:"code",lang:null,meta:null,value:""}}function m(){return{type:"heading",depth:0,children:[]}}function y(){return{type:"break"}}function b(){return{type:"html",value:""}}function g(){return{type:"link",title:null,url:"",children:[]}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(function(e){for(;!qs(e););return e}(function(e){const t={constructs:function(e){const t={};let n=-1;for(;++n<e.length;)Vs(t,e[n]);return t}([k,...(e||{}).extensions||[]]),content:n(ac),defined:[],document:n(lc),flow:n(fc),lazy:{},string:n(hc),text:n(mc)};return t;function n(e){return function(n){return yu(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,a){const l=[];let s,c,u,d,f;for(o=n+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(bu.lastIndex=u,s=bu.exec(o),d=s&&void 0!==s.index?s.index:o.length,f=o.charCodeAt(d),!s){n=o.slice(u);break}if(10===f&&u===d&&e)l.push(-3),e=void 0;else switch(e&&(l.push(-5),e=void 0),u<d&&(l.push(o.slice(u,d)),t+=d-u),f){case 0:l.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),l.push(-2);t++<c;)l.push(-1);break;case 10:l.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return a&&(e&&l.push(-5),n&&l.push(n),l.push(null)),l}}()(e,t,!0))))}function Su(e){return{line:e.line,column:e.column,offset:e.offset}}function _u(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?_u(e,r):Cu(e,r)}}function Cu(e,t){let n;for(n in t)if(xu.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Eu(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ds({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ds({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ds({start:t.start,end:t.end})+") is still open")}function Au(e){const t=this;t.parser=function(n){return ku(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const Tu="object"==typeof self?self:globalThis,ju=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,a]=t[o];switch(i){case 0:case-1:return n(a,o);case 1:{const e=n([],o);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),o);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new Tu[e](t),o)}case 8:return n(BigInt(a),o);case"BigInt":return n(Object(BigInt(a)),o)}return n(new Tu[i](a),o)};return r})(new Map,e)(0),Nu="",{toString:Ou}={},{keys:Pu}=Object,Iu=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Ou.call(e).slice(8,-1);switch(n){case"Array":return[1,Nu];case"Object":return[2,Nu];case"Date":return[3,Nu];case"RegExp":return[4,Nu];case"Map":return[5,Nu];case"Set":return[6,Nu]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Lu=([e,t])=>0===e&&("function"===t||"symbol"===t),zu=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[a,l]=Iu(r);switch(a){case 0:{let t=r;switch(l){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);t=null;break;case"undefined":return o([-1],r)}return o([a,t],r)}case 1:{if(l)return o([l,[...r]],r);const e=[],t=o([a,e],r);for(const t of r)e.push(i(t));return t}case 2:{if(l)switch(l){case"BigInt":return o([l,r.toString()],r);case"Boolean":case"Number":case"String":return o([l,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],s=o([a,n],r);for(const t of Pu(r))!e&&Lu(Iu(r[t]))||n.push([i(t),i(r[t])]);return s}case 3:return o([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([a,{source:e,flags:t}],r)}case 5:{const t=[],n=o([a,t],r);for(const[n,o]of r)(e||!Lu(Iu(n))&&!Lu(Iu(o)))&&t.push([i(n),i(o)]);return n}case 6:{const t=[],n=o([a,t],r);for(const n of r)!e&&Lu(Iu(n))||t.push(i(n));return n}}const{message:s}=r;return o([a,{name:l,message:s}],r)};return i})(!(t||n),!!t,new Map,r)(e),r},Mu="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?ju(zu(e,t)):structuredClone(e):(e,t)=>ju(zu(e,t));function Ru(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(37===i&&Ks(e.charCodeAt(n+1))&&Ks(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function Du(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Fu(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Bu=function(e){if(null==e)return Uu;if("function"==typeof e)return qu(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Bu(e[n]);return qu(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):function(e){const t=e;return qu(function(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0})}(e);if("string"==typeof e)return t=e,qu(function(e){return e&&e.type===t});var t;throw new Error("Expected function, string, or object as test")};function qu(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function Uu(){return!0}const Wu=[],Vu=!1;function Qu(e,t,n,r){let o,i,a;"function"==typeof t&&"function"!=typeof n?(i=void 0,a=t,o=n):(i=t,a=n,o=r),function(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=Bu(o),a=r?-1:1;!function e(o,l,s){const c=o&&"object"==typeof o?o:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,f=Wu;if((!t||i(o,l,s[s.length-1]||void 0))&&(f=function(e){return Array.isArray(e)?e:"number"==typeof e?[!0,e]:null==e?Wu:[e]}(n(o,s)),f[0]===Vu))return f;if("children"in o&&o.children){const t=o;if(t.children&&"skip"!==f[0])for(u=(r?t.children.length:-1)+a,d=s.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===Vu)return c;u="number"==typeof c[1]?c[1]:u+a}}return f}}(e,void 0,[])()}(e,i,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)},o)}function Hu(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&"text"===a.type?a.value+=r:o.push({type:"text",value:r}),o}function Ku(e){return e.spread??e.children.length>1}function $u(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(Yu(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(Yu(t.slice(o),o>0,!1)),i.join("")}function Yu(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const Gu={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=Ru(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let a,l=e.footnoteCounts.get(r);void 0===l?(l=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=i+1,l+=1,e.footnoteCounts.set(r,l);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,s);const c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Hu(e,t);const o={src:Ru(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:Ru(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Hu(e,t);const o={href:Ru(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:Ru(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Ku(n[r])}return t}(n):Ku(t),i={},a=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const e=r[l];(o||0!==l||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const s=r[r.length-1];s&&(o||"element"!==s.type||"p"!==s.tagName)&&a.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=cs(t.children[1]),a=ss(t.children[t.children.length-1]);i&&a&&(r.position={start:i,end:a}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length;let l=-1;const s=[];for(;++l<a;){const n=t.children[l],r={},a=i?i[l]:void 0;a&&(r.align=a);let c={type:"element",tagName:o,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),s.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:$u(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Xu,yaml:Xu,definition:Xu,footnoteDefinition:Xu};function Xu(){}const Ju={}.hasOwnProperty,Zu={};function ed(e,t){e.position&&(t.position=function(e){const t=cs(e),n=ss(e);if(t&&n)return{start:t,end:n}}(e))}function td(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&o&&Object.assign(n.properties,Mu(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function nd(e,t){const n=t.data||{},r=!("value"in t)||Ju.call(n,"hProperties")||Ju.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function rd(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function od(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function id(e,t){const n=function(e,t){const n=t||Zu,r=new Map,o=new Map,i=new Map,a={...Gu,...n.handlers},l={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=l.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=od(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=od(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:td,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:a,one:function(e,t){const n=e.type,r=l.handlers[n];if(Ju.call(l.handlers,n)&&r)return r(l,e,t);if(l.options.passThrough&&l.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=Mu(n);return r.children=l.all(e),r}return Mu(e)}return(l.options.unknownHandler||nd)(l,e,t)},options:n,patch:ed,wrap:rd};return Qu(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),l}(e,t),r=n.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Du,r=e.options.footnoteBackLabel||Fu,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let s=-1;for(;++s<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[s]);if(!o)continue;const i=e.all(o),a=String(o.identifier).toUpperCase(),c=Ru(a.toLowerCase());let u=0;const d=[],f=e.footnoteCounts.get(a);for(;void 0!==f&&++u<=f;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=i[i.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else i.push(...d);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(o,h),l.push(h)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Mu(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function ad(e,t){return e&&"run"in e?async function(n,r){const o=id(n,{file:r,...t});await e.run(o,r)}:function(n,r){return id(n,{file:r,...e||t})}}function ld(e){if(e)throw e}function sd(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}e();const cd=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');hd(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,l=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(o=i):(l=-1,o=a));return r===o?o=a:o<0&&(o=e.length),e.slice(r,o)},ud=function(e){if(hd(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},dd=function(e){hd(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const l=e.codePointAt(n);if(47!==l)r<0&&(t=!0,r=n+1),46===l?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}return i<0||r<0||0===a||1===a&&i===r-1&&i===o+1?"":e.slice(i,r)},fd=function(...e){let t,n=-1;for(;++n<e.length;)hd(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){hd(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,a=-1,l=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else{if(47===n)break;n=47}if(47===n){if(a===s-1||1===l);else if(a!==s-1&&2===l){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=s,l=0;continue}}else if(o.length>0){o="",i=0,a=s,l=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,s):o=e.slice(a+1,s),i=s-a-1;a=s,l=0}else 46===n&&l>-1?l++:l=-1}return o}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},pd="/";function hd(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const md=function(){return"/"};function yd(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const bd=["history","path","basename","stem","extname","dirname"];class gd{constructor(e){let t;t=e?yd(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":md(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<bd.length;){const e=bd[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)bd.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?cd(this.path):void 0}set basename(e){wd(e,"basename"),vd(e,"basename"),this.path=fd(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?ud(this.path):void 0}set dirname(e){xd(this.basename,"dirname"),this.path=fd(e||"",this.basename)}get extname(){return"string"==typeof this.path?dd(this.path):void 0}set extname(e){if(vd(e,"extname"),xd(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=fd(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){yd(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!yd(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),wd(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?cd(this.path,this.extname):void 0}set stem(e){wd(e,"stem"),vd(e,"stem"),this.path=fd(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new ms(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function vd(e,t){if(e&&e.includes(pd))throw new Error("`"+t+"` cannot be a path: did not expect `"+pd+"`")}function wd(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function xd(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const kd=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},Sd={}.hasOwnProperty;class _d extends kd{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...a){const l=e[++n];let s=-1;if(i)r(i);else{for(;++s<t.length;)null!==a[s]&&void 0!==a[s]||(a[s]=t[s]);t=a,l?function(e,t){let n;return function(...t){const i=e.length>t.length;let a;i&&t.push(r);try{a=e.apply(this,t)}catch(e){if(i&&n)throw e;return r(e)}i||(a&&a.then&&"function"==typeof a.then?a.then(o,r):a instanceof Error?r(a):o(a))};function r(e,...r){n||(n=!0,t(e,...r))}function o(e){r(null,e)}}(l,o)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){const t=new _d;let n=-1;for(;++n<this.attachers.length;){const e=this.attachers[n];t.use(...e)}return t.data(e()(!0,{},this.namespace)),t}data(e,t){return"string"==typeof e?2===arguments.length?(Td("data",this.frozen),this.namespace[e]=t,this):Sd.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Td("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Od(e),n=this.parser||this.Parser;return Ed("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Ed("process",this.parser||this.Parser),Ad("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=Od(e),a=n.parse(i);function l(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(a,i,function(e,t,r){if(e||!t||!r)return l(e);const o=t,i=n.stringify(o,r);var a;"string"==typeof(a=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(a)?r.value=i:r.result=i,l(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),Ed("processSync",this.parser||this.Parser),Ad("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,ld(e),t=r}),Nd("processSync","process",n),t}run(e,t,n){jd(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const a=Od(t);r.run(e,a,function(t,r,a){const l=r||e;t?i(t):o?o(l):n(void 0,l,a)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){ld(e),n=t,r=!0}),Nd("runSync","run",r),n}stringify(e,t){this.freeze();const n=Od(t),r=this.compiler||this.Compiler;return Ad("stringify",r),jd(e),r(e,n)}use(t,...n){const r=this.attachers,o=this.namespace;if(Td("use",this.frozen),null==t);else if("function"==typeof t)s(t,n);else{if("object"!=typeof t)throw new TypeError("Expected usable value, not `"+t+"`");Array.isArray(t)?l(t):a(t)}return this;function i(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else a(e)}}function a(t){if(!("plugins"in t)&&!("settings"in t))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(t.plugins),t.settings&&(o.settings=e()(!0,o.settings,t.settings))}function l(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)i(e[t])}}function s(t,n){let o=-1,i=-1;for(;++o<r.length;)if(r[o][0]===t){i=o;break}if(-1===i)r.push([t,...n]);else if(n.length>0){let[o,...a]=n;const l=r[i][1];sd(l)&&sd(o)&&(o=e()(!0,l,o)),r[i]=[t,o,...a]}}}}const Cd=(new _d).freeze();function Ed(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Ad(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Td(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function jd(e){if(!sd(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Nd(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Od(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new gd(e)}const Pd=[],Id={allowDangerousHtml:!0},Ld=/^(https?|ircs?|mailto|xmpp)$/i,zd=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Md(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,i=e.components,l=e.disallowedElements,s=e.rehypePlugins||Pd,c=e.remarkPlugins||Pd,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Id}:Id,d=e.skipHtml,f=e.unwrapDisallowed,p=e.urlTransform||Rd,h=Cd().use(Au).use(c).use(ad,u).use(s),m=new gd;"string"==typeof r&&(m.value=r);for(const t of zd)Object.hasOwn(e,t.from)&&wl((t.from,t.to&&t.to,t.id));const y=h.parse(m);let b=h.runSync(y,m);return o&&(b={type:"element",tagName:"div",properties:{className:o},children:"root"===b.type?b.children:[b]}),Qu(b,function(e,r,o){if("raw"===e.type&&o&&"number"==typeof r)return d?o.children.splice(r,1):o.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in Is)if(Object.hasOwn(Is,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Is[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=p(String(n||""),t,e))}}if("element"===e.type){let i=t?!t.includes(e.tagName):!!l&&l.includes(e.tagName);if(!i&&n&&"number"==typeof r&&(i=!n(e,r,o)),i&&o&&"number"==typeof r)return f&&e.children?o.children.splice(r,1,...e.children):o.children.splice(r,1),r}}),function(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return function(n,r,o,i){const a=Array.isArray(o.children),l=cs(n);return t(r,o,i,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");o=t.jsx,i=t.jsxs,r=function(e,t,n,r){const a=Array.isArray(n.children)?i:o;return r?a(t,n,r):a(t,n)}}var o,i;const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?es:Zl,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},l=Ss(a,e,void 0);return l&&"string"!=typeof l?l:a.create(e,a.Fragment,{children:l||void 0},void 0)}(b,{Fragment:a().Fragment,components:i,ignoreInvalidStyle:!0,jsx:a().jsx,jsxs:a().jsxs,passKeys:!0,passNode:!0})}function Rd(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t<0||o>-1&&t>o||n>-1&&t>n||r>-1&&t>r||Ld.test(e.slice(0,t))?e:""}var Dd=function(){return Dd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Dd.apply(this,arguments)},Fd=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Bd=function(e){var t=e.href,n=e.children,r=Fd(e,["href","children"]);return(null==t?void 0:t.startsWith("#"))?(0,a().jsx)("a",Dd({href:t,onClick:function(e){return function(e,t){e.preventDefault();var n=t.substring(1),r=document.getElementById(n);r&&r.scrollIntoView({behavior:"smooth"})}(e,t)}},r,{children:n})):(0,a().jsx)("a",Dd({href:t,target:"_blank",rel:"noopener noreferrer"},r,{children:n}))},qd=function(e){return"string"!=typeof e?"":e.toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-")},Ud=function(e){return l().Children.toArray(e).map(function(e){return"string"==typeof e?e:"object"==typeof e&&"props"in e&&e.props.children?"string"==typeof e.props.children?e.props.children:Ud(e.props.children):""}).join("")},Wd=function(e){var t=e.children,n=Fd(e,["children"]),r=Ud(t),o=qd(r);return(0,a().jsx)("h1",Dd({id:o},n,{children:t}))},Vd=function(e){var t=e.children,n=Fd(e,["children"]),r=Ud(t),o=qd(r);return(0,a().jsx)("h2",Dd({id:o},n,{children:t}))},Qd=function(e){var t=e.children,n=Fd(e,["children"]),r=Ud(t),o=qd(r);return(0,a().jsx)("h3",Dd({id:o},n,{children:t}))},Hd=function(e){var t=e.children,n=Fd(e,["children"]),r=Ud(t),o=qd(r);return(0,a().jsx)("h4",Dd({id:o},n,{children:t}))},Kd=function(e){var t=e.children,n=Fd(e,["children"]),r=Ud(t),o=qd(r);return(0,a().jsx)("h5",Dd({id:o},n,{children:t}))},$d=function(e){var t=e.children,n=Fd(e,["children"]),r=Ud(t),o=qd(r);return(0,a().jsx)("h6",Dd({id:o},n,{children:t}))},Yd=function(){return Yd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Yd.apply(this,arguments)},Gd=function(){return(0,a().jsxs)("div",{className:"animate-pulse space-y-4",children:[(0,a().jsx)("div",{className:"h-24 bg-slate-200 rounded w-3/4 my-16"}),(0,a().jsx)("div",{className:"h-16 bg-slate-200 rounded w-1/2"}),(0,a().jsxs)("div",{className:"space-y-2 my-4",children:[(0,a().jsx)("div",{className:"h-12 bg-slate-200 rounded"}),(0,a().jsx)("div",{className:"h-12 bg-slate-200 rounded w-11/12"}),(0,a().jsx)("div",{className:"h-12 bg-slate-200 rounded w-4/5"}),(0,a().jsx)("div",{className:"h-12 bg-slate-200 rounded w-9/12"})]})]})};function Xd(e){e.browserName,e.osName;var t=l().lazy(function(){return n.e(65).then(()=>n(2065)).then(function(e){return{default:function(){return(0,a().jsx)(Md,{components:{a:Bd,h1:Wd,h2:Vd,h3:Qd,h4:Hd,h5:Kd,h6:$d,img:function(e){return(0,a().jsx)("img",Yd({alt:e.alt||""},e))}},children:e.default})}}})});return(0,a().jsx)("div",{className:"prose prose-sm max-w-none markdown-content",children:(0,a().jsx)(l().Suspense,{fallback:(0,a().jsx)(Gd,{}),children:(0,a().jsx)(t,{})})})}const Jd=Go("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Zd(e){var t=e.open,n=e.onOpenChange,r=e.title,o=e.children,i=(0,l().useMemo)(function(){return ll()},[]),s=function(e){n(e)};return(0,a().jsx)(ia,{isOpen:t,modalClassName:"rounded-lg max-w-[90%] max-h-[95%]",onClick:function(e){e.target===e.currentTarget&&s(!1)},children:(0,a().jsxs)("div",{className:"rounded-lg w-full h-full p-16 z-[100] bg-white overflow-y-auto relative",children:[(0,a().jsx)("button",{className:"absolute top-5 right-5 text-gray-500 hover:text-gray-800",onClick:function(){return s(!1)},"aria-label":"Close",children:(0,a().jsx)(Jd,{})}),(0,a().jsx)("div",{className:"mb-6",children:(0,a().jsx)("h2",{className:"text-2xl font-bold",children:r})}),o,(0,a().jsx)("div",{className:"my-4 mt-6",children:(0,a().jsxs)("div",{className:"flex flex-wrap items-center text-sm",children:[(0,a().jsxs)("div",{className:"flex flex-col mr-6",children:[(0,a().jsx)("span",{className:"font-bold text-base-500",children:"Browser"}),(0,a().jsx)("span",{className:"text-gray-900",children:null==i?void 0:i.name})]}),(0,a().jsxs)("div",{className:"flex flex-col mr-6",children:[(0,a().jsx)("span",{className:"font-bold text-base-500",children:"Version"}),(0,a().jsx)("span",{className:"text-gray-900",children:null==i?void 0:i.version})]}),(0,a().jsxs)("div",{className:"flex flex-col",children:[(0,a().jsx)("span",{className:"font-bold text-base-500",children:"Supported"}),(0,a().jsx)("span",{className:"text-gray-900 ".concat((null==i?void 0:i.isSupported)?"text-green-600":"text-red-600"),children:(null==i?void 0:i.isSupported)?"Yes":"No"})]})]})})]})})}function ef(e){var t=e.bgClassName,n=void 0===t?"":t,r=e.ringClassName,o=void 0===r?"":r,i=e.loaderClassName,s=void 0===i?"":i,c=e.size,u=void 0===c?"md":c;(0,l().useEffect)(function(){var e=document.createElement("style");return e.textContent="\n @keyframes spin {\n to {\n transform: rotate(360deg);\n }\n }\n ",document.head.appendChild(e),function(){document.head.removeChild(e)}},[]);var d={sm:"h-12 w-12",md:"h-16 w-16",lg:"h-20 w-20",xl:"h-24 w-24"}[u];return(0,a().jsx)("div",{className:"flex items-center justify-center pr-4 ".concat(n),children:(0,a().jsxs)("div",{className:"relative ".concat(d),children:[(0,a().jsx)("div",{className:"absolute inset-0 rounded-full border-4 border-[#0080FF] opacity-25 ".concat(o)}),(0,a().jsx)("div",{className:"absolute inset-0 rounded-full border-4 border-transparent border-t-[#0080FF] animate-[spin_1s_linear_infinite] ".concat(s)})]})})}const tf=n.p+"images/wavy-check-icon03024c5d442da3732883.svg";var nf=n(2445),rf={};rf.styleTagTransform=Z()(),rf.setAttributes=X()(),rf.insert=G()().bind(null,"head"),rf.domAPI=Y()(),rf.insertStyleElement=J()(),$()()(nf.A,rf);const of=nf.A&&nf.A.locals?nf.A.locals:void 0,af=function(e){var t=e.stepNumber,n=e.title,r=e.description,o=void 0===r?"":r,i=e.status,l=void 0===i?"pending":i;return(0,a().jsxs)("div",{className:"flex items-center gap-4",children:["completed"===l?(0,a().jsx)("img",{src:tf,className:"text-white w-20 h-20 mr-4",alt:"Wavy check icon"}):"error"===l?(0,a().jsx)(ua,{className:"text-red-500 w-20 h-20 mr-4"}):(0,a().jsx)(ef,{size:"lg"}),(0,a().jsxs)("div",{children:[(0,a().jsxs)("div",{className:"text-xs text-base-500 ".concat(of.stepNumber),children:["STEP ",t]}),(0,a().jsx)("h2",{className:"text-2xl font-bold mt-1 text-base-700",children:n}),(0,a().jsx)("p",{className:"text-sm text-base-200 italic mt-2",children:o})]})]})},lf=Go("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);var sf={screenShare:{message:"Disqualified in",time:45},cameraShare:{message:"Disqualified in",time:45},mobileCameraShare:{message:"Disqualified in",time:120},compatibilityChecks:{message:"Disqualified in",time:45},identityVerification:{message:"Disqualified in",time:45}};const cf=function(e){var t,n,r,o=e.activeStep,i=e.modalOpen,s=e.failingSteps,c=e.beepConfig,u=(0,l().useMemo)(function(){return s.length?Math.max.apply(Math,s.map(function(e){return sf[e].time})):sf[o].time},[s,o]),d=sf[o].message,f=ro(fo),p=(0,l().useState)(u),h=p[0],m=p[1],y=(0,l().useRef)(null),b=function(){y.current&&(y.current.pause(),y.current.currentTime=0)};return(0,l().useEffect)(function(){m(u)},[i,u]),(0,l().useEffect)(function(){return(null==c?void 0:c.enabled)&&c.sounds&&c.sounds[o]&&function(e){if(e&&"string"==typeof e&&""!==e.trim()){y.current&&(y.current.pause(),y.current.currentTime=0);try{y.current=new Audio(e),y.current.loop=!0,y.current.addEventListener("error",function(){}),y.current.play().catch(function(){})}catch(e){}}}(c.sounds[o]),b},[o,c]),(0,l().useEffect)(function(){if(h<=0)return null==f||f.disqualifyUser(),void b();var e=setInterval(function(){m(function(e){return e-1})},1e3);return function(){return clearInterval(e)}},[h,f]),(0,a().jsxs)("div",{className:"relative rounded-t-lg w-full text-white flex flex-row items-center justify-center",children:[(0,a().jsxs)("div",{className:"py-2 relative flex flex-row items-center uppercase font-bold text-center text-black text-sm z-40 tracking-widest",children:[d,(0,a().jsxs)("span",{className:"ml-4 inline-flex items-center gap-1 text-base font-bold",children:[(0,a().jsx)(lf,{className:"h-6 w-6 font-bold"}),(t=h,n=Math.floor(t/60),r=t%60,"".concat(n.toString().padStart(2,"0"),":").concat(r.toString().padStart(2,"0")))]})]}),(0,a().jsx)("div",{className:"absolute top-0 left-0 h-full w-full bg-[#FFEBEF] rounded-t-2xl overflow-hidden",children:(0,a().jsx)("div",{className:"h-full bg-red-700 transition-all duration-1000 ease-linear",style:{width:"".concat(100-h/u*100,"%")}})})]})};var uf,df=(uf=function(e,t){return uf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},uf(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}uf(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ff=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((r=r.apply(e,t||[])).next())})},pf=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}},hf=function(e){function t(t,n,r){void 0===r&&(r=null);var o=e.call(this,t)||this;return o.name="IdentityApiError",o.status=n,o.identity=r,o}return df(t,e),t}(Error),mf=function(e,t){return ff(void 0,[e,t],void 0,function(e,t){var n,r,o,i=t.token,a=t.method,l=void 0===a?"GET":a,s=t.body;return pf(this,function(t){switch(t.label){case 0:return[4,fetch(e,{method:l,headers:{"Content-Type":"application/json","X-Session-Token":i},body:void 0===s?void 0:JSON.stringify(s)})];case 1:return[4,(n=t.sent()).json().catch(function(){return{}})];case 2:if(r=t.sent(),!n.ok)throw new hf((null==r?void 0:r.error)||"request_failed",n.status,null!==(o=null==r?void 0:r.identity)&&void 0!==o?o:null);return[2,r]}})})},yf=function(e){return ff(void 0,[e],void 0,function(e){var t=e.baseUrl,n=e.token;return pf(this,function(e){switch(e.label){case 0:return[4,mf("".concat(t,"/api/v1/proctoring/identity/status"),{token:n})];case 1:return[2,e.sent().identity]}})})},bf=function(e){return ff(void 0,[e],void 0,function(e){var t,n,r,o,i=e.baseUrl,a=e.token,l=e.image,s=e.fileName;return pf(this,function(e){switch(e.label){case 0:return t=l.type||"image/jpeg",[4,mf("".concat(i,"/api/v1/proctoring/assets/ppd"),{token:a,method:"POST",body:{record_type:"identity",file_name:s,file_type:t}})];case 1:return n=e.sent().signed_s3_post,(r=new FormData).append("key",n.key),r.append("acl",n.acl),r.append("x-amz-algorithm",n.x_amz_algorithm),r.append("x-amz-credential",n.x_amz_credential),r.append("x-amz-date",n.x_amz_date),r.append("x-amz-signature",n.x_amz_signature),r.append("policy",n.policy),r.append("Content-Type",t),r.append("file",l,s),[4,fetch("https://".concat(n.bucket_name,".").concat(n.s3_region_endpoint,"/"),{method:"POST",body:r})];case 2:if(!(o=e.sent()).ok)throw new hf("upload_failed",o.status);return[2]}})})},gf=function(e){return ff(void 0,[e],void 0,function(e){var t=e.baseUrl,n=e.token,r=e.fileName,o=e.idempotencyKey,i=e.signals;return pf(this,function(e){switch(e.label){case 0:return[4,mf("".concat(t,"/api/v1/proctoring/identity/verifications"),{token:n,method:"POST",body:{file_name:r,idempotency_key:o,signals:i}})];case 1:return[2,e.sent().identity]}})})},vf=function(e){return ff(void 0,[e],void 0,function(e){var t,n,r=e.baseUrl,o=e.token,i=e.image,a=e.now,l=void 0===a?Date.now():a,s=e.idempotencyKey,c=void 0===s?function(){var e,t,n;return null!==(n=null===(t=null===(e=globalThis.crypto)||void 0===e?void 0:e.randomUUID)||void 0===t?void 0:t.call(e))&&void 0!==n?n:"".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2))}():s,u=e.signals;return pf(this,function(e){switch(e.label){case 0:return t="identity_".concat(l,".jpeg"),[4,bf({baseUrl:r,token:o,image:i,fileName:t})];case 1:e.sent(),e.label=2;case 2:return e.trys.push([2,4,,5]),[4,gf({baseUrl:r,token:o,fileName:t,idempotencyKey:c,signals:u})];case 3:return[2,e.sent()];case 4:if((n=e.sent())instanceof hf&&n.identity)return[2,n.identity];throw n;case 5:return[2]}})})},wf=function(e){return ff(void 0,[e],void 0,function(e){var t,n=e.baseUrl,r=e.token,o=e.signals;return pf(this,function(e){switch(e.label){case 0:return[4,mf("".concat(n,"/api/v1/proctoring/identity/liveness/nonce"),{token:r,method:"POST",body:{signals:o}})];case 1:return[2,{nonce:(t=e.sent()).nonce,livenessUrl:t.liveness_url}]}})})},xf=function(e){return ff(void 0,[e],void 0,function(e){var t=e.baseUrl,n=e.token,r=e.version;return pf(this,function(e){switch(e.label){case 0:return[4,mf("".concat(t,"/api/v1/proctoring/identity/consent"),{token:n,method:"POST",body:{version:r}})];case 1:return[2,e.sent().identity]}})})},kf=function(e){return ff(void 0,[e],void 0,function(e){var t=e.baseUrl,n=e.token,r=e.signals;return pf(this,function(e){switch(e.label){case 0:return[4,mf("".concat(t,"/api/v1/proctoring/identity/camera_signals"),{token:n,method:"POST",body:{signals:r}})];case 1:return e.sent(),[2]}})})},Sf=function(){return Sf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Sf.apply(this,arguments)},_f="Let us check if it is really you",Cf="We will do a short live video check to make sure you are really there, then match your face with the photo on your Scaler record. This takes about 20 seconds.",Ef="Follow the instructions on your screen and keep your face in the oval until it finishes.",Af="Your scan is kept securely for exam records and deleted after 90 days.",Tf="I agree to a face check.",jf="You need to agree to the face check to take this test. If you have questions, contact support.",Nf=["Sit in a well-lit place, facing the light.","Turn your screen brightness up.","Keep your face inside the oval and hold still until it finishes."],Of="The screen flashes different colours during the check. Take care if you are sensitive to flashing light.",Pf="I confirm that I am the person taking this test. If this is not true, the exam team can cancel my test.",If="A short live check: keep your face in the oval while the screen changes colour.",Lf=function(e){return Boolean(null==e?void 0:e.startsWith("liveness_"))&&"liveness_no_frame"!==e},zf=function(e){return"mismatch"===e||"attempts_exhausted"===e},Mf=function(e){if(zf(e))return"Face verification failed. Please try again in better light.";if(Lf(e))return"We could not confirm you are really there. Please follow the instructions on screen.";var t=yo(e);return t===yo(null)?"Your face was not fully visible. Please try again.":t},Rf=function(e){return zf(e)?{body:"Your photo did not match the photo we have for you.",tip:"Sit where there is more light. Turn towards the light. Keep your whole face in the oval."}:Lf(e)?{body:"We could not confirm a live person in front of the camera.",tip:"Keep your face in the oval and hold still while the screen changes colour. Do not use a photo or a screen."}:{body:"We could not see your face clearly.",tip:"Face the camera in good light and keep your whole face in the oval."}},Df=function(e,t){var n=null==t?void 0:t.max_attempts;return n&&"number"==typeof e.attempts_remaining?{attemptsUsed:Math.max(n-e.attempts_remaining,0),attemptsLeft:e.attempts_remaining}:{attemptsUsed:null,attemptsLeft:null}},Ff=function(e,t){return void 0===t&&(t={}),Sf({state:e,tone:"pending",title:"",body:"",banner:"",tip:"",bullets:[],attemptsUsed:null,attemptsLeft:null,referenceId:null,canRetry:!1,canProceed:!1},t)},Bf=function(e,t){var n,r,o;if(!e)return Ff("loading");if("not_required"===e.status||"skipped"===e.status)return Ff("skip",{tone:"completed",title:"Identity verification not needed",canProceed:!0});if("manually_verified"===e.status)return Ff("manually_verified",{tone:"completed",title:"Your identity was confirmed by the exam team",body:"A member of the exam team checked that it is you, so you can continue to the next step.",canProceed:!0});if((null===(n=e.consent)||void 0===n?void 0:n.required)&&!e.consent.given)return Ff("consent",{title:_f,body:Cf});switch(e.status){case"pending":return Ff("analysing",{title:"Checking that it is you…"});case"verified":return Ff("verified",{tone:"completed",title:"Face scan complete",body:"Your face matches the photo on your record.",canProceed:!0});case"captured":return Ff("captured",{tone:"completed",title:"Face scan complete",body:"Your check is recorded. It will be matched with your Scaler record once your photo is on file.",canProceed:!0});case"retry":return Ff("attempt_failed",Sf(Sf(Sf(Sf({tone:"error",title:"Face verification failed"},Rf(e.reason)),{banner:Mf(e.reason)}),Df(e,t)),{canRetry:!0,canProceed:e.allowed}));case"failed":return e.allowed?Ff("attempt_failed",Sf(Sf({tone:"error",title:"Face verification failed"},Rf(e.reason)),{banner:Mf(e.reason),canProceed:!0})):Ff("blocked",{tone:"error",title:"We could not verify you",body:"You cannot start the test now. Please contact support.",banner:"We could not check it is you. You have no attempts left.",bullets:["Contact support and quote your reference ID","Do not open the test again. Your attempts do not reset"],referenceId:null!==(r=e.reference_id)&&void 0!==r?r:null});case"blocked":return Ff("blocked",{tone:"error",title:"We could not verify you",body:"There is no photo on your Scaler record to match. Please contact support.",banner:"We could not check it is you.",bullets:["Contact support and quote your reference ID"],referenceId:null!==(o=e.reference_id)&&void 0!==o?o:null});case"engine_error":return Ff("service_error",Sf(Sf({title:"The face check is not working",body:"This is not your mistake. You did not use an attempt. Please try again in a minute.",banner:"The check is not working right now."},Df(e,t)),{canRetry:!0,canProceed:e.allowed}));default:return Ff("capture",{title:_f,canProceed:e.allowed})}},qf=[/\bobs\b/i,/manycam/i,/snap camera/i,/xsplit/i,/camtwist/i,/splitcam/i,/e2esoft/i,/\bvirtual\b/i],Uf=function(e){return Boolean(e)&&qf.some(function(t){return t.test(e)})},Wf=function(e,t){return void 0===t&&(t=navigator),{camera_label:null!=e?e:"",virtual_camera:Uf(e),webdriver:!0===t.webdriver,headless:/HeadlessChrome/.test(t.userAgent)}};const Vf=Go("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),Qf=Go("CloudOff",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5.782 5.782A7 7 0 0 0 9 19h8.5a4.5 4.5 0 0 0 1.307-.193",key:"yfwify"}],["path",{d:"M21.532 16.5A4.5 4.5 0 0 0 17.5 10h-1.79A7.008 7.008 0 0 0 10 5.07",key:"jlfiyv"}]]);var Hf=function(e,t){return"".concat(e,"/identity-media/").concat(t)},Kf=function(e){var t=e.banner,n=e.children;return(0,a().jsxs)("div",{className:"w-full overflow-hidden rounded-2xl border border-gray-200 bg-white shadow-[0px_2px_14px_0px_rgba(16,24,40,0.05)]",children:[t&&(0,a().jsxs)("div",{className:"flex min-h-[4.6rem] items-center justify-center gap-2 bg-red-100 px-6 py-3 text-center text-base font-semibold text-red-500",children:[(0,a().jsx)(ua,{className:"h-[1.8rem] w-[1.8rem] shrink-0"}),t]}),(0,a().jsx)("div",{className:"px-10 pb-10 pt-8",children:n})]})},$f=function(e){var t=e.children;return(0,a().jsx)("div",{className:"grid grid-cols-2 gap-6",children:t})},Yf=function(e){var t=e.children;return(0,a().jsx)("div",{className:"grid grid-cols-[34rem_1fr] items-center gap-12",children:t})},Gf={searching:"border-dashed border-gray-400",framed:"border-scaler-500",done:"border-green-600",failed:"border-red-500"},Xf=function(e){var t=e.ring,n=e.pill,r=e.pillTone,o=void 0===r?"neutral":r,i=e.live,l=void 0!==i&&i,s=e.children;return(0,a().jsxs)("div",{className:"relative aspect-[4/3] w-full overflow-hidden rounded-lg bg-[#141A24]",children:[s,(0,a().jsx)("div",{className:"pointer-events-none absolute left-1/2 top-[47%] aspect-[3/4] h-[78%] -translate-x-1/2 -translate-y-1/2 rounded-[50%] border-4 shadow-[0_0_0_9999px_rgba(11,27,58,0.55)] ".concat(Gf[t])}),l&&(0,a().jsxs)("span",{className:"absolute right-4 top-4 flex items-center gap-2 rounded-full bg-[rgba(11,27,58,0.82)] px-3 py-1 text-xs font-bold text-white",children:[(0,a().jsx)("span",{className:"h-2 w-2 rounded-full bg-green-500"}),"Your camera"]}),n&&(0,a().jsx)("span",{className:"absolute bottom-4 left-1/2 max-w-[88%] -translate-x-1/2 rounded-full px-4 py-2 text-center text-sm font-bold text-white ".concat("error"===o?"bg-red-500/90":"bg-[rgba(11,27,58,0.82)]"),children:n})]})},Jf=function(e){var t=e.spinner,n=void 0===t||t,r=e.children;return(0,a().jsxs)("div",{className:"flex h-full min-h-[15rem] flex-col items-center justify-center gap-4 rounded-2xl bg-gray-100 p-6 text-center",children:[n&&(0,a().jsx)(Vf,{className:"h-10 w-10 animate-spin text-scaler-500"}),(0,a().jsx)("span",{className:"max-w-[34ch] text-base text-base-500",children:r})]})},Zf=function(e){var t=e.rows;return(0,a().jsx)("ul",{className:"mt-5 overflow-hidden rounded-xl border border-gray-200",children:t.map(function(e){return(0,a().jsxs)("li",{className:"flex min-h-[7.2rem] items-center gap-5 border-b border-gray-200 px-6 py-3 last:border-b-0",children:[(0,a().jsx)(ni,{className:"h-[2.2rem] w-[2.2rem] shrink-0 text-white fill-green-600"}),(0,a().jsx)("span",{className:"text-base text-base-700",children:e})]},e)})})},ep=function(e){var t=e.title,n=e.sub,r=e.done,o=void 0!==r&&r;return(0,a().jsxs)("div",{className:"flex items-start gap-3",children:[o&&(0,a().jsx)(ni,{className:"mt-1 h-[2rem] w-[2rem] shrink-0 text-white fill-green-600"}),(0,a().jsxs)("div",{children:[(0,a().jsx)("h3",{className:"text-xl font-bold text-base-700",children:t}),n&&(0,a().jsx)("p",{className:"mt-2 text-base leading-relaxed text-base-500",children:n})]})]})},tp=function(e){var t=e.label,n=e.value;return(0,a().jsxs)("div",{className:"mt-6 flex items-center justify-between rounded-md bg-gray-50 px-5 py-3 text-base text-base-500",children:[(0,a().jsx)("span",{children:t}),null!=n&&(0,a().jsx)("span",{className:"font-bold text-base-700",children:n})]})},np=function(e){var t=e.onOpen;return(0,a().jsxs)("p",{className:"mt-4 flex items-center gap-2 text-base font-bold text-base-700",children:[(0,a().jsx)(ya,{className:"h-[1.8rem] w-[1.8rem] shrink-0"}),(0,a().jsx)("button",{type:"button",className:"text-scaler-500 underline underline-offset-2",onClick:t,children:"See how the face verification works"})]})},rp=function(e){var t=e.tip,n=e.onOpenGuide;return(0,a().jsxs)("div",{className:"mt-5 rounded-md bg-gray-50 px-5 py-4 text-base leading-relaxed text-base-700",children:[(0,a().jsx)("b",{children:"What to do"}),(0,a().jsx)("br",{}),t,(0,a().jsx)(np,{onOpen:n})]})},op=function(e){var t=e.tone,n=e.baseUrl,r={info:"bg-scaler-100",success:"bg-green-50",error:"bg-red-100",neutral:"bg-gray-100"}[t];return(0,a().jsx)("div",{className:"flex items-center justify-center rounded-lg p-8 ".concat(r),children:(0,a().jsxs)("div",{className:"relative rounded-lg bg-white p-4",children:[(0,a().jsx)("img",{src:Hf(n,"illus-hero.jpg"),alt:"",className:"block h-auto w-full max-w-[26rem] rounded-md"}),"success"===t&&(0,a().jsx)(ni,{className:"absolute bottom-3 right-3 h-12 w-12 rounded-full bg-white text-white fill-green-600"}),"error"===t&&(0,a().jsx)(ua,{className:"absolute bottom-3 right-3 h-12 w-12 rounded-md bg-white p-1 text-red-500"}),"neutral"===t&&(0,a().jsx)(Qf,{className:"absolute bottom-3 right-3 h-12 w-12 rounded-md bg-white p-1 text-gray-500"})]})})},ip=function(e){var t=e.onOpen;return(0,a().jsxs)("p",{className:"mt-6 text-center text-sm font-semibold text-base-500",children:[(0,a().jsx)(ya,{className:"mb-1 mr-2 inline-block h-6 w-6"}),"Need help?"," ",(0,a().jsx)("button",{type:"button",className:"text-scaler-500 underline",onClick:t,children:"Click to view"})," ","face verification guide"]})};const ap=function(e){var t=e.baseUrl,n=e.livenessOn,r=e.onOpenGuide;return(0,a().jsx)(Kf,{children:(0,a().jsxs)(Yf,{children:[(0,a().jsx)(op,{tone:"info",baseUrl:t}),(0,a().jsxs)("div",{children:[(0,a().jsx)("h3",{className:"text-xl font-bold text-base-700",children:_f}),(0,a().jsx)("p",{className:"mt-3 text-base leading-relaxed text-base-500",children:Cf}),n?(0,a().jsxs)(a().Fragment,{children:[(0,a().jsx)("ul",{className:"mt-3 list-disc space-y-1 pl-5 text-base leading-relaxed text-base-500",children:Nf.map(function(e){return(0,a().jsx)("li",{children:e},e)})}),(0,a().jsxs)("p",{className:"mt-4 flex items-start gap-2 rounded-md bg-scaler-100 px-4 py-3 text-sm text-base-700",children:[(0,a().jsx)(ua,{className:"mt-0.5 h-[1.6rem] w-[1.6rem] shrink-0 text-scaler-500"}),Of]})]}):(0,a().jsx)("p",{className:"mt-3 text-base leading-relaxed text-base-500",children:Ef}),(0,a().jsx)(tp,{label:Af}),(0,a().jsx)(np,{onOpen:r})]})]})})},lp=function(e){var t=e.url,n=e.nonce,r=e.traceparent,o=e.onDone,i=e.className,s=void 0===i?"mt-8 w-full max-w-2xl h-[640px]":i,c=(0,l().useRef)(null),u=new URL(t).origin;return(0,l().useEffect)(function(){var e=function(e){var t,i,a;if(e.origin===u&&e.source===(null===(t=c.current)||void 0===t?void 0:t.contentWindow)){var l=e.data||{};"proctoring-liveness"===l.source&&1===l.version&&("ready"===l.type?null===(a=null===(i=c.current)||void 0===i?void 0:i.contentWindow)||void 0===a||a.postMessage({type:"start",version:1,nonce:n,traceparent:null!=r?r:void 0},u):"complete"===l.type?o({type:"complete"}):"error"===l.type?o({type:"error",code:String(l.code||"liveness_error"),message:l.message?String(l.message):void 0}):"close"===l.type&&o({type:"close"}))}};return window.addEventListener("message",e),function(){return window.removeEventListener("message",e)}},[u,n,r,o]),(0,a().jsx)("iframe",{ref:c,src:t,title:"Liveness check",allow:"camera",className:"".concat(s," rounded-lg border border-base-200 bg-white")})},sp=function(e){var t=e.baseUrl,n=e.isOpen,r=e.onClose;return(0,a().jsxs)(ia,{isOpen:n,modalClassName:"relative w-full max-w-xl p-8",children:[(0,a().jsx)("button",{type:"button","aria-label":"Close",className:"absolute top-4 right-4 text-base-500",onClick:r,children:(0,a().jsx)(Jd,{className:"w-6 h-6"})}),(0,a().jsx)("h3",{className:"text-xl font-bold text-base-700",children:"How to position your face"}),(0,a().jsx)("p",{className:"mt-2 text-base text-base-500",children:"Follow the steps shown. Make sure your face is centred, well lit, and fully visible."}),(0,a().jsx)("video",{className:"mt-6 w-full rounded-lg",src:Hf(t,"positioning-reference.mp4"),poster:Hf(t,"positioning-reference.jpg"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0}),(0,a().jsx)(Pa,{variant:"primary",size:"lg",className:"mt-6 w-full",onClick:r,children:"Start face scan"})]})};var cp=function(){return cp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},cp.apply(this,arguments)},up=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((r=r.apply(e,t||[])).next())})},dp=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}},fp=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},pp="identityVerification",hp=function(e){return new Promise(function(t,n){var r,o=document.createElement("canvas");o.width=e.videoWidth,o.height=e.videoHeight,null===(r=o.getContext("2d"))||void 0===r||r.drawImage(e,0,0,o.width,o.height),o.toBlob(function(e){return e?t(e):n(new Error("capture_failed"))},"image/jpeg",.9)})};const mp=function(e){var t=e.isOpen,n=e.onClose,r=e.onProceed;return l().createElement(ia,{containerClassName:"rounded-2xl",isOpen:t,modalClassName:"p-12 flex flex-col max-w-[700px] relative"},l().createElement("heading",{className:"text-2xl mb-1 font-bold"},"Mobile Camera Positioning Reference"),l().createElement("article",{className:"text-gray-500 text-sm/7 mb-4"},"Please watch the video and follow the steps to position your mobile correctly. Make sure your head, hands and workspace are clearly visible as shown"),l().createElement("div",{className:"relative w-full aspect-video rounded-lg overflow-hidden bg-gray-100 my-9"},l().createElement("video",{className:"w-full h-full object-cover",controls:!1,autoPlay:!0,loop:!0,playsInline:!0},l().createElement("source",{src:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/105/009/original/DCP_flow_segment.mp4",type:"video/mp4"}),"Your browser does not support the video tag.")),l().createElement("div",{className:"flex-row"},l().createElement(Pa,{type:"button",className:"mt-8 items-center py-8 px-10",variant:"primary",onClick:r},"Proceed to Camera Alignment")),l().createElement("button",{className:"absolute top-5 right-5 text-gray-500 hover:text-gray-800",onClick:n,"aria-label":"Close"},l().createElement(Jd,null)))};var yp={tabSwitch:"tabSwitch",browserBlur:"browserBlur",rightClick:"rightClick",exitTab:"exitTab",copyPasteCut:"copyPasteCut",restrictedKeyEvent:"restrictedKeyEvent",textSelection:"textSelection",fullScreen:"fullScreen",ctrlShiftI:"ctrlShiftI",ctrlShiftC:"ctrlShiftC",altTab:"altTab",ctrlQ:"ctrlQ",ctrlW:"ctrlW",cmdM:"cmdM",cmdH:"cmdH",cmdW:"cmdW",cmdQ:"cmdQ",ctrlShiftJ:"ctrlShiftJ",screenshareExit:"screenshareExit"},bp={width:480,height:360},gp={width:480,height:270},vp="failed",wp={pairing:"codeScan",orientation:"cameraPairing",mobileCompatibility:"systemChecks"},xp=n(6942),kp=n.n(xp),Sp=n(8807),_p={};_p.styleTagTransform=Z()(),_p.setAttributes=X()(),_p.insert=G()().bind(null,"head"),_p.domAPI=Y()(),_p.insertStyleElement=J()(),$()()(Sp.A,_p);const Cp=Sp.A&&Sp.A.locals?Sp.A.locals:void 0;function Ep(e){return Ep="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ep(e)}const Ap=function(e){var t,n,r,o,i=e.children,a=e.activeTab,s=e.onTabChange,c=e.className;return l().createElement("div",{className:kp()(Cp.tabs,(n={},r=c,o=c,(r=function(e){var t=function(e){if("object"!=Ep(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ep(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ep(t)?t:t+""}(r))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},l().createElement("div",{className:Cp.tabList},l().Children.map(i,function(e){return l().cloneElement(e,{isActive:a===e.props.name,onClick:function(){return t=e.props.name,void(s&&s(t));var t}})})),l().createElement("div",{className:Cp.tabContent},null===(t=l().Children.toArray(i).find(function(e){return e.props.name===a}))||void 0===t?void 0:t.props.children))},Tp=function(e){var t=e.name,n=e.label,r=e.isActive,o=e.onClick,i=e.isDisabled,a=e.isCompleted,s=r?Cp.active:Cp.inactive;return l().createElement("div",{name:t,className:"".concat(Cp.tab," ").concat(s),onClick:i?null:o},a&&l().createElement(ni,{className:"mr-2"}),n)};var jp=n(1243),Np={};Np.styleTagTransform=Z()(),Np.setAttributes=X()(),Np.insert=G()().bind(null,"head"),Np.domAPI=Y()(),Np.insertStyleElement=J()(),$()()(jp.A,Np);const Op=jp.A&&jp.A.locals?jp.A.locals:void 0,Pp=function(e){var t,n=e.onSetupSuccess,r=e.onSetupFailure,o=e.onBatteryLow,i=e.onBatteryNormal,a=e.onSnapshotSuccess,s=e.onSnapshotFailure,c=e.onDataUpdate,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3,d=I(function(e){return fo(e)}),f=(null==d||null===(t=d.mobilePairingConfig)||void 0===t?void 0:t.endpoint)||null,p=Xr({endpoint:f},{pollingInterval:u,selectFromResult:function(e){return{data:e.data}}}).data,h=(0,l().useRef)({onSetupSuccess:n,onSetupFailure:r,onBatteryLow:o,onBatteryNormal:i,onSnapshotSuccess:a,onSnapshotFailure:s,onDataUpdate:c});(0,l().useEffect)(function(){h.current={onSetupSuccess:n,onSetupFailure:r,onBatteryLow:o,onBatteryNormal:i,onSnapshotSuccess:a,onSnapshotFailure:s,onDataUpdate:c}},[n,r,o,i,a,s,c]),(0,l().useEffect)(function(){var e,t,n;if(p){null===(e=(t=h.current).onDataUpdate)||void 0===e||e.call(t,p);var r=(null===(n=p.checks)||void 0===n?void 0:n.secondary_camera.checks)||{};Object.keys(r).forEach(function(e){var t,n,o,i,a,l,s=r[e],c=h.current;switch(e){case"setup":null!=s&&s.success?null===(t=c.onSetupSuccess)||void 0===t||t.call(c,s):null===(n=c.onSetupFailure)||void 0===n||n.call(c,s);break;case"snapshot":null!=s&&s.success?null===(o=c.onSnapshotSuccess)||void 0===o||o.call(c,s):null===(i=c.onSnapshotFailure)||void 0===i||i.call(c,s);break;case"battery":null!=s&&s.success?null===(a=c.onBatteryNormal)||void 0===a||a.call(c,s,p):null===(l=c.onBatteryLow)||void 0===l||l.call(c,s,p)}})}},[p])},Ip=n.p+"images/red-warning894fb29d3808283a4d16.svg";function Lp(e){return Lp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lp(e)}function zp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Mp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zp(Object(n),!0).forEach(function(t){Rp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rp(e,t,n){return(t=function(e){var t=function(e){if("object"!=Lp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Lp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Lp(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Fp={battery:{default:{title:"Battery Check in progress...",description:"Checking your battery level to ensure the session isn't interrupted"},success:{title:"Battery Check successfully done",description:"Battery level looks good. You're ready to go"},failed:{title:"Battery Check",description:"Connect the phone to a charger or use a different phone"},alert:"Your battery is very low. Less than 10%. Please charge your phone to avoid any interruption"}},Bp={battery:"default"};const qp=function(e){var t,n,r=e.className,o=(t=(0,l().useState)(Bp),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Dp(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dp(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1],s=no(),c=(0,l().useCallback)(function(){"default"===i.battery&&a({battery:"failed"})},[i]);(0,l().useEffect)(function(){var e;return e=setTimeout(function(){c()},1e4),function(){e&&clearTimeout(e)}},[c]);var u=(0,l().useCallback)(function(){s(To({step:"mobileCameraShare",subStep:"systemChecks",status:"pending"}))},[s]),d=(0,l().useCallback)(function(){a({battery:"success"}),s(To({step:"mobileCameraShare",subStep:"systemChecks",status:"completed"}))},[s]),f=(0,l().useCallback)(function(e){e.success&&console.log("Update status to completed")},[]);return Pp({onBatteryLow:u,onBatteryNormal:d,onDataUpdate:f}),l().createElement("div",{className:kp()("flex flex-col justify-between",Rp({},r,r))},l().createElement("section",null,Object.keys(i).map(function(e){var t,n,r,o,a=i[e],s=null==Fp||null===(t=Fp[e])||void 0===t?void 0:t[a];if(s)switch(a){case"success":return r=(n=Mp({},s)).title,o=n.description,l().createElement("section",{className:"flex flex-row"},l().createElement(ni,{className:"w-12 h-12 text-white fill-green-600"}),l().createElement("section",{className:"flex flex-col ml-6"},l().createElement("heading",{className:Op.compatibilityTitle},r),l().createElement("p",{className:Op.compatibilityBody},o)));case vp:return function(e){var t=e.title,n=e.description;return l().createElement("section",{className:"flex flex-row items-start"},l().createElement("img",{className:Op.compatibilityWarningIcon,src:Ip,alt:"red-warning"}),l().createElement("section",{className:"flex flex-col ml-6"},l().createElement("heading",{className:Op.compatibilityTitle},t),l().createElement("p",{className:Op.compatibilityBody},n)))}(Mp({},s));default:return function(e){var t=e.title,n=e.description;return l().createElement("section",{className:"flex flex-row items-start"},l().createElement(Vf,{className:"w-12 h-12 text-scaler-500 animate-spin"}),l().createElement("section",{className:"flex flex-col ml-6"},l().createElement("heading",{className:Op.compatibilityTitle},t),l().createElement("p",{className:Op.compatibilityBody},n)))}(Mp({},s))}return null})),i.battery===vp&&l().createElement("section",{className:Op.compatibilityAlert},l().createElement("b",null,"Your battery is very low. "),l().createElement("i",null,"Less than 10%. Please charge your phone to avoid any interruption.")))};function Up(e){var t=e.setSwitchModalOpen;return l().createElement("div",{className:"bg-white flex flex-col items-center"},l().createElement("div",{className:"text-red-500 mb-4"},l().createElement(ua,{className:"w-16 h-16"})),l().createElement("h1",{className:"text-3xl font-bold mb-10"},"Mobile Phone Disconnected"),l().createElement("div",{className:"w-full mb-8"},l().createElement("h2",{className:"text-xs font-semibold mb-4"},"Please check the following cases :"),l().createElement("div",{className:"border border-dashed border-gray-200 rounded-lg p-6"},l().createElement("div",{className:"max-h-60 overflow-y-auto"},l().createElement("div",{className:"grid grid-cols-2 gap-4"},["Browser/tab closed","Network disconnected","Mobile Screen locked","Low Power Mode","Mobile accidentally switched off","Incoming calls","Mobile rendered unusable - overheated due to high system usage","Using another application increasing the RAM usage"].map(function(e,t){return l().createElement("div",{key:t,className:"flex items-center gap-2"},l().createElement("div",{className:"flex-shrink-0 w-6 h-6 rounded-full bg-gray-100 flex items-center justify-center"},l().createElement(ca,{className:"w-4 h-4 text-gray-500"})),l().createElement("span",{className:"text-gray-600 text-sm"},e))}))))),l().createElement("p",{className:"text-gray-600 mb-8"},"Please scan the QR code again to proceed to the next step."),l().createElement(Pa,{onClick:function(){return t(!0)},className:"w-full max-w-2xl bg-scaler-500 hover:bg-blue-600 text-white py-6 rounded-lg text-lg font-medium"},"Scan QR Code Again",l().createElement(ba,{className:"ml-2 h-5 w-5"})))}const Wp=Go("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Vp=Go("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);function Qp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Hp=function(e){var t,n,r=e.items,o=e.interval,i=void 0===o?5e3:o,a=(t=(0,l().useState)(0),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Qp(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qp(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=a[0],c=a[1],u=(0,l().useCallback)(function(){c(function(e){return(e+1)%r.length})},[r.length]),d=(0,l().useCallback)(function(){c(function(e){return(e-1+r.length)%r.length})},[r.length]);return(0,l().useEffect)(function(){var e=setInterval(function(){u()},i);return function(){return clearInterval(e)}},[u,i]),l().createElement("div",{className:"relative w-full max-w-3xl mx-auto"},l().createElement("div",{className:"mb-4"},l().createElement("h2",{className:"text-xs font-bold text-center"},r[s].text)),l().createElement("div",{className:"relative w-full overflow-hidden rounded-xl",style:{aspectRatio:"4 / 3"}},l().createElement("div",{className:"absolute inset-0 flex items-center justify-center"},r.map(function(e,t){return l().createElement("div",{key:t,className:"absolute w-full h-full transition-opacity duration-500 ease-in-out ".concat(t===s?"opacity-100":"opacity-0")},l().createElement("div",{className:"w-full h-full rounded-xl overflow-hidden"},l().createElement("img",{src:e.image,alt:e.text,className:"w-full h-full object-contain"})))})),l().createElement("button",{onClick:d,className:"absolute left-4 top-1/2 -translate-y-1/2 bg-white bg-opacity-50 text-gray-800 p-2 rounded-full hover:bg-opacity-75 transition-all z-10","aria-label":"Previous slide",type:"button"},l().createElement(Wp,{size:24})),l().createElement("button",{onClick:u,className:"absolute right-4 top-1/2 -translate-y-1/2 bg-white bg-opacity-50 text-gray-800 p-2 rounded-full hover:bg-opacity-75 transition-all z-10","aria-label":"Next slide",type:"button"},l().createElement(Vp,{size:24}))),l().createElement("div",{className:"absolute -bottom-6 left-1/2 transform -translate-x-1/2 flex space-x-2"},r.map(function(e,t){return l().createElement("button",{key:t,onClick:function(){return c(t)},className:"w-2 h-2 rounded-full transition-all ".concat(t===s?"bg-primary":"bg-primary/20"),"aria-label":"Go to slide ".concat(t+1)})})))},Kp=function(e){var t=e.value,n=void 0===t?0:t,r=e.className,o=void 0===r?"":r,i=Math.min(100,Math.max(0,n));return l().createElement("div",{className:"w-full h-6 bg-gray-200 rounded-full overflow-hidden ".concat(o)},l().createElement("div",{className:"h-full bg-green-500 transition-all duration-1000 ease-in-out flex items-center justify-center text-white text-sm font-medium",style:{width:"".concat(i,"%")}},i>0?"".concat(i,"%"):""))},$p=Go("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);var Yp=n(128),Gp=n.n(Yp),Xp=n(4058),Jp=n.n(Xp),Zp=function(e){return Gp()(Jp()(e))};const eh=function(e){var t=e.status,n=e.title,r=e.description,o=e.icon,i=e.error,s=e.extraUi,c=(0,l().useState)(!0),u=c[0],d=c[1];return(0,a().jsxs)("div",{className:Yi("flex items-center justify-between w-full p-8 px-12 bg-white","error"===t&&"bg-red-50"),children:[(0,a().jsxs)("div",{className:Yi("flex items-center gap-8 w-full","error"===t&&"items-center"),children:[(0,a().jsx)("div",{className:"mt-1",children:"pending"===t?(0,a().jsx)(Vf,{className:"w-12 h-12 text-scaler-500 animate-spin"}):o}),(0,a().jsxs)("div",{className:"flex flex-col gap-1.5 w-full",children:[(0,a().jsxs)("div",{className:"flex items-center justify-between cursor-pointer",onClick:function(){return"error"===t&&r&&d(!u)},children:[(0,a().jsx)("h3",{className:"font-medium text-gray-900 text-base",children:n}),"error"===t&&r&&(0,a().jsx)(dl,{className:Yi("w-7 h-7 transition-transform",u&&"transform rotate-180")})]}),"error"===t&&r&&u&&(0,a().jsx)("p",{className:"text-gray-500 text-sm italic",children:r}),i&&(0,a().jsx)("div",{className:"mt-1 text-xs italic text-red-500",children:i})]})]}),s&&(0,a().jsx)("div",{className:"flex items-center",children:s})]})};var th=["user_visibility","laptop_visibility","image_quality"];const nh=function(e){var t=e.setPositionGuideModalOpen,n=e.positionCheckResult,r=e.isLoading,o=(0,l().useCallback)(function(){r||t(!0)},[r,t]);return l().createElement("section",{className:"flex flex-col flex-1 ml-6"},l().createElement("div",{className:"flex flex-row items-center"},l().createElement("img",{className:"mr-3 h-8 w-8",src:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/106/389/original/Image_7_from_Figma.png?1738592475",alt:"logo"}),l().createElement("div",{className:"flex-col"},l().createElement("heading",{className:"mb-1 text-base font-bold"},r?"Screenshot Analysis In Progress":"Screenshot Analysis Completed"),l().createElement("p",{className:kp()("flex items-center text-xs",{"text-blue-500":!r,"text-gray-500":r,"cursor-pointer":!r}),onClick:o},r?"Please wait":l().createElement(l().Fragment,null,"View Demo ",l().createElement($p,{className:"w-6 h-6 ml-2"}))))),l().createElement("section",{className:"flex flex-col rounded-2xl border border-gray-200 bg-white divide-y divide-gray-200 mt-8 overflow-auto max-h-[300px]"},r&&th.map(function(e,t){return l().createElement(eh,{key:t,status:"pending",title:Zp(e),description:null,icon:l().createElement(Vf,{className:"w-12 h-12 text-scaler-500 animate-spin"})})}),!r&&n&&n.length>0&&n.map(function(e,t){return l().createElement(eh,{key:t,status:e.is_valid?"completed":"error",title:Zp(e.check_type),description:e.feedback,icon:e.is_valid?l().createElement(ni,{className:"w-12 h-12 text-white fill-green-600"}):l().createElement(ua,{className:"w-12 h-12 text-red-500"})})})))},rh=function(e){var t=e.isOpen,n=e.onClose;return l().createElement(ia,{containerClassName:"rounded-2xl",isOpen:t,modalClassName:"p-12 flex flex-col justify-center text-center items-center max-w-[600px] relative"},l().createElement(ua,{className:"h-[7.2rem] w-[7.2rem] pb-4 text-red-500"}),l().createElement("header",{className:"text-2xl mb-1"},"Orientation Verification Failed"),l().createElement("article",{className:"text-gray-500 text-sm"},"We are not able to verify your camera orientation. Please make sure that you adjust your phone according to the instructions. Incorrect camera positioning may lead to disqualification during the exam."),l().createElement("section",{className:"mt-8"},l().createElement(Pa,{type:"button",className:"items-center py-8 px-10",variant:"primary",onClick:n},"Proceed")))};function oh(e){return oh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oh(e)}function ih(){ih=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:E(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",y={};function b(){}function g(){}function v(){}var w={};c(w,a,function(){return this});var x=Object.getPrototypeOf,k=x&&x(x(O([])));k&&k!==n&&r.call(k,a)&&(w=k);var S=v.prototype=b.prototype=Object.create(w);function _(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==oh(u)&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,l)})}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=A(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function A(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(oh(t)+" is not iterable")}return g.prototype=v,o(S,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(C.prototype),c(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},_(S),c(S,s,"Generator"),c(S,a,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function ah(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function lh(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){ah(i,r,o,a,l,"next",e)}function l(e){ah(i,r,o,a,l,"throw",e)}a(void 0)})}}function sh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ch(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ch(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ch(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function uh(e,t){return new Promise(function(n,r){fetch(e).then(function(e){return e.blob()}).then(function(e){var r=new File([e],t,{type:e.type});n(r)}).catch(function(e){console.error("Error downloading image:",e),r(e)})})}const dh=function(e){var t=e.className,n=e.setSwitchModalOpen,r=ro(function(e){return qo(e,"mobileCameraShare")}).setupMode,o=H(),i=sh((0,l().useState)(!1),2),a=i[0],s=i[1],c=sh((0,l().useState)(!1),2),u=c[0],d=c[1],f=sh((0,l().useState)(0),2),p=f[0],h=f[1],m=sh((0,l().useState)(null),2),y=m[0],b=m[1],g=sh((0,l().useState)(!1),2),v=g[0],w=g[1],x=sh((0,l().useState)(null),2),k=x[0],S=x[1],_=sh((0,l().useState)([]),2),C=_[0],E=_[1],A=sh((0,l().useState)(!1),2),T=A[0],j=A[1],N=sh((0,l().useState)(5),2),O=N[0],P=N[1],I=sh((0,l().useState)(!1),2),L=I[0],z=I[1],M=sh((0,l().useState)(0),2),R=M[0],D=M[1],F=ro(function(e){return e.workflow}).enableProctoring,B=sh(Zr(),2),q=B[0],U=B[1].isLoading,W=sh((0,l().useState)(0),2),V=W[0],Q=W[1],K=(0,l().useCallback)(function(){j(!1)},[]),$=(0,l().useCallback)(lh(ih().mark(function e(){var t,n,r,o,i;return ih().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!U&&u){e.next=2;break}return e.abrupt("return");case 2:return D(function(e){return e+1}),e.prev=3,e.next=6,uh(k,"image.png");case 6:return t=e.sent,e.next=9,q({imageFile:t});case 9:if(null==(n=e.sent)||!n.data){e.next=20;break}if(r=n.data,o=r.success,i=r.result,!o){e.next=16;break}E((null==i?void 0:i.setup_validations)||[]),e.next=17;break;case 16:throw new Error("Validation failed");case 17:null!=i&&i.is_valid&&w(!0),e.next=21;break;case 20:throw new Error("Validation failed");case 21:e.next=28;break;case 23:e.prev=23,e.t0=e.catch(3),Q(function(e){return e+1}),Ne.error("Validation failed. Please try again"),V>=2&&z(!0);case 28:case"end":return e.stop()}},e,null,[[3,23]])})),[q,k,U,u,V]);(0,l().useEffect)(function(){var e=function(){var e=lh(ih().mark(function e(){var t,n;return ih().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!y){e.next=14;break}return e.prev=1,e.next=4,fetch(y,{headers:{Accept:"application/json"}});case 4:return t=e.sent,e.next=7,t.json();case 7:n=e.sent,S(n.url),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),console.error("Error fetching image URL:",e.t0);case 14:case"end":return e.stop()}},e,null,[[1,11]])}));return function(){return e.apply(this,arguments)}}();e()},[y]);var Y,G,X,J=(0,l().useCallback)(function(e){var t,n=(null==e||null===(t=e.metadata)||void 0===t?void 0:t.length)||0;if(h(n),n>0){var r,o=null==e||null===(r=e.metadata)||void 0===r||null===(r=r[e.metadata.length-1])||void 0===r?void 0:r.value;y!==o&&b(o)}},[y]),Z=(0,l().useCallback)(function(e){J(e),u||(h(3),d(!0),j(!0))},[J,u]),ee=(0,l().useCallback)(function(e){J(e)},[J]),te=(0,l().useCallback)(function(){o(Co()),o(Mo({step:"mobileCameraShare",setupMode:!1}))},[o]);return(0,l().useEffect)(function(){P(5);var e=setInterval(function(){P(function(e){return e>0?e-1:0})},1e3);return function(){return clearInterval(e)}},[y]),Pp({onSnapshotSuccess:Z,onSnapshotFailure:ee}),F&&!r?l().createElement(Up,{setSwitchModalOpen:n}):l().createElement("div",{className:"flex flex-col"},l().createElement("section",{className:"py-4 px-10 text-xs text-center bg-[#E6F2FF] absolute top-0 left-0 w-full font-bold"},"Auto fetching next snapshot in ",l().createElement("time",null,O)," seconds..."),l().createElement("div",{className:kp()(Op.orientationContainer,"mt-10",(Y={},G=t,X=t,(G=function(e){var t=function(e){if("object"!=oh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=oh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oh(t)?t:t+""}(G))in Y?Object.defineProperty(Y,G,{value:X,enumerable:!0,configurable:!0,writable:!0}):Y[G]=X,Y))},0===C.length&&!U&&l().createElement("section",{className:Op.referenceImageContainer},l().createElement(Hp,{items:[{image:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/099/601/original/Dec_10_Screenshot_Rounded_Corner.png?1733823148",text:"Position phone against a strong surface"},{image:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/099/593/original/Iterations_Image_4936.png?1733821016",text:"Adjust and verify your phone basis snapshot"},{image:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/099/594/original/IMG_4940_1.png?1733821035",text:"Once ready, click on proceed"}]})),l().createElement("section",{className:Op.snapshotPreviewContainer},l().createElement("div",{className:Op.snapshotPreview},l().createElement("div",{className:Op.snapshotImageContainer},k?l().createElement("img",{className:Op.snapshotImage,src:k,alt:"snapshot"}):l().createElement("div",{className:"absolute top-1/2 right-1/2 transform translate-x-1/2 translate-y-[-50%]"},l().createElement(ef,{size:"md"}),l().createElement("div",{className:"text-xs text-center mt-2"},"Collecting Snapshot...")))),l().createElement(Kp,{className:"mt-4",value:parseInt(p/3*100,10)}),l().createElement("div",{className:"flex flex-col text-center mt-4"},l().createElement("div",{className:"text-xs text-gray-500 mt-2"},3===p?l().createElement(l().Fragment,null,"Snapshot covering you and your workspace?"," ",l().createElement("b",null,"If yes, proceed. If not, adjust and confirm with next snapshot")):l().createElement(l().Fragment,null,l().createElement("b",null,"Capturing 3 mandatory snaps"),"...adjust your phone to capture both hands, workspace and your head")))),(C&&Array.isArray(C)&&C.length>0||U)&&l().createElement(nh,{setPositionGuideModalOpen:j,positionCheckResult:C,isLoading:U})),l().createElement("div",{className:"mt-16"},l().createElement("form",{onSubmit:function(e){e.preventDefault(),u&&(v&&a?te:$)()}},v&&u?l().createElement("div",{className:"flex items-start gap-2 mt-6 text-sm"},l().createElement(el,{id:"confirm",className:"mr-2 mt-1 h-6 w-6",checked:a,onCheckedChange:function(e){return s(e)},disabled:!u,role:"checkbox",required:u}),l().createElement("label",{htmlFor:"confirm",className:"text-sm text-gray-600"},"By clicking on this, you confirm that your mobile phone is paired and will remain charged during the test. If disconnected, you'll need to reconnect before being able to continue with the test.")):null,l().createElement("div",{className:"flex items-center"},u&&v?l().createElement(Pa,{type:"submit",className:"mt-8 items-center py-8 px-10",disabled:!a,variant:"primary"},"Proceed to next step",l().createElement(ba,{className:"w-6 h-6"})):l().createElement(Pa,{type:"submit",className:"mt-8 items-center py-8 px-10",disabled:U||!u,variant:"primary"},0===R?"Check orientation":"Retry Orientation Check",l().createElement(ba,{className:"w-6 h-6"})),l().createElement(Pa,{className:"mt-8 items-center py-8 px-10 ml-6",variant:"outline",onClick:function(){return n(!0)},type:"button"},"Scan QR Code again")))),l().createElement(mp,{isOpen:T,onProceed:function(){$(),j(!1)},onClose:K}),l().createElement(rh,{isOpen:L,onClose:function(){w(!0),z(!1)}}))},fh=Go("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);function ph(e){return ph="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ph(e)}function hh(e,t,n){return(t=function(e){var t=function(e){if("object"!=ph(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ph(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ph(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var yh=l().memo(function(e){var t,n,r=e.className,o=H(),i=(t=(0,l().useState)(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return mh(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mh(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],s=i[1],c=(0,l().useRef)(null),u=I(fo),d=(0,l().useMemo)(function(){var e,t;return{payload:(null==u||null===(e=u.qrCodeConfig)||void 0===e?void 0:e.defaultPayload)||{},endpoint:null==u||null===(t=u.qrCodeConfig)||void 0===t?void 0:t.endpoint}},[null==u?void 0:u.qrCodeConfig]),f=Gr({endpoint:d.endpoint}),p=f.data,h=f.isFetching,m=f.isError,y=(0,l().useCallback)(function(){o(Co()),o(Mo({step:"mobileCameraShare",setupMode:!0}))},[o]),b=(0,l().useCallback)(function(){},[]),g=(0,l().useMemo)(function(){return{onSetupSuccess:y,onSetupFailure:b}},[y,b]);Pp(g,5e3);var v=(0,l().useCallback)(function(){var e=c.current?c.current.textContent:"";e&&navigator.clipboard.writeText(e).then(function(){s(!0),setTimeout(function(){return s(!1)},2e3)},function(e){console.error("Error copying text: ",e),s(!1)})},[]),w=(0,l().useMemo)(function(){return h||m||null==p||!p.qrcode?l().createElement(ef,{size:"md"}):l().createElement("img",{src:"data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(null==p?void 0:p.qrcode)),alt:"qr-code"})},[null==p?void 0:p.qrcode,h,m]);return l().createElement("div",{className:kp()(hh({},r,r))},l().createElement("div",{className:Op.pairingContainer},l().createElement("section",{className:Op.qrCodeContainer},w),l().createElement("div",{className:Op.divider},l().createElement("div",{className:Op.dividerLine}),l().createElement("div",{className:Op.dividerText}," OR "),l().createElement("div",{className:Op.dividerLine})),l().createElement("section",{className:Op.copyLinkContainer},l().createElement("header",{className:Op.copyLinkHeading},"Pair mobile via link"),l().createElement("article",{className:Op.copyLinkBody},"Copy link to open on your mobile. It might take few sec to load"),l().createElement("section",{className:Op.copyLinkOption},l().createElement("div",{className:Op.copyLinkBox,ref:c},null==p?void 0:p.link),l().createElement("span",{className:Op.copyLinkText,onClick:v},l().createElement(fh,{className:Op.copyIcon}),a?l().createElement("div",{className:Op.copySuccessMessage},"Copied!"):"Copy")))),l().createElement("section",{className:"mt-10"},l().createElement("article",{className:Op.orientationInstructions},l().createElement("heading",{className:Op.orientationInstructionHeading},"Instructions :"),l().createElement("ul",{className:Op.orientationInstructionPoints},l().createElement("li",null,"Scan the QR code using your Android/iOS device or use the link to open it on your mobile phone."),l().createElement("li",null,"Tap the link to open it in your default browser and follow the instructions to grant camera access"),l().createElement("li",null,"Place your mobile device on a stable surface."),l().createElement("li",null,"Choose landscape or portrait orientation, ensuring your desktop, hands, and workspace are clearly visible with proper lighting.")))))});yh.displayName="Pairing";const bh=yh,gh=n.p+"images/switchPhone5478c180281b2501ff84.svg";function vh(e){return vh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vh(e)}function wh(){wh=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:E(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",y={};function b(){}function g(){}function v(){}var w={};c(w,a,function(){return this});var x=Object.getPrototypeOf,k=x&&x(x(O([])));k&&k!==n&&r.call(k,a)&&(w=k);var S=v.prototype=b.prototype=Object.create(w);function _(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==vh(u)&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,l)})}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=A(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function A(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(vh(t)+" is not iterable")}return g.prototype=v,o(S,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(C.prototype),c(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},_(S),c(S,s,"Generator"),c(S,a,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function xh(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function kh(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){xh(i,r,o,a,l,"next",e)}function l(e){xh(i,r,o,a,l,"throw",e)}a(void 0)})}}function Sh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const _h=function(e){var t,n,r=e.isOpen,o=e.onClose,i=H(),a=(t=Jr(),n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Sh(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sh(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],s=(0,l().useCallback)(kh(wh().mark(function e(){return wh().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,a({eventType:"secondary_camera",eventName:"setup_reset"});case 3:e.sent.data.success&&(K(function(){i(Po({step:"mobileCameraShare"})),i(Eo({step:"mobileCameraShare",locked:!1})),i(eo.util.resetApiState()),i(Mo({step:"mobileCameraShare",setupMode:!0}))}),null==o||o()),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}},e,null,[[0,7]])})),[i,o,a]);return l().createElement(ia,{containerClassName:"rounded-2xl",isOpen:r,modalClassName:"p-12 flex flex-col justify-center text-center items-center max-w-[600px] relative"},l().createElement("img",{src:gh,alt:"switch-phone",className:"h-[7.2rem] w-[7.2rem] pb-4"}),l().createElement("heading",{className:"text-2xl mb-1"},"You are going to Scan QR Code again"),l().createElement("article",{className:"text-gray-500 text-sm"},"Confirming this will disconnect your current mobile phone. You'll need to scan the QR code again to reconnect your mobile with the desktop."),l().createElement("section",{className:"mt-8"},l().createElement(Pa,{type:"button",className:"items-center py-8 px-10",variant:"primary",onClick:s},"Scan QR Code again"),l().createElement(Pa,{type:"button",className:"items-center py-8 px-10 ml-2",onClick:o,variant:"outline"},"Cancel")),l().createElement("button",{className:"absolute top-5 right-5 text-gray-500 hover:text-gray-800",onClick:o,"aria-label":"Close"},l().createElement(Jd,null)))};function Ch(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Eh=l().memo(bh),Ah=l().memo(dh),Th=l().memo(qp),jh=l().memo(_h);const Nh=n.p+"images/light-bulba68d0da013ea5916d408.svg";var Oh,Ph="FULL_MONITOR_NOT_SHARED",Ih="SCREEN_SHARE_STREAM_ENDED",Lh="SCREEN_SHARE_FAILED",zh="SCREEN_SHARE_DENIED",Mh=((Oh={})[Ph]="Please share your Entire screen, not just a window or tab",Oh[zh]="Screen share permission was denied",Oh[Lh]="Screen share failed to initialize",Oh[Ih]="Screen share stream has ended",Oh),Rh={RETRY_STRATEGY:"RETRY_STRATEGY",ROLLING_WINDOW_STRATEGY:"ROLLING_WINDOW_STRATEGY"};function Dh(e){return Dh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dh(e)}function Fh(){Fh=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:E(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",y={};function b(){}function g(){}function v(){}var w={};c(w,a,function(){return this});var x=Object.getPrototypeOf,k=x&&x(x(O([])));k&&k!==n&&r.call(k,a)&&(w=k);var S=v.prototype=b.prototype=Object.create(w);function _(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==Dh(u)&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,l)})}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=A(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function A(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Dh(t)+" is not iterable")}return g.prototype=v,o(S,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(C.prototype),c(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},_(S),c(S,s,"Generator"),c(S,a,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function Bh(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function qh(){return Uh.apply(this,arguments)}function Uh(){return(e=Fh().mark(function e(){return Fh().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,t){var n=new Image,r=performance.now();n.onload=function(){var t=(performance.now()-r)/1e3,o=n.width*n.height*4;e(8*o/1024/t<400)},n.onerror=t,n.src="".concat("https://dajh2p2mfq4ra.cloudfront.net/assets/icons/ib-logo-hire-8f3406787bc4241628bb7e5bea43d56a7ab275401134c297b6631c8b81cd3996.png","?t=").concat(Date.now())}));case 1:case"end":return e.stop()}},e)}),Uh=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Bh(i,r,o,a,l,"next",e)}function l(e){Bh(i,r,o,a,l,"throw",e)}a(void 0)})}).apply(this,arguments);var e}function Wh(e){return Wh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wh(e)}function Vh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vh(Object(n),!0).forEach(function(t){Hh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hh(e,t,n){return(t=Xh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kh(){Kh=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:E(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",y={};function b(){}function g(){}function v(){}var w={};c(w,a,function(){return this});var x=Object.getPrototypeOf,k=x&&x(x(O([])));k&&k!==n&&r.call(k,a)&&(w=k);var S=v.prototype=b.prototype=Object.create(w);function _(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==Wh(u)&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,l)})}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=A(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function A(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Wh(t)+" is not iterable")}return g.prototype=v,o(S,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(C.prototype),c(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},_(S),c(S,s,"Generator"),c(S,a,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function $h(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Yh(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){$h(i,r,o,a,l,"next",e)}function l(e){$h(i,r,o,a,l,"throw",e)}a(void 0)})}}function Gh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xh(r.key),r)}}function Xh(e){var t=function(e){if("object"!=Wh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wh(t)?t:t+""}var Jh="snapshots",Zh=function(){return e=function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.db=null,this.uploadFunctionMap=t,this.isUploading=!1,this.options={bucketCount:r.bucketCount||10,maxSnapshotsPerBucket:r.maxSnapshotsPerBucket||5,maxSnapshotsCount:r.maxSnapshotsCount||50,networkCheckInterval:r.networkCheckInterval||5e3},this.networkStatus={isGood:!0},this.networkMonitorInterval=null,this.currentSnapshotCount=0,this.initDB().then(function(){n.startNetworkMonitoringAndProcessUploads()})},t=[{key:"initDB",value:(i=Yh(Kh().mark(function e(){var t=this;return Kh().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,n){var r=indexedDB.open("ProctorSnapshots",1);r.onerror=function(){return n(r.error)},r.onsuccess=function(){t.db=r.result,e()},r.onupgradeneeded=function(e){var t=e.target.result;t.objectStoreNames.contains(Jh)||t.createObjectStore(Jh,{keyPath:"id",autoIncrement:!0}).createIndex("timestamp","timestamp")}}));case 1:case"end":return e.stop()}},e)})),function(){return i.apply(this,arguments)})},{key:"performIntelligentCleanup",value:(o=Yh(Kh().mark(function e(){var t,n,r,o,i=this;return Kh().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=this.db.transaction(Jh,"readwrite"),n=t.objectStore(Jh),r=n.index("timestamp"),e.next=6,new Promise(function(e){var t=r.count();t.onsuccess=function(){return e(t.result)}});case 6:if(this.currentSnapshotCount=e.sent,!(this.currentSnapshotCount>this.options.maxSnapshotsCount)){e.next=13;break}return o=[],e.next=11,new Promise(function(e){var t=r.openCursor(),n=0;t.onsuccess=function(t){var r=t.target.result;r&&n<i.options.bucketCount?(o.push(r.value.id),n+=1,r.advance(i.options.maxSnapshotsPerBucket)):e()}});case 11:return e.next=13,Promise.all(o.map(function(e){return new Promise(function(t,r){var o=n.delete(e);o.onsuccess=t,o.onerror=r})}));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(0),console.error("Error during intelligent cleanup:",e.t0);case 18:case"end":return e.stop()}},e,this,[[0,15]])})),function(){return o.apply(this,arguments)})},{key:"addSnapshot",value:(r=Yh(Kh().mark(function e(t){var n,r,o,i,a=arguments;return Kh().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:"screenshot",r={blob:t,timestamp:Date.now(),size:t.size,type:n},e.prev=2,o=this.db.transaction(Jh,"readwrite"),i=o.objectStore(Jh),e.next=7,new Promise(function(e,t){var n=i.add(r);n.onsuccess=function(){return e(n.result)},n.onerror=function(){return t(n.error)}});case 7:return e.next=9,this.performIntelligentCleanup();case 9:e.next=15;break;case 11:throw e.prev=11,e.t0=e.catch(2),console.error("Error adding snapshot:",e.t0),e.t0;case 15:case"end":return e.stop()}},e,this,[[2,11]])})),function(e){return r.apply(this,arguments)})},{key:"processUploads",value:(n=Yh(Kh().mark(function e(){var t,n,r,o,i,a=this;return Kh().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isUploading&&this.networkStatus.isGood){e.next=2;break}return e.abrupt("return");case 2:return this.isUploading=!0,e.prev=3,t=this.db.transaction(Jh,"readwrite"),n=t.objectStore(Jh),r=n.index("timestamp"),o=Math.min(5,Math.max(2,this.currentSnapshotCount)),e.next=10,new Promise(function(e){var t=r.getAll(null,o);t.onsuccess=function(){return e(t.result)}});case 10:if(!((i=e.sent).length>0)){e.next=14;break}return e.next=14,Promise.all(i.map(function(){var e=Yh(Kh().mark(function e(t){var r;return Kh().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=a.uploadFunctionMap[t.type]){e.next=4;break}throw new Error("No upload function found for type: ".concat(t.type));case 4:return e.next=6,r({blob:t.blob});case 6:return e.next=8,new Promise(function(e,r){var o=n.delete(t.id);o.onsuccess=function(){return e()},o.onerror=function(){return r(o.error)}});case 8:e.next=14;break;case 10:e.prev=10,e.t0=e.catch(0),console.error("error",e.t0),"NetworkError"===e.t0.name&&(a.networkStatus.isGood=!1);case 14:case"end":return e.stop()}},e,null,[[0,10]])}));return function(t){return e.apply(this,arguments)}}()));case 14:return e.prev=14,this.isUploading=!1,e.finish(14);case 17:case"end":return e.stop()}},e,this,[[3,,14,17]])})),function(){return n.apply(this,arguments)})},{key:"startNetworkMonitoringAndProcessUploads",value:function(){var e=this;this.networkMonitorInterval=setInterval(Yh(Kh().mark(function t(){var n;return Kh().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,qh();case 3:n=t.sent,e.networkStatus.isGood=!n,e.processUploads(),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),e.networkStatus.isGood=!1;case 11:case"end":return t.stop()}},t,null,[[0,8]])})),this.options.networkCheckInterval)}},{key:"cleanup",value:function(){this.networkMonitorInterval&&(clearInterval(this.networkMonitorInterval),this.networkMonitorInterval=null)}},{key:"updateUploadFunctions",value:function(e){this.uploadFunctionMap=Qh(Qh({},this.uploadFunctionMap),e)}}],t&&Gh(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,r,o,i}(),em=null;function tm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return em?e&&em.updateUploadFunctions(e):em=new Zh(e,t),em}function nm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rm(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rm(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function om(e){return om="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},om(e)}function im(){im=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:E(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",y={};function b(){}function g(){}function v(){}var w={};c(w,a,function(){return this});var x=Object.getPrototypeOf,k=x&&x(x(O([])));k&&k!==n&&r.call(k,a)&&(w=k);var S=v.prototype=b.prototype=Object.create(w);function _(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==om(u)&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,l)})}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=A(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function A(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(om(t)+" is not iterable")}return g.prototype=v,o(S,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(C.prototype),c(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},_(S),c(S,s,"Generator"),c(S,a,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function am(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function lm(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){am(i,r,o,a,l,"next",e)}function l(e){am(i,r,o,a,l,"throw",e)}a(void 0)})}}function sm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cm(r.key),r)}}function cm(e){var t=function(e){if("object"!=om(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=om(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==om(t)?t:t+""}var um=new(function(){return e=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Rh.INDEX_DB_BUFFER_STRATEGY;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.capturedIntervals=[],this.mediaStream=null,this.strategy=t},t=[{key:"requestScreenShare",value:(o=lm(im().mark(function e(t){var n,r;return im().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.onFailure,r=t.onEnd,e.prev=1,e.next=4,navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"monitor"}});case 4:return this.mediaStream=e.sent,this.listenScreenShareEnd({onEnd:r}),e.abrupt("return",!0);case 9:return e.prev=9,e.t0=e.catch(1),console.error("Screen sharing was denied or failed:",e.t0),null==n||n({err:e.t0}),e.abrupt("return",!1);case 14:case"end":return e.stop()}},e,this,[[1,9]])})),function(e){return o.apply(this,arguments)})},{key:"isScreenShareValid",value:(r=lm(im().mark(function e(){var t,n,r,o;return im().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.mediaStream){e.next=2;break}return e.abrupt("return",[!1,zh]);case 2:if(0!==(t=this.mediaStream.getVideoTracks()).length){e.next=5;break}return e.abrupt("return",[!1,Lh]);case 5:if("live"===t[0].readyState){e.next=8;break}return e.abrupt("return",[!1,Ih]);case 8:if(!("displaySurface"in(n=t[0].getSettings()))){e.next=15;break}if("monitor"===(null==n?void 0:n.displaySurface)){e.next=13;break}return this.stopScreenShare(),e.abrupt("return",[!1,Ph]);case 13:e.next=21;break;case 15:if(r=window.screen.width*window.devicePixelRatio,o=window.screen.height*window.devicePixelRatio,!(Math.abs(n.width-r)>5||Math.abs(n.height-o)>5)){e.next=21;break}return this.stopScreenShare(),e.abrupt("return",[!1,Ph]);case 21:return e.abrupt("return",[!0,null]);case 22:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"captureScreenshot",value:(n=lm(im().mark(function e(t){var n,r,o,i;return im().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.resizeDimensions,(r=document.createElement("video")).srcObject=this.mediaStream,r.play(),e.next=6,new Promise(function(e){r.onloadedmetadata=function(){return e()}});case 6:return o=document.createElement("canvas"),n?(o.width=n.width,o.height=n.height):(o.width=r.videoWidth,o.height=r.videoHeight),o.getContext("2d").drawImage(r,0,0,o.width,o.height),e.next=12,new Promise(function(e){o.toBlob(e)});case 12:return i=e.sent,e.abrupt("return",i);case 14:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"useRetryStrategy",value:function(e){var t=this,n=e.onSuccess,r=e.onFailure,o=e.resizeDimensions,i=e.interval,a=void 0===i?3e3:i,l=e.maxRetries,s=void 0===l?3:l,c=e.baseDelay,u=void 0===c?1e3:c;this.mediaStream?this.capturedIntervals.push(setInterval(lm(im().mark(function e(){var i,a,l,c;return im().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.captureScreenshot({resizeDimensions:o});case 3:i=e.sent,a=0,l=!1,c=u;case 7:if(!(a<s)||l){e.next=29;break}return e.prev=8,e.next=11,null==n?void 0:n({blob:i});case 11:l=!0,e.next=27;break;case 14:if(e.prev=14,e.t0=e.catch(8),console.log(e.t0),(a+=1)!==s){e.next=23;break}return e.next=21,null==r?void 0:r({err:e.t0});case 21:e.next=27;break;case 23:return console.warn("Retry attempt ".concat(a," failed. Retrying in ").concat(c,"ms.")),e.next=26,new Promise(function(e){setTimeout(e,c)});case 26:c*=2;case 27:e.next=7;break;case 29:e.next=35;break;case 31:return e.prev=31,e.t1=e.catch(0),e.next=35,null==r?void 0:r({err:e.t1});case 35:case"end":return e.stop()}},e,null,[[0,31],[8,14]])})),a)):console.warn("No media stream available. Start screen sharing first.")}},{key:"useRollingWindowStrategy",value:function(e){var t=this,n=e.onSuccess,r=e.onFailure,o=e.resizeDimensions,i=e.windowSize,a=void 0===i?100:i,l=e.interval;if(this.mediaStream){this.rollingWindow=[],this.rollingWindowInProcess=!1;var s=function(){var e=lm(im().mark(function e(n){return im().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.rollingWindow.length!==a){e.next=4;break}return t.rollingWindow.shift(),e.next=4,null==r?void 0:r({err:"ROLLING_WINDOW_STRATEGY_LENGTH_EXCEEDED"});case 4:t.rollingWindow.push(n);case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),c=function(){var e=lm(im().mark(function e(){var o,i;return im().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log(t.rollingWindow),!t.rollingWindowInProcess){e.next=3;break}return e.abrupt("return");case 3:t.rollingWindowInProcess=!0,o=0;case 5:if(!(o<t.rollingWindow.length)){e.next=20;break}return i=t.rollingWindow[o],e.prev=7,e.next=10,null==n?void 0:n({blob:i});case 10:t.rollingWindow.splice(o,1),o-=1,e.next=17;break;case 14:e.prev=14,e.t0=e.catch(7),null==r||r(e.t0);case 17:o+=1,e.next=5;break;case 20:t.rollingWindowInProcess=!1;case 21:case"end":return e.stop()}},e,null,[[7,14]])}));return function(){return e.apply(this,arguments)}}();this.capturedIntervals.push(setInterval(lm(im().mark(function e(){var n;return im().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.captureScreenshot({resizeDimensions:o});case 2:return n=e.sent,e.next=5,s(n);case 5:case"end":return e.stop()}},e)})),l)),this.capturedIntervals.push(setInterval(lm(im().mark(function e(){return im().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c();case 2:case"end":return e.stop()}},e)})),l/2))}else console.warn("No media stream available. Start screen sharing first.")}},{key:"useIndexDbBufferStrategy",value:function(e){var t=this,n=e.onFailure,r=e.interval,o=e.resizeDimensions,i=tm();this.capturedIntervals.push(setInterval(lm(im().mark(function e(){var r;return im().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.captureScreenshot({resizeDimensions:o});case 3:return r=e.sent,e.next=6,i.addSnapshot(r,"screenshot").catch(function(e){null==n||n({err:e})});case 6:e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(0),e.next=12,null==n?void 0:n({err:e.t0});case 12:case"end":return e.stop()}},e,null,[[0,8]])})),r))}},{key:"startScreenshotCapture",value:function(e){var t=e.onSuccess,n=e.onFailure,r=e.interval,o=e.resizeDimensions;switch(this.strategy){case Rh.RETRY_STRATEGY:this.useRetryStrategy({onSuccess:t,onFailure:n,interval:r,maxRetries:3,baseDelay:1e3,resizeDimensions:o});break;case Rh.ROLLING_WINDOW_STRATEGY:this.useRollingWindowStrategy({onSuccess:t,onFailure:n,windowSize:200,interval:r,resizeDimensions:o});break;case Rh.INDEX_DB_BUFFER_STRATEGY:this.useIndexDbBufferStrategy({onFailure:n,interval:r,resizeDimensions:o});break;default:this.useRollingWindowStrategy({onSuccess:t,onFailure:n,windowSize:200,interval:r,resizeDimensions:o})}}},{key:"stopScreenShare",value:function(){this.mediaStream&&(this.mediaStream.getTracks().forEach(function(e){return e.stop()}),this.mediaStream=null),this.capturedIntervals.forEach(function(e){clearInterval(e)}),this.rollingWindow=[]}},{key:"listenScreenShareEnd",value:function(e){var t=this,n=e.onEnd;this.mediaStream&&this.mediaStream.getVideoTracks()[0].addEventListener("ended",function(){t.stopScreenShare(),null==n||n()})}}],t&&sm(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,r,o}());function dm(e){return fm.apply(this,arguments)}function fm(){return(fm=lm(im().mark(function e(t){var n,r,o,i,a,l;return im().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.onSuccess,r=t.onFailure,e.next=3,um.isScreenShareValid();case 3:return o=e.sent,i=nm(o,2),a=i[0],l=i[1],a?null==n||n():null==r||r(l),e.abrupt("return",[a,l]);case 9:case"end":return e.stop()}},e)}))).apply(this,arguments)}function pm(e){return hm.apply(this,arguments)}function hm(){return(hm=lm(im().mark(function e(t){var n,r,o,i,a,l,s,c,u,d,f,p,h;return im().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.onScreenShareEnabled,r=t.onScreenShareFailure,o=t.onScreenShareEnd,i=t.onScreenshotSuccess,a=t.onScreenshotFailure,l=t.frequency,s=t.resizeDimensions,c=t.disableScreenshot,!window.isTestEnding){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,dm({});case 5:if(u=e.sent,!nm(u,1)[0]){e.next=10;break}return e.abrupt("return");case 10:return e.prev=10,e.next=13,um.requestScreenShare({onSuccess:n,onFailure:r,onEnd:o});case 13:if(e.sent){e.next=16;break}return e.abrupt("return");case 16:return e.next=18,um.isScreenShareValid();case 18:if(d=e.sent,f=nm(d,2),p=f[0],h=f[1],p){e.next=25;break}return null==r||r(h),e.abrupt("return");case 25:null==n||n(),c||um.startScreenshotCapture({onSuccess:i,onFailure:a,interval:l,resizeDimensions:s}),e.next=32;break;case 29:e.prev=29,e.t0=e.catch(10),null==r||r();case 32:case"end":return e.stop()}},e,null,[[10,29]])}))).apply(this,arguments)}function mm(e){return ym.apply(this,arguments)}function ym(){return(ym=lm(im().mark(function e(t){var n,r;return im().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.disableScreenshot,r=void 0!==n&&n,e.next=3,pm({onScreenShareEnabled:this.handleScreenShareSuccess.bind(this),onScreenShareFailure:this.handleScreenShareFailure.bind(this),onScreenShareEnd:this.handleScreenShareEnd.bind(this),onScreenshotSuccess:this.handleScreenshotSuccess.bind(this),onScreenshotFailure:this.handleScreenshotFailure.bind(this),frequency:this.screenshotConfig.frequency,resizeDimensions:this.screenshotConfig.resizeTo,disableScreenshot:r});case 3:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}function bm(){um.stopScreenShare()}function gm(){var e=this,t=no(),n=ro(function(e){return fo(e)}),r=ro(function(e){return Uo(e,"screenShare","screenShare")}),o=ro(function(e){return e.workflow}).enableProctoring;return(0,a().jsxs)("div",{className:"mt-8 w-full max-w-ful",children:["error"===r.status&&r.error&&(0,a().jsxs)("div",{className:"w-full bg-red-100 p-4 rounded-t-2xl flex items-center justify-center gap-2",children:[(0,a().jsx)(ua,{className:"w-6 h-6 text-red-500"}),(0,a().jsx)("span",{className:"text-red-700 text-sm",children:r.error})]}),(0,a().jsx)("div",{className:"".concat("error"===r.status?"rounded-b-lg":"rounded-2xl"," overflow-hidden shadow-[0px_0px_24px_0px_rgba(0,0,0,0.08)] bg-white p-3"),children:(0,a().jsxs)("div",{className:"flex",children:["completed"!==r.status&&(0,a().jsx)("div",{className:"flex-1 py-16 pl-16 max-w-xl",children:(0,a().jsx)("img",{src:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/099/662/original/screen-share-mock.png?1733837502",alt:"Screen Share Mock",className:"w-full object-contain"})}),(0,a().jsxs)("div",{className:"flex-1 p-16 grow",children:[(0,a().jsx)("h3",{className:"text-xl font-semibold mb-2",children:"completed"===r.status?"Successfully shared your screen":"Start Screen Share"}),(0,a().jsx)("p",{className:"text-base-500 mb-6 text-sm",children:"completed"===r.status?"Sharing your entire screen is essential to make sure the assessment is happening in the fair manner":(0,a().jsxs)(a().Fragment,{children:["Click below to begin sharing your entire screen.",(0,a().jsx)("br",{}),(0,a().jsx)("br",{}),"You will need to set up screen sharing again when your test begins, as the environment will refresh."]})}),"completed"===r.status?(0,a().jsxs)("div",{className:"flex items-center justify-between p-4 bg-gray-100 rounded-2xl text-sm",children:[(0,a().jsx)("span",{children:"scaler.com is sharing your screen"}),(0,a().jsx)("div",{className:"flex gap-2",children:(0,a().jsx)(Pa,{onClick:function(){bm(),t(jo({step:"screenShare",subStep:"screenShare",error:Mh.SCREEN_SHARE_DENIED}))},className:"text-red-500",size:"xs",variant:"secondary",children:"Stop Sharing"})})]}):(0,a().jsx)(Pa,{className:"text-sm",onClick:function(){return t=e,r=void 0,a=function(){var e;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,null==n?void 0:n.handleScreenshareRequest({disableScreenshot:!o})];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),console.error("Error initiating screen share:",e),[3,3];case 3:return[2]}})},new((i=void 0)||(i=Promise))(function(e,n){function o(e){try{s(a.next(e))}catch(e){n(e)}}function l(e){try{s(a.throw(e))}catch(e){n(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i(function(e){e(n)})).then(o,l)}s((a=a.apply(t,r||[])).next())});var t,r,i,a},variant:"primary",size:"lg",children:"Share Entire Screen"})]})]})})]})}var vm=function(){return(0,a().jsxs)("div",{className:"animate-pulse space-y-4",children:[(0,a().jsx)("div",{className:"h-24 bg-slate-200 rounded w-3/4 my-16"}),(0,a().jsx)("div",{className:"h-16 bg-slate-200 rounded w-1/2"}),(0,a().jsxs)("div",{className:"space-y-2 my-4",children:[(0,a().jsx)("div",{className:"h-12 bg-slate-200 rounded"}),(0,a().jsx)("div",{className:"h-12 bg-slate-200 rounded w-11/12"}),(0,a().jsx)("div",{className:"h-12 bg-slate-200 rounded w-4/5"}),(0,a().jsx)("div",{className:"h-12 bg-slate-200 rounded w-9/12"})]})]})};function wm(){var e,t,r=(0,l().useMemo)(function(){return ll()},[]),o=(0,l().useMemo)(function(){return sl()},[]),i=(e=null==o?void 0:o.osName,t=null==r?void 0:r.name,l().lazy(function(){return n(4693)("./".concat(null==e?void 0:e.toLowerCase(),"/").concat(null==t?void 0:t.toLowerCase(),".md")).then(function(e){return{default:function(){return(0,a().jsx)(Md,{children:e.default})}}}).catch(function(){return n.e(414).then(()=>n(7414)).then(function(e){return{default:function(){return(0,a().jsx)(Md,{children:e.default})}}})})}));return console.log(null==o?void 0:o.osName,null==r?void 0:r.name,"Os and browser"),(0,a().jsx)("div",{className:"prose prose-sm max-w-none markdown-content",children:(0,a().jsx)(l().Suspense,{fallback:(0,a().jsx)(vm,{}),children:(0,a().jsx)(i,{})})})}var xm=function(){return xm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xm.apply(this,arguments)};function km(){var e=ro(function(e){return qo(e,"compatibilityChecks")}),t=ro(fo),n={systemChecks:{locked:{title:"System Compatibility",description:"We'll check your browser settings to ensure the test runs smoothly",icon:(0,a().jsx)(Vf,{className:"w-12 h-12 text-scaler-500 animate-spin"})},pending:{title:"System Compatibility",description:"We'll check your browser settings to ensure the test runs smoothly",icon:(0,a().jsx)(Vf,{className:"w-12 h-12 text-scaler-500 animate-spin"})},completed:{title:"System Compatibility",description:"We'll check your browser settings to ensure the test runs smoothly",icon:(0,a().jsx)(ni,{className:"w-12 h-12 text-white fill-green-600"})},error:{title:"System Compatibility",description:"We'll check your browser settings to ensure the test runs smoothly",icon:(0,a().jsx)(ua,{className:"w-12 h-12 text-red-500"}),error:(0,a().jsxs)("span",{className:"text-red-500",children:[(0,a().jsx)("strong",{children:"Error"})," - Supported browsers: Latest three versions of Chrome (preferred), Microsoft edge, Firefox and Safari browser"]}),extraUi:null}},networkChecks:{locked:{title:"Network Checks : Compatibility",description:"Checking your network connection to ensure it stays stable during the test.",icon:(0,a().jsx)(Vf,{className:"w-12 h-12 text-scaler-500 animate-spin"})},pending:{title:"Network Checks : Compatibility",description:"Checking your network connection to ensure it stays stable during the test.",icon:(0,a().jsx)(Vf,{className:"w-12 h-12 text-scaler-500 animate-spin"})},completed:{title:"Network Checks : Compatibility",description:"Checking your network connection to ensure it stays stable during the test.",icon:(0,a().jsx)(ni,{className:"w-12 h-12 text-white fill-green-600"})},error:{title:"Network Checks : Compatibility",description:"Checking your network connection to ensure it stays stable during the test.",icon:(0,a().jsx)(ua,{className:"w-12 h-12 text-red-500"}),error:(0,a().jsxs)("span",{className:"text-red-500",children:["Error - Network speed:"," ",(0,a().jsx)("span",{className:"font-medium",children:"Atleast 512kbps"})]}),extraUi:null}},fullScreenCheck:{locked:{title:"Switch to full screen mode",description:"Ensure you stay in full-screen mode at all times",icon:(0,a().jsx)(Vf,{className:"w-12 h-12 text-scaler-500 animate-spin"})},pending:{title:"Switch to full screen mode",description:"Ensure you stay in full-screen mode at all times",icon:(0,a().jsx)(Vf,{className:"w-12 h-12 text-scaler-500 animate-spin"})},completed:{title:"Switch to full screen mode",description:"Ensure you stay in full-screen mode at all times",icon:(0,a().jsx)(ni,{className:"w-12 h-12 text-white fill-green-600"})},error:{title:"Switch to full screen mode",description:"Ensure you stay in full-screen mode at all times",icon:(0,a().jsx)(ua,{className:"w-12 h-12 text-red-500"}),error:(0,a().jsx)("span",{className:"text-red-500",children:"Error - Switch to full screen mode"}),extraUi:(0,a().jsxs)("div",{className:"flex flex-row flex-wrap items-center gap-2 justify-end",children:[(0,a().jsxs)("span",{className:"text-base-200 italic text-sm mr-2G",children:["Press ",(0,a().jsx)("span",{className:"font-semibold",children:"ENTER KEY"})," or"]}),(0,a().jsx)(Pa,{variant:"outline",className:"text-scaler-500 border-blue-500 hover:bg-blue-50 hover:text-blue-600 text-sm",onClick:function(){return null==t?void 0:t.enableFullScreen()},children:"Enter Full Screen Mode"})]})}}};return(0,a().jsx)("div",{className:"max-w-full",children:(0,a().jsx)("section",{className:"flex flex-col rounded-2xl border border-gray-200 bg-white overflow-hidden divide-y divide-gray-200",children:Object.entries(n).map(function(t){var n=t[0],r=t[1],o=e.subSteps[n].status;return(0,a().jsx)(eh,xm({checkId:n,status:o},r[o]),n)})})})}var Sm={cameraShare:{icon:Xo,title:"Desktop Camera Permissions",component:(0,a().jsx)(function(){var e=no(),t=cl("cameraShare"),n=ro(function(e){return qo(e,"cameraShare")}),r=n.acknowledged,o=n.subSteps,i=ro(fo),s=ro(function(e){return e.workflow}).enableProctoring,c=ro(function(e){return Uo(e,"cameraShare","cameraShare")}),u=(0,l().useMemo)(function(){return ll()},[]),d=(0,l().useMemo)(function(){return sl()},[]),f=(0,l().useState)(!1),p=f[0],h=f[1],m=function(){s?null==i||i.handleCompatibilityChecks({forceRun:!0}):(null==i||i.handleWebcamRequest(),e(_o()))},y=Object.values(o).every(function(e){return"completed"===e.status}),b=aa(Object.values(o)),g=s||r&&y,v=(0,l().useMemo)(function(){return(0,a().jsx)(Zd,{open:p,onOpenChange:h,isError:"error"===c.status,title:"It looks like you're having trouble accessing your camera",children:(0,a().jsxs)("div",{className:"space-y-6",children:[(0,a().jsx)("p",{className:"text-base-500 text-sm",children:"Refer to the image below for steps to troubleshoot and grant camera permissions"}),(0,a().jsx)("div",{className:"aspect-[16/9] w-full bg-muted rounded-lg overflow-y-auto p-8 shadow-sm",children:(0,a().jsx)(Xd,{browserName:null==u?void 0:u.name,osName:null==d?void 0:d.osName})})]})})},[p,c.status,null==u?void 0:u.name,null==d?void 0:d.osName]);return(0,a().jsxs)(a().Fragment,{children:[(0,a().jsx)(af,{stepNumber:t,title:"Desktop/Laptop Camera Permissions",status:b}),(0,a().jsxs)("div",{className:"mt-16",children:[(0,a().jsx)(gl,{}),(0,a().jsxs)("p",{className:"mt-6 text-sm text-base-500 font-semibold text-center",children:[(0,a().jsx)(ya,{className:"mb-1 w-6 h-6 inline-block mr-2 text-base-500 font-bold"}),"Need help?"," ",(0,a().jsx)("a",{href:"#",onClick:function(e){e.preventDefault(),h(!0)},className:"text-scaler-500 underline",children:"Click to view"})," ","camera setup guide"]}),!s&&(0,a().jsxs)("form",{onSubmit:function(e){e.preventDefault(),g&&m()},children:[(0,a().jsxs)("div",{className:"flex items-start mt-16 text-sm",children:[(0,a().jsx)(el,{id:"confirm",className:"mt-1 mr-4 h-6 w-6",checked:r,onCheckedChange:function(){e(Ao({step:"cameraShare",acknowledged:!r}))},disabled:!y,role:"checkbox",required:y}),(0,a().jsx)("label",{htmlFor:"confirm",className:"text-sm text-gray-600 cursor-pointer",children:"By clicking, you confirm that all your compatibility checks have been successful. Failure to maintain them during the test may result in disqualification."})]}),(0,a().jsx)(Pa,{type:"submit",className:"mt-8 items-center",variant:"primary",size:"lg",disabled:!y,children:s?"Confirm Settings":(0,a().jsxs)(a().Fragment,{children:["Proceed to next step",(0,a().jsx)(ba,{className:"w-6 h-6"})]})})]}),s&&(0,a().jsx)(Pa,{className:"mt-8 items-center",variant:"primary",onClick:m,size:"lg",children:"Confirm Settings"}),p&&v]})]})},{})},screenShare:{icon:Jo,title:"Screen Share Permissions",component:(0,a().jsx)(function(){var e=no(),t=cl("screenShare"),n=ro(function(e){return qo(e,"screenShare")}),r=n.acknowledged,o=n.subSteps,i=ro(function(e){return e.workflow}).enableProctoring,s=ro(fo),c=ro(function(e){return Uo(e,"screenShare","screenShare")}),u=(0,l().useState)(!1),d=u[0],f=u[1],p=function(){i?null==s||s.handleCompatibilityChecks({forceRun:!0}):e(_o())},h=Object.values(o).every(function(e){return"completed"===e.status}),m=aa(Object.values(o)),y=i||r&&h;return(0,a().jsxs)(a().Fragment,{children:[(0,a().jsx)(af,{stepNumber:t,title:"Share your Entire Screen",status:m}),(0,a().jsxs)("div",{className:"mt-16",children:[(0,a().jsx)(gm,{}),(0,a().jsxs)("p",{className:"mt-6 text-sm text-base-500 font-semibold text-center",children:[(0,a().jsx)("img",{src:Nh,alt:"Lightbulb Icon",className:"mb-1 w-6 h-6 inline-block mr-2 text-base-500 font-bold"}),"Need help?"," ",(0,a().jsx)("a",{href:"#",onClick:function(e){e.preventDefault(),f(!0)},className:"text-scaler-500 underline",children:"Click to view"})," ","screen sharing setup guide"]}),!i&&(0,a().jsxs)("form",{onSubmit:function(e){e.preventDefault(),y&&p()},noValidate:!1,children:[(0,a().jsxs)("div",{className:"flex items-start mt-16 text-xs",children:[(0,a().jsx)(el,{id:"confirm",className:"mt-1 mr-4 h-6 w-6",checked:r,onCheckedChange:function(){e(Ao({step:"screenShare",acknowledged:!r}))},disabled:!h,role:"checkbox",required:h}),(0,a().jsx)("label",{htmlFor:"confirm",className:"text-sm text-base-200 cursor-pointer",children:"By clicking on this, you confirm that you have shared your entire screen and it will stay connected throughout the test. Failure to do so may result in disqualification"})]}),(0,a().jsx)(Pa,{type:"submit",className:"mt-8 items-center",variant:"primary",size:"lg",disabled:!h,children:i?"Confirm Settings":(0,a().jsxs)(a().Fragment,{children:["Proceed to next step",(0,a().jsx)(ba,{className:"w-6 h-6"})]})})]}),i&&(0,a().jsx)(Pa,{className:"mt-8 items-center",variant:"primary",onClick:p,size:"lg",children:"Confirm Settings"}),(0,a().jsx)(Zd,{open:d,onOpenChange:f,isError:"error"===c.status,title:"It looks like you're having trouble allowing Screen Sharing Permissions",children:(0,a().jsxs)("div",{className:"space-y-6",children:[(0,a().jsx)("p",{className:"text-muted-foreground text-sm",children:"Refer to the guide below for steps to troubleshoot and grant screen sharing permissions"}),(0,a().jsx)("div",{className:"aspect-[16/9] w-full bg-muted rounded-lg overflow-y-auto p-8 shadow-sm",children:(0,a().jsx)(wm,{})})]})})]})]})},{})},mobileCameraShare:{icon:Zo,title:"Mobile Camera Pairing",component:(0,a().jsx)(function(){console.log("MobileCameraStep component rendered");var e,t,n=no(),r=cl("mobileCameraShare"),o=ro(function(e){return qo(e,"mobileCameraShare")}),i=o.acknowledged,a=o.subSteps,s=o.activeSubStep,c=ro(function(e){return e.workflow}).modalOpen,u=(e=(0,l().useState)(!1),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ch(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ch(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=u[0],f=u[1],p=ro(function(e){return e.workflow}).enableProctoring,h=Object.values(a).every(function(e){return"completed"===e.status});(0,l().useEffect)(function(){return function(){c||n(Mo({step:"mobileCameraShare",setupMode:!1}))}},[c,n]);var m=aa(Object.values(a)),y=p||i&&h,b=(0,l().useCallback)(function(){f(!1)},[]);return l().createElement(l().Fragment,null,l().createElement(af,{stepNumber:r,title:"Mobile Camera Pairing Permissions",status:m}),l().createElement(Ap,{activeTab:s,className:"mt-20"},l().createElement(Tp,{label:"Scan Code & Pair Mobile",name:wp.pairing,isDisabled:!0,isCompleted:"completed"===a[wp.pairing].status},l().createElement(Eh,null)),l().createElement(Tp,{label:"Camera Orientation",name:wp.orientation,isDisabled:!0,isCompleted:"completed"===a[wp.orientation].status},l().createElement(Ah,{setSwitchModalOpen:f})),l().createElement(Tp,{label:"Mobile System Check",name:wp.mobileCompatibility,isDisabled:!0,isCompleted:"completed"===a[wp.mobileCompatibility].status},l().createElement(Th,null))),!p&&[wp.mobileCompatibility].includes(s)&&l().createElement("div",{className:"mt-8"},l().createElement("form",{onSubmit:function(e){e.preventDefault(),y&&n(_o())}},l().createElement("div",{className:"flex items-start mt-16 text-xs"},l().createElement(el,{id:"confirm",className:"mt-1 mr-4 h-6 w-6",checked:i,onCheckedChange:function(){n(Ao({step:"mobileCameraShare",acknowledged:!i}))},disabled:!h,role:"checkbox",required:h}),l().createElement("label",{htmlFor:"confirm",className:"text-sm text-gray-600 cursor-pointer"},"By clicking on this, you confirm that your mobile phone is paired and will remain charged during the test. If disconnected, you'll need to reconnect before being able to continue with the test.")),l().createElement("div",{className:"flex items-center"},l().createElement(Pa,{type:"submit",className:"mt-8 items-center",size:"lg",variant:"primary",disabled:!h},p?"Confirm Settings":l().createElement(l().Fragment,null,"Proceed to next step",l().createElement(ba,{className:"w-6 h-6"}))),s!==wp.pairing&&l().createElement(Pa,{className:"mt-8 items-center py-8 px-10 ml-6",variant:"outline",disabled:s===wp.pairing,onClick:function(){return f(!0)}},"Scan QR Code again")))),l().createElement(jh,{isOpen:d,onClose:b}))},{})},compatibilityChecks:{icon:ei,title:"System Compatibility Checks",component:(0,a().jsx)(function(){var e,t=no(),n=cl("compatibilityChecks"),r=ro(function(e){return fo(e)}),o=ro(function(e){return qo(e,"compatibilityChecks")}),i=o.acknowledged,a=o.subSteps,s=ro(function(e){return e.workflow}).enableProctoring;(0,l().useEffect)(function(){r&&(null==r||r.handleCompatibilityChecks())},[r]);var c=function(){s?null==r||r.handleCompatibilityChecks({forceRun:!0}):t(_o())},u=null===(e=Object.values(a))||void 0===e?void 0:e.every(function(e){return"completed"===e.status}),d=aa(Object.values(a)),f=s||i&&u;return l().createElement(l().Fragment,null,l().createElement(af,{stepNumber:n,title:"System Compatibility Checks",status:d}),l().createElement("div",{className:"mt-16"},l().createElement(km,null),!s&&l().createElement("form",{onSubmit:function(e){e.preventDefault(),f&&c()}},l().createElement("div",{className:"flex items-start mt-16 text-xs"},l().createElement(el,{id:"confirm",className:"mt-1 mr-4 h-6 w-6",checked:i,onCheckedChange:function(){t(Ao({step:"compatibilityChecks",acknowledged:!i}))},disabled:!u,role:"checkbox",required:u}),l().createElement("label",{htmlFor:"confirm",className:"text-sm text-base-200 cursor-pointer"},"By clicking, you confirm that all your compatibility checks remains same. Failure to maintain proper setup may result in interruption.")),l().createElement(Pa,{type:"submit",className:"mt-8 items-center",variant:"primary",size:"lg",disabled:!u},s?"Confirm Settings":l().createElement(l().Fragment,null,"Proceed to next step",l().createElement(ba,{className:"w-6 h-6"})))),s&&l().createElement(Pa,{className:"mt-8 items-center",variant:"primary",onClick:c,size:"lg"},"Confirm Settings")))},{})},identityVerification:{icon:ti,title:"Identity Verification",component:(0,a().jsx)(function(){var e,t,n=no(),r=ro(fo),o=ro(function(e){return e.assessmentInfo.token}),i=ro(function(e){return e.assessmentInfo.identity}),s=null!==(e=null==r?void 0:r.baseUrl)&&void 0!==e?e:"",c=null===(t=null==r?void 0:r.snapshotConfig)||void 0===t?void 0:t.deviceId,u=cl(pp),d=(0,l().useState)(null),f=d[0],p=d[1],h=(0,l().useState)(""),m=h[0],y=h[1],b=(0,l().useState)(!1),g=b[0],v=b[1],w=(0,l().useState)(!1),x=w[0],k=w[1],S=(0,l().useState)(0),_=S[0],C=S[1],E=(0,l().useState)(null),A=E[0],T=E[1],j=(0,l().useState)(!1),N=j[0],O=j[1],P=(0,l().useState)(!1),I=P[0],L=P[1],z=(0,l().useState)(!1),M=z[0],R=z[1],D=(0,l().useState)(!1),F=D[0],B=D[1],q=(0,l().useState)(!1),U=q[0],W=q[1],V=(0,l().useState)(""),Q=V[0],H=V[1],K=(0,l().useRef)(!1),$=(0,l().useRef)(null),Y=(0,l().useRef)(null),G=(0,l().useCallback)(function(e){p(e),O(!1)},[]),X=Bf(f,i),J=N&&["attempt_failed","service_error"].includes(X.state)?"capture":X.state,Z=m&&"capture"===J?"error":X.tone,ee=mo(f);(0,l().useEffect)(function(){if(o&&s){var e=!1;return y(""),yf({baseUrl:s,token:o}).then(function(t){e||G(t)}).catch(function(){e||y("We could not load identity verification. Check your connection and try again.")}),function(){e=!0}}},[s,o,_,G]),(0,l().useEffect)(function(){if("pending"===(null==f?void 0:f.status)&&o){var e,t=!1,n=function(r){e=setTimeout(function(){yf({baseUrl:s,token:o}).then(function(e){t||G(e)}).catch(function(){t||n(5e3)})},r)};return n(function(e){var t,n=null!==(t=null==e?void 0:e.retry_after)&&void 0!==t?t:2;return 1e3*Math.min(Math.max(n,1),5)}(f)),function(){t=!0,clearTimeout(e)}}},[s,o,f,G]),(0,l().useEffect)(function(){if(o&&function(e){return"blocked"===e||"service_error"===e}(J)){var e=setInterval(function(){yf({baseUrl:s,token:o}).then(G).catch(function(){})},1e4);return function(){return clearInterval(e)}}},[s,o,J,G]),(0,l().useEffect)(function(){n(To({step:pp,subStep:"identityCapture",status:Z,clearError:!0}))},[n,Z]),(0,l().useEffect)(function(){"skip"===J&&n(_o())},[n,J]),(0,l().useEffect)(function(){!K.current&&["consent","capture"].includes(J)&&(K.current=!0,L(!0))},[J]),(0,l().useEffect)(function(){var e;(e=c,up(void 0,void 0,void 0,function(){var t,n,r,o;return dp(this,function(i){switch(i.label){case 0:return e&&(null===(n=navigator.mediaDevices)||void 0===n?void 0:n.enumerateDevices)?[4,navigator.mediaDevices.enumerateDevices()]:[2,""];case 1:return t=i.sent(),[2,null!==(o=null===(r=t.find(function(t){return t.deviceId===e}))||void 0===r?void 0:r.label)&&void 0!==o?o:""]}})})).then(H).catch(function(){return H("")})},[c]);var te="capture"===J&&!ee;(0,l().useEffect)(function(){var e;if(te){var t,n=null,r=!1;return null===(e=navigator.mediaDevices)||void 0===e||e.getUserMedia((t=c,{video:cp({width:{ideal:640},height:{ideal:480},facingMode:"user"},t?{deviceId:{ideal:t}}:{}),audio:!1})).then(function(e){r?e.getTracks().forEach(function(e){return e.stop()}):(n=e,Y.current=e,$.current&&($.current.srcObject=e))}).catch(function(){r||y("We could not access your camera. Allow camera access and try again.")}),function(){r=!0,k(!1),null==n||n.getTracks().forEach(function(e){return e.stop()}),Y.current=null}}},[te,c]);var ne=function(){var e,t,n;return cp(cp({},Wf(null!==(n=null===(t=null===(e=Y.current)||void 0===e?void 0:e.getVideoTracks()[0])||void 0===t?void 0:t.label)&&void 0!==n?n:Q)),{previous_camera_label:Q||void 0})},re=(0,l().useCallback)(function(){o&&yf({baseUrl:s,token:o}).then(G).catch(function(){return C(function(e){return e+1})})},[s,o,G]);function oe(){return up(this,void 0,void 0,function(){var e,t,n,r,a,l;return dp(this,function(c){switch(c.label){case 0:if(!o)return[2];if((e=ne()).virtual_camera&&"required"===(null===(l=null==i?void 0:i.camera_integrity)||void 0===l?void 0:l.mode))return y(ho("virtual_camera")),[2];v(!0),y(""),c.label=1;case 1:return c.trys.push([1,3,4,5]),[4,wf({baseUrl:s,token:o,signals:e})];case 2:return t=c.sent(),n=t.nonce,r=t.livenessUrl,T({url:r,nonce:n}),[3,5];case 3:return a=c.sent(),y(ho(a instanceof hf?a.message:"request_failed")),re(),[3,5];case 4:return v(!1),[7];case 5:return[2]}})})}var ie=(0,l().useCallback)(function(e){T(null),"error"===e.type&&y(ho(e.code,e.message)),re()},[re]),ae=function(){y(""),O(!0),ee&&oe()},le=function(){return n(_o())},se=function(){return L(!0)},ce=(0,a().jsx)(af,{stepNumber:u,title:"Identity Verification",status:Z});if("loading"===J||"skip"===J)return(0,a().jsxs)(a().Fragment,{children:[ce,(0,a().jsx)("div",{className:"mt-16",children:m?(0,a().jsxs)(a().Fragment,{children:[(0,a().jsx)("p",{className:"text-sm text-red-500",children:m}),(0,a().jsx)(Pa,{variant:"primary",size:"lg",className:"mt-6",onClick:function(){return C(function(e){return e+1})},children:"Try again"})]}):(0,a().jsx)(ef,{size:"md"})})]});var ue=function(e){return void 0===e&&(e="Continue"),X.canProceed&&!A&&(0,a().jsxs)(Pa,{variant:"outline",size:"lg",className:"items-center gap-3",onClick:le,disabled:g,children:[e,(0,a().jsx)(ba,{className:"w-6 h-6"})]})},de=(0,a().jsx)(Pa,{variant:"outline",size:"lg",onClick:se,children:"See how to do it"}),fe=function(e,t,n,r){return(0,a().jsxs)("div",{className:"flex items-start text-sm",children:[(0,a().jsx)(el,{id:e,className:"mt-1 mr-4 h-6 w-6",checked:t,onCheckedChange:function(e){return n(!0===e)}}),(0,a().jsx)("label",{htmlFor:e,className:"cursor-pointer text-sm text-gray-600",children:r})]})},pe=fp(fp(["We saw your face"],ee?["We know you are really there"]:[],!0),"verified"===J?["Your face matches the photo on your record"]:[],!0),he=null,me=null;return"consent"===J?(he=(0,a().jsx)(ap,{baseUrl:s,livenessOn:ee,onOpenGuide:se}),me=(0,a().jsxs)(a().Fragment,{children:[fe("identity-consent",F,B,Tf),(0,a().jsxs)("div",{className:"mt-8 flex items-center gap-6",children:[(0,a().jsxs)(Pa,{variant:"primary",size:"lg",className:"items-center gap-3",disabled:!F||g,onClick:function(){return up(void 0,void 0,void 0,function(){var e,t;return dp(this,function(n){switch(n.label){case 0:if(!o)return[2];v(!0),y(""),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,xf({baseUrl:s,token:o,version:"2026-10-06"})];case 2:return e=n.sent(),G(e),[3,4];case 3:return t=n.sent(),y(ho(t instanceof hf?t.message:"request_failed")),v(!1),[2];case 4:return v(!1),function(e,t){return mo(e)&&"capture"===Bf(e,t).state}(e,i)&&oe(),[2]}})})},children:[g?"Starting…":"Start face check",(0,a().jsx)(ba,{className:"w-6 h-6"})]}),(0,a().jsx)(Pa,{variant:"outline",size:"lg",onClick:function(){return W(!0)},children:"I do not agree"})]}),U&&!F&&(0,a().jsx)("p",{className:"mt-4 text-sm text-red-500",children:jf}),m&&(0,a().jsx)("p",{className:"mt-4 text-sm text-red-500",children:m})]})):"capture"===J&&ee?(he=A?(0,a().jsxs)(Kf,{banner:m,children:[(0,a().jsx)(lp,{url:A.url,nonce:A.nonce,onDone:ie,className:"h-[60rem] w-full"}),(0,a().jsx)("p",{className:"mt-3 text-center text-sm text-base-500",children:If})]}):(0,a().jsx)(Kf,{banner:m,children:(0,a().jsxs)(Yf,{children:[(0,a().jsx)(op,{tone:"info",baseUrl:s}),(0,a().jsxs)("div",{children:[(0,a().jsx)(ep,{title:g?"Opening the face check…":"Ready for your face check"}),(0,a().jsx)("ul",{className:"mt-4 list-disc space-y-1 pl-5 text-base leading-relaxed text-base-500",children:Nf.map(function(e){return(0,a().jsx)("li",{children:e},e)})}),(0,a().jsx)("p",{className:"mt-4 rounded-md bg-scaler-100 px-4 py-3 text-sm text-base-700",children:Of})]})]})}),me=!A&&(0,a().jsxs)("div",{className:"flex items-center gap-6",children:[(0,a().jsxs)(Pa,{variant:"primary",size:"lg",className:"items-center gap-3",disabled:g,onClick:oe,children:[g?"Starting…":"Start face check",(0,a().jsx)(ba,{className:"w-6 h-6"})]}),de,ue("Continue without verifying")]})):"capture"===J?(he=(0,a().jsx)(Kf,{banner:m,children:(0,a().jsxs)($f,{children:[(0,a().jsxs)("div",{children:[(0,a().jsx)(Xf,{ring:x?"framed":"searching",pill:"Put your face in the oval",live:!0,children:(0,a().jsx)("video",{ref:$,autoPlay:!0,muted:!0,playsInline:!0,onLoadedData:function(){return k(!0)},className:"h-full w-full object-cover",style:{transform:"scale(-1, 1)"}})}),(0,a().jsx)("p",{className:"mt-3 text-center text-sm text-base-500",children:If})]}),(0,a().jsx)(Jf,{spinner:!x,children:x?"You are in frame. Start when ready.":"Waiting for you to sit in front of the camera"})]})}),me=te&&(0,a().jsxs)("div",{className:"flex items-center gap-6",children:[(0,a().jsxs)(Pa,{variant:"primary",size:"lg",className:"items-center gap-3",disabled:!x||g,onClick:function(){return up(void 0,void 0,void 0,function(){var e,t,n,r;return dp(this,function(i){switch(i.label){case 0:if(!(e=$.current)||!o)return[2];v(!0),y(""),i.label=1;case 1:return i.trys.push([1,4,5,6]),[4,hp(e)];case 2:return t=i.sent(),n=G,[4,vf({baseUrl:s,token:o,image:t,signals:ne()})];case 3:return n.apply(void 0,[i.sent()]),[3,6];case 4:return r=i.sent(),y(ho(r instanceof hf?r.message:"upload_failed")),[3,6];case 5:return v(!1),[7];case 6:return[2]}})})},children:[g?"Checking…":"Start face check",(0,a().jsx)(ba,{className:"w-6 h-6"})]}),de,ue("Continue without verifying")]})):"analysing"===J?he=(0,a().jsx)(Kf,{children:(0,a().jsxs)(Yf,{children:[(0,a().jsx)(op,{tone:"info",baseUrl:s}),(0,a().jsx)(Jf,{children:X.title})]})}):"verified"===J||"captured"===J?(he=(0,a().jsx)(Kf,{children:(0,a().jsxs)(Yf,{children:[(0,a().jsx)(op,{tone:"success",baseUrl:s}),(0,a().jsxs)("div",{children:[(0,a().jsx)(ep,{title:X.title,sub:X.body,done:!0}),(0,a().jsx)(Zf,{rows:pe})]})]})}),me=(0,a().jsxs)(a().Fragment,{children:[fe("identity-confirm",M,R,Pf),(0,a().jsxs)(Pa,{variant:"primary",size:"lg",className:"mt-8 items-center gap-3",disabled:!M,onClick:le,children:["Next step",(0,a().jsx)(ba,{className:"w-6 h-6"})]})]})):"manually_verified"===J?(he=(0,a().jsx)(Kf,{children:(0,a().jsxs)(Yf,{children:[(0,a().jsx)(op,{tone:"success",baseUrl:s}),(0,a().jsx)(ep,{title:X.title,sub:X.body,done:!0})]})}),me=(0,a().jsxs)(a().Fragment,{children:[fe("identity-confirm",M,R,Pf),(0,a().jsxs)(Pa,{variant:"primary",size:"lg",className:"mt-8 items-center gap-3",disabled:!M,onClick:le,children:["Next step",(0,a().jsx)(ba,{className:"w-6 h-6"})]})]})):"attempt_failed"===J?(he=(0,a().jsx)(Kf,{banner:m||X.banner,children:(0,a().jsxs)(Yf,{children:[(0,a().jsx)(op,{tone:"error",baseUrl:s}),(0,a().jsxs)("div",{children:[(0,a().jsx)(ep,{title:X.title,sub:X.body}),(0,a().jsx)(rp,{tip:X.tip,onOpenGuide:se}),null!=X.attemptsLeft&&(0,a().jsx)(tp,{label:"Attempts left",value:X.attemptsLeft})]})]})}),me=(0,a().jsxs)("div",{className:"flex items-center gap-6",children:[X.canRetry&&(0,a().jsx)(Pa,{variant:"primary",size:"lg",onClick:ae,children:"Try again"}),de,ue()]})):"blocked"===J?(he=(0,a().jsx)(Kf,{banner:X.banner,children:(0,a().jsxs)(Yf,{children:[(0,a().jsx)(op,{tone:"error",baseUrl:s}),(0,a().jsxs)("div",{children:[(0,a().jsx)(ep,{title:X.title,sub:X.body}),(0,a().jsx)("ul",{className:"mt-4 list-disc space-y-2 pl-5 text-base text-base-500",children:X.bullets.map(function(e){return(0,a().jsx)("li",{children:e},e)})}),X.referenceId&&(0,a().jsx)(tp,{label:"Reference ID",value:X.referenceId})]})]})}),me=(0,a().jsx)(Pa,{variant:"outline",size:"lg",onClick:re,children:"Check again"})):"service_error"===J&&(he=(0,a().jsx)(Kf,{banner:X.banner,children:(0,a().jsxs)(Yf,{children:[(0,a().jsx)(op,{tone:"neutral",baseUrl:s}),(0,a().jsxs)("div",{children:[(0,a().jsx)(ep,{title:X.title,sub:X.body}),null!=X.attemptsUsed&&(0,a().jsx)(tp,{label:"Attempts used",value:X.attemptsUsed})]})]})}),me=(0,a().jsxs)("div",{className:"flex items-center gap-6",children:[(0,a().jsx)(Pa,{variant:"primary",size:"lg",onClick:ae,children:"Try again"}),(0,a().jsx)(Pa,{variant:"outline",size:"lg",onClick:re,children:"Check again"}),ue()]})),(0,a().jsxs)(a().Fragment,{children:[ce,(0,a().jsxs)("div",{className:"mt-16 w-full",children:[he,(0,a().jsx)(ip,{onOpen:se}),me&&(0,a().jsx)("div",{className:"mt-16",children:me})]}),(0,a().jsx)(sp,{baseUrl:s,isOpen:I,onClose:function(){return L(!1)}})]})},{})}};function _m(){var e,t=ro(function(e){return e.workflow}),n=t.activeStep,r=t.enableProctoring,o=t.steps,i=t.modalOpen,s=ro(function(e){return e.workflow.isDisqualified}),c=ro(function(e){return e.workflow.beepConfig}),u=(0,l().useState)(i),d=u[0],f=u[1],p=(0,l().useState)(!1),h=p[0],m=p[1],y=(0,l().useState)(3),b=y[0],g=y[1],v=(0,l().useMemo)(function(){return bo.reduce(function(e,t){var n;return(null===(n=o[t])||void 0===n?void 0:n.enabled)&&(e[t]=Sm[t]),e},{})},[o]),w=(0,l().useMemo)(function(){return Object.entries(o).reduce(function(e,t){var n=t[0],r=t[1];return r.enabled&&"error"===aa(Object.values(r.subSteps))&&e.push(n),e},[])},[o]),x=(0,l().useState)(n),k=x[0],S=x[1];return(0,l().useEffect)(function(){i&&(S(n),f(!0),m(!1),g(2))},[i,n]),(0,l().useEffect)(function(){if(!i&&d){s||m(!0);var e=setInterval(function(){g(function(t){return t<=1?(clearInterval(e),f(!1),m(!1),0):t-1})},1e3);return function(){return clearInterval(e)}}},[i,d,s]),(0,a().jsx)(ia,{isOpen:d,modalClassName:"w-[100%] h-[100%] flex flex-col items-stretch overflow-hidden",children:h?(0,a().jsxs)("div",{className:"flex flex-col items-center justify-center h-full bg-white space-y-4",children:[(0,a().jsx)(ni,{className:"w-32 h-32 text-white fill-green-600"}),(0,a().jsx)("div",{className:"text-3xl font-semibold text-green-600",children:"Compatibility Check Success"}),(0,a().jsxs)("div",{className:"text-lg text-gray-500",children:["Redirecting back to the page in ",b," seconds"]})]}):(0,a().jsxs)(a().Fragment,{children:[d&&r&&n&&(0,a().jsx)(cf,{activeStep:k,modalOpen:d,failingSteps:w,beepConfig:c}),(0,a().jsxs)("div",{className:"grow flex flex-row items-center overflow-hidden",children:[(0,a().jsx)("div",{className:"flex flex-col justify-center bg-base-100 p-20 pt-24 m-w-96 w-1/3 h-[calc(100vh-22px)] overflow-y-auto",children:(0,a().jsxs)("div",{className:"h-[80%]",children:[(0,a().jsx)(sa,{}),(0,a().jsx)(ma,{step_data:v})]})}),(0,a().jsx)("div",{className:"flex flex-col justify-center p-20 pt-20 flex-1 overflow-y-auto h-full",children:null===(e=v[n])||void 0===e?void 0:e.component})]})]})})}n(5236);const Cm=`<div class="warning-modal" id="warning-modal"> <div class="warning-modal__body"> <div class="warning-modal__icon-wrap"> <img src="${new URL(n(4989),n.b)}" class="warning-modal__warning-icon" id="warning-modal-icon"> </div> <div class="warning-modal__content"> <div class="warning-modal__heading" id="warning-modal-heading"> Warning </div> <div class="warning-modal__text" id="warning-modal-text"> You switched tabs/windows during the test. Repeating this action may result in disqualification and a failed test attempt. </div> </div> </div> <div class="warning-modal__action" id="warning-modal-action"> Continue with the test </div> <span class="warning-modal__close-btn" id="warning-modal-close-btn"> &times; </span> </div>`;var Em=n(4989);function Am(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=document.getElementById("warning-modal");if(t){if(e&&("click"===e.type||e instanceof Event))return void(t.style.display="none");if(e!==t.classList.contains("warning-modal--networkAlert"))return;t.style.display="none"}}function Tm(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=document.getElementById("warning-modal"),i=document.getElementById("warning-modal-heading"),a=document.getElementById("warning-modal-text"),l=document.getElementById("warning-modal-action");o&&i&&a&&l&&(i.textContent=e,a.textContent=t,o.classList.remove("warning-modal--networkAlert"),o.style.display="none",r&&o.classList.add("warning-modal--networkAlert"),o.style.display="block",l.style.display=n?"none":"block")}function jm(){var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()}function Nm(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement}function Om(e){var t=e.onFullScreenEnabled,n=e.onFullScreenDisabled;function r(){Nm()?t():n()}Nm()?t():n(),document.addEventListener("fullscreenchange",r),document.addEventListener("webkitfullscreenchange",r),document.addEventListener("mozfullscreenchange",r),document.addEventListener("MSFullscreenChange",r)}function Pm(e){window.addEventListener("blur",function(){e(yp.browserBlur,!1)})}function Im(e){function t(t){!t.ctrlKey&&!t.metaKey||"c"!==t.key&&"x"!==t.key&&"v"!==t.key?(t.ctrlKey||t.metaKey)&&"V"===t.key&&t.shiftKey&&(t.preventDefault(),e(yp.copyPasteCut)):(t.preventDefault(),e(yp.copyPasteCut))}function n(t){t.preventDefault(),e(yp.copyPasteCut)}function r(t){t.preventDefault(),e(yp.copyPasteCut)}return window.addEventListener("keydown",t),window.addEventListener("cut",n),window.addEventListener("copy",n),window.addEventListener("paste",r),function(){window.removeEventListener("keydown",t),window.removeEventListener("cut",n),window.removeEventListener("copy",n),window.removeEventListener("paste",r)}}function Lm(e){window.addEventListener("beforeunload",function(t){window.isUserDisqualified||window.isTestEnding||(t.preventDefault(),t.returnValue="",e(yp.exitTab))})}var zm=[{code:"Tab",modifiers:["Alt"],eventType:"alt_tab"},{code:"Tab",modifiers:["Meta"],eventType:"meta_tab"},{code:"KeyI",modifiers:["Control","Shift"],eventType:"ctrl_shift_i"},{code:"KeyQ",modifiers:["Control"],eventType:"ctrl_q"},{code:"KeyW",modifiers:["Control"],eventType:"ctrl_w"},{code:"KeyC",modifiers:["Control","Shift"],eventType:"ctrl_shift_c"},{code:"KeyI",modifiers:["Meta","Alt"],eventType:"ctrl_shift_i"},{code:"KeyC",modifiers:["Meta","Shift"],eventType:"ctrl_shift_c"},{code:"KeyJ",modifiers:["Control","Shift"],eventType:"ctrl_shift_j"},{code:"KeyJ",modifiers:["Meta","Alt"],eventType:"ctrl_shift_j"},{code:"KeyM",modifiers:["Meta"],eventType:"cmd_m"},{code:"KeyH",modifiers:["Meta"],eventType:"cmd_h"},{code:"KeyW",modifiers:["Meta"],eventType:"cmd_w"},{code:"KeyQ",modifiers:["Meta"],eventType:"cmd_q"}];function Mm(e){function t(t){var n=t.code,r=t.metaKey,o=t.ctrlKey,i=t.altKey,a=t.shiftKey;zm.forEach(function(l){var s=l.code,c=l.modifiers,u=l.eventType,d=n===s,f=c.every(function(e){switch(e.toLowerCase()){case"meta":return r;case"control":return o;case"alt":return i;case"shift":return a;default:return!1}});d&&f&&(t.preventDefault(),e(yp.restrictedKeyEvent,u))})}return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}function Rm(e){document.addEventListener("contextmenu",function(t){t.preventDefault(),e(yp.rightClick)})}function Dm(e){document.addEventListener("visibilitychange",function(){document.hidden&&e(yp.tabSwitch)})}function Fm(){document.addEventListener("selectstart",function(e){e.preventDefault()})}function Bm(e){function t(t){"tab"===t.code.toLowerCase()&&(t.altKey||t.metaKey)&&(t.preventDefault(),e(yp.altTab))}return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}function qm(e){function t(t){"KeyI"===t.code&&(t.ctrlKey||t.metaKey)&&t.shiftKey&&(t.preventDefault(),e(yp.ctrlShiftI))}return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}function Um(e){function t(t){"KeyH"===t.code&&t.metaKey&&(t.preventDefault(),e(yp.cmdH))}return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}function Wm(e){function t(t){"KeyM"===t.code&&t.metaKey&&(t.preventDefault(),e(yp.cmdM))}return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}function Vm(e){function t(t){"KeyW"===t.code&&t.metaKey&&(t.preventDefault(),e(yp.cmdW))}return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}function Qm(e){function t(t){"KeyQ"===t.code&&t.metaKey&&(t.preventDefault(),e(yp.cmdQ))}return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}function Hm(e){function t(t){"KeyJ"===t.code&&(t.ctrlKey||t.metaKey)&&t.shiftKey&&(t.preventDefault(),e(yp.ctrlShiftJ))}return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}function Km(e){function t(t){"KeyQ"===t.code&&t.ctrlKey&&(t.preventDefault(),e(yp.ctrlQ))}return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}function $m(e){function t(t){"KeyW"===t.code&&t.ctrlKey&&(t.preventDefault(),e(yp.ctrlW))}return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}function Ym(e){function t(t){"KeyC"===t.code&&(t.ctrlKey||t.metaKey)&&t.shiftKey&&(t.preventDefault(),e(yp.ctrlShiftC))}return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}function Gm(e){return Gm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gm(e)}function Xm(){Xm=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:E(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",y={};function b(){}function g(){}function v(){}var w={};c(w,a,function(){return this});var x=Object.getPrototypeOf,k=x&&x(x(O([])));k&&k!==n&&r.call(k,a)&&(w=k);var S=v.prototype=b.prototype=Object.create(w);function _(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==Gm(u)&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,l)})}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=A(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function A(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Gm(t)+" is not iterable")}return g.prototype=v,o(S,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(C.prototype),c(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},_(S),c(S,s,"Generator"),c(S,a,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function Jm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Zm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jm(Object(n),!0).forEach(function(t){ey(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ey(e,t,n){return(t=function(e){var t=function(e){if("object"!=Gm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Gm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gm(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ty(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}var ny=null,ry={video:{width:{ideal:640},height:{ideal:480},frameRate:{ideal:4},facingMode:"user",advanced:[{aspectRatio:4/3},{resizeMode:"crop-and-scale"}]}};function oy(){return document.getElementById("webcam")}var iy=null;function ay(e){var t=e.onSnapshotFailure,n=e.frequency,r=e.resizeDimensions;return iy&&clearInterval(iy),iy=setInterval(function(){!function(e){var t=e.onSnapshotFailure,n=e.resizeDimensions,r=oy(),o=tm();if(r){var i=document.createElement("canvas"),a=i.getContext("2d");i.width=r.videoWidth,i.height=r.videoHeight,a.drawImage(r,0,0,i.width,i.height),function(e,t){return new Promise(function(n,r){var o=t.width,i=t.height,a=new Image;a.src=e,a.onload=function(){var e=document.createElement("canvas"),t=e.getContext("2d");e.width=o,e.height=i,t.drawImage(a,0,0,o,i),e.toBlob(function(e){e?n(e):r(new Error("Failed to create blob"))},"image/jpeg",.7)},a.onerror=function(){r(new Error("Failed to load image"))}})}(i.toDataURL("image/jpeg"),n).then(function(e){o.addSnapshot(e,"webcam").catch(function(e){null==t||t({error:e})})}).catch(function(e){null==t||t({error:e})})}else null==t||t({error:new Error("No video element found")})}({onSnapshotFailure:t,resizeDimensions:r})},n),iy}function ly(e,t,n){return e<10&&t<10&&n<10}function sy(e,t,n,r,o){var i=document.createElement("canvas"),a=i.getContext("2d");i.width=e.videoWidth,i.height=e.videoHeight,setTimeout(function(){var t,l;a.drawImage(e,0,0,i.width,i.height),t=a.getImageData(0,0,i.width,i.height).data,l=n,function(e){for(var t=0,n=0;n<e.length;n+=4)ly(e[n],e[n+1],e[n+2])&&(t+=1);return t}(t)/(t.length/4)>=l?null==o||o({error:new Error("Mostly black video feed detected")}):null==r||r({videoElement:e})},1e3)}function cy(){return uy.apply(this,arguments)}function uy(){var e;return e=Xm().mark(function e(){var t;return Xm().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,navigator.mediaDevices.enumerateDevices();case 3:return t=e.sent,e.abrupt("return",t.filter(function(e){return"videoinput"===e.kind}).map(function(e){return{id:e.deviceId,label:e.label||"Camera ".concat(e.deviceId.slice(0,4),"...")}}));case 7:return e.prev=7,e.t0=e.catch(0),console.error("Error getting cameras:",e.t0),e.abrupt("return",[]);case 11:case"end":return e.stop()}},e,null,[[0,7]])}),uy=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){ty(i,r,o,a,l,"next",e)}function l(e){ty(i,r,o,a,l,"throw",e)}a(void 0)})},uy.apply(this,arguments)}function dy(e){var t=e.onWebcamEnabled,n=e.onWebcamDisabled,r=e.optional,o=e.blackPixelThreshold,i=void 0===o?.8:o,a=e.deviceId,l=void 0===a?"":a;if(ny){var s=oy();if(s)return s.srcObject=ny,void(s.onloadedmetadata=function(){s.play(),sy(s,0,i,t,n)})}navigator.mediaDevices.getUserMedia(Zm(Zm({},ry),{},{video:Zm(Zm({},ry.video),{},{deviceId:{exact:l||void 0}})})).then(function(e){ny=e;var r=oy();r&&(r.srcObject=e,r.onloadedmetadata=function(){r.play(),sy(r,0,i,t,n)})}).catch(function(e){r?"NotFoundError"!==e.name&&(null==n||n({error:e})):null==n||n({error:e})})}var fy=n(2859),py={};function hy(e){return hy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hy(e)}function my(){my=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:E(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",y={};function b(){}function g(){}function v(){}var w={};c(w,a,function(){return this});var x=Object.getPrototypeOf,k=x&&x(x(O([])));k&&k!==n&&r.call(k,a)&&(w=k);var S=v.prototype=b.prototype=Object.create(w);function _(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==hy(u)&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,l)})}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=A(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function A(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(hy(t)+" is not iterable")}return g.prototype=v,o(S,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(C.prototype),c(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},_(S),c(S,s,"Generator"),c(S,a,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function yy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function by(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yy(Object(n),!0).forEach(function(t){gy(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gy(e,t,n){return(t=function(e){var t=function(e){if("object"!=hy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=hy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hy(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vy(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}py.styleTagTransform=Z()(),py.setAttributes=X()(),py.insert=G()().bind(null,"head"),py.domAPI=Y()(),py.insertStyleElement=J()(),$()()(fy.A,py),fy.A&&fy.A.locals&&fy.A.locals;var wy=function(){var e,t=(e=my().mark(function e(t){var n,r,o,i,a,l,s,c;return my().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.baseUrl,r=t.endpoint,o=t.defaultPayload,i=t.onSuccess,a=t.onFailure,e.prev=1,(l=new URL(r||"/api/v1/proctoring/events",n)).search=new URLSearchParams(by({},o)).toString(),e.next=6,fetch(l.toString());case 6:if((s=e.sent).ok){e.next=9;break}throw new Error("HTTP error! status: ".concat(s.status));case 9:return e.next=11,s.json();case 11:c=e.sent,null==i||i(c),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(1),null==a||a(e.t0);case 18:case"end":return e.stop()}},e,null,[[1,15]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){vy(i,r,o,a,l,"next",e)}function l(e){vy(i,r,o,a,l,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}();function xy(){return new Worker(n.p+"violation.worker.js")}function ky(){return new Worker(n.p+"compatibility.worker.js")}function Sy(){return new Worker(n.p+"network.worker.js")}function _y(e){return _y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_y(e)}function Cy(){Cy=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:E(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",y={};function b(){}function g(){}function v(){}var w={};c(w,a,function(){return this});var x=Object.getPrototypeOf,k=x&&x(x(O([])));k&&k!==n&&r.call(k,a)&&(w=k);var S=v.prototype=b.prototype=Object.create(w);function _(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==_y(u)&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,l)})}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=A(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function A(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(_y(t)+" is not iterable")}return g.prototype=v,o(S,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(C.prototype),c(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},_(S),c(S,s,"Generator"),c(S,a,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function Ey(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Ay(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Ey(i,r,o,a,l,"next",e)}function l(e){Ey(i,r,o,a,l,"throw",e)}a(void 0)})}}function Ty(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ty(Object(n),!0).forEach(function(t){Ny(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ty(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ny(e,t,n){return(t=Py(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Py(r.key),r)}}function Py(e){var t=function(e){if("object"!=_y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_y(t)?t:t+""}var Iy=function(){return e=function e(t){var n,r=this,o=t.baseUrl,i=void 0===o?null:o,a=t.eventsConfig,l=void 0===a?{}:a,s=t.disqualificationConfig,c=void 0===s?{}:s,u=t.config,d=void 0===u?{}:u,f=t.snapshotConfig,p=void 0===f?{}:f,h=t.screenshotConfig,m=void 0===h?{}:h,y=t.compatibilityCheckConfig,b=void 0===y?{}:y,g=t.callbacks,v=void 0===g?{}:g,w=t.enableAllAlerts,x=void 0!==w&&w,k=t.headerOptions,S=void 0===k?{}:k,_=t.mobilePairingConfig,C=void 0===_?{}:_,E=t.qrCodeConfig,A=void 0===E?{}:E,T=t.workerConfig,j=void 0===T?{}:T,N=t.networkConfig,O=void 0===N?{}:N;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.baseUrl=i,this.eventsConfig=jy({maxEventsBeforeSend:5,endpoint:l.endpoint},l),this.headerOptions=jy({csrfToken:null,contentType:"application/x-www-form-urlencoded"},S),this.compatibilityCheckConfig=jy({enable:!0,showAlert:x,frequency:1e4,maxFrequency:6e4,cpuThreshold:30,disqualificationTimeout:45e3,memoryLimit:200,showTimer:!0,buttonText:"Confirm Settings",headingText:"System Check: Configure Required Settings",defaultPayload:{},endpoint:""},b),this.disqualificationConfig=jy({enabled:!0,eventCountThreshold:5,showAlert:x,alertHeading:"Disqualification Alert",alertMessage:"You have been disqualified from the contest"},c),this.mobilePairingConfig=jy({enabled:!1,defaultPayload:{},endpoint:""},C),this.qrCodeConfig=jy({defaultPayload:{},endpoint:""},A),this.proctoringInitialised=!1,this.config=(Ny(Ny(Ny(Ny(Ny(Ny(Ny(Ny(Ny(Ny(n={},yp.tabSwitch,jy({name:yp.tabSwitch,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.tabSwitch)),yp.browserBlur,jy({name:yp.browserBlur,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.browserBlur)),yp.rightClick,jy({name:yp.rightClick,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.rightClick)),yp.exitTab,jy({name:yp.exitTab,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.exitTab)),yp.copyPasteCut,jy({name:yp.copyPasteCut,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.copyPasteCut)),yp.restrictedKeyEvent,jy({name:yp.restrictedKeyEvent,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.restrictedKeyEvent)),yp.textSelection,jy({name:yp.textSelection,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.textSelection)),yp.fullScreen,jy({name:yp.fullScreen,enabled:!0,showAlert:!1,recordViolation:!0,disqualify:!0},d.fullScreen)),yp.ctrlShiftI,jy({name:yp.ctrlShiftI,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.ctrlShiftI)),yp.ctrlShiftC,jy({name:yp.ctrlShiftC,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.ctrlShiftC)),Ny(Ny(Ny(Ny(Ny(Ny(Ny(Ny(Ny(n,yp.ctrlShiftJ,jy({name:yp.ctrlShiftJ,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.ctrlShiftJ)),yp.altTab,jy({name:yp.altTab,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.altTab)),yp.ctrlQ,jy({name:yp.ctrlQ,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.ctrlQ)),yp.ctrlW,jy({name:yp.ctrlW,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.ctrlW)),yp.cmdH,jy({name:yp.cmdH,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.cmdH)),yp.cmdQ,jy({name:yp.cmdQ,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.cmdQ)),yp.cmdM,jy({name:yp.cmdM,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.cmdM)),yp.cmdW,jy({name:yp.cmdW,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.cmdW)),yp.screenshareExit,jy({name:yp.screenshareExit,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.screenshareExit))),this.snapshotConfig=jy({enabled:!1,frequency:5e3,resizeTo:bp,optional:!1,deviceId:null},p),this.screenshotConfig=jy({enabled:!0,frequency:5e3,resizeTo:gp},m),this.networkConfig=jy({enabled:!1,interval:5e3,testResourceURL:"https://dajh2p2mfq4ra.cloudfront.net/assets/icons/ib-logo-hire-8f3406787bc4241628bb7e5bea43d56a7ab275401134c297b6631c8b81cd3996.png",timeoutMs:1e4,speedThresholdMbps:1,alertCooldownSec:60},O),this.callbacks={onDisqualified:v.onDisqualified||function(){},onWebcamDisabled:v.onWebcamDisabled||function(){},onWebcamEnabled:v.onWebcamEnabled||function(){},onSnapshotSuccess:v.onSnapshotSuccess||function(){},onSnapshotFailure:v.onSnapshotFailure||function(){},onScreenShareSuccess:v.onScreenShareSuccess||function(){},onScreenShareFailure:v.onScreenShareFailure||function(){},onScreenShareEnd:v.onScreenShareEnd||function(){},onScreenshotFailure:v.onScreenshotFailure||function(){},onScreenshotSuccess:v.onScreenshotSuccess||function(){},onFullScreenEnabled:v.onFullScreenEnabled||function(){},onFullScreenDisabled:v.onFullScreenDisabled||function(){},onCompatibilityCheckSuccess:v.onCompatibilityCheckSuccess||function(){},onCompatibilityCheckFail:v.onCompatibilityCheckFail||function(){},onNetworkUpdate:v.onNetworkUpdate||function(){}},this.violationEvents=[],this.recordedViolationEvents=[],this.failedCompatibilityChecks=!1,this.compatibilityCheckInterval=null,this.initializeProctoring=this.initializeProctoring.bind(this),this.runCompatibilityChecks=this.runCompatibilityChecks.bind(this),this.startCompatibilityChecks=this.startCompatibilityChecks.bind(this),this.runAdaptiveCompatibilityChecks=this.runAdaptiveCompatibilityChecks.bind(this),this.initialFullScreen=!1,window.isUserDisqualified=!1,function(){var e=document.createElement("div");e.innerHTML=Cm,document.body.appendChild(e);var t=document.getElementById("warning-modal-close-btn"),n=document.getElementById("warning-modal-action"),r=document.getElementById("warning-modal-icon");r&&(r.src=Em),t&&t.addEventListener("click",Am),n&&n.addEventListener("click",Am)}(),this.snapshotConfig.enabled&&function(){if(!document.getElementById("webcam-wrapper")){var e=document.createElement("div");document.body.appendChild(e);var t=document.createElement("div");t.innerHTML='<div id="webcam-wrapper"> <video autoplay playsinline id="webcam" style="display:none"></video> </div>',e.appendChild(t)}}(),document.addEventListener("keydown",function(e){if(!Nm()&&("Enter"===e.key||"Return"===e.key)){jm();var t=document.getElementById("fullscreenBlocker");t&&(t.style.display="none")}}),this.queueManager=tm({screenshot:function(e){return r.callbacks.onScreenshotSuccess(e)},webcam:function(e){return r.callbacks.onSnapshotSuccess(e)}},{networkCheckInterval:5e3}),this.screenshotIntervalId=null,this.snapshotIntervalId=null,this.workerConfig=jy({violationWorkerUrl:null,compatibilityWorkerUrl:null,networkWorkerUrl:null},j),this.violationWorker=this.workerConfig.violationWorkerUrl?new Worker(this.workerConfig.violationWorkerUrl,{type:"classic"}):new xy,this.violationWorker.addEventListener("message",this.handleWorkerMessage.bind(this)),this.violationWorker.postMessage({type:"INIT",data:{baseUrl:this.eventsConfig.baseUrl,endpoint:this.eventsConfig.endpoint,maxEventsBeforeSend:this.eventsConfig.maxEventsBeforeSend,contentType:this.headerOptions.contentType,csrfToken:this.headerOptions.csrfToken}}),this.networkCheckInterval=null,this.lastNetworkCheckResult=null,this.NETWORK_CHECK_FREQUENCY=3e4,this.webcamStatus={isEnabled:!1,error:null},this.compatibilityWorker=this.workerConfig.compatibilityWorkerUrl?new Worker(this.workerConfig.compatibilityWorkerUrl,{type:"classic"}):new ky,this.compatibilityWorker.postMessage({type:"INIT",data:{baseUrl:this.baseUrl,frequency:this.compatibilityCheckConfig.frequency,maxFrequency:this.compatibilityCheckConfig.maxFrequency}}),this.networkWorker=null,this.lastNetworkAlertTimestamp=0},t=[{key:"initializeProctoring",value:(a=Ay(Cy().mark(function e(){var t;return Cy().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.proctoringInitialised=!0,!this.screenshotConfig.enabled){e.next=4;break}return e.next=4,this.handleScreenshareRequest();case 4:this.config.fullScreen.enabled&&Om({onFullScreenDisabled:this.handleFullScreenDisabled.bind(this),onFullScreenEnabled:this.handleFullScreenEnabled.bind(this)}),this.config.tabSwitch.enabled&&Dm(this.handleViolation.bind(this)),this.config.browserBlur.enabled&&Pm(this.handleViolation.bind(this)),this.config.rightClick.enabled&&Rm(this.handleViolation.bind(this)),this.config.exitTab.enabled&&Lm(this.handleViolation.bind(this)),this.config.copyPasteCut.enabled&&Im(this.handleViolation.bind(this)),this.config.ctrlShiftI.enabled&&qm(this.handleViolation.bind(this)),this.config.ctrlShiftC.enabled&&Ym(this.handleViolation.bind(this)),this.config.ctrlShiftJ.enabled&&Hm(this.handleViolation.bind(this)),this.config.altTab.enabled&&Bm(this.handleViolation.bind(this)),this.config.ctrlQ.enabled&&Km(this.handleViolation.bind(this)),this.config.ctrlW.enabled&&$m(this.handleViolation.bind(this)),this.config.cmdH.enabled&&Um(this.handleViolation.bind(this)),this.config.cmdW.enabled&&Vm(this.handleViolation.bind(this)),this.config.cmdM.enabled&&Wm(this.handleViolation.bind(this)),this.config.cmdQ.enabled&&Qm(this.handleViolation.bind(this)),this.config.restrictedKeyEvent.enabled&&Mm(this.handleViolation.bind(this)),this.config.textSelection.enabled&&Fm(),this.snapshotConfig.enabled&&(t=localStorage.getItem("selectedWebcamDeviceId"),dy({onWebcamEnabled:this.handleWebcamEnabled.bind(this),onWebcamDisabled:this.handleWebcamDisabled.bind(this),optional:this.snapshotConfig.optional,deviceId:t||this.snapshotConfig.deviceId})),this.networkConfig.enabled&&this.startNetworkMonitoring(),this.handleWindowUnload(),this.startCompatibilityChecks();case 26:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})},{key:"startNetworkMonitoring",value:function(){var e=this;this.networkWorker||(this.networkWorker=this.workerConfig.networkWorkerUrl?new Worker(this.workerConfig.networkWorkerUrl,{type:"classic"}):new Sy,this.networkWorker.onmessage=function(t){var n=t.data,r=n.type,o=n.payload;"NETWORK_UPDATE"===r&&e.handleNetworkUpdate(o)},this.networkWorker.postMessage({type:"START",payload:jy({interval:this.networkConfig.interval,testResourceURL:this.networkConfig.testResourceURL,timeoutMs:this.networkConfig.timeoutMs},this.networkConfig)}))}},{key:"handleNetworkUpdate",value:function(e){this.callbacks.onNetworkUpdate&&this.callbacks.onNetworkUpdate(e);var t=this.networkConfig,n=t.speedThresholdMbps,r=t.alertCooldownSec,o=e.speedKbps,i=e.error,a=Date.now();i||o<1024*n?(a-this.lastNetworkAlertTimestamp)/1e3>=r&&(this.lastNetworkAlertTimestamp=a,Tm("Weak Network Detected","Connect to a stronger internet to avoid issues during your contest",!1,!0)):Am(!0)}},{key:"stopNetworkMonitoring",value:function(){this.networkWorker&&(this.networkWorker.postMessage({type:"STOP"}),this.networkWorker.terminate(),this.networkWorker=null)}},{key:"startCompatibilityChecks",value:function(){var e=this;this.compatibilityCheckConfig.enable&&(this.compatibilityCheckInterval=setTimeout(function(){e.runAdaptiveCompatibilityChecks()},this.compatibilityCheckConfig.frequency))}},{key:"runAdaptiveCompatibilityChecks",value:function(){var e=this;if(!window.isTestEnding){var t=performance.now(),n=this.compatibilityCheckConfig.memoryLimit;(window.performance&&window.performance.memory?window.performance.memory.usedJSHeapSize/1024/1024:0)<n&&this.runCompatibilityChecks(this.handleCompatibilitySuccess.bind(this),this.handleCompatibilityFailure.bind(this));var r=performance.now()-t;console.log("%c%s","color: #ff2525","Time take for running Compatibility checks (in ms):",r),console.log("%c%s","color: #ff2525","Is CPU peformance fine ?: ",r<this.compatibilityCheckConfig.cpuThreshold);var o=r<this.compatibilityCheckConfig.cpuThreshold?this.compatibilityCheckConfig.frequency:this.compatibilityCheckConfig.maxFrequency;this.compatibilityCheckInterval=setTimeout(function(){e.runAdaptiveCompatibilityChecks()},o)}}},{key:"handleCompatibilitySuccess",value:function(e){this.callbacks.onCompatibilityCheckSuccess({passedChecks:e}),this.proctoringInitialised&&this.compatibilityWorker.postMessage({type:"SEND_COMPATIBILITY_EVENT",data:{checks:e,baseUrl:this.baseUrl,endpoint:this.compatibilityCheckConfig.endpoint,payload:jy(jy({},this.compatibilityCheckConfig.defaultPayload),{},{token:window.PROCTORING_SESSION_TOKEN})}})}},{key:"handleCompatibilityFailure",value:function(e){console.log("%c⧭","color: #d90000","Compatibility Failed, checks: ",e),this.callbacks.onCompatibilityCheckFail({passedChecks:e}),this.proctoringInitialised&&this.compatibilityWorker.postMessage({type:"SEND_COMPATIBILITY_EVENT",data:{checks:e,baseUrl:this.baseUrl,endpoint:this.compatibilityCheckConfig.endpoint,payload:jy(jy({},this.compatibilityCheckConfig.defaultPayload),{},{token:window.PROCTORING_SESSION_TOKEN})}})}},{key:"stopCompatibilityChecks",value:function(){this.compatibilityCheckInterval&&clearInterval(this.compatibilityCheckInterval)}},{key:"checkMobileCompatiblity",value:function(e){var t=e.onSuccess,n=e.onFailure;wy({baseUrl:this.baseUrl,endpoint:this.mobilePairingConfig.endpoint,defaultPayload:jy({token:window.PROCTORING_SESSION_TOKEN},this.mobilePairingConfig.defaultPayload),onSuccess:t,onFailure:n})}},{key:"runCompatibilityChecks",value:function(e,t){var n=this,r=this.screenshotConfig.enabled,o=this.snapshotConfig.enabled,i=this.snapshotConfig.enabled||this.screenshotConfig.enabled,a=this.config[yp.fullScreen].enabled,l=this.mobilePairingConfig.enabled,s=this.mobilePairingConfig.enabled,c=this.mobilePairingConfig.enabled,u={screenshare:!0,webcam:!0,mobileSnapshot:!0,mobileBattery:!0,mobileSetup:!0,browser:!0,networkSpeed:!0,fullscreen:!0},d=[];if(o){var f=new Promise(function(e,t){var r=localStorage.getItem("selectedWebcamDeviceId");dy({onWebcamEnabled:function(){return e("webcam")},onWebcamDisabled:function(){u.webcam=!1,t("webcam")},optional:n.snapshotConfig.optional,deviceId:r||n.snapshotConfig.deviceId})});d.push(f)}var p=new Promise(function(e,t){ll().isSupported?e("browser"):(u.browser=!1,t("browser"))});if(d.push(p),i){var h=new Promise(function(e,t){i?e("network_speed"):(u.networkSpeed=!1,t("network_speed"))});d.push(h)}if(a){var m=new Promise(function(e,t){Nm()?e("fullscreen"):(u.fullscreen=!1,t("fullscreen"))});d.push(m)}if(r){var y=new Promise(function(e,t){dm({onSuccess:function(){e("screenshare")},onFailure:function(e){u.screenshare=!1,t("screenshare"),console.warn(e)}})});d.push(y)}if(s||c||l){var b=new Promise(function(e,t){n.checkMobileCompatiblity({onSuccess:function(n){if(n.success)e({success:!0,checks:u});else{var r,o=null===(r=n.checks)||void 0===r?void 0:r.secondary_camera.checks;Object.keys(o).forEach(function(e){var t=o[e];switch(e){case"setup":null!=t&&t.success||(u.mobileSetup=!1);break;case"snapshot":null!=t&&t.success||(u.mobileSnapshot=!1);break;case"battery":null!=t&&t.success||(u.mobileBattery=!1)}}),t({success:!1,checks:u})}},onFailure:function(){u.mobileBattery=!1,u.mobileSnapshot=!1,u.mobileSetup=!1,t({success:!1,checks:u})}})});d.push(b)}Promise.allSettled(d).then(function(r){r.find(function(e){return"rejected"===e.status})?null==t||t(u):(Am(),n.failedCompatibilityChecks=!1,null==e||e(u))}).catch(function(){null==t||t(u)})}},{key:"handleWebcamDisabled",value:function(e){var t=e.error;this.callbacks.onWebcamDisabled({error:t})}},{key:"handleScreenshotDisabled",value:function(){this.callbacks.onScreenshotDisabled()}},{key:"handleWebcamEnabled",value:function(){this.proctoringInitialised&&(this.snapshotIntervalId=ay({onSnapshotFailure:this.handleSnapshotFailure.bind(this),frequency:this.snapshotConfig.frequency,resizeDimensions:this.snapshotConfig.resizeTo})),this.callbacks.onWebcamEnabled()}},{key:"handleScreenShareSuccess",value:function(){this.callbacks.onScreenShareSuccess(),this.enableFullScreen()}},{key:"handleScreenShareFailure",value:function(e){this.callbacks.onScreenShareFailure(e)}},{key:"handleScreenShareEnd",value:function(){window.isTestEnding||(this.handleViolation(yp.screenshareExit),this.callbacks.onScreenShareEnd())}},{key:"handleScreenshotSuccess",value:function(e){var t=e.blob;this.callbacks.onScreenshotSuccess({blob:t})}},{key:"handleScreenshareRequest",value:(i=Ay(Cy().mark(function e(){var t,n=arguments;return Cy().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=(n.length>0&&void 0!==n[0]?n[0]:{}).disableScreenshot,e.next=3,mm.bind(this)({disableScreenshot:t});case 3:case"end":return e.stop()}},e,this)})),function(){return i.apply(this,arguments)})},{key:"handleWebcamRequest",value:function(){var e=localStorage.getItem("selectedWebcamDeviceId");dy({onWebcamEnabled:this.handleWebcamEnabled.bind(this),onWebcamDisabled:this.handleWebcamDisabled.bind(this),optional:this.snapshotConfig.optional,deviceId:e||this.snapshotConfig.deviceId})}},{key:"getWebcamDevices",value:(o=Ay(Cy().mark(function e(){return Cy().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",cy.bind(this)());case 1:case"end":return e.stop()}},e,this)})),function(){return o.apply(this,arguments)})},{key:"setWebcamDevice",value:function(e){this.snapshotConfig.deviceId=e,localStorage.setItem("selectedWebcamDeviceId",e),this.reportCameraChange(e)}},{key:"reportCameraChange",value:(r=Ay(Cy().mark(function e(t){var n,r,o,i,a;return Cy().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((r=window.PROCTORING_SESSION_TOKEN)&&this.baseUrl&&null!==(n=navigator.mediaDevices)&&void 0!==n&&n.enumerateDevices){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,e.next=6,navigator.mediaDevices.enumerateDevices();case 6:return i=e.sent,a=null===(o=i.find(function(e){return e.deviceId===t}))||void 0===o?void 0:o.label,e.next=10,kf({baseUrl:this.baseUrl,token:r,signals:Wf(a)});case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(3),console.warn("Camera change could not be reported",e.t0);case 15:case"end":return e.stop()}},e,this,[[3,12]])})),function(e){return r.apply(this,arguments)})},{key:"handleScreenshotFailure",value:function(){this.callbacks.onScreenshotFailure()}},{key:"handleSnapshotFailure",value:function(){this.callbacks.onSnapshotFailure()}},{key:"handleFullScreenDisabled",value:function(){window.isTestEnding||(this.initialFullScreen?(this.handleViolation(yp.fullScreen),this.callbacks.onFullScreenDisabled()):(jm(),this.initialFullScreen=!0))}},{key:"handleFullScreenEnabled",value:function(){this.callbacks.onFullScreenEnabled()}},{key:"handleCompatibilityChecks",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).forceRun,t=void 0!==e&&e;this.proctoringInitialised&&!t||this.runCompatibilityChecks(this.handleCompatibilitySuccess.bind(this),this.handleCompatibilityFailure.bind(this))}},{key:"handleViolation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(yp[e]){var r,o={event_type:this.config[e].name,event_value:t,timestamp:"".concat((new Date).toJSON().slice(0,19).replace("T"," ")," UTC"),disqualify:this.config[e].disqualify};this.config[e].showAlert&&Tm("Warning","You performed a violation during the test. \n Repeating this action may result in disqualification \n and a failed test attempt.",!1),this.config[e].recordViolation&&this.recordViolation(o),function(e,t){var n=new CustomEvent(e,{detail:t});document.dispatchEvent(n)}(e,o),r=new CustomEvent("violation",{detail:o}),document.dispatchEvent(r),n&&this.disqualifyUser()}}},{key:"disqualifyUser",value:function(){this.disqualificationConfig.enabled&&(window.isUserDisqualified=!0,this.sendEvents(),this.disqualificationConfig.showAlert&&Tm(this.disqualificationConfig.alertHeading,this.disqualificationConfig.alertMessage,!0),this.callbacks.onDisqualified())}},{key:"recordViolation",value:function(e){this.violationWorker.postMessage({type:"RECORD_VIOLATION",data:e})}},{key:"sendEvents",value:function(){this.violationWorker.postMessage({type:"SEND_EVENTS"})}},{key:"handleWindowUnload",value:function(){window.addEventListener("beforeunload",this._cleanup.bind(this)),window.addEventListener("unload",this._cleanup.bind(this))}},{key:"enableFullScreen",value:function(){Nm()||jm()}},{key:"on",value:function(e,t){var n=this;document.addEventListener(e,function(e){t(n.violationEvents,e)})}},{key:"getTotalViolationsCountByType",value:function(e){return this.violationEvents.filter(function(t){return t.type===e}).length}},{key:"getTotalViolationsCount",value:function(){return this.violationEvents.length}},{key:"getAllViolations",value:function(){return this.violationEvents}},{key:"getViolationsCountForDisqualify",value:function(){return this.violationEvents.filter(function(e){return!0===e.disqualify}).length}},{key:"_cleanup",value:function(){this.violationWorker.postMessage({type:"CLEANUP"}),this.violationWorker.terminate(),this.stopNetworkMonitoring(),this.stopCompatibilityChecks(),bm(),this.queueManager.cleanup(),clearInterval(this.snapshotIntervalId),this.networkCheckInterval&&(clearInterval(this.networkCheckInterval),this.networkCheckInterval=null),this.compatibilityWorker.postMessage({type:"CLEANUP"}),this.compatibilityWorker.terminate()}},{key:"handleCleanup",value:function(){console.log("cleanup"),this._cleanup()}},{key:"handleWorkerMessage",value:function(e){var t=e.data,n=t.type,r=t.data;"VIOLATION_UPDATE"===n&&(this.violationEvents=r.violations,r.violationCount>=this.disqualificationConfig.eventCountThreshold&&this.disqualifyUser())}},{key:"startPeriodicNetworkCheck",value:function(){var e=this;this.runNetworkCheck(),this.networkCheckInterval=setInterval(function(){e.runNetworkCheck()},this.NETWORK_CHECK_FREQUENCY)}},{key:"runNetworkCheck",value:(n=Ay(Cy().mark(function e(){var t;return Cy().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,qh();case 3:t=e.sent,this.lastNetworkCheckResult=!t,console.log("Network check result:",this.lastNetworkCheckResult),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),this.lastNetworkCheckResult=!1,console.warn("Network check failed:",e.t0);case 12:case"end":return e.stop()}},e,this,[[0,8]])})),function(){return n.apply(this,arguments)})}],t&&Oy(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,r,o,i,a}();const Ly=function(e){var t=this;this.handleScreenShareSuccess=function(){t.dispatch(To({step:"screenShare",subStep:"screenShare",status:"completed",clearError:!0}))},this.handleScreenShareFailure=function(e){var n=Mh[e]||"Screen share validation failed. Please try again.";t.dispatch(So("screenShare")),t.dispatch(jo({step:"screenShare",subStep:"screenShare",error:n}))},this.handleScreenShareEnd=function(){t.dispatch(jo({step:"screenShare",subStep:"screenShare",error:"Screen share ended unexpectedly. Please try again."}))},this.handleScreenshotFailure=function(e){console.error("Screenshot capture failed",e)},this.dispatch=e},zy=function(){function e(e){this.dispatch=e,this.onWebcamEnabled=this.onWebcamEnabled.bind(this),this.onWebcamDisabled=this.onWebcamDisabled.bind(this),this.onSnapshotFailure=this.onSnapshotFailure.bind(this)}return e.prototype.onWebcamEnabled=function(){this.dispatch(To({step:"cameraShare",subStep:"cameraShare",status:"completed",clearError:!0}))},e.prototype.onWebcamDisabled=function(){},e.prototype.onSnapshotFailure=function(){console.log("Snapshot failure")},e}();var My=n(8723),Ry={};function Dy(e){return Dy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dy(e)}function Fy(){Fy=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:E(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",y={};function b(){}function g(){}function v(){}var w={};c(w,a,function(){return this});var x=Object.getPrototypeOf,k=x&&x(x(O([])));k&&k!==n&&r.call(k,a)&&(w=k);var S=v.prototype=b.prototype=Object.create(w);function _(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==Dy(u)&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,l)})}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=A(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function A(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Dy(t)+" is not iterable")}return g.prototype=v,o(S,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(C.prototype),c(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},_(S),c(S,s,"Generator"),c(S,a,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function By(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function qy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Ry.styleTagTransform=Z()(),Ry.setAttributes=X()(),Ry.insert=G()().bind(null,"head"),Ry.domAPI=Y()(),Ry.insertStyleElement=J()(),$()()(My.A,Ry),My.A&&My.A.locals&&My.A.locals;const Uy=function(e){var t,n,r,o=e.baseUrl,i=e.eventsConfig,a=e.disqualificationConfig,s=e.config,c=e.snapshotConfig,u=e.screenshotConfig,d=e.compatibilityCheckConfig,f=e.mobilePairingConfig,p=e.callbacks,h=e.enableAllAlerts,m=e.headerOptions,y=e.mockModeEnabled,b=e.assessmentInfo,g=e.qrCodeConfig,v=e.initConfig,w=e.enableProctoring,x=void 0!==w&&w,k=e.beepConfig,S=e.networkConfig,_=e.identityConfig,C=no(),E=ro(function(e){return e.workflow}).enableProctoring,A=ro(function(e){return e.assessmentInfo}).token,T=(n=(0,l().useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(n,r)||function(e,t){if(e){if("string"==typeof e)return qy(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qy(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),j=T[0],N=T[1],O=x||E,P=u.enabled,I=c.enabled,L=f.enabled,z=d.enabled,M=(null!==(t=null==s?void 0:s.fullScreen)&&void 0!==t?t:{enabled:!0}).enabled,R=Boolean(null==_?void 0:_.enabled)&&!x,D=(0,l().useMemo)(function(){return{cameraShare:{step:"cameraShare",enabled:null==I||I},screenShare:{step:"screenShare",enabled:null==P||P},mobileCameraShare:{step:"mobileCameraShare",enabled:null==L||L},compatibilityChecks:{step:"compatibilityChecks",enabled:null==z||z,subSteps:{fullScreenCheck:null==M||M}},identityVerification:{step:"identityVerification",enabled:R}}},[P,I,L,z,M,R]),F=(0,l().useMemo)(function(){var e=new Ly(C),t=new zy(C),n=new Ho(C,D);return new Iy({baseUrl:o,eventsConfig:i,disqualificationConfig:a,config:s,snapshotConfig:c,screenshotConfig:u,compatibilityCheckConfig:d,mobilePairingConfig:f,networkConfig:S,callbacks:{onScreenShareSuccess:function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==p||null===(t=p.onScreenShareSuccess)||void 0===t||t.call.apply(t,[p].concat(r)),e.handleScreenShareSuccess.apply(e,r)},onScreenShareFailure:function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==p||null===(t=p.onScreenShareFailure)||void 0===t||t.call.apply(t,[p].concat(r)),e.handleScreenShareFailure.apply(e,r)},onScreenShareEnd:function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==p||null===(t=p.onScreenShareEnd)||void 0===t||t.call.apply(t,[p].concat(r)),e.handleScreenShareEnd.apply(e,r)},onScreenshotSuccess:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];null==p||null===(e=p.onScreenshotSuccess)||void 0===e||e.call.apply(e,[p].concat(n))},onScreenshotFailure:function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==p||null===(t=p.onScreenshotFailure)||void 0===t||t.call.apply(t,[p].concat(r)),e.handleScreenshotFailure.apply(e,r)},onWebcamEnabled:function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==p||null===(e=p.onWebcamEnabled)||void 0===e||e.call.apply(e,[p].concat(r)),t.onWebcamEnabled.apply(t,r)},onWebcamDisabled:function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==p||null===(e=p.onWebcamDisabled)||void 0===e||e.call.apply(e,[p].concat(r)),t.onWebcamDisabled.apply(t,r)},onSnapshotSuccess:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];null==p||null===(e=p.onSnapshotSuccess)||void 0===e||e.call.apply(e,[p].concat(n))},onSnapshotFailure:function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==p||null===(e=p.onSnapshotFailure)||void 0===e||e.call.apply(e,[p].concat(r)),t.onSnapshotFailure.apply(t,r)},onFullScreenEnabled:function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];null==p||null===(e=p.onFullScreenEnabled)||void 0===e||e.call.apply(e,[p].concat(r)),n.handleFullScreenEnabled.apply(n,r)},onFullScreenDisabled:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];null==p||null===(e=p.onFullScreenDisabled)||void 0===e||e.call.apply(e,[p].concat(n))},onDisqualified:function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];null==p||null===(e=p.onDisqualified)||void 0===e||e.call.apply(e,[p].concat(r)),n.handleDisqualifyUser.apply(n,r)},onCompatibilityCheckSuccess:function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];null==p||null===(e=p.onCompatibilityCheckSuccess)||void 0===e||e.call.apply(e,[p].concat(r)),n.handleCompatibilityCheckSuccess.apply(n,r)},onCompatibilityCheckFail:function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];null==p||null===(e=p.onCompatibilityCheckFail)||void 0===e||e.call.apply(e,[p].concat(r)),n.handleCompatibilityCheckFail.apply(n,r)},onNetworkUpdate:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];null==p||null===(e=p.onNetworkUpdate)||void 0===e||e.call.apply(e,[p].concat(n))}},enableAllAlerts:h,headerOptions:m,mockModeEnabled:y,qrCodeConfig:g,beepConfig:k})},[o,p,d,s,C,a,h,i,m,f,y,g,u,c,D,k,S]),B=(0,l().useCallback)(function(){var e;null==p||null===(e=p.onWorkflowComplete)||void 0===e||e.call(p)},[p]),q=(0,l().useCallback)(function(){C(io({baseUrl:null==v?void 0:v.baseUrl,payload:null==v?void 0:v.payload}))},[C,v]);return(0,l().useEffect)(function(){var e=function(){var e,t=(e=Fy().mark(function e(){return Fy().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,o&&Kr({baseUrl:o}),!O){e.next=8;break}return e.next=5,F.initializeProctoring();case 5:C(Oo(!1)),e.next=9;break;case 8:C(Oo(!0));case 9:C(lo(b)),C(Io(O)),C(Do(k)),C(Lo(B)),C(so(F)),C(No(D)),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(0),console.error("Proctoring initialization failed:",e.t0);case 20:case"end":return e.stop()}},e,null,[[0,17]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){By(i,r,o,a,l,"next",e)}function l(e){By(i,r,o,a,l,"throw",e)}a(void 0)})});return function(){return t.apply(this,arguments)}}();j||(e(),N(!0),A||q())},[b,o,p,d,s,C,a,h,O,E,i,B,m,j,f,y,F,g,u,c,D,q,A,k]),l().createElement(l().Fragment,null,l().createElement(_m,null),l().createElement(Be,{position:"top-center",toastClassName:"text-base",autoClose:8e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!1,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0,theme:"colored"}))};function Wy(e){return Wy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wy(e)}function Vy(){return Vy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vy.apply(null,arguments)}function Qy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hy(r.key),r)}}function Hy(e){var t=function(e){if("object"!=Wy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wy(t)?t:t+""}const Ky=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"initialize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.getElementById(e);if(n){n.className="proctor-library-root";var r={baseUrl:window.location.origin,initConfig:{},eventsConfig:{},disqualificationConfig:{},config:{},snapshotConfig:{},screenshotConfig:{},compatibilityCheckConfig:{},callbacks:{},enableAllAlerts:!0,headerOptions:{},mockModeEnabled:!1,additionalData:{},networkConfig:{},identityConfig:{}};(0,o().H)(n).render(l().createElement(q,{store:Vo},l().createElement("div",{id:"proctor-library-root-id"},l().createElement(Uy,Vy({},r,t)))))}else console.error('Container with id "'.concat(e,'" not found'))}}],null&&Qy(e.prototype,null),t&&Qy(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()})(),r=r.default,r})());
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Proctor",[],t):"object"==typeof exports?exports.Proctor=t():e.Proctor=t()}(this,()=>(()=>{var e={675(e,t,n){"use strict";var r=n(3577),o=n.n(r),i=n(3554),a=n.n(i)()(o());a.push([e.id,":root {\n --toastify-color-light: #fff;\n --toastify-color-dark: #121212;\n --toastify-color-info: #3498db;\n --toastify-color-success: #07bc0c;\n --toastify-color-warning: #f1c40f;\n --toastify-color-error: hsl(6, 78%, 57%);\n --toastify-color-transparent: rgba(255, 255, 255, 0.7);\n\n --toastify-icon-color-info: var(--toastify-color-info);\n --toastify-icon-color-success: var(--toastify-color-success);\n --toastify-icon-color-warning: var(--toastify-color-warning);\n --toastify-icon-color-error: var(--toastify-color-error);\n\n --toastify-container-width: fit-content;\n --toastify-toast-width: 320px;\n --toastify-toast-offset: 16px;\n --toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));\n --toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));\n --toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));\n --toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));\n --toastify-toast-background: #fff;\n --toastify-toast-padding: 14px;\n --toastify-toast-min-height: 64px;\n --toastify-toast-max-height: 800px;\n --toastify-toast-bd-radius: 6px;\n --toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);\n --toastify-font-family: sans-serif;\n --toastify-z-index: 9999;\n --toastify-text-color-light: #757575;\n --toastify-text-color-dark: #fff;\n\n /* Used only for colored theme */\n --toastify-text-color-info: #fff;\n --toastify-text-color-success: #fff;\n --toastify-text-color-warning: #fff;\n --toastify-text-color-error: #fff;\n\n --toastify-spinner-color: #616161;\n --toastify-spinner-color-empty-area: #e0e0e0;\n --toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);\n --toastify-color-progress-dark: #bb86fc;\n --toastify-color-progress-info: var(--toastify-color-info);\n --toastify-color-progress-success: var(--toastify-color-success);\n --toastify-color-progress-warning: var(--toastify-color-warning);\n --toastify-color-progress-error: var(--toastify-color-error);\n /* used to control the opacity of the progress trail */\n --toastify-color-progress-bgo: 0.2;\n}\n\n.Toastify__toast-container {\n z-index: var(--toastify-z-index);\n -webkit-transform: translate3d(0, 0, var(--toastify-z-index));\n position: fixed;\n width: var(--toastify-container-width);\n box-sizing: border-box;\n color: #fff;\n display: flex;\n flex-direction: column;\n}\n\n.Toastify__toast-container--top-left {\n top: var(--toastify-toast-top);\n left: var(--toastify-toast-left);\n}\n.Toastify__toast-container--top-center {\n top: var(--toastify-toast-top);\n left: 50%;\n transform: translateX(-50%);\n align-items: center;\n}\n.Toastify__toast-container--top-right {\n top: var(--toastify-toast-top);\n right: var(--toastify-toast-right);\n align-items: end;\n}\n.Toastify__toast-container--bottom-left {\n bottom: var(--toastify-toast-bottom);\n left: var(--toastify-toast-left);\n}\n.Toastify__toast-container--bottom-center {\n bottom: var(--toastify-toast-bottom);\n left: 50%;\n transform: translateX(-50%);\n align-items: center;\n}\n.Toastify__toast-container--bottom-right {\n bottom: var(--toastify-toast-bottom);\n right: var(--toastify-toast-right);\n align-items: end;\n}\n\n.Toastify__toast {\n --y: 0px;\n position: relative;\n touch-action: none;\n width: var(--toastify-toast-width);\n min-height: var(--toastify-toast-min-height);\n box-sizing: border-box;\n margin-bottom: 1rem;\n padding: var(--toastify-toast-padding);\n border-radius: var(--toastify-toast-bd-radius);\n box-shadow: var(--toastify-toast-shadow);\n max-height: var(--toastify-toast-max-height);\n font-family: var(--toastify-font-family);\n /* webkit only issue #791 */\n z-index: 0;\n /* inner swag */\n display: flex;\n flex: 1 auto;\n align-items: center;\n word-break: break-word;\n}\n\n@media only screen and (max-width: 480px) {\n .Toastify__toast-container {\n width: 100vw;\n left: env(safe-area-inset-left);\n margin: 0;\n }\n .Toastify__toast-container--top-left,\n .Toastify__toast-container--top-center,\n .Toastify__toast-container--top-right {\n top: env(safe-area-inset-top);\n transform: translateX(0);\n }\n .Toastify__toast-container--bottom-left,\n .Toastify__toast-container--bottom-center,\n .Toastify__toast-container--bottom-right {\n bottom: env(safe-area-inset-bottom);\n transform: translateX(0);\n }\n .Toastify__toast-container--rtl {\n right: env(safe-area-inset-right);\n left: initial;\n }\n .Toastify__toast {\n --toastify-toast-width: 100%;\n margin-bottom: 0;\n border-radius: 0;\n }\n}\n\n.Toastify__toast-container[data-stacked='true'] {\n width: var(--toastify-toast-width);\n}\n\n@media only screen and (max-width: 480px) {\n .Toastify__toast-container[data-stacked='true'] {\n width: 100vw;\n }\n}\n\n.Toastify__toast--stacked {\n position: absolute;\n width: 100%;\n transform: translate3d(0, var(--y), 0) scale(var(--s));\n transition: transform 0.3s;\n}\n\n.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,\n.Toastify__toast--stacked[data-collapsed] .Toastify__close-button {\n transition: opacity 0.1s;\n}\n\n.Toastify__toast--stacked[data-collapsed='false'] {\n overflow: visible;\n}\n\n.Toastify__toast--stacked[data-collapsed='true']:not(:last-child) > * {\n opacity: 0;\n}\n\n.Toastify__toast--stacked:after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n height: calc(var(--g) * 1px);\n bottom: 100%;\n}\n\n.Toastify__toast--stacked[data-pos='top'] {\n top: 0;\n}\n\n.Toastify__toast--stacked[data-pos='bot'] {\n bottom: 0;\n}\n\n.Toastify__toast--stacked[data-pos='bot'].Toastify__toast--stacked:before {\n transform-origin: top;\n}\n\n.Toastify__toast--stacked[data-pos='top'].Toastify__toast--stacked:before {\n transform-origin: bottom;\n}\n\n.Toastify__toast--stacked:before {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n transform: scaleY(3);\n z-index: -1;\n}\n\n.Toastify__toast--rtl {\n direction: rtl;\n}\n\n.Toastify__toast--close-on-click {\n cursor: pointer;\n}\n\n.Toastify__toast-icon {\n margin-inline-end: 10px;\n width: 22px;\n flex-shrink: 0;\n display: flex;\n}\n\n.Toastify--animate {\n animation-fill-mode: both;\n animation-duration: 0.5s;\n}\n\n.Toastify--animate-icon {\n animation-fill-mode: both;\n animation-duration: 0.3s;\n}\n\n.Toastify__toast-theme--dark {\n background: var(--toastify-color-dark);\n color: var(--toastify-text-color-dark);\n}\n\n.Toastify__toast-theme--light {\n background: var(--toastify-color-light);\n color: var(--toastify-text-color-light);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--default {\n background: var(--toastify-color-light);\n color: var(--toastify-text-color-light);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--info {\n color: var(--toastify-text-color-info);\n background: var(--toastify-color-info);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--success {\n color: var(--toastify-text-color-success);\n background: var(--toastify-color-success);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--warning {\n color: var(--toastify-text-color-warning);\n background: var(--toastify-color-warning);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--error {\n color: var(--toastify-text-color-error);\n background: var(--toastify-color-error);\n}\n\n.Toastify__progress-bar-theme--light {\n background: var(--toastify-color-progress-light);\n}\n\n.Toastify__progress-bar-theme--dark {\n background: var(--toastify-color-progress-dark);\n}\n\n.Toastify__progress-bar--info {\n background: var(--toastify-color-progress-info);\n}\n\n.Toastify__progress-bar--success {\n background: var(--toastify-color-progress-success);\n}\n\n.Toastify__progress-bar--warning {\n background: var(--toastify-color-progress-warning);\n}\n\n.Toastify__progress-bar--error {\n background: var(--toastify-color-progress-error);\n}\n\n.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,\n.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,\n.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,\n.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error {\n background: var(--toastify-color-transparent);\n}\n\n.Toastify__close-button {\n color: #fff;\n position: absolute;\n top: 6px;\n right: 6px;\n background: transparent;\n outline: none;\n border: none;\n padding: 0;\n cursor: pointer;\n opacity: 0.7;\n transition: 0.3s ease;\n z-index: 1;\n}\n\n.Toastify__toast--rtl .Toastify__close-button {\n left: 6px;\n right: unset;\n}\n\n.Toastify__close-button--light {\n color: #000;\n opacity: 0.3;\n}\n\n.Toastify__close-button > svg {\n fill: currentColor;\n height: 16px;\n width: 14px;\n}\n\n.Toastify__close-button:hover,\n.Toastify__close-button:focus {\n opacity: 1;\n}\n\n@keyframes Toastify__trackProgress {\n 0% {\n transform: scaleX(1);\n }\n 100% {\n transform: scaleX(0);\n }\n}\n\n.Toastify__progress-bar {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 1;\n opacity: 0.7;\n transform-origin: left;\n}\n\n.Toastify__progress-bar--animated {\n animation: Toastify__trackProgress linear 1 forwards;\n}\n\n.Toastify__progress-bar--controlled {\n transition: transform 0.2s;\n}\n\n.Toastify__progress-bar--rtl {\n right: 0;\n left: initial;\n transform-origin: right;\n border-bottom-left-radius: initial;\n}\n\n.Toastify__progress-bar--wrp {\n position: absolute;\n overflow: hidden;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 5px;\n border-bottom-left-radius: var(--toastify-toast-bd-radius);\n border-bottom-right-radius: var(--toastify-toast-bd-radius);\n}\n\n.Toastify__progress-bar--wrp[data-hidden='true'] {\n opacity: 0;\n}\n\n.Toastify__progress-bar--bg {\n opacity: var(--toastify-color-progress-bgo);\n width: 100%;\n height: 100%;\n}\n\n.Toastify__spinner {\n width: 20px;\n height: 20px;\n box-sizing: border-box;\n border: 2px solid;\n border-radius: 100%;\n border-color: var(--toastify-spinner-color-empty-area);\n border-right-color: var(--toastify-spinner-color);\n animation: Toastify__spin 0.65s linear infinite;\n}\n\n@keyframes Toastify__bounceInRight {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n from {\n opacity: 0;\n transform: translate3d(3000px, 0, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(-25px, 0, 0);\n }\n 75% {\n transform: translate3d(10px, 0, 0);\n }\n 90% {\n transform: translate3d(-5px, 0, 0);\n }\n to {\n transform: none;\n }\n}\n\n@keyframes Toastify__bounceOutRight {\n 20% {\n opacity: 1;\n transform: translate3d(-20px, var(--y), 0);\n }\n to {\n opacity: 0;\n transform: translate3d(2000px, var(--y), 0);\n }\n}\n\n@keyframes Toastify__bounceInLeft {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n 0% {\n opacity: 0;\n transform: translate3d(-3000px, 0, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(25px, 0, 0);\n }\n 75% {\n transform: translate3d(-10px, 0, 0);\n }\n 90% {\n transform: translate3d(5px, 0, 0);\n }\n to {\n transform: none;\n }\n}\n\n@keyframes Toastify__bounceOutLeft {\n 20% {\n opacity: 1;\n transform: translate3d(20px, var(--y), 0);\n }\n to {\n opacity: 0;\n transform: translate3d(-2000px, var(--y), 0);\n }\n}\n\n@keyframes Toastify__bounceInUp {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n from {\n opacity: 0;\n transform: translate3d(0, 3000px, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(0, -20px, 0);\n }\n 75% {\n transform: translate3d(0, 10px, 0);\n }\n 90% {\n transform: translate3d(0, -5px, 0);\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n}\n\n@keyframes Toastify__bounceOutUp {\n 20% {\n transform: translate3d(0, calc(var(--y) - 10px), 0);\n }\n 40%,\n 45% {\n opacity: 1;\n transform: translate3d(0, calc(var(--y) + 20px), 0);\n }\n to {\n opacity: 0;\n transform: translate3d(0, -2000px, 0);\n }\n}\n\n@keyframes Toastify__bounceInDown {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n 0% {\n opacity: 0;\n transform: translate3d(0, -3000px, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(0, 25px, 0);\n }\n 75% {\n transform: translate3d(0, -10px, 0);\n }\n 90% {\n transform: translate3d(0, 5px, 0);\n }\n to {\n transform: none;\n }\n}\n\n@keyframes Toastify__bounceOutDown {\n 20% {\n transform: translate3d(0, calc(var(--y) - 10px), 0);\n }\n 40%,\n 45% {\n opacity: 1;\n transform: translate3d(0, calc(var(--y) + 20px), 0);\n }\n to {\n opacity: 0;\n transform: translate3d(0, 2000px, 0);\n }\n}\n\n.Toastify__bounce-enter--top-left,\n.Toastify__bounce-enter--bottom-left {\n animation-name: Toastify__bounceInLeft;\n}\n\n.Toastify__bounce-enter--top-right,\n.Toastify__bounce-enter--bottom-right {\n animation-name: Toastify__bounceInRight;\n}\n\n.Toastify__bounce-enter--top-center {\n animation-name: Toastify__bounceInDown;\n}\n\n.Toastify__bounce-enter--bottom-center {\n animation-name: Toastify__bounceInUp;\n}\n\n.Toastify__bounce-exit--top-left,\n.Toastify__bounce-exit--bottom-left {\n animation-name: Toastify__bounceOutLeft;\n}\n\n.Toastify__bounce-exit--top-right,\n.Toastify__bounce-exit--bottom-right {\n animation-name: Toastify__bounceOutRight;\n}\n\n.Toastify__bounce-exit--top-center {\n animation-name: Toastify__bounceOutUp;\n}\n\n.Toastify__bounce-exit--bottom-center {\n animation-name: Toastify__bounceOutDown;\n}\n\n@keyframes Toastify__zoomIn {\n from {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n 50% {\n opacity: 1;\n }\n}\n\n@keyframes Toastify__zoomOut {\n from {\n opacity: 1;\n }\n 50% {\n opacity: 0;\n transform: translate3d(0, var(--y), 0) scale3d(0.3, 0.3, 0.3);\n }\n to {\n opacity: 0;\n }\n}\n\n.Toastify__zoom-enter {\n animation-name: Toastify__zoomIn;\n}\n\n.Toastify__zoom-exit {\n animation-name: Toastify__zoomOut;\n}\n\n@keyframes Toastify__flipIn {\n from {\n transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n animation-timing-function: ease-in;\n opacity: 0;\n }\n 40% {\n transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n animation-timing-function: ease-in;\n }\n 60% {\n transform: perspective(400px) rotate3d(1, 0, 0, 10deg);\n opacity: 1;\n }\n 80% {\n transform: perspective(400px) rotate3d(1, 0, 0, -5deg);\n }\n to {\n transform: perspective(400px);\n }\n}\n\n@keyframes Toastify__flipOut {\n from {\n transform: translate3d(0, var(--y), 0) perspective(400px);\n }\n 30% {\n transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, -20deg);\n opacity: 1;\n }\n to {\n transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, 90deg);\n opacity: 0;\n }\n}\n\n.Toastify__flip-enter {\n animation-name: Toastify__flipIn;\n}\n\n.Toastify__flip-exit {\n animation-name: Toastify__flipOut;\n}\n\n@keyframes Toastify__slideInRight {\n from {\n transform: translate3d(110%, 0, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideInLeft {\n from {\n transform: translate3d(-110%, 0, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideInUp {\n from {\n transform: translate3d(0, 110%, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideInDown {\n from {\n transform: translate3d(0, -110%, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideOutRight {\n from {\n transform: translate3d(0, var(--y), 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(110%, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideOutLeft {\n from {\n transform: translate3d(0, var(--y), 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(-110%, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideOutDown {\n from {\n transform: translate3d(0, var(--y), 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(0, 500px, 0);\n }\n}\n\n@keyframes Toastify__slideOutUp {\n from {\n transform: translate3d(0, var(--y), 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(0, -500px, 0);\n }\n}\n\n.Toastify__slide-enter--top-left,\n.Toastify__slide-enter--bottom-left {\n animation-name: Toastify__slideInLeft;\n}\n\n.Toastify__slide-enter--top-right,\n.Toastify__slide-enter--bottom-right {\n animation-name: Toastify__slideInRight;\n}\n\n.Toastify__slide-enter--top-center {\n animation-name: Toastify__slideInDown;\n}\n\n.Toastify__slide-enter--bottom-center {\n animation-name: Toastify__slideInUp;\n}\n\n.Toastify__slide-exit--top-left,\n.Toastify__slide-exit--bottom-left {\n animation-name: Toastify__slideOutLeft;\n animation-timing-function: ease-in;\n animation-duration: 0.3s;\n}\n\n.Toastify__slide-exit--top-right,\n.Toastify__slide-exit--bottom-right {\n animation-name: Toastify__slideOutRight;\n animation-timing-function: ease-in;\n animation-duration: 0.3s;\n}\n\n.Toastify__slide-exit--top-center {\n animation-name: Toastify__slideOutUp;\n animation-timing-function: ease-in;\n animation-duration: 0.3s;\n}\n\n.Toastify__slide-exit--bottom-center {\n animation-name: Toastify__slideOutDown;\n animation-timing-function: ease-in;\n animation-duration: 0.3s;\n}\n\n@keyframes Toastify__spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}\n",""]);const l=a;n.d(t,["A",0,l])},5017(e,t,n){"use strict";var r=n(3577),o=n.n(r),i=n(3554),a=n.n(i)()(o());a.push([e.id,'.proctor-library-root *, .proctor-library-root ::before, .proctor-library-root ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n .proctor-library-root ::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n /*\n! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com\n*/\n /*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n .proctor-library-root *,\n.proctor-library-root ::before,\n.proctor-library-root ::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n .proctor-library-root ::before,\n.proctor-library-root ::after {\n --tw-content: \'\';\n}\n /*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n .proctor-library-root html,\n.proctor-library-root :host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n /*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n .proctor-library-root body {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n /*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n .proctor-library-root hr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n /*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n .proctor-library-root abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n /*\nRemove the default font size and weight for headings.\n*/\n .proctor-library-root h1,\n.proctor-library-root h2,\n.proctor-library-root h3,\n.proctor-library-root h4,\n.proctor-library-root h5,\n.proctor-library-root h6 {\n font-size: inherit;\n font-weight: inherit;\n}\n /*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n .proctor-library-root a {\n color: inherit;\n text-decoration: inherit;\n}\n /*\nAdd the correct font weight in Edge and Safari.\n*/\n .proctor-library-root b,\n.proctor-library-root strong {\n font-weight: bolder;\n}\n /*\n1. Use the user\'s configured `mono` font-family by default.\n2. Use the user\'s configured `mono` font-feature-settings by default.\n3. Use the user\'s configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n .proctor-library-root code,\n.proctor-library-root kbd,\n.proctor-library-root samp,\n.proctor-library-root pre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n /*\nAdd the correct font size in all browsers.\n*/\n .proctor-library-root small {\n font-size: 80%;\n}\n /*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n .proctor-library-root sub,\n.proctor-library-root sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n .proctor-library-root sub {\n bottom: -0.25em;\n}\n .proctor-library-root sup {\n top: -0.5em;\n}\n /*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n .proctor-library-root table {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n /*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n .proctor-library-root button,\n.proctor-library-root input,\n.proctor-library-root optgroup,\n.proctor-library-root select,\n.proctor-library-root textarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n /*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n .proctor-library-root button,\n.proctor-library-root select {\n text-transform: none;\n}\n /*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n .proctor-library-root button,\n.proctor-library-root input:where([type=\'button\']),\n.proctor-library-root input:where([type=\'reset\']),\n.proctor-library-root input:where([type=\'submit\']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n /*\nUse the modern Firefox focus style for all focusable elements.\n*/\n .proctor-library-root :-moz-focusring {\n outline: auto;\n}\n /*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n .proctor-library-root :-moz-ui-invalid {\n box-shadow: none;\n}\n /*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n .proctor-library-root progress {\n vertical-align: baseline;\n}\n /*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n .proctor-library-root ::-webkit-inner-spin-button,\n.proctor-library-root ::-webkit-outer-spin-button {\n height: auto;\n}\n /*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n .proctor-library-root [type=\'search\'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n /*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n .proctor-library-root ::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n /*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n .proctor-library-root ::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n /*\nAdd the correct display in Chrome and Safari.\n*/\n .proctor-library-root summary {\n display: list-item;\n}\n /*\nRemoves the default spacing and border for appropriate elements.\n*/\n .proctor-library-root blockquote,\n.proctor-library-root dl,\n.proctor-library-root dd,\n.proctor-library-root h1,\n.proctor-library-root h2,\n.proctor-library-root h3,\n.proctor-library-root h4,\n.proctor-library-root h5,\n.proctor-library-root h6,\n.proctor-library-root hr,\n.proctor-library-root figure,\n.proctor-library-root p,\n.proctor-library-root pre {\n margin: 0;\n}\n .proctor-library-root fieldset {\n margin: 0;\n padding: 0;\n}\n .proctor-library-root legend {\n padding: 0;\n}\n .proctor-library-root ol,\n.proctor-library-root ul,\n.proctor-library-root menu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n /*\nReset default styling for dialogs.\n*/\n .proctor-library-root dialog {\n padding: 0;\n}\n /*\nPrevent resizing textareas horizontally by default.\n*/\n .proctor-library-root textarea {\n resize: vertical;\n}\n /*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/\n .proctor-library-root input::-moz-placeholder, .proctor-library-root textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n .proctor-library-root input::placeholder,\n.proctor-library-root textarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n /*\nSet the default cursor for buttons.\n*/\n .proctor-library-root button,\n.proctor-library-root [role="button"] {\n cursor: pointer;\n}\n /*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/\n .proctor-library-root :disabled {\n cursor: default;\n}\n /*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n .proctor-library-root img,\n.proctor-library-root svg,\n.proctor-library-root video,\n.proctor-library-root canvas,\n.proctor-library-root audio,\n.proctor-library-root iframe,\n.proctor-library-root embed,\n.proctor-library-root object {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n /*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n .proctor-library-root img,\n.proctor-library-root video {\n max-width: 100%;\n height: auto;\n}\n /* Make elements with the HTML hidden attribute stay hidden by default */\n .proctor-library-root [hidden]:where(:not([hidden="until-found"])) {\n display: none;\n}\n .proctor-library-root .\\!container {\n width: 100% !important;\n}\n .proctor-library-root .container {\n width: 100%;\n}\n @media (min-width: 640px) {\n .proctor-library-root .\\!container {\n max-width: 640px !important;\n }\n}\n @media (min-width: 640px) {\n .proctor-library-root .container {\n max-width: 640px;\n }\n}\n @media (min-width: 768px) {\n .proctor-library-root .\\!container {\n max-width: 768px !important;\n }\n}\n @media (min-width: 768px) {\n .proctor-library-root .container {\n max-width: 768px;\n }\n}\n @media (min-width: 1024px) {\n .proctor-library-root .\\!container {\n max-width: 1024px !important;\n }\n}\n @media (min-width: 1024px) {\n .proctor-library-root .container {\n max-width: 1024px;\n }\n}\n @media (min-width: 1280px) {\n .proctor-library-root .\\!container {\n max-width: 1280px !important;\n }\n}\n @media (min-width: 1280px) {\n .proctor-library-root .container {\n max-width: 1280px;\n }\n}\n @media (min-width: 1536px) {\n .proctor-library-root .\\!container {\n max-width: 1536px !important;\n }\n}\n @media (min-width: 1536px) {\n .proctor-library-root .container {\n max-width: 1536px;\n }\n}\n .proctor-library-root #proctor-library-root-id .pointer-events-none {\n pointer-events: none;\n}\n .proctor-library-root #proctor-library-root-id .visible {\n visibility: visible;\n}\n .proctor-library-root #proctor-library-root-id .static {\n position: static;\n}\n .proctor-library-root #proctor-library-root-id .fixed {\n position: fixed;\n}\n .proctor-library-root #proctor-library-root-id .absolute {\n position: absolute;\n}\n .proctor-library-root #proctor-library-root-id .relative {\n position: relative;\n}\n .proctor-library-root #proctor-library-root-id .inset-0 {\n inset: 0px;\n}\n .proctor-library-root #proctor-library-root-id .-bottom-6 {\n bottom: -1.5rem;\n}\n .proctor-library-root #proctor-library-root-id .bottom-3 {\n bottom: 0.75rem;\n}\n .proctor-library-root #proctor-library-root-id .bottom-4 {\n bottom: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .left-0 {\n left: 0px;\n}\n .proctor-library-root #proctor-library-root-id .left-1\\/2 {\n left: 50%;\n}\n .proctor-library-root #proctor-library-root-id .left-4 {\n left: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .left-5 {\n left: 1.25rem;\n}\n .proctor-library-root #proctor-library-root-id .right-1\\/2 {\n right: 50%;\n}\n .proctor-library-root #proctor-library-root-id .right-3 {\n right: 0.75rem;\n}\n .proctor-library-root #proctor-library-root-id .right-4 {\n right: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .right-5 {\n right: 1.25rem;\n}\n .proctor-library-root #proctor-library-root-id .top-0 {\n top: 0px;\n}\n .proctor-library-root #proctor-library-root-id .top-1\\/2 {\n top: 50%;\n}\n .proctor-library-root #proctor-library-root-id .top-4 {\n top: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .top-5 {\n top: 1.25rem;\n}\n .proctor-library-root #proctor-library-root-id .top-\\[47\\%\\] {\n top: 47%;\n}\n .proctor-library-root #proctor-library-root-id .z-10 {\n z-index: 10;\n}\n .proctor-library-root #proctor-library-root-id .z-40 {\n z-index: 40;\n}\n .proctor-library-root #proctor-library-root-id .z-50 {\n z-index: 50;\n}\n .proctor-library-root #proctor-library-root-id .z-\\[100\\] {\n z-index: 100;\n}\n .proctor-library-root #proctor-library-root-id .mx-8 {\n margin-left: 2rem;\n margin-right: 2rem;\n}\n .proctor-library-root #proctor-library-root-id .mx-auto {\n margin-left: auto;\n margin-right: auto;\n}\n .proctor-library-root #proctor-library-root-id .my-16 {\n margin-top: 4rem;\n margin-bottom: 4rem;\n}\n .proctor-library-root #proctor-library-root-id .my-4 {\n margin-top: 1rem;\n margin-bottom: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .my-9 {\n margin-top: 2.25rem;\n margin-bottom: 2.25rem;\n}\n .proctor-library-root #proctor-library-root-id .mb-1 {\n margin-bottom: 0.25rem;\n}\n .proctor-library-root #proctor-library-root-id .mb-10 {\n margin-bottom: 2.5rem;\n}\n .proctor-library-root #proctor-library-root-id .mb-2 {\n margin-bottom: 0.5rem;\n}\n .proctor-library-root #proctor-library-root-id .mb-4 {\n margin-bottom: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .mb-6 {\n margin-bottom: 1.5rem;\n}\n .proctor-library-root #proctor-library-root-id .mb-8 {\n margin-bottom: 2rem;\n}\n .proctor-library-root #proctor-library-root-id .ml-2 {\n margin-left: 0.5rem;\n}\n .proctor-library-root #proctor-library-root-id .ml-4 {\n margin-left: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .ml-6 {\n margin-left: 1.5rem;\n}\n .proctor-library-root #proctor-library-root-id .mr-2 {\n margin-right: 0.5rem;\n}\n .proctor-library-root #proctor-library-root-id .mr-3 {\n margin-right: 0.75rem;\n}\n .proctor-library-root #proctor-library-root-id .mr-4 {\n margin-right: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .mr-6 {\n margin-right: 1.5rem;\n}\n .proctor-library-root #proctor-library-root-id .mt-0\\.5 {\n margin-top: 0.125rem;\n}\n .proctor-library-root #proctor-library-root-id .mt-1 {\n margin-top: 0.25rem;\n}\n .proctor-library-root #proctor-library-root-id .mt-10 {\n margin-top: 2.5rem;\n}\n .proctor-library-root #proctor-library-root-id .mt-12 {\n margin-top: 3rem;\n}\n .proctor-library-root #proctor-library-root-id .mt-16 {\n margin-top: 4rem;\n}\n .proctor-library-root #proctor-library-root-id .mt-2 {\n margin-top: 0.5rem;\n}\n .proctor-library-root #proctor-library-root-id .mt-20 {\n margin-top: 5rem;\n}\n .proctor-library-root #proctor-library-root-id .mt-3 {\n margin-top: 0.75rem;\n}\n .proctor-library-root #proctor-library-root-id .mt-4 {\n margin-top: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .mt-5 {\n margin-top: 1.25rem;\n}\n .proctor-library-root #proctor-library-root-id .mt-6 {\n margin-top: 1.5rem;\n}\n .proctor-library-root #proctor-library-root-id .mt-8 {\n margin-top: 2rem;\n}\n .proctor-library-root #proctor-library-root-id .block {\n display: block;\n}\n .proctor-library-root #proctor-library-root-id .inline-block {\n display: inline-block;\n}\n .proctor-library-root #proctor-library-root-id .flex {\n display: flex;\n}\n .proctor-library-root #proctor-library-root-id .inline-flex {\n display: inline-flex;\n}\n .proctor-library-root #proctor-library-root-id .grid {\n display: grid;\n}\n .proctor-library-root #proctor-library-root-id .hidden {\n display: none;\n}\n .proctor-library-root #proctor-library-root-id .aspect-\\[16\\/9\\] {\n aspect-ratio: 16/9;\n}\n .proctor-library-root #proctor-library-root-id .aspect-\\[3\\/4\\] {\n aspect-ratio: 3/4;\n}\n .proctor-library-root #proctor-library-root-id .aspect-\\[4\\/3\\] {\n aspect-ratio: 4/3;\n}\n .proctor-library-root #proctor-library-root-id .aspect-video {\n aspect-ratio: 16 / 9;\n}\n .proctor-library-root #proctor-library-root-id .h-10 {\n height: 2.5rem;\n}\n .proctor-library-root #proctor-library-root-id .h-11 {\n height: 2.75rem;\n}\n .proctor-library-root #proctor-library-root-id .h-12 {\n height: 3rem;\n}\n .proctor-library-root #proctor-library-root-id .h-16 {\n height: 4rem;\n}\n .proctor-library-root #proctor-library-root-id .h-2 {\n height: 0.5rem;\n}\n .proctor-library-root #proctor-library-root-id .h-20 {\n height: 5rem;\n}\n .proctor-library-root #proctor-library-root-id .h-24 {\n height: 6rem;\n}\n .proctor-library-root #proctor-library-root-id .h-28 {\n height: 7rem;\n}\n .proctor-library-root #proctor-library-root-id .h-32 {\n height: 8rem;\n}\n .proctor-library-root #proctor-library-root-id .h-4 {\n height: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .h-5 {\n height: 1.25rem;\n}\n .proctor-library-root #proctor-library-root-id .h-6 {\n height: 1.5rem;\n}\n .proctor-library-root #proctor-library-root-id .h-7 {\n height: 1.75rem;\n}\n .proctor-library-root #proctor-library-root-id .h-8 {\n height: 2rem;\n}\n .proctor-library-root #proctor-library-root-id .h-9 {\n height: 2.25rem;\n}\n .proctor-library-root #proctor-library-root-id .h-\\[1\\.6rem\\] {\n height: 1.6rem;\n}\n .proctor-library-root #proctor-library-root-id .h-\\[1\\.8rem\\] {\n height: 1.8rem;\n}\n .proctor-library-root #proctor-library-root-id .h-\\[100\\%\\] {\n height: 100%;\n}\n .proctor-library-root #proctor-library-root-id .h-\\[2\\.2rem\\] {\n height: 2.2rem;\n}\n .proctor-library-root #proctor-library-root-id .h-\\[2rem\\] {\n height: 2rem;\n}\n .proctor-library-root #proctor-library-root-id .h-\\[60rem\\] {\n height: 60rem;\n}\n .proctor-library-root #proctor-library-root-id .h-\\[640px\\] {\n height: 640px;\n}\n .proctor-library-root #proctor-library-root-id .h-\\[7\\.2rem\\] {\n height: 7.2rem;\n}\n .proctor-library-root #proctor-library-root-id .h-\\[78\\%\\] {\n height: 78%;\n}\n .proctor-library-root #proctor-library-root-id .h-\\[80\\%\\] {\n height: 80%;\n}\n .proctor-library-root #proctor-library-root-id .h-\\[calc\\(100vh-22px\\)\\] {\n height: calc(100vh - 22px);\n}\n .proctor-library-root #proctor-library-root-id .h-auto {\n height: auto;\n}\n .proctor-library-root #proctor-library-root-id .h-full {\n height: 100%;\n}\n .proctor-library-root #proctor-library-root-id .max-h-60 {\n max-height: 15rem;\n}\n .proctor-library-root #proctor-library-root-id .max-h-\\[300px\\] {\n max-height: 300px;\n}\n .proctor-library-root #proctor-library-root-id .max-h-\\[95\\%\\] {\n max-height: 95%;\n}\n .proctor-library-root #proctor-library-root-id .min-h-\\[15rem\\] {\n min-height: 15rem;\n}\n .proctor-library-root #proctor-library-root-id .min-h-\\[4\\.6rem\\] {\n min-height: 4.6rem;\n}\n .proctor-library-root #proctor-library-root-id .min-h-\\[7\\.2rem\\] {\n min-height: 7.2rem;\n}\n .proctor-library-root #proctor-library-root-id .w-1\\.5 {\n width: 0.375rem;\n}\n .proctor-library-root #proctor-library-root-id .w-1\\/2 {\n width: 50%;\n}\n .proctor-library-root #proctor-library-root-id .w-1\\/3 {\n width: 33.333333%;\n}\n .proctor-library-root #proctor-library-root-id .w-10 {\n width: 2.5rem;\n}\n .proctor-library-root #proctor-library-root-id .w-11\\/12 {\n width: 91.666667%;\n}\n .proctor-library-root #proctor-library-root-id .w-12 {\n width: 3rem;\n}\n .proctor-library-root #proctor-library-root-id .w-16 {\n width: 4rem;\n}\n .proctor-library-root #proctor-library-root-id .w-2 {\n width: 0.5rem;\n}\n .proctor-library-root #proctor-library-root-id .w-20 {\n width: 5rem;\n}\n .proctor-library-root #proctor-library-root-id .w-24 {\n width: 6rem;\n}\n .proctor-library-root #proctor-library-root-id .w-3\\/4 {\n width: 75%;\n}\n .proctor-library-root #proctor-library-root-id .w-32 {\n width: 8rem;\n}\n .proctor-library-root #proctor-library-root-id .w-4 {\n width: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .w-4\\/5 {\n width: 80%;\n}\n .proctor-library-root #proctor-library-root-id .w-5 {\n width: 1.25rem;\n}\n .proctor-library-root #proctor-library-root-id .w-6 {\n width: 1.5rem;\n}\n .proctor-library-root #proctor-library-root-id .w-7 {\n width: 1.75rem;\n}\n .proctor-library-root #proctor-library-root-id .w-8 {\n width: 2rem;\n}\n .proctor-library-root #proctor-library-root-id .w-9\\/12 {\n width: 75%;\n}\n .proctor-library-root #proctor-library-root-id .w-\\[1\\.6rem\\] {\n width: 1.6rem;\n}\n .proctor-library-root #proctor-library-root-id .w-\\[1\\.8rem\\] {\n width: 1.8rem;\n}\n .proctor-library-root #proctor-library-root-id .w-\\[100\\%\\] {\n width: 100%;\n}\n .proctor-library-root #proctor-library-root-id .w-\\[2\\.2rem\\] {\n width: 2.2rem;\n}\n .proctor-library-root #proctor-library-root-id .w-\\[2rem\\] {\n width: 2rem;\n}\n .proctor-library-root #proctor-library-root-id .w-\\[7\\.2rem\\] {\n width: 7.2rem;\n}\n .proctor-library-root #proctor-library-root-id .w-full {\n width: 100%;\n}\n .proctor-library-root #proctor-library-root-id .max-w-2xl {\n max-width: 42rem;\n}\n .proctor-library-root #proctor-library-root-id .max-w-3xl {\n max-width: 48rem;\n}\n .proctor-library-root #proctor-library-root-id .max-w-5xl {\n max-width: 64rem;\n}\n .proctor-library-root #proctor-library-root-id .max-w-\\[26rem\\] {\n max-width: 26rem;\n}\n .proctor-library-root #proctor-library-root-id .max-w-\\[34ch\\] {\n max-width: 34ch;\n}\n .proctor-library-root #proctor-library-root-id .max-w-\\[600px\\] {\n max-width: 600px;\n}\n .proctor-library-root #proctor-library-root-id .max-w-\\[700px\\] {\n max-width: 700px;\n}\n .proctor-library-root #proctor-library-root-id .max-w-\\[88\\%\\] {\n max-width: 88%;\n}\n .proctor-library-root #proctor-library-root-id .max-w-\\[90\\%\\] {\n max-width: 90%;\n}\n .proctor-library-root #proctor-library-root-id .max-w-full {\n max-width: 100%;\n}\n .proctor-library-root #proctor-library-root-id .max-w-none {\n max-width: none;\n}\n .proctor-library-root #proctor-library-root-id .max-w-xl {\n max-width: 36rem;\n}\n .proctor-library-root #proctor-library-root-id .flex-1 {\n flex: 1 1 0%;\n}\n .proctor-library-root #proctor-library-root-id .flex-shrink-0 {\n flex-shrink: 0;\n}\n .proctor-library-root #proctor-library-root-id .shrink-0 {\n flex-shrink: 0;\n}\n .proctor-library-root #proctor-library-root-id .grow {\n flex-grow: 1;\n}\n .proctor-library-root #proctor-library-root-id .-translate-x-1\\/2 {\n --tw-translate-x: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n .proctor-library-root #proctor-library-root-id .-translate-y-1\\/2 {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n .proctor-library-root #proctor-library-root-id .translate-x-1\\/2 {\n --tw-translate-x: 50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n .proctor-library-root #proctor-library-root-id .translate-y-\\[-50\\%\\] {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n .proctor-library-root #proctor-library-root-id .rotate-180 {\n --tw-rotate: 180deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n .proctor-library-root #proctor-library-root-id .transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n @keyframes spin {\n to {\n transform: rotate(360deg);\n }\n}\n .proctor-library-root #proctor-library-root-id .animate-\\[spin_1s_linear_infinite\\] {\n animation: spin 1s linear infinite;\n}\n @keyframes pulse {\n 50% {\n opacity: .5;\n }\n}\n .proctor-library-root #proctor-library-root-id .animate-pulse {\n animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;\n}\n @keyframes spin {\n to {\n transform: rotate(360deg);\n }\n}\n .proctor-library-root #proctor-library-root-id .animate-spin {\n animation: spin 1s linear infinite;\n}\n .proctor-library-root #proctor-library-root-id .cursor-pointer {\n cursor: pointer;\n}\n .proctor-library-root #proctor-library-root-id .resize {\n resize: both;\n}\n .proctor-library-root #proctor-library-root-id .list-disc {\n list-style-type: disc;\n}\n .proctor-library-root #proctor-library-root-id .appearance-none {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n .proctor-library-root #proctor-library-root-id .grid-cols-2 {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n}\n .proctor-library-root #proctor-library-root-id .grid-cols-\\[34rem_1fr\\] {\n grid-template-columns: 34rem 1fr;\n}\n .proctor-library-root #proctor-library-root-id .flex-row {\n flex-direction: row;\n}\n .proctor-library-root #proctor-library-root-id .flex-col {\n flex-direction: column;\n}\n .proctor-library-root #proctor-library-root-id .flex-wrap {\n flex-wrap: wrap;\n}\n .proctor-library-root #proctor-library-root-id .items-start {\n align-items: flex-start;\n}\n .proctor-library-root #proctor-library-root-id .items-center {\n align-items: center;\n}\n .proctor-library-root #proctor-library-root-id .items-stretch {\n align-items: stretch;\n}\n .proctor-library-root #proctor-library-root-id .justify-end {\n justify-content: flex-end;\n}\n .proctor-library-root #proctor-library-root-id .justify-center {\n justify-content: center;\n}\n .proctor-library-root #proctor-library-root-id .justify-between {\n justify-content: space-between;\n}\n .proctor-library-root #proctor-library-root-id .gap-1 {\n gap: 0.25rem;\n}\n .proctor-library-root #proctor-library-root-id .gap-1\\.5 {\n gap: 0.375rem;\n}\n .proctor-library-root #proctor-library-root-id .gap-12 {\n gap: 3rem;\n}\n .proctor-library-root #proctor-library-root-id .gap-2 {\n gap: 0.5rem;\n}\n .proctor-library-root #proctor-library-root-id .gap-3 {\n gap: 0.75rem;\n}\n .proctor-library-root #proctor-library-root-id .gap-4 {\n gap: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .gap-5 {\n gap: 1.25rem;\n}\n .proctor-library-root #proctor-library-root-id .gap-6 {\n gap: 1.5rem;\n}\n .proctor-library-root #proctor-library-root-id .gap-8 {\n gap: 2rem;\n}\n .proctor-library-root #proctor-library-root-id :is(.space-x-2 > :not([hidden]) ~ :not([hidden])) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));\n}\n .proctor-library-root #proctor-library-root-id :is(.space-y-1 > :not([hidden]) ~ :not([hidden])) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));\n}\n .proctor-library-root #proctor-library-root-id :is(.space-y-1\\.5 > :not([hidden]) ~ :not([hidden])) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));\n}\n .proctor-library-root #proctor-library-root-id :is(.space-y-2 > :not([hidden]) ~ :not([hidden])) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));\n}\n .proctor-library-root #proctor-library-root-id :is(.space-y-4 > :not([hidden]) ~ :not([hidden])) {\n --tw-space-y-reverse: 0;\n margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(1rem * var(--tw-space-y-reverse));\n}\n .proctor-library-root #proctor-library-root-id :is(.space-y-6 > :not([hidden]) ~ :not([hidden])) {\n --tw-space-y-reverse: 0;\n margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));\n}\n .proctor-library-root #proctor-library-root-id :is(.divide-y > :not([hidden]) ~ :not([hidden])) {\n --tw-divide-y-reverse: 0;\n border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));\n border-bottom-width: calc(1px * var(--tw-divide-y-reverse));\n}\n .proctor-library-root #proctor-library-root-id :is(.divide-gray-200 > :not([hidden]) ~ :not([hidden])) {\n --tw-divide-opacity: 1;\n border-color: rgb(229 231 235 / var(--tw-divide-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .overflow-auto {\n overflow: auto;\n}\n .proctor-library-root #proctor-library-root-id .overflow-hidden {\n overflow: hidden;\n}\n .proctor-library-root #proctor-library-root-id .overflow-y-auto {\n overflow-y: auto;\n}\n .proctor-library-root #proctor-library-root-id .rounded {\n border-radius: 0.25rem;\n}\n .proctor-library-root #proctor-library-root-id .rounded-2xl {\n border-radius: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .rounded-\\[50\\%\\] {\n border-radius: 50%;\n}\n .proctor-library-root #proctor-library-root-id .rounded-full {\n border-radius: 9999px;\n}\n .proctor-library-root #proctor-library-root-id .rounded-lg {\n border-radius: var(--radius);\n}\n .proctor-library-root #proctor-library-root-id .rounded-md {\n border-radius: calc(var(--radius) - 2px);\n}\n .proctor-library-root #proctor-library-root-id .rounded-sm {\n border-radius: calc(var(--radius) - 4px);\n}\n .proctor-library-root #proctor-library-root-id .rounded-xl {\n border-radius: 0.75rem;\n}\n .proctor-library-root #proctor-library-root-id .rounded-b-lg {\n border-bottom-right-radius: var(--radius);\n border-bottom-left-radius: var(--radius);\n}\n .proctor-library-root #proctor-library-root-id .rounded-t-2xl {\n border-top-left-radius: 1rem;\n border-top-right-radius: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .rounded-t-lg {\n border-top-left-radius: var(--radius);\n border-top-right-radius: var(--radius);\n}\n .proctor-library-root #proctor-library-root-id .border {\n border-width: 1px;\n}\n .proctor-library-root #proctor-library-root-id .border-4 {\n border-width: 4px;\n}\n .proctor-library-root #proctor-library-root-id .border-b {\n border-bottom-width: 1px;\n}\n .proctor-library-root #proctor-library-root-id .border-dashed {\n border-style: dashed;\n}\n .proctor-library-root #proctor-library-root-id .border-\\[\\#0080FF\\] {\n --tw-border-opacity: 1;\n border-color: rgb(0 128 255 / var(--tw-border-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .border-base-200 {\n --tw-border-opacity: 1;\n border-color: rgb(97 115 142 / var(--tw-border-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .border-blue-500 {\n --tw-border-opacity: 1;\n border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .border-gray-200 {\n --tw-border-opacity: 1;\n border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .border-gray-300 {\n --tw-border-opacity: 1;\n border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .border-gray-400 {\n --tw-border-opacity: 1;\n border-color: rgb(156 163 175 / var(--tw-border-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .border-green-600 {\n --tw-border-opacity: 1;\n border-color: rgb(22 163 74 / var(--tw-border-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .border-primary {\n border-color: hsl(var(--primary));\n}\n .proctor-library-root #proctor-library-root-id .border-red-500 {\n --tw-border-opacity: 1;\n border-color: rgb(239 68 68 / var(--tw-border-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .border-scaler-500 {\n --tw-border-opacity: 1;\n border-color: rgb(0 128 255 / var(--tw-border-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .border-transparent {\n border-color: transparent;\n}\n .proctor-library-root #proctor-library-root-id .border-t-\\[\\#0080FF\\] {\n --tw-border-opacity: 1;\n border-top-color: rgb(0 128 255 / var(--tw-border-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-\\[\\#141A24\\] {\n --tw-bg-opacity: 1;\n background-color: rgb(20 26 36 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-\\[\\#E6F2FF\\] {\n --tw-bg-opacity: 1;\n background-color: rgb(230 242 255 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-\\[\\#FFEBEF\\] {\n --tw-bg-opacity: 1;\n background-color: rgb(255 235 239 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-\\[rgba\\(11\\2c 27\\2c 58\\2c 0\\.82\\)\\] {\n background-color: rgba(11,27,58,0.82);\n}\n .proctor-library-root #proctor-library-root-id .bg-base-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(239 246 252 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-black\\/50 {\n background-color: rgb(0 0 0 / 0.5);\n}\n .proctor-library-root #proctor-library-root-id .bg-card {\n background-color: hsl(var(--card));\n}\n .proctor-library-root #proctor-library-root-id .bg-destructive {\n background-color: hsl(var(--destructive));\n}\n .proctor-library-root #proctor-library-root-id .bg-gray-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-gray-200 {\n --tw-bg-opacity: 1;\n background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-gray-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-green-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(240 253 244 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-green-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(34 197 94 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-muted {\n background-color: hsl(var(--muted));\n}\n .proctor-library-root #proctor-library-root-id .bg-primary {\n background-color: hsl(var(--primary));\n}\n .proctor-library-root #proctor-library-root-id .bg-primary\\/20 {\n background-color: hsl(var(--primary) / 0.2);\n}\n .proctor-library-root #proctor-library-root-id .bg-red-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-red-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-red-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-red-500\\/90 {\n background-color: rgb(239 68 68 / 0.9);\n}\n .proctor-library-root #proctor-library-root-id .bg-red-700 {\n --tw-bg-opacity: 1;\n background-color: rgb(185 28 28 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-scaler-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(230 242 255 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-scaler-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(0 128 255 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-scaler-900 {\n --tw-bg-opacity: 1;\n background-color: rgb(0 51 102 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-secondary {\n background-color: hsl(var(--secondary));\n}\n .proctor-library-root #proctor-library-root-id .bg-slate-200 {\n --tw-bg-opacity: 1;\n background-color: rgb(226 232 240 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .bg-opacity-50 {\n --tw-bg-opacity: 0.5;\n}\n .proctor-library-root #proctor-library-root-id .fill-black {\n fill: #000;\n}\n .proctor-library-root #proctor-library-root-id .fill-green-600 {\n fill: #16a34a;\n}\n .proctor-library-root #proctor-library-root-id .object-contain {\n -o-object-fit: contain;\n object-fit: contain;\n}\n .proctor-library-root #proctor-library-root-id .object-cover {\n -o-object-fit: cover;\n object-fit: cover;\n}\n .proctor-library-root #proctor-library-root-id .p-1 {\n padding: 0.25rem;\n}\n .proctor-library-root #proctor-library-root-id .p-12 {\n padding: 3rem;\n}\n .proctor-library-root #proctor-library-root-id .p-16 {\n padding: 4rem;\n}\n .proctor-library-root #proctor-library-root-id .p-2 {\n padding: 0.5rem;\n}\n .proctor-library-root #proctor-library-root-id .p-20 {\n padding: 5rem;\n}\n .proctor-library-root #proctor-library-root-id .p-3 {\n padding: 0.75rem;\n}\n .proctor-library-root #proctor-library-root-id .p-4 {\n padding: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .p-5 {\n padding: 1.25rem;\n}\n .proctor-library-root #proctor-library-root-id .p-6 {\n padding: 1.5rem;\n}\n .proctor-library-root #proctor-library-root-id .p-8 {\n padding: 2rem;\n}\n .proctor-library-root #proctor-library-root-id .px-10 {\n padding-left: 2.5rem;\n padding-right: 2.5rem;\n}\n .proctor-library-root #proctor-library-root-id .px-12 {\n padding-left: 3rem;\n padding-right: 3rem;\n}\n .proctor-library-root #proctor-library-root-id .px-16 {\n padding-left: 4rem;\n padding-right: 4rem;\n}\n .proctor-library-root #proctor-library-root-id .px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n .proctor-library-root #proctor-library-root-id .px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n .proctor-library-root #proctor-library-root-id .px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .px-5 {\n padding-left: 1.25rem;\n padding-right: 1.25rem;\n}\n .proctor-library-root #proctor-library-root-id .px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n}\n .proctor-library-root #proctor-library-root-id .py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n .proctor-library-root #proctor-library-root-id .py-16 {\n padding-top: 4rem;\n padding-bottom: 4rem;\n}\n .proctor-library-root #proctor-library-root-id .py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n .proctor-library-root #proctor-library-root-id .py-3 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n .proctor-library-root #proctor-library-root-id .py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .py-6 {\n padding-top: 1.5rem;\n padding-bottom: 1.5rem;\n}\n .proctor-library-root #proctor-library-root-id .py-8 {\n padding-top: 2rem;\n padding-bottom: 2rem;\n}\n .proctor-library-root #proctor-library-root-id .py-9 {\n padding-top: 2.25rem;\n padding-bottom: 2.25rem;\n}\n .proctor-library-root #proctor-library-root-id .pb-10 {\n padding-bottom: 2.5rem;\n}\n .proctor-library-root #proctor-library-root-id .pb-4 {\n padding-bottom: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .pb-6 {\n padding-bottom: 1.5rem;\n}\n .proctor-library-root #proctor-library-root-id .pl-16 {\n padding-left: 4rem;\n}\n .proctor-library-root #proctor-library-root-id .pl-5 {\n padding-left: 1.25rem;\n}\n .proctor-library-root #proctor-library-root-id .pr-4 {\n padding-right: 1rem;\n}\n .proctor-library-root #proctor-library-root-id .pr-8 {\n padding-right: 2rem;\n}\n .proctor-library-root #proctor-library-root-id .pt-0 {\n padding-top: 0px;\n}\n .proctor-library-root #proctor-library-root-id .pt-20 {\n padding-top: 5rem;\n}\n .proctor-library-root #proctor-library-root-id .pt-24 {\n padding-top: 6rem;\n}\n .proctor-library-root #proctor-library-root-id .pt-8 {\n padding-top: 2rem;\n}\n .proctor-library-root #proctor-library-root-id .text-center {\n text-align: center;\n}\n .proctor-library-root #proctor-library-root-id .text-2xl {\n font-size: 2.5rem;\n}\n .proctor-library-root #proctor-library-root-id .text-3xl {\n font-size: 3.2rem;\n}\n .proctor-library-root #proctor-library-root-id .text-base {\n font-size: 1.6rem;\n}\n .proctor-library-root #proctor-library-root-id .text-lg {\n font-size: 1.8rem;\n}\n .proctor-library-root #proctor-library-root-id .text-sm {\n font-size: 1.4rem;\n}\n .proctor-library-root #proctor-library-root-id .text-sm\\/7 {\n font-size: 1.4rem;\n line-height: 1.75rem;\n}\n .proctor-library-root #proctor-library-root-id .text-xl {\n font-size: 2rem;\n}\n .proctor-library-root #proctor-library-root-id .text-xs {\n font-size: 1.2rem;\n}\n .proctor-library-root #proctor-library-root-id .font-bold {\n font-weight: 700;\n}\n .proctor-library-root #proctor-library-root-id .font-medium {\n font-weight: 500;\n}\n .proctor-library-root #proctor-library-root-id .font-semibold {\n font-weight: 600;\n}\n .proctor-library-root #proctor-library-root-id .uppercase {\n text-transform: uppercase;\n}\n .proctor-library-root #proctor-library-root-id .italic {\n font-style: italic;\n}\n .proctor-library-root #proctor-library-root-id .leading-none {\n line-height: 1;\n}\n .proctor-library-root #proctor-library-root-id .leading-relaxed {\n line-height: 1.625;\n}\n .proctor-library-root #proctor-library-root-id .tracking-tight {\n letter-spacing: -0.025em;\n}\n .proctor-library-root #proctor-library-root-id .tracking-widest {\n letter-spacing: 0.1em;\n}\n .proctor-library-root #proctor-library-root-id .text-base-200 {\n --tw-text-opacity: 1;\n color: rgb(97 115 142 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-base-500 {\n --tw-text-opacity: 1;\n color: rgb(26 44 71 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-base-700 {\n --tw-text-opacity: 1;\n color: rgb(2 16 40 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-black {\n --tw-text-opacity: 1;\n color: rgb(0 0 0 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-blue-400 {\n --tw-text-opacity: 1;\n color: rgb(96 165 250 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-blue-500 {\n --tw-text-opacity: 1;\n color: rgb(59 130 246 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-card-foreground {\n color: hsl(var(--card-foreground));\n}\n .proctor-library-root #proctor-library-root-id .text-current {\n color: currentColor;\n}\n .proctor-library-root #proctor-library-root-id .text-destructive-foreground {\n color: hsl(var(--destructive-foreground));\n}\n .proctor-library-root #proctor-library-root-id .text-gray-400 {\n --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-gray-500 {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-gray-600 {\n --tw-text-opacity: 1;\n color: rgb(75 85 99 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-gray-800 {\n --tw-text-opacity: 1;\n color: rgb(31 41 55 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-gray-900 {\n --tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-green-600 {\n --tw-text-opacity: 1;\n color: rgb(22 163 74 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-muted-foreground {\n color: hsl(var(--muted-foreground));\n}\n .proctor-library-root #proctor-library-root-id .text-primary {\n color: hsl(var(--primary));\n}\n .proctor-library-root #proctor-library-root-id .text-primary-foreground {\n color: hsl(var(--primary-foreground));\n}\n .proctor-library-root #proctor-library-root-id .text-red-400 {\n --tw-text-opacity: 1;\n color: rgb(248 113 113 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-red-500 {\n --tw-text-opacity: 1;\n color: rgb(239 68 68 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-red-600 {\n --tw-text-opacity: 1;\n color: rgb(220 38 38 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-red-700 {\n --tw-text-opacity: 1;\n color: rgb(185 28 28 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-scaler-500 {\n --tw-text-opacity: 1;\n color: rgb(0 128 255 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .text-secondary-foreground {\n color: hsl(var(--secondary-foreground));\n}\n .proctor-library-root #proctor-library-root-id .text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1));\n}\n .proctor-library-root #proctor-library-root-id .underline {\n text-decoration-line: underline;\n}\n .proctor-library-root #proctor-library-root-id .underline-offset-2 {\n text-underline-offset: 2px;\n}\n .proctor-library-root #proctor-library-root-id .underline-offset-4 {\n text-underline-offset: 4px;\n}\n .proctor-library-root #proctor-library-root-id .opacity-0 {\n opacity: 0;\n}\n .proctor-library-root #proctor-library-root-id .opacity-100 {\n opacity: 1;\n}\n .proctor-library-root #proctor-library-root-id .opacity-25 {\n opacity: 0.25;\n}\n .proctor-library-root #proctor-library-root-id .shadow-\\[0_0_0_9999px_rgba\\(11\\2c 27\\2c 58\\2c 0\\.55\\)\\] {\n --tw-shadow: 0 0 0 9999px rgba(11,27,58,0.55);\n --tw-shadow-colored: 0 0 0 9999px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n .proctor-library-root #proctor-library-root-id .shadow-\\[0px_0px_24px_0px_rgba\\(0\\2c 0\\2c 0\\2c 0\\.08\\)\\] {\n --tw-shadow: 0px 0px 24px 0px rgba(0,0,0,0.08);\n --tw-shadow-colored: 0px 0px 24px 0px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n .proctor-library-root #proctor-library-root-id .shadow-\\[0px_2px_14px_0px_rgba\\(16\\2c 24\\2c 40\\2c 0\\.05\\)\\] {\n --tw-shadow: 0px 2px 14px 0px rgba(16,24,40,0.05);\n --tw-shadow-colored: 0px 2px 14px 0px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n .proctor-library-root #proctor-library-root-id .shadow-lg {\n --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n .proctor-library-root #proctor-library-root-id .shadow-sm {\n --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n .proctor-library-root #proctor-library-root-id .outline {\n outline-style: solid;\n}\n .proctor-library-root #proctor-library-root-id .ring {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n .proctor-library-root #proctor-library-root-id .ring-offset-background {\n --tw-ring-offset-color: hsl(var(--background));\n}\n .proctor-library-root #proctor-library-root-id .blur {\n --tw-blur: blur(8px);\n 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);\n}\n .proctor-library-root #proctor-library-root-id .filter {\n 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);\n}\n .proctor-library-root #proctor-library-root-id .transition {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n .proctor-library-root #proctor-library-root-id .transition-all {\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n .proctor-library-root #proctor-library-root-id .transition-colors {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n .proctor-library-root #proctor-library-root-id .transition-opacity {\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n .proctor-library-root #proctor-library-root-id .transition-transform {\n transition-property: transform;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n .proctor-library-root #proctor-library-root-id .duration-1000 {\n transition-duration: 1000ms;\n}\n .proctor-library-root #proctor-library-root-id .duration-500 {\n transition-duration: 500ms;\n}\n .proctor-library-root #proctor-library-root-id .ease-in-out {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n .proctor-library-root #proctor-library-root-id .ease-linear {\n transition-timing-function: linear;\n}\n @keyframes enter {\n from {\n opacity: var(--tw-enter-opacity, 1);\n transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));\n }\n}\n @keyframes exit {\n to {\n opacity: var(--tw-exit-opacity, 1);\n transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));\n }\n}\n .proctor-library-root #proctor-library-root-id .duration-1000 {\n animation-duration: 1000ms;\n}\n .proctor-library-root #proctor-library-root-id .duration-500 {\n animation-duration: 500ms;\n}\n .proctor-library-root #proctor-library-root-id .ease-in-out {\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n .proctor-library-root #proctor-library-root-id .ease-linear {\n animation-timing-function: linear;\n}\n .proctor-library-root #proctor-library-root-id .running {\n animation-play-state: running;\n}\n .proctor-library-root {\n\n --background: 0 0% 100%;\n --foreground: 222.2 47.4% 11.2%;\n --muted: 210 40% 96.1%;\n --muted-foreground: 215.4 16.3% 46.9%;\n --popover: 0 0% 100%;\n --popover-foreground: 222.2 47.4% 11.2%;\n --border: 214.3 31.8% 91.4%;\n --input: 214.3 31.8% 91.4%;\n --card: 0 0% 100%;\n --card-foreground: 222.2 47.4% 11.2%;\n --primary: 222.2 47.4% 11.2%;\n --primary-foreground: 210 40% 98%;\n --secondary: 210 40% 96.1%;\n --secondary-foreground: 222.2 47.4% 11.2%;\n --accent: 210 40% 96.1%;\n --accent-foreground: 222.2 47.4% 11.2%;\n --destructive: 0 100% 50%;\n --destructive-foreground: 210 40% 98%;\n --ring: 215 20.2% 65.1%;\n --radius: 0.5rem;\n\n\n border-color: var(--border);\n background-color: var(--background);\n color: var(--foreground);\n font-family: SourceSansPro, sans-serif !important;\n font-size: 10px;\n}\n\n\n\n\n.proctor-library-root * {\n margin: 0;\n padding: 0;\n font-size: inherit;\n font-family: SourceSansPro, sans-serif !important;\n}\n\n\n.proctor-library-root .markdown-content {\n color: #1a1a1a;\n line-height: 1.6;\n font-size: 16px;\n}\n\n.proctor-library-root .markdown-content h1,\n.proctor-library-root .markdown-content h2,\n.proctor-library-root .markdown-content h3,\n.proctor-library-root .markdown-content h4,\n.proctor-library-root .markdown-content h5,\n.proctor-library-root .markdown-content h6 {\n margin: 1em 0;\n font-weight: 600;\n line-height: 1.25;\n color: #111;\n}\n\n.proctor-library-root .markdown-content h1 {\n font-size: 2em;\n border-bottom: 2px solid #eaecef;\n padding-bottom: 0.3em;\n}\n\n.proctor-library-root .markdown-content h2 {\n font-size: 1.5em;\n border-bottom: 1px solid #eaecef;\n padding-bottom: 0.3em;\n}\n\n.proctor-library-root .markdown-content h3 {\n font-size: 1.25em;\n}\n\n.proctor-library-root .markdown-content h4 {\n font-size: 1em;\n}\n\n.proctor-library-root .markdown-content h5 {\n font-size: 0.875em;\n}\n\n.proctor-library-root .markdown-content h6 {\n font-size: 0.85em;\n color: #6a737d;\n}\n\n/* Paragraphs */\n.proctor-library-root .markdown-content p {\n margin: 1em 0;\n line-height: 1.75;\n}\n\n/* Lists */\n.proctor-library-root .markdown-content ul,\n.proctor-library-root .markdown-content ol {\n margin: 1em 0;\n padding-left: 2em;\n}\n\n.proctor-library-root .markdown-content li {\n margin: 0.5em 0;\n list-style-type: disc;\n}\n\n.proctor-library-root .markdown-content li::marker {\n color: #6a737d;\n}\n\n.proctor-library-root .markdown-content li p {\n margin: 0.5em 0;\n}\n\n.proctor-library-root .markdown-content li ul,\n.proctor-library-root .markdown-content li ol {\n margin: 0.5em 0;\n}\n\n/* Definition lists */\n.proctor-library-root .markdown-content dl {\n margin: 1em 0;\n}\n\n.proctor-library-root .markdown-content dt {\n font-weight: 600;\n margin-top: 1em;\n}\n\n.proctor-library-root .markdown-content dd {\n margin-left: 2em;\n margin-top: 0.5em;\n}\n\n.proctor-library-root .markdown-content blockquote {\n margin: 1.5em 0;\n padding: 0.5em 1.5em;\n border-left: 4px solid #60a5fa;\n background-color: #f8fafc;\n color: #4a5568;\n}\n\n.proctor-library-root .markdown-content blockquote p {\n margin: 0.5em 0;\n}\n\n.proctor-library-root .markdown-content blockquote p:first-child {\n margin-top: 0;\n}\n\n.proctor-library-root .markdown-content blockquote p:last-child {\n margin-bottom: 0;\n}\n\n.proctor-library-root .markdown-content blockquote blockquote {\n border-left-color: #93c5fd;\n background-color: #f1f5f9;\n}\n\n.proctor-library-root .markdown-content a {\n color: #2563eb;\n text-decoration: none;\n transition: color 0.2s ease;\n}\n\n.proctor-library-root .markdown-content a:hover {\n color: #1d4ed8;\n text-decoration: underline;\n}\n\n.proctor-library-root .markdown-content a:visited {\n color: #7c3aed;\n}\n\n.proctor-library-root .markdown-content img {\n max-width: 100%;\n height: auto;\n margin: 1.5em 0;\n border-radius: 6px;\n box-shadow: 0 4px 6px -1px rgb(0 0 0 / 10%);\n}\n\n#proctor-library-root-id .last\\:border-b-0:last-child {\n border-bottom-width: 0px;\n}\n\n#proctor-library-root-id .hover\\:bg-accent:hover {\n background-color: hsl(var(--accent));\n}\n\n#proctor-library-root-id .hover\\:bg-blue-50:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));\n}\n\n#proctor-library-root-id .hover\\:bg-blue-600:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));\n}\n\n#proctor-library-root-id .hover\\:bg-destructive\\/90:hover {\n background-color: hsl(var(--destructive) / 0.9);\n}\n\n#proctor-library-root-id .hover\\:bg-primary\\/90:hover {\n background-color: hsl(var(--primary) / 0.9);\n}\n\n#proctor-library-root-id .hover\\:bg-scaler-500\\/90:hover {\n background-color: rgb(0 128 255 / 0.9);\n}\n\n#proctor-library-root-id .hover\\:bg-opacity-75:hover {\n --tw-bg-opacity: 0.75;\n}\n\n#proctor-library-root-id .hover\\:text-accent-foreground:hover {\n color: hsl(var(--accent-foreground));\n}\n\n#proctor-library-root-id .hover\\:text-blue-600:hover {\n --tw-text-opacity: 1;\n color: rgb(37 99 235 / var(--tw-text-opacity, 1));\n}\n\n#proctor-library-root-id .hover\\:text-gray-800:hover {\n --tw-text-opacity: 1;\n color: rgb(31 41 55 / var(--tw-text-opacity, 1));\n}\n\n#proctor-library-root-id .hover\\:underline:hover {\n text-decoration-line: underline;\n}\n\n#proctor-library-root-id .focus\\:border-blue-400:focus {\n --tw-border-opacity: 1;\n border-color: rgb(96 165 250 / var(--tw-border-opacity, 1));\n}\n\n#proctor-library-root-id .focus\\:outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n#proctor-library-root-id .focus\\:ring-1:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n\n#proctor-library-root-id .focus\\:ring-blue-400:focus {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity, 1));\n}\n\n#proctor-library-root-id .focus-visible\\:outline-none:focus-visible {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n#proctor-library-root-id .focus-visible\\:ring-2:focus-visible {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n\n#proctor-library-root-id .focus-visible\\:ring-ring:focus-visible {\n --tw-ring-color: hsl(var(--ring));\n}\n\n#proctor-library-root-id .focus-visible\\:ring-offset-2:focus-visible {\n --tw-ring-offset-width: 2px;\n}\n\n#proctor-library-root-id .disabled\\:pointer-events-none:disabled {\n pointer-events: none;\n}\n\n#proctor-library-root-id .disabled\\:cursor-not-allowed:disabled {\n cursor: not-allowed;\n}\n\n#proctor-library-root-id .disabled\\:opacity-50:disabled {\n opacity: 0.5;\n}\n\n#proctor-library-root-id .data-\\[state\\=checked\\]\\:border-blue-500[data-state="checked"] {\n --tw-border-opacity: 1;\n border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));\n}\n\n#proctor-library-root-id .data-\\[state\\=checked\\]\\:bg-scaler-500[data-state="checked"] {\n --tw-bg-opacity: 1;\n background-color: rgb(0 128 255 / var(--tw-bg-opacity, 1));\n}\n\n#proctor-library-root-id .data-\\[state\\=checked\\]\\:text-primary-foreground[data-state="checked"] {\n color: hsl(var(--primary-foreground));\n}\n\n@media (min-width: 768px) {\n #proctor-library-root-id .md\\:mt-2 {\n margin-top: 0.5rem;\n }\n}\n',""]);const l=a;n.d(t,["A",0,l])},8723(e,t,n){"use strict";var r=n(3577),o=n.n(r),i=n(3554),a=n.n(i)()(o());a.push([e.id,".warning-modal{display:none;padding:1.6rem 2rem 2.4rem;color:#fff;border-radius:1.6rem;background-color:#a42137;position:fixed;z-index:99999;top:2%;left:50%;transform:translateX(-50%);max-width:47rem;font-size:1.6rem}.warning-modal__close-btn{position:absolute;top:0;right:0;padding:.8rem 1.2rem;border-radius:50%;background-color:#851a2d;display:flex;transform:translate(25%, -25%);cursor:pointer}.warning-modal__body{display:flex;align-items:start}.warning-modal__icon-wrap{background-color:#851a2d;padding:2.6rem 1.1rem;display:flex;justify-content:center;align-items:center;border-radius:1.1rem;height:6.4rem;width:6.4rem;margin-right:1.5rem}.warning-modal__heading{font-size:2rem;font-style:normal;font-weight:600;line-height:3.2rem}.warning-modal__action{cursor:pointer;background-color:#fff;color:#a42137;text-align:center;padding:.8rem 2.4rem;border-radius:.4rem;font-weight:600;margin-top:2.4rem}.warning-modal--networkAlert{background-color:#d97706}.warning-modal--networkAlert .warning-modal__close-btn,.warning-modal--networkAlert .warning-modal__icon-wrap{background-color:#b45309}.warning-modal--networkAlert .warning-modal__action{color:#b45309}",""]);const l=a;n.d(t,["A",0,l])},1003(e,t,n){"use strict";var r=n(5602),o=n.n(r),i=n(3554),a=n.n(i)()(o());a.push([e.id,".CompatibilityModalStepsScreen-module__stepNumber___nf944{letter-spacing:.11em}","",{version:3,sources:["webpack://./src/components/CompatibilityModalStepsScreen/CompatibilityModalStepsScreen.module.scss"],names:[],mappings:"AAAA,0DAAY,oBAAoB",sourcesContent:[".stepNumber{letter-spacing:.11em}"],sourceRoot:""}]),a.locals={stepNumber:"CompatibilityModalStepsScreen-module__stepNumber___nf944"};const l=a;n.d(t,["A",0,l])},147(e,t,n){"use strict";var r=n(5602),o=n.n(r),i=n(3554),a=n.n(i)()(o());a.push([e.id,".MobileCameraStep-module__pairingContainer___M9XqR{display:flex;align-items:center;justify-content:space-between;overflow-x:auto}.MobileCameraStep-module__qrCodeContainer___i1Su0{display:flex;align-items:center;justify-content:center;margin-right:2.4rem}.MobileCameraStep-module__qrCodeContainer___i1Su0 img{height:18.5rem;min-width:18.5rem !important;width:18.5rem}.MobileCameraStep-module__dividerLine___Zu4eF{background-color:#eaeff4;width:.1rem;height:4.3rem}.MobileCameraStep-module__divider___q8GV2{display:flex;flex-direction:column;justify-content:center;align-items:center}.MobileCameraStep-module__dividerText___bc5GT{margin:.4rem;color:#d6dee5}.MobileCameraStep-module__copyLinkHeading___EipZ5{font-size:1.4rem;font-weight:bold}.MobileCameraStep-module__copyLinkBody___vlVHB{color:#91a1b7;font-size:1.2rem}.MobileCameraStep-module__copyLinkContainer___KsklA{display:flex;flex-direction:column;justify-content:center;margin-left:2.4rem}.MobileCameraStep-module__copyIcon___j4hlE{margin-right:.5rem}.MobileCameraStep-module__copyLinkOption___AXXFZ{display:flex;align-items:center;margin-top:1rem}.MobileCameraStep-module__copyLinkBox___iMSVQ{border-radius:.8rem;border:.1rem solid #d6dee5;padding:1.2rem 1.6rem;white-space:nowrap;overflow:hidden !important;text-overflow:ellipsis;width:30rem}.MobileCameraStep-module__copyLinkText___tGI74{display:flex;align-items:center;font-size:1.2rem;color:#61738e;margin-left:1rem;cursor:pointer}.MobileCameraStep-module__demo___rivwq{display:flex;justify-content:center;margin-top:2.4rem}.MobileCameraStep-module__demo___rivwq img{width:100%;border-radius:1.2rem}.MobileCameraStep-module__retrySnapshot___QlhjO{font-weight:bold !important;color:#3b82f6 !important;width:100% !important;padding:.8rem 1.6rem !important;cursor:pointer !important;font-size:1.2rem}.MobileCameraStep-module__snapshotPreview___OAmiZ{display:flex;align-items:center;justify-content:center;flex:1}.MobileCameraStep-module__snapshotImageContainer___nFF7N{position:relative;width:100%;padding-top:75%;overflow:hidden;background-color:#f4f6f9;border-radius:1.2rem}.MobileCameraStep-module__snapshotImage___TmrSE{position:absolute;top:0;left:0;width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.MobileCameraStep-module__orientationContainer___JX7Lc{display:flex}.MobileCameraStep-module__snapshotPreviewContainer___KqcLT{display:flex;flex-direction:column;flex:1}.MobileCameraStep-module__referenceImage___mJ5yK{height:6.4rem;width:6.4rem;margin-right:2.4rem}.MobileCameraStep-module__orientationInstructions___XQszl{margin-bottom:3.2rem}.MobileCameraStep-module__orientationInstructionPoints___EytKg{list-style:disc !important;padding-left:2rem !important;padding-top:.5rem !important;color:#61738e;font-size:1.2rem;line-height:2.2rem}.MobileCameraStep-module__orientationInstructionHeading___UL9ml{font-size:1.4rem;font-weight:600;font-style:italic}.MobileCameraStep-module__referenceImageList___zKW9w{display:flex}.MobileCameraStep-module__referenceImageContainer___ghCtl{flex:1;padding-right:2.4rem}.MobileCameraStep-module__compatibilityTitle___xYAz6{font-size:1.8rem;font-weight:600}.MobileCameraStep-module__compatibilityBody___zoa5B{color:#61738e;font-size:1.6rem;font-style:italic;line-height:2.6rem}.MobileCameraStep-module__compatibilityWarningIcon___Z1uVA{height:4rem;width:4rem}.MobileCameraStep-module__compatibilityAlert___ljLqY{color:#dc2626;background-color:#fee2e2;font-size:1.4rem;padding:.8rem 1.6rem;margin:4rem -4rem -4rem;border-radius:0 0 1.2rem 1.2rem}","",{version:3,sources:["webpack://./src/components/MobileCameraStep/MobileCameraStep.module.scss"],names:[],mappings:"AAAA,mDAAkB,YAAY,CAAC,kBAAkB,CAAC,6BAA6B,CAAC,eAAe,CAAC,kDAAiB,YAAY,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,sDAAqB,cAAc,CAAC,4BAA4B,CAAC,aAAa,CAAC,8CAAa,wBAAwB,CAAC,WAAW,CAAC,aAAa,CAAC,0CAAS,YAAY,CAAC,qBAAqB,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,8CAAa,YAAY,CAAC,aAAa,CAAC,kDAAiB,gBAAgB,CAAC,gBAAgB,CAAC,+CAAc,aAAa,CAAC,gBAAgB,CAAC,oDAAmB,YAAY,CAAC,qBAAqB,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,2CAAU,kBAAkB,CAAC,iDAAgB,YAAY,CAAC,kBAAkB,CAAC,eAAe,CAAC,8CAAa,mBAAmB,CAAC,0BAA0B,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,0BAA0B,CAAC,sBAAsB,CAAC,WAAW,CAAC,+CAAc,YAAY,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,aAAa,CAAC,gBAAgB,CAAC,cAAc,CAAC,uCAAM,YAAY,CAAC,sBAAsB,CAAC,iBAAiB,CAAC,2CAAU,UAAU,CAAC,oBAAoB,CAAC,gDAAe,2BAA2B,CAAC,wBAAwB,CAAC,qBAAqB,CAAC,+BAA+B,CAAC,yBAAyB,CAAC,gBAAgB,CAAC,kDAAiB,YAAY,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,MAAM,CAAC,yDAAwB,iBAAiB,CAAC,UAAU,CAAC,eAAe,CAAC,eAAe,CAAC,wBAAwB,CAAC,oBAAoB,CAAC,gDAAe,iBAAiB,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,uDAAsB,YAAY,CAAC,2DAA0B,YAAY,CAAC,qBAAqB,CAAC,MAAM,CAAC,iDAAgB,aAAa,CAAC,YAAY,CAAC,mBAAmB,CAAC,0DAAyB,oBAAoB,CAAC,+DAA8B,0BAA0B,CAAC,4BAA4B,CAAC,4BAA4B,CAAC,aAAa,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,gEAA+B,gBAAgB,CAAC,eAAe,CAAC,iBAAiB,CAAC,qDAAoB,YAAY,CAAC,0DAAyB,MAAM,CAAC,oBAAoB,CAAC,qDAAoB,gBAAgB,CAAC,eAAe,CAAC,oDAAmB,aAAa,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,2DAA0B,WAAW,CAAC,UAAU,CAAC,qDAAoB,aAAa,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,+BAA+B",sourcesContent:[".pairingContainer{display:flex;align-items:center;justify-content:space-between;overflow-x:auto}.qrCodeContainer{display:flex;align-items:center;justify-content:center;margin-right:2.4rem}.qrCodeContainer img{height:18.5rem;min-width:18.5rem !important;width:18.5rem}.dividerLine{background-color:#eaeff4;width:.1rem;height:4.3rem}.divider{display:flex;flex-direction:column;justify-content:center;align-items:center}.dividerText{margin:.4rem;color:#d6dee5}.copyLinkHeading{font-size:1.4rem;font-weight:bold}.copyLinkBody{color:#91a1b7;font-size:1.2rem}.copyLinkContainer{display:flex;flex-direction:column;justify-content:center;margin-left:2.4rem}.copyIcon{margin-right:.5rem}.copyLinkOption{display:flex;align-items:center;margin-top:1rem}.copyLinkBox{border-radius:.8rem;border:.1rem solid #d6dee5;padding:1.2rem 1.6rem;white-space:nowrap;overflow:hidden !important;text-overflow:ellipsis;width:30rem}.copyLinkText{display:flex;align-items:center;font-size:1.2rem;color:#61738e;margin-left:1rem;cursor:pointer}.demo{display:flex;justify-content:center;margin-top:2.4rem}.demo img{width:100%;border-radius:1.2rem}.retrySnapshot{font-weight:bold !important;color:#3b82f6 !important;width:100% !important;padding:.8rem 1.6rem !important;cursor:pointer !important;font-size:1.2rem}.snapshotPreview{display:flex;align-items:center;justify-content:center;flex:1}.snapshotImageContainer{position:relative;width:100%;padding-top:75%;overflow:hidden;background-color:#f4f6f9;border-radius:1.2rem}.snapshotImage{position:absolute;top:0;left:0;width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.orientationContainer{display:flex}.snapshotPreviewContainer{display:flex;flex-direction:column;flex:1}.referenceImage{height:6.4rem;width:6.4rem;margin-right:2.4rem}.orientationInstructions{margin-bottom:3.2rem}.orientationInstructionPoints{list-style:disc !important;padding-left:2rem !important;padding-top:.5rem !important;color:#61738e;font-size:1.2rem;line-height:2.2rem}.orientationInstructionHeading{font-size:1.4rem;font-weight:600;font-style:italic}.referenceImageList{display:flex}.referenceImageContainer{flex:1;padding-right:2.4rem}.compatibilityTitle{font-size:1.8rem;font-weight:600}.compatibilityBody{color:#61738e;font-size:1.6rem;font-style:italic;line-height:2.6rem}.compatibilityWarningIcon{height:4rem;width:4rem}.compatibilityAlert{color:#dc2626;background-color:#fee2e2;font-size:1.4rem;padding:.8rem 1.6rem;margin:4rem -4rem -4rem;border-radius:0 0 1.2rem 1.2rem}"],sourceRoot:""}]),a.locals={pairingContainer:"MobileCameraStep-module__pairingContainer___M9XqR",qrCodeContainer:"MobileCameraStep-module__qrCodeContainer___i1Su0",dividerLine:"MobileCameraStep-module__dividerLine___Zu4eF",divider:"MobileCameraStep-module__divider___q8GV2",dividerText:"MobileCameraStep-module__dividerText___bc5GT",copyLinkHeading:"MobileCameraStep-module__copyLinkHeading___EipZ5",copyLinkBody:"MobileCameraStep-module__copyLinkBody___vlVHB",copyLinkContainer:"MobileCameraStep-module__copyLinkContainer___KsklA",copyIcon:"MobileCameraStep-module__copyIcon___j4hlE",copyLinkOption:"MobileCameraStep-module__copyLinkOption___AXXFZ",copyLinkBox:"MobileCameraStep-module__copyLinkBox___iMSVQ",copyLinkText:"MobileCameraStep-module__copyLinkText___tGI74",demo:"MobileCameraStep-module__demo___rivwq",retrySnapshot:"MobileCameraStep-module__retrySnapshot___QlhjO",snapshotPreview:"MobileCameraStep-module__snapshotPreview___OAmiZ",snapshotImageContainer:"MobileCameraStep-module__snapshotImageContainer___nFF7N",snapshotImage:"MobileCameraStep-module__snapshotImage___TmrSE",orientationContainer:"MobileCameraStep-module__orientationContainer___JX7Lc",snapshotPreviewContainer:"MobileCameraStep-module__snapshotPreviewContainer___KqcLT",referenceImage:"MobileCameraStep-module__referenceImage___mJ5yK",orientationInstructions:"MobileCameraStep-module__orientationInstructions___XQszl",orientationInstructionPoints:"MobileCameraStep-module__orientationInstructionPoints___EytKg",orientationInstructionHeading:"MobileCameraStep-module__orientationInstructionHeading___UL9ml",referenceImageList:"MobileCameraStep-module__referenceImageList___zKW9w",referenceImageContainer:"MobileCameraStep-module__referenceImageContainer___ghCtl",compatibilityTitle:"MobileCameraStep-module__compatibilityTitle___xYAz6",compatibilityBody:"MobileCameraStep-module__compatibilityBody___zoa5B",compatibilityWarningIcon:"MobileCameraStep-module__compatibilityWarningIcon___Z1uVA",compatibilityAlert:"MobileCameraStep-module__compatibilityAlert___ljLqY"};const l=a;n.d(t,["A",0,l])},5525(e,t,n){"use strict";var r=n(5602),o=n.n(r),i=n(3554),a=n.n(i)()(o());a.push([e.id,".StepHeader-module__stepNumber___f9xM3{letter-spacing:.11em}","",{version:3,sources:["webpack://./src/ui/StepHeader/StepHeader.module.scss"],names:[],mappings:"AAAA,uCAAY,oBAAoB",sourcesContent:[".stepNumber{letter-spacing:.11em}"],sourceRoot:""}]),a.locals={stepNumber:"StepHeader-module__stepNumber___f9xM3"};const l=a;n.d(t,["A",0,l])},7935(e,t,n){"use strict";var r=n(5602),o=n.n(r),i=n(3554),a=n.n(i)()(o());a.push([e.id,".Tabs-module__tabs___bKumb{display:flex;flex-direction:column;border-radius:1.2rem;box-shadow:0 2px 10px rgba(0,0,0,.1)}.Tabs-module__tabList___YAob6{display:flex}.Tabs-module__tabList___YAob6>:first-child{border-radius:1.2rem 0 0}.Tabs-module__tabList___YAob6>:last-child{border-radius:0 1.2rem 0 0}.Tabs-module__tab___UQtuy{display:flex;align-items:center;justify-content:center;padding:1.6rem 3rem;color:#fff;background-color:#021028;cursor:pointer;transition:color .3s;font-size:1.4rem;flex:1;font-weight:600}.Tabs-module__tab___UQtuy:hover{color:#73b9ff}.Tabs-module__active___XWp63{color:#73b9ff;border-bottom:4px solid #73b9ff}.Tabs-module__disabled___WeFAj{color:#61738e;cursor:not-allowed}.Tabs-module__tabContent___M0YqI{padding:4rem;position:relative}","",{version:3,sources:["webpack://./src/ui/Tabs/Tabs.module.scss"],names:[],mappings:"AAAA,2BAAM,YAAY,CAAC,qBAAqB,CAAC,oBAAoB,CAAC,oCAAoC,CAAC,8BAAS,YAAY,CAAC,2CAAsB,wBAAwB,CAAC,0CAAqB,0BAA0B,CAAC,0BAAK,YAAY,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,UAAU,CAAC,wBAAwB,CAAC,cAAc,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,MAAM,CAAC,eAAe,CAAC,gCAAW,aAAa,CAAC,6BAAQ,aAAa,CAAC,+BAA+B,CAAC,+BAAU,aAAa,CAAC,kBAAkB,CAAC,iCAAY,YAAY,CAAC,iBAAiB",sourcesContent:[".tabs{display:flex;flex-direction:column;border-radius:1.2rem;box-shadow:0 2px 10px rgba(0,0,0,.1)}.tabList{display:flex}.tabList>:first-child{border-radius:1.2rem 0 0}.tabList>:last-child{border-radius:0 1.2rem 0 0}.tab{display:flex;align-items:center;justify-content:center;padding:1.6rem 3rem;color:#fff;background-color:#021028;cursor:pointer;transition:color .3s;font-size:1.4rem;flex:1;font-weight:600}.tab:hover{color:#73b9ff}.active{color:#73b9ff;border-bottom:4px solid #73b9ff}.disabled{color:#61738e;cursor:not-allowed}.tabContent{padding:4rem;position:relative}"],sourceRoot:""}]),a.locals={tabs:"Tabs-module__tabs___bKumb",tabList:"Tabs-module__tabList___YAob6",tab:"Tabs-module__tab___UQtuy",active:"Tabs-module__active___XWp63",disabled:"Tabs-module__disabled___WeFAj",tabContent:"Tabs-module__tabContent___M0YqI"};const l=a;n.d(t,["A",0,l])},3554(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(a[s]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},3577(e){"use strict";e.exports=function(e){return e[1]}},5602(e){"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),i="/*# ".concat(o," */");return[t].concat([i]).join("\n")}return[t].join("\n")}},7380(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(s,c):c}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var d=1,f=1;function p(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:d,column:f};return function(t){return t.position=new m(e),v(),t}}function m(e){this.start=e,this.end={line:d,column:f},this.source=s.source}m.prototype.content=e;var y=[];function b(t){var n=new Error(s.source+":"+d+":"+f+": "+t);if(n.reason=t,n.filename=s.source,n.line=d,n.column=f,n.source=e,!s.silent)throw n;y.push(n)}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function v(){g(r)}function w(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return b("End of comment missing");var r=e.slice(2,n-2);return f+=2,p(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}function k(){var e=h(),n=g(o);if(n){if(x(),!g(i))return b("property missing ':'");var r=g(a),s=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return g(l),s}}return v(),function(){var e,t=[];for(w(t);e=k();)!1!==e&&(t.push(e),w(t));return t}()}},3097(e,t,n){var r=n(4117).Symbol;e.exports=r},9740(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},8282(e){e.exports=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}},4922(e){e.exports=function(e){return e.split("")}},6093(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},6080(e,t,n){var r=n(3097),o=n(7355),i=n(8942),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},8208(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},2768(e){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},2684(e,t,n){var r=n(3097),o=n(9740),i=n(2585),a=n(3906),l=r?r.prototype:void 0,s=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return s?s.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},7146(e,t,n){var r=n(2768);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},4003(e,t,n){var r=n(7146),o=n(634),i=n(400),a=n(9886);e.exports=function(e){return function(t){t=a(t);var n=o(t)?i(t):void 0,l=n?n[0]:t.charAt(0),s=n?r(n,1).join(""):t.slice(1);return l[e]()+s}}},2123(e,t,n){var r=n(8282),o=n(1108),i=n(5005),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(i(o(t).replace(a,"")),e,"")}}},815(e,t,n){var r=n(8208)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=r},480(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},7355(e,t,n){var r=n(3097),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[l]=n:delete e[l]),o}},634(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},8850(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},8942(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4117(e,t,n){var r=n(480),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},400(e,t,n){var r=n(4922),o=n(634),i=n(5982);e.exports=function(e){return o(e)?i(e):r(e)}},5982(e){var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+r+"|"+o+")?",c="[\\ufe0e\\ufe0f]?",u=c+s+"(?:\\u200d(?:"+[i,a,l].join("|")+")"+c+s+")*",d="(?:"+[i+r+"?",r,a,l,n].join("|")+")",f=RegExp(o+"(?="+o+")|"+d+u,"g");e.exports=function(e){return e.match(f)||[]}},1161(e){var t="\\ud800-\\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",o="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+i+"]",l="\\d+",s="["+n+"]",c="["+r+"]",u="[^"+t+i+l+n+r+o+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",p="["+o+"]",h="(?:"+c+"|"+u+")",m="(?:"+p+"|"+u+")",y="(?:['’](?:d|ll|m|re|s|t|ve))?",b="(?:['’](?:D|LL|M|RE|S|T|VE))?",g="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",v="[\\ufe0e\\ufe0f]?",w=v+g+"(?:\\u200d(?:"+["[^"+t+"]",d,f].join("|")+")"+v+g+")*",x="(?:"+[s,d,f].join("|")+")"+w,k=RegExp([p+"?"+c+"+"+y+"(?="+[a,p,"$"].join("|")+")",m+"+"+b+"(?="+[a,p+h,"$"].join("|")+")",p+"?"+h+"+"+y,p+"+"+b,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",l,x].join("|"),"g");e.exports=function(e){return e.match(k)||[]}},898(e,t,n){var r=n(992),o=n(2123)(function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)});e.exports=o},992(e,t,n){var r=n(9886),o=n(8248);e.exports=function(e){return o(r(e).toLowerCase())}},1108(e,t,n){var r=n(815),o=n(9886),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(i,r).replace(a,"")}},2585(e){var t=Array.isArray;e.exports=t},1746(e){e.exports=function(e){return null!=e&&"object"==typeof e}},3906(e,t,n){var r=n(6080),o=n(1746);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},4984(e,t,n){var r=n(2123),o=n(8248),i=r(function(e,t,n){return e+(n?" ":"")+o(t)});e.exports=i},9886(e,t,n){var r=n(2684);e.exports=function(e){return null==e?"":r(e)}},8248(e,t,n){var r=n(4003)("toUpperCase");e.exports=r},5005(e,t,n){var r=n(6093),o=n(8850),i=n(9886),a=n(1161);e.exports=function(e,t,n){return e=i(e),void 0===(t=n?void 0:t)?o(e)?a(e):r(e):e.match(t)||[]}},4876(){var e;"undefined"!=typeof window&&(Worker=(e=Worker,class extends e{constructor(e,t){const n=String(e);super(n.includes("://")&&!n.startsWith(location.origin)?URL.createObjectURL(new Blob([`importScripts=((i)=>(...a)=>i(...a.map((u)=>''+new URL(u,"${n}"))))(importScripts);importScripts("${n}")`],{type:"text/javascript"})):e,t)}}))},4693(e,t,n){const r={"./common.md":[7838,[838]],"./linux/chrome.md":[1718,[718]],"./linux/edge.md":[4449,[449]],"./linux/firefox.md":[5163,[163]],"./macos/chrome.md":[1115,[115]],"./macos/edge.md":[964,[964]],"./macos/firefox.md":[8792,[411]],"./macos/safari.md":[4645,[645]],"./windows/chrome.md":[995,[995]],"./windows/edge.md":[8972,[972]],"./windows/firefox.md":[2064,[64]]};function o(e){try{if(!n.o(r,e))return Promise.resolve().then(()=>{const t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}catch(e){return Promise.reject(e)}const t=r[e],o=t[0];return n.e(t[1][0]).then(()=>n(o))}o.keys=()=>Object.keys(r),o.id=4693,e.exports=o},4989(e,t,n){"use strict";e.exports=n.p+"images/white-warning34a3cc42412be81a674d.svg"},8190(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}};const t={};function n(r){const o=t[r];if(void 0!==o)return o.exports;const i=t[r]={id:r,exports:{}};return e[r](i,i.exports,n),i.exports}n.m=e,n.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.cw=e=>{var t;return()=>{if(e){var n=e;e=0,t={exports:{}},n.call(t.exports,t,t.exports)}return t.exports}},(()=>{const e=Object.getPrototypeOf;let t;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"==typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"==typeof r.then)return r}const i=Object.create(null);n.r(i);const a={};t=t||[null,e({}),e([]),e(e)];for(var l=2&o&&r;("object"==typeof l||"function"==typeof l)&&!~t.indexOf(l);l=e(l))Object.getOwnPropertyNames(l).forEach(e=>a[e]=()=>r[e]);return a.default=()=>r,n.d(i,a),i}})(),n.d=(e,t)=>{if(Array.isArray(t))for(var r=0;r<t.length;){var o=t[r++],i=t[r++],a=0===i?{enumerable:!0,value:t[r++]}:{enumerable:!0,get:i};n.o(e,o)||Object.defineProperty(e,o,a)}else for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.f={},n.e=e=>{const t=[];return n.f.j(e,t),Promise.all(t)},n.u=e=>e+".proctor.js",n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e={},t="Proctor:";n.l=(r,o,i,a)=>{if(e[r])return void e[r].push(o);let l,s;if(void 0!==i){const e=document.getElementsByTagName("script");for(var c=0;c<e.length;c++){const n=e[c];if(n.getAttribute("src")==r||n.getAttribute("data-webpack")==t+i){l=n;break}}}l||(s=!0,l=document.createElement("script"),l.charset="utf-8",n.nc&&l.setAttribute("nonce",n.nc),l.setAttribute("data-webpack",t+i),l.src=r),e[r]=[o];const u=(t,n)=>{l.onerror=l.onload=null,clearTimeout(d);const o=e[r];if(delete e[r],l.parentNode?.removeChild(l),o?.forEach(e=>e(n)),t)return t(n)},d=setTimeout(u.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=u.bind(null,l.onerror),l.onload=u.bind(null,l.onload),s&&document.head.appendChild(l)}})(),n.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;n.g.importScripts&&(e=n.g.location+"");const t=n.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const n=t.getElementsByTagName("script");if(n.length){let t=n.length-1;for(;t>-1&&(!e||!/^https?:/.test(e));)e=n[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),n.p=e})(),(()=>{n.b="undefined"!=typeof document&&document.baseURI||self.location.href;const e={792:0};n.f.j=(t,r)=>{let o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{const i=new Promise((n,r)=>o=e[t]=[n,r]);r.push(o[2]=i);const a=new Error,l=r=>{if(n.o(e,t)&&(o=e[t],0!==o&&(e[t]=void 0),o)){const e=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+e+": "+n+")",a.name="ChunkLoadError",a.type=e,a.request=n,a.event=r,o[1](a)}};n.l(n.p+n.u(t),l,"chunk-"+t,t)}};const t=(t,r)=>{let[o,i,a]=r;var l,s,c=0;if(o.some(t=>0!==e[t])){for(l in i)n.o(i,l)&&(n.m[l]=i[l]);a&&a(n)}for(t&&t(r);c<o.length;c++)s=o[c],n.o(e,s)&&e[s]&&e[s][0](),e[s]=0},r=this.webpackChunkProctor=this.webpackChunkProctor||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),n.nc=void 0;let r={};return(()=>{"use strict";n.d(r,{default:()=>Hy});var e=n.cw(function(e,t){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},l=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,o=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(t in e);return void 0===t||n.call(e,t)},s=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,n,r,o,i,u,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=c(d,n),d!==(o=c(t,n))&&(h&&o&&(l(o)||(i=a(o)))?(i?(i=!1,u=r&&a(r)?r:[]):u=r&&l(r)?r:{},s(d,{name:n,newValue:e(h,u,o)})):void 0!==o&&s(d,{name:n,newValue:o}));return d}}),t=n.cw(function(e,t){var n=s(),r=d();function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,a={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(a[e]=t,e=0;e<t.length;e++)i.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},m={};function y(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){b[e]=new y(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];b[t]=new y(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){b[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){b[e]=new y(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){b[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){b[e]=new y(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){b[e]=new y(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){b[e]=new y(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){b[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)});var g=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function w(e,t,n,r){var o=b.hasOwnProperty(t)?b[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!f.call(m,e)||!f.call(h,e)&&(p.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(g,v);b[t]=new y(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(g,v);b[t]=new y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(g,v);b[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){b[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)}),b.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){b[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)});var x=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=Symbol.for("react.element"),S=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),T=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var L=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var z=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=z&&e[z]||e["@@iterator"])?e:null}var R,D=Object.assign;function F(e){if(void 0===R)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);R=t&&t[1]||""}return"\n"+R+e}var B=!1;function q(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function U(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return q(e.type,!1);case 11:return q(e.type.render,!1);case 1:return q(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case _:return"Fragment";case S:return"Portal";case E:return"Profiler";case C:return"StrictMode";case N:return"Suspense";case O:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case A:return(e._context.displayName||"Context")+".Provider";case j:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return W(e(t))}catch(e){}}return null}function V(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function H(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=H(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function $(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=H(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Q(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function J(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function Z(e,t){J(e,t);var n=Q(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?te(e,t.type,n):t.hasOwnProperty("defaultValue")&&te(e,t.type,Q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ee(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function te(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ne=Array.isArray;function re(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Q(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function oe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return D({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(ne(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Q(n)}}function ae(e,t){var n=Q(t.value),r=Q(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function le(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ce(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,de,fe=(de=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return de(e,t)})}:de);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function ye(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function be(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ye(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(he).forEach(function(e){me.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]})});var ge=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function we(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,_e=null,Ce=null;function Ee(e){if(e=xo(e)){if("function"!=typeof Se)throw Error(o(280));var t=e.stateNode;t&&(t=So(t),Se(e.stateNode,e.type,t))}}function Ae(e){_e?Ce?Ce.push(e):Ce=[e]:_e=e}function Te(){if(_e){var e=_e,t=Ce;if(Ce=_e=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function je(e,t){return e(t)}function Ne(){}var Oe=!1;function Pe(e,t,n){if(Oe)return e(t,n);Oe=!0;try{return je(e,t,n)}finally{Oe=!1,(null!==_e||null!==Ce)&&(Ne(),Te())}}function Ie(e,t){var n=e.stateNode;if(null===n)return null;var r=So(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Le=!1;if(u)try{var ze={};Object.defineProperty(ze,"passive",{get:function(){Le=!0}}),window.addEventListener("test",ze,ze),window.removeEventListener("test",ze,ze)}catch(de){Le=!1}function Me(e,t,n,r,o,i,a,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Re=!1,De=null,Fe=!1,Be=null,qe={onError:function(e){Re=!0,De=e}};function Ue(e,t,n,r,o,i,a,l,s){Re=!1,De=null,Me.apply(qe,arguments)}function We(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Qe(e){if(We(e)!==e)throw Error(o(188))}function He(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=We(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Qe(i),e;if(a===r)return Qe(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var l=!1,s=i.child;s;){if(s===n){l=!0,n=i,r=a;break}if(s===r){l=!0,r=i,n=a;break}s=s.sibling}if(!l){for(s=a.child;s;){if(s===n){l=!0,n=a,r=i;break}if(s===r){l=!0,r=a,n=i;break}s=s.sibling}if(!l)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ke(e):null}function Ke(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ke(e);if(null!==t)return t;e=e.sibling}return null}var $e=r.unstable_scheduleCallback,Ye=r.unstable_cancelCallback,Ge=r.unstable_shouldYield,Xe=r.unstable_requestPaint,Je=r.unstable_now,Ze=r.unstable_getCurrentPriorityLevel,et=r.unstable_ImmediatePriority,tt=r.unstable_UserBlockingPriority,nt=r.unstable_NormalPriority,rt=r.unstable_LowPriority,ot=r.unstable_IdlePriority,it=null,at=null,lt=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/ct|0)|0},st=Math.log,ct=Math.LN2,ut=64,dt=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=ft(l):0!==(i&=a)&&(r=ft(i))}else 0!==(a=n&~o)?r=ft(a):0!==i&&(r=ft(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-lt(t)),r|=e[n],t&=~o;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function mt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function yt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-lt(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-lt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var wt=0;function xt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var kt,St,_t,Ct,Et,At=!1,Tt=[],jt=null,Nt=null,Ot=null,Pt=new Map,It=new Map,Lt=[],zt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mt(e,t){switch(e){case"focusin":case"focusout":jt=null;break;case"dragenter":case"dragleave":Nt=null;break;case"mouseover":case"mouseout":Ot=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Rt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=xo(t))&&St(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Dt(e){var t=wo(e.target);if(null!==t){var n=We(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void Et(e.priority,function(){_t(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Bt(e,t,n){Ft(e)&&n.delete(t)}function qt(){At=!1,null!==jt&&Ft(jt)&&(jt=null),null!==Nt&&Ft(Nt)&&(Nt=null),null!==Ot&&Ft(Ot)&&(Ot=null),Pt.forEach(Bt),It.forEach(Bt)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,At||(At=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,qt)))}function Wt(e){function t(t){return Ut(t,e)}if(0<Tt.length){Ut(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==jt&&Ut(jt,e),null!==Nt&&Ut(Nt,e),null!==Ot&&Ut(Ot,e),Pt.forEach(t),It.forEach(t),n=0;n<Lt.length;n++)(r=Lt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Lt.length&&null===(n=Lt[0]).blockedOn;)Dt(n),null===n.blockedOn&&Lt.shift()}var Vt=x.ReactCurrentBatchConfig,Qt=!0;function Ht(e,t,n,r){var o=wt,i=Vt.transition;Vt.transition=null;try{wt=1,$t(e,t,n,r)}finally{wt=o,Vt.transition=i}}function Kt(e,t,n,r){var o=wt,i=Vt.transition;Vt.transition=null;try{wt=4,$t(e,t,n,r)}finally{wt=o,Vt.transition=i}}function $t(e,t,n,r){if(Qt){var o=Gt(e,t,n,r);if(null===o)Qr(e,t,r,Yt,n),Mt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return jt=Rt(jt,e,t,n,r,o),!0;case"dragenter":return Nt=Rt(Nt,e,t,n,r,o),!0;case"mouseover":return Ot=Rt(Ot,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Pt.set(i,Rt(Pt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,It.set(i,Rt(It.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Mt(e,r),4&t&&-1<zt.indexOf(e)){for(;null!==o;){var i=xo(o);if(null!==i&&kt(i),null===(i=Gt(e,t,n,r))&&Qr(e,t,r,Yt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Qr(e,t,r,null,n)}}var Yt=null;function Gt(e,t,n,r){if(Yt=null,null!==(e=wo(e=ke(r))))if(null===(t=We(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case et:return 1;case tt:return 4;case nt:case rt:return 16;case ot:return 536870912;default:return 16}default:return 16}}var Jt=null,Zt=null,en=null;function tn(){if(en)return en;var e,t,n=Zt,r=n.length,o="value"in Jt?Jt.value:Jt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return en=o.slice(e,1<t?1-t:void 0)}function nn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rn(){return!0}function on(){return!1}function an(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?rn:on,this.isPropagationStopped=on,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rn)},persist:function(){},isPersistent:rn}),t}var ln,sn,cn,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=an(un),fn=D({},un,{view:0,detail:0}),pn=an(fn),hn=D({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(ln=e.screenX-cn.screenX,sn=e.screenY-cn.screenY):sn=ln=0,cn=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),mn=an(hn),yn=an(D({},hn,{dataTransfer:0})),bn=an(D({},fn,{relatedTarget:0})),gn=an(D({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=D({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wn=an(vn),xn=an(D({},un,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_n={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=_n[e])&&!!t[e]}function En(){return Cn}var An=D({},fn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=nn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?nn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?nn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=an(An),jn=an(D({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=an(D({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),On=an(D({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=D({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=an(Pn),Ln=[9,13,27,32],zn=u&&"CompositionEvent"in window,Mn=null;u&&"documentMode"in document&&(Mn=document.documentMode);var Rn=u&&"TextEvent"in window&&!Mn,Dn=u&&(!zn||Mn&&8<Mn&&11>=Mn),Fn=String.fromCharCode(32),Bn=!1;function qn(e,t){switch(e){case"keyup":return-1!==Ln.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1,Vn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function Hn(e,t,n,r){Ae(r),0<(t=Kr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,$n=null;function Yn(e){Fr(e,0)}function Gn(e){if($(ko(e)))return e}function Xn(e,t){if("change"===e)return t}var Jn=!1;if(u){var Zn;if(u){var er="oninput"in document;if(!er){var tr=document.createElement("div");tr.setAttribute("oninput","return;"),er="function"==typeof tr.oninput}Zn=er}else Zn=!1;Jn=Zn&&(!document.documentMode||9<document.documentMode)}function nr(){Kn&&(Kn.detachEvent("onpropertychange",rr),$n=Kn=null)}function rr(e){if("value"===e.propertyName&&Gn($n)){var t=[];Hn(t,$n,e,ke(e)),Pe(Yn,t)}}function or(e,t,n){"focusin"===e?(nr(),$n=n,(Kn=t).attachEvent("onpropertychange",rr)):"focusout"===e&&nr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn($n)}function ar(e,t){if("click"===e)return Gn(t)}function lr(e,t){if("input"===e||"change"===e)return Gn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function cr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!f.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function mr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=dr(n,i);var a=dr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var yr=u&&"documentMode"in document&&11>=document.documentMode,br=null,gr=null,vr=null,wr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wr||null==br||br!==Y(r)||(r="selectionStart"in(r=br)&&hr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&cr(vr,r)||(vr=r,0<(r=Kr(gr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=br)))}function kr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:kr("Animation","AnimationEnd"),animationiteration:kr("Animation","AnimationIteration"),animationstart:kr("Animation","AnimationStart"),transitionend:kr("Transition","TransitionEnd")},_r={},Cr={};function Er(e){if(_r[e])return _r[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return _r[e]=n[t];return e}u&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var Ar=Er("animationend"),Tr=Er("animationiteration"),jr=Er("animationstart"),Nr=Er("transitionend"),Or=new Map,Pr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(e,t){Or.set(e,t),l(t,[e])}for(var Lr=0;Lr<Pr.length;Lr++){var zr=Pr[Lr];Ir(zr.toLowerCase(),"on"+(zr[0].toUpperCase()+zr.slice(1)))}Ir(Ar,"onAnimationEnd"),Ir(Tr,"onAnimationIteration"),Ir(jr,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(Nr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Rr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mr));function Dr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,l,s,c){if(Ue.apply(this,arguments),Re){if(!Re)throw Error(o(198));var u=De;Re=!1,De=null,Fe||(Fe=!0,Be=u)}}(r,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;Dr(o,l,c),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,c=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;Dr(o,l,c),i=s}}}if(Fe)throw e=Be,Fe=!1,Be=null,e}function Br(e,t){var n=t[bo];void 0===n&&(n=t[bo]=new Set);var r=e+"__bubble";n.has(r)||(Vr(t,e,2,!1),n.add(r))}function qr(e,t,n){var r=0;t&&(r|=4),Vr(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function Wr(e){if(!e[Ur]){e[Ur]=!0,i.forEach(function(t){"selectionchange"!==t&&(Rr.has(t)||qr(t,!1,e),qr(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,qr("selectionchange",!1,t))}}function Vr(e,t,n,r){switch(Xt(t)){case 1:var o=Ht;break;case 4:o=Kt;break;default:o=$t}n=o.bind(null,t,n,e),o=void 0,!Le||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Qr(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=wo(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}Pe(function(){var r=i,o=ke(n),a=[];e:{var l=Or.get(e);if(void 0!==l){var s=dn,c=e;switch(e){case"keypress":if(0===nn(n))break e;case"keydown":case"keyup":s=Tn;break;case"focusin":c="focus",s=bn;break;case"focusout":c="blur",s=bn;break;case"beforeblur":case"afterblur":s=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Nn;break;case Ar:case Tr:case jr:s=gn;break;case Nr:s=On;break;case"scroll":s=pn;break;case"wheel":s=In;break;case"copy":case"cut":case"paste":s=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=jn}var u=!!(4&t),d=!u&&"scroll"===e,f=u?null!==l?l+"Capture":null:l;u=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&null!=(m=Ie(h,f))&&u.push(Hr(h,m,p))),d)break;h=h.return}0<u.length&&(l=new s(l,c,null,n,o),a.push({event:l,listeners:u}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===xe||!(c=n.relatedTarget||n.fromElement)||!wo(c)&&!c[yo])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(c=(c=n.relatedTarget||n.toElement)?wo(c):null)&&(c!==(d=We(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=mn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=jn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==s?l:ko(s),p=null==c?l:ko(c),(l=new u(m,h+"leave",s,n,o)).target=d,l.relatedTarget=p,m=null,wo(o)===r&&((u=new u(f,h+"enter",c,n,o)).target=p,u.relatedTarget=d,m=u),d=m,s&&c)e:{for(f=c,h=0,p=u=s;p;p=$r(p))h++;for(p=0,m=f;m;m=$r(m))p++;for(;0<h-p;)u=$r(u),h--;for(;0<p-h;)f=$r(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=$r(u),f=$r(f)}u=null}else u=null;null!==s&&Yr(a,l,s,u,!1),null!==c&&null!==d&&Yr(a,d,c,u,!0)}if("select"===(s=(l=r?ko(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var y=Xn;else if(Qn(l))if(Jn)y=lr;else{y=ir;var b=or}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(y=ar);switch(y&&(y=y(e,r))?Hn(a,y,n,o):(b&&b(e,l,r),"focusout"===e&&(b=l._wrapperState)&&b.controlled&&"number"===l.type&&te(l,"number",l.value)),b=r?ko(r):window,e){case"focusin":(Qn(b)||"true"===b.contentEditable)&&(br=b,gr=r,vr=null);break;case"focusout":vr=gr=br=null;break;case"mousedown":wr=!0;break;case"contextmenu":case"mouseup":case"dragend":wr=!1,xr(a,n,o);break;case"selectionchange":if(yr)break;case"keydown":case"keyup":xr(a,n,o)}var g;if(zn)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else Wn?qn(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(Dn&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==v?"onCompositionEnd"===v&&Wn&&(g=tn()):(Zt="value"in(Jt=o)?Jt.value:Jt.textContent,Wn=!0)),0<(b=Kr(r,v)).length&&(v=new xn(v,e,null,n,o),a.push({event:v,listeners:b}),(g||null!==(g=Un(n)))&&(v.data=g))),(g=Rn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Bn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!zn&&qn(e,t)?(e=tn(),en=Zt=Jt=null,Wn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Kr(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=g)}Fr(a,t)})}function Hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Kr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ie(e,n))&&r.unshift(Hr(e,i,o)),null!=(i=Ie(e,t))&&r.push(Hr(e,i,o))),e=e.return}return r}function $r(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==c&&(l=c,o?null!=(s=Ie(n,i))&&a.unshift(Hr(n,s,l)):o||null!=(s=Ie(n,i))&&a.push(Hr(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Gr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Jr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Xr,"")}function Zr(e,t,n){if(t=Jr(t),Jr(e)!==t&&n)throw Error(o(425))}function eo(){}var to=null,no=null;function ro(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var oo="function"==typeof setTimeout?setTimeout:void 0,io="function"==typeof clearTimeout?clearTimeout:void 0,ao="function"==typeof Promise?Promise:void 0,lo="function"==typeof queueMicrotask?queueMicrotask:void 0!==ao?function(e){return ao.resolve(null).then(e).catch(so)}:oo;function so(e){setTimeout(function(){throw e})}function co(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Wt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Wt(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function fo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),ho="__reactFiber$"+po,mo="__reactProps$"+po,yo="__reactContainer$"+po,bo="__reactEvents$"+po,go="__reactListeners$"+po,vo="__reactHandles$"+po;function wo(e){var t=e[ho];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yo]||n[ho]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=fo(e);null!==e;){if(n=e[ho])return n;e=fo(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[ho]||e[yo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ko(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function So(e){return e[mo]||null}var _o=[],Co=-1;function Eo(e){return{current:e}}function Ao(e){0>Co||(e.current=_o[Co],_o[Co]=null,Co--)}function To(e,t){Co++,_o[Co]=e.current,e.current=t}var jo={},No=Eo(jo),Oo=Eo(!1),Po=jo;function Io(e,t){var n=e.type.contextTypes;if(!n)return jo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Lo(e){return null!=e.childContextTypes}function zo(){Ao(Oo),Ao(No)}function Mo(e,t,n){if(No.current!==jo)throw Error(o(168));To(No,t),To(Oo,n)}function Ro(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,V(e)||"Unknown",i));return D({},n,r)}function Do(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jo,Po=No.current,To(No,e),To(Oo,Oo.current),!0}function Fo(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Ro(e,t,Po),r.__reactInternalMemoizedMergedChildContext=e,Ao(Oo),Ao(No),To(No,e)):Ao(Oo),To(Oo,n)}var Bo=null,qo=!1,Uo=!1;function Wo(e){null===Bo?Bo=[e]:Bo.push(e)}function Vo(){if(!Uo&&null!==Bo){Uo=!0;var e=0,t=wt;try{var n=Bo;for(wt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Bo=null,qo=!1}catch(t){throw null!==Bo&&(Bo=Bo.slice(e+1)),$e(et,Vo),t}finally{wt=t,Uo=!1}}return null}var Qo=[],Ho=0,Ko=null,$o=0,Yo=[],Go=0,Xo=null,Jo=1,Zo="";function ei(e,t){Qo[Ho++]=$o,Qo[Ho++]=Ko,Ko=e,$o=t}function ti(e,t,n){Yo[Go++]=Jo,Yo[Go++]=Zo,Yo[Go++]=Xo,Xo=e;var r=Jo;e=Zo;var o=32-lt(r)-1;r&=~(1<<o),n+=1;var i=32-lt(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Jo=1<<32-lt(t)+o|n<<o|r,Zo=i+e}else Jo=1<<i|n<<o|r,Zo=e}function ni(e){null!==e.return&&(ei(e,1),ti(e,1,0))}function ri(e){for(;e===Ko;)Ko=Qo[--Ho],Qo[Ho]=null,$o=Qo[--Ho],Qo[Ho]=null;for(;e===Xo;)Xo=Yo[--Go],Yo[Go]=null,Zo=Yo[--Go],Yo[Go]=null,Jo=Yo[--Go],Yo[Go]=null}var oi=null,ii=null,ai=!1,li=null;function si(e,t){var n=Pc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ci(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,oi=e,ii=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,oi=e,ii=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xo?{id:Jo,overflow:Zo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Pc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,oi=e,ii=null,!0);default:return!1}}function ui(e){return!(!(1&e.mode)||128&e.flags)}function di(e){if(ai){var t=ii;if(t){var n=t;if(!ci(e,t)){if(ui(e))throw Error(o(418));t=uo(n.nextSibling);var r=oi;t&&ci(e,t)?si(r,n):(e.flags=-4097&e.flags|2,ai=!1,oi=e)}}else{if(ui(e))throw Error(o(418));e.flags=-4097&e.flags|2,ai=!1,oi=e}}}function fi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;oi=e}function pi(e){if(e!==oi)return!1;if(!ai)return fi(e),ai=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ro(e.type,e.memoizedProps)),t&&(t=ii)){if(ui(e))throw hi(),Error(o(418));for(;t;)si(e,t),t=uo(t.nextSibling)}if(fi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ii=uo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ii=null}}else ii=oi?uo(e.stateNode.nextSibling):null;return!0}function hi(){for(var e=ii;e;)e=uo(e.nextSibling)}function mi(){ii=oi=null,ai=!1}function yi(e){null===li?li=[e]:li.push(e)}var bi=x.ReactCurrentBatchConfig;function gi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function vi(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function wi(e){return(0,e._init)(e._payload)}function xi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Lc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Dc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===_?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===I&&wi(o)===t.type)?((r=i(t,n.props)).ref=gi(e,t,n),r.return=e,r):((r=zc(n.type,n.key,n.props,null,e.mode,r)).ref=gi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Mc(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Dc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case k:return(n=zc(t.type,t.key,t.props,null,e.mode,n)).ref=gi(e,null,t),n.return=e,n;case S:return(t=Fc(t,e.mode,n)).return=e,t;case I:return f(e,(0,t._init)(t._payload),n)}if(ne(t)||M(t))return(t=Mc(t,e.mode,n,null)).return=e,t;vi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===o?c(e,t,n,r):null;case S:return n.key===o?u(e,t,n,r):null;case I:return p(e,t,(o=n._init)(n._payload),r)}if(ne(n)||M(n))return null!==o?null:d(e,t,n,r,null);vi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case S:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case I:return h(e,t,n,(0,r._init)(r._payload),o)}if(ne(r)||M(r))return d(t,e=e.get(n)||null,r,o,null);vi(t,r)}return null}function m(o,i,l,s){for(var c=null,u=null,d=i,m=i=0,y=null;null!==d&&m<l.length;m++){d.index>m?(y=d,d=null):y=d.sibling;var b=p(o,d,l[m],s);if(null===b){null===d&&(d=y);break}e&&d&&null===b.alternate&&t(o,d),i=a(b,i,m),null===u?c=b:u.sibling=b,u=b,d=y}if(m===l.length)return n(o,d),ai&&ei(o,m),c;if(null===d){for(;m<l.length;m++)null!==(d=f(o,l[m],s))&&(i=a(d,i,m),null===u?c=d:u.sibling=d,u=d);return ai&&ei(o,m),c}for(d=r(o,d);m<l.length;m++)null!==(y=h(d,o,m,l[m],s))&&(e&&null!==y.alternate&&d.delete(null===y.key?m:y.key),i=a(y,i,m),null===u?c=y:u.sibling=y,u=y);return e&&d.forEach(function(e){return t(o,e)}),ai&&ei(o,m),c}function y(i,l,s,c){var u=M(s);if("function"!=typeof u)throw Error(o(150));if(null==(s=u.call(s)))throw Error(o(151));for(var d=u=null,m=l,y=l=0,b=null,g=s.next();null!==m&&!g.done;y++,g=s.next()){m.index>y?(b=m,m=null):b=m.sibling;var v=p(i,m,g.value,c);if(null===v){null===m&&(m=b);break}e&&m&&null===v.alternate&&t(i,m),l=a(v,l,y),null===d?u=v:d.sibling=v,d=v,m=b}if(g.done)return n(i,m),ai&&ei(i,y),u;if(null===m){for(;!g.done;y++,g=s.next())null!==(g=f(i,g.value,c))&&(l=a(g,l,y),null===d?u=g:d.sibling=g,d=g);return ai&&ei(i,y),u}for(m=r(i,m);!g.done;y++,g=s.next())null!==(g=h(m,i,y,g.value,c))&&(e&&null!==g.alternate&&m.delete(null===g.key?y:g.key),l=a(g,l,y),null===d?u=g:d.sibling=g,d=g);return e&&m.forEach(function(e){return t(i,e)}),ai&&ei(i,y),u}return function e(r,o,a,s){if("object"==typeof a&&null!==a&&a.type===_&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case k:e:{for(var c=a.key,u=o;null!==u;){if(u.key===c){if((c=a.type)===_){if(7===u.tag){n(r,u.sibling),(o=i(u,a.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===I&&wi(c)===u.type){n(r,u.sibling),(o=i(u,a.props)).ref=gi(r,u,a),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===_?((o=Mc(a.props.children,r.mode,s,a.key)).return=r,r=o):((s=zc(a.type,a.key,a.props,null,r.mode,s)).ref=gi(r,o,a),s.return=r,r=s)}return l(r);case S:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Fc(a,r.mode,s)).return=r,r=o}return l(r);case I:return e(r,o,(u=a._init)(a._payload),s)}if(ne(a))return m(r,o,a,s);if(M(a))return y(r,o,a,s);vi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Dc(a,r.mode,s)).return=r,r=o),l(r)):n(r,o)}}var ki=xi(!0),Si=xi(!1),_i=Eo(null),Ci=null,Ei=null,Ai=null;function Ti(){Ai=Ei=Ci=null}function ji(e){var t=_i.current;Ao(_i),e._currentValue=t}function Ni(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Oi(e,t){Ci=e,Ai=Ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(wl=!0),e.firstContext=null)}function Pi(e){var t=e._currentValue;if(Ai!==e)if(e={context:e,memoizedValue:t,next:null},null===Ei){if(null===Ci)throw Error(o(308));Ei=e,Ci.dependencies={lanes:0,firstContext:e}}else Ei=Ei.next=e;return t}var Ii=null;function Li(e){null===Ii?Ii=[e]:Ii.push(e)}function zi(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Li(t)):(n.next=o.next,o.next=n),t.interleaved=n,Mi(e,r)}function Mi(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ri=!1;function Di(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function qi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&js){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Mi(e,n)}return null===(o=r.interleaved)?(t.next=t,Li(r)):(t.next=o.next,o.next=t),r.interleaved=t,Mi(e,n)}function Ui(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function Wi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Vi(e,t,n,r){var o=e.updateQueue;Ri=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,c=s.next;s.next=null,null===a?i=c:a.next=c,a=s;var u=e.alternate;null!==u&&(l=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s)}if(null!==i){var d=o.baseState;for(a=0,u=c=s=null,l=i;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=D({},d,f);break e;case 2:Ri=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=p,s=d):u=u.next=p,a|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(f=l).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Rs|=a,e.lanes=a,e.memoizedState=d}}function Qi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(o(191,i));i.call(r)}}}var Hi={},Ki=Eo(Hi),$i=Eo(Hi),Yi=Eo(Hi);function Gi(e){if(e===Hi)throw Error(o(174));return e}function Xi(e,t){switch(To(Yi,t),To($i,e),To(Ki,Hi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ce(null,"");break;default:t=ce(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ao(Ki),To(Ki,t)}function Ji(){Ao(Ki),Ao($i),Ao(Yi)}function Zi(e){Gi(Yi.current);var t=Gi(Ki.current),n=ce(t,e.type);t!==n&&(To($i,e),To(Ki,n))}function ea(e){$i.current===e&&(Ao(Ki),Ao($i))}var ta=Eo(0);function na(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ra=[];function oa(){for(var e=0;e<ra.length;e++)ra[e]._workInProgressVersionPrimary=null;ra.length=0}var ia=x.ReactCurrentDispatcher,aa=x.ReactCurrentBatchConfig,la=0,sa=null,ca=null,ua=null,da=!1,fa=!1,pa=0,ha=0;function ma(){throw Error(o(321))}function ya(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ba(e,t,n,r,i,a){if(la=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?el:tl,e=n(r,i),fa){a=0;do{if(fa=!1,pa=0,25<=a)throw Error(o(301));a+=1,ua=ca=null,t.updateQueue=null,ia.current=nl,e=n(r,i)}while(fa)}if(ia.current=Za,t=null!==ca&&null!==ca.next,la=0,ua=ca=sa=null,da=!1,t)throw Error(o(300));return e}function ga(){var e=0!==pa;return pa=0,e}function va(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ua?sa.memoizedState=ua=e:ua=ua.next=e,ua}function wa(){if(null===ca){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=ca.next;var t=null===ua?sa.memoizedState:ua.next;if(null!==t)ua=t,ca=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ca=e).memoizedState,baseState:ca.baseState,baseQueue:ca.baseQueue,queue:ca.queue,next:null},null===ua?sa.memoizedState=ua=e:ua=ua.next=e}return ua}function xa(e,t){return"function"==typeof t?t(e):t}function ka(e){var t=wa(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=ca,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var l=i.next;i.next=a.next,a.next=l}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var s=l=null,c=null,u=a;do{var d=u.lane;if((la&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(s=c=f,l=r):c=c.next=f,sa.lanes|=d,Rs|=d}u=u.next}while(null!==u&&u!==a);null===c?l=r:c.next=s,sr(r,t.memoizedState)||(wl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Rs|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Sa(e){var t=wa(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var l=i=i.next;do{a=e(a,l.action),l=l.next}while(l!==i);sr(a,t.memoizedState)||(wl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function _a(){}function Ca(e,t){var n=sa,r=wa(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,wl=!0),r=r.queue,Ra(Ta.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(n.flags|=2048,Pa(9,Aa.bind(null,n,r,i,t),void 0,null),null===Ns)throw Error(o(349));30&la||Ea(n,t,i)}return i}function Ea(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Aa(e,t,n,r){t.value=n,t.getSnapshot=r,ja(t)&&Na(e)}function Ta(e,t,n){return n(function(){ja(t)&&Na(e)})}function ja(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Na(e){var t=Mi(e,1);null!==t&&rc(t,e,1,-1)}function Oa(e){var t=va();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ya.bind(null,sa,e),[t.memoizedState,e]}function Pa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ia(){return wa().memoizedState}function La(e,t,n,r){var o=va();sa.flags|=e,o.memoizedState=Pa(1|t,n,void 0,void 0===r?null:r)}function za(e,t,n,r){var o=wa();r=void 0===r?null:r;var i=void 0;if(null!==ca){var a=ca.memoizedState;if(i=a.destroy,null!==r&&ya(r,a.deps))return void(o.memoizedState=Pa(t,n,i,r))}sa.flags|=e,o.memoizedState=Pa(1|t,n,i,r)}function Ma(e,t){return La(8390656,8,e,t)}function Ra(e,t){return za(2048,8,e,t)}function Da(e,t){return za(4,2,e,t)}function Fa(e,t){return za(4,4,e,t)}function Ba(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function qa(e,t,n){return n=null!=n?n.concat([e]):null,za(4,4,Ba.bind(null,t,e),n)}function Ua(){}function Wa(e,t){var n=wa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ya(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Va(e,t){var n=wa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ya(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qa(e,t,n){return 21&la?(sr(n,t)||(n=yt(),sa.lanes|=n,Rs|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,wl=!0),e.memoizedState=n)}function Ha(e,t){var n=wt;wt=0!==n&&4>n?n:4,e(!0);var r=aa.transition;aa.transition={};try{e(!1),t()}finally{wt=n,aa.transition=r}}function Ka(){return wa().memoizedState}function $a(e,t,n){var r=nc(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ga(e)?Xa(t,n):null!==(n=zi(e,t,n,r))&&(rc(n,e,r,tc()),Ja(n,t,r))}function Ya(e,t,n){var r=nc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ga(e))Xa(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,sr(l,a)){var s=t.interleaved;return null===s?(o.next=o,Li(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=zi(e,t,o,r))&&(rc(n,e,r,o=tc()),Ja(n,t,r))}}function Ga(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Xa(e,t){fa=da=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ja(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var Za={readContext:Pi,useCallback:ma,useContext:ma,useEffect:ma,useImperativeHandle:ma,useInsertionEffect:ma,useLayoutEffect:ma,useMemo:ma,useReducer:ma,useRef:ma,useState:ma,useDebugValue:ma,useDeferredValue:ma,useTransition:ma,useMutableSource:ma,useSyncExternalStore:ma,useId:ma,unstable_isNewReconciler:!1},el={readContext:Pi,useCallback:function(e,t){return va().memoizedState=[e,void 0===t?null:t],e},useContext:Pi,useEffect:Ma,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,La(4194308,4,Ba.bind(null,t,e),n)},useLayoutEffect:function(e,t){return La(4194308,4,e,t)},useInsertionEffect:function(e,t){return La(4,2,e,t)},useMemo:function(e,t){var n=va();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=va();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=$a.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},va().memoizedState=e},useState:Oa,useDebugValue:Ua,useDeferredValue:function(e){return va().memoizedState=e},useTransition:function(){var e=Oa(!1),t=e[0];return e=Ha.bind(null,e[1]),va().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,i=va();if(ai){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Ns)throw Error(o(349));30&la||Ea(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ma(Ta.bind(null,r,a,e),[e]),r.flags|=2048,Pa(9,Aa.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=va(),t=Ns.identifierPrefix;if(ai){var n=Zo;t=":"+t+"R"+(n=(Jo&~(1<<32-lt(Jo)-1)).toString(32)+n),0<(n=pa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ha++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},tl={readContext:Pi,useCallback:Wa,useContext:Pi,useEffect:Ra,useImperativeHandle:qa,useInsertionEffect:Da,useLayoutEffect:Fa,useMemo:Va,useReducer:ka,useRef:Ia,useState:function(){return ka(xa)},useDebugValue:Ua,useDeferredValue:function(e){return Qa(wa(),ca.memoizedState,e)},useTransition:function(){return[ka(xa)[0],wa().memoizedState]},useMutableSource:_a,useSyncExternalStore:Ca,useId:Ka,unstable_isNewReconciler:!1},nl={readContext:Pi,useCallback:Wa,useContext:Pi,useEffect:Ra,useImperativeHandle:qa,useInsertionEffect:Da,useLayoutEffect:Fa,useMemo:Va,useReducer:Sa,useRef:Ia,useState:function(){return Sa(xa)},useDebugValue:Ua,useDeferredValue:function(e){var t=wa();return null===ca?t.memoizedState=e:Qa(t,ca.memoizedState,e)},useTransition:function(){return[Sa(xa)[0],wa().memoizedState]},useMutableSource:_a,useSyncExternalStore:Ca,useId:Ka,unstable_isNewReconciler:!1};function rl(e,t){if(e&&e.defaultProps){for(var n in t=D({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function ol(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:D({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var il={isMounted:function(e){return!!(e=e._reactInternals)&&We(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),i=Bi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=qi(e,i,o))&&(rc(t,e,o,r),Ui(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),i=Bi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=qi(e,i,o))&&(rc(t,e,o,r),Ui(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),o=Bi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=qi(e,o,r))&&(rc(t,e,r,n),Ui(t,e,r))}};function al(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&cr(n,r)&&cr(o,i))}function ll(e,t,n){var r=!1,o=jo,i=t.contextType;return"object"==typeof i&&null!==i?i=Pi(i):(o=Lo(t)?Po:No.current,i=(r=null!=(r=t.contextTypes))?Io(e,o):jo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=il,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function sl(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&il.enqueueReplaceState(t,t.state,null)}function cl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Di(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Pi(i):(i=Lo(t)?Po:No.current,o.context=Io(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(ol(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&il.enqueueReplaceState(o,o.state,null),Vi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function ul(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function dl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fl(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var pl="function"==typeof WeakMap?WeakMap:Map;function hl(e,t,n){(n=Bi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Qs||(Qs=!0,Hs=r),fl(0,t)},n}function ml(e,t,n){(n=Bi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){fl(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){fl(0,t),"function"!=typeof r&&(null===Ks?Ks=new Set([this]):Ks.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function yl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ec.bind(null,e,t,n),t.then(e,e))}function bl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gl(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Bi(-1,1)).tag=2,qi(n,t,1))),n.lanes|=1),e)}var vl=x.ReactCurrentOwner,wl=!1;function xl(e,t,n,r){t.child=null===e?Si(t,null,n,r):ki(t,e.child,n,r)}function kl(e,t,n,r,o){n=n.render;var i=t.ref;return Oi(t,o),r=ba(e,t,n,r,i,o),n=ga(),null===e||wl?(ai&&n&&ni(t),t.flags|=1,xl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ql(e,t,o))}function Sl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Ic(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=zc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,_l(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:cr)(a,r)&&e.ref===t.ref)return Ql(e,t,o)}return t.flags|=1,(e=Lc(i,r)).ref=t.ref,e.return=t,t.child=e}function _l(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(cr(i,r)&&e.ref===t.ref){if(wl=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Ql(e,t,o);131072&e.flags&&(wl=!0)}}return Al(e,t,n,r,o)}function Cl(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,To(Ls,Is),Is|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,To(Ls,Is),Is|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},To(Ls,Is),Is|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,To(Ls,Is),Is|=r;return xl(e,t,o,n),t.child}function El(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Al(e,t,n,r,o){var i=Lo(n)?Po:No.current;return i=Io(t,i),Oi(t,o),n=ba(e,t,n,r,i,o),r=ga(),null===e||wl?(ai&&r&&ni(t),t.flags|=1,xl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ql(e,t,o))}function Tl(e,t,n,r,o){if(Lo(n)){var i=!0;Do(t)}else i=!1;if(Oi(t,o),null===t.stateNode)Vl(e,t),ll(t,n,r),cl(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=n.contextType;c="object"==typeof c&&null!==c?Pi(c):Io(t,c=Lo(n)?Po:No.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==c)&&sl(t,a,r,c),Ri=!1;var f=t.memoizedState;a.state=f,Vi(t,r,a,o),s=t.memoizedState,l!==r||f!==s||Oo.current||Ri?("function"==typeof u&&(ol(t,n,u,r),s=t.memoizedState),(l=Ri||al(t,n,l,r,f,s,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=c,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Fi(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:rl(t.type,l),a.props=c,d=t.pendingProps,f=a.context,s="object"==typeof(s=n.contextType)&&null!==s?Pi(s):Io(t,s=Lo(n)?Po:No.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||f!==s)&&sl(t,a,r,s),Ri=!1,f=t.memoizedState,a.state=f,Vi(t,r,a,o);var h=t.memoizedState;l!==d||f!==h||Oo.current||Ri?("function"==typeof p&&(ol(t,n,p,r),h=t.memoizedState),(c=Ri||al(t,n,c,r,f,h,s)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=c):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return jl(e,t,n,r,i,o)}function jl(e,t,n,r,o,i){El(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Fo(t,n,!1),Ql(e,t,i);r=t.stateNode,vl.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=ki(t,e.child,null,i),t.child=ki(t,null,l,i)):xl(e,t,l,i),t.memoizedState=r.state,o&&Fo(t,n,!0),t.child}function Nl(e){var t=e.stateNode;t.pendingContext?Mo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Mo(0,t.context,!1),Xi(e,t.containerInfo)}function Ol(e,t,n,r,o){return mi(),yi(o),t.flags|=256,xl(e,t,n,r),t.child}var Pl,Il,Ll,zl,Ml={dehydrated:null,treeContext:null,retryLane:0};function Rl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Dl(e,t,n){var r,i=t.pendingProps,a=ta.current,l=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),To(ta,1&a),null===e)return di(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=i.children,e=i.fallback,l?(i=t.mode,l=t.child,s={mode:"hidden",children:s},1&i||null===l?l=Rc(s,i,0,null):(l.childLanes=0,l.pendingProps=s),e=Mc(e,i,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Rl(n),t.memoizedState=Ml,e):Fl(t,s));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,l){if(n)return 256&t.flags?(t.flags&=-257,Bl(e,t,l,r=dl(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Rc({mode:"visible",children:r.children},i,0,null),(a=Mc(a,i,l,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&ki(t,e.child,null,l),t.child.memoizedState=Rl(l),t.memoizedState=Ml,a);if(!(1&t.mode))return Bl(e,t,l,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;return r=s,Bl(e,t,l,r=dl(a=Error(o(419)),r,void 0))}if(s=0!==(l&e.childLanes),wl||s){if(null!==(r=Ns)){switch(l&-l){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|l))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Mi(e,i),rc(r,e,i,-1))}return yc(),Bl(e,t,l,r=dl(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Tc.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ii=uo(i.nextSibling),oi=t,ai=!0,li=null,null!==e&&(Yo[Go++]=Jo,Yo[Go++]=Zo,Yo[Go++]=Xo,Jo=e.id,Zo=e.overflow,Xo=t),(t=Fl(t,r.children)).flags|=4096,t)}(e,t,s,i,r,a,n);if(l){l=i.fallback,s=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:i.children};return 1&s||t.child===a?(i=Lc(a,c)).subtreeFlags=14680064&a.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null),null!==r?l=Lc(r,l):(l=Mc(l,s,n,null)).flags|=2,l.return=t,i.return=t,i.sibling=l,t.child=i,i=l,l=t.child,s=null===(s=e.child.memoizedState)?Rl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Ml,i}return e=(l=e.child).sibling,i=Lc(l,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Fl(e,t){return(t=Rc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bl(e,t,n,r){return null!==r&&yi(r),ki(t,e.child,null,n),(e=Fl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function ql(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ni(e.return,t,n)}function Ul(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Wl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(xl(e,t,r.children,n),2&(r=ta.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ql(e,n,t);else if(19===e.tag)ql(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(To(ta,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===na(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ul(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===na(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ul(t,!0,n,null,i);break;case"together":Ul(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Vl(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ql(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Rs|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Lc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Lc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Hl(e,t){if(!ai)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Kl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $l(e,t,n){var r=t.pendingProps;switch(ri(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kl(t),null;case 1:case 17:return Lo(t.type)&&zo(),Kl(t),null;case 3:return r=t.stateNode,Ji(),Ao(Oo),Ao(No),oa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(pi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==li&&(lc(li),li=null))),Il(e,t),Kl(t),null;case 5:ea(t);var i=Gi(Yi.current);if(n=t.type,null!==e&&null!=t.stateNode)Ll(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Kl(t),null}if(e=Gi(Ki.current),pi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[ho]=t,r[mo]=l,e=!!(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(i=0;i<Mr.length;i++)Br(Mr[i],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":X(r,l),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Br("invalid",r);break;case"textarea":ie(r,l),Br("invalid",r)}for(var s in ve(n,l),i=null,l)if(l.hasOwnProperty(s)){var c=l[s];"children"===s?"string"==typeof c?r.textContent!==c&&(!0!==l.suppressHydrationWarning&&Zr(r.textContent,c,e),i=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==l.suppressHydrationWarning&&Zr(r.textContent,c,e),i=["children",""+c]):a.hasOwnProperty(s)&&null!=c&&"onScroll"===s&&Br("scroll",r)}switch(n){case"input":K(r),ee(r,l,!0);break;case"textarea":K(r),le(r);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(r.onclick=eo)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[ho]=t,e[mo]=r,Pl(e,t,!1,!1),t.stateNode=e;e:{switch(s=we(n,r),n){case"dialog":Br("cancel",e),Br("close",e),i=r;break;case"iframe":case"object":case"embed":Br("load",e),i=r;break;case"video":case"audio":for(i=0;i<Mr.length;i++)Br(Mr[i],e);i=r;break;case"source":Br("error",e),i=r;break;case"img":case"image":case"link":Br("error",e),Br("load",e),i=r;break;case"details":Br("toggle",e),i=r;break;case"input":X(e,r),i=G(e,r),Br("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=D({},r,{value:void 0}),Br("invalid",e);break;case"textarea":ie(e,r),i=oe(e,r),Br("invalid",e)}for(l in ve(n,i),c=i)if(c.hasOwnProperty(l)){var u=c[l];"style"===l?be(e,u):"dangerouslySetInnerHTML"===l?null!=(u=u?u.__html:void 0)&&fe(e,u):"children"===l?"string"==typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"==typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(a.hasOwnProperty(l)?null!=u&&"onScroll"===l&&Br("scroll",e):null!=u&&w(e,l,u,s))}switch(n){case"input":K(e),ee(e,r,!1);break;case"textarea":K(e),le(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Q(r.value));break;case"select":e.multiple=!!r.multiple,null!=(l=r.value)?re(e,!!r.multiple,l,!1):null!=r.defaultValue&&re(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=eo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Kl(t),null;case 6:if(e&&null!=t.stateNode)zl(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=Gi(Yi.current),Gi(Ki.current),pi(t)){if(r=t.stateNode,n=t.memoizedProps,r[ho]=t,(l=r.nodeValue!==n)&&null!==(e=oi))switch(e.tag){case 3:Zr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,!!(1&e.mode))}l&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ho]=t,t.stateNode=r}return Kl(t),null;case 13:if(Ao(ta),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ai&&null!==ii&&1&t.mode&&!(128&t.flags))hi(),mi(),t.flags|=98560,l=!1;else if(l=pi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(o(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(o(317));l[ho]=t}else mi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Kl(t),l=!1}else null!==li&&(lc(li),li=null),l=!0;if(!l)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ta.current?0===zs&&(zs=3):yc())),null!==t.updateQueue&&(t.flags|=4),Kl(t),null);case 4:return Ji(),Il(e,t),null===e&&Wr(t.stateNode.containerInfo),Kl(t),null;case 10:return ji(t.type._context),Kl(t),null;case 19:if(Ao(ta),null===(l=t.memoizedState))return Kl(t),null;if(r=!!(128&t.flags),null===(s=l.rendering))if(r)Hl(l,!1);else{if(0!==zs||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(s=na(e))){for(t.flags|=128,Hl(l,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(l=n).flags&=14680066,null===(s=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return To(ta,1&ta.current|2),t.child}e=e.sibling}null!==l.tail&&Je()>Ws&&(t.flags|=128,r=!0,Hl(l,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=na(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Hl(l,!0),null===l.tail&&"hidden"===l.tailMode&&!s.alternate&&!ai)return Kl(t),null}else 2*Je()-l.renderingStartTime>Ws&&1073741824!==n&&(t.flags|=128,r=!0,Hl(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=l.last)?n.sibling=s:t.child=s,l.last=s)}return null!==l.tail?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Je(),t.sibling=null,n=ta.current,To(ta,r?1&n|2:1&n),t):(Kl(t),null);case 22:case 23:return fc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Is)&&(Kl(t),6&t.subtreeFlags&&(t.flags|=8192)):Kl(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Yl(e,t){switch(ri(t),t.tag){case 1:return Lo(t.type)&&zo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ji(),Ao(Oo),Ao(No),oa(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ea(t),null;case 13:if(Ao(ta),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));mi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ao(ta),null;case 4:return Ji(),null;case 10:return ji(t.type._context),null;case 22:case 23:return fc(),null;default:return null}}Pl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Il=function(){},Ll=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Gi(Ki.current);var i,l=null;switch(n){case"input":o=G(e,o),r=G(e,r),l=[];break;case"select":o=D({},o,{value:void 0}),r=D({},r,{value:void 0}),l=[];break;case"textarea":o=oe(e,o),r=oe(e,r),l=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=eo)}for(u in ve(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var s=o[u];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(a.hasOwnProperty(u)?l||(l=[]):(l=l||[]).push(u,null));for(u in r){var c=r[u];if(s=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(null!=c||null!=s))if("style"===u)if(s){for(i in s)!s.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&s[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(l||(l=[]),l.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(l=l||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(a.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Br("scroll",e),l||s===c||(l=[])):(l=l||[]).push(u,c))}n&&(l=l||[]).push("style",n);var u=l;(t.updateQueue=u)&&(t.flags|=4)}},zl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Gl=!1,Xl=!1,Jl="function"==typeof WeakSet?WeakSet:Set,Zl=null;function es(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Cc(e,t,n)}else n.current=null}function ts(e,t,n){try{n()}catch(n){Cc(e,t,n)}}var ns=!1;function rs(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&ts(t,n,i)}o=o.next}while(o!==r)}}function os(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function is(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function as(e){var t=e.alternate;null!==t&&(e.alternate=null,as(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[ho],delete t[mo],delete t[bo],delete t[go],delete t[vo]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ls(e){return 5===e.tag||3===e.tag||4===e.tag}function ss(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ls(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=eo));else if(4!==r&&null!==(e=e.child))for(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}function us(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}var ds=null,fs=!1;function ps(e,t,n){for(n=n.child;null!==n;)hs(e,t,n),n=n.sibling}function hs(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(it,n)}catch(e){}switch(n.tag){case 5:Xl||es(n,t);case 6:var r=ds,o=fs;ds=null,ps(e,t,n),fs=o,null!==(ds=r)&&(fs?(e=ds,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ds.removeChild(n.stateNode));break;case 18:null!==ds&&(fs?(e=ds,n=n.stateNode,8===e.nodeType?co(e.parentNode,n):1===e.nodeType&&co(e,n),Wt(e)):co(ds,n.stateNode));break;case 4:r=ds,o=fs,ds=n.stateNode.containerInfo,fs=!0,ps(e,t,n),ds=r,fs=o;break;case 0:case 11:case 14:case 15:if(!Xl&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&ts(n,t,a),o=o.next}while(o!==r)}ps(e,t,n);break;case 1:if(!Xl&&(es(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Cc(n,t,e)}ps(e,t,n);break;case 21:ps(e,t,n);break;case 22:1&n.mode?(Xl=(r=Xl)||null!==n.memoizedState,ps(e,t,n),Xl=r):ps(e,t,n);break;default:ps(e,t,n)}}function ms(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Jl),t.forEach(function(t){var r=jc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function ys(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:ds=s.stateNode,fs=!1;break e;case 3:case 4:ds=s.stateNode.containerInfo,fs=!0;break e}s=s.return}if(null===ds)throw Error(o(160));hs(a,l,i),ds=null,fs=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(e){Cc(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)bs(t,e),t=t.sibling}function bs(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ys(t,e),gs(e),4&r){try{rs(3,e,e.return),os(3,e)}catch(t){Cc(e,e.return,t)}try{rs(5,e,e.return)}catch(t){Cc(e,e.return,t)}}break;case 1:ys(t,e),gs(e),512&r&&null!==n&&es(n,n.return);break;case 5:if(ys(t,e),gs(e),512&r&&null!==n&&es(n,n.return),32&e.flags){var i=e.stateNode;try{pe(i,"")}catch(t){Cc(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,l=null!==n?n.memoizedProps:a,s=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===s&&"radio"===a.type&&null!=a.name&&J(i,a),we(s,l);var u=we(s,a);for(l=0;l<c.length;l+=2){var d=c[l],f=c[l+1];"style"===d?be(i,f):"dangerouslySetInnerHTML"===d?fe(i,f):"children"===d?pe(i,f):w(i,d,f,u)}switch(s){case"input":Z(i,a);break;case"textarea":ae(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?re(i,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?re(i,!!a.multiple,a.defaultValue,!0):re(i,!!a.multiple,a.multiple?[]:"",!1))}i[mo]=a}catch(t){Cc(e,e.return,t)}}break;case 6:if(ys(t,e),gs(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){Cc(e,e.return,t)}}break;case 3:if(ys(t,e),gs(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Wt(t.containerInfo)}catch(t){Cc(e,e.return,t)}break;case 4:default:ys(t,e),gs(e);break;case 13:ys(t,e),gs(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Us=Je())),4&r&&ms(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Xl=(u=Xl)||d,ys(t,e),Xl=u):ys(t,e),gs(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(Zl=e,d=e.child;null!==d;){for(f=Zl=d;null!==Zl;){switch(h=(p=Zl).child,p.tag){case 0:case 11:case 14:case 15:rs(4,p,p.return);break;case 1:es(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Cc(r,n,e)}}break;case 5:es(p,p.return);break;case 22:if(null!==p.memoizedState){ks(f);continue}}null!==h?(h.return=p,Zl=h):ks(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,u?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=f.stateNode,l=null!=(c=f.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,s.style.display=ye("display",l))}catch(t){Cc(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(t){Cc(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ys(t,e),gs(e),4&r&&ms(e);case 21:}}function gs(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ls(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(pe(i,""),r.flags&=-33),us(e,ss(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;cs(e,ss(e),a);break;default:throw Error(o(161))}}catch(t){Cc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vs(e,t,n){Zl=e,ws(e,t,n)}function ws(e,t,n){for(var r=!!(1&e.mode);null!==Zl;){var o=Zl,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Gl;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Xl;l=Gl;var c=Xl;if(Gl=a,(Xl=s)&&!c)for(Zl=o;null!==Zl;)s=(a=Zl).child,22===a.tag&&null!==a.memoizedState?Ss(o):null!==s?(s.return=a,Zl=s):Ss(o);for(;null!==i;)Zl=i,ws(i,t,n),i=i.sibling;Zl=o,Gl=l,Xl=c}xs(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Zl=i):xs(e)}}function xs(e){for(;null!==Zl;){var t=Zl;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Xl||os(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xl)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:rl(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Qi(t,a,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Qi(t,l,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Wt(f)}}}break;default:throw Error(o(163))}Xl||512&t.flags&&is(t)}catch(e){Cc(t,t.return,e)}}if(t===e){Zl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zl=n;break}Zl=t.return}}function ks(e){for(;null!==Zl;){var t=Zl;if(t===e){Zl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zl=n;break}Zl=t.return}}function Ss(e){for(;null!==Zl;){var t=Zl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{os(4,t)}catch(e){Cc(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Cc(t,o,e)}}var i=t.return;try{is(t)}catch(e){Cc(t,i,e)}break;case 5:var a=t.return;try{is(t)}catch(e){Cc(t,a,e)}}}catch(e){Cc(t,t.return,e)}if(t===e){Zl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Zl=l;break}Zl=t.return}}var _s,Cs=Math.ceil,Es=x.ReactCurrentDispatcher,As=x.ReactCurrentOwner,Ts=x.ReactCurrentBatchConfig,js=0,Ns=null,Os=null,Ps=0,Is=0,Ls=Eo(0),zs=0,Ms=null,Rs=0,Ds=0,Fs=0,Bs=null,qs=null,Us=0,Ws=1/0,Vs=null,Qs=!1,Hs=null,Ks=null,$s=!1,Ys=null,Gs=0,Xs=0,Js=null,Zs=-1,ec=0;function tc(){return 6&js?Je():-1!==Zs?Zs:Zs=Je()}function nc(e){return 1&e.mode?2&js&&0!==Ps?Ps&-Ps:null!==bi.transition?(0===ec&&(ec=yt()),ec):0!==(e=wt)?e:e=void 0===(e=window.event)?16:Xt(e.type):1}function rc(e,t,n,r){if(50<Xs)throw Xs=0,Js=null,Error(o(185));gt(e,n,r),2&js&&e===Ns||(e===Ns&&(!(2&js)&&(Ds|=n),4===zs&&sc(e,Ps)),oc(e,r),1===n&&0===js&&!(1&t.mode)&&(Ws=Je()+500,qo&&Vo()))}function oc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-lt(i),l=1<<a,s=o[a];-1===s?0!==(l&n)&&0===(l&r)||(o[a]=ht(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=pt(e,e===Ns?Ps:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){qo=!0,Wo(e)}(cc.bind(null,e)):Wo(cc.bind(null,e)),lo(function(){!(6&js)&&Vo()}),n=null;else{switch(xt(r)){case 1:n=et;break;case 4:n=tt;break;case 16:default:n=nt;break;case 536870912:n=ot}n=Nc(n,ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ic(e,t){if(Zs=-1,ec=0,6&js)throw Error(o(327));var n=e.callbackNode;if(Sc()&&e.callbackNode!==n)return null;var r=pt(e,e===Ns?Ps:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=bc(e,r);else{t=r;var i=js;js|=2;var a=mc();for(Ns===e&&Ps===t||(Vs=null,Ws=Je()+500,pc(e,t));;)try{vc();break}catch(t){hc(e,t)}Ti(),Es.current=a,js=i,null!==Os?t=0:(Ns=null,Ps=0,t=zs)}if(0!==t){if(2===t&&0!==(i=mt(e))&&(r=i,t=ac(e,i)),1===t)throw n=Ms,pc(e,0),sc(e,r),oc(e,Je()),n;if(6===t)sc(e,r);else{if(i=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=bc(e,r),2===t&&(a=mt(e),0!==a&&(r=a,t=ac(e,a))),1!==t)))throw n=Ms,pc(e,0),sc(e,r),oc(e,Je()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:kc(e,qs,Vs);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=Us+500-Je())){if(0!==pt(e,0))break;if(((i=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=oo(kc.bind(null,e,qs,Vs),t);break}kc(e,qs,Vs);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var l=31-lt(r);a=1<<l,(l=t[l])>i&&(i=l),r&=~a}if(r=i,10<(r=(120>(r=Je()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cs(r/1960))-r)){e.timeoutHandle=oo(kc.bind(null,e,qs,Vs),r);break}kc(e,qs,Vs);break;default:throw Error(o(329))}}}return oc(e,Je()),e.callbackNode===n?ic.bind(null,e):null}function ac(e,t){var n=Bs;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=bc(e,t))&&(t=qs,qs=n,null!==t&&lc(t)),e}function lc(e){null===qs?qs=e:qs.push.apply(qs,e)}function sc(e,t){for(t&=~Fs,t&=~Ds,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-lt(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(6&js)throw Error(o(327));Sc();var t=pt(e,0);if(!(1&t))return oc(e,Je()),null;var n=bc(e,t);if(0!==e.tag&&2===n){var r=mt(e);0!==r&&(t=r,n=ac(e,r))}if(1===n)throw n=Ms,pc(e,0),sc(e,t),oc(e,Je()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kc(e,qs,Vs),oc(e,Je()),null}function uc(e,t){var n=js;js|=1;try{return e(t)}finally{0===(js=n)&&(Ws=Je()+500,qo&&Vo())}}function dc(e){null!==Ys&&0===Ys.tag&&!(6&js)&&Sc();var t=js;js|=1;var n=Ts.transition,r=wt;try{if(Ts.transition=null,wt=1,e)return e()}finally{wt=r,Ts.transition=n,!(6&(js=t))&&Vo()}}function fc(){Is=Ls.current,Ao(Ls)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,io(n)),null!==Os)for(n=Os.return;null!==n;){var r=n;switch(ri(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&zo();break;case 3:Ji(),Ao(Oo),Ao(No),oa();break;case 5:ea(r);break;case 4:Ji();break;case 13:case 19:Ao(ta);break;case 10:ji(r.type._context);break;case 22:case 23:fc()}n=n.return}if(Ns=e,Os=e=Lc(e.current,null),Ps=Is=t,zs=0,Ms=null,Fs=Ds=Rs=0,qs=Bs=null,null!==Ii){for(t=0;t<Ii.length;t++)if(null!==(r=(n=Ii[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ii=null}return e}function hc(e,t){for(;;){var n=Os;try{if(Ti(),ia.current=Za,da){for(var r=sa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}da=!1}if(la=0,ua=ca=sa=null,fa=!1,pa=0,As.current=null,null===n||null===n.return){zs=1,Ms=t,Os=null;break}e:{var a=e,l=n.return,s=n,c=t;if(t=Ps,s.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=s,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=bl(l);if(null!==h){h.flags&=-257,gl(h,l,s,0,t),1&h.mode&&yl(a,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var y=new Set;y.add(c),t.updateQueue=y}else m.add(c);break e}if(!(1&t)){yl(a,u,t),yc();break e}c=Error(o(426))}else if(ai&&1&s.mode){var b=bl(l);if(null!==b){!(65536&b.flags)&&(b.flags|=256),gl(b,l,s,0,t),yi(ul(c,s));break e}}a=c=ul(c,s),4!==zs&&(zs=2),null===Bs?Bs=[a]:Bs.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Wi(a,hl(0,c,t));break e;case 1:s=c;var g=a.type,v=a.stateNode;if(!(128&a.flags||"function"!=typeof g.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==Ks&&Ks.has(v)))){a.flags|=65536,t&=-t,a.lanes|=t,Wi(a,ml(a,s,t));break e}}a=a.return}while(null!==a)}xc(n)}catch(e){t=e,Os===n&&null!==n&&(Os=n=n.return);continue}break}}function mc(){var e=Es.current;return Es.current=Za,null===e?Za:e}function yc(){0!==zs&&3!==zs&&2!==zs||(zs=4),null===Ns||!(268435455&Rs)&&!(268435455&Ds)||sc(Ns,Ps)}function bc(e,t){var n=js;js|=2;var r=mc();for(Ns===e&&Ps===t||(Vs=null,pc(e,t));;)try{gc();break}catch(t){hc(e,t)}if(Ti(),js=n,Es.current=r,null!==Os)throw Error(o(261));return Ns=null,Ps=0,zs}function gc(){for(;null!==Os;)wc(Os)}function vc(){for(;null!==Os&&!Ge();)wc(Os)}function wc(e){var t=_s(e.alternate,e,Is);e.memoizedProps=e.pendingProps,null===t?xc(e):Os=t,As.current=null}function xc(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Yl(n,t)))return n.flags&=32767,void(Os=n);if(null===e)return zs=6,void(Os=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=$l(n,t,Is)))return void(Os=n);if(null!==(t=t.sibling))return void(Os=t);Os=t=e}while(null!==t);0===zs&&(zs=5)}function kc(e,t,n){var r=wt,i=Ts.transition;try{Ts.transition=null,wt=1,function(e,t,n,r){do{Sc()}while(null!==Ys);if(6&js)throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-lt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Ns&&(Os=Ns=null,Ps=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||$s||($s=!0,Nc(nt,function(){return Sc(),null})),a=!!(15990&n.flags),15990&n.subtreeFlags||a){a=Ts.transition,Ts.transition=null;var l=wt;wt=1;var s=js;js|=4,As.current=null,function(e,t){if(to=Qt,hr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var l=0,s=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==i&&3!==f.nodeType||(s=l+i),f!==a||0!==r&&3!==f.nodeType||(c=l+r),3===f.nodeType&&(l+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===i&&(s=l),p===a&&++d===r&&(c=l),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===s||-1===c?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(no={focusedElem:e,selectionRange:n},Qt=!1,Zl=t;null!==Zl;)if(e=(t=Zl).child,1028&t.subtreeFlags&&null!==e)e.return=t,Zl=e;else for(;null!==Zl;){t=Zl;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var y=m.memoizedProps,b=m.memoizedState,g=t.stateNode,v=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:rl(t.type,y),b);g.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(o(163))}}catch(e){Cc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zl=e;break}Zl=t.return}m=ns,ns=!1}(e,n),bs(n,e),mr(no),Qt=!!to,no=to=null,e.current=n,vs(n,e,i),Xe(),js=s,wt=l,Ts.transition=a}else e.current=n;if($s&&($s=!1,Ys=e,Gs=i),0===(a=e.pendingLanes)&&(Ks=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(it,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),oc(e,Je()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if(Qs)throw Qs=!1,e=Hs,Hs=null,e;!!(1&Gs)&&0!==e.tag&&Sc(),1&(a=e.pendingLanes)?e===Js?Xs++:(Xs=0,Js=e):Xs=0,Vo()}(e,t,n,r)}finally{Ts.transition=i,wt=r}return null}function Sc(){if(null!==Ys){var e=xt(Gs),t=Ts.transition,n=wt;try{if(Ts.transition=null,wt=16>e?16:e,null===Ys)var r=!1;else{if(e=Ys,Ys=null,Gs=0,6&js)throw Error(o(331));var i=js;for(js|=4,Zl=e.current;null!==Zl;){var a=Zl,l=a.child;if(16&Zl.flags){var s=a.deletions;if(null!==s){for(var c=0;c<s.length;c++){var u=s[c];for(Zl=u;null!==Zl;){var d=Zl;switch(d.tag){case 0:case 11:case 15:rs(8,d,a)}var f=d.child;if(null!==f)f.return=d,Zl=f;else for(;null!==Zl;){var p=(d=Zl).sibling,h=d.return;if(as(d),d===u){Zl=null;break}if(null!==p){p.return=h,Zl=p;break}Zl=h}}}var m=a.alternate;if(null!==m){var y=m.child;if(null!==y){m.child=null;do{var b=y.sibling;y.sibling=null,y=b}while(null!==y)}}Zl=a}}if(2064&a.subtreeFlags&&null!==l)l.return=a,Zl=l;else e:for(;null!==Zl;){if(2048&(a=Zl).flags)switch(a.tag){case 0:case 11:case 15:rs(9,a,a.return)}var g=a.sibling;if(null!==g){g.return=a.return,Zl=g;break e}Zl=a.return}}var v=e.current;for(Zl=v;null!==Zl;){var w=(l=Zl).child;if(2064&l.subtreeFlags&&null!==w)w.return=l,Zl=w;else e:for(l=v;null!==Zl;){if(2048&(s=Zl).flags)try{switch(s.tag){case 0:case 11:case 15:os(9,s)}}catch(e){Cc(s,s.return,e)}if(s===l){Zl=null;break e}var x=s.sibling;if(null!==x){x.return=s.return,Zl=x;break e}Zl=s.return}}if(js=i,Vo(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(it,e)}catch(e){}r=!0}return r}finally{wt=n,Ts.transition=t}}return!1}function _c(e,t,n){e=qi(e,t=hl(0,t=ul(n,t),1),1),t=tc(),null!==e&&(gt(e,1,t),oc(e,t))}function Cc(e,t,n){if(3===e.tag)_c(e,e,n);else for(;null!==t;){if(3===t.tag){_c(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ks||!Ks.has(r))){t=qi(t,e=ml(t,e=ul(n,e),1),1),e=tc(),null!==t&&(gt(t,1,e),oc(t,e));break}}t=t.return}}function Ec(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,Ns===e&&(Ps&n)===n&&(4===zs||3===zs&&(130023424&Ps)===Ps&&500>Je()-Us?pc(e,0):Fs|=n),oc(e,t)}function Ac(e,t){0===t&&(1&e.mode?(t=dt,!(130023424&(dt<<=1))&&(dt=4194304)):t=1);var n=tc();null!==(e=Mi(e,t))&&(gt(e,t,n),oc(e,n))}function Tc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ac(e,n)}function jc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Ac(e,n)}function Nc(e,t){return $e(e,t)}function Oc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pc(e,t,n,r){return new Oc(e,t,n,r)}function Ic(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Lc(e,t){var n=e.alternate;return null===n?((n=Pc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function zc(e,t,n,r,i,a){var l=2;if(r=e,"function"==typeof e)Ic(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case _:return Mc(n.children,i,a,t);case C:l=8,i|=8;break;case E:return(e=Pc(12,n,t,2|i)).elementType=E,e.lanes=a,e;case N:return(e=Pc(13,n,t,i)).elementType=N,e.lanes=a,e;case O:return(e=Pc(19,n,t,i)).elementType=O,e.lanes=a,e;case L:return Rc(n,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case A:l=10;break e;case T:l=9;break e;case j:l=11;break e;case P:l=14;break e;case I:l=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Pc(l,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Mc(e,t,n,r){return(e=Pc(7,e,r,t)).lanes=n,e}function Rc(e,t,n,r){return(e=Pc(22,e,r,t)).elementType=L,e.lanes=n,e.stateNode={isHidden:!1},e}function Dc(e,t,n){return(e=Pc(6,e,null,t)).lanes=n,e}function Fc(e,t,n){return(t=Pc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bt(0),this.expirationTimes=bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function qc(e,t,n,r,o,i,a,l,s){return e=new Bc(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Pc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Di(i),e}function Uc(e){if(!e)return jo;e:{if(We(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Lo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Lo(n))return Ro(e,n,t)}return t}function Wc(e,t,n,r,o,i,a,l,s){return(e=qc(n,r,!0,e,0,i,0,l,s)).context=Uc(null),n=e.current,(i=Bi(r=tc(),o=nc(n))).callback=null!=t?t:null,qi(n,i,o),e.current.lanes=o,gt(e,o,r),oc(e,r),e}function Vc(e,t,n,r){var o=t.current,i=tc(),a=nc(o);return n=Uc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Bi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=qi(o,t,a))&&(rc(e,o,a,i),Ui(e,o,a)),a}function Qc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Hc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Kc(e,t){Hc(e,t),(e=e.alternate)&&Hc(e,t)}_s=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Oo.current)wl=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return wl=!1,function(e,t,n){switch(t.tag){case 3:Nl(t),mi();break;case 5:Zi(t);break;case 1:Lo(t.type)&&Do(t);break;case 4:Xi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;To(_i,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(To(ta,1&ta.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Dl(e,t,n):(To(ta,1&ta.current),null!==(e=Ql(e,t,n))?e.sibling:null);To(ta,1&ta.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Wl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),To(ta,ta.current),r)break;return null;case 22:case 23:return t.lanes=0,Cl(e,t,n)}return Ql(e,t,n)}(e,t,n);wl=!!(131072&e.flags)}else wl=!1,ai&&1048576&t.flags&&ti(t,$o,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vl(e,t),e=t.pendingProps;var i=Io(t,No.current);Oi(t,n),i=ba(null,t,r,e,i,n);var a=ga();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Lo(r)?(a=!0,Do(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Di(t),i.updater=il,t.stateNode=i,i._reactInternals=t,cl(t,r,e,n),t=jl(null,t,r,!0,a,n)):(t.tag=0,ai&&a&&ni(t),xl(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vl(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return Ic(e)?1:0;if(null!=e){if((e=e.$$typeof)===j)return 11;if(e===P)return 14}return 2}(r),e=rl(r,e),i){case 0:t=Al(null,t,r,e,n);break e;case 1:t=Tl(null,t,r,e,n);break e;case 11:t=kl(null,t,r,e,n);break e;case 14:t=Sl(null,t,r,rl(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Al(e,t,r,i=t.elementType===r?i:rl(r,i),n);case 1:return r=t.type,i=t.pendingProps,Tl(e,t,r,i=t.elementType===r?i:rl(r,i),n);case 3:e:{if(Nl(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Fi(e,t),Vi(t,r,null,n);var l=t.memoizedState;if(r=l.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ol(e,t,r,n,i=ul(Error(o(423)),t));break e}if(r!==i){t=Ol(e,t,r,n,i=ul(Error(o(424)),t));break e}for(ii=uo(t.stateNode.containerInfo.firstChild),oi=t,ai=!0,li=null,n=Si(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(mi(),r===i){t=Ql(e,t,n);break e}xl(e,t,r,n)}t=t.child}return t;case 5:return Zi(t),null===e&&di(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,l=i.children,ro(r,i)?l=null:null!==a&&ro(r,a)&&(t.flags|=32),El(e,t),xl(e,t,l,n),t.child;case 6:return null===e&&di(t),null;case 13:return Dl(e,t,n);case 4:return Xi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ki(t,null,r,n):xl(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,kl(e,t,r,i=t.elementType===r?i:rl(r,i),n);case 7:return xl(e,t,t.pendingProps,n),t.child;case 8:case 12:return xl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,l=i.value,To(_i,r._currentValue),r._currentValue=l,null!==a)if(sr(a.value,l)){if(a.children===i.children&&!Oo.current){t=Ql(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){l=a.child;for(var c=s.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Bi(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),Ni(a.return,n,t),s.lanes|=n;break}c=c.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(o(341));l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),Ni(l,n,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}xl(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Oi(t,n),r=r(i=Pi(i)),t.flags|=1,xl(e,t,r,n),t.child;case 14:return i=rl(r=t.type,t.pendingProps),Sl(e,t,r,i=rl(r.type,i),n);case 15:return _l(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rl(r,i),Vl(e,t),t.tag=1,Lo(r)?(e=!0,Do(t)):e=!1,Oi(t,n),ll(t,r,i),cl(t,r,i,n),jl(null,t,r,!0,e,n);case 19:return Wl(e,t,n);case 22:return Cl(e,t,n)}throw Error(o(156,t.tag))};var $c="function"==typeof reportError?reportError:function(e){console.error(e)};function Yc(e){this._internalRoot=e}function Gc(e){this._internalRoot=e}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zc(){}function eu(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=Qc(a);l.call(e)}}Vc(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Qc(a);i.call(e)}}var a=Wc(t,r,e,0,null,!1,0,"",Zc);return e._reactRootContainer=a,e[yo]=a.current,Wr(8===e.nodeType?e.parentNode:e),dc(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Qc(s);l.call(e)}}var s=qc(e,0,!1,null,0,!1,0,"",Zc);return e._reactRootContainer=s,e[yo]=s.current,Wr(8===e.nodeType?e.parentNode:e),dc(function(){Vc(t,s,n,r)}),s}(n,t,e,o,r);return Qc(a)}Gc.prototype.render=Yc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Vc(e,t,null,null)},Gc.prototype.unmount=Yc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc(function(){Vc(null,e,null,null)}),t[yo]=null}},Gc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lt.length&&0!==t&&t<Lt[n].priority;n++);Lt.splice(n,0,e),0===n&&Dt(e)}},kt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(vt(t,1|n),oc(t,Je()),!(6&js)&&(Ws=Je()+500,Vo()))}break;case 13:dc(function(){var t=Mi(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}}),Kc(e,1)}},St=function(e){if(13===e.tag){var t=Mi(e,134217728);null!==t&&rc(t,e,134217728,tc()),Kc(e,134217728)}},_t=function(e){if(13===e.tag){var t=nc(e),n=Mi(e,t);null!==n&&rc(n,e,t,tc()),Kc(e,t)}},Ct=function(){return wt},Et=function(e,t){var n=wt;try{return wt=e,t()}finally{wt=n}},Se=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=So(r);if(!i)throw Error(o(90));$(r),Z(r,i)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&re(e,!!n.multiple,t,!1)}},je=uc,Ne=dc;var tu={usingClientEntryPoint:!1,Events:[xo,ko,So,Ae,Te,uc]},nu={findFiberByHostInstance:wo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=He(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{it=ou.inject(ru),at=ou}catch(de){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xc(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xc(e))throw Error(o(299));var n=!1,r="",i=$c;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=qc(e,1,!1,null,0,n,0,r,i),e[yo]=t.current,Wr(8===e.nodeType?e.parentNode:e),new Yc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return null===(e=He(t))?null:e.stateNode},t.flushSync=function(e){return dc(e)},t.hydrate=function(e,t,n){if(!Jc(t))throw Error(o(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xc(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",l=$c;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Wc(t,null,e,1,null!=n?n:null,i,0,a,l),e[yo]=t.current,Wr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Gc(t)},t.render=function(e,t,n){if(!Jc(t))throw Error(o(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Jc(e))throw Error(o(40));return!!e._reactRootContainer&&(dc(function(){eu(null,null,e,!1,function(){e._reactRootContainer=null,e[yo]=null})}),!0)},t.unstable_batchedUpdates=uc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Jc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return eu(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"}),o=n.cw(function(e,t){var n=i();t.H=n.createRoot,n.hydrateRoot}),i=n.cw(function(e,n){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=t()}),a=n.cw(function(e,t){var n=s(),r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var o,s={},c=null,u=null;for(o in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,o)&&!l.hasOwnProperty(o)&&(s[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===s[o]&&(s[o]=t[o]);return{$$typeof:r,type:e,key:c,ref:u,props:s,_owner:a.current}}t.Fragment=o,t.jsx=c,t.jsxs=c}),l=n.cw(function(e,t){var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,y={};function b(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}function g(){}function v(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=b.prototype;var w=v.prototype=new g;w.constructor=v,m(w,b.prototype),w.isPureReactComponent=!0;var x=Array.isArray,k=Object.prototype.hasOwnProperty,S={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var o,i={},a=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)k.call(t,o)&&!_.hasOwnProperty(o)&&(i[o]=t[o]);var s=arguments.length-2;if(1===s)i.children=r;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===i[o]&&(i[o]=s[o]);return{$$typeof:n,type:e,key:a,ref:l,props:i,_owner:S.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var A=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function j(e,t,o,i,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return a=a(s=e),e=""===i?"."+T(s,0):i,x(a)?(o="",null!=e&&(o=e.replace(A,"$&/")+"/"),j(a,t,o,"",function(e){return e})):null!=a&&(E(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(A,"$&/")+"/")+e)),t.push(a)),1;if(s=0,i=""===i?".":i+":",x(e))for(var c=0;c<e.length;c++){var u=i+T(l=e[c],c);s+=j(l,t,o,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(l=e.next()).done;)s+=j(l=l.value,t,o,u=i+T(l,c++),a);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function N(e,t,n){if(null==e)return e;var r=[],o=0;return j(e,r,"","",function(e){return t.call(n,e,o++)}),r}function O(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},I={transition:null},L={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:I,ReactCurrentOwner:S};function z(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:N,forEach:function(e,t,n){N(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return N(e,function(){t++}),t},toArray:function(e){return N(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=b,t.Fragment=o,t.Profiler=a,t.PureComponent=v,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.act=z,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=S.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)k.call(t,c)&&!_.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];o.children=s}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=z,t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return P.current.useTransition()},t.version="18.3.1"}),s=n.cw(function(e,t){e.exports=l()}),c=n.cw(function(e,t){e.exports=a()}),u=n.cw(function(e,t){function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>i(s,n))c<o&&0>i(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var c=[],u=[],d=1,f=null,p=3,h=!1,m=!1,y=!1,b="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(y=!1,w(e),!m)if(null!==r(c))m=!0,I(k);else{var t=r(u);null!==t&&L(x,t.startTime-e)}}function k(e,n){m=!1,y&&(y=!1,g(E),E=-1),h=!0;var i=p;try{for(w(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!j());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var l=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?f.callback=l:f===r(c)&&o(c),w(n)}else o(c);f=r(c)}if(null!==f)var s=!0;else{var d=r(u);null!==d&&L(x,d.startTime-n),s=!1}return s}finally{f=null,p=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,_=!1,C=null,E=-1,A=5,T=-1;function j(){return!(t.unstable_now()-T<A)}function N(){if(null!==C){var e=t.unstable_now();T=e;var n=!0;try{n=C(!0,e)}finally{n?S():(_=!1,C=null)}}else _=!1}if("function"==typeof v)S=function(){v(N)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,P=O.port2;O.port1.onmessage=N,S=function(){P.postMessage(null)}}else S=function(){b(N,0)};function I(e){C=e,_||(_=!0,S())}function L(e,n){E=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,I(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(y?(g(E),E=-1):y=!0,L(x,i-a))):(e.sortIndex=l,n(c,e),m||h||(m=!0,I(k))),e},t.unstable_shouldYield=j,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}),d=n.cw(function(e,t){e.exports=u()}),f=n.cw(function(e,t){var n=[];function r(e){for(var t=-1,r=0;r<n.length;r++)if(n[r].identifier===e){t=r;break}return t}function o(e,t){for(var o={},a=[],l=0;l<e.length;l++){var s=e[l],c=t.base?s[0]+t.base:s[0],u=o[c]||0,d="".concat(c," ").concat(u);o[c]=u+1;var f=r(d),p={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==f)n[f].references++,n[f].updater(p);else{var h=i(p,t);t.byIndex=l,n.splice(l,0,{identifier:d,updater:h,references:1})}a.push(d)}return a}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,t){var i=o(e=e||[],t=t||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var l=r(i[a]);n[l].references--}for(var s=o(e,t),c=0;c<i.length;c++){var u=r(i[c]);0===n[u].references&&(n[u].updater(),n.splice(u,1))}i=s}}}),p=n.cw(function(e,t){var n={};e.exports=function(e,t){var r=function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[e]=t}return n[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}}),h=n.cw(function(e,t){e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}}),m=n.cw(function(e,t){e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}}),y=n.cw(function(e,t){e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}}),b=n.cw(function(e,t){e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}),g=n.cw(function(e,t){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,o.default)(e),i="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,o=e.value;i?t(r,o,e):o&&((n=n||{})[r]=o)}}),n};var o=r(n(7380))}),v=n.cw(function(e,t){var n=s(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,i=n.useRef,a=n.useEffect,l=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,s,u){var d=i(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!a){if(a=!0,o=e,e=s(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return i=t}return i=e}if(t=i,r(o,e))return t;var n=s(e);return void 0!==u&&u(t,n)?t:(o=e,i=n)}var o,i,a=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,s,u]);var p=o(e,d[0],d[1]);return a(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}}),w=n.cw(function(e,t){e.exports=v()}),x={};n.r(x),n.d(x,{boolean:()=>Pl,booleanish:()=>Il,commaOrSpaceSeparated:()=>Dl,commaSeparated:()=>Rl,number:()=>zl,overloadedBoolean:()=>Ll,spaceSeparated:()=>Ml});var k={};n.r(k),n.d(k,{attentionMarkers:()=>hu,contentInitial:()=>su,disable:()=>mu,document:()=>lu,flow:()=>uu,flowInitial:()=>cu,insideSpan:()=>pu,string:()=>du,text:()=>fu}),s(),i(),o(),w();var S=s(),_=Symbol.for("react-redux-context"),C="undefined"!=typeof globalThis?globalThis:{};function E(){if(!S.createContext)return{};const e=C[_]??(C[_]=new Map);let t=e.get(S.createContext);return t||(t=S.createContext(null),e.set(S.createContext,t)),t}var A=E();function T(e=A){return function(){return S.useContext(e)}}var j=T(),N=()=>{throw new Error("uSES not initialized!")},O=(e,t)=>e===t;function P(e=A){const t=e===A?j:T(e),n=(e,n={})=>{const{equalityFn:r=O,devModeChecks:o={}}="function"==typeof n?{equalityFn:n}:n,{store:i,subscription:a,getServerState:l,stabilityCheck:s,identityFunctionCheck:c}=t(),u=(S.useRef(!0),S.useCallback({[e.name]:t=>e(t)}[e.name],[e,s,o.stabilityCheck])),d=N(a.addNestedSub,i.getState,l||i.getState,u,r);return S.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var I=P();function L(e){e()}Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.client.reference");var z={notify(){},get:()=>[]};var M=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),R="undefined"!=typeof navigator&&"ReactNative"===navigator.product,D=M||R?S.useLayoutEffect:S.useEffect;function F(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function B(e,t){if(F(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!F(e[n[r]],t[n[r]]))return!1;return!0}Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var q=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){const a=S.useMemo(()=>{const t=function(e,t){let n,r=z,o=0,i=!1;function a(){c.onStateChange&&c.onStateChange()}function l(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){L(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function s(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=z)}const c={addNestedSub:function(e){l();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),s())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,l())},tryUnsubscribe:function(){i&&(i=!1,s())},getListeners:()=>r};return c}(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}},[e,r,o,i]),l=S.useMemo(()=>e.getState(),[e]);D(()=>{const{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),l!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}},[a,l]);const s=t||A;return S.createElement(s.Provider,{value:a},n)};function U(e=A){const t=e===A?j:T(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var W=U();function V(e=A){const t=e===A?W:U(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Q,H=V(),K=L;function $(){return $.c||($.c=n.n(f()))}function Y(){return Y.c||(Y.c=n.n(y()))}function G(){return G.c||(G.c=n.n(p()))}function X(){return X.c||(X.c=n.n(m()))}function J(){return J.c||(J.c=n.n(h()))}function Z(){return Z.c||(Z.c=n.n(b()))}Q=v().useSyncExternalStoreWithSelector,N=Q,l().useSyncExternalStore,f(),y(),p(),m(),h(),b();var ee=n(5017),te={};function ne(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ne(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function re(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ne(e))&&(r&&(r+=" "),r+=t);return r}te.styleTagTransform=Z()(),te.setAttributes=X()(),te.insert=G()().bind(null,"head"),te.domAPI=Y()(),te.insertStyleElement=J()(),$()()(ee.A,te),ee.A&&ee.A.locals&&ee.A.locals;const oe=re;var ie=e=>"number"==typeof e&&!isNaN(e),ae=e=>"string"==typeof e,le=e=>"function"==typeof e,se=e=>ae(e)||le(e)?e:null,ce=(e,t)=>!1===e||ie(e)&&e>0?e:t,ue=e=>(0,l().isValidElement)(e)||ae(e)||le(e)||ie(e);function de({enter:e,exit:t,appendPosition:n=!1,collapse:r=!0,collapseDuration:o=300}){return function({children:i,position:a,preventExitTransition:s,done:c,nodeRef:u,isIn:d,playToast:f}){let p=n?`${e}--${a}`:e,h=n?`${t}--${a}`:t,m=(0,l().useRef)(0);return(0,l().useLayoutEffect)(()=>{let e=u.current,t=p.split(" "),n=r=>{r.target===u.current&&(f(),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===m.current&&"animationcancel"!==r.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)},[]),(0,l().useEffect)(()=>{let e=u.current,t=()=>{e.removeEventListener("animationend",t),r?function(e,t,n=300){let{scrollHeight:r,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}(e,c,o):c()};d||(s?t():(m.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))},[d]),l().createElement(l().Fragment,null,i)}}function fe(e,t){return{content:pe(e.content,e.props),containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,reason:e.removalReason,status:t}}function pe(e,t,n=!1){return(0,l().isValidElement)(e)&&!ae(e.type)?(0,l().cloneElement)(e,{closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:n}):le(e)?e({closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:n}):e}function he({delay:e,isRunning:t,closeToast:n,type:r="default",hide:o,className:i,controlledProgress:a,progress:s,rtl:c,isIn:u,theme:d}){let f=o||a&&0===s,p={animationDuration:`${e}ms`,animationPlayState:t?"running":"paused"};a&&(p.transform=`scaleX(${s})`);let h=oe("Toastify__progress-bar",a?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${d}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":c}),m=le(i)?i({rtl:c,type:r,defaultClassName:h}):oe(h,i),y={[a&&s>=1?"onTransitionEnd":"onAnimationEnd"]:a&&s<1?null:()=>{u&&n()}};return l().createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":f},l().createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${d} Toastify__progress-bar--${r}`}),l().createElement("div",{role:"progressbar","aria-hidden":f?"true":"false","aria-label":"notification timer","aria-valuenow":a?Math.round(100*s):void 0,"aria-valuemin":0,"aria-valuemax":100,className:m,style:p,...y}))}var me=1,ye=()=>""+me++;var be=new Map,ge=[],ve=new Set,we=e=>ve.forEach(t=>t(e)),xe=()=>be.size>0;function ke(e,t){var n;if(t)return!(null==(n=be.get(t))||!n.isToastActive(e));let r=!1;return be.forEach(t=>{t.isToastActive(e)&&(r=!0)}),r}function Se(e,t){ue(e)&&(xe()||ge.push({content:e,options:t}),be.forEach(n=>{n.buildToast(e,t)}))}function _e(e,t){be.forEach(n=>{(null==t||null==t||!t.containerId||(null==t?void 0:t.containerId)===n.id)&&n.toggle(e,null==t?void 0:t.id)})}function Ce(e){let t=e.containerId||1;return{subscribe(n){let r=function(e,t,n){let r=1,o=0,i=[],a=[],l=t,s=new Map,c=new Set,u=()=>{a=Array.from(s.values()),c.forEach(e=>e())},d=e=>{var t,r;e.isActive&&(null==(r=null==(t=e.props)?void 0:t.onClose)||r.call(t,e.removalReason),e.isActive=!1,n(fe(e,"removed")))},f=e=>{if(null==e)s.forEach(d);else{let t=s.get(e);t&&d(t)}u()},p=e=>{var t,r;let{toastId:o,updateId:i}=e.props,a=null==i;e.staleId&&s.delete(e.staleId),e.isActive=!0,s.set(o,e),u(),n(fe(e,a?"added":"updated")),a&&(null==(r=(t=e.props).onOpen)||r.call(t))};return{id:e,props:l,observe:e=>(c.add(e),()=>c.delete(e)),toggle:(e,t)=>{s.forEach(n=>{var r;(null==t||t===n.props.toastId)&&(null==(r=n.toggle)||r.call(n,e))})},removeToast:f,toasts:s,clearQueue:()=>{o-=i.length,i=[]},buildToast:(t,n)=>{if((({containerId:t,toastId:n,updateId:r})=>{let o=t?t!==e:1!==e,i=s.has(n)&&null==r;return o||i})(n))return;let{toastId:a,updateId:c,data:d,staleId:h,delay:m}=n,y=null==c;y&&o++;let b={...l,style:l.toastStyle,key:r++,...Object.fromEntries(Object.entries(n).filter(([e,t])=>null!=t)),toastId:a,updateId:c,data:d,isIn:!1,className:se(n.className||l.toastClassName),progressClassName:se(n.progressClassName||l.progressClassName),autoClose:!n.isLoading&&ce(n.autoClose,l.autoClose),closeToast(e){let t=s.get(a);t&&(t.removalReason=e,f(a))},deleteToast(){if(null!=s.get(a)){if(s.delete(a),o--,o<0&&(o=0),i.length>0)return void p(i.shift());u()}}};b.closeButton=l.closeButton,!1===n.closeButton||ue(n.closeButton)?b.closeButton=n.closeButton:!0===n.closeButton&&(b.closeButton=!ue(l.closeButton)||l.closeButton);let g={content:t,props:b,staleId:h};l.limit&&l.limit>0&&o>l.limit&&y?i.push(g):ie(m)?setTimeout(()=>{p(g)},m):p(g)},setProps(e){l=e},setToggle:(e,t)=>{let n=s.get(e);n&&(n.toggle=t)},isToastActive:e=>{var t;return null==(t=s.get(e))?void 0:t.isActive},getSnapshot:()=>a}}(t,e,we);be.set(t,r);let o=r.observe(n);return ge.forEach(e=>Se(e.content,e.options)),ge=[],()=>{o(),be.delete(t)}},setProps(e){var n;null==(n=be.get(t))||n.setProps(e)},getSnapshot(){var e;return null==(e=be.get(t))?void 0:e.getSnapshot()}}}function Ee(e){return e&&(ae(e.toastId)||ie(e.toastId))?e.toastId:ye()}function Ae(e,t){return Se(e,t),t.toastId}function Te(e,t){return{...t,type:t&&t.type||e,toastId:Ee(t)}}function je(e){return(t,n)=>Ae(t,Te(e,n))}function Ne(e,t){return Ae(e,Te("default",t))}Ne.loading=(e,t)=>Ae(e,Te("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Ne.promise=function(e,{pending:t,error:n,success:r},o){let i;t&&(i=ae(t)?Ne.loading(t,o):Ne.loading(t.render,{...o,...t}));let a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(e,t,n)=>{if(null==t)return void Ne.dismiss(i);let r={type:e,...a,...o,data:n},l=ae(t)?{render:t}:t;return i?Ne.update(i,{...r,...l}):Ne(l.render,{...r,...l}),n},s=le(e)?e():e;return s.then(e=>l("success",r,e)).catch(e=>l("error",n,e)),s},Ne.success=je("success"),Ne.info=je("info"),Ne.error=je("error"),Ne.warning=je("warning"),Ne.warn=Ne.warning,Ne.dark=(e,t)=>Ae(e,Te("default",{theme:"dark",...t})),Ne.dismiss=function(e){!function(e){if(xe()){if(null==e||(e=>ae(e)||ie(e))(e))be.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=be.get(e.containerId);t?t.removeToast(e.id):be.forEach(t=>{t.removeToast(e.id)})}}else ge=ge.filter(t=>null!=e&&t.options.toastId!==e)}(e)},Ne.clearWaitingQueue=(e={})=>{be.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})},Ne.isActive=ke,Ne.update=(e,t={})=>{let n=((e,{containerId:t})=>{var n;return null==(n=be.get(t||1))?void 0:n.toasts.get(e)})(e,t);if(n){let{props:r,content:o}=n,i={delay:100,...r,...t,toastId:t.toastId||e,updateId:ye()};i.toastId!==e&&(i.staleId=e);let a=i.render||o;delete i.render,Ae(a,i)}},Ne.done=e=>{Ne.update(e,{progress:1})},Ne.onChange=function(e){return ve.add(e),()=>{ve.delete(e)}},Ne.play=e=>_e(!0,e),Ne.pause=e=>_e(!1,e);var Oe="undefined"!=typeof window?l().useLayoutEffect:l().useEffect,Pe=({theme:e,type:t,isLoading:n,...r})=>l().createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===e?"currentColor":`var(--toastify-icon-color-${t})`,...r}),Ie={info:function(e){return l().createElement(Pe,{...e},l().createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return l().createElement(Pe,{...e},l().createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return l().createElement(Pe,{...e},l().createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return l().createElement(Pe,{...e},l().createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return l().createElement("div",{className:"Toastify__spinner"})}};var Le=e=>{let{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:o,playToast:i}=function(e){let[t,n]=(0,l().useState)(!1),[r,o]=(0,l().useState)(!1),i=(0,l().useRef)(null),a=(0,l().useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:s,pauseOnHover:c,closeToast:u,onClick:d,closeOnClick:f}=e;function p(){n(!0)}function h(){n(!1)}function m(n){let r=i.current;if(a.canDrag&&r){a.didMove=!0,t&&h(),"x"===e.draggableDirection?a.delta=n.clientX-a.start:a.delta=n.clientY-a.start,a.start!==n.clientX&&(a.canCloseOnClick=!1);let o="x"===e.draggableDirection?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`;r.style.transform=`translate3d(${o},0)`,r.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance))}}function y(){document.removeEventListener("pointermove",m),document.removeEventListener("pointerup",y);let t=i.current;if(a.canDrag&&a.didMove&&t){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return o(!0),e.closeToast(!0),void e.collapseAll();t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}(function(e){var t;null==(t=be.get(e.containerId||1))||t.setToggle(e.id,e.fn)})({id:e.toastId,containerId:e.containerId,fn:n}),(0,l().useEffect)(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||h(),window.addEventListener("focus",p),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",p),window.removeEventListener("blur",h)}},[e.pauseOnFocusLoss]);let b={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){a.didMove=!1,document.addEventListener("pointermove",m),document.addEventListener("pointerup",y);let n=i.current;a.canCloseOnClick=!0,a.canDrag=!0,n.style.transition="none","x"===e.draggableDirection?(a.start=t.clientX,a.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(a.start=t.clientY,a.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){let{top:n,bottom:r,left:o,right:a}=i.current.getBoundingClientRect();"mouse"===t.pointerType&&e.pauseOnHover&&t.clientX>=o&&t.clientX<=a&&t.clientY>=n&&t.clientY<=r?h():p()}};return s&&c&&(b.onMouseEnter=h,e.stacked||(b.onMouseLeave=p)),f&&(b.onClick=e=>{d&&d(e),a.canCloseOnClick&&u(!0)}),{playToast:p,pauseToast:h,isRunning:t,preventExitTransition:r,toastRef:i,eventHandlers:b}}(e),{closeButton:a,children:s,autoClose:c,onClick:u,type:d,hideProgressBar:f,closeToast:p,transition:h,position:m,className:y,style:b,progressClassName:g,updateId:v,role:w,progress:x,rtl:k,toastId:S,deleteToast:_,isIn:C,isLoading:E,closeOnClick:A,theme:T,ariaLabel:j}=e,N=oe("Toastify__toast",`Toastify__toast-theme--${T}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":k},{"Toastify__toast--close-on-click":A}),O=le(y)?y({rtl:k,position:m,type:d,defaultClassName:N}):oe(N,y),P=function({theme:e,type:t,isLoading:n,icon:r}){let o=null,i={theme:e,type:t};return!1===r||(le(r)?o=r({...i,isLoading:n}):(0,l().isValidElement)(r)?o=(0,l().cloneElement)(r,i):n?o=Ie.spinner():(e=>e in Ie)(t)&&(o=Ie[t](i))),o}(e),I=!!x||!c,L={closeToast:p,type:d,theme:T},z=null;return!1===a||(z=le(a)?a(L):(0,l().isValidElement)(a)?(0,l().cloneElement)(a,L):function({closeToast:e,theme:t,ariaLabel:n="close"}){return l().createElement("button",{className:`Toastify__close-button Toastify__close-button--${t}`,type:"button",onClick:t=>{t.stopPropagation(),e(!0)},"aria-label":n},l().createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},l().createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(L)),l().createElement(h,{isIn:C,done:_,position:m,preventExitTransition:n,nodeRef:r,playToast:i},l().createElement("div",{id:S,tabIndex:0,onClick:u,"data-in":C,className:O,...o,style:b,ref:r,...C&&{role:w,"aria-label":j}},null!=P&&l().createElement("div",{className:oe("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!E})},P),pe(s,e,!t),z,!e.customProgressBar&&l().createElement(he,{...v&&!I?{key:`p-${v}`}:{},rtl:k,theme:T,delay:c,isRunning:t,isIn:C,closeToast:p,hide:f,type:d,className:g,controlledProgress:I,progress:x||0})))},ze=(e,t=!1)=>({enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}),Me=de(ze("bounce",!0)),Re=(de(ze("slide",!0)),de(ze("zoom")),de(ze("flip")),{position:"top-right",transition:Me,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:e=>e.altKey&&"KeyT"===e.code});function De(e){let t={...Re,...e},n=e.stacked,[r,o]=(0,l().useState)(!0),i=(0,l().useRef)(null),{getToastToRender:a,isToastActive:s,count:c}=function(e){var t;let{subscribe:n,getSnapshot:r,setProps:o}=(0,l().useRef)(Ce(e)).current;o(e);let i=null==(t=(0,l().useSyncExternalStore)(n,r,r))?void 0:t.slice();return{getToastToRender:function(t){if(!i)return[];let n=new Map;return e.newestOnTop&&i.reverse(),i.forEach(e=>{let{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)}),Array.from(n,e=>t(e[0],e[1]))},isToastActive:ke,count:null==i?void 0:i.length}}(t),{className:u,style:d,rtl:f,containerId:p,hotKeys:h}=t;function m(e){let t=oe("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":f});return le(u)?u({position:e,rtl:f,defaultClassName:t}):oe(t,se(u))}function y(){n&&(o(!0),Ne.play())}return Oe(()=>{var e;if(n){let n=i.current.querySelectorAll('[data-in="true"]'),o=12,a=null==(e=t.position)?void 0:e.includes("top"),l=0,s=0;Array.from(n).reverse().forEach((e,t)=>{let n=e;n.classList.add("Toastify__toast--stacked"),t>0&&(n.dataset.collapsed=`${r}`),n.dataset.pos||(n.dataset.pos=a?"top":"bot");let i=l*(r?.2:1)+(r?0:o*t),c=Math.max(.5,1-(r?s:0));n.style.setProperty("--y",`${a?i:-1*i}px`),n.style.setProperty("--g",`${o}`),n.style.setProperty("--s",`${c}`),l+=n.offsetHeight,s+=.025})}},[r,c,n]),(0,l().useEffect)(()=>{function e(e){var t;let n=i.current;h(e)&&(null==(t=null==n?void 0:n.querySelector('[tabIndex="0"]'))||t.focus(),o(!1),Ne.pause()),"Escape"===e.key&&(document.activeElement===n||null!=n&&n.contains(document.activeElement))&&(o(!0),Ne.play())}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[h]),l().createElement("section",{ref:i,className:"Toastify",id:p,onMouseEnter:()=>{n&&(o(!1),Ne.pause())},onMouseLeave:y,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":t["aria-label"]},a((e,t)=>{let r=t.length?{...d}:{...d,pointerEvents:"none"};return l().createElement("div",{tabIndex:-1,className:m(e),"data-stacked":n,style:r,key:`c-${e}`},t.map(({content:e,props:t})=>l().createElement(Le,{...t,stacked:n,collapseAll:y,isIn:s(t.toastId,t.containerId),key:`t-${t.key}`},e)))}))}var Fe=new Map;function Be(e){return((e,t)=>{Oe(()=>{if("undefined"==typeof document)return;let n=document,r=Fe.get(n);if(r)return void(t&&r.setAttribute("nonce",t));let o=n.createElement("style");o.textContent=e,t&&o.setAttribute("nonce",t),n.head.appendChild(o),Fe.set(n,o)},[t])})(":root {\n --toastify-color-light: #fff;\n --toastify-color-dark: #121212;\n --toastify-color-info: #3498db;\n --toastify-color-success: #07bc0c;\n --toastify-color-warning: #f1c40f;\n --toastify-color-error: hsl(6, 78%, 57%);\n --toastify-color-transparent: rgba(255, 255, 255, 0.7);\n\n --toastify-icon-color-info: var(--toastify-color-info);\n --toastify-icon-color-success: var(--toastify-color-success);\n --toastify-icon-color-warning: var(--toastify-color-warning);\n --toastify-icon-color-error: var(--toastify-color-error);\n\n --toastify-container-width: fit-content;\n --toastify-toast-width: 320px;\n --toastify-toast-offset: 16px;\n --toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));\n --toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));\n --toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));\n --toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));\n --toastify-toast-background: #fff;\n --toastify-toast-padding: 14px;\n --toastify-toast-min-height: 64px;\n --toastify-toast-max-height: 800px;\n --toastify-toast-bd-radius: 6px;\n --toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);\n --toastify-font-family: sans-serif;\n --toastify-z-index: 9999;\n --toastify-text-color-light: #757575;\n --toastify-text-color-dark: #fff;\n\n /* Used only for colored theme */\n --toastify-text-color-info: #fff;\n --toastify-text-color-success: #fff;\n --toastify-text-color-warning: #fff;\n --toastify-text-color-error: #fff;\n\n --toastify-spinner-color: #616161;\n --toastify-spinner-color-empty-area: #e0e0e0;\n --toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);\n --toastify-color-progress-dark: #bb86fc;\n --toastify-color-progress-info: var(--toastify-color-info);\n --toastify-color-progress-success: var(--toastify-color-success);\n --toastify-color-progress-warning: var(--toastify-color-warning);\n --toastify-color-progress-error: var(--toastify-color-error);\n /* used to control the opacity of the progress trail */\n --toastify-color-progress-bgo: 0.2;\n}\n\n.Toastify__toast-container {\n z-index: var(--toastify-z-index);\n -webkit-transform: translate3d(0, 0, var(--toastify-z-index));\n position: fixed;\n width: var(--toastify-container-width);\n box-sizing: border-box;\n color: #fff;\n display: flex;\n flex-direction: column;\n}\n\n.Toastify__toast-container--top-left {\n top: var(--toastify-toast-top);\n left: var(--toastify-toast-left);\n}\n.Toastify__toast-container--top-center {\n top: var(--toastify-toast-top);\n left: 50%;\n transform: translateX(-50%);\n align-items: center;\n}\n.Toastify__toast-container--top-right {\n top: var(--toastify-toast-top);\n right: var(--toastify-toast-right);\n align-items: end;\n}\n.Toastify__toast-container--bottom-left {\n bottom: var(--toastify-toast-bottom);\n left: var(--toastify-toast-left);\n}\n.Toastify__toast-container--bottom-center {\n bottom: var(--toastify-toast-bottom);\n left: 50%;\n transform: translateX(-50%);\n align-items: center;\n}\n.Toastify__toast-container--bottom-right {\n bottom: var(--toastify-toast-bottom);\n right: var(--toastify-toast-right);\n align-items: end;\n}\n\n.Toastify__toast {\n --y: 0px;\n position: relative;\n touch-action: none;\n width: var(--toastify-toast-width);\n min-height: var(--toastify-toast-min-height);\n box-sizing: border-box;\n margin-bottom: 1rem;\n padding: var(--toastify-toast-padding);\n border-radius: var(--toastify-toast-bd-radius);\n box-shadow: var(--toastify-toast-shadow);\n max-height: var(--toastify-toast-max-height);\n font-family: var(--toastify-font-family);\n /* webkit only issue #791 */\n z-index: 0;\n /* inner swag */\n display: flex;\n flex: 1 auto;\n align-items: center;\n word-break: break-word;\n}\n\n@media only screen and (max-width: 480px) {\n .Toastify__toast-container {\n width: 100vw;\n left: env(safe-area-inset-left);\n margin: 0;\n }\n .Toastify__toast-container--top-left,\n .Toastify__toast-container--top-center,\n .Toastify__toast-container--top-right {\n top: env(safe-area-inset-top);\n transform: translateX(0);\n }\n .Toastify__toast-container--bottom-left,\n .Toastify__toast-container--bottom-center,\n .Toastify__toast-container--bottom-right {\n bottom: env(safe-area-inset-bottom);\n transform: translateX(0);\n }\n .Toastify__toast-container--rtl {\n right: env(safe-area-inset-right);\n left: initial;\n }\n .Toastify__toast {\n --toastify-toast-width: 100%;\n margin-bottom: 0;\n border-radius: 0;\n }\n}\n\n.Toastify__toast-container[data-stacked='true'] {\n width: var(--toastify-toast-width);\n}\n\n@media only screen and (max-width: 480px) {\n .Toastify__toast-container[data-stacked='true'] {\n width: 100vw;\n }\n}\n\n.Toastify__toast--stacked {\n position: absolute;\n width: 100%;\n transform: translate3d(0, var(--y), 0) scale(var(--s));\n transition: transform 0.3s;\n}\n\n.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,\n.Toastify__toast--stacked[data-collapsed] .Toastify__close-button {\n transition: opacity 0.1s;\n}\n\n.Toastify__toast--stacked[data-collapsed='false'] {\n overflow: visible;\n}\n\n.Toastify__toast--stacked[data-collapsed='true']:not(:last-child) > * {\n opacity: 0;\n}\n\n.Toastify__toast--stacked:after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n height: calc(var(--g) * 1px);\n bottom: 100%;\n}\n\n.Toastify__toast--stacked[data-pos='top'] {\n top: 0;\n}\n\n.Toastify__toast--stacked[data-pos='bot'] {\n bottom: 0;\n}\n\n.Toastify__toast--stacked[data-pos='bot'].Toastify__toast--stacked:before {\n transform-origin: top;\n}\n\n.Toastify__toast--stacked[data-pos='top'].Toastify__toast--stacked:before {\n transform-origin: bottom;\n}\n\n.Toastify__toast--stacked:before {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n transform: scaleY(3);\n z-index: -1;\n}\n\n.Toastify__toast--rtl {\n direction: rtl;\n}\n\n.Toastify__toast--close-on-click {\n cursor: pointer;\n}\n\n.Toastify__toast-icon {\n margin-inline-end: 10px;\n width: 22px;\n flex-shrink: 0;\n display: flex;\n}\n\n.Toastify--animate {\n animation-fill-mode: both;\n animation-duration: 0.5s;\n}\n\n.Toastify--animate-icon {\n animation-fill-mode: both;\n animation-duration: 0.3s;\n}\n\n.Toastify__toast-theme--dark {\n background: var(--toastify-color-dark);\n color: var(--toastify-text-color-dark);\n}\n\n.Toastify__toast-theme--light {\n background: var(--toastify-color-light);\n color: var(--toastify-text-color-light);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--default {\n background: var(--toastify-color-light);\n color: var(--toastify-text-color-light);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--info {\n color: var(--toastify-text-color-info);\n background: var(--toastify-color-info);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--success {\n color: var(--toastify-text-color-success);\n background: var(--toastify-color-success);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--warning {\n color: var(--toastify-text-color-warning);\n background: var(--toastify-color-warning);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--error {\n color: var(--toastify-text-color-error);\n background: var(--toastify-color-error);\n}\n\n.Toastify__progress-bar-theme--light {\n background: var(--toastify-color-progress-light);\n}\n\n.Toastify__progress-bar-theme--dark {\n background: var(--toastify-color-progress-dark);\n}\n\n.Toastify__progress-bar--info {\n background: var(--toastify-color-progress-info);\n}\n\n.Toastify__progress-bar--success {\n background: var(--toastify-color-progress-success);\n}\n\n.Toastify__progress-bar--warning {\n background: var(--toastify-color-progress-warning);\n}\n\n.Toastify__progress-bar--error {\n background: var(--toastify-color-progress-error);\n}\n\n.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,\n.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,\n.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,\n.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error {\n background: var(--toastify-color-transparent);\n}\n\n.Toastify__close-button {\n color: #fff;\n position: absolute;\n top: 6px;\n right: 6px;\n background: transparent;\n outline: none;\n border: none;\n padding: 0;\n cursor: pointer;\n opacity: 0.7;\n transition: 0.3s ease;\n z-index: 1;\n}\n\n.Toastify__toast--rtl .Toastify__close-button {\n left: 6px;\n right: unset;\n}\n\n.Toastify__close-button--light {\n color: #000;\n opacity: 0.3;\n}\n\n.Toastify__close-button > svg {\n fill: currentColor;\n height: 16px;\n width: 14px;\n}\n\n.Toastify__close-button:hover,\n.Toastify__close-button:focus {\n opacity: 1;\n}\n\n@keyframes Toastify__trackProgress {\n 0% {\n transform: scaleX(1);\n }\n 100% {\n transform: scaleX(0);\n }\n}\n\n.Toastify__progress-bar {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 1;\n opacity: 0.7;\n transform-origin: left;\n}\n\n.Toastify__progress-bar--animated {\n animation: Toastify__trackProgress linear 1 forwards;\n}\n\n.Toastify__progress-bar--controlled {\n transition: transform 0.2s;\n}\n\n.Toastify__progress-bar--rtl {\n right: 0;\n left: initial;\n transform-origin: right;\n border-bottom-left-radius: initial;\n}\n\n.Toastify__progress-bar--wrp {\n position: absolute;\n overflow: hidden;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 5px;\n border-bottom-left-radius: var(--toastify-toast-bd-radius);\n border-bottom-right-radius: var(--toastify-toast-bd-radius);\n}\n\n.Toastify__progress-bar--wrp[data-hidden='true'] {\n opacity: 0;\n}\n\n.Toastify__progress-bar--bg {\n opacity: var(--toastify-color-progress-bgo);\n width: 100%;\n height: 100%;\n}\n\n.Toastify__spinner {\n width: 20px;\n height: 20px;\n box-sizing: border-box;\n border: 2px solid;\n border-radius: 100%;\n border-color: var(--toastify-spinner-color-empty-area);\n border-right-color: var(--toastify-spinner-color);\n animation: Toastify__spin 0.65s linear infinite;\n}\n\n@keyframes Toastify__bounceInRight {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n from {\n opacity: 0;\n transform: translate3d(3000px, 0, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(-25px, 0, 0);\n }\n 75% {\n transform: translate3d(10px, 0, 0);\n }\n 90% {\n transform: translate3d(-5px, 0, 0);\n }\n to {\n transform: none;\n }\n}\n\n@keyframes Toastify__bounceOutRight {\n 20% {\n opacity: 1;\n transform: translate3d(-20px, var(--y), 0);\n }\n to {\n opacity: 0;\n transform: translate3d(2000px, var(--y), 0);\n }\n}\n\n@keyframes Toastify__bounceInLeft {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n 0% {\n opacity: 0;\n transform: translate3d(-3000px, 0, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(25px, 0, 0);\n }\n 75% {\n transform: translate3d(-10px, 0, 0);\n }\n 90% {\n transform: translate3d(5px, 0, 0);\n }\n to {\n transform: none;\n }\n}\n\n@keyframes Toastify__bounceOutLeft {\n 20% {\n opacity: 1;\n transform: translate3d(20px, var(--y), 0);\n }\n to {\n opacity: 0;\n transform: translate3d(-2000px, var(--y), 0);\n }\n}\n\n@keyframes Toastify__bounceInUp {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n from {\n opacity: 0;\n transform: translate3d(0, 3000px, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(0, -20px, 0);\n }\n 75% {\n transform: translate3d(0, 10px, 0);\n }\n 90% {\n transform: translate3d(0, -5px, 0);\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n}\n\n@keyframes Toastify__bounceOutUp {\n 20% {\n transform: translate3d(0, calc(var(--y) - 10px), 0);\n }\n 40%,\n 45% {\n opacity: 1;\n transform: translate3d(0, calc(var(--y) + 20px), 0);\n }\n to {\n opacity: 0;\n transform: translate3d(0, -2000px, 0);\n }\n}\n\n@keyframes Toastify__bounceInDown {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n 0% {\n opacity: 0;\n transform: translate3d(0, -3000px, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(0, 25px, 0);\n }\n 75% {\n transform: translate3d(0, -10px, 0);\n }\n 90% {\n transform: translate3d(0, 5px, 0);\n }\n to {\n transform: none;\n }\n}\n\n@keyframes Toastify__bounceOutDown {\n 20% {\n transform: translate3d(0, calc(var(--y) - 10px), 0);\n }\n 40%,\n 45% {\n opacity: 1;\n transform: translate3d(0, calc(var(--y) + 20px), 0);\n }\n to {\n opacity: 0;\n transform: translate3d(0, 2000px, 0);\n }\n}\n\n.Toastify__bounce-enter--top-left,\n.Toastify__bounce-enter--bottom-left {\n animation-name: Toastify__bounceInLeft;\n}\n\n.Toastify__bounce-enter--top-right,\n.Toastify__bounce-enter--bottom-right {\n animation-name: Toastify__bounceInRight;\n}\n\n.Toastify__bounce-enter--top-center {\n animation-name: Toastify__bounceInDown;\n}\n\n.Toastify__bounce-enter--bottom-center {\n animation-name: Toastify__bounceInUp;\n}\n\n.Toastify__bounce-exit--top-left,\n.Toastify__bounce-exit--bottom-left {\n animation-name: Toastify__bounceOutLeft;\n}\n\n.Toastify__bounce-exit--top-right,\n.Toastify__bounce-exit--bottom-right {\n animation-name: Toastify__bounceOutRight;\n}\n\n.Toastify__bounce-exit--top-center {\n animation-name: Toastify__bounceOutUp;\n}\n\n.Toastify__bounce-exit--bottom-center {\n animation-name: Toastify__bounceOutDown;\n}\n\n@keyframes Toastify__zoomIn {\n from {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n 50% {\n opacity: 1;\n }\n}\n\n@keyframes Toastify__zoomOut {\n from {\n opacity: 1;\n }\n 50% {\n opacity: 0;\n transform: translate3d(0, var(--y), 0) scale3d(0.3, 0.3, 0.3);\n }\n to {\n opacity: 0;\n }\n}\n\n.Toastify__zoom-enter {\n animation-name: Toastify__zoomIn;\n}\n\n.Toastify__zoom-exit {\n animation-name: Toastify__zoomOut;\n}\n\n@keyframes Toastify__flipIn {\n from {\n transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n animation-timing-function: ease-in;\n opacity: 0;\n }\n 40% {\n transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n animation-timing-function: ease-in;\n }\n 60% {\n transform: perspective(400px) rotate3d(1, 0, 0, 10deg);\n opacity: 1;\n }\n 80% {\n transform: perspective(400px) rotate3d(1, 0, 0, -5deg);\n }\n to {\n transform: perspective(400px);\n }\n}\n\n@keyframes Toastify__flipOut {\n from {\n transform: translate3d(0, var(--y), 0) perspective(400px);\n }\n 30% {\n transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, -20deg);\n opacity: 1;\n }\n to {\n transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, 90deg);\n opacity: 0;\n }\n}\n\n.Toastify__flip-enter {\n animation-name: Toastify__flipIn;\n}\n\n.Toastify__flip-exit {\n animation-name: Toastify__flipOut;\n}\n\n@keyframes Toastify__slideInRight {\n from {\n transform: translate3d(110%, 0, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideInLeft {\n from {\n transform: translate3d(-110%, 0, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideInUp {\n from {\n transform: translate3d(0, 110%, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideInDown {\n from {\n transform: translate3d(0, -110%, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideOutRight {\n from {\n transform: translate3d(0, var(--y), 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(110%, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideOutLeft {\n from {\n transform: translate3d(0, var(--y), 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(-110%, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideOutDown {\n from {\n transform: translate3d(0, var(--y), 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(0, 500px, 0);\n }\n}\n\n@keyframes Toastify__slideOutUp {\n from {\n transform: translate3d(0, var(--y), 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(0, -500px, 0);\n }\n}\n\n.Toastify__slide-enter--top-left,\n.Toastify__slide-enter--bottom-left {\n animation-name: Toastify__slideInLeft;\n}\n\n.Toastify__slide-enter--top-right,\n.Toastify__slide-enter--bottom-right {\n animation-name: Toastify__slideInRight;\n}\n\n.Toastify__slide-enter--top-center {\n animation-name: Toastify__slideInDown;\n}\n\n.Toastify__slide-enter--bottom-center {\n animation-name: Toastify__slideInUp;\n}\n\n.Toastify__slide-exit--top-left,\n.Toastify__slide-exit--bottom-left {\n animation-name: Toastify__slideOutLeft;\n animation-timing-function: ease-in;\n animation-duration: 0.3s;\n}\n\n.Toastify__slide-exit--top-right,\n.Toastify__slide-exit--bottom-right {\n animation-name: Toastify__slideOutRight;\n animation-timing-function: ease-in;\n animation-duration: 0.3s;\n}\n\n.Toastify__slide-exit--top-center {\n animation-name: Toastify__slideOutUp;\n animation-timing-function: ease-in;\n animation-duration: 0.3s;\n}\n\n.Toastify__slide-exit--bottom-center {\n animation-name: Toastify__slideOutDown;\n animation-timing-function: ease-in;\n animation-duration: 0.3s;\n}\n\n@keyframes Toastify__spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}\n",e.nonce),l().createElement(De,{...e})}function qe(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Ue=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),We=()=>Math.random().toString(36).substring(7).split("").join("."),Ve={INIT:`@@redux/INIT${We()}`,REPLACE:`@@redux/REPLACE${We()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${We()}`};function Qe(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function He(e,t,n){if("function"!=typeof e)throw new Error(qe(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(qe(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(qe(1));return n(He)(e,t)}let r=e,o=t,i=new Map,a=i,l=0,s=!1;function c(){a===i&&(a=new Map,i.forEach((e,t)=>{a.set(t,e)}))}function u(){if(s)throw new Error(qe(3));return o}function d(e){if("function"!=typeof e)throw new Error(qe(4));if(s)throw new Error(qe(5));let t=!0;c();const n=l++;return a.set(n,e),function(){if(t){if(s)throw new Error(qe(6));t=!1,c(),a.delete(n),i=null}}}function f(e){if(!Qe(e))throw new Error(qe(7));if(void 0===e.type)throw new Error(qe(8));if("string"!=typeof e.type)throw new Error(qe(17));if(s)throw new Error(qe(9));try{s=!0,o=r(o,e)}finally{s=!1}return(i=a).forEach(e=>{e()}),e}return f({type:Ve.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(qe(10));r=e,f({type:Ve.REPLACE})},[Ue]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(qe(11));function n(){const e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[Ue](){return this}}}}}function Ke(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}const r=Object.keys(n);let o;try{!function(e){Object.keys(e).forEach(t=>{const n=e[t];if(void 0===n(void 0,{type:Ve.INIT}))throw new Error(qe(12));if(void 0===n(void 0,{type:Ve.PROBE_UNKNOWN_ACTION()}))throw new Error(qe(13))})}(n)}catch(e){o=e}return function(e={},t){if(o)throw o;let i=!1;const a={};for(let o=0;o<r.length;o++){const l=r[o],s=n[l],c=e[l],u=s(c,t);if(void 0===u)throw t&&t.type,new Error(qe(14));a[l]=u,i=i||u!==c}return i=i||r.length!==Object.keys(e).length,i?a:e}}function $e(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function Ye(e){return Qe(e)&&"type"in e&&"string"==typeof e.type}function Ge(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}var Xe=Ge(),Je=Ge,Ze=Symbol.for("immer-nothing"),et=Symbol.for("immer-draftable"),tt=Symbol.for("immer-state");function nt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var rt=Object.getPrototypeOf;function ot(e){return!!e&&!!e[tt]}function it(e){return!!e&&(lt(e)||Array.isArray(e)||!!e[et]||!!e.constructor?.[et]||pt(e)||ht(e))}var at=Object.prototype.constructor.toString();function lt(e){if(!e||"object"!=typeof e)return!1;const t=rt(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===at}function st(e,t){0===ct(e)?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function ct(e){const t=e[tt];return t?t.type_:Array.isArray(e)?1:pt(e)?2:ht(e)?3:0}function ut(e,t){return 2===ct(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function dt(e,t){return 2===ct(e)?e.get(t):e[t]}function ft(e,t,n){const r=ct(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function pt(e){return e instanceof Map}function ht(e){return e instanceof Set}function mt(e){return e.copy_||e.base_}function yt(e,t){if(pt(e))return new Map(e);if(ht(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=lt(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[tt];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(rt(e),t)}{const t=rt(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function bt(e,t=!1){return vt(e)||ot(e)||!it(e)||(ct(e)>1&&(e.set=e.add=e.clear=e.delete=gt),Object.freeze(e),t&&Object.entries(e).forEach(([e,t])=>bt(t,!0))),e}function gt(){nt(2)}function vt(e){return Object.isFrozen(e)}var wt,xt={};function kt(e){const t=xt[e];return t||nt(0),t}function St(){return wt}function _t(e,t){t&&(kt("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Ct(e){Et(e),e.drafts_.forEach(Tt),e.drafts_=null}function Et(e){e===wt&&(wt=e.parent_)}function At(e){return wt={drafts_:[],parent_:wt,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Tt(e){const t=e[tt];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function jt(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[tt].modified_&&(Ct(t),nt(4)),it(e)&&(e=Nt(t,e),t.parent_||Pt(t,e)),t.patches_&&kt("Patches").generateReplacementPatches_(n[tt].base_,e,t.patches_,t.inversePatches_)):e=Nt(t,n,[]),Ct(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Ze?e:void 0}function Nt(e,t,n){if(vt(t))return t;const r=t[tt];if(!r)return st(t,(o,i)=>Ot(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Pt(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),st(o,(o,a)=>Ot(e,r,t,o,a,n,i)),Pt(e,t,!1),n&&e.patches_&&kt("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Ot(e,t,n,r,o,i,a){if(ot(o)){const a=Nt(e,o,i&&t&&3!==t.type_&&!ut(t.assigned_,r)?i.concat(r):void 0);if(ft(n,r,a),!ot(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(it(o)&&!vt(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Nt(e,o),t&&t.scope_.parent_||"symbol"==typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||Pt(e,o)}}function Pt(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&bt(t,n)}var It={get(e,t){if(t===tt)return e;const n=mt(e);if(!ut(n,t))return function(e,t,n){const r=Mt(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!it(r)?r:r===zt(e.base_,t)?(Dt(e),e.copy_[t]=Ft(r,e)):r},has:(e,t)=>t in mt(e),ownKeys:e=>Reflect.ownKeys(mt(e)),set(e,t,n){const r=Mt(mt(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=zt(mt(e),t),a=r?.[tt];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((o=n)===(i=r)?0!==o||1/o==1/i:o!=o&&i!=i)&&(void 0!==n||ut(e.base_,t)))return!0;Dt(e),Rt(e)}var o,i;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==zt(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Dt(e),Rt(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=mt(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){nt(11)},getPrototypeOf:e=>rt(e.base_),setPrototypeOf(){nt(12)}},Lt={};function zt(e,t){const n=e[tt];return(n?mt(n):e)[t]}function Mt(e,t){if(!(t in e))return;let n=rt(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=rt(n)}}function Rt(e){e.modified_||(e.modified_=!0,e.parent_&&Rt(e.parent_))}function Dt(e){e.copy_||(e.copy_=yt(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function Ft(e,t){const n=pt(e)?kt("MapSet").proxyMap_(e,t):ht(e)?kt("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:St(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=It;n&&(o=[r],i=Lt);const{revoke:a,proxy:l}=Proxy.revocable(o,i);return r.draft_=l,r.revoke_=a,l}(e,t);return(t?t.scope_:St()).drafts_.push(n),n}function Bt(e){if(!it(e)||vt(e))return e;const t=e[tt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=yt(e,t.scope_.immer_.useStrictShallowCopy_)}else n=yt(e,!0);return st(n,(e,t)=>{ft(n,e,Bt(t))}),t&&(t.finalized_=!1),n}function qt(){const e="replace",t="add",n="remove";function r(e){if(!it(e))return e;if(Array.isArray(e))return e.map(r);if(pt(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,r(t)]));if(ht(e))return new Set(Array.from(e).map(r));const t=Object.create(rt(e));for(const n in e)t[n]=r(e[n]);return ut(e,et)&&(t[et]=e[et]),t}function o(e){return ot(e)?r(e):e}var i,a;a={applyPatches_:function(o,i){return i.forEach(i=>{const{path:a,op:l}=i;let s=o;for(let e=0;e<a.length-1;e++){const t=ct(s);let n=a[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),0!==t&&1!==t||"__proto__"!==n&&"constructor"!==n||nt(19),"function"==typeof s&&"prototype"===n&&nt(19),s=dt(s,n),"object"!=typeof s&&nt(18,a.join("/"))}const c=ct(s),u=r(i.value),d=a[a.length-1];switch(l){case e:switch(c){case 2:return s.set(d,u);case 3:nt(16);default:return s[d]=u}case t:switch(c){case 1:return"-"===d?s.push(u):s.splice(d,0,u);case 2:return s.set(d,u);case 3:return s.add(u);default:return s[d]=u}case n:switch(c){case 1:return s.splice(d,1);case 2:return s.delete(d);case 3:return s.delete(i.value);default:return delete s[d]}default:nt(17)}}),o},generatePatches_:function(r,i,a,l){switch(r.type_){case 0:case 2:return function(r,i,a,l){const{base_:s,copy_:c}=r;st(r.assigned_,(r,u)=>{const d=dt(s,r),f=dt(c,r),p=u?ut(s,r)?e:t:n;if(d===f&&p===e)return;const h=i.concat(r);a.push(p===n?{op:p,path:h}:{op:p,path:h,value:f}),l.push(p===t?{op:n,path:h}:p===n?{op:t,path:h,value:o(d)}:{op:e,path:h,value:o(d)})})}(r,i,a,l);case 1:return function(r,i,a,l){let{base_:s,assigned_:c}=r,u=r.copy_;u.length<s.length&&([s,u]=[u,s],[a,l]=[l,a]);for(let t=0;t<s.length;t++)if(c[t]&&u[t]!==s[t]){const n=i.concat([t]);a.push({op:e,path:n,value:o(u[t])}),l.push({op:e,path:n,value:o(s[t])})}for(let e=s.length;e<u.length;e++){const n=i.concat([e]);a.push({op:t,path:n,value:o(u[e])})}for(let e=u.length-1;s.length<=e;--e){const t=i.concat([e]);l.push({op:n,path:t})}}(r,i,a,l);case 3:return function(e,r,o,i){let{base_:a,copy_:l}=e,s=0;a.forEach(e=>{if(!l.has(e)){const a=r.concat([s]);o.push({op:n,path:a,value:e}),i.unshift({op:t,path:a,value:e})}s++}),s=0,l.forEach(e=>{if(!a.has(e)){const a=r.concat([s]);o.push({op:t,path:a,value:e}),i.unshift({op:n,path:a,value:e})}s++})}(r,i,a,l)}},generateReplacementPatches_:function(t,n,r,o){r.push({op:e,path:[],value:n===Ze?void 0:n}),o.push({op:e,path:[],value:t})}},xt[i="Patches"]||(xt[i]=a)}st(It,(e,t)=>{Lt[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Lt.deleteProperty=function(e,t){return Lt.set.call(this,e,t,void 0)},Lt.set=function(e,t,n){return It.set.call(this,e[0],t,n,e[0])};var Ut=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,e=>t.call(this,e,...o))}}let r;if("function"!=typeof t&&nt(6),void 0!==n&&"function"!=typeof n&&nt(7),it(e)){const o=At(this),i=Ft(e,void 0);let a=!0;try{r=t(i),a=!1}finally{a?Ct(o):Et(o)}return _t(o,n),jt(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===Ze&&(r=void 0),this.autoFreeze_&&bt(r,!0),n){const t=[],o=[];kt("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}nt(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){var t;it(e)||nt(8),ot(e)&&(ot(t=e)||nt(10),e=Bt(t));const n=At(this),r=Ft(e,void 0);return r[tt].isManual_=!0,Et(n),r}finishDraft(e,t){const n=e&&e[tt];n&&n.isManual_||nt(9);const{scope_:r}=n;return _t(r,t),jt(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=kt("Patches").applyPatches_;return ot(e)?r(e,t):this.produce(e,e=>r(e,t))}},Wt=Ut.produce,Vt=Ut.produceWithPatches.bind(Ut),Qt=(Ut.setAutoFreeze.bind(Ut),Ut.setUseStrictShallowCopy.bind(Ut),Ut.applyPatches.bind(Ut));Ut.createDraft.bind(Ut),Ut.finishDraft.bind(Ut);var Ht="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?$e:$e.apply(null,arguments)},Kt=("undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__,e=>e&&"function"==typeof e.match);function $t(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(Tn(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>Ye(t)&&t.type===e,n}var Yt=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function Gt(e){return it(e)?Wt(e,()=>{}):e}function Xt(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(Tn(10));const r=n.insert(t,e);return e.set(t,r),r}var Jt="RTK_autoBatch",Zt=()=>e=>({payload:e,meta:{[Jt]:!0}}),en=e=>t=>{setTimeout(t,e)},tn="undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:en(10);function nn(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(Tn(28));if(r in t)throw new Error(Tn(29));return t[r]=n,o},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}var rn=(e,t)=>Kt(e)?e.match(t):e(t);function on(...e){return t=>e.some(e=>rn(e,t))}function an(...e){return t=>e.every(e=>rn(e,t))}function ln(e,t){if(!e||!e.meta)return!1;const n="string"==typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function sn(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function cn(...e){return 0===e.length?e=>ln(e,["pending"]):sn(e)?on(...e.map(e=>e.pending)):cn()(e[0])}function un(...e){return 0===e.length?e=>ln(e,["rejected"]):sn(e)?on(...e.map(e=>e.rejected)):un()(e[0])}function dn(...e){return 0===e.length||sn(e)?an(un(...e),e=>e&&e.meta&&e.meta.rejectedWithValue):dn()(e[0])}function fn(...e){return 0===e.length?e=>ln(e,["fulfilled"]):sn(e)?on(...e.map(e=>e.fulfilled)):fn()(e[0])}function pn(...e){return 0===e.length?e=>ln(e,["pending","fulfilled","rejected"]):sn(e)?on(...e.flatMap(e=>[e.pending,e.rejected,e.fulfilled])):pn()(e[0])}var hn=(e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},mn=["name","message","stack","code"],yn=class{constructor(e,t){this.payload=e,this.meta=t}_type},bn=class{constructor(e,t){this.payload=e,this.meta=t}_type},gn=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of mn)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},vn=(()=>{function e(e,t,n){const r=$t(e+"/fulfilled",(e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}})),o=$t(e+"/pending",(e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}})),i=$t(e+"/rejected",(e,t,r,o,i)=>({payload:o,error:(n&&n.serializeError||gn)(e||"Rejected"),meta:{...i||{},arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===e?.name,condition:"ConditionError"===e?.name}}));return Object.assign(function(e){return(a,l,s)=>{const c=n?.idGenerator?n.idGenerator(e):hn(),u=new AbortController;let d,f;function p(e){f=e,u.abort()}const h=async function(){let h;try{let i=n?.condition?.(e,{getState:l,extra:s});if(null!==(m=i)&&"object"==typeof m&&"function"==typeof m.then&&(i=await i),!1===i||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const y=new Promise((e,t)=>{d=()=>{t({name:"AbortError",message:f||"Aborted"})},u.signal.addEventListener("abort",d)});a(o(c,e,n?.getPendingMeta?.({requestId:c,arg:e},{getState:l,extra:s}))),h=await Promise.race([y,Promise.resolve(t(e,{dispatch:a,getState:l,extra:s,requestId:c,signal:u.signal,abort:p,rejectWithValue:(e,t)=>new yn(e,t),fulfillWithValue:(e,t)=>new bn(e,t)})).then(t=>{if(t instanceof yn)throw t;return t instanceof bn?r(t.payload,c,e,t.meta):r(t,c,e)})])}catch(t){h=t instanceof yn?i(null,c,e,t.payload,t.meta):i(t,c,e)}finally{d&&u.signal.removeEventListener("abort",d)}var m;return n&&!n.dispatchConditionRejection&&i.match(h)&&h.meta.condition||a(h),h}();return Object.assign(h,{abort:p,requestId:c,arg:e,unwrap:()=>h.then(wn)})}},{pending:o,rejected:i,fulfilled:r,settled:on(i,r),typePrefix:e})}return e.withTypes=()=>e,e})();function wn(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var xn=Symbol.for("rtk-slice-createasyncthunk");function kn(e,t){return`${e}/${t}`}function Sn({creators:e}={}){const t=e?.asyncThunk?.[xn];return function(e){const{name:n,reducerPath:r=n}=e;if(!n)throw new Error(Tn(11));const o=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},i=Object.keys(o),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(Tn(12));if(n in a.sliceCaseReducersByType)throw new Error(Tn(13));return a.sliceCaseReducersByType[n]=t,l},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),l),exposeAction:(e,t)=>(a.actionCreators[e]=t,l),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,l)};function s(){const[t={},n=[],r]="function"==typeof e.extraReducers?nn(e.extraReducers):[e.extraReducers],o={...t,...a.sliceCaseReducersByType};return function(e){let t,[i,l,s]=nn(e=>{for(let t in o)e.addCase(t,o[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)});if("function"==typeof e)t=()=>Gt(e());else{const n=Gt(e);t=()=>n}function c(e=t(),n){let r=[i[n.type],...l.filter(({matcher:e})=>e(n)).map(({reducer:e})=>e)];return 0===r.filter(e=>!!e).length&&(r=[s]),r.reduce((e,t)=>{if(t){if(ot(e)){const r=t(e,n);return void 0===r?e:r}if(it(e))return Wt(e,e=>t(e,n));{const r=t(e,n);if(void 0===r){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}}return e},e)}return c.getInitialState=t,c}(e.initialState)}i.forEach(r=>{const i=o[r],a={reducerName:r,type:kn(n,r),createNotation:"function"==typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(i)?function({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(r))throw new Error(Tn(17));i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?$t(e,a):$t(e))}(a,i,l):function({type:e,reducerName:t},n,r,o){if(!o)throw new Error(Tn(18));const{payloadCreator:i,fulfilled:a,pending:l,rejected:s,settled:c,options:u}=n,d=o(e,i,u);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a),l&&r.addCase(d.pending,l),s&&r.addCase(d.rejected,s),c&&r.addMatcher(d.settled,c),r.exposeCaseReducer(t,{fulfilled:a||En,pending:l||En,rejected:s||En,settled:c||En})}(a,i,l,t)});const c=e=>e,u=new Map;let d;function f(e,t){return d||(d=s()),d(e,t)}function p(){return d||(d=s()),d.getInitialState()}function h(t,n=!1){function r(e){let r=e[t];return void 0===r&&n&&(r=p()),r}function o(t=c){const r=Xt(u,n,{insert:()=>new WeakMap});return Xt(r,t,{insert:()=>{const r={};for(const[o,i]of Object.entries(e.selectors??{}))r[o]=_n(i,t,p,n);return r}})}return{reducerPath:t,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}const m={name:n,reducer:f,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:p,...h(r),injectInto(e,{reducerPath:t,...n}={}){const o=t??r;return e.inject({reducerPath:o,reducer:f},n),{...m,...h(o,!0)}}};return m}}function _n(e,t,n,r){function o(o,...i){let a=t(o);return void 0===a&&r&&(a=n()),e(a,...i)}return o.unwrapped=e,o}var Cn=Sn();function En(){}var{assign:An}=Object;function Tn(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}Symbol.for("rtk-state-proxy-original");var jn=e=>Array.isArray(e)?e:[e];Symbol(),Object.getPrototypeOf({});var Nn="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function On(){return{s:0,v:void 0,o:null,p:null}}function Pn(e,t={}){let n={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:r}=t;let o,i=0;function a(){let t=n;const{length:a}=arguments;for(let e=0,n=a;e<n;e++){const n=arguments[e];if("function"==typeof n||"object"==typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t=On(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t=On(),e.set(n,t)):t=r}}const l=t;let s;if(1===t.s)s=t.v;else if(s=e.apply(null,arguments),i++,r){const e=o?.deref?.()??o;null!=e&&r(e,s)&&(s=e,0!==i&&i--),o="object"==typeof s&&null!==s||"function"==typeof s?new Nn(s):s}return l.s=1,l.v=s,s}return a.clearCache=()=>{n={s:0,v:void 0,o:null,p:null},a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function In(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,o=0,i={},a=e.pop();"object"==typeof a&&(i=a,a=e.pop()),function(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const l={...n,...i},{memoize:s,memoizeOptions:c=[],argsMemoize:u=Pn,argsMemoizeOptions:d=[],devModeChecks:f={}}=l,p=jn(c),h=jn(d),m=function(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){const n=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}(e),y=s(function(){return r++,a.apply(null,arguments)},...p),b=u(function(){o++;const e=function(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}(m,arguments);return t=y.apply(null,e),t},...h);return Object.assign(b,{resultFunc:a,memoizedResultFunc:y,dependencies:m,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:s,argsMemoize:u})};return Object.assign(r,{withTypes:()=>r}),r}var Ln=In(Pn),zn=Object.assign((e,t=Ln)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map(t=>e[t]),(...e)=>e.reduce((e,t,r)=>(e[n[r]]=t,e),{}))},{withTypes:()=>zn}),Mn=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(Mn||{}),Rn=Qe;function Dn(e,t){if(e===t||!(Rn(e)&&Rn(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let o=n.length===r.length;const i=Array.isArray(t)?[]:{};for(const r of n)i[r]=Dn(e[r],t[r]),o&&(o=e[r]===i[r]);return o?e:i}function Fn(e){let t=0;for(const n in e)t++;return t}var Bn=e=>[].concat(...e);function qn(e){return null!=e}var Un=(...e)=>fetch(...e),Wn=e=>e.status>=200&&e.status<=299,Vn=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function Qn(e){if(!Qe(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}var Hn=class{constructor(e,t=void 0){this.value=e,this.meta=t}},Kn=$t("__rtkq/focused"),$n=$t("__rtkq/unfocused"),Yn=$t("__rtkq/online"),Gn=$t("__rtkq/offline");function Xn(e){return"query"===e.type}function Jn(e,t,n,r,o,i){return"function"==typeof e?e(t,n,r,o).map(Zn).map(i):Array.isArray(e)?e.map(Zn).map(i):[]}function Zn(e){return"string"==typeof e?{type:e}:e}var er=Symbol("forceQueryFn"),tr=e=>"function"==typeof e[er];function nr(e){return e}function rr(e,t,n,r){return Jn(n[e.meta.arg.endpointName][t],fn(e)?e.payload:void 0,dn(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function or(e,t,n){const r=e[t];r&&n(r)}function ir(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function ar(e,t,n){const r=e[ir(t)];r&&n(r)}var lr={};function sr({reducerPath:e,queryThunk:t,mutationThunk:n,serializeQueryArgs:r,context:{endpointDefinitions:o,apiUid:i,extractRehydrationInfo:a,hasRehydrationInfo:l},assertTagType:s,config:c}){const u=$t(`${e}/resetApiState`);function d(e,t,n,r){e[t.queryCacheKey]??={status:"uninitialized",endpointName:t.endpointName},or(e,t.queryCacheKey,e=>{e.status="pending",e.requestId=n&&e.requestId?e.requestId:r.requestId,void 0!==t.originalArgs&&(e.originalArgs=t.originalArgs),e.startedTimeStamp=r.startedTimeStamp})}function f(e,t,n){or(e,t.arg.queryCacheKey,e=>{if(e.requestId!==t.requestId&&!tr(t.arg))return;const{merge:r}=o[t.arg.endpointName];if(e.status="fulfilled",r)if(void 0!==e.data){const{fulfilledTimeStamp:o,arg:i,baseQueryMeta:a,requestId:l}=t;let s=Wt(e.data,e=>r(e,n,{arg:i.originalArgs,baseQueryMeta:a,fulfilledTimeStamp:o,requestId:l}));e.data=s}else e.data=n;else e.data=o[t.arg.endpointName].structuralSharing??!0?Dn(ot(e.data)?(ot(i=e.data)||nt(15),i[tt].base_):e.data,n):n;var i;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp})}const p=Cn({name:`${e}/queries`,initialState:lr,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Zt()},cacheEntriesUpserted:{reducer(e,t){for(const n of t.payload){const{queryDescription:r,value:o}=n;d(e,r,!0,{arg:r,requestId:t.meta.requestId,startedTimeStamp:t.meta.timestamp}),f(e,{arg:r,requestId:t.meta.requestId,fulfilledTimeStamp:t.meta.timestamp,baseQueryMeta:{}},o)}},prepare:e=>({payload:e.map(e=>{const{endpointName:t,arg:n,value:i}=e,a=o[t];return{queryDescription:{type:"query",endpointName:t,originalArgs:e.arg,queryCacheKey:r({queryArgs:n,endpointDefinition:a,endpointName:t})},value:i}}),meta:{[Jt]:!0,requestId:hn(),timestamp:Date.now()}})},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){or(e,t,e=>{e.data=Qt(e.data,n.concat())})},prepare:Zt()}},extraReducers(e){e.addCase(t.pending,(e,{meta:t,meta:{arg:n}})=>{d(e,n,tr(n),t)}).addCase(t.fulfilled,(e,{meta:t,payload:n})=>{f(e,t,n)}).addCase(t.rejected,(e,{meta:{condition:t,arg:n,requestId:r},error:o,payload:i})=>{or(e,n.queryCacheKey,e=>{if(t);else{if(e.requestId!==r)return;e.status="rejected",e.error=i??o}})}).addMatcher(l,(e,t)=>{const{queries:n}=a(t);for(const[t,r]of Object.entries(n))"fulfilled"!==r?.status&&"rejected"!==r?.status||(e[t]=r)})}}),h=Cn({name:`${e}/mutations`,initialState:lr,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=ir(t);n in e&&delete e[n]},prepare:Zt()}},extraReducers(e){e.addCase(n.pending,(e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:o}})=>{r.track&&(e[ir(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:o})}).addCase(n.fulfilled,(e,{payload:t,meta:n})=>{n.arg.track&&ar(e,n,e=>{e.requestId===n.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)})}).addCase(n.rejected,(e,{payload:t,error:n,meta:r})=>{r.arg.track&&ar(e,r,e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)})}).addMatcher(l,(e,t)=>{const{mutations:n}=a(t);for(const[t,r]of Object.entries(n))"fulfilled"!==r?.status&&"rejected"!==r?.status||t===r?.requestId||(e[t]=r)})}}),m=Cn({name:`${e}/invalidation`,initialState:lr,reducers:{updateProvidedBy:{reducer(e,t){const{queryCacheKey:n,providedTags:r}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(n);-1!==t&&e.splice(t,1)}for(const{type:t,id:o}of r){const r=(e[t]??={})[o||"__internal_without_id"]??=[];r.includes(n)||r.push(n)}},prepare:Zt()}},extraReducers(e){e.addCase(p.actions.removeQueryResult,(e,{payload:{queryCacheKey:t}})=>{for(const n of Object.values(e))for(const e of Object.values(n)){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}).addMatcher(l,(e,t)=>{const{provided:n}=a(t);for(const[t,r]of Object.entries(n))for(const[n,o]of Object.entries(r)){const r=(e[t]??={})[n||"__internal_without_id"]??=[];for(const e of o)r.includes(e)||r.push(e)}}).addMatcher(on(fn(t),dn(t)),(e,t)=>{const n=rr(t,"providesTags",o,s),{queryCacheKey:r}=t.meta.arg;m.caseReducers.updateProvidedBy(e,m.actions.updateProvidedBy({queryCacheKey:r,providedTags:n}))})}}),y=Cn({name:`${e}/subscriptions`,initialState:lr,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),b=Cn({name:`${e}/internalSubscriptions`,initialState:lr,reducers:{subscriptionsUpdated:{reducer:(e,t)=>Qt(e,t.payload),prepare:Zt()}}}),g=Cn({name:`${e}/config`,initialState:{online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine,focused:"undefined"==typeof document||"hidden"!==document.visibilityState,middlewareRegistered:!1,...c},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&i===t||"conflict"}},extraReducers:e=>{e.addCase(Yn,e=>{e.online=!0}).addCase(Gn,e=>{e.online=!1}).addCase(Kn,e=>{e.focused=!0}).addCase($n,e=>{e.focused=!1}).addMatcher(l,e=>({...e}))}}),v=Ke({queries:p.reducer,mutations:h.reducer,provided:m.reducer,subscriptions:b.reducer,config:g.reducer});return{reducer:(e,t)=>v(u.match(t)?void 0:e,t),actions:{...g.actions,...p.actions,...y.actions,...b.actions,...h.actions,...m.actions,resetApiState:u}}}var cr=Symbol.for("RTKQ/skipToken"),ur={status:"uninitialized"},dr=Wt(ur,()=>{}),fr=Wt(ur,()=>{}),pr=WeakMap?new WeakMap:void 0,hr=({endpointName:e,queryArgs:t})=>{let n="";const r=pr?.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,(e,t)=>t=Qe(t="bigint"==typeof t?{$bigint:t.toString()}:t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t);Qe(t)&&pr?.set(t,e),n=e}return`${e}(${n})`};function mr(...e){return function(t){const n=Pn(e=>t.extractRehydrationInfo?.(e,{reducerPath:t.reducerPath??"api"})),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=hr;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:hr({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},o={endpointDefinitions:{},batch(e){e()},apiUid:hn(),extractRehydrationInfo:n,hasRehydrationInfo:Pn(e=>null!=n(e))},i={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in o.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(Tn(39))}else{o.endpointDefinitions[n]=r;for(const e of a)e.injectEndpoint(n,r)}return i},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const t of e)r.tagTypes.includes(t)||r.tagTypes.push(t);if(t)for(const[e,n]of Object.entries(t))"function"==typeof n?n(o.endpointDefinitions[e]):Object.assign(o.endpointDefinitions[e]||{},n);return i}},a=e.map(e=>e.init(i,r,o));return i.injectEndpoints({endpoints:t.endpoints})}}function yr(e,...t){return Object.assign(e,...t)}var br=({reducerPath:e,api:t,queryThunk:n,context:r,internalState:o})=>{const{removeQueryResult:i,unsubscribeQueryResult:a,cacheEntriesUpserted:l}=t.internalActions,s=on(a.match,n.fulfilled,n.rejected,l.match);function c(e){const t=o.currentSubscriptions[e];return!!t&&!function(e){for(const t in e)return!1;return!0}(t)}const u={};function d(e,t,n,o){const a=r.endpointDefinitions[t],l=a?.keepUnusedDataFor??o.keepUnusedDataFor;if(l===1/0)return;const s=Math.max(0,Math.min(l,2147482.647));if(!c(e)){const t=u[e];t&&clearTimeout(t),u[e]=setTimeout(()=>{c(e)||n.dispatch(i({queryCacheKey:e})),delete u[e]},1e3*s)}}return(n,o,i)=>{if(s(n)){const t=o.getState()[e];let r;if(l.match(n))r=n.payload.map(e=>e.queryDescription.queryCacheKey);else{const{queryCacheKey:e}=a.match(n)?n.payload:n.meta.arg;r=[e]}for(const e of r)d(e,t.queries[e]?.endpointName,o,t.config)}if(t.util.resetApiState.match(n))for(const[e,t]of Object.entries(u))t&&clearTimeout(t),delete u[e];if(r.hasRehydrationInfo(n)){const t=o.getState()[e],{queries:i}=r.extractRehydrationInfo(n);for(const[e,n]of Object.entries(i))d(e,n?.endpointName,o,t.config)}}},gr=new Error("Promise never resolved before cacheEntryRemoved."),vr=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:o,internalState:i})=>{const a=pn(r),l=pn(o),s=fn(r,o),c={};function u(e,t,n){const r=c[e];r?.valueResolved&&(r.valueResolved({data:t,meta:n}),delete r.valueResolved)}function d(e){const t=c[e];t&&(delete c[e],t.cacheEntryRemoved())}function f(t,r,o,i,a){const l=n.endpointDefinitions[t],s=l?.onCacheEntryAdded;if(!s)return;const u={},d=new Promise(e=>{u.cacheEntryRemoved=e}),f=Promise.race([new Promise(e=>{u.valueResolved=e}),d.then(()=>{throw gr})]);f.catch(()=>{}),c[o]=u;const p=e.endpoints[t].select("query"===l.type?r:o),h=i.dispatch((e,t,n)=>n),m={...i,getCacheEntry:()=>p(i.getState()),requestId:a,extra:h,updateCachedData:"query"===l.type?n=>i.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:f,cacheEntryRemoved:d},y=s(r,m);Promise.resolve(y).catch(e=>{if(e!==gr)throw e})}return(n,i,p)=>{const h=function(t){return a(t)?t.meta.arg.queryCacheKey:l(t)?t.meta.arg.fixedCacheKey??t.meta.requestId:e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?ir(t.payload):""}(n);function m(e,n,r,o){const a=p[t].queries[n],l=i.getState()[t].queries[n];!a&&l&&f(e,o,n,i,r)}if(r.pending.match(n))m(n.meta.arg.endpointName,h,n.meta.requestId,n.meta.arg.originalArgs);else if(e.internalActions.cacheEntriesUpserted.match(n))for(const{queryDescription:e,value:t}of n.payload){const{endpointName:r,originalArgs:o,queryCacheKey:i}=e;m(r,i,n.meta.requestId,o),u(i,t,{})}else if(o.pending.match(n))i.getState()[t].mutations[h]&&f(n.meta.arg.endpointName,n.meta.arg.originalArgs,h,i,n.meta.requestId);else if(s(n))u(h,n.payload,n.meta.baseQueryMeta);else if(e.internalActions.removeQueryResult.match(n)||e.internalActions.removeMutationResult.match(n))d(h);else if(e.util.resetApiState.match(n))for(const e of Object.keys(c))d(e)}},wr=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},xr=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:o,api:i,assertTagType:a,refetchQuery:l,internalState:s})=>{const{removeQueryResult:c}=i.internalActions,u=on(fn(r),dn(r)),d=on(fn(r,o),un(r,o));let f=[];function p(n,r){const o=r.getState(),a=o[e];if(f.push(...n),"delayed"===a.config.invalidationBehavior&&function(e){for(const t in e.queries)if("pending"===e.queries[t]?.status)return!0;for(const t in e.mutations)if("pending"===e.mutations[t]?.status)return!0;return!1}(a))return;const u=f;if(f=[],0===u.length)return;const d=i.util.selectInvalidatedBy(o,u);t.batch(()=>{const e=Array.from(d.values());for(const{queryCacheKey:t}of e){const e=a.queries[t],n=s.currentSubscriptions[t]??{};e&&(0===Fn(n)?r.dispatch(c({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(l(e)))}})}return(e,t)=>{u(e)?p(rr(e,"invalidatesTags",n,a),t):d(e)?p([],t):i.util.invalidateTags.match(e)&&p(Jn(e.payload,void 0,void 0,void 0,void 0,a),t)}},kr=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:o})=>{const i={};function a({queryCacheKey:t},n){const l=n.getState()[e],s=l.queries[t],u=o.currentSubscriptions[t];if(!s||"uninitialized"===s.status)return;const{lowestPollingInterval:d,skipPollingIfUnfocused:f}=c(u);if(!Number.isFinite(d))return;const p=i[t];p?.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const h=Date.now()+d;i[t]={nextPollTimestamp:h,pollingInterval:d,timeout:setTimeout(()=>{!l.config.focused&&f||n.dispatch(r(s)),a({queryCacheKey:t},n)},d)}}function l({queryCacheKey:t},n){const r=n.getState()[e].queries[t],l=o.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:u}=c(l);if(!Number.isFinite(u))return void s(t);const d=i[t],f=Date.now()+u;(!d||f<d.nextPollTimestamp)&&a({queryCacheKey:t},n)}function s(e){const t=i[e];t?.timeout&&clearTimeout(t.timeout),delete i[e]}function c(e={}){let t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&l(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&l(e.meta.arg,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&a(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(i))s(e)}()}},Sr=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const o=cn(n,r),i=un(n,r),a=fn(n,r),l={};return(n,r)=>{if(o(n)){const{requestId:o,arg:{endpointName:i,originalArgs:a}}=n.meta,s=t.endpointDefinitions[i],c=s?.onQueryStarted;if(c){const t={},n=new Promise((e,n)=>{t.resolve=e,t.reject=n});n.catch(()=>{}),l[o]=t;const u=e.endpoints[i].select("query"===s.type?a:o),d=r.dispatch((e,t,n)=>n),f={...r,getCacheEntry:()=>u(r.getState()),requestId:o,extra:d,updateCachedData:"query"===s.type?t=>r.dispatch(e.util.updateQueryData(i,a,t)):void 0,queryFulfilled:n};c(a,f)}}else if(a(n)){const{requestId:e,baseQueryMeta:t}=n.meta;l[e]?.resolve({data:n.payload,meta:t}),delete l[e]}else if(i(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;l[e]?.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete l[e]}}};function _r(e){const{reducerPath:t,queryThunk:n,api:r,context:o}=e,{apiUid:i}=o,a={invalidateTags:$t(`${t}/invalidateTags`)},l=e=>e.type.startsWith(`${t}/`),s=[wr,br,xr,kr,vr,Sr];return{middleware:n=>{let a=!1;const u={...e,internalState:{currentSubscriptions:{}},refetchQuery:c,isThisApiSliceAction:l},d=s.map(e=>e(u)),f=(({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let o=null,i=null;const{updateSubscriptionOptions:a,unsubscribeQueryResult:l}=e.internalActions,s=()=>n.currentSubscriptions,c={getSubscriptions:s,getSubscriptionCount:e=>Fn(s()[e]??{}),isRequestSubscribed:(e,t)=>{const n=s();return!!n?.[e]?.[t]}};return(s,u)=>{if(o||(o=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(s))return o=n.currentSubscriptions={},i=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(s))return[!1,c];const d=((n,r)=>{if(a.match(r)){const{queryCacheKey:e,requestId:t,options:o}=r.payload;return n?.[e]?.[t]&&(n[e][t]=o),!0}if(l.match(r)){const{queryCacheKey:e,requestId:t}=r.payload;return n[e]&&delete n[e][t],!0}if(e.internalActions.removeQueryResult.match(r))return delete n[r.payload.queryCacheKey],!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,o=n[e.queryCacheKey]??={};return o[`${t}_running`]={},e.subscribe&&(o[t]=e.subscriptionOptions??o[t]??{}),!0}let o=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;o||=!!e[t],delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:i}}=r;if(e&&t.subscribe){const e=n[t.queryCacheKey]??={};e[i]=t.subscriptionOptions??e[i]??{},o=!0}}return o})(n.currentSubscriptions,s);let f=!0;if(d){i||(i=setTimeout(()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=Vt(o,()=>t);u.next(e.internalActions.subscriptionsUpdated(r)),o=t,i=null},500));const a="string"==typeof s.type&&!!s.type.startsWith(r),l=t.rejected.match(s)&&s.meta.condition&&!!s.meta.arg.subscribe;f=!a&&!l}return[f,!1]}})(u),p=(({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:o})=>{const{removeQueryResult:i}=n.internalActions;function a(n,a){const l=n.getState()[e],s=l.queries,c=o.currentSubscriptions;t.batch(()=>{for(const e of Object.keys(c)){const t=s[e],o=c[e];o&&t&&(Object.values(o).some(e=>!0===e[a])||Object.values(o).every(e=>void 0===e[a])&&l.config[a])&&(0===Fn(o)?n.dispatch(i({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t)))}})}return(e,t)=>{Kn.match(e)&&a(t,"refetchOnFocus"),Yn.match(e)&&a(t,"refetchOnReconnect")}})(u);return e=>s=>{if(!Ye(s))return e(s);a||(a=!0,n.dispatch(r.internalActions.middlewareRegistered(i)));const c={...n,next:e},u=n.getState(),[h,m]=f(s,c,u);let y;if(y=h?e(s):m,n.getState()[t]&&(p(s,c,u),l(s)||o.hasRehydrationInfo(s)))for(const e of d)e(s,c,u);return y}},actions:a};function c(t){return e.api.endpoints[t.endpointName].initiate(t.originalArgs,{subscribe:!1,forceRefetch:!0})}}var Cr=Symbol(),Er=({createSelector:e=Ln}={})=>({name:Cr,init(t,{baseQuery:n,tagTypes:r,reducerPath:o,serializeQueryArgs:i,keepUnusedDataFor:a,refetchOnMountOrArgChange:l,refetchOnFocus:s,refetchOnReconnect:c,invalidationBehavior:u},d){qt();const f=e=>e;Object.assign(t,{reducerPath:o,endpoints:{},internalActions:{onOnline:Yn,onOffline:Gn,onFocus:Kn,onFocusLost:$n},util:{}});const{queryThunk:p,mutationThunk:h,patchQueryData:m,updateQueryData:y,upsertQueryData:b,prefetch:g,buildMatchThunkActions:v}=function({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:o,assertTagType:i}){const a=async(e,{signal:r,abort:o,rejectWithValue:i,fulfillWithValue:a,dispatch:s,getState:c,extra:u})=>{const d=n[e.endpointName];try{let n,i=nr;const f={signal:r,abort:o,dispatch:s,getState:c,extra:u,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?l(e,c()):void 0,queryCacheKey:"query"===e.type?e.queryCacheKey:void 0},p="query"===e.type?e[er]:void 0;if(p?n=p():d.query?(n=await t(d.query(e.originalArgs),f,d.extraOptions),d.transformResponse&&(i=d.transformResponse)):n=await d.queryFn(e.originalArgs,f,d.extraOptions,e=>t(e,f,d.extraOptions)),n.error)throw new Hn(n.error,n.meta);return a(await i(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[Jt]:!0})}catch(t){let n=t;if(n instanceof Hn){let t=nr;d.query&&d.transformErrorResponse&&(t=d.transformErrorResponse);try{return i(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[Jt]:!0})}catch(e){n=e}}throw console.error(n),n}};function l(t,n){const r=n[e]?.queries?.[t.queryCacheKey],o=n[e]?.config.refetchOnMountOrArgChange,i=r?.fulfilledTimeStamp,a=t.forceRefetch??(t.subscribe&&o);return!!a&&(!0===a||(Number(new Date)-Number(i))/1e3>=a)}const s=vn(`${e}/executeQuery`,a,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[Jt]:!0}),condition(t,{getState:r}){const o=r(),i=o[e]?.queries?.[t.queryCacheKey],a=i?.fulfilledTimeStamp,s=t.originalArgs,c=i?.originalArgs,u=n[t.endpointName];return!(!tr(t)&&("pending"===i?.status||!l(t,o)&&(!Xn(u)||!u?.forceRefetch?.({currentArg:s,previousArg:c,endpointState:i,state:o}))&&a))},dispatchConditionRejection:!0});function c(e){return t=>t?.meta?.arg?.endpointName===e}return{queryThunk:s,mutationThunk:vn(`${e}/executeMutation`,a,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[Jt]:!0})}),prefetch:(e,t,n)=>(r,i)=>{const a=(e=>"force"in e)(n)&&n.force,l=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,s=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return o.endpoints[e].initiate(t,r)},c=o.endpoints[e].select(t)(i());if(a)r(s());else if(l){const e=c?.fulfilledTimeStamp;if(!e)return void r(s());(Number(new Date)-Number(new Date(e)))/1e3>=l&&r(s())}else r(s(!1))},updateQueryData:(e,t,n,r=!0)=>(i,a)=>{const l=o.endpoints[e].select(t)(a()),s={patches:[],inversePatches:[],undo:()=>i(o.util.patchQueryData(e,t,s.inversePatches,r))};if("uninitialized"===l.status)return s;let c;if("data"in l)if(it(l.data)){const[e,t,r]=Vt(l.data,n);s.patches.push(...t),s.inversePatches.push(...r),c=e}else c=n(l.data),s.patches.push({op:"replace",path:[],value:c}),s.inversePatches.push({op:"replace",path:[],value:l.data});return 0===s.patches.length||i(o.util.patchQueryData(e,t,s.patches,r)),s},upsertQueryData:(e,t,n)=>r=>r(o.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[er]:()=>({data:n})})),patchQueryData:(e,t,a,l)=>(s,c)=>{const u=n[e],d=r({queryArgs:t,endpointDefinition:u,endpointName:e});if(s(o.internalActions.queryResultPatched({queryCacheKey:d,patches:a})),!l)return;const f=o.endpoints[e].select(t)(c()),p=Jn(u.providesTags,f.data,void 0,t,{},i);s(o.internalActions.updateProvidedBy({queryCacheKey:d,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:an(cn(e),c(t)),matchFulfilled:an(fn(e),c(t)),matchRejected:an(un(e),c(t))}}}}({baseQuery:n,reducerPath:o,context:d,api:t,serializeQueryArgs:i,assertTagType:f}),{reducer:w,actions:x}=sr({context:d,queryThunk:p,mutationThunk:h,serializeQueryArgs:i,reducerPath:o,assertTagType:f,config:{refetchOnFocus:s,refetchOnReconnect:c,refetchOnMountOrArgChange:l,keepUnusedDataFor:a,reducerPath:o,invalidationBehavior:u}});yr(t.util,{patchQueryData:m,updateQueryData:y,upsertQueryData:b,prefetch:g,resetApiState:x.resetApiState,upsertQueryEntries:x.cacheEntriesUpserted}),yr(t.internalActions,x);const{middleware:k,actions:S}=_r({reducerPath:o,context:d,queryThunk:p,mutationThunk:h,api:t,assertTagType:f});yr(t.util,S),yr(t,{reducer:w,middleware:k});const{buildQuerySelector:_,buildMutationSelector:C,selectInvalidatedBy:E,selectCachedArgsForQuery:A}=function({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>dr,o=e=>fr;return{buildQuerySelector:function(t,o){return l=>{const s=e({queryArgs:l,endpointDefinition:o,endpointName:t});return n(l===cr?r:e=>a(e)?.queries?.[s]??dr,i)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?ir(e)??cr:e,n(t===cr?o:e=>a(e)?.mutations?.[t]??fr,i)}},selectInvalidatedBy:function(e,n){const r=e[t],o=new Set;for(const e of n.map(Zn)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:Bn(Object.values(t)))??[];for(const e of n)o.add(e)}return Bn(Array.from(o.values()).map(e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]}))},selectCachedArgsForQuery:function(e,n){return Object.values(e[t].queries).filter(e=>e?.endpointName===n&&"uninitialized"!==e.status).map(e=>e.originalArgs)}};function i(e){return{...e,...(t=e.status,{status:t,isUninitialized:"uninitialized"===t,isLoading:"pending"===t,isSuccess:"fulfilled"===t,isError:"rejected"===t})};var t}function a(e){return e[t]}}({serializeQueryArgs:i,reducerPath:o,createSelector:e});yr(t.util,{selectInvalidatedBy:E,selectCachedArgsForQuery:A});const{buildInitiateQuery:T,buildInitiateMutation:j,getRunningMutationThunk:N,getRunningMutationsThunk:O,getRunningQueriesThunk:P,getRunningQueryThunk:I}=function({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:o}){const i=new Map,a=new Map,{unsubscribeQueryResult:l,removeMutationResult:s,updateSubscriptionOptions:c}=r.internalActions;return{buildInitiateQuery:function(n,o){const a=(s,{subscribe:u=!0,forceRefetch:d,subscriptionOptions:f,[er]:p,...h}={})=>(m,y)=>{const b=e({queryArgs:s,endpointDefinition:o,endpointName:n}),g=t({...h,type:"query",subscribe:u,forceRefetch:d,subscriptionOptions:f,endpointName:n,originalArgs:s,queryCacheKey:b,[er]:p}),v=r.endpoints[n].select(s),w=m(g),x=v(y()),{requestId:k,abort:S}=w,_=x.requestId!==k,C=i.get(m)?.[b],E=()=>v(y()),A=Object.assign(p?w.then(E):_&&!C?Promise.resolve(x):Promise.all([C,w]).then(E),{arg:s,requestId:k,subscriptionOptions:f,queryCacheKey:b,abort:S,async unwrap(){const e=await A;if(e.isError)throw e.error;return e.data},refetch:()=>m(a(s,{subscribe:!1,forceRefetch:!0})),unsubscribe(){u&&m(l({queryCacheKey:b,requestId:k}))},updateSubscriptionOptions(e){A.subscriptionOptions=e,m(c({endpointName:n,requestId:k,queryCacheKey:b,options:e}))}});if(!C&&!_&&!p){const e=i.get(m)||{};e[b]=A,i.set(m,e),A.then(()=>{delete e[b],Fn(e)||i.delete(m)})}return A};return a},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:o}={})=>(i,l)=>{const c=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:o}),u=i(c),{requestId:d,abort:f,unwrap:p}=u,h=(m=e=>({error:e}),u.unwrap().then(e=>({data:e})).catch(m));var m;const y=Object.assign(h,{arg:u.arg,requestId:d,abort:f,unwrap:p,reset:()=>{i(s({requestId:d,fixedCacheKey:o}))}}),b=a.get(i)||{};return a.set(i,b),b[d]=y,y.then(()=>{delete b[d],Fn(b)||a.delete(i)}),o&&(b[o]=y,y.then(()=>{b[o]===y&&(delete b[o],Fn(b)||a.delete(i))})),y}},getRunningQueryThunk:function(t,n){return r=>{const a=o.endpointDefinitions[t],l=e({queryArgs:n,endpointDefinition:a,endpointName:t});return i.get(r)?.[l]}},getRunningMutationThunk:function(e,t){return e=>a.get(e)?.[t]},getRunningQueriesThunk:function(){return e=>Object.values(i.get(e)||{}).filter(qn)},getRunningMutationsThunk:function(){return e=>Object.values(a.get(e)||{}).filter(qn)}}}({queryThunk:p,mutationThunk:h,api:t,serializeQueryArgs:i,context:d});return yr(t.util,{getRunningMutationThunk:N,getRunningMutationsThunk:O,getRunningQueryThunk:I,getRunningQueriesThunk:P}),{name:Cr,injectEndpoint(e,n){const r=t;r.endpoints[e]??={},Xn(n)?yr(r.endpoints[e],{name:e,select:_(e,n),initiate:T(e,n)},v(p,e)):"mutation"===n.type&&yr(r.endpoints[e],{name:e,select:C(),initiate:j(e)},v(h,e))}}}});function Ar(e,...t){return Object.assign(e,...t)}function Tr(e){return e.replace(e[0],e[0].toUpperCase())}Er();var jr=WeakMap?new WeakMap:void 0,Nr=({endpointName:e,queryArgs:t})=>{let n="";const r=jr?.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,(e,t)=>t=Qe(t="bigint"==typeof t?{$bigint:t.toString()}:t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t);Qe(t)&&jr?.set(t,e),n=e}return`${e}(${n})`},Or=Symbol();function Pr(e,t,n,r){const o=(0,l().useMemo)(()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e}),[e,t,n,r]),i=(0,l().useRef)(o);return(0,l().useEffect)(()=>{i.current.serialized!==o.serialized&&(i.current=o)},[o]),i.current.serialized===o.serialized?i.current.queryArgs:e}function Ir(e){const t=(0,l().useRef)(e);return(0,l().useEffect)(()=>{B(t.current,e)||(t.current=e)},[e]),B(t.current,e)?t.current:e}var Lr=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),zr=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),Mr=(()=>Lr||zr?l().useLayoutEffect:l().useEffect)(),Rr=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:Mn.pending}:e,Dr=Symbol(),Fr=mr(Er(),(({batch:e=K,hooks:t={useDispatch:H,useSelector:I,useStore:W},createSelector:n=Ln,unstable__sideEffectsInRender:r=!1,...o}={})=>({name:Dr,init(o,{serializeQueryArgs:i},a){const s=o,{buildQueryHooks:c,buildMutationHook:u,usePrefetch:d}=function({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:o},unstable__sideEffectsInRender:i,createSelector:a},serializeQueryArgs:s,context:c}){const u=i?e=>e():l().useEffect;return{buildQueryHooks:function(i){const f=(t,{refetchOnReconnect:r,refetchOnFocus:o,refetchOnMountOrArgChange:a,skip:s=!1,pollingInterval:d=0,skipPollingIfUnfocused:f=!1}={})=>{const{initiate:p}=e.endpoints[i],h=n(),m=(0,l().useRef)(void 0);if(!m.current){const t=h(e.internalActions.internal_getRTKQSubscriptions());m.current=t}const y=Pr(s?cr:t,Nr,c.endpointDefinitions[i],i),b=Ir({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:d,skipPollingIfUnfocused:f}),g=(0,l().useRef)(!1),v=(0,l().useRef)(void 0);let{queryCacheKey:w,requestId:x}=v.current||{},k=!1;w&&x&&(k=m.current.isRequestSubscribed(w,x));const S=!k&&g.current;return u(()=>{g.current=k}),u(()=>{S&&(v.current=void 0)},[S]),u(()=>{const e=v.current;if(y===cr)return e?.unsubscribe(),void(v.current=void 0);const t=v.current?.subscriptionOptions;if(e&&e.arg===y)b!==t&&e.updateSubscriptionOptions(b);else{e?.unsubscribe();const t=h(p(y,{subscriptionOptions:b,forceRefetch:a}));v.current=t}},[h,p,a,y,b,S]),(0,l().useEffect)(()=>()=>{v.current?.unsubscribe(),v.current=void 0},[]),(0,l().useMemo)(()=>({refetch:()=>{if(!v.current)throw new Error(Tn(38));return v.current?.refetch()}}),[])},p=({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:a=0,skipPollingIfUnfocused:s=!1}={})=>{const{initiate:c}=e.endpoints[i],d=n(),[f,p]=(0,l().useState)(Or),h=(0,l().useRef)(void 0),m=Ir({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:a,skipPollingIfUnfocused:s});u(()=>{const e=h.current?.subscriptionOptions;m!==e&&h.current?.updateSubscriptionOptions(m)},[m]);const y=(0,l().useRef)(m);u(()=>{y.current=m},[m]);const b=(0,l().useCallback)(function(e,n=!1){let r;return t(()=>{h.current?.unsubscribe(),h.current=r=d(c(e,{subscriptionOptions:y.current,forceRefetch:!n})),p(e)}),r},[d,c]);return(0,l().useEffect)(()=>()=>{h?.current?.unsubscribe()},[]),(0,l().useEffect)(()=>{f===Or||h.current||b(f,!0)},[f,b]),(0,l().useMemo)(()=>[b,f],[b,f])},h=(t,{skip:n=!1,selectFromResult:u}={})=>{const{select:f}=e.endpoints[i],p=Pr(n?cr:t,s,c.endpointDefinitions[i],i),h=(0,l().useRef)(void 0),m=(0,l().useMemo)(()=>a([f(p),(e,t)=>t,e=>p],d,{memoizeOptions:{resultEqualityCheck:B}}),[f,p]),y=(0,l().useMemo)(()=>u?a([m],u,{devModeChecks:{identityFunctionCheck:"never"}}):m,[m,u]),b=r(e=>y(e,h.current),B),g=o(),v=m(g.getState(),h.current);return Mr(()=>{h.current=v},[v]),b};return{useQueryState:h,useQuerySubscription:f,useLazyQuerySubscription:p,useLazyQuery(e){const[t,n]=p(e),r=h(n,{...e,skip:n===Or}),o=(0,l().useMemo)(()=>({lastArg:n}),[n]);return(0,l().useMemo)(()=>[t,r,o],[t,r,o])},useQuery(e,t){const n=f(e,t),r=h(e,{selectFromResult:e===cr||t?.skip?void 0:Rr,...t}),{data:o,status:i,isLoading:a,isSuccess:s,isError:c,error:u}=r;return(0,l().useDebugValue)({data:o,status:i,isLoading:a,isSuccess:s,isError:c,error:u}),(0,l().useMemo)(()=>({...r,...n}),[r,n])}}},buildMutationHook:function(o){return({selectFromResult:i,fixedCacheKey:s}={})=>{const{select:c,initiate:u}=e.endpoints[o],d=n(),[f,p]=(0,l().useState)();(0,l().useEffect)(()=>()=>{f?.arg.fixedCacheKey||f?.reset()},[f]);const h=(0,l().useCallback)(function(e){const t=d(u(e,{fixedCacheKey:s}));return p(t),t},[d,u,s]),{requestId:m}=f||{},y=(0,l().useMemo)(()=>c({fixedCacheKey:s,requestId:f?.requestId}),[s,f,c]),b=(0,l().useMemo)(()=>i?a([y],i):y,[i,y]),g=r(b,B),v=null==s?f?.arg.originalArgs:void 0,w=(0,l().useCallback)(()=>{t(()=>{f&&p(void 0),s&&d(e.internalActions.removeMutationResult({requestId:m,fixedCacheKey:s}))})},[d,s,f,m]),{endpointName:x,data:k,status:S,isLoading:_,isSuccess:C,isError:E,error:A}=g;(0,l().useDebugValue)({endpointName:x,data:k,status:S,isLoading:_,isSuccess:C,isError:E,error:A});const T=(0,l().useMemo)(()=>({...g,originalArgs:v,reset:w}),[g,v,w]);return(0,l().useMemo)(()=>[h,T],[h,T])}},usePrefetch:function(t,r){const o=n(),i=Ir(r);return(0,l().useCallback)((n,r)=>o(e.util.prefetch(t,n,{...i,...r})),[t,o,i])}};function d(e,t,n){if(t?.endpointName&&e.isUninitialized){const{endpointName:e}=t,r=c.endpointDefinitions[e];s({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===s({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:t?.data;void 0===r&&(r=e.data);const o=void 0!==r,i=e.isLoading,a=(!t||t.isLoading||t.isUninitialized)&&!o&&i,l=e.isSuccess||i&&o;return{...e,data:r,currentData:e.data,isFetching:i,isLoading:a,isSuccess:l}}}({api:o,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:i,context:a});return Ar(s,{usePrefetch:d}),Ar(a,{batch:e}),{injectEndpoint(e,t){if("query"===t.type){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:a}=c(e);Ar(s.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:a}),o[`use${Tr(e)}Query`]=t,o[`useLazy${Tr(e)}Query`]=n}else if("mutation"===t.type){const t=u(e);Ar(s.endpoints[e],{useMutation:t}),o[`use${Tr(e)}Mutation`]=t}}}}}))());function Br(e){return Br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Br(e)}function qr(){qr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:E(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",y={};function b(){}function g(){}function v(){}var w={};c(w,a,function(){return this});var x=Object.getPrototypeOf,k=x&&x(x(O([])));k&&k!==n&&r.call(k,a)&&(w=k);var S=v.prototype=b.prototype=Object.create(w);function _(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==Br(u)&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,l)})}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=A(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function A(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Br(t)+" is not iterable")}return g.prototype=v,o(S,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(C.prototype),c(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},_(S),c(S,s,"Generator"),c(S,a,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function Ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ur(Object(n),!0).forEach(function(t){Vr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ur(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vr(e,t,n){return(t=function(e){var t=function(e){if("object"!=Br(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Br(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Br(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qr(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}var Hr=window.location.origin,Kr=function(e){null!=e&&e.baseUrl&&(Hr=e.baseUrl)},$r=function({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=Un,paramsSerializer:r,isJsonContentType:o=Vn,jsonContentType:i="application/json",jsonReplacer:a,timeout:l,responseHandler:s,validateStatus:c,...u}={}){return"undefined"==typeof fetch&&n===Un&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(f,p,h)=>{const{getState:m,extra:y,endpoint:b,forced:g,type:v}=p;let w,x,{url:k,headers:S=new Headers(u.headers),params:_,responseHandler:C=s??"json",validateStatus:E=c??Wn,timeout:A=l,...T}="string"==typeof f?{url:f}:f,j=p.signal;A&&(x=new AbortController,p.signal.addEventListener("abort",x.abort),j=x.signal);let N={...u,signal:j,...T};S=new Headers(Qn(S)),N.headers=await t(S,{getState:m,arg:f,extra:y,endpoint:b,forced:g,type:v,extraOptions:h})||S;const O=e=>"object"==typeof e&&(Qe(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!N.headers.has("content-type")&&O(N.body)&&N.headers.set("content-type",i),O(N.body)&&o(N.headers)&&(N.body=JSON.stringify(N.body,a)),_){const e=~k.indexOf("?")?"&":"?";k+=e+(r?r(_):new URLSearchParams(Qn(_)))}k=function(e,t){if(!e)return t;if(!t)return e;if(function(e){return new RegExp("(^|:)//").test(e)}(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=(e=>e.replace(/\/$/,""))(e),`${e}${n}${t=(e=>e.replace(/^\//,""))(t)}`}(e,k);const P=new Request(k,N);w={request:new Request(k,N)};let I,L=!1,z=x&&setTimeout(()=>{L=!0,x.abort()},A);try{I=await n(P)}catch(e){return{error:{status:L?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:w}}finally{z&&clearTimeout(z),x?.signal.removeEventListener("abort",x.abort)}const M=I.clone();let R;w.response=M;let D="";try{let e;if(await Promise.all([d(I,C).then(e=>R=e,t=>e=t),M.text().then(e=>D=e,()=>{})]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:I.status,data:D,error:String(e)},meta:w}}return E(I,R)?{data:R,meta:w}:{error:{status:I.status,data:R},meta:w}};async function d(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=o(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}({baseUrl:"",prepareHeaders:function(e,t){var n=(0,t.getState)().assessmentInfo.token;return n&&e.set("X-Session-Token",n),e}}),Yr=Fr({reducerPath:"mobilePairing",tagTypes:[],baseQuery:function(){var e,t=(e=qr().mark(function e(t,n,r){var o,i;return qr().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o="".concat(Hr).concat(t.url),i=Wr(Wr({},t),{},{url:o}),e.abrupt("return",$r(i,n,r));case 3:case"end":return e.stop()}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Qr(i,r,o,a,l,"next",e)}function l(e){Qr(i,r,o,a,l,"throw",e)}a(void 0)})});return function(e,n,r){return t.apply(this,arguments)}}(),endpoints:function(e){return{getQrCode:e.query({query:function(e){return{method:"GET",url:e.endpoint||"/api/v1/proctoring/plugins/dual_camera/qr_code"}}}),getPollingData:e.query({query:function(e){return{method:"GET",url:e.endpoint||"/api/v1/proctoring/events"}}}),validateImagePosition:e.mutation({query:function(e){var t=e.imageFile,n=new FormData;return t&&n.append("image",t),{url:"/api/rt/orientation-check",method:"POST",body:n}}}),sendProctorEvent:e.mutation({query:function(e){var t=e.eventType,n=e.eventName,r=e.endpoint,o=e.extraData;return{url:r||"/api/v1/proctoring/events",method:"POST",body:{events:[{type:t,name:n,data:void 0===o?{}:o}]}}}})}}}),Gr=Yr.useGetQrCodeQuery,Xr=Yr.useGetPollingDataQuery,Jr=(Yr.util,Yr.useSendProctorEventMutation),Zr=Yr.useValidateImagePositionMutation;const eo=Yr;var to,no=function(){return H()},ro=I,oo=function(){return oo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oo.apply(this,arguments)},io=vn("assessmentInfo/fetchToken",function(e){return t=void 0,n=[e],o=function(e){var t,n,r,o=e.baseUrl,i=e.payload;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}(this,function(e){switch(e.label){case 0:return[4,fetch("".concat(o,"/api/v3/proctoring/dual_camera/init"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)})];case 1:return[4,e.sent().json()];case 2:return t=e.sent(),n=null==t?void 0:t.token,window.PROCTORING_SESSION_TOKEN=n,[2,{token:n,identity:null!==(r=null==t?void 0:t.identity)&&void 0!==r?r:null}]}})},new((r=void 0)||(r=Promise))(function(e,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function l(e){try{s(o.throw(e))}catch(e){i(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r(function(e){e(n)})).then(a,l)}s((o=o.apply(t,n||[])).next())});var t,n,r,o}),ao=Cn({name:"assessmentInfo",initialState:{userName:"",assessmentName:"",proctor:null,token:null,identity:null},reducers:{setAssessmentInfo:function(e,t){return oo(oo({},e),{userName:t.payload.userName,assessmentName:t.payload.assessmentName})},setProctor:function(e,t){return oo(oo({},e),{proctor:t.payload})}},extraReducers:function(e){e.addCase(io.fulfilled,function(e,t){e.token=t.payload.token,e.identity=t.payload.identity})}}),lo=(to=ao.actions).setAssessmentInfo,so=to.setProctor;const co=ao.reducer;var uo,fo=function(e){return e.assessmentInfo.proctor},po={no_face:"We couldn't find a face. Sit facing the camera with your whole face in the frame.",multiple_faces:"More than one face is visible. Make sure only you are in the frame.",low_confidence:"Your face was not clear enough. Face the camera in good light.",blurry:"The photo was blurry. Hold still and try again.",too_dark:"The photo was too dark. Move to a brighter place or face a light source.",turned_away:"Look straight at the camera and try again.",mismatch:"The photo didn't match your reference photo. Remove anything covering your face and try again.",upload_missing:"Your photo didn't upload. Check your connection and try again.",no_reference_image:"No reference photo is on file for you.",attempts_exhausted:"Your photos did not match your reference photo.",captures_exhausted:"You have used all your verification attempts.",engine_timeout:"Verification is taking longer than expected.",liveness_failed:"We couldn't confirm a live person in front of the camera. Face the camera in good light and try again.",liveness_expired:"The liveness check didn't finish in time. Try again.",liveness_incomplete:"The liveness check didn't finish. Try again.",liveness_no_frame:"The liveness check couldn't capture your face. Face the camera and try again.",engine_capacity:"Many candidates are verifying right now. Please try again in a moment.",engine_throttled:"Many candidates are verifying right now. Please try again in a moment.",unreadable_image:"We couldn't read the photo from your camera. Please try again.",virtual_camera:"A virtual camera is selected. Choose your physical webcam to continue.",liveness_in_progress:"Another liveness check is already running for this test. Close it and try again.",liveness_not_enabled:"This test does not use the liveness check.",engine_unavailable:"The verification service is unavailable right now. Please try again in a moment.",unknown_liveness_session:"This check expired. Start it again.",liveness_session_expired:"This check expired. Start a new one.",already_verified:"You are already verified for this test.",already_captured:"Your check is already recorded for this test.",verification_in_progress:"Your previous check is still being verified. Please wait for the result.",not_required:"This test does not need identity verification.",consent_required:"Agree to the face scan to continue.",consent_version_outdated:"The consent text has changed. Reload the page and agree again.",service_unavailable:"The verification service is unavailable right now.",request_failed:"The request failed. Check your connection and try again.",upload_failed:"Your photo didn't upload. Check your connection and try again."},ho=function(e,t){return"".concat(t||yo(e)," (Error code: ").concat(e,")")},mo=function(e){return Boolean(null==e?void 0:e.liveness)&&"off"!==e.liveness.mode},yo=function(e){return e&&po[e]?po[e]:(null==e?void 0:e.startsWith("engine_"))?"The verification service is unavailable right now.":"Please try again."},bo=["cameraShare","identityVerification","screenShare","mobileCameraShare","compatibilityChecks"],go=function(){return go=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},go.apply(this,arguments)},vo=function(e,t){return void 0===t&&(t=!0),{locked:t,acknowledged:!1,activeSubStep:e.length>0?e[0]:"",enabled:!0,setupMode:!1,subSteps:e.reduce(function(e,t){var n;return go(go({},e),((n={})[t]={status:"locked",error:"",enabled:!0},n))},{})}},wo={enableProctoring:!1,modalOpen:!1,isDisqualified:!1,activeStep:"cameraShare",steps:{cameraShare:vo(["cameraShare"],!1),screenShare:vo(["screenShare"]),mobileCameraShare:vo(["codeScan","cameraPairing","systemChecks"]),compatibilityChecks:vo(["systemChecks","networkChecks","fullScreenCheck"]),identityVerification:vo(["identityCapture"])},onWorkflowComplete:function(){},beepConfig:{enabled:!1,sounds:{screenShare:"",cameraShare:"",mobileCameraShare:"",compatibilityChecks:"",identityVerification:""}}},xo=function(e){var t=bo,n=t.indexOf(e.activeStep),r=t.findIndex(function(t,r){return r>n&&e.steps[t].enabled});if(-1!==r){var o=t[r];e.steps[o].locked&&(e.steps[o].locked=!1),e.activeStep=o}else e.modalOpen=!1,e.onWorkflowComplete&&e.onWorkflowComplete()},ko=Cn({name:"workflow",initialState:wo,reducers:{setActiveStep:function(e,t){e.activeStep=t.payload,e.steps[t.payload].locked=!1},setActiveSubStep:function(e,t){var n=t.payload,r=n.step,o=n.subStep;e.steps[r].activeSubStep=o},nextStep:function(e){xo(e)},nextSubStep:function(e){var t=e.steps[e.activeStep],n=t.subSteps;if(n&&!(Object.keys(n).length<=0)){var r=Object.keys(n),o=r.indexOf(t.activeSubStep);if(o<r.length-1){n[r[o]].status="completed";var i=r[o+1];n[i].status="pending",t.activeSubStep=i}}},setStepLocked:function(e,t){var n=t.payload,r=n.step,o=n.locked;e.steps[r].locked=o},setStepSetupMode:function(e,t){var n=t.payload,r=n.step,o=n.setupMode;e.steps[r].setupMode=o},setStepAcknowledged:function(e,t){var n=t.payload,r=n.step,o=n.acknowledged;e.steps[r].acknowledged=o},setSubStepStatus:function(e,t){var n=t.payload,r=n.step,o=n.subStep,i=n.status,a=n.clearError;if(e.steps[r].subSteps[o].status=i,a&&(e.steps[r].subSteps[o].error=""),e.enableProctoring){var l=Object.entries(e.steps).every(function(e){e[0];var t=e[1];return!t.enabled||Object.values(t.subSteps).every(function(e){return e.enabled&&"completed"===e.status})});l&&(e.modalOpen=!1)}},setSubStepError:function(e,t){var n=t.payload,r=n.step,o=n.subStep,i=n.error;e.steps[r].subSteps[o].status="error",e.steps[r].subSteps[o].error=i},resetStep:function(e,t){var n=t.payload.step,r=Object.keys(e.steps[n].subSteps);e.steps[n]=vo(r)},setBulkStepEnabled:function(e,t){Object.values(t.payload).forEach(function(t){var n=t.step,r=t.enabled,o=t.subSteps;e.steps[n].enabled=r,o&&Object.entries(o).forEach(function(t){var r=t[0],o=t[1];e.steps[n].subSteps[r].enabled=o})});var n=bo.find(function(t){return e.steps[t].enabled});n&&(e.activeStep=n)},setModalOpen:function(e,t){e.modalOpen=t.payload},setEnableProctoring:function(e,t){e.enableProctoring=t.payload,t.payload&&Object.keys(e.steps).forEach(function(t){e.steps[t].locked=!1})},setBeepConfig:function(e,t){e.beepConfig=t.payload},setOnWorkflowComplete:function(e,t){e.onWorkflowComplete=t.payload},setIsDisqualified:function(e,t){e.isDisqualified=t.payload},resetAll:function(){return wo}},extraReducers:function(e){e.addCase(io.fulfilled,function(e,t){var n,r=e.steps.identityVerification;!r.enabled||(n=t.payload.identity,Boolean(true)&&Boolean(n)&&"off"!==n.mode)||(r.enabled=!1,"identityVerification"===e.activeStep&&xo(e))})}}),So=(uo=ko.actions).setActiveStep,_o=uo.nextStep,Co=uo.nextSubStep,Eo=uo.setStepLocked,Ao=uo.setStepAcknowledged,To=uo.setSubStepStatus,jo=uo.setSubStepError,No=uo.setBulkStepEnabled,Oo=uo.setModalOpen,Po=uo.resetStep,Io=(uo.resetAll,uo.setEnableProctoring),Lo=uo.setOnWorkflowComplete,zo=uo.setActiveSubStep,Mo=uo.setStepSetupMode,Ro=uo.setIsDisqualified,Do=uo.setBeepConfig;const Fo=ko.reducer;var Bo,qo=function(e,t){return e.workflow.steps[t]},Uo=function(e,t,n){return e.workflow.steps[t].subSteps[n]},Wo=function(e){const t=function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:o=!0}=e??{};let i=new Yt;return t&&("boolean"==typeof t?i.push(Xe):i.push(Je(t.extraArgument))),i},{reducer:n,middleware:r,devTools:o=!0,preloadedState:i,enhancers:a}=e||{};let l,s;if("function"==typeof n)l=n;else{if(!Qe(n))throw new Error(Tn(1));l=Ke(n)}s="function"==typeof r?r(t):t();let c=$e;o&&(c=Ht({trace:!1,..."object"==typeof o&&o}));const u=function(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(qe(15))};const a={getState:o.getState,dispatch:(e,...t)=>i(e,...t)},l=e.map(e=>e(a));return i=$e(...l)(o.dispatch),{...o,dispatch:i}}}(...s),d=(e=>function(t){const{autoBatch:n=!0}=t??{};let r=new Yt(e);return n&&r.push(((e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,a=!1;const l=new Set,s="tick"===e.type?queueMicrotask:"raf"===e.type?tn:"callback"===e.type?e.queueNotification:en(e.timeout),c=()=>{a=!1,i&&(i=!1,l.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){const t=r.subscribe(()=>o&&e());return l.add(e),()=>{t(),l.delete(e)}},dispatch(e){try{return o=!e?.meta?.[Jt],i=!o,i&&(a||(a=!0,s(c))),r.dispatch(e)}finally{o=!0}}})})("object"==typeof n?n:void 0)),r})(u);return He(l,i,c(..."function"==typeof a?a(d):d()))}({reducer:Ke(((Bo={assessmentInfo:co,workflow:Fo})[eo.reducerPath]=eo.reducer,Bo)),middleware:function(e){return e({serializableCheck:!1}).concat(eo.middleware)},devTools:!1});const Vo=Wo;var Qo={screenshare:{step:"screenShare",subStep:"screenShare"},webcam:{step:"cameraShare",subStep:"cameraShare"},mobileSetup:{step:"mobileCameraShare",subStep:"codeScan"},mobileSnapshot:{step:"mobileCameraShare",subStep:"cameraPairing"},mobileBattery:{step:"mobileCameraShare",subStep:"systemChecks"},browser:{step:"compatibilityChecks",subStep:"systemChecks"},networkSpeed:{step:"compatibilityChecks",subStep:"networkChecks"},fullscreen:{step:"compatibilityChecks",subStep:"fullScreenCheck"}};const Ho=function(e,t){var n=this;this.CHECK_ORDER=["screenshare","webcam","mobileSetup","mobileSnapshot","mobileBattery","browser","networkSpeed","fullscreen"],this.handleFullScreenEnabled=function(){n.dispatch(To({step:"compatibilityChecks",subStep:"fullScreenCheck",status:"completed",clearError:!0}))},this.handleFullScreenDisabled=function(){},this.handleDisqualifyUser=function(){var e,t;null===(t=null===(e=Wo.getState().assessmentInfo)||void 0===e?void 0:e.proctor)||void 0===t||t.handleCleanup(),n.dispatch(Oo(!1)),n.dispatch(Ro(!0))},this.handleCompatibilityCheckSuccess=function(){var e=Wo.getState().workflow.enableProctoring;Object.values(Qo).forEach(function(e){n.dispatch(To({step:e.step,subStep:e.subStep,status:"completed",clearError:!0}))}),e&&n.dispatch(Oo(!1))},this.handleCompatibilityCheckFail=function(e){var t=!1,r={};n.CHECK_ORDER.forEach(function(o){var i;if(o in e.passedChecks){var a=e.passedChecks[o],l=Qo[o],s=null===(i=n.steps[l.step])||void 0===i?void 0:i.enabled;l&&s&&(n.dispatch(To({step:l.step,subStep:l.subStep,status:a?"completed":"error",clearError:a})),a||t||(n.dispatch(So(l.step)),n.dispatch(Oo(!0)),t=!0),a||r[l.step]||(n.dispatch(zo({step:l.step,subStep:l.subStep})),r[l.step]=!0))}})},this.dispatch=e,this.steps=t};c();const Ko=(...e)=>e.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim();var $o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Yo=(0,l().forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...s},c)=>(0,l().createElement)("svg",{ref:c,...$o,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:Ko("lucide",o),...s},[...a.map(([e,t])=>(0,l().createElement)(e,t)),...Array.isArray(i)?i:[i]])),Go=(e,t)=>{const n=(0,l().forwardRef)(({className:n,...r},o)=>{return(0,l().createElement)(Yo,{ref:o,iconNode:t,className:Ko(`lucide-${i=e,i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...r});var i});return n.displayName=`${e}`,n},Xo=Go("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]),Jo=Go("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]),Zo=Go("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]),ei=Go("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),ti=Go("ScanFace",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["path",{d:"M15 9h.01",key:"x1ddxp"}]]),ni=Go("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),ri=e=>{const t=li(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),oi(n,t)||ai(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},oi=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?oi(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find(({validator:e})=>e(i))?.classGroupId},ii=/^\[(.+)\]$/,ai=e=>{if(ii.test(e)){const t=ii.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},li=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return di(Object.entries(e.classGroups),n).forEach(([e,n])=>{si(n,r,e,t)}),r},si=(e,t,n,r)=>{e.forEach(e=>{if("string"!=typeof e)return"function"==typeof e?ui(e)?void si(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n}):void Object.entries(e).forEach(([e,o])=>{si(o,ci(t,e),n,r)});(""===e?t:ci(t,e)).classGroupId=n})},ci=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},ui=e=>e.isThemeGetter,di=(e,t)=>t?e.map(([e,n])=>[e,n.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e,fi=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},pi=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],i=t.length,a=e=>{const n=[];let a,l=0,s=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===l){if(u===o&&(r||e.slice(c,c+i)===t)){n.push(e.slice(s,c)),s=c+i;continue}if("/"===u){a=c;continue}}"["===u?l++:"]"===u&&l--}const c=0===n.length?e:e.substring(s),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:a&&a>s?a-s:void 0}};return n?e=>n({className:e,parseClassName:a}):a},hi=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},mi=/\s+/;function yi(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=bi(e))&&(r&&(r+=" "),r+=t);return r}const bi=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=bi(e[r]))&&(n&&(n+=" "),n+=t);return n};function gi(e,...t){let n,r,o,i=function(l){const s=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:fi(e.cacheSize),parseClassName:pi(e),...ri(e)}))(s),r=n.cache.get,o=n.cache.set,i=a,a(l)};function a(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(mi);let l="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{modifiers:s,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(t);let f=Boolean(d),p=r(f?u.substring(0,d):u);if(!p){if(!f){l=t+(l.length>0?" "+l:l);continue}if(p=r(u),!p){l=t+(l.length>0?" "+l:l);continue}f=!1}const h=hi(s).join(":"),m=c?h+"!":h,y=m+p;if(i.includes(y))continue;i.push(y);const b=o(p,f);for(let e=0;e<b.length;++e){const t=b[e];i.push(m+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return o(e,i),i}return function(){return i(yi.apply(null,arguments))}}const vi=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},wi=/^\[(?:([a-z-]+):)?(.+)\]$/i,xi=/^\d+\/\d+$/,ki=new Set(["px","full","screen"]),Si=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_i=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ci=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ei=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ai=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ti=e=>Ni(e)||ki.has(e)||xi.test(e),ji=e=>Wi(e,"length",Vi),Ni=e=>Boolean(e)&&!Number.isNaN(Number(e)),Oi=e=>Wi(e,"number",Ni),Pi=e=>Boolean(e)&&Number.isInteger(Number(e)),Ii=e=>e.endsWith("%")&&Ni(e.slice(0,-1)),Li=e=>wi.test(e),zi=e=>Si.test(e),Mi=new Set(["length","size","percentage"]),Ri=e=>Wi(e,Mi,Qi),Di=e=>Wi(e,"position",Qi),Fi=new Set(["image","url"]),Bi=e=>Wi(e,Fi,Ki),qi=e=>Wi(e,"",Hi),Ui=()=>!0,Wi=(e,t,n)=>{const r=wi.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},Vi=e=>_i.test(e)&&!Ci.test(e),Qi=()=>!1,Hi=e=>Ei.test(e),Ki=e=>Ai.test(e),$i=gi((Symbol.toStringTag,()=>{const e=vi("colors"),t=vi("spacing"),n=vi("blur"),r=vi("brightness"),o=vi("borderColor"),i=vi("borderRadius"),a=vi("borderSpacing"),l=vi("borderWidth"),s=vi("contrast"),c=vi("grayscale"),u=vi("hueRotate"),d=vi("invert"),f=vi("gap"),p=vi("gradientColorStops"),h=vi("gradientColorStopPositions"),m=vi("inset"),y=vi("margin"),b=vi("opacity"),g=vi("padding"),v=vi("saturate"),w=vi("scale"),x=vi("sepia"),k=vi("skew"),S=vi("space"),_=vi("translate"),C=()=>["auto",Li,t],E=()=>[Li,t],A=()=>["",Ti,ji],T=()=>["auto",Ni,Li],j=()=>["","0",Li],N=()=>[Ni,Li];return{cacheSize:500,separator:":",theme:{colors:[Ui],spacing:[Ti,ji],blur:["none","",zi,Li],brightness:N(),borderColor:[e],borderRadius:["none","","full",zi,Li],borderSpacing:E(),borderWidth:A(),contrast:N(),grayscale:j(),hueRotate:N(),invert:j(),gap:E(),gradientColorStops:[e],gradientColorStopPositions:[Ii,ji],inset:C(),margin:C(),opacity:N(),padding:E(),saturate:N(),scale:N(),sepia:j(),skew:N(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",Li]}],container:["container"],columns:[{columns:[zi]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Li]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Pi,Li]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Li]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",Pi,Li]}],"grid-cols":[{"grid-cols":[Ui]}],"col-start-end":[{col:["auto",{span:["full",Pi,Li]},Li]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[Ui]}],"row-start-end":[{row:["auto",{span:[Pi,Li]},Li]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Li]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Li]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Li,t]}],"min-w":[{"min-w":[Li,t,"min","max","fit"]}],"max-w":[{"max-w":[Li,t,"none","full","min","max","fit","prose",{screen:[zi]},zi]}],h:[{h:[Li,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Li,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Li,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Li,t,"auto","min","max","fit"]}],"font-size":[{text:["base",zi,ji]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Oi]}],"font-family":[{font:[Ui]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Li]}],"line-clamp":[{"line-clamp":["none",Ni,Oi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ti,Li]}],"list-image":[{"list-image":["none",Li]}],"list-style-type":[{list:["none","disc","decimal",Li]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ti,ji]}],"underline-offset":[{"underline-offset":["auto",Ti,Li]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Li]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Li]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Di]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ri]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Bi]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Ti,Li]}],"outline-w":[{outline:[Ti,ji]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:A()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Ti,ji]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",zi,qi]}],"shadow-color":[{shadow:[Ui]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",zi,Li]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Li]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",Li]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",Li]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Pi,Li]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Li]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Li]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Li]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ti,ji,Oi]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}));function Yi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return $i(re(e))}var Gi=function(){return Gi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Gi.apply(this,arguments)},Xi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Ji=l().forwardRef(function(e,t){var n=e.className,r=Xi(e,["className"]);return(0,a().jsx)("div",Gi({ref:t,className:Yi("rounded-2xl border bg-card text-card-foreground shadow-sm",n)},r))});Ji.displayName="Card";var Zi=l().forwardRef(function(e,t){var n=e.className,r=Xi(e,["className"]);return(0,a().jsx)("div",Gi({ref:t,className:Yi("flex flex-col space-y-1.5 p-6",n)},r))});Zi.displayName="CardHeader";var ea=l().forwardRef(function(e,t){var n=e.className,r=Xi(e,["className"]);return(0,a().jsx)("h3",Gi({ref:t,className:Yi("text-lg font-semibold leading-none tracking-tight",n)},r))});ea.displayName="CardTitle";var ta=l().forwardRef(function(e,t){var n=e.className,r=Xi(e,["className"]);return(0,a().jsx)("p",Gi({ref:t,className:Yi("text-xs text-muted-foreground",n)},r))});ta.displayName="CardDescription";var na=l().forwardRef(function(e,t){var n=e.className,r=Xi(e,["className"]);return(0,a().jsx)("div",Gi({ref:t,className:Yi("p-6 pt-0",n)},r))});na.displayName="CardContent";var ra=l().forwardRef(function(e,t){var n=e.className,r=Xi(e,["className"]);return(0,a().jsx)("div",Gi({ref:t,className:Yi(" flex items-center p-6 pt-0",n)},r))});ra.displayName="CardFooter";var oa=function(){return oa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oa.apply(this,arguments)},ia=l().forwardRef(function(e,t){var n=e.containerClassName,r=e.modalClassName,o=e.isOpen,i=e.children,l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["containerClassName","modalClassName","isOpen","children"]);return o?(0,a().jsx)("div",oa({ref:t,className:Yi("fixed inset-0 bg-black/50 flex items-center justify-center z-50",n)},l,{children:(0,a().jsx)(Ji,{className:r,children:i})})):null});function aa(e){return(null==e?void 0:e.length)?e.some(function(e){return"error"===e.status})?"error":e.every(function(e){return"completed"===e.status})?"completed":"pending":"pending"}ia.displayName="Modal";const la=n.p+"images/logo42f1917ce9c309caf961.svg";function sa(){var e,t=ro(function(e){return e.assessmentInfo});return(0,a().jsxs)("div",{children:[(0,a().jsx)("img",{src:la,alt:"Scaler Logo",className:"h-6"}),(0,a().jsxs)("div",{className:"mt-12",children:[(0,a().jsx)("p",{className:"text-base-200 text-base",children:(null===(e=null==t?void 0:t.userName)||void 0===e?void 0:e.trim())?"Hi ".concat(t.userName.trim(),"!"):"Hi!"}),(0,a().jsx)("h1",{className:"text-2xl font-bold mt-1",children:null==t?void 0:t.assessmentName})]})]})}const ca=Go("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),ua=Go("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);var da=n(1003),fa={};fa.styleTagTransform=Z()(),fa.setAttributes=X()(),fa.insert=G()().bind(null,"head"),fa.domAPI=Y()(),fa.insertStyleElement=J()(),$()()(da.A,fa);const pa=da.A&&da.A.locals?da.A.locals:void 0;var ha=function(e){var t=e.icon,n=e.title,r=e.step,o=e.active,i=e.onClick,l=e.isLast,s=e.status;return(0,a().jsxs)("div",{className:"relative flex items-start gap-4 cursor-pointer",onClick:i,children:[(0,a().jsxs)("div",{className:"flex flex-col items-center",children:[(0,a().jsx)("div",{className:"rounded-full p-5 ".concat("completed"===s?"bg-scaler-900 text-white":"error"===s?"bg-red-500 text-white":o?"bg-scaler-500 text-white":"bg-scaler-100 text-blue-400"),children:"completed"===s?(0,a().jsx)(ca,{className:"w-8 h-8"}):"error"===s?(0,a().jsx)(ua,{className:"w-8 h-8"}):(0,a().jsx)(t,{className:"w-8 h-8"})}),!l&&(0,a().jsx)("div",{className:"w-1.5 h-28 bg-scaler-100"})]}),(0,a().jsxs)("div",{className:"md:mt-2",children:[(0,a().jsxs)("div",{className:"text-xs text-gray-400 ".concat(pa.stepNumber),children:["STEP ",r]}),(0,a().jsx)("div",{className:"text-base ".concat("error"===s?"font-bold text-red-500":o?"font-bold text-scaler-500":"font-medium text-base-700"),children:n})]})]})};const ma=function(e){var t=e.step_data,n=ro(function(e){return e.workflow.activeStep}),r=ro(function(e){return e.workflow.steps}),o=no();return(0,a().jsx)("div",{className:"mt-16",children:Object.entries(t).map(function(e,i){var l=e[0],s=e[1],c=r[l],u=!c.locked,d=aa(Object.values(c.subSteps));return(0,a().jsx)(ha,{icon:s.icon,title:s.title,step:i+1,active:n===l,onClick:function(){return u&&o(So(l))},isLast:i===Object.keys(t).length-1,status:d},l)})})},ya=Go("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),ba=Go("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);function ga(...e){return t=>e.forEach(e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t))}function va(...e){return l().useCallback(ga(...e),e)}var wa=l().forwardRef((e,t)=>{const{children:n,...r}=e,o=l().Children.toArray(n),i=o.find(Sa);if(i){const e=i.props.children,n=o.map(t=>t===i?l().Children.count(e)>1?l().Children.only(null):l().isValidElement(e)?e.props.children:null:t);return(0,a().jsx)(xa,{...r,ref:t,children:l().isValidElement(e)?l().cloneElement(e,void 0,n):null})}return(0,a().jsx)(xa,{...r,ref:t,children:n})});wa.displayName="Slot";var xa=l().forwardRef((e,t)=>{const{children:n,...r}=e;if(l().isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(n);return l().cloneElement(n,{..._a(r,n.props),ref:t?ga(t,e):e})}return l().Children.count(n)>1?l().Children.only(null):null});xa.displayName="SlotClone";var ka=({children:e})=>(0,a().jsx)(a().Fragment,{children:e});function Sa(e){return l().isValidElement(e)&&e.type===ka}function _a(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Ca(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ca(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const Ea=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,Aa=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ca(e))&&(r&&(r+=" "),r+=t);return r};var Ta,ja,Na=function(){return Na=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Na.apply(this,arguments)},Oa=(Ta="inline-flex items-center justify-center rounded-2xl text-base font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background",ja={variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-blue-500 text-scaler-500 hover:bg-scaler hover:text-scaler-200 transition",secondary:"bg-secondary text-secondary-foreground hover:underline",ghost:"hover:bg-accent hover:text-accent-foreground",link:"underline-offset-4 hover:underline text-primary",primary:"bg-scaler-500 text-white hover:bg-scaler-500/90"},size:{default:"h-16 py-4 px-6",xs:"h-6 px-2 text-xs",sm:"h-9 px-3 text-sm",lg:"h-11 py-9 px-16 text-base font-semibold"}},defaultVariants:{variant:"default",size:"default"}},e=>{var t;if(null==(null==ja?void 0:ja.variants))return Aa(Ta,null==e?void 0:e.class,null==e?void 0:e.className);const{variants:n,defaultVariants:r}=ja,o=Object.keys(n).map(t=>{const o=null==e?void 0:e[t],i=null==r?void 0:r[t];if(null===o)return null;const a=Ea(o)||Ea(i);return n[t][a]}),i=e&&Object.entries(e).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),a=null==ja||null===(t=ja.compoundVariants)||void 0===t?void 0:t.reduce((e,t)=>{let{class:n,className:o,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...r,...i}[t]):{...r,...i}[t]===n})?[...e,n,o]:e},[]);return Aa(Ta,o,a,null==e?void 0:e.class,null==e?void 0:e.className)}),Pa=l().forwardRef(function(e,t){var n=e.className,r=e.variant,o=e.size,i=e.asChild,l=void 0!==i&&i,s=e.type,c=void 0===s?"button":s,u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","variant","size","asChild","type"]),d=l?wa:"button";return(0,a().jsx)(d,Na({type:c,className:Yi(Oa({variant:r,size:o,className:n})),ref:t},u))});function Ia(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return l().useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function La(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function za(e){const t=l().useRef(e);return l().useEffect(()=>{t.current=e}),l().useMemo(()=>(...e)=>t.current?.(...e),[])}Pa.displayName="Button";var Ma=Boolean(globalThis?.document)?l().useLayoutEffect:()=>{},Ra=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=l().useState(),r=l().useRef({}),o=l().useRef(e),i=l().useRef("none"),a=e?"mounted":"unmounted",[s,c]=function(e,t){return l().useReducer((e,n)=>t[e][n]??e,e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l().useEffect(()=>{const e=Da(r.current);i.current="mounted"===s?e:"none"},[s]),Ma(()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Da(t);c(e?"MOUNT":"none"===a||"none"===t?.display?"UNMOUNT":n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Ma(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,a=i=>{const a=Da(r.current).includes(i.animationName);if(i.target===t&&a&&(c("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},l=e=>{e.target===t&&(i.current=Da(r.current))};return t.addEventListener("animationstart",l),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",l),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l().useCallback(e=>{e&&(r.current=getComputedStyle(e)),n(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):l().Children.only(n),i=va(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(o));return"function"==typeof n||r.isPresent?l().cloneElement(o,{ref:i}):null};function Da(e){return e?.animationName||"none"}Ra.displayName="Presence";var Fa=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=l().forwardRef((e,n)=>{const{asChild:r,...o}=e,i=r?wa:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a().jsx)(i,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Ba="Checkbox",[qa,Ua]=function(e,t=[]){let n=[];const r=()=>{const t=n.map(e=>l().createContext(e));return function(n){const r=n?.[e]||t;return l().useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){const o=l().createContext(r),i=n.length;n=[...n,r];const s=t=>{const{scope:n,children:r,...s}=t,c=n?.[e]?.[i]||o,u=l().useMemo(()=>s,Object.values(s));return(0,a().jsx)(c.Provider,{value:u,children:r})};return s.displayName=t+"Provider",[s,function(n,a){const s=a?.[e]?.[i]||o,c=l().useContext(s);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Ia(r,...t)]}(Ba),[Wa,Va]=qa(Ba),Qa=l().forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:s,disabled:c,value:u="on",onCheckedChange:d,form:f,...p}=e,[h,m]=l().useState(null),y=va(t,e=>m(e)),b=l().useRef(!1),g=!h||f||!!h.closest("form"),[v=!1,w]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=function({defaultProp:e,onChange:t}){const n=l().useState(e),[r]=n,o=l().useRef(r),i=za(t);return l().useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,s=za(n);return[a,l().useCallback(t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)},[i,e,o,s])]}({prop:o,defaultProp:i,onChange:d}),x=l().useRef(v);return l().useEffect(()=>{const e=h?.form;if(e){const t=()=>w(x.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[h,w]),(0,a().jsxs)(Wa,{scope:n,state:v,disabled:c,children:[(0,a().jsx)(Fa.button,{type:"button",role:"checkbox","aria-checked":Ya(v)?"mixed":v,"aria-required":s,"data-state":Ga(v),"data-disabled":c?"":void 0,disabled:c,value:u,...p,ref:y,onKeyDown:La(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:La(e.onClick,e=>{w(e=>!!Ya(e)||!e),g&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})}),g&&(0,a().jsx)($a,{control:h,bubbles:!b.current,name:r,value:u,checked:v,required:s,disabled:c,form:f,style:{transform:"translateX(-100%)"},defaultChecked:!Ya(i)&&i})]})});Qa.displayName=Ba;var Ha="CheckboxIndicator",Ka=l().forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=Va(Ha,n);return(0,a().jsx)(Ra,{present:r||Ya(i.state)||!0===i.state,children:(0,a().jsx)(Fa.span,{"data-state":Ga(i.state),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Ka.displayName=Ha;var $a=e=>{const{control:t,checked:n,bubbles:r=!0,defaultChecked:o,...i}=e,s=l().useRef(null),c=function(e){const t=l().useRef({value:e,previous:e});return l().useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(n),u=function(e){const[t,n]=l().useState(void 0);return Ma(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(t);l().useEffect(()=>{const e=s.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(c!==n&&o){const t=new Event("click",{bubbles:r});e.indeterminate=Ya(n),o.call(e,!Ya(n)&&n),e.dispatchEvent(t)}},[c,n,r]);const d=l().useRef(!Ya(n)&&n);return(0,a().jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o??d.current,...i,tabIndex:-1,ref:s,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Ya(e){return"indeterminate"===e}function Ga(e){return Ya(e)?"indeterminate":e?"checked":"unchecked"}var Xa=Qa,Ja=Ka,Za=function(){return Za=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Za.apply(this,arguments)},el=l().forwardRef(function(e,t){var n=e.className,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className"]);return(0,a().jsx)(Xa,Za({ref:t,className:Yi("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-scaler-500 data-[state=checked]:text-primary-foreground data-[state=checked]:border-blue-500",n)},r,{children:(0,a().jsx)(Ja,{className:Yi("flex items-center justify-center text-current"),children:(0,a().jsx)(ca,{className:"h-4 w-4"})})}))});el.displayName=Xa.displayName;var tl="Chrome",nl="Edge",rl="Firefox",ol="Safari",il="Opera",al={chrome:{name:tl,minVersion:80},firefox:{name:rl,minVersion:78},edge:{name:nl,minVersion:80},opera:{name:il,minVersion:70},safari:{name:ol,minVersion:14}},ll=function(){var e=navigator.userAgent,t=!!window.opr&&!!window.opr.addons||!!window.opera||e.indexOf(" OPR/")>=0,n=-1!==e.indexOf("Firefox"),r=/^((?!chrome|android).)*safari/i.test(e),o=-1!==e.indexOf("Edg"),i=!!window.chrome&&/Chrome/.test(e)&&!o&&!t,a="Unknown",l=0,s=function(t){var n=e.match(t);return n?parseInt(n[1],10):0};o?(a=nl,l=s(/Edg\/(\d+)/)):n?(a=rl,l=s(/Firefox\/(\d+)/)):t?(a=il,l=s(/OPR\/(\d+)/)):r?(a=ol,l=s(/Version\/(\d+)/)):i&&(a=tl,l=s(/Chrome\/(\d+)/));var c=Object.values(al).some(function(e){return e.name===a&&l>=e.minVersion});return{name:a,version:l,isSupported:c}},sl=function(){var e=navigator.userAgent;return{osName:/iPad|iPhone|iPod/.test(e)?"iOS":/Win/.test(e)?"Windows":/Mac/.test(e)?"MacOS":/Android/.test(e)?"Android":/Linux/.test(e)?"Linux":"Unknown"}},cl=function(e){var t=ro(function(e){return e.workflow.steps});return String(function(e,t){return function(e){return bo.filter(function(t){var n;return null===(n=e[t])||void 0===n?void 0:n.enabled})}(t).indexOf(e)+1}(e,t))};const ul=Go("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]),dl=Go("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var fl=function(){return fl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},fl.apply(this,arguments)},pl=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((r=r.apply(e,t||[])).next())})},hl=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}},ml={video:{width:{ideal:640},height:{ideal:480},frameRate:{ideal:4},facingMode:"user",advanced:[{aspectRatio:4/3},{resizeMode:"crop-and-scale"}]}},yl=(0,l().memo)(function(e){var t=e.isVisible,n=(e.onStreamReady,(0,l().useRef)(null));return(0,l().useEffect)(function(){var e=n.current;if(e)return e.autoplay=!0,e.muted=!0,e.playsInline=!0,e.disablePictureInPicture=!0,e.style.objectFit="cover",e.style.transform="scale(-1, 1)",e.addEventListener("loadedmetadata",function(){e.play().catch(console.error)}),function(){e.srcObject instanceof MediaStream&&e.srcObject.getTracks().forEach(function(e){return e.stop()})}},[]),(0,a().jsx)("video",{ref:n,id:"webcam-video",className:"w-full h-full object-cover rounded-lg ".concat(t?"block":"hidden")})});yl.displayName="WebcamVideo";var bl=(0,l().memo)(function(e){var t=e.onClick;return(0,a().jsxs)("div",{className:"flex flex-col items-center gap-4 p-6 text-center cursor-pointer",onClick:t,children:[(0,a().jsx)(Xo,{className:"w-16 h-16 text-red-400",strokeWidth:1.5}),(0,a().jsx)("div",{className:"space-y-2",children:(0,a().jsx)("p",{className:"text-red-600 font-medium",children:"Camera access is blocked. Follow the steps below to fix it."})})]})});function gl(){var e=this,t=no(),n=ro(fo),r=ro(function(e){return Uo(e,"cameraShare","cameraShare")}),o=ro(function(e){return e.workflow}).enableProctoring,i=(0,l().useState)(""),s=i[0],c=i[1],u=(0,l().useState)([]),d=u[0],f=u[1],p=(0,l().useRef)(null),h=(0,l().useCallback)(function(){p.current&&(p.current.getTracks().forEach(function(e){e.stop(),e.enabled=!1}),p.current=null)},[o]),m=(0,l().useCallback)(function(){return pl(e,void 0,void 0,function(){var e,r,o,i,a;return hl(this,function(l){switch(l.label){case 0:l.trys.push([0,10,,11]),h(),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,navigator.permissions.query({name:"camera"})];case 2:return l.sent().state,[3,4];case 3:return l.sent(),console.log("Permission query not supported, proceeding with getUserMedia"),[3,4];case 4:return[4,navigator.mediaDevices.getUserMedia(fl(fl({},ml),{video:fl(fl({},ml.video),{deviceId:s?{exact:s}:void 0})}))];case 5:return e=l.sent(),p.current=e,[4,null==n?void 0:n.getWebcamDevices()];case 6:return(null==(r=l.sent())?void 0:r.length)?(f(r),s?[3,9]:(c(r[0].id),[4,null==n?void 0:n.setWebcamDevice(r[0].id)])):[3,9];case 7:return l.sent(),[4,null==n?void 0:n.handleWebcamRequest()];case 8:l.sent(),l.label=9;case 9:return(o=document.getElementById("webcam-video"))&&(o.srcObject=e),[3,11];case 10:return i=l.sent(),console.error("Camera initialization error:",i),a="Camera permission denied","NotAllowedError"===i.name||"PermissionDeniedError"===i.name?a="Camera access was denied. Please allow camera access in your browser settings.":"NotFoundError"===i.name?a="No camera device found. Please connect a camera and try again.":"NotReadableError"===i.name&&(a="Camera is in use by another application. Please close other apps using the camera."),t(jo({step:"cameraShare",subStep:"cameraShare",error:a})),[3,11];case 11:return[2]}})})},[n,t,h,s]);(0,l().useEffect)(function(){m();var e=function(){p.current&&p.current.getTracks().forEach(function(e){e.enabled=!document.hidden})};return document.addEventListener("visibilitychange",e),function(){h(),document.removeEventListener("visibilitychange",e)}},[m]);var y=(0,l().useCallback)(function(t){return pl(e,void 0,void 0,function(){return hl(this,function(e){switch(e.label){case 0:return c(t),n?[4,n.setWebcamDevice(t)]:[3,3];case 1:return e.sent(),[4,n.handleWebcamRequest()];case 2:e.sent(),e.label=3;case 3:return[2]}})})},[n]),b=(0,l().useCallback)(function(e){var t=setTimeout(function(){y(e)},300);return function(){return clearTimeout(t)}},[y]);return(0,a().jsx)("div",{className:"flex flex-col gap-4 items-center w-full max-w-5xl mx-auto",children:(0,a().jsxs)("div",{className:"overflow-hidden shadow-lg bg-white w-full pb-6 space-y-6 rounded-2xl",children:[(0,a().jsxs)("div",{className:"aspect-video bg-gray-100 rounded-lg flex items-center justify-center",children:["error"===r.status&&(0,a().jsx)(bl,{onClick:m}),(0,a().jsx)(yl,{isVisible:"completed"===r.status,onStreamReady:function(e){p.current=e}})]}),(0,a().jsxs)("div",{className:"relative mx-8",children:[(0,a().jsxs)("select",{id:"camera-select",value:s,onChange:function(e){return b(e.target.value)},className:"w-full text-sm appearance-none rounded-lg border border-gray-300 bg-white py-4 pl-16 pr-8 shadow-sm focus:border-blue-400 focus:outline-none focus:ring-1 focus:ring-blue-400",children:[(0,a().jsx)("option",{value:"",disabled:!0,children:"Select Camera Input"}),null==d?void 0:d.map(function(e){return(0,a().jsx)("option",{value:e.id,children:e.label||"Unnamed Camera"},e.id)})]}),(0,a().jsx)(ul,{className:"w-8 h-8 fill-black absolute left-5 top-1/2 -translate-y-1/2 pointer-events-none"}),(0,a().jsx)(dl,{className:"w-8 h-8 text-gray-500 absolute right-5 top-1/2 -translate-y-1/2 pointer-events-none"})]})]})})}function vl(){}function wl(){}bl.displayName="CameraError";const xl=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,kl=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Sl={};function _l(e,t){return((t||Sl).jsx?kl:xl).test(e)}const Cl=/[ \t\n\f\r]/g;function El(e){return""===e.replace(Cl,"")}class Al{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function Tl(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new Al(n,r,t)}function jl(e){return e.toLowerCase()}Al.prototype.property={},Al.prototype.normal={},Al.prototype.space=null;class Nl{constructor(e,t){this.property=e,this.attribute=t}}Nl.prototype.space=null,Nl.prototype.boolean=!1,Nl.prototype.booleanish=!1,Nl.prototype.overloadedBoolean=!1,Nl.prototype.number=!1,Nl.prototype.commaSeparated=!1,Nl.prototype.spaceSeparated=!1,Nl.prototype.commaOrSpaceSeparated=!1,Nl.prototype.mustUseProperty=!1,Nl.prototype.defined=!1;let Ol=0;const Pl=Fl(),Il=Fl(),Ll=Fl(),zl=Fl(),Ml=Fl(),Rl=Fl(),Dl=Fl();function Fl(){return 2**++Ol}const Bl=Object.keys(x);class ql extends Nl{constructor(e,t,n,r){let o=-1;if(super(e,t),Ul(this,"space",r),"number"==typeof n)for(;++o<Bl.length;){const e=Bl[o];Ul(this,Bl[o],(n&x[e])===x[e])}}}function Ul(e,t,n){n&&(e[t]=n)}ql.prototype.defined=!0;const Wl={}.hasOwnProperty;function Vl(e){const t={},n={};let r;for(r in e.properties)if(Wl.call(e.properties,r)){const o=e.properties[r],i=new ql(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[jl(r)]=r,n[jl(i.attribute)]=r}return new Al(t,n,e.space)}const Ql=Vl({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Hl=Vl({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Kl(e,t){return t in e?e[t]:t}function $l(e,t){return Kl(e,t.toLowerCase())}const Yl=Vl({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:$l,properties:{xmlns:null,xmlnsXLink:null}}),Gl=Vl({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Il,ariaAutoComplete:null,ariaBusy:Il,ariaChecked:Il,ariaColCount:zl,ariaColIndex:zl,ariaColSpan:zl,ariaControls:Ml,ariaCurrent:null,ariaDescribedBy:Ml,ariaDetails:null,ariaDisabled:Il,ariaDropEffect:Ml,ariaErrorMessage:null,ariaExpanded:Il,ariaFlowTo:Ml,ariaGrabbed:Il,ariaHasPopup:null,ariaHidden:Il,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ml,ariaLevel:zl,ariaLive:null,ariaModal:Il,ariaMultiLine:Il,ariaMultiSelectable:Il,ariaOrientation:null,ariaOwns:Ml,ariaPlaceholder:null,ariaPosInSet:zl,ariaPressed:Il,ariaReadOnly:Il,ariaRelevant:null,ariaRequired:Il,ariaRoleDescription:Ml,ariaRowCount:zl,ariaRowIndex:zl,ariaRowSpan:zl,ariaSelected:Il,ariaSetSize:zl,ariaSort:null,ariaValueMax:zl,ariaValueMin:zl,ariaValueNow:zl,ariaValueText:null,role:null}}),Xl=Vl({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:$l,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Rl,acceptCharset:Ml,accessKey:Ml,action:null,allow:null,allowFullScreen:Pl,allowPaymentRequest:Pl,allowUserMedia:Pl,alt:null,as:null,async:Pl,autoCapitalize:null,autoComplete:Ml,autoFocus:Pl,autoPlay:Pl,blocking:Ml,capture:null,charSet:null,checked:Pl,cite:null,className:Ml,cols:zl,colSpan:null,content:null,contentEditable:Il,controls:Pl,controlsList:Ml,coords:zl|Rl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Pl,defer:Pl,dir:null,dirName:null,disabled:Pl,download:Ll,draggable:Il,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Pl,formTarget:null,headers:Ml,height:zl,hidden:Pl,high:zl,href:null,hrefLang:null,htmlFor:Ml,httpEquiv:Ml,id:null,imageSizes:null,imageSrcSet:null,inert:Pl,inputMode:null,integrity:null,is:null,isMap:Pl,itemId:null,itemProp:Ml,itemRef:Ml,itemScope:Pl,itemType:Ml,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Pl,low:zl,manifest:null,max:null,maxLength:zl,media:null,method:null,min:null,minLength:zl,multiple:Pl,muted:Pl,name:null,nonce:null,noModule:Pl,noValidate:Pl,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Pl,optimum:zl,pattern:null,ping:Ml,placeholder:null,playsInline:Pl,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Pl,referrerPolicy:null,rel:Ml,required:Pl,reversed:Pl,rows:zl,rowSpan:zl,sandbox:Ml,scope:null,scoped:Pl,seamless:Pl,selected:Pl,shadowRootClonable:Pl,shadowRootDelegatesFocus:Pl,shadowRootMode:null,shape:null,size:zl,sizes:null,slot:null,span:zl,spellCheck:Il,src:null,srcDoc:null,srcLang:null,srcSet:null,start:zl,step:null,style:null,tabIndex:zl,target:null,title:null,translate:null,type:null,typeMustMatch:Pl,useMap:null,value:Il,width:zl,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ml,axis:null,background:null,bgColor:null,border:zl,borderColor:null,bottomMargin:zl,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Pl,declare:Pl,event:null,face:null,frame:null,frameBorder:null,hSpace:zl,leftMargin:zl,link:null,longDesc:null,lowSrc:null,marginHeight:zl,marginWidth:zl,noResize:Pl,noHref:Pl,noShade:Pl,noWrap:Pl,object:null,profile:null,prompt:null,rev:null,rightMargin:zl,rules:null,scheme:null,scrolling:Il,standby:null,summary:null,text:null,topMargin:zl,valueType:null,version:null,vAlign:null,vLink:null,vSpace:zl,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Pl,disableRemotePlayback:Pl,prefix:null,property:null,results:zl,security:null,unselectable:null}}),Jl=Vl({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Kl,properties:{about:Dl,accentHeight:zl,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:zl,amplitude:zl,arabicForm:null,ascent:zl,attributeName:null,attributeType:null,azimuth:zl,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:zl,by:null,calcMode:null,capHeight:zl,className:Ml,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:zl,diffuseConstant:zl,direction:null,display:null,dur:null,divisor:zl,dominantBaseline:null,download:Pl,dx:null,dy:null,edgeMode:null,editable:null,elevation:zl,enableBackground:null,end:null,event:null,exponent:zl,externalResourcesRequired:null,fill:null,fillOpacity:zl,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Rl,g2:Rl,glyphName:Rl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:zl,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:zl,horizOriginX:zl,horizOriginY:zl,id:null,ideographic:zl,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:zl,k:zl,k1:zl,k2:zl,k3:zl,k4:zl,kernelMatrix:Dl,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:zl,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:zl,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:zl,overlineThickness:zl,paintOrder:null,panose1:null,path:null,pathLength:zl,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ml,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:zl,pointsAtY:zl,pointsAtZ:zl,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Dl,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Dl,rev:Dl,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Dl,requiredFeatures:Dl,requiredFonts:Dl,requiredFormats:Dl,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:zl,specularExponent:zl,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:zl,strikethroughThickness:zl,string:null,stroke:null,strokeDashArray:Dl,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:zl,strokeOpacity:zl,strokeWidth:null,style:null,surfaceScale:zl,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Dl,tabIndex:zl,tableValues:null,target:null,targetX:zl,targetY:zl,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Dl,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:zl,underlineThickness:zl,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:zl,values:null,vAlphabetic:zl,vMathematical:zl,vectorEffect:null,vHanging:zl,vIdeographic:zl,version:null,vertAdvY:zl,vertOriginX:zl,vertOriginY:zl,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:zl,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Zl=Tl([Hl,Ql,Yl,Gl,Xl],"html"),es=Tl([Hl,Ql,Yl,Gl,Jl],"svg"),ts=/^data[-\w.:]+$/i,ns=/-[a-z]/g,rs=/[A-Z]/g;function os(e){return"-"+e.toLowerCase()}function is(e){return e.charAt(1).toUpperCase()}const as={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};g();const ls=g().default||g(),ss=us("end"),cs=us("start");function us(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function ds(e){return e&&"object"==typeof e?"position"in e||"type"in e?ps(e.position):"start"in e||"end"in e?ps(e):"line"in e||"column"in e?fs(e):"":""}function fs(e){return hs(e&&e.line)+":"+hs(e&&e.column)}function ps(e){return fs(e&&e.start)+"-"+fs(e&&e.end)}function hs(e){return e&&"number"==typeof e?e:1}class ms extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=ds(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}ms.prototype.file="",ms.prototype.name="",ms.prototype.reason="",ms.prototype.message="",ms.prototype.stack="",ms.prototype.column=void 0,ms.prototype.line=void 0,ms.prototype.ancestors=void 0,ms.prototype.cause=void 0,ms.prototype.fatal=void 0,ms.prototype.place=void 0,ms.prototype.ruleId=void 0,ms.prototype.source=void 0;const ys={}.hasOwnProperty,bs=new Map,gs=/[A-Z]/g,vs=/-([a-z])/g,ws=new Set(["table","tbody","thead","tfoot","tr"]),xs=new Set(["td","th"]),ks="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ss(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=es,e.schema=o),e.ancestors.push(t);const i=Ts(e,t.tagName,!1),a=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&ys.call(t.properties,o)){const i=As(e,o,t.properties[o]);if(i){const[o,a]=i;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof a&&xs.has(t.tagName)?r=a:n[o]=a}}return r&&((n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r),n}(e,t);let l=Es(e,t);return ws.has(t.tagName)&&(l=l.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&El(t.value):El(t));var t})),_s(e,a,i,t),Cs(a,l),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}js(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=es,e.schema=o),e.ancestors.push(t);const i=null===t.name?e.Fragment:Ts(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];vl(t.type);const o=t.expression;vl(o.type);const i=o.properties[0];vl(i.type),Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else js(e,t.position);else{const o=r.name;let i;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];vl(t.type),i=e.evaluater.evaluateExpression(t.expression)}else js(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),l=Es(e,t);return _s(e,a,i,t),Cs(a,l),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);js(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return Cs(r,Es(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function _s(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Cs(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Es(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:bs;for(;++r<t.children.length;){const i=t.children[r];let a;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=o.get(e)||0;a=e+"-"+t,o.set(e,t+1)}}const l=Ss(e,i,a);void 0!==l&&n.push(l)}return n}function As(e,t,n){const r=function(e,t){const n=jl(t);let r=t,o=Nl;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&ts.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(ns,is);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!ns.test(e)){let n=e.replace(rs,os);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=ql}return new o(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){const n={};try{ls(t,function(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(vs,Os)),n[r]=t})}catch(t){if(!e.ignoreInvalidStyle){const n=t,r=new ms("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=ks+"#cannot-parse-style-attribute",r}}return n}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)ys.call(e,n)&&(t[Ns(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?as[r.property]||r.property:r.attribute,n]}}function Ts(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=_l(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(o&&"Literal"===t.type),optional:!1}:t}r=n}else r=_l(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return ys.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);js(e)}function js(e,t){const n=new ms("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ks+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Ns(e){let t=e.replace(gs,Ps);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function Os(e,t){return t.toUpperCase()}function Ps(e){return"-"+e.toLowerCase()}const Is={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Ls={};function zs(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ms(e.children,t,n)}return Array.isArray(e)?Ms(e,t,n):""}function Ms(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=zs(e[o],t,n);return r.join("")}function Rs(e,t,n,r){const o=e.length;let i,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function Ds(e,t){return e.length>0?(Rs(e,e.length,0,t),e):t}class Fs{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=t??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&Bs(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Bs(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Bs(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);Bs(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Bs(this.left,t.reverse())}}}function Bs(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function qs(e){const t={};let n,r,o,i,a,l,s,c=-1;const u=new Fs(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(l=n[1]._tokenizer.events,o=0,o<l.length&&"lineEndingBlank"===l[o][1].type&&(o+=2),o<l.length&&"content"===l[o][1].type))for(;++o<l.length&&"content"!==l[o][1].type;)"chunkText"===l[o][1].type&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Us(u,c)),c=t[c],s=!0);else if(n[1]._container){for(o=c,r=void 0;o--&&(i=u.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type);)"enter"===i[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);r&&(n[1].end={...u.get(r)[1].start},a=u.slice(r,c),a.unshift(n),u.splice(r,c-r+1,a))}}return Rs(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!s}function Us(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[],a=n._tokenizer||r.parser[n.contentType](n.start),l=a.events,s=[],c={};let u,d,f=-1,p=n,h=0,m=0;const y=[m];for(;p;){for(;e.get(++o)[1]!==p;);i.push(o),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<l.length;)"exit"===l[f][0]&&"enter"===l[f-1][0]&&l[f][1].type===l[f-1][1].type&&l[f][1].start.line!==l[f][1].end.line&&(m=f+1,y.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):y.pop(),f=y.length;f--;){const t=l.slice(y[f],y[f+1]),n=i.pop();s.push([n,n+t.length-1]),e.splice(n,2,t)}for(s.reverse(),f=-1;++f<s.length;)c[h+s[f][0]]=h+s[f][1],h+=s[f][1]-s[f][0]-1;return c}const Ws={}.hasOwnProperty;function Vs(e,t){let n;for(n in t){const r=(Ws.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){Ws.call(r,i)||(r[i]=[]);const e=o[i];Qs(r[i],Array.isArray(e)?e:e?[e]:[])}}}function Qs(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Rs(e,0,0,r)}const Hs=oc(/[A-Za-z]/),Ks=oc(/[\dA-Za-z]/),$s=oc(/[#-'*+\--9=?A-Z^-~]/);function Ys(e){return null!==e&&(e<32||127===e)}const Gs=oc(/\d/),Xs=oc(/[\dA-Fa-f]/),Js=oc(/[!-/:-@[-`{-~]/);function Zs(e){return null!==e&&e<-2}function ec(e){return null!==e&&(e<0||32===e)}function tc(e){return-2===e||-1===e||32===e}const nc=oc(/\p{P}|\p{S}/u),rc=oc(/\s/);function oc(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function ic(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){return tc(r)?(e.enter(n),a(r)):t(r)};function a(r){return tc(r)&&i++<o?(e.consume(r),a):(e.exit(n),t(r))}}const ac={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ic(e,t,"linePrefix");e.consume(n)},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Zs(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}},lc={tokenize:function(e){const t=this,n=[];let r,o,i,a=0;return l;function l(r){if(a<n.length){const o=n[a];return t.containerState=o[1],e.attempt(o[0].continuation,s,c)(r)}return c(r)}function s(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&g();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}b(a);let l=n;for(;l<t.events.length;)t.events[l][1].end={...o},l++;return Rs(t.events,i+1,0,t.events.slice(n)),t.events.length=l,c(e)}return l(e)}function c(o){if(a===n.length){if(!r)return f(o);if(r.currentConstruct&&r.currentConstruct.concrete)return h(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(sc,u,d)(o)}function u(e){return r&&g(),b(a),f(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,h(e)}function f(n){return t.containerState={},e.attempt(sc,p,h)(n)}function p(e){return a++,n.push([t.currentConstruct,t.containerState]),f(e)}function h(n){return null===n?(r&&g(),b(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),m(n))}function m(n){return null===n?(y(e.exit("chunkFlow"),!0),b(0),void e.consume(n)):Zs(n)?(e.consume(n),y(e.exit("chunkFlow")),a=0,t.interrupt=void 0,l):(e.consume(n),m)}function y(e,n){const l=t.sliceStream(e);if(n&&l.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(l),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,l,s=n;for(;s--;)if("exit"===t.events[s][0]&&"chunkFlow"===t.events[s][1].type){if(o){l=t.events[s][1].end;break}o=!0}for(b(a),e=n;e<t.events.length;)t.events[e][1].end={...l},e++;Rs(t.events,s+1,0,t.events.slice(n)),t.events.length=e}}function b(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function g(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},sc={tokenize:function(e,t,n){return ic(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},cc={partial:!0,tokenize:function(e,t,n){return function(t){return tc(t)?ic(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Zs(e)?t(e):n(e)}}},uc={resolve:function(e){return qs(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):Zs(t)?e.check(dc,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},dc={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ic(e,o,"linePrefix")};function o(o){if(null===o||Zs(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}},fc={tokenize:function(e){const t=this,n=e.attempt(cc,function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)},e.attempt(this.parser.constructs.flowInitial,r,ic(e,e.attempt(this.parser.constructs.flow,r,e.attempt(uc,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},pc={resolveAll:bc()},hc=yc("string"),mc=yc("text");function yc(e){return{resolveAll:bc("text"===e?gc:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return s(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),l;t.consume(e)}function l(e){return s(e)?(t.exit("data"),o(e)):(t.consume(e),l)}function s(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function bc(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function gc(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,a=o.length,l=-1,s=0;for(;a--;){const e=o[a];if("string"==typeof e){for(l=e.length;32===e.charCodeAt(l-1);)s++,l--;if(l)break;l=-1}else if(-2===e)i=!0,s++;else if(-1!==e){a++;break}}if(s){const o={type:n===e.length||i||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?l:r.start._bufferIndex+l,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...o.start},r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}const vc={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),a(i)):o>=3&&(null===i||Zs(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),tc(t)?ic(e,i,"whitespace")(t):i(t))}}},wc={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(cc,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ic(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!tc(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(kc,t,o)(n))});function o(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,ic(e,e.attempt(wc,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:Gs(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(vc,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(t)}return n(t)};function l(t){return Gs(t)&&++a<10?(e.consume(t),l):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),s(t)):n(t)}function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(cc,r.interrupt?n:c,e.attempt(xc,d,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return tc(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},xc={partial:!0,tokenize:function(e,t,n){const r=this;return ic(e,function(e){const o=r.events[r.events.length-1];return!tc(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},kc={partial:!0,tokenize:function(e,t,n){const r=this;return ic(e,function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},Sc={continuation:{tokenize:function(e,t,n){const r=this;return function(t){return tc(t)?ic(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):o(t)};function o(r){return e.attempt(Sc,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return tc(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function _c(e,t,n,r,o,i,a,l,s){const c=s||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d):null===t||32===t||41===t||Ys(t)?n(t):(e.enter(r),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(l),d(t)):null===t||60===t||Zs(t)?n(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function h(o){return u||null!==o&&41!==o&&!ec(o)?u<c&&40===o?(e.consume(o),u++,h):41===o?(e.consume(o),u--,h):null===o||32===o||40===o||Ys(o)?n(o):(e.consume(o),92===o?m:h):(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),t(o))}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function Cc(e,t,n,r,o,i){const a=this;let l,s=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),c};function c(d){return s>999||null===d||91===d||93===d&&!l||94===d&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):Zs(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||Zs(t)||s++>999?(e.exit("chunkString"),c(t)):(e.consume(t),l||(l=!tc(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function Ec(e,t,n,r,o,i){let a;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,l):n(t)};function l(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),s(n))}function s(t){return t===a?(e.exit(i),l(a)):null===t?n(t):Zs(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ic(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||Zs(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function Ac(e,t){let n;return function r(o){return Zs(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):tc(o)?ic(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}function Tc(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const jc={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return Cc.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=Tc(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return ec(t)?Ac(e,l)(t):l(t)}function l(t){return _c(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(Nc,c,c)(t)}function c(t){return tc(t)?ic(e,u,"whitespace")(t):u(t)}function u(i){return null===i||Zs(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},Nc={partial:!0,tokenize:function(e,t,n){return function(t){return ec(t)?Ac(e,r)(t):n(t)};function r(t){return Ec(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return tc(t)?ic(e,i,"whitespace")(t):i(t)}function i(e){return null===e||Zs(e)?t(e):n(e)}}},Oc={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),ic(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?l(t):Zs(t)?e.attempt(Pc,i,l)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||Zs(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function l(n){return e.exit("codeIndented"),t(n)}}},Pc={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):Zs(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):ic(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):Zs(e)?o(e):n(e)}}},Ic={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,i=3;return"whitespace"===e[i][1].type&&(i+=2),o-2>i&&"whitespace"===e[o][1].type&&(o-=2),"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4),o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},Rs(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||ec(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||Zs(n)?(e.exit("atxHeading"),t(n)):tc(n)?ic(e,i,"whitespace")(n):(e.enter("atxHeadingText"),l(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function l(t){return null===t||35===t||ec(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),l)}}},Lc={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=a,e.push(["exit",a,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let a,l=r.events.length;for(;l--;)if("lineEnding"!==r.events[l][1].type&&"linePrefix"!==r.events[l][1].type&&"content"!==r.events[l][1].type){a="paragraph"===r.events[l][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!a?n(t):(e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t))};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),tc(t)?ic(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||Zs(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},zc=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Mc=["pre","script","style","textarea"],Rc={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){const r=this;let o,i,a,l,s;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(l){return 33===l?(e.consume(l),u):47===l?(e.consume(l),i=!0,p):63===l?(e.consume(l),o=3,r.interrupt?t:L):Hs(l)?(e.consume(l),a=String.fromCharCode(l),h):n(l)}function u(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,l=0,f):Hs(i)?(e.consume(i),o=4,r.interrupt?t:L):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:L):n(o)}function f(o){return o==="CDATA[".charCodeAt(l++)?(e.consume(o),6===l?r.interrupt?t:E:f):n(o)}function p(t){return Hs(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(l){if(null===l||47===l||62===l||ec(l)){const s=47===l,c=a.toLowerCase();return s||i||!Mc.includes(c)?zc.includes(a.toLowerCase())?(o=6,s?(e.consume(l),m):r.interrupt?t(l):E(l)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(l):i?y(l):b(l)):(o=1,r.interrupt?t(l):E(l))}return 45===l||Ks(l)?(e.consume(l),a+=String.fromCharCode(l),h):n(l)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:E):n(o)}function y(t){return tc(t)?(e.consume(t),y):_(t)}function b(t){return 47===t?(e.consume(t),_):58===t||95===t||Hs(t)?(e.consume(t),g):tc(t)?(e.consume(t),b):_(t)}function g(t){return 45===t||46===t||58===t||95===t||Ks(t)?(e.consume(t),g):v(t)}function v(t){return 61===t?(e.consume(t),w):tc(t)?(e.consume(t),v):b(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,x):tc(t)?(e.consume(t),w):k(t)}function x(t){return t===s?(e.consume(t),s=null,S):null===t||Zs(t)?n(t):(e.consume(t),x)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||ec(t)?v(t):(e.consume(t),k)}function S(e){return 47===e||62===e||tc(e)?b(e):n(e)}function _(t){return 62===t?(e.consume(t),C):n(t)}function C(t){return null===t||Zs(t)?E(t):tc(t)?(e.consume(t),C):n(t)}function E(t){return 45===t&&2===o?(e.consume(t),N):60===t&&1===o?(e.consume(t),O):62===t&&4===o?(e.consume(t),z):63===t&&3===o?(e.consume(t),L):93===t&&5===o?(e.consume(t),I):!Zs(t)||6!==o&&7!==o?null===t||Zs(t)?(e.exit("htmlFlowData"),A(t)):(e.consume(t),E):(e.exit("htmlFlowData"),e.check(Dc,M,A)(t))}function A(t){return e.check(Fc,T,M)(t)}function T(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),j}function j(t){return null===t||Zs(t)?A(t):(e.enter("htmlFlowData"),E(t))}function N(t){return 45===t?(e.consume(t),L):E(t)}function O(t){return 47===t?(e.consume(t),a="",P):E(t)}function P(t){if(62===t){const n=a.toLowerCase();return Mc.includes(n)?(e.consume(t),z):E(t)}return Hs(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),P):E(t)}function I(t){return 93===t?(e.consume(t),L):E(t)}function L(t){return 62===t?(e.consume(t),z):45===t&&2===o?(e.consume(t),L):E(t)}function z(t){return null===t||Zs(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),z)}function M(n){return e.exit("htmlFlow"),t(n)}}},Dc={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(cc,t,n)}}},Fc={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return Zs(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},Bc={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},qc={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(t){return e.enter("codeFencedFence"),tc(t)?ic(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===i?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===i?(o++,e.consume(t),c):o>=l?(e.exit("codeFencedFenceSequence"),tc(t)?ic(e,u,"whitespace")(t):u(t)):n(t)}function u(r){return null===r||Zs(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let i,a=0,l=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}(t)};function s(t){return t===i?(l++,e.consume(t),s):l<3?n(t):(e.exit("codeFencedFenceSequence"),tc(t)?ic(e,c,"whitespace")(t):c(t))}function c(n){return null===n||Zs(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Bc,p,g)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||Zs(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):tc(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ic(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){return null===t||Zs(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||Zs(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),f)}function p(t){return e.attempt(o,g,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&tc(t)?ic(e,y,"linePrefix",a+1)(t):y(t)}function y(t){return null===t||Zs(t)?e.check(Bc,p,g)(t):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||Zs(t)?(e.exit("codeFlowValue"),y(t)):(e.consume(t),b)}function g(n){return e.exit("codeFenced"),t(n)}}},Uc=document.createElement("i");function Wc(e){const t="&"+e+";";Uc.innerHTML=t;const n=Uc.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}const Vc={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,i=Ks,c(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=Xs,c):(e.enter("characterReferenceValue"),o=7,i=Gs,c(t))}function c(l){if(59===l&&a){const o=e.exit("characterReferenceValue");return i!==Ks||Wc(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return i(l)&&a++<o?(e.consume(l),c):n(l)}}},Qc={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return Js(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},Hc={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ic(e,t,"linePrefix")}}};function Kc(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const $c={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&Rs(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,o,i,a=e.length,l=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){l=2;break}}else"labelEnd"===n.type&&(o=a);const s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[r+l+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",s,t],["enter",c,t]],i=Ds(i,e.slice(r+1,r+l+3)),i=Ds(i,[["enter",u,t]]),i=Ds(i,Kc(t.parser.constructs.insideSpan.null,e.slice(r+l+4,o-3),t)),i=Ds(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),i=Ds(i,e.slice(o+1)),i=Ds(i,[["exit",s,t]]),Rs(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){o=r.events[a][1];break}return function(t){return o?o._inactive?u(t):(i=r.parser.defined.includes(Tc(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l):n(t)};function l(t){return 40===t?e.attempt(Yc,c,i?c:u)(t):91===t?e.attempt(Gc,c,i?s:u)(t):i?c(t):u(t)}function s(t){return e.attempt(Xc,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}}},Yc={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return ec(t)?Ac(e,o)(t):o(t)}function o(t){return 41===t?c(t):_c(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return ec(t)?Ac(e,l)(t):c(t)}function a(e){return n(e)}function l(t){return 34===t||39===t||40===t?Ec(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function s(t){return ec(t)?Ac(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},Gc={tokenize:function(e,t,n){const r=this;return function(t){return Cc.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(Tc(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},Xc={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},Jc={name:"labelStartImage",resolveAll:$c.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};function Zc(e){return null===e||ec(e)||rc(e)?1:nc(e)?2:void 0}const eu={name:"attention",resolveAll:function(e,t){let n,r,o,i,a,l,s,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},f={...e[u][1].start};tu(d,-l),tu(f,l),i={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:f},o={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:l>1?"strong":"emphasis",start:{...i.start},end:{...a.end}},e[n][1].end={...i.start},e[u][1].start={...a.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=Ds(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=Ds(s,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),s=Ds(s,Kc(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),s=Ds(s,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,s=Ds(s,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Rs(e,n-1,u-n+3,s),u=n+s.length-c-2;break}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Zc(r);let i;return function(t){return i=t,e.enter("attentionSequence"),a(t)};function a(l){if(l===i)return e.consume(l),a;const s=e.exit("attentionSequence"),c=Zc(l),u=!c||2===c&&o||n.includes(l),d=!o||2===o&&c||n.includes(r);return s._open=Boolean(42===i?u:u&&(o||!d)),s._close=Boolean(42===i?d:d&&(c||!u)),t(l)}}};function tu(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const nu={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return Hs(t)?(e.consume(t),i):64===t?n(t):s(t)}function i(e){return 43===e||45===e||46===e||Ks(e)?(r=1,a(e)):s(e)}function a(t){return 58===t?(e.consume(t),r=0,l):(43===t||45===t||46===t||Ks(t))&&r++<32?(e.consume(t),a):(r=0,s(t))}function l(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||Ys(r)?n(r):(e.consume(r),l)}function s(t){return 64===t?(e.consume(t),c):$s(t)?(e.consume(t),s):n(t)}function c(e){return Ks(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||Ks(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}},ru={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),w):63===t?(e.consume(t),g):Hs(t)?(e.consume(t),S):n(t)}function s(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,p):Hs(t)?(e.consume(t),b):n(t)}function c(t){return 45===t?(e.consume(t),f):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):Zs(t)?(a=u,P(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),f):u(t)}function f(e){return 62===e?O(e):45===e?d(e):u(e)}function p(t){return t==="CDATA[".charCodeAt(i++)?(e.consume(t),6===i?h:p):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):Zs(t)?(a=h,P(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),y):h(t)}function y(t){return 62===t?O(t):93===t?(e.consume(t),y):h(t)}function b(t){return null===t||62===t?O(t):Zs(t)?(a=b,P(t)):(e.consume(t),b)}function g(t){return null===t?n(t):63===t?(e.consume(t),v):Zs(t)?(a=g,P(t)):(e.consume(t),g)}function v(e){return 62===e?O(e):g(e)}function w(t){return Hs(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||Ks(t)?(e.consume(t),x):k(t)}function k(t){return Zs(t)?(a=k,P(t)):tc(t)?(e.consume(t),k):O(t)}function S(t){return 45===t||Ks(t)?(e.consume(t),S):47===t||62===t||ec(t)?_(t):n(t)}function _(t){return 47===t?(e.consume(t),O):58===t||95===t||Hs(t)?(e.consume(t),C):Zs(t)?(a=_,P(t)):tc(t)?(e.consume(t),_):O(t)}function C(t){return 45===t||46===t||58===t||95===t||Ks(t)?(e.consume(t),C):E(t)}function E(t){return 61===t?(e.consume(t),A):Zs(t)?(a=E,P(t)):tc(t)?(e.consume(t),E):_(t)}function A(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,T):Zs(t)?(a=A,P(t)):tc(t)?(e.consume(t),A):(e.consume(t),j)}function T(t){return t===o?(e.consume(t),o=void 0,N):null===t?n(t):Zs(t)?(a=T,P(t)):(e.consume(t),T)}function j(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||ec(t)?_(t):(e.consume(t),j)}function N(e){return 47===e||62===e||ec(e)?_(e):n(e)}function O(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function P(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return tc(t)?ic(e,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),a(t)}}},ou={name:"labelStartLink",resolveAll:$c.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},iu={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return Zs(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},au={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}for(t=o-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),i++,a):(e.exit("codeTextSequence"),l(t))}function l(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),l):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):Zs(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("codeTextData"),s(t))}function s(t){return null===t||32===t||96===t||Zs(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),s)}function c(n){return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",s(n))}}},lu={42:wc,43:wc,45:wc,48:wc,49:wc,50:wc,51:wc,52:wc,53:wc,54:wc,55:wc,56:wc,57:wc,62:Sc},su={91:jc},cu={[-2]:Oc,[-1]:Oc,32:Oc},uu={35:Ic,42:vc,45:[Lc,vc],60:Rc,61:Lc,95:vc,96:qc,126:qc},du={38:Vc,92:Qc},fu={[-5]:Hc,[-4]:Hc,[-3]:Hc,33:Jc,38:Vc,42:eu,60:[nu,ru],91:ou,92:[iu,Qc],93:$c,95:eu,96:au},pu={null:[eu,pc]},hu={null:[42,95]},mu={null:[]};function yu(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let a=[],l=[],s=!0;const c={attempt:b(function(e,t){g(e,t.from)}),check:b(y),consume:function(e){Zs(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,v()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e,s=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=h(),u.events.push(["enter",n,u]),l.push(n),n},exit:function(e){const t=l.pop();return t.end=h(),u.events.push(["exit",t,u]),t},interrupt:b(y,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,v()},events:[],now:h,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let a;if("string"==typeof i)a=i;else switch(i){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,r.push(a)}return r.join("")}(p(e),t)},sliceStream:p,write:function(e){return a=Ds(a,e),function(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)m(t.charCodeAt(r._bufferIndex));else m(t)}}(),null!==a[a.length-1]?[]:(g(t,0),u.events=Kc(i,u.events,u),u.events)}};let d,f=t.tokenize.call(u,c);return t.resolveAll&&i.push(t),u;function p(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(n===o)a=[e[n].slice(r,i)];else{if(a=e.slice(n,o),r>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function h(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:i}}function m(e){s=void 0,d=e,f=f(e)}function y(e,t){t.restore()}function b(e,t){return function(n,o,i){let a,d,f,p;return Array.isArray(n)?y(n):"tokenize"in n?y([n]):(m=n,function(e){const t=null!==e&&m[e],n=null!==e&&m.null;return y([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});var m;function y(e){return a=e,d=0,0===e.length?i:b(e[d])}function b(e){return function(n){return p=function(){const e=h(),t=u.previous,n=u.currentConstruct,o=u.events.length,i=Array.from(l);return{from:o,restore:function(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=o,l=i,v()}}}(),f=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name)?w():e.tokenize.call(t?Object.assign(Object.create(u),t):u,c,g,w)(n)}}function g(t){return s=!0,e(f,p),o}function w(e){return s=!0,p.restore(),++d<a.length?b(a[d]):i}}}function g(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&Rs(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function v(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const bu=/[\0\t\n\r]/g;function gu(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}const vu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function wu(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return gu(n.slice(t?2:1),t?16:10)}return Wc(n)||e}const xu={}.hasOwnProperty;function ku(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(g),autolinkProtocol:u,autolinkEmail:u,atxHeading:o(m),blockQuote:o(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:o(h),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:o(h,i),codeText:o(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:o(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:o(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:o(y),hardBreakTrailing:o(y),htmlFlow:o(b,i),htmlFlowData:u,htmlText:o(b,i),htmlTextData:u,image:o(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:o(g),listItem:o(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:o(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:o(v),paragraph:o(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:o(m),strong:o(function(){return{type:"strong",children:[]}}),thematicBreak:o(function(){return{type:"thematicBreak"}})},exit:{atxHeading:l(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:l(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:l(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;n?(r=gu(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=Wc(t);this.stack[this.stack.length-1].value+=r},characterReference:function(e){this.stack.pop().position.end=Su(e.end)},codeFenced:l(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:l(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:l(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:d,data:d,definition:l(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Tc(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:l(),hardBreakEscape:l(f),hardBreakTrailing:l(f),htmlFlow:l(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:d,htmlText:l(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:d,image:l(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(vu,wu)}(t),n.identifier=Tc(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak)return n.children[n.children.length-1].position.end=Su(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),d.call(this,e))},link:l(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Tc(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:l(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:l(),thematicBreak:l()}};_u(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let o={type:"root",children:[]};const l={stack:[o],tokenStack:[],config:t,enter:a,exit:s,buffer:i,resume:c,data:n},u=[];let d=-1;for(;++d<e.length;)"listOrdered"!==e[d][1].type&&"listUnordered"!==e[d][1].type||("enter"===e[d][0]?u.push(d):d=r(e,u.pop(),d));for(d=-1;++d<e.length;){const n=t[e[d][0]];xu.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},l),e[d][1])}if(l.tokenStack.length>0){const e=l.tokenStack[l.tokenStack.length-1];(e[1]||Eu).call(l,void 0,e[0])}for(o.position={start:Su(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Su(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)o=t.transforms[d](o)||o;return o};function r(e,t,n){let r,o,i,a,l=t-1,s=-1,c=!1;for(;++l<=n;){const t=e[l];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||s||i||(i=l),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=l;for(o=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",o=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||l,0,["exit",r,t[2]]),l++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(l,0,["enter",o,t[2]]),l++,n++,i=void 0,a=!0}}}return e[t][1]._spread=c,n}function o(e,t){return function(n){a.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Su(t.start),end:void 0}}function l(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+ds({start:e.start,end:e.end})+"): it’s not open");r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Eu).call(this,e,r[0])),n.position.end=Su(e.end)}function c(){return function(e){return zs(e,"boolean"!=typeof Ls.includeImageAlt||Ls.includeImageAlt,"boolean"!=typeof Ls.includeHtml||Ls.includeHtml)}(this.stack.pop())}function u(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n={type:"text",value:""},n.position={start:Su(e.start),end:void 0},t.push(n)),this.stack.push(n)}function d(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Su(e.end)}function f(){this.data.atHardBreak=!0}function p(e){this.data.characterReferenceType=e.type}function h(){return{type:"code",lang:null,meta:null,value:""}}function m(){return{type:"heading",depth:0,children:[]}}function y(){return{type:"break"}}function b(){return{type:"html",value:""}}function g(){return{type:"link",title:null,url:"",children:[]}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(function(e){for(;!qs(e););return e}(function(e){const t={constructs:function(e){const t={};let n=-1;for(;++n<e.length;)Vs(t,e[n]);return t}([k,...(e||{}).extensions||[]]),content:n(ac),defined:[],document:n(lc),flow:n(fc),lazy:{},string:n(hc),text:n(mc)};return t;function n(e){return function(n){return yu(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,a){const l=[];let s,c,u,d,f;for(o=n+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(bu.lastIndex=u,s=bu.exec(o),d=s&&void 0!==s.index?s.index:o.length,f=o.charCodeAt(d),!s){n=o.slice(u);break}if(10===f&&u===d&&e)l.push(-3),e=void 0;else switch(e&&(l.push(-5),e=void 0),u<d&&(l.push(o.slice(u,d)),t+=d-u),f){case 0:l.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),l.push(-2);t++<c;)l.push(-1);break;case 10:l.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return a&&(e&&l.push(-5),n&&l.push(n),l.push(null)),l}}()(e,t,!0))))}function Su(e){return{line:e.line,column:e.column,offset:e.offset}}function _u(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?_u(e,r):Cu(e,r)}}function Cu(e,t){let n;for(n in t)if(xu.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Eu(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ds({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ds({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ds({start:t.start,end:t.end})+") is still open")}function Au(e){const t=this;t.parser=function(n){return ku(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const Tu="object"==typeof self?self:globalThis,ju=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,a]=t[o];switch(i){case 0:case-1:return n(a,o);case 1:{const e=n([],o);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),o);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new Tu[e](t),o)}case 8:return n(BigInt(a),o);case"BigInt":return n(Object(BigInt(a)),o)}return n(new Tu[i](a),o)};return r})(new Map,e)(0),Nu="",{toString:Ou}={},{keys:Pu}=Object,Iu=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Ou.call(e).slice(8,-1);switch(n){case"Array":return[1,Nu];case"Object":return[2,Nu];case"Date":return[3,Nu];case"RegExp":return[4,Nu];case"Map":return[5,Nu];case"Set":return[6,Nu]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Lu=([e,t])=>0===e&&("function"===t||"symbol"===t),zu=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[a,l]=Iu(r);switch(a){case 0:{let t=r;switch(l){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);t=null;break;case"undefined":return o([-1],r)}return o([a,t],r)}case 1:{if(l)return o([l,[...r]],r);const e=[],t=o([a,e],r);for(const t of r)e.push(i(t));return t}case 2:{if(l)switch(l){case"BigInt":return o([l,r.toString()],r);case"Boolean":case"Number":case"String":return o([l,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],s=o([a,n],r);for(const t of Pu(r))!e&&Lu(Iu(r[t]))||n.push([i(t),i(r[t])]);return s}case 3:return o([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([a,{source:e,flags:t}],r)}case 5:{const t=[],n=o([a,t],r);for(const[n,o]of r)(e||!Lu(Iu(n))&&!Lu(Iu(o)))&&t.push([i(n),i(o)]);return n}case 6:{const t=[],n=o([a,t],r);for(const n of r)!e&&Lu(Iu(n))||t.push(i(n));return n}}const{message:s}=r;return o([a,{name:l,message:s}],r)};return i})(!(t||n),!!t,new Map,r)(e),r},Mu="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?ju(zu(e,t)):structuredClone(e):(e,t)=>ju(zu(e,t));function Ru(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(37===i&&Ks(e.charCodeAt(n+1))&&Ks(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function Du(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Fu(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Bu=function(e){if(null==e)return Uu;if("function"==typeof e)return qu(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Bu(e[n]);return qu(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):function(e){const t=e;return qu(function(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0})}(e);if("string"==typeof e)return t=e,qu(function(e){return e&&e.type===t});var t;throw new Error("Expected function, string, or object as test")};function qu(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function Uu(){return!0}const Wu=[],Vu=!1;function Qu(e,t,n,r){let o,i,a;"function"==typeof t&&"function"!=typeof n?(i=void 0,a=t,o=n):(i=t,a=n,o=r),function(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=Bu(o),a=r?-1:1;!function e(o,l,s){const c=o&&"object"==typeof o?o:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,f=Wu;if((!t||i(o,l,s[s.length-1]||void 0))&&(f=function(e){return Array.isArray(e)?e:"number"==typeof e?[!0,e]:null==e?Wu:[e]}(n(o,s)),f[0]===Vu))return f;if("children"in o&&o.children){const t=o;if(t.children&&"skip"!==f[0])for(u=(r?t.children.length:-1)+a,d=s.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===Vu)return c;u="number"==typeof c[1]?c[1]:u+a}}return f}}(e,void 0,[])()}(e,i,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)},o)}function Hu(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&"text"===a.type?a.value+=r:o.push({type:"text",value:r}),o}function Ku(e){return e.spread??e.children.length>1}function $u(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(Yu(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(Yu(t.slice(o),o>0,!1)),i.join("")}function Yu(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const Gu={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=Ru(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let a,l=e.footnoteCounts.get(r);void 0===l?(l=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=i+1,l+=1,e.footnoteCounts.set(r,l);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,s);const c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Hu(e,t);const o={src:Ru(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:Ru(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Hu(e,t);const o={href:Ru(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:Ru(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Ku(n[r])}return t}(n):Ku(t),i={},a=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const e=r[l];(o||0!==l||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const s=r[r.length-1];s&&(o||"element"!==s.type||"p"!==s.tagName)&&a.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=cs(t.children[1]),a=ss(t.children[t.children.length-1]);i&&a&&(r.position={start:i,end:a}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length;let l=-1;const s=[];for(;++l<a;){const n=t.children[l],r={},a=i?i[l]:void 0;a&&(r.align=a);let c={type:"element",tagName:o,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),s.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:$u(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Xu,yaml:Xu,definition:Xu,footnoteDefinition:Xu};function Xu(){}const Ju={}.hasOwnProperty,Zu={};function ed(e,t){e.position&&(t.position=function(e){const t=cs(e),n=ss(e);if(t&&n)return{start:t,end:n}}(e))}function td(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&o&&Object.assign(n.properties,Mu(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function nd(e,t){const n=t.data||{},r=!("value"in t)||Ju.call(n,"hProperties")||Ju.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function rd(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function od(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function id(e,t){const n=function(e,t){const n=t||Zu,r=new Map,o=new Map,i=new Map,a={...Gu,...n.handlers},l={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=l.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=od(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=od(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:td,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:a,one:function(e,t){const n=e.type,r=l.handlers[n];if(Ju.call(l.handlers,n)&&r)return r(l,e,t);if(l.options.passThrough&&l.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=Mu(n);return r.children=l.all(e),r}return Mu(e)}return(l.options.unknownHandler||nd)(l,e,t)},options:n,patch:ed,wrap:rd};return Qu(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),l}(e,t),r=n.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Du,r=e.options.footnoteBackLabel||Fu,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let s=-1;for(;++s<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[s]);if(!o)continue;const i=e.all(o),a=String(o.identifier).toUpperCase(),c=Ru(a.toLowerCase());let u=0;const d=[],f=e.footnoteCounts.get(a);for(;void 0!==f&&++u<=f;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=i[i.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else i.push(...d);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(o,h),l.push(h)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Mu(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function ad(e,t){return e&&"run"in e?async function(n,r){const o=id(n,{file:r,...t});await e.run(o,r)}:function(n,r){return id(n,{file:r,...e||t})}}function ld(e){if(e)throw e}function sd(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}e();const cd=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');hd(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,l=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(o=i):(l=-1,o=a));return r===o?o=a:o<0&&(o=e.length),e.slice(r,o)},ud=function(e){if(hd(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},dd=function(e){hd(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const l=e.codePointAt(n);if(47!==l)r<0&&(t=!0,r=n+1),46===l?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}return i<0||r<0||0===a||1===a&&i===r-1&&i===o+1?"":e.slice(i,r)},fd=function(...e){let t,n=-1;for(;++n<e.length;)hd(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){hd(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,a=-1,l=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else{if(47===n)break;n=47}if(47===n){if(a===s-1||1===l);else if(a!==s-1&&2===l){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=s,l=0;continue}}else if(o.length>0){o="",i=0,a=s,l=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,s):o=e.slice(a+1,s),i=s-a-1;a=s,l=0}else 46===n&&l>-1?l++:l=-1}return o}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},pd="/";function hd(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const md=function(){return"/"};function yd(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const bd=["history","path","basename","stem","extname","dirname"];class gd{constructor(e){let t;t=e?yd(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":md(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<bd.length;){const e=bd[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)bd.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?cd(this.path):void 0}set basename(e){wd(e,"basename"),vd(e,"basename"),this.path=fd(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?ud(this.path):void 0}set dirname(e){xd(this.basename,"dirname"),this.path=fd(e||"",this.basename)}get extname(){return"string"==typeof this.path?dd(this.path):void 0}set extname(e){if(vd(e,"extname"),xd(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=fd(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){yd(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!yd(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),wd(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?cd(this.path,this.extname):void 0}set stem(e){wd(e,"stem"),vd(e,"stem"),this.path=fd(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new ms(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function vd(e,t){if(e&&e.includes(pd))throw new Error("`"+t+"` cannot be a path: did not expect `"+pd+"`")}function wd(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function xd(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const kd=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},Sd={}.hasOwnProperty;class _d extends kd{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...a){const l=e[++n];let s=-1;if(i)r(i);else{for(;++s<t.length;)null!==a[s]&&void 0!==a[s]||(a[s]=t[s]);t=a,l?function(e,t){let n;return function(...t){const i=e.length>t.length;let a;i&&t.push(r);try{a=e.apply(this,t)}catch(e){if(i&&n)throw e;return r(e)}i||(a&&a.then&&"function"==typeof a.then?a.then(o,r):a instanceof Error?r(a):o(a))};function r(e,...r){n||(n=!0,t(e,...r))}function o(e){r(null,e)}}(l,o)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){const t=new _d;let n=-1;for(;++n<this.attachers.length;){const e=this.attachers[n];t.use(...e)}return t.data(e()(!0,{},this.namespace)),t}data(e,t){return"string"==typeof e?2===arguments.length?(Td("data",this.frozen),this.namespace[e]=t,this):Sd.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Td("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Od(e),n=this.parser||this.Parser;return Ed("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Ed("process",this.parser||this.Parser),Ad("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=Od(e),a=n.parse(i);function l(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(a,i,function(e,t,r){if(e||!t||!r)return l(e);const o=t,i=n.stringify(o,r);var a;"string"==typeof(a=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(a)?r.value=i:r.result=i,l(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),Ed("processSync",this.parser||this.Parser),Ad("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,ld(e),t=r}),Nd("processSync","process",n),t}run(e,t,n){jd(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const a=Od(t);r.run(e,a,function(t,r,a){const l=r||e;t?i(t):o?o(l):n(void 0,l,a)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){ld(e),n=t,r=!0}),Nd("runSync","run",r),n}stringify(e,t){this.freeze();const n=Od(t),r=this.compiler||this.Compiler;return Ad("stringify",r),jd(e),r(e,n)}use(t,...n){const r=this.attachers,o=this.namespace;if(Td("use",this.frozen),null==t);else if("function"==typeof t)s(t,n);else{if("object"!=typeof t)throw new TypeError("Expected usable value, not `"+t+"`");Array.isArray(t)?l(t):a(t)}return this;function i(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else a(e)}}function a(t){if(!("plugins"in t)&&!("settings"in t))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(t.plugins),t.settings&&(o.settings=e()(!0,o.settings,t.settings))}function l(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)i(e[t])}}function s(t,n){let o=-1,i=-1;for(;++o<r.length;)if(r[o][0]===t){i=o;break}if(-1===i)r.push([t,...n]);else if(n.length>0){let[o,...a]=n;const l=r[i][1];sd(l)&&sd(o)&&(o=e()(!0,l,o)),r[i]=[t,o,...a]}}}}const Cd=(new _d).freeze();function Ed(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Ad(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Td(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function jd(e){if(!sd(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Nd(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Od(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new gd(e)}const Pd=[],Id={allowDangerousHtml:!0},Ld=/^(https?|ircs?|mailto|xmpp)$/i,zd=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Md(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,i=e.components,l=e.disallowedElements,s=e.rehypePlugins||Pd,c=e.remarkPlugins||Pd,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Id}:Id,d=e.skipHtml,f=e.unwrapDisallowed,p=e.urlTransform||Rd,h=Cd().use(Au).use(c).use(ad,u).use(s),m=new gd;"string"==typeof r&&(m.value=r);for(const t of zd)Object.hasOwn(e,t.from)&&wl((t.from,t.to&&t.to,t.id));const y=h.parse(m);let b=h.runSync(y,m);return o&&(b={type:"element",tagName:"div",properties:{className:o},children:"root"===b.type?b.children:[b]}),Qu(b,function(e,r,o){if("raw"===e.type&&o&&"number"==typeof r)return d?o.children.splice(r,1):o.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in Is)if(Object.hasOwn(Is,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Is[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=p(String(n||""),t,e))}}if("element"===e.type){let i=t?!t.includes(e.tagName):!!l&&l.includes(e.tagName);if(!i&&n&&"number"==typeof r&&(i=!n(e,r,o)),i&&o&&"number"==typeof r)return f&&e.children?o.children.splice(r,1,...e.children):o.children.splice(r,1),r}}),function(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return function(n,r,o,i){const a=Array.isArray(o.children),l=cs(n);return t(r,o,i,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");o=t.jsx,i=t.jsxs,r=function(e,t,n,r){const a=Array.isArray(n.children)?i:o;return r?a(t,n,r):a(t,n)}}var o,i;const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?es:Zl,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},l=Ss(a,e,void 0);return l&&"string"!=typeof l?l:a.create(e,a.Fragment,{children:l||void 0},void 0)}(b,{Fragment:a().Fragment,components:i,ignoreInvalidStyle:!0,jsx:a().jsx,jsxs:a().jsxs,passKeys:!0,passNode:!0})}function Rd(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t<0||o>-1&&t>o||n>-1&&t>n||r>-1&&t>r||Ld.test(e.slice(0,t))?e:""}var Dd=function(){return Dd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Dd.apply(this,arguments)},Fd=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Bd=function(e){var t=e.href,n=e.children,r=Fd(e,["href","children"]);return(null==t?void 0:t.startsWith("#"))?(0,a().jsx)("a",Dd({href:t,onClick:function(e){return function(e,t){e.preventDefault();var n=t.substring(1),r=document.getElementById(n);r&&r.scrollIntoView({behavior:"smooth"})}(e,t)}},r,{children:n})):(0,a().jsx)("a",Dd({href:t,target:"_blank",rel:"noopener noreferrer"},r,{children:n}))},qd=function(e){return"string"!=typeof e?"":e.toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-")},Ud=function(e){return l().Children.toArray(e).map(function(e){return"string"==typeof e?e:"object"==typeof e&&"props"in e&&e.props.children?"string"==typeof e.props.children?e.props.children:Ud(e.props.children):""}).join("")},Wd=function(e){var t=e.children,n=Fd(e,["children"]),r=Ud(t),o=qd(r);return(0,a().jsx)("h1",Dd({id:o},n,{children:t}))},Vd=function(e){var t=e.children,n=Fd(e,["children"]),r=Ud(t),o=qd(r);return(0,a().jsx)("h2",Dd({id:o},n,{children:t}))},Qd=function(e){var t=e.children,n=Fd(e,["children"]),r=Ud(t),o=qd(r);return(0,a().jsx)("h3",Dd({id:o},n,{children:t}))},Hd=function(e){var t=e.children,n=Fd(e,["children"]),r=Ud(t),o=qd(r);return(0,a().jsx)("h4",Dd({id:o},n,{children:t}))},Kd=function(e){var t=e.children,n=Fd(e,["children"]),r=Ud(t),o=qd(r);return(0,a().jsx)("h5",Dd({id:o},n,{children:t}))},$d=function(e){var t=e.children,n=Fd(e,["children"]),r=Ud(t),o=qd(r);return(0,a().jsx)("h6",Dd({id:o},n,{children:t}))},Yd=function(){return Yd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Yd.apply(this,arguments)},Gd=function(){return(0,a().jsxs)("div",{className:"animate-pulse space-y-4",children:[(0,a().jsx)("div",{className:"h-24 bg-slate-200 rounded w-3/4 my-16"}),(0,a().jsx)("div",{className:"h-16 bg-slate-200 rounded w-1/2"}),(0,a().jsxs)("div",{className:"space-y-2 my-4",children:[(0,a().jsx)("div",{className:"h-12 bg-slate-200 rounded"}),(0,a().jsx)("div",{className:"h-12 bg-slate-200 rounded w-11/12"}),(0,a().jsx)("div",{className:"h-12 bg-slate-200 rounded w-4/5"}),(0,a().jsx)("div",{className:"h-12 bg-slate-200 rounded w-9/12"})]})]})};function Xd(e){e.browserName,e.osName;var t=l().lazy(function(){return n.e(937).then(()=>n(937)).then(function(e){return{default:function(){return(0,a().jsx)(Md,{components:{a:Bd,h1:Wd,h2:Vd,h3:Qd,h4:Hd,h5:Kd,h6:$d,img:function(e){return(0,a().jsx)("img",Yd({alt:e.alt||""},e))}},children:e.default})}}})});return(0,a().jsx)("div",{className:"prose prose-sm max-w-none markdown-content",children:(0,a().jsx)(l().Suspense,{fallback:(0,a().jsx)(Gd,{}),children:(0,a().jsx)(t,{})})})}const Jd=Go("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Zd(e){var t=e.open,n=e.onOpenChange,r=e.title,o=e.children,i=(0,l().useMemo)(function(){return ll()},[]),s=function(e){n(e)};return(0,a().jsx)(ia,{isOpen:t,modalClassName:"rounded-lg max-w-[90%] max-h-[95%]",onClick:function(e){e.target===e.currentTarget&&s(!1)},children:(0,a().jsxs)("div",{className:"rounded-lg w-full h-full p-16 z-[100] bg-white overflow-y-auto relative",children:[(0,a().jsx)("button",{className:"absolute top-5 right-5 text-gray-500 hover:text-gray-800",onClick:function(){return s(!1)},"aria-label":"Close",children:(0,a().jsx)(Jd,{})}),(0,a().jsx)("div",{className:"mb-6",children:(0,a().jsx)("h2",{className:"text-2xl font-bold",children:r})}),o,(0,a().jsx)("div",{className:"my-4 mt-6",children:(0,a().jsxs)("div",{className:"flex flex-wrap items-center text-sm",children:[(0,a().jsxs)("div",{className:"flex flex-col mr-6",children:[(0,a().jsx)("span",{className:"font-bold text-base-500",children:"Browser"}),(0,a().jsx)("span",{className:"text-gray-900",children:null==i?void 0:i.name})]}),(0,a().jsxs)("div",{className:"flex flex-col mr-6",children:[(0,a().jsx)("span",{className:"font-bold text-base-500",children:"Version"}),(0,a().jsx)("span",{className:"text-gray-900",children:null==i?void 0:i.version})]}),(0,a().jsxs)("div",{className:"flex flex-col",children:[(0,a().jsx)("span",{className:"font-bold text-base-500",children:"Supported"}),(0,a().jsx)("span",{className:"text-gray-900 ".concat((null==i?void 0:i.isSupported)?"text-green-600":"text-red-600"),children:(null==i?void 0:i.isSupported)?"Yes":"No"})]})]})})]})})}function ef(e){var t=e.bgClassName,n=void 0===t?"":t,r=e.ringClassName,o=void 0===r?"":r,i=e.loaderClassName,s=void 0===i?"":i,c=e.size,u=void 0===c?"md":c;(0,l().useEffect)(function(){var e=document.createElement("style");return e.textContent="\n @keyframes spin {\n to {\n transform: rotate(360deg);\n }\n }\n ",document.head.appendChild(e),function(){document.head.removeChild(e)}},[]);var d={sm:"h-12 w-12",md:"h-16 w-16",lg:"h-20 w-20",xl:"h-24 w-24"}[u];return(0,a().jsx)("div",{className:"flex items-center justify-center pr-4 ".concat(n),children:(0,a().jsxs)("div",{className:"relative ".concat(d),children:[(0,a().jsx)("div",{className:"absolute inset-0 rounded-full border-4 border-[#0080FF] opacity-25 ".concat(o)}),(0,a().jsx)("div",{className:"absolute inset-0 rounded-full border-4 border-transparent border-t-[#0080FF] animate-[spin_1s_linear_infinite] ".concat(s)})]})})}const tf=n.p+"images/wavy-check-icon03024c5d442da3732883.svg";var nf=n(5525),rf={};rf.styleTagTransform=Z()(),rf.setAttributes=X()(),rf.insert=G()().bind(null,"head"),rf.domAPI=Y()(),rf.insertStyleElement=J()(),$()()(nf.A,rf);const of=nf.A&&nf.A.locals?nf.A.locals:void 0,af=function(e){var t=e.stepNumber,n=e.title,r=e.description,o=void 0===r?"":r,i=e.status,l=void 0===i?"pending":i;return(0,a().jsxs)("div",{className:"flex items-center gap-4",children:["completed"===l?(0,a().jsx)("img",{src:tf,className:"text-white w-20 h-20 mr-4",alt:"Wavy check icon"}):"error"===l?(0,a().jsx)(ua,{className:"text-red-500 w-20 h-20 mr-4"}):(0,a().jsx)(ef,{size:"lg"}),(0,a().jsxs)("div",{children:[(0,a().jsxs)("div",{className:"text-xs text-base-500 ".concat(of.stepNumber),children:["STEP ",t]}),(0,a().jsx)("h2",{className:"text-2xl font-bold mt-1 text-base-700",children:n}),(0,a().jsx)("p",{className:"text-sm text-base-200 italic mt-2",children:o})]})]})},lf=Go("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);var sf={screenShare:{message:"Disqualified in",time:45},cameraShare:{message:"Disqualified in",time:45},mobileCameraShare:{message:"Disqualified in",time:120},compatibilityChecks:{message:"Disqualified in",time:45},identityVerification:{message:"Disqualified in",time:45}};const cf=function(e){var t,n,r,o=e.activeStep,i=e.modalOpen,s=e.failingSteps,c=e.beepConfig,u=(0,l().useMemo)(function(){return s.length?Math.max.apply(Math,s.map(function(e){return sf[e].time})):sf[o].time},[s,o]),d=sf[o].message,f=ro(fo),p=(0,l().useState)(u),h=p[0],m=p[1],y=(0,l().useRef)(null),b=function(){y.current&&(y.current.pause(),y.current.currentTime=0)};return(0,l().useEffect)(function(){m(u)},[i,u]),(0,l().useEffect)(function(){return(null==c?void 0:c.enabled)&&c.sounds&&c.sounds[o]&&function(e){if(e&&"string"==typeof e&&""!==e.trim()){y.current&&(y.current.pause(),y.current.currentTime=0);try{y.current=new Audio(e),y.current.loop=!0,y.current.addEventListener("error",function(){}),y.current.play().catch(function(){})}catch(e){}}}(c.sounds[o]),b},[o,c]),(0,l().useEffect)(function(){if(h<=0)return null==f||f.disqualifyUser(),void b();var e=setInterval(function(){m(function(e){return e-1})},1e3);return function(){return clearInterval(e)}},[h,f]),(0,a().jsxs)("div",{className:"relative rounded-t-lg w-full text-white flex flex-row items-center justify-center",children:[(0,a().jsxs)("div",{className:"py-2 relative flex flex-row items-center uppercase font-bold text-center text-black text-sm z-40 tracking-widest",children:[d,(0,a().jsxs)("span",{className:"ml-4 inline-flex items-center gap-1 text-base font-bold",children:[(0,a().jsx)(lf,{className:"h-6 w-6 font-bold"}),(t=h,n=Math.floor(t/60),r=t%60,"".concat(n.toString().padStart(2,"0"),":").concat(r.toString().padStart(2,"0")))]})]}),(0,a().jsx)("div",{className:"absolute top-0 left-0 h-full w-full bg-[#FFEBEF] rounded-t-2xl overflow-hidden",children:(0,a().jsx)("div",{className:"h-full bg-red-700 transition-all duration-1000 ease-linear",style:{width:"".concat(100-h/u*100,"%")}})})]})};var uf,df=(uf=function(e,t){return uf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},uf(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}uf(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ff=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((r=r.apply(e,t||[])).next())})},pf=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}},hf=function(e){function t(t,n,r){void 0===r&&(r=null);var o=e.call(this,t)||this;return o.name="IdentityApiError",o.status=n,o.identity=r,o}return df(t,e),t}(Error),mf=function(e,t){return ff(void 0,[e,t],void 0,function(e,t){var n,r,o,i=t.token,a=t.method,l=void 0===a?"GET":a,s=t.body;return pf(this,function(t){switch(t.label){case 0:return[4,fetch(e,{method:l,headers:{"Content-Type":"application/json","X-Session-Token":i},body:void 0===s?void 0:JSON.stringify(s)})];case 1:return[4,(n=t.sent()).json().catch(function(){return{}})];case 2:if(r=t.sent(),!n.ok)throw new hf((null==r?void 0:r.error)||"request_failed",n.status,null!==(o=null==r?void 0:r.identity)&&void 0!==o?o:null);return[2,r]}})})},yf=function(e){return ff(void 0,[e],void 0,function(e){var t=e.baseUrl,n=e.token;return pf(this,function(e){switch(e.label){case 0:return[4,mf("".concat(t,"/api/v1/proctoring/identity/status"),{token:n})];case 1:return[2,e.sent().identity]}})})},bf=function(e){return ff(void 0,[e],void 0,function(e){var t,n,r,o,i=e.baseUrl,a=e.token,l=e.image,s=e.fileName;return pf(this,function(e){switch(e.label){case 0:return t=l.type||"image/jpeg",[4,mf("".concat(i,"/api/v1/proctoring/assets/ppd"),{token:a,method:"POST",body:{record_type:"identity",file_name:s,file_type:t}})];case 1:return n=e.sent().signed_s3_post,(r=new FormData).append("key",n.key),r.append("acl",n.acl),r.append("x-amz-algorithm",n.x_amz_algorithm),r.append("x-amz-credential",n.x_amz_credential),r.append("x-amz-date",n.x_amz_date),r.append("x-amz-signature",n.x_amz_signature),r.append("policy",n.policy),r.append("Content-Type",t),r.append("file",l,s),[4,fetch("https://".concat(n.bucket_name,".").concat(n.s3_region_endpoint,"/"),{method:"POST",body:r})];case 2:if(!(o=e.sent()).ok)throw new hf("upload_failed",o.status);return[2]}})})},gf=function(e){return ff(void 0,[e],void 0,function(e){var t=e.baseUrl,n=e.token,r=e.fileName,o=e.idempotencyKey,i=e.signals;return pf(this,function(e){switch(e.label){case 0:return[4,mf("".concat(t,"/api/v1/proctoring/identity/verifications"),{token:n,method:"POST",body:{file_name:r,idempotency_key:o,signals:i}})];case 1:return[2,e.sent().identity]}})})},vf=function(e){return ff(void 0,[e],void 0,function(e){var t,n,r=e.baseUrl,o=e.token,i=e.image,a=e.now,l=void 0===a?Date.now():a,s=e.idempotencyKey,c=void 0===s?function(){var e,t,n;return null!==(n=null===(t=null===(e=globalThis.crypto)||void 0===e?void 0:e.randomUUID)||void 0===t?void 0:t.call(e))&&void 0!==n?n:"".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2))}():s,u=e.signals;return pf(this,function(e){switch(e.label){case 0:return t="identity_".concat(l,".jpeg"),[4,bf({baseUrl:r,token:o,image:i,fileName:t})];case 1:e.sent(),e.label=2;case 2:return e.trys.push([2,4,,5]),[4,gf({baseUrl:r,token:o,fileName:t,idempotencyKey:c,signals:u})];case 3:return[2,e.sent()];case 4:if((n=e.sent())instanceof hf&&n.identity)return[2,n.identity];throw n;case 5:return[2]}})})},wf=function(e){return ff(void 0,[e],void 0,function(e){var t,n=e.baseUrl,r=e.token,o=e.signals;return pf(this,function(e){switch(e.label){case 0:return[4,mf("".concat(n,"/api/v1/proctoring/identity/liveness/nonce"),{token:r,method:"POST",body:{signals:o}})];case 1:return[2,{nonce:(t=e.sent()).nonce,livenessUrl:t.liveness_url}]}})})},xf=function(e){return ff(void 0,[e],void 0,function(e){var t=e.baseUrl,n=e.token,r=e.version;return pf(this,function(e){switch(e.label){case 0:return[4,mf("".concat(t,"/api/v1/proctoring/identity/consent"),{token:n,method:"POST",body:{version:r}})];case 1:return[2,e.sent().identity]}})})},kf=function(e){return ff(void 0,[e],void 0,function(e){var t=e.baseUrl,n=e.token,r=e.signals;return pf(this,function(e){switch(e.label){case 0:return[4,mf("".concat(t,"/api/v1/proctoring/identity/camera_signals"),{token:n,method:"POST",body:{signals:r}})];case 1:return e.sent(),[2]}})})},Sf=function(){return Sf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Sf.apply(this,arguments)},_f="Let us check if it is really you",Cf="We will do a short live video check to make sure you are really there, then match your face with the photo on your Scaler record. This takes about 20 seconds.",Ef="Follow the instructions on your screen and keep your face in the oval until it finishes.",Af="Your scan is kept securely for exam records and deleted after 90 days.",Tf="I agree to a face check.",jf="You need to agree to the face check to take this test. If you have questions, contact support.",Nf=["Sit in a well-lit place, facing the light.","Turn your screen brightness up.","Keep your face inside the oval and hold still until it finishes."],Of="The screen flashes different colours during the check. Take care if you are sensitive to flashing light.",Pf="I confirm that I am the person taking this test. If this is not true, the exam team can cancel my test.",If=function(e){return Boolean(null==e?void 0:e.startsWith("liveness_"))&&"liveness_no_frame"!==e},Lf=function(e){return"mismatch"===e||"attempts_exhausted"===e},zf=function(e){if(Lf(e))return"Face verification failed. Please try again in better light.";if(If(e))return"We could not confirm you are really there. Please follow the instructions on screen.";var t=yo(e);return t===yo(null)?"Your face was not fully visible. Please try again.":t},Mf=function(e){return Lf(e)?{body:"Your photo did not match the photo we have for you.",tip:"Sit where there is more light. Turn towards the light. Keep your whole face in the oval."}:If(e)?{body:"We could not confirm a live person in front of the camera.",tip:"Keep your face in the oval and hold still while the screen changes colour. Do not use a photo or a screen."}:{body:"We could not see your face clearly.",tip:"Face the camera in good light and keep your whole face in the oval."}},Rf=function(e,t){var n=null==t?void 0:t.max_attempts;return n&&"number"==typeof e.attempts_remaining?{attemptsUsed:Math.max(n-e.attempts_remaining,0),attemptsLeft:e.attempts_remaining}:{attemptsUsed:null,attemptsLeft:null}},Df=function(e,t){return void 0===t&&(t={}),Sf({state:e,tone:"pending",title:"",body:"",banner:"",tip:"",bullets:[],attemptsUsed:null,attemptsLeft:null,referenceId:null,canRetry:!1,canProceed:!1},t)},Ff=function(e,t){var n,r,o;if(!e)return Df("loading");if("not_required"===e.status||"skipped"===e.status)return Df("skip",{tone:"completed",title:"Identity verification not needed",canProceed:!0});if("manually_verified"===e.status)return Df("manually_verified",{tone:"completed",title:"Your identity was confirmed by the exam team",body:"A member of the exam team checked that it is you, so you can continue to the next step.",canProceed:!0});if((null===(n=e.consent)||void 0===n?void 0:n.required)&&!e.consent.given)return Df("consent",{title:_f,body:Cf});switch(e.status){case"pending":return Df("analysing",{title:"Checking that it is you…"});case"verified":return Df("verified",{tone:"completed",title:"Face scan complete",body:"Your face matches the photo on your record.",canProceed:!0});case"captured":return Df("captured",{tone:"completed",title:"Face scan complete",body:"Your check is recorded. It will be matched with your Scaler record once your photo is on file.",canProceed:!0});case"retry":return Df("attempt_failed",Sf(Sf(Sf(Sf({tone:"error",title:"Face verification failed"},Mf(e.reason)),{banner:zf(e.reason)}),Rf(e,t)),{canRetry:!0,canProceed:e.allowed}));case"failed":return e.allowed?Df("attempt_failed",Sf(Sf({tone:"error",title:"Face verification failed"},Mf(e.reason)),{banner:zf(e.reason),canProceed:!0})):Df("blocked",{tone:"error",title:"We could not verify you",body:"You cannot start the test now. Please contact support.",banner:"We could not check it is you. You have no attempts left.",bullets:["Contact support and quote your reference ID","Do not open the test again. Your attempts do not reset"],referenceId:null!==(r=e.reference_id)&&void 0!==r?r:null});case"blocked":return Df("blocked",{tone:"error",title:"We could not verify you",body:"There is no photo on your Scaler record to match. Please contact support.",banner:"We could not check it is you.",bullets:["Contact support and quote your reference ID"],referenceId:null!==(o=e.reference_id)&&void 0!==o?o:null});case"engine_error":return Df("service_error",Sf(Sf({title:"The face check is not working",body:"This is not your mistake. You did not use an attempt. Please try again in a minute.",banner:"The check is not working right now."},Rf(e,t)),{canRetry:!0,canProceed:e.allowed}));default:return Df("capture",{title:_f,canProceed:e.allowed})}},Bf=[/\bobs\b/i,/manycam/i,/snap camera/i,/xsplit/i,/camtwist/i,/splitcam/i,/e2esoft/i,/\bvirtual\b/i],qf=function(e){return Boolean(e)&&Bf.some(function(t){return t.test(e)})},Uf=function(e,t){return void 0===t&&(t=navigator),{camera_label:null!=e?e:"",virtual_camera:qf(e),webdriver:!0===t.webdriver,headless:/HeadlessChrome/.test(t.userAgent)}};const Wf=Go("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),Vf=Go("CloudOff",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5.782 5.782A7 7 0 0 0 9 19h8.5a4.5 4.5 0 0 0 1.307-.193",key:"yfwify"}],["path",{d:"M21.532 16.5A4.5 4.5 0 0 0 17.5 10h-1.79A7.008 7.008 0 0 0 10 5.07",key:"jlfiyv"}]]);var Qf=function(e,t){return"".concat(e,"/identity-media/").concat(t)},Hf=function(e){var t=e.banner,n=e.children;return(0,a().jsxs)("div",{className:"w-full overflow-hidden rounded-2xl border border-gray-200 bg-white shadow-[0px_2px_14px_0px_rgba(16,24,40,0.05)]",children:[t&&(0,a().jsxs)("div",{className:"flex min-h-[4.6rem] items-center justify-center gap-2 bg-red-100 px-6 py-3 text-center text-base font-semibold text-red-500",children:[(0,a().jsx)(ua,{className:"h-[1.8rem] w-[1.8rem] shrink-0"}),t]}),(0,a().jsx)("div",{className:"px-10 pb-10 pt-8",children:n})]})},Kf=function(e){var t=e.children;return(0,a().jsx)("div",{className:"grid grid-cols-2 gap-6",children:t})},$f=function(e){var t=e.children;return(0,a().jsx)("div",{className:"grid grid-cols-[34rem_1fr] items-center gap-12",children:t})},Yf={searching:"border-dashed border-gray-400",framed:"border-scaler-500",done:"border-green-600",failed:"border-red-500"},Gf=function(e){var t=e.ring,n=e.pill,r=e.pillTone,o=void 0===r?"neutral":r,i=e.live,l=void 0!==i&&i,s=e.children;return(0,a().jsxs)("div",{className:"relative aspect-[4/3] w-full overflow-hidden rounded-lg bg-[#141A24]",children:[s,(0,a().jsx)("div",{className:"pointer-events-none absolute left-1/2 top-[47%] aspect-[3/4] h-[78%] -translate-x-1/2 -translate-y-1/2 rounded-[50%] border-4 shadow-[0_0_0_9999px_rgba(11,27,58,0.55)] ".concat(Yf[t])}),l&&(0,a().jsxs)("span",{className:"absolute right-4 top-4 flex items-center gap-2 rounded-full bg-[rgba(11,27,58,0.82)] px-3 py-1 text-xs font-bold text-white",children:[(0,a().jsx)("span",{className:"h-2 w-2 rounded-full bg-green-500"}),"Your camera"]}),n&&(0,a().jsx)("span",{className:"absolute bottom-4 left-1/2 max-w-[88%] -translate-x-1/2 rounded-full px-4 py-2 text-center text-sm font-bold text-white ".concat("error"===o?"bg-red-500/90":"bg-[rgba(11,27,58,0.82)]"),children:n})]})},Xf=function(e){var t=e.spinner,n=void 0===t||t,r=e.children;return(0,a().jsxs)("div",{className:"flex h-full min-h-[15rem] flex-col items-center justify-center gap-4 rounded-2xl bg-gray-100 p-6 text-center",children:[n&&(0,a().jsx)(Wf,{className:"h-10 w-10 animate-spin text-scaler-500"}),(0,a().jsx)("span",{className:"max-w-[34ch] text-base text-base-500",children:r})]})},Jf=function(e){var t=e.rows;return(0,a().jsx)("ul",{className:"mt-5 overflow-hidden rounded-xl border border-gray-200",children:t.map(function(e){return(0,a().jsxs)("li",{className:"flex min-h-[7.2rem] items-center gap-5 border-b border-gray-200 px-6 py-3 last:border-b-0",children:[(0,a().jsx)(ni,{className:"h-[2.2rem] w-[2.2rem] shrink-0 text-white fill-green-600"}),(0,a().jsx)("span",{className:"text-base text-base-700",children:e})]},e)})})},Zf=function(e){var t=e.title,n=e.sub,r=e.done,o=void 0!==r&&r;return(0,a().jsxs)("div",{className:"flex items-start gap-3",children:[o&&(0,a().jsx)(ni,{className:"mt-1 h-[2rem] w-[2rem] shrink-0 text-white fill-green-600"}),(0,a().jsxs)("div",{children:[(0,a().jsx)("h3",{className:"text-xl font-bold text-base-700",children:t}),n&&(0,a().jsx)("p",{className:"mt-2 text-base leading-relaxed text-base-500",children:n})]})]})},ep=function(e){var t=e.label,n=e.value;return(0,a().jsxs)("div",{className:"mt-6 flex items-center justify-between rounded-md bg-gray-50 px-5 py-3 text-base text-base-500",children:[(0,a().jsx)("span",{children:t}),null!=n&&(0,a().jsx)("span",{className:"font-bold text-base-700",children:n})]})},tp=function(e){var t=e.onOpen;return(0,a().jsxs)("p",{className:"mt-4 flex items-center gap-2 text-base font-bold text-base-700",children:[(0,a().jsx)(ya,{className:"h-[1.8rem] w-[1.8rem] shrink-0"}),(0,a().jsx)("button",{type:"button",className:"text-scaler-500 underline underline-offset-2",onClick:t,children:"See how the face verification works"})]})},np=function(e){var t=e.tip,n=e.onOpenGuide;return(0,a().jsxs)("div",{className:"mt-5 rounded-md bg-gray-50 px-5 py-4 text-base leading-relaxed text-base-700",children:[(0,a().jsx)("b",{children:"What to do"}),(0,a().jsx)("br",{}),t,(0,a().jsx)(tp,{onOpen:n})]})},rp=function(e){var t=e.tone,n=e.baseUrl,r={info:"bg-scaler-100",success:"bg-green-50",error:"bg-red-100",neutral:"bg-gray-100"}[t];return(0,a().jsx)("div",{className:"flex items-center justify-center rounded-lg p-8 ".concat(r),children:(0,a().jsxs)("div",{className:"relative rounded-lg bg-white p-4",children:[(0,a().jsx)("img",{src:Qf(n,"illus-hero.jpg"),alt:"",className:"block h-auto w-full max-w-[26rem] rounded-md"}),"success"===t&&(0,a().jsx)(ni,{className:"absolute bottom-3 right-3 h-12 w-12 rounded-full bg-white text-white fill-green-600"}),"error"===t&&(0,a().jsx)(ua,{className:"absolute bottom-3 right-3 h-12 w-12 rounded-md bg-white p-1 text-red-500"}),"neutral"===t&&(0,a().jsx)(Vf,{className:"absolute bottom-3 right-3 h-12 w-12 rounded-md bg-white p-1 text-gray-500"})]})})},op=function(e){var t=e.onOpen;return(0,a().jsxs)("p",{className:"mt-6 text-center text-sm font-semibold text-base-500",children:[(0,a().jsx)(ya,{className:"mb-1 mr-2 inline-block h-6 w-6"}),"Need help?"," ",(0,a().jsx)("button",{type:"button",className:"text-scaler-500 underline",onClick:t,children:"Click to view"})," ","face verification guide"]})};const ip=function(e){var t=e.baseUrl,n=e.livenessOn,r=e.onOpenGuide;return(0,a().jsx)(Hf,{children:(0,a().jsxs)($f,{children:[(0,a().jsx)(rp,{tone:"info",baseUrl:t}),(0,a().jsxs)("div",{children:[(0,a().jsx)("h3",{className:"text-xl font-bold text-base-700",children:_f}),(0,a().jsx)("p",{className:"mt-3 text-base leading-relaxed text-base-500",children:Cf}),n?(0,a().jsxs)(a().Fragment,{children:[(0,a().jsx)("ul",{className:"mt-3 list-disc space-y-1 pl-5 text-base leading-relaxed text-base-500",children:Nf.map(function(e){return(0,a().jsx)("li",{children:e},e)})}),(0,a().jsxs)("p",{className:"mt-4 flex items-start gap-2 rounded-md bg-scaler-100 px-4 py-3 text-sm text-base-700",children:[(0,a().jsx)(ua,{className:"mt-0.5 h-[1.6rem] w-[1.6rem] shrink-0 text-scaler-500"}),Of]})]}):(0,a().jsx)("p",{className:"mt-3 text-base leading-relaxed text-base-500",children:Ef}),(0,a().jsx)(ep,{label:Af}),(0,a().jsx)(tp,{onOpen:r})]})]})})},ap=function(e){var t=e.url,n=e.nonce,r=e.traceparent,o=e.onDone,i=e.className,s=void 0===i?"mt-8 w-full max-w-2xl h-[640px]":i,c=(0,l().useRef)(null),u=new URL(t).origin;return(0,l().useEffect)(function(){var e=function(e){var t,i,a;if(e.origin===u&&e.source===(null===(t=c.current)||void 0===t?void 0:t.contentWindow)){var l=e.data||{};"proctoring-liveness"===l.source&&1===l.version&&("ready"===l.type?null===(a=null===(i=c.current)||void 0===i?void 0:i.contentWindow)||void 0===a||a.postMessage({type:"start",version:1,nonce:n,traceparent:null!=r?r:void 0},u):"complete"===l.type?o({type:"complete"}):"error"===l.type?o({type:"error",code:String(l.code||"liveness_error"),message:l.message?String(l.message):void 0}):"close"===l.type&&o({type:"close"}))}};return window.addEventListener("message",e),function(){return window.removeEventListener("message",e)}},[u,n,r,o]),(0,a().jsx)("iframe",{ref:c,src:t,title:"Liveness check",allow:"camera",className:"".concat(s," rounded-lg border border-base-200 bg-white")})},lp=function(e){var t=e.baseUrl,n=e.isOpen,r=e.onClose;return(0,a().jsxs)(ia,{isOpen:n,modalClassName:"relative w-full max-w-xl p-8",children:[(0,a().jsx)("button",{type:"button","aria-label":"Close",className:"absolute top-4 right-4 text-base-500",onClick:r,children:(0,a().jsx)(Jd,{className:"w-6 h-6"})}),(0,a().jsx)("h3",{className:"text-xl font-bold text-base-700",children:"How to position your face"}),(0,a().jsx)("p",{className:"mt-2 text-base text-base-500",children:"Follow the steps shown. Make sure your face is centred, well lit, and fully visible."}),(0,a().jsx)("video",{className:"mt-6 w-full rounded-lg",src:Qf(t,"positioning-reference.mp4"),poster:Qf(t,"positioning-reference.jpg"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0}),(0,a().jsx)(Pa,{variant:"primary",size:"lg",className:"mt-6 w-full",onClick:r,children:"Start face scan"})]})};var sp=function(){return sp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},sp.apply(this,arguments)},cp=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((r=r.apply(e,t||[])).next())})},up=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}},dp=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},fp="identityVerification",pp=function(e){return new Promise(function(t,n){var r,o=document.createElement("canvas");o.width=e.videoWidth,o.height=e.videoHeight,null===(r=o.getContext("2d"))||void 0===r||r.drawImage(e,0,0,o.width,o.height),o.toBlob(function(e){return e?t(e):n(new Error("capture_failed"))},"image/jpeg",.9)})};const hp=function(e){var t=e.isOpen,n=e.onClose,r=e.onProceed;return l().createElement(ia,{containerClassName:"rounded-2xl",isOpen:t,modalClassName:"p-12 flex flex-col max-w-[700px] relative"},l().createElement("heading",{className:"text-2xl mb-1 font-bold"},"Mobile Camera Positioning Reference"),l().createElement("article",{className:"text-gray-500 text-sm/7 mb-4"},"Please watch the video and follow the steps to position your mobile correctly. Make sure your head, hands and workspace are clearly visible as shown"),l().createElement("div",{className:"relative w-full aspect-video rounded-lg overflow-hidden bg-gray-100 my-9"},l().createElement("video",{className:"w-full h-full object-cover",controls:!1,autoPlay:!0,loop:!0,playsInline:!0},l().createElement("source",{src:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/105/009/original/DCP_flow_segment.mp4",type:"video/mp4"}),"Your browser does not support the video tag.")),l().createElement("div",{className:"flex-row"},l().createElement(Pa,{type:"button",className:"mt-8 items-center py-8 px-10",variant:"primary",onClick:r},"Proceed to Camera Alignment")),l().createElement("button",{className:"absolute top-5 right-5 text-gray-500 hover:text-gray-800",onClick:n,"aria-label":"Close"},l().createElement(Jd,null)))};var mp={tabSwitch:"tabSwitch",browserBlur:"browserBlur",rightClick:"rightClick",exitTab:"exitTab",copyPasteCut:"copyPasteCut",restrictedKeyEvent:"restrictedKeyEvent",textSelection:"textSelection",fullScreen:"fullScreen",ctrlShiftI:"ctrlShiftI",ctrlShiftC:"ctrlShiftC",altTab:"altTab",ctrlQ:"ctrlQ",ctrlW:"ctrlW",cmdM:"cmdM",cmdH:"cmdH",cmdW:"cmdW",cmdQ:"cmdQ",ctrlShiftJ:"ctrlShiftJ",screenshareExit:"screenshareExit"},yp={width:480,height:360},bp={width:480,height:270},gp="failed",vp={pairing:"codeScan",orientation:"cameraPairing",mobileCompatibility:"systemChecks"},wp=n(8190),xp=n.n(wp),kp=n(7935),Sp={};Sp.styleTagTransform=Z()(),Sp.setAttributes=X()(),Sp.insert=G()().bind(null,"head"),Sp.domAPI=Y()(),Sp.insertStyleElement=J()(),$()()(kp.A,Sp);const _p=kp.A&&kp.A.locals?kp.A.locals:void 0;function Cp(e){return Cp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cp(e)}const Ep=function(e){var t,n,r,o,i=e.children,a=e.activeTab,s=e.onTabChange,c=e.className;return l().createElement("div",{className:xp()(_p.tabs,(n={},r=c,o=c,(r=function(e){var t=function(e){if("object"!=Cp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Cp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Cp(t)?t:t+""}(r))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},l().createElement("div",{className:_p.tabList},l().Children.map(i,function(e){return l().cloneElement(e,{isActive:a===e.props.name,onClick:function(){return t=e.props.name,void(s&&s(t));var t}})})),l().createElement("div",{className:_p.tabContent},null===(t=l().Children.toArray(i).find(function(e){return e.props.name===a}))||void 0===t?void 0:t.props.children))},Ap=function(e){var t=e.name,n=e.label,r=e.isActive,o=e.onClick,i=e.isDisabled,a=e.isCompleted,s=r?_p.active:_p.inactive;return l().createElement("div",{name:t,className:"".concat(_p.tab," ").concat(s),onClick:i?null:o},a&&l().createElement(ni,{className:"mr-2"}),n)};var Tp=n(147),jp={};jp.styleTagTransform=Z()(),jp.setAttributes=X()(),jp.insert=G()().bind(null,"head"),jp.domAPI=Y()(),jp.insertStyleElement=J()(),$()()(Tp.A,jp);const Np=Tp.A&&Tp.A.locals?Tp.A.locals:void 0,Op=function(e){var t,n=e.onSetupSuccess,r=e.onSetupFailure,o=e.onBatteryLow,i=e.onBatteryNormal,a=e.onSnapshotSuccess,s=e.onSnapshotFailure,c=e.onDataUpdate,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3,d=I(function(e){return fo(e)}),f=(null==d||null===(t=d.mobilePairingConfig)||void 0===t?void 0:t.endpoint)||null,p=Xr({endpoint:f},{pollingInterval:u,selectFromResult:function(e){return{data:e.data}}}).data,h=(0,l().useRef)({onSetupSuccess:n,onSetupFailure:r,onBatteryLow:o,onBatteryNormal:i,onSnapshotSuccess:a,onSnapshotFailure:s,onDataUpdate:c});(0,l().useEffect)(function(){h.current={onSetupSuccess:n,onSetupFailure:r,onBatteryLow:o,onBatteryNormal:i,onSnapshotSuccess:a,onSnapshotFailure:s,onDataUpdate:c}},[n,r,o,i,a,s,c]),(0,l().useEffect)(function(){var e,t,n;if(p){null===(e=(t=h.current).onDataUpdate)||void 0===e||e.call(t,p);var r=(null===(n=p.checks)||void 0===n?void 0:n.secondary_camera.checks)||{};Object.keys(r).forEach(function(e){var t,n,o,i,a,l,s=r[e],c=h.current;switch(e){case"setup":null!=s&&s.success?null===(t=c.onSetupSuccess)||void 0===t||t.call(c,s):null===(n=c.onSetupFailure)||void 0===n||n.call(c,s);break;case"snapshot":null!=s&&s.success?null===(o=c.onSnapshotSuccess)||void 0===o||o.call(c,s):null===(i=c.onSnapshotFailure)||void 0===i||i.call(c,s);break;case"battery":null!=s&&s.success?null===(a=c.onBatteryNormal)||void 0===a||a.call(c,s,p):null===(l=c.onBatteryLow)||void 0===l||l.call(c,s,p)}})}},[p])},Pp=n.p+"images/red-warning894fb29d3808283a4d16.svg";function Ip(e){return Ip="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ip(e)}function Lp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lp(Object(n),!0).forEach(function(t){Mp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mp(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ip(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ip(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ip(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Dp={battery:{default:{title:"Battery Check in progress...",description:"Checking your battery level to ensure the session isn't interrupted"},success:{title:"Battery Check successfully done",description:"Battery level looks good. You're ready to go"},failed:{title:"Battery Check",description:"Connect the phone to a charger or use a different phone"},alert:"Your battery is very low. Less than 10%. Please charge your phone to avoid any interruption"}},Fp={battery:"default"};const Bp=function(e){var t,n,r=e.className,o=(t=(0,l().useState)(Fp),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Rp(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rp(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1],s=no(),c=(0,l().useCallback)(function(){"default"===i.battery&&a({battery:"failed"})},[i]);(0,l().useEffect)(function(){var e;return e=setTimeout(function(){c()},1e4),function(){e&&clearTimeout(e)}},[c]);var u=(0,l().useCallback)(function(){s(To({step:"mobileCameraShare",subStep:"systemChecks",status:"pending"}))},[s]),d=(0,l().useCallback)(function(){a({battery:"success"}),s(To({step:"mobileCameraShare",subStep:"systemChecks",status:"completed"}))},[s]),f=(0,l().useCallback)(function(e){e.success&&console.log("Update status to completed")},[]);return Op({onBatteryLow:u,onBatteryNormal:d,onDataUpdate:f}),l().createElement("div",{className:xp()("flex flex-col justify-between",Mp({},r,r))},l().createElement("section",null,Object.keys(i).map(function(e){var t,n,r,o,a=i[e],s=null==Dp||null===(t=Dp[e])||void 0===t?void 0:t[a];if(s)switch(a){case"success":return r=(n=zp({},s)).title,o=n.description,l().createElement("section",{className:"flex flex-row"},l().createElement(ni,{className:"w-12 h-12 text-white fill-green-600"}),l().createElement("section",{className:"flex flex-col ml-6"},l().createElement("heading",{className:Np.compatibilityTitle},r),l().createElement("p",{className:Np.compatibilityBody},o)));case gp:return function(e){var t=e.title,n=e.description;return l().createElement("section",{className:"flex flex-row items-start"},l().createElement("img",{className:Np.compatibilityWarningIcon,src:Pp,alt:"red-warning"}),l().createElement("section",{className:"flex flex-col ml-6"},l().createElement("heading",{className:Np.compatibilityTitle},t),l().createElement("p",{className:Np.compatibilityBody},n)))}(zp({},s));default:return function(e){var t=e.title,n=e.description;return l().createElement("section",{className:"flex flex-row items-start"},l().createElement(Wf,{className:"w-12 h-12 text-scaler-500 animate-spin"}),l().createElement("section",{className:"flex flex-col ml-6"},l().createElement("heading",{className:Np.compatibilityTitle},t),l().createElement("p",{className:Np.compatibilityBody},n)))}(zp({},s))}return null})),i.battery===gp&&l().createElement("section",{className:Np.compatibilityAlert},l().createElement("b",null,"Your battery is very low. "),l().createElement("i",null,"Less than 10%. Please charge your phone to avoid any interruption.")))};function qp(e){var t=e.setSwitchModalOpen;return l().createElement("div",{className:"bg-white flex flex-col items-center"},l().createElement("div",{className:"text-red-500 mb-4"},l().createElement(ua,{className:"w-16 h-16"})),l().createElement("h1",{className:"text-3xl font-bold mb-10"},"Mobile Phone Disconnected"),l().createElement("div",{className:"w-full mb-8"},l().createElement("h2",{className:"text-xs font-semibold mb-4"},"Please check the following cases :"),l().createElement("div",{className:"border border-dashed border-gray-200 rounded-lg p-6"},l().createElement("div",{className:"max-h-60 overflow-y-auto"},l().createElement("div",{className:"grid grid-cols-2 gap-4"},["Browser/tab closed","Network disconnected","Mobile Screen locked","Low Power Mode","Mobile accidentally switched off","Incoming calls","Mobile rendered unusable - overheated due to high system usage","Using another application increasing the RAM usage"].map(function(e,t){return l().createElement("div",{key:t,className:"flex items-center gap-2"},l().createElement("div",{className:"flex-shrink-0 w-6 h-6 rounded-full bg-gray-100 flex items-center justify-center"},l().createElement(ca,{className:"w-4 h-4 text-gray-500"})),l().createElement("span",{className:"text-gray-600 text-sm"},e))}))))),l().createElement("p",{className:"text-gray-600 mb-8"},"Please scan the QR code again to proceed to the next step."),l().createElement(Pa,{onClick:function(){return t(!0)},className:"w-full max-w-2xl bg-scaler-500 hover:bg-blue-600 text-white py-6 rounded-lg text-lg font-medium"},"Scan QR Code Again",l().createElement(ba,{className:"ml-2 h-5 w-5"})))}const Up=Go("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Wp=Go("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);function Vp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Qp=function(e){var t,n,r=e.items,o=e.interval,i=void 0===o?5e3:o,a=(t=(0,l().useState)(0),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Vp(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vp(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=a[0],c=a[1],u=(0,l().useCallback)(function(){c(function(e){return(e+1)%r.length})},[r.length]),d=(0,l().useCallback)(function(){c(function(e){return(e-1+r.length)%r.length})},[r.length]);return(0,l().useEffect)(function(){var e=setInterval(function(){u()},i);return function(){return clearInterval(e)}},[u,i]),l().createElement("div",{className:"relative w-full max-w-3xl mx-auto"},l().createElement("div",{className:"mb-4"},l().createElement("h2",{className:"text-xs font-bold text-center"},r[s].text)),l().createElement("div",{className:"relative w-full overflow-hidden rounded-xl",style:{aspectRatio:"4 / 3"}},l().createElement("div",{className:"absolute inset-0 flex items-center justify-center"},r.map(function(e,t){return l().createElement("div",{key:t,className:"absolute w-full h-full transition-opacity duration-500 ease-in-out ".concat(t===s?"opacity-100":"opacity-0")},l().createElement("div",{className:"w-full h-full rounded-xl overflow-hidden"},l().createElement("img",{src:e.image,alt:e.text,className:"w-full h-full object-contain"})))})),l().createElement("button",{onClick:d,className:"absolute left-4 top-1/2 -translate-y-1/2 bg-white bg-opacity-50 text-gray-800 p-2 rounded-full hover:bg-opacity-75 transition-all z-10","aria-label":"Previous slide",type:"button"},l().createElement(Up,{size:24})),l().createElement("button",{onClick:u,className:"absolute right-4 top-1/2 -translate-y-1/2 bg-white bg-opacity-50 text-gray-800 p-2 rounded-full hover:bg-opacity-75 transition-all z-10","aria-label":"Next slide",type:"button"},l().createElement(Wp,{size:24}))),l().createElement("div",{className:"absolute -bottom-6 left-1/2 transform -translate-x-1/2 flex space-x-2"},r.map(function(e,t){return l().createElement("button",{key:t,onClick:function(){return c(t)},className:"w-2 h-2 rounded-full transition-all ".concat(t===s?"bg-primary":"bg-primary/20"),"aria-label":"Go to slide ".concat(t+1)})})))},Hp=function(e){var t=e.value,n=void 0===t?0:t,r=e.className,o=void 0===r?"":r,i=Math.min(100,Math.max(0,n));return l().createElement("div",{className:"w-full h-6 bg-gray-200 rounded-full overflow-hidden ".concat(o)},l().createElement("div",{className:"h-full bg-green-500 transition-all duration-1000 ease-in-out flex items-center justify-center text-white text-sm font-medium",style:{width:"".concat(i,"%")}},i>0?"".concat(i,"%"):""))},Kp=Go("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);var $p=n(4984),Yp=n.n($p),Gp=n(898),Xp=n.n(Gp),Jp=function(e){return Yp()(Xp()(e))};const Zp=function(e){var t=e.status,n=e.title,r=e.description,o=e.icon,i=e.error,s=e.extraUi,c=(0,l().useState)(!0),u=c[0],d=c[1];return(0,a().jsxs)("div",{className:Yi("flex items-center justify-between w-full p-8 px-12 bg-white","error"===t&&"bg-red-50"),children:[(0,a().jsxs)("div",{className:Yi("flex items-center gap-8 w-full","error"===t&&"items-center"),children:[(0,a().jsx)("div",{className:"mt-1",children:"pending"===t?(0,a().jsx)(Wf,{className:"w-12 h-12 text-scaler-500 animate-spin"}):o}),(0,a().jsxs)("div",{className:"flex flex-col gap-1.5 w-full",children:[(0,a().jsxs)("div",{className:"flex items-center justify-between cursor-pointer",onClick:function(){return"error"===t&&r&&d(!u)},children:[(0,a().jsx)("h3",{className:"font-medium text-gray-900 text-base",children:n}),"error"===t&&r&&(0,a().jsx)(dl,{className:Yi("w-7 h-7 transition-transform",u&&"transform rotate-180")})]}),"error"===t&&r&&u&&(0,a().jsx)("p",{className:"text-gray-500 text-sm italic",children:r}),i&&(0,a().jsx)("div",{className:"mt-1 text-xs italic text-red-500",children:i})]})]}),s&&(0,a().jsx)("div",{className:"flex items-center",children:s})]})};var eh=["user_visibility","laptop_visibility","image_quality"];const th=function(e){var t=e.setPositionGuideModalOpen,n=e.positionCheckResult,r=e.isLoading,o=(0,l().useCallback)(function(){r||t(!0)},[r,t]);return l().createElement("section",{className:"flex flex-col flex-1 ml-6"},l().createElement("div",{className:"flex flex-row items-center"},l().createElement("img",{className:"mr-3 h-8 w-8",src:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/106/389/original/Image_7_from_Figma.png?1738592475",alt:"logo"}),l().createElement("div",{className:"flex-col"},l().createElement("heading",{className:"mb-1 text-base font-bold"},r?"Screenshot Analysis In Progress":"Screenshot Analysis Completed"),l().createElement("p",{className:xp()("flex items-center text-xs",{"text-blue-500":!r,"text-gray-500":r,"cursor-pointer":!r}),onClick:o},r?"Please wait":l().createElement(l().Fragment,null,"View Demo ",l().createElement(Kp,{className:"w-6 h-6 ml-2"}))))),l().createElement("section",{className:"flex flex-col rounded-2xl border border-gray-200 bg-white divide-y divide-gray-200 mt-8 overflow-auto max-h-[300px]"},r&&eh.map(function(e,t){return l().createElement(Zp,{key:t,status:"pending",title:Jp(e),description:null,icon:l().createElement(Wf,{className:"w-12 h-12 text-scaler-500 animate-spin"})})}),!r&&n&&n.length>0&&n.map(function(e,t){return l().createElement(Zp,{key:t,status:e.is_valid?"completed":"error",title:Jp(e.check_type),description:e.feedback,icon:e.is_valid?l().createElement(ni,{className:"w-12 h-12 text-white fill-green-600"}):l().createElement(ua,{className:"w-12 h-12 text-red-500"})})})))},nh=function(e){var t=e.isOpen,n=e.onClose;return l().createElement(ia,{containerClassName:"rounded-2xl",isOpen:t,modalClassName:"p-12 flex flex-col justify-center text-center items-center max-w-[600px] relative"},l().createElement(ua,{className:"h-[7.2rem] w-[7.2rem] pb-4 text-red-500"}),l().createElement("header",{className:"text-2xl mb-1"},"Orientation Verification Failed"),l().createElement("article",{className:"text-gray-500 text-sm"},"We are not able to verify your camera orientation. Please make sure that you adjust your phone according to the instructions. Incorrect camera positioning may lead to disqualification during the exam."),l().createElement("section",{className:"mt-8"},l().createElement(Pa,{type:"button",className:"items-center py-8 px-10",variant:"primary",onClick:n},"Proceed")))};function rh(e){return rh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rh(e)}function oh(){oh=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:E(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",y={};function b(){}function g(){}function v(){}var w={};c(w,a,function(){return this});var x=Object.getPrototypeOf,k=x&&x(x(O([])));k&&k!==n&&r.call(k,a)&&(w=k);var S=v.prototype=b.prototype=Object.create(w);function _(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==rh(u)&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,l)})}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=A(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function A(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(rh(t)+" is not iterable")}return g.prototype=v,o(S,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(C.prototype),c(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},_(S),c(S,s,"Generator"),c(S,a,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function ih(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function ah(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){ih(i,r,o,a,l,"next",e)}function l(e){ih(i,r,o,a,l,"throw",e)}a(void 0)})}}function lh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return sh(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sh(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ch(e,t){return new Promise(function(n,r){fetch(e).then(function(e){return e.blob()}).then(function(e){var r=new File([e],t,{type:e.type});n(r)}).catch(function(e){console.error("Error downloading image:",e),r(e)})})}const uh=function(e){var t=e.className,n=e.setSwitchModalOpen,r=ro(function(e){return qo(e,"mobileCameraShare")}).setupMode,o=H(),i=lh((0,l().useState)(!1),2),a=i[0],s=i[1],c=lh((0,l().useState)(!1),2),u=c[0],d=c[1],f=lh((0,l().useState)(0),2),p=f[0],h=f[1],m=lh((0,l().useState)(null),2),y=m[0],b=m[1],g=lh((0,l().useState)(!1),2),v=g[0],w=g[1],x=lh((0,l().useState)(null),2),k=x[0],S=x[1],_=lh((0,l().useState)([]),2),C=_[0],E=_[1],A=lh((0,l().useState)(!1),2),T=A[0],j=A[1],N=lh((0,l().useState)(5),2),O=N[0],P=N[1],I=lh((0,l().useState)(!1),2),L=I[0],z=I[1],M=lh((0,l().useState)(0),2),R=M[0],D=M[1],F=ro(function(e){return e.workflow}).enableProctoring,B=lh(Zr(),2),q=B[0],U=B[1].isLoading,W=lh((0,l().useState)(0),2),V=W[0],Q=W[1],K=(0,l().useCallback)(function(){j(!1)},[]),$=(0,l().useCallback)(ah(oh().mark(function e(){var t,n,r,o,i;return oh().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!U&&u){e.next=2;break}return e.abrupt("return");case 2:return D(function(e){return e+1}),e.prev=3,e.next=6,ch(k,"image.png");case 6:return t=e.sent,e.next=9,q({imageFile:t});case 9:if(null==(n=e.sent)||!n.data){e.next=20;break}if(r=n.data,o=r.success,i=r.result,!o){e.next=16;break}E((null==i?void 0:i.setup_validations)||[]),e.next=17;break;case 16:throw new Error("Validation failed");case 17:null!=i&&i.is_valid&&w(!0),e.next=21;break;case 20:throw new Error("Validation failed");case 21:e.next=28;break;case 23:e.prev=23,e.t0=e.catch(3),Q(function(e){return e+1}),Ne.error("Validation failed. Please try again"),V>=2&&z(!0);case 28:case"end":return e.stop()}},e,null,[[3,23]])})),[q,k,U,u,V]);(0,l().useEffect)(function(){var e=function(){var e=ah(oh().mark(function e(){var t,n;return oh().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!y){e.next=14;break}return e.prev=1,e.next=4,fetch(y,{headers:{Accept:"application/json"}});case 4:return t=e.sent,e.next=7,t.json();case 7:n=e.sent,S(n.url),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),console.error("Error fetching image URL:",e.t0);case 14:case"end":return e.stop()}},e,null,[[1,11]])}));return function(){return e.apply(this,arguments)}}();e()},[y]);var Y,G,X,J=(0,l().useCallback)(function(e){var t,n=(null==e||null===(t=e.metadata)||void 0===t?void 0:t.length)||0;if(h(n),n>0){var r,o=null==e||null===(r=e.metadata)||void 0===r||null===(r=r[e.metadata.length-1])||void 0===r?void 0:r.value;y!==o&&b(o)}},[y]),Z=(0,l().useCallback)(function(e){J(e),u||(h(3),d(!0),j(!0))},[J,u]),ee=(0,l().useCallback)(function(e){J(e)},[J]),te=(0,l().useCallback)(function(){o(Co()),o(Mo({step:"mobileCameraShare",setupMode:!1}))},[o]);return(0,l().useEffect)(function(){P(5);var e=setInterval(function(){P(function(e){return e>0?e-1:0})},1e3);return function(){return clearInterval(e)}},[y]),Op({onSnapshotSuccess:Z,onSnapshotFailure:ee}),F&&!r?l().createElement(qp,{setSwitchModalOpen:n}):l().createElement("div",{className:"flex flex-col"},l().createElement("section",{className:"py-4 px-10 text-xs text-center bg-[#E6F2FF] absolute top-0 left-0 w-full font-bold"},"Auto fetching next snapshot in ",l().createElement("time",null,O)," seconds..."),l().createElement("div",{className:xp()(Np.orientationContainer,"mt-10",(Y={},G=t,X=t,(G=function(e){var t=function(e){if("object"!=rh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rh(t)?t:t+""}(G))in Y?Object.defineProperty(Y,G,{value:X,enumerable:!0,configurable:!0,writable:!0}):Y[G]=X,Y))},0===C.length&&!U&&l().createElement("section",{className:Np.referenceImageContainer},l().createElement(Qp,{items:[{image:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/099/601/original/Dec_10_Screenshot_Rounded_Corner.png?1733823148",text:"Position phone against a strong surface"},{image:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/099/593/original/Iterations_Image_4936.png?1733821016",text:"Adjust and verify your phone basis snapshot"},{image:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/099/594/original/IMG_4940_1.png?1733821035",text:"Once ready, click on proceed"}]})),l().createElement("section",{className:Np.snapshotPreviewContainer},l().createElement("div",{className:Np.snapshotPreview},l().createElement("div",{className:Np.snapshotImageContainer},k?l().createElement("img",{className:Np.snapshotImage,src:k,alt:"snapshot"}):l().createElement("div",{className:"absolute top-1/2 right-1/2 transform translate-x-1/2 translate-y-[-50%]"},l().createElement(ef,{size:"md"}),l().createElement("div",{className:"text-xs text-center mt-2"},"Collecting Snapshot...")))),l().createElement(Hp,{className:"mt-4",value:parseInt(p/3*100,10)}),l().createElement("div",{className:"flex flex-col text-center mt-4"},l().createElement("div",{className:"text-xs text-gray-500 mt-2"},3===p?l().createElement(l().Fragment,null,"Snapshot covering you and your workspace?"," ",l().createElement("b",null,"If yes, proceed. If not, adjust and confirm with next snapshot")):l().createElement(l().Fragment,null,l().createElement("b",null,"Capturing 3 mandatory snaps"),"...adjust your phone to capture both hands, workspace and your head")))),(C&&Array.isArray(C)&&C.length>0||U)&&l().createElement(th,{setPositionGuideModalOpen:j,positionCheckResult:C,isLoading:U})),l().createElement("div",{className:"mt-16"},l().createElement("form",{onSubmit:function(e){e.preventDefault(),u&&(v&&a?te:$)()}},v&&u?l().createElement("div",{className:"flex items-start gap-2 mt-6 text-sm"},l().createElement(el,{id:"confirm",className:"mr-2 mt-1 h-6 w-6",checked:a,onCheckedChange:function(e){return s(e)},disabled:!u,role:"checkbox",required:u}),l().createElement("label",{htmlFor:"confirm",className:"text-sm text-gray-600"},"By clicking on this, you confirm that your mobile phone is paired and will remain charged during the test. If disconnected, you'll need to reconnect before being able to continue with the test.")):null,l().createElement("div",{className:"flex items-center"},u&&v?l().createElement(Pa,{type:"submit",className:"mt-8 items-center py-8 px-10",disabled:!a,variant:"primary"},"Proceed to next step",l().createElement(ba,{className:"w-6 h-6"})):l().createElement(Pa,{type:"submit",className:"mt-8 items-center py-8 px-10",disabled:U||!u,variant:"primary"},0===R?"Check orientation":"Retry Orientation Check",l().createElement(ba,{className:"w-6 h-6"})),l().createElement(Pa,{className:"mt-8 items-center py-8 px-10 ml-6",variant:"outline",onClick:function(){return n(!0)},type:"button"},"Scan QR Code again")))),l().createElement(hp,{isOpen:T,onProceed:function(){$(),j(!1)},onClose:K}),l().createElement(nh,{isOpen:L,onClose:function(){w(!0),z(!1)}}))},dh=Go("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);function fh(e){return fh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fh(e)}function ph(e,t,n){return(t=function(e){var t=function(e){if("object"!=fh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fh(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var mh=l().memo(function(e){var t,n,r=e.className,o=H(),i=(t=(0,l().useState)(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return hh(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hh(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],s=i[1],c=(0,l().useRef)(null),u=I(fo),d=(0,l().useMemo)(function(){var e,t;return{payload:(null==u||null===(e=u.qrCodeConfig)||void 0===e?void 0:e.defaultPayload)||{},endpoint:null==u||null===(t=u.qrCodeConfig)||void 0===t?void 0:t.endpoint}},[null==u?void 0:u.qrCodeConfig]),f=Gr({endpoint:d.endpoint}),p=f.data,h=f.isFetching,m=f.isError,y=(0,l().useCallback)(function(){o(Co()),o(Mo({step:"mobileCameraShare",setupMode:!0}))},[o]),b=(0,l().useCallback)(function(){},[]),g=(0,l().useMemo)(function(){return{onSetupSuccess:y,onSetupFailure:b}},[y,b]);Op(g,5e3);var v=(0,l().useCallback)(function(){var e=c.current?c.current.textContent:"";e&&navigator.clipboard.writeText(e).then(function(){s(!0),setTimeout(function(){return s(!1)},2e3)},function(e){console.error("Error copying text: ",e),s(!1)})},[]),w=(0,l().useMemo)(function(){return h||m||null==p||!p.qrcode?l().createElement(ef,{size:"md"}):l().createElement("img",{src:"data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(null==p?void 0:p.qrcode)),alt:"qr-code"})},[null==p?void 0:p.qrcode,h,m]);return l().createElement("div",{className:xp()(ph({},r,r))},l().createElement("div",{className:Np.pairingContainer},l().createElement("section",{className:Np.qrCodeContainer},w),l().createElement("div",{className:Np.divider},l().createElement("div",{className:Np.dividerLine}),l().createElement("div",{className:Np.dividerText}," OR "),l().createElement("div",{className:Np.dividerLine})),l().createElement("section",{className:Np.copyLinkContainer},l().createElement("header",{className:Np.copyLinkHeading},"Pair mobile via link"),l().createElement("article",{className:Np.copyLinkBody},"Copy link to open on your mobile. It might take few sec to load"),l().createElement("section",{className:Np.copyLinkOption},l().createElement("div",{className:Np.copyLinkBox,ref:c},null==p?void 0:p.link),l().createElement("span",{className:Np.copyLinkText,onClick:v},l().createElement(dh,{className:Np.copyIcon}),a?l().createElement("div",{className:Np.copySuccessMessage},"Copied!"):"Copy")))),l().createElement("section",{className:"mt-10"},l().createElement("article",{className:Np.orientationInstructions},l().createElement("heading",{className:Np.orientationInstructionHeading},"Instructions :"),l().createElement("ul",{className:Np.orientationInstructionPoints},l().createElement("li",null,"Scan the QR code using your Android/iOS device or use the link to open it on your mobile phone."),l().createElement("li",null,"Tap the link to open it in your default browser and follow the instructions to grant camera access"),l().createElement("li",null,"Place your mobile device on a stable surface."),l().createElement("li",null,"Choose landscape or portrait orientation, ensuring your desktop, hands, and workspace are clearly visible with proper lighting.")))))});mh.displayName="Pairing";const yh=mh,bh=n.p+"images/switchPhone5478c180281b2501ff84.svg";function gh(e){return gh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gh(e)}function vh(){vh=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:E(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",y={};function b(){}function g(){}function v(){}var w={};c(w,a,function(){return this});var x=Object.getPrototypeOf,k=x&&x(x(O([])));k&&k!==n&&r.call(k,a)&&(w=k);var S=v.prototype=b.prototype=Object.create(w);function _(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==gh(u)&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,l)})}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=A(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function A(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(gh(t)+" is not iterable")}return g.prototype=v,o(S,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(C.prototype),c(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},_(S),c(S,s,"Generator"),c(S,a,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function wh(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function xh(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){wh(i,r,o,a,l,"next",e)}function l(e){wh(i,r,o,a,l,"throw",e)}a(void 0)})}}function kh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Sh=function(e){var t,n,r=e.isOpen,o=e.onClose,i=H(),a=(t=Jr(),n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return kh(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kh(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],s=(0,l().useCallback)(xh(vh().mark(function e(){return vh().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,a({eventType:"secondary_camera",eventName:"setup_reset"});case 3:e.sent.data.success&&(K(function(){i(Po({step:"mobileCameraShare"})),i(Eo({step:"mobileCameraShare",locked:!1})),i(eo.util.resetApiState()),i(Mo({step:"mobileCameraShare",setupMode:!0}))}),null==o||o()),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}},e,null,[[0,7]])})),[i,o,a]);return l().createElement(ia,{containerClassName:"rounded-2xl",isOpen:r,modalClassName:"p-12 flex flex-col justify-center text-center items-center max-w-[600px] relative"},l().createElement("img",{src:bh,alt:"switch-phone",className:"h-[7.2rem] w-[7.2rem] pb-4"}),l().createElement("heading",{className:"text-2xl mb-1"},"You are going to Scan QR Code again"),l().createElement("article",{className:"text-gray-500 text-sm"},"Confirming this will disconnect your current mobile phone. You'll need to scan the QR code again to reconnect your mobile with the desktop."),l().createElement("section",{className:"mt-8"},l().createElement(Pa,{type:"button",className:"items-center py-8 px-10",variant:"primary",onClick:s},"Scan QR Code again"),l().createElement(Pa,{type:"button",className:"items-center py-8 px-10 ml-2",onClick:o,variant:"outline"},"Cancel")),l().createElement("button",{className:"absolute top-5 right-5 text-gray-500 hover:text-gray-800",onClick:o,"aria-label":"Close"},l().createElement(Jd,null)))};function _h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ch=l().memo(yh),Eh=l().memo(uh),Ah=l().memo(Bp),Th=l().memo(Sh);const jh=n.p+"images/light-bulba68d0da013ea5916d408.svg";var Nh,Oh="FULL_MONITOR_NOT_SHARED",Ph="SCREEN_SHARE_STREAM_ENDED",Ih="SCREEN_SHARE_FAILED",Lh="SCREEN_SHARE_DENIED",zh=((Nh={})[Oh]="Please share your Entire screen, not just a window or tab",Nh[Lh]="Screen share permission was denied",Nh[Ih]="Screen share failed to initialize",Nh[Ph]="Screen share stream has ended",Nh),Mh={RETRY_STRATEGY:"RETRY_STRATEGY",ROLLING_WINDOW_STRATEGY:"ROLLING_WINDOW_STRATEGY"};function Rh(e){return Rh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rh(e)}function Dh(){Dh=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:E(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",y={};function b(){}function g(){}function v(){}var w={};c(w,a,function(){return this});var x=Object.getPrototypeOf,k=x&&x(x(O([])));k&&k!==n&&r.call(k,a)&&(w=k);var S=v.prototype=b.prototype=Object.create(w);function _(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==Rh(u)&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,l)})}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=A(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function A(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Rh(t)+" is not iterable")}return g.prototype=v,o(S,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(C.prototype),c(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},_(S),c(S,s,"Generator"),c(S,a,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function Fh(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Bh(){return qh.apply(this,arguments)}function qh(){return(e=Dh().mark(function e(){return Dh().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,t){var n=new Image,r=performance.now();n.onload=function(){var t=(performance.now()-r)/1e3,o=n.width*n.height*4;e(8*o/1024/t<400)},n.onerror=t,n.src="".concat("https://dajh2p2mfq4ra.cloudfront.net/assets/icons/ib-logo-hire-8f3406787bc4241628bb7e5bea43d56a7ab275401134c297b6631c8b81cd3996.png","?t=").concat(Date.now())}));case 1:case"end":return e.stop()}},e)}),qh=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Fh(i,r,o,a,l,"next",e)}function l(e){Fh(i,r,o,a,l,"throw",e)}a(void 0)})}).apply(this,arguments);var e}function Uh(e){return Uh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uh(e)}function Wh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wh(Object(n),!0).forEach(function(t){Qh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qh(e,t,n){return(t=Gh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hh(){Hh=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:E(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",y={};function b(){}function g(){}function v(){}var w={};c(w,a,function(){return this});var x=Object.getPrototypeOf,k=x&&x(x(O([])));k&&k!==n&&r.call(k,a)&&(w=k);var S=v.prototype=b.prototype=Object.create(w);function _(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==Uh(u)&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,l)})}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=A(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function A(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Uh(t)+" is not iterable")}return g.prototype=v,o(S,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(C.prototype),c(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},_(S),c(S,s,"Generator"),c(S,a,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function Kh(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function $h(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Kh(i,r,o,a,l,"next",e)}function l(e){Kh(i,r,o,a,l,"throw",e)}a(void 0)})}}function Yh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gh(r.key),r)}}function Gh(e){var t=function(e){if("object"!=Uh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Uh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Uh(t)?t:t+""}var Xh="snapshots",Jh=function(){return e=function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.db=null,this.uploadFunctionMap=t,this.isUploading=!1,this.options={bucketCount:r.bucketCount||10,maxSnapshotsPerBucket:r.maxSnapshotsPerBucket||5,maxSnapshotsCount:r.maxSnapshotsCount||50,networkCheckInterval:r.networkCheckInterval||5e3},this.networkStatus={isGood:!0},this.networkMonitorInterval=null,this.currentSnapshotCount=0,this.initDB().then(function(){n.startNetworkMonitoringAndProcessUploads()})},t=[{key:"initDB",value:(i=$h(Hh().mark(function e(){var t=this;return Hh().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,n){var r=indexedDB.open("ProctorSnapshots",1);r.onerror=function(){return n(r.error)},r.onsuccess=function(){t.db=r.result,e()},r.onupgradeneeded=function(e){var t=e.target.result;t.objectStoreNames.contains(Xh)||t.createObjectStore(Xh,{keyPath:"id",autoIncrement:!0}).createIndex("timestamp","timestamp")}}));case 1:case"end":return e.stop()}},e)})),function(){return i.apply(this,arguments)})},{key:"performIntelligentCleanup",value:(o=$h(Hh().mark(function e(){var t,n,r,o,i=this;return Hh().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=this.db.transaction(Xh,"readwrite"),n=t.objectStore(Xh),r=n.index("timestamp"),e.next=6,new Promise(function(e){var t=r.count();t.onsuccess=function(){return e(t.result)}});case 6:if(this.currentSnapshotCount=e.sent,!(this.currentSnapshotCount>this.options.maxSnapshotsCount)){e.next=13;break}return o=[],e.next=11,new Promise(function(e){var t=r.openCursor(),n=0;t.onsuccess=function(t){var r=t.target.result;r&&n<i.options.bucketCount?(o.push(r.value.id),n+=1,r.advance(i.options.maxSnapshotsPerBucket)):e()}});case 11:return e.next=13,Promise.all(o.map(function(e){return new Promise(function(t,r){var o=n.delete(e);o.onsuccess=t,o.onerror=r})}));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(0),console.error("Error during intelligent cleanup:",e.t0);case 18:case"end":return e.stop()}},e,this,[[0,15]])})),function(){return o.apply(this,arguments)})},{key:"addSnapshot",value:(r=$h(Hh().mark(function e(t){var n,r,o,i,a=arguments;return Hh().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:"screenshot",r={blob:t,timestamp:Date.now(),size:t.size,type:n},e.prev=2,o=this.db.transaction(Xh,"readwrite"),i=o.objectStore(Xh),e.next=7,new Promise(function(e,t){var n=i.add(r);n.onsuccess=function(){return e(n.result)},n.onerror=function(){return t(n.error)}});case 7:return e.next=9,this.performIntelligentCleanup();case 9:e.next=15;break;case 11:throw e.prev=11,e.t0=e.catch(2),console.error("Error adding snapshot:",e.t0),e.t0;case 15:case"end":return e.stop()}},e,this,[[2,11]])})),function(e){return r.apply(this,arguments)})},{key:"processUploads",value:(n=$h(Hh().mark(function e(){var t,n,r,o,i,a=this;return Hh().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isUploading&&this.networkStatus.isGood){e.next=2;break}return e.abrupt("return");case 2:return this.isUploading=!0,e.prev=3,t=this.db.transaction(Xh,"readwrite"),n=t.objectStore(Xh),r=n.index("timestamp"),o=Math.min(5,Math.max(2,this.currentSnapshotCount)),e.next=10,new Promise(function(e){var t=r.getAll(null,o);t.onsuccess=function(){return e(t.result)}});case 10:if(!((i=e.sent).length>0)){e.next=14;break}return e.next=14,Promise.all(i.map(function(){var e=$h(Hh().mark(function e(t){var r;return Hh().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=a.uploadFunctionMap[t.type]){e.next=4;break}throw new Error("No upload function found for type: ".concat(t.type));case 4:return e.next=6,r({blob:t.blob});case 6:return e.next=8,new Promise(function(e,r){var o=n.delete(t.id);o.onsuccess=function(){return e()},o.onerror=function(){return r(o.error)}});case 8:e.next=14;break;case 10:e.prev=10,e.t0=e.catch(0),console.error("error",e.t0),"NetworkError"===e.t0.name&&(a.networkStatus.isGood=!1);case 14:case"end":return e.stop()}},e,null,[[0,10]])}));return function(t){return e.apply(this,arguments)}}()));case 14:return e.prev=14,this.isUploading=!1,e.finish(14);case 17:case"end":return e.stop()}},e,this,[[3,,14,17]])})),function(){return n.apply(this,arguments)})},{key:"startNetworkMonitoringAndProcessUploads",value:function(){var e=this;this.networkMonitorInterval=setInterval($h(Hh().mark(function t(){var n;return Hh().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Bh();case 3:n=t.sent,e.networkStatus.isGood=!n,e.processUploads(),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),e.networkStatus.isGood=!1;case 11:case"end":return t.stop()}},t,null,[[0,8]])})),this.options.networkCheckInterval)}},{key:"cleanup",value:function(){this.networkMonitorInterval&&(clearInterval(this.networkMonitorInterval),this.networkMonitorInterval=null)}},{key:"updateUploadFunctions",value:function(e){this.uploadFunctionMap=Vh(Vh({},this.uploadFunctionMap),e)}}],t&&Yh(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,r,o,i}(),Zh=null;function em(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Zh?e&&Zh.updateUploadFunctions(e):Zh=new Jh(e,t),Zh}function tm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return nm(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nm(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function rm(e){return rm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rm(e)}function om(){om=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:E(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",y={};function b(){}function g(){}function v(){}var w={};c(w,a,function(){return this});var x=Object.getPrototypeOf,k=x&&x(x(O([])));k&&k!==n&&r.call(k,a)&&(w=k);var S=v.prototype=b.prototype=Object.create(w);function _(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==rm(u)&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,l)})}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=A(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function A(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(rm(t)+" is not iterable")}return g.prototype=v,o(S,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(C.prototype),c(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},_(S),c(S,s,"Generator"),c(S,a,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function im(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function am(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){im(i,r,o,a,l,"next",e)}function l(e){im(i,r,o,a,l,"throw",e)}a(void 0)})}}function lm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sm(r.key),r)}}function sm(e){var t=function(e){if("object"!=rm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rm(t)?t:t+""}var cm=new(function(){return e=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mh.INDEX_DB_BUFFER_STRATEGY;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.capturedIntervals=[],this.mediaStream=null,this.strategy=t},t=[{key:"requestScreenShare",value:(o=am(om().mark(function e(t){var n,r;return om().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.onFailure,r=t.onEnd,e.prev=1,e.next=4,navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"monitor"}});case 4:return this.mediaStream=e.sent,this.listenScreenShareEnd({onEnd:r}),e.abrupt("return",!0);case 9:return e.prev=9,e.t0=e.catch(1),console.error("Screen sharing was denied or failed:",e.t0),null==n||n({err:e.t0}),e.abrupt("return",!1);case 14:case"end":return e.stop()}},e,this,[[1,9]])})),function(e){return o.apply(this,arguments)})},{key:"isScreenShareValid",value:(r=am(om().mark(function e(){var t,n,r,o;return om().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.mediaStream){e.next=2;break}return e.abrupt("return",[!1,Lh]);case 2:if(0!==(t=this.mediaStream.getVideoTracks()).length){e.next=5;break}return e.abrupt("return",[!1,Ih]);case 5:if("live"===t[0].readyState){e.next=8;break}return e.abrupt("return",[!1,Ph]);case 8:if(!("displaySurface"in(n=t[0].getSettings()))){e.next=15;break}if("monitor"===(null==n?void 0:n.displaySurface)){e.next=13;break}return this.stopScreenShare(),e.abrupt("return",[!1,Oh]);case 13:e.next=21;break;case 15:if(r=window.screen.width*window.devicePixelRatio,o=window.screen.height*window.devicePixelRatio,!(Math.abs(n.width-r)>5||Math.abs(n.height-o)>5)){e.next=21;break}return this.stopScreenShare(),e.abrupt("return",[!1,Oh]);case 21:return e.abrupt("return",[!0,null]);case 22:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"captureScreenshot",value:(n=am(om().mark(function e(t){var n,r,o,i;return om().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.resizeDimensions,(r=document.createElement("video")).srcObject=this.mediaStream,r.play(),e.next=6,new Promise(function(e){r.onloadedmetadata=function(){return e()}});case 6:return o=document.createElement("canvas"),n?(o.width=n.width,o.height=n.height):(o.width=r.videoWidth,o.height=r.videoHeight),o.getContext("2d").drawImage(r,0,0,o.width,o.height),e.next=12,new Promise(function(e){o.toBlob(e)});case 12:return i=e.sent,e.abrupt("return",i);case 14:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"useRetryStrategy",value:function(e){var t=this,n=e.onSuccess,r=e.onFailure,o=e.resizeDimensions,i=e.interval,a=void 0===i?3e3:i,l=e.maxRetries,s=void 0===l?3:l,c=e.baseDelay,u=void 0===c?1e3:c;this.mediaStream?this.capturedIntervals.push(setInterval(am(om().mark(function e(){var i,a,l,c;return om().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.captureScreenshot({resizeDimensions:o});case 3:i=e.sent,a=0,l=!1,c=u;case 7:if(!(a<s)||l){e.next=29;break}return e.prev=8,e.next=11,null==n?void 0:n({blob:i});case 11:l=!0,e.next=27;break;case 14:if(e.prev=14,e.t0=e.catch(8),console.log(e.t0),(a+=1)!==s){e.next=23;break}return e.next=21,null==r?void 0:r({err:e.t0});case 21:e.next=27;break;case 23:return console.warn("Retry attempt ".concat(a," failed. Retrying in ").concat(c,"ms.")),e.next=26,new Promise(function(e){setTimeout(e,c)});case 26:c*=2;case 27:e.next=7;break;case 29:e.next=35;break;case 31:return e.prev=31,e.t1=e.catch(0),e.next=35,null==r?void 0:r({err:e.t1});case 35:case"end":return e.stop()}},e,null,[[0,31],[8,14]])})),a)):console.warn("No media stream available. Start screen sharing first.")}},{key:"useRollingWindowStrategy",value:function(e){var t=this,n=e.onSuccess,r=e.onFailure,o=e.resizeDimensions,i=e.windowSize,a=void 0===i?100:i,l=e.interval;if(this.mediaStream){this.rollingWindow=[],this.rollingWindowInProcess=!1;var s=function(){var e=am(om().mark(function e(n){return om().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.rollingWindow.length!==a){e.next=4;break}return t.rollingWindow.shift(),e.next=4,null==r?void 0:r({err:"ROLLING_WINDOW_STRATEGY_LENGTH_EXCEEDED"});case 4:t.rollingWindow.push(n);case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),c=function(){var e=am(om().mark(function e(){var o,i;return om().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log(t.rollingWindow),!t.rollingWindowInProcess){e.next=3;break}return e.abrupt("return");case 3:t.rollingWindowInProcess=!0,o=0;case 5:if(!(o<t.rollingWindow.length)){e.next=20;break}return i=t.rollingWindow[o],e.prev=7,e.next=10,null==n?void 0:n({blob:i});case 10:t.rollingWindow.splice(o,1),o-=1,e.next=17;break;case 14:e.prev=14,e.t0=e.catch(7),null==r||r(e.t0);case 17:o+=1,e.next=5;break;case 20:t.rollingWindowInProcess=!1;case 21:case"end":return e.stop()}},e,null,[[7,14]])}));return function(){return e.apply(this,arguments)}}();this.capturedIntervals.push(setInterval(am(om().mark(function e(){var n;return om().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.captureScreenshot({resizeDimensions:o});case 2:return n=e.sent,e.next=5,s(n);case 5:case"end":return e.stop()}},e)})),l)),this.capturedIntervals.push(setInterval(am(om().mark(function e(){return om().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c();case 2:case"end":return e.stop()}},e)})),l/2))}else console.warn("No media stream available. Start screen sharing first.")}},{key:"useIndexDbBufferStrategy",value:function(e){var t=this,n=e.onFailure,r=e.interval,o=e.resizeDimensions,i=em();this.capturedIntervals.push(setInterval(am(om().mark(function e(){var r;return om().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.captureScreenshot({resizeDimensions:o});case 3:return r=e.sent,e.next=6,i.addSnapshot(r,"screenshot").catch(function(e){null==n||n({err:e})});case 6:e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(0),e.next=12,null==n?void 0:n({err:e.t0});case 12:case"end":return e.stop()}},e,null,[[0,8]])})),r))}},{key:"startScreenshotCapture",value:function(e){var t=e.onSuccess,n=e.onFailure,r=e.interval,o=e.resizeDimensions;switch(this.strategy){case Mh.RETRY_STRATEGY:this.useRetryStrategy({onSuccess:t,onFailure:n,interval:r,maxRetries:3,baseDelay:1e3,resizeDimensions:o});break;case Mh.ROLLING_WINDOW_STRATEGY:this.useRollingWindowStrategy({onSuccess:t,onFailure:n,windowSize:200,interval:r,resizeDimensions:o});break;case Mh.INDEX_DB_BUFFER_STRATEGY:this.useIndexDbBufferStrategy({onFailure:n,interval:r,resizeDimensions:o});break;default:this.useRollingWindowStrategy({onSuccess:t,onFailure:n,windowSize:200,interval:r,resizeDimensions:o})}}},{key:"stopScreenShare",value:function(){this.mediaStream&&(this.mediaStream.getTracks().forEach(function(e){return e.stop()}),this.mediaStream=null),this.capturedIntervals.forEach(function(e){clearInterval(e)}),this.rollingWindow=[]}},{key:"listenScreenShareEnd",value:function(e){var t=this,n=e.onEnd;this.mediaStream&&this.mediaStream.getVideoTracks()[0].addEventListener("ended",function(){t.stopScreenShare(),null==n||n()})}}],t&&lm(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,r,o}());function um(e){return dm.apply(this,arguments)}function dm(){return(dm=am(om().mark(function e(t){var n,r,o,i,a,l;return om().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.onSuccess,r=t.onFailure,e.next=3,cm.isScreenShareValid();case 3:return o=e.sent,i=tm(o,2),a=i[0],l=i[1],a?null==n||n():null==r||r(l),e.abrupt("return",[a,l]);case 9:case"end":return e.stop()}},e)}))).apply(this,arguments)}function fm(e){return pm.apply(this,arguments)}function pm(){return(pm=am(om().mark(function e(t){var n,r,o,i,a,l,s,c,u,d,f,p,h;return om().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.onScreenShareEnabled,r=t.onScreenShareFailure,o=t.onScreenShareEnd,i=t.onScreenshotSuccess,a=t.onScreenshotFailure,l=t.frequency,s=t.resizeDimensions,c=t.disableScreenshot,!window.isTestEnding){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,um({});case 5:if(u=e.sent,!tm(u,1)[0]){e.next=10;break}return e.abrupt("return");case 10:return e.prev=10,e.next=13,cm.requestScreenShare({onSuccess:n,onFailure:r,onEnd:o});case 13:if(e.sent){e.next=16;break}return e.abrupt("return");case 16:return e.next=18,cm.isScreenShareValid();case 18:if(d=e.sent,f=tm(d,2),p=f[0],h=f[1],p){e.next=25;break}return null==r||r(h),e.abrupt("return");case 25:null==n||n(),c||cm.startScreenshotCapture({onSuccess:i,onFailure:a,interval:l,resizeDimensions:s}),e.next=32;break;case 29:e.prev=29,e.t0=e.catch(10),null==r||r();case 32:case"end":return e.stop()}},e,null,[[10,29]])}))).apply(this,arguments)}function hm(e){return mm.apply(this,arguments)}function mm(){return(mm=am(om().mark(function e(t){var n,r;return om().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.disableScreenshot,r=void 0!==n&&n,e.next=3,fm({onScreenShareEnabled:this.handleScreenShareSuccess.bind(this),onScreenShareFailure:this.handleScreenShareFailure.bind(this),onScreenShareEnd:this.handleScreenShareEnd.bind(this),onScreenshotSuccess:this.handleScreenshotSuccess.bind(this),onScreenshotFailure:this.handleScreenshotFailure.bind(this),frequency:this.screenshotConfig.frequency,resizeDimensions:this.screenshotConfig.resizeTo,disableScreenshot:r});case 3:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}function ym(){cm.stopScreenShare()}function bm(){var e=this,t=no(),n=ro(function(e){return fo(e)}),r=ro(function(e){return Uo(e,"screenShare","screenShare")}),o=ro(function(e){return e.workflow}).enableProctoring;return(0,a().jsxs)("div",{className:"mt-8 w-full max-w-ful",children:["error"===r.status&&r.error&&(0,a().jsxs)("div",{className:"w-full bg-red-100 p-4 rounded-t-2xl flex items-center justify-center gap-2",children:[(0,a().jsx)(ua,{className:"w-6 h-6 text-red-500"}),(0,a().jsx)("span",{className:"text-red-700 text-sm",children:r.error})]}),(0,a().jsx)("div",{className:"".concat("error"===r.status?"rounded-b-lg":"rounded-2xl"," overflow-hidden shadow-[0px_0px_24px_0px_rgba(0,0,0,0.08)] bg-white p-3"),children:(0,a().jsxs)("div",{className:"flex",children:["completed"!==r.status&&(0,a().jsx)("div",{className:"flex-1 py-16 pl-16 max-w-xl",children:(0,a().jsx)("img",{src:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/099/662/original/screen-share-mock.png?1733837502",alt:"Screen Share Mock",className:"w-full object-contain"})}),(0,a().jsxs)("div",{className:"flex-1 p-16 grow",children:[(0,a().jsx)("h3",{className:"text-xl font-semibold mb-2",children:"completed"===r.status?"Successfully shared your screen":"Start Screen Share"}),(0,a().jsx)("p",{className:"text-base-500 mb-6 text-sm",children:"completed"===r.status?"Sharing your entire screen is essential to make sure the assessment is happening in the fair manner":(0,a().jsxs)(a().Fragment,{children:["Click below to begin sharing your entire screen.",(0,a().jsx)("br",{}),(0,a().jsx)("br",{}),"You will need to set up screen sharing again when your test begins, as the environment will refresh."]})}),"completed"===r.status?(0,a().jsxs)("div",{className:"flex items-center justify-between p-4 bg-gray-100 rounded-2xl text-sm",children:[(0,a().jsx)("span",{children:"scaler.com is sharing your screen"}),(0,a().jsx)("div",{className:"flex gap-2",children:(0,a().jsx)(Pa,{onClick:function(){ym(),t(jo({step:"screenShare",subStep:"screenShare",error:zh.SCREEN_SHARE_DENIED}))},className:"text-red-500",size:"xs",variant:"secondary",children:"Stop Sharing"})})]}):(0,a().jsx)(Pa,{className:"text-sm",onClick:function(){return t=e,r=void 0,a=function(){var e;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,null==n?void 0:n.handleScreenshareRequest({disableScreenshot:!o})];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),console.error("Error initiating screen share:",e),[3,3];case 3:return[2]}})},new((i=void 0)||(i=Promise))(function(e,n){function o(e){try{s(a.next(e))}catch(e){n(e)}}function l(e){try{s(a.throw(e))}catch(e){n(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i(function(e){e(n)})).then(o,l)}s((a=a.apply(t,r||[])).next())});var t,r,i,a},variant:"primary",size:"lg",children:"Share Entire Screen"})]})]})})]})}var gm=function(){return(0,a().jsxs)("div",{className:"animate-pulse space-y-4",children:[(0,a().jsx)("div",{className:"h-24 bg-slate-200 rounded w-3/4 my-16"}),(0,a().jsx)("div",{className:"h-16 bg-slate-200 rounded w-1/2"}),(0,a().jsxs)("div",{className:"space-y-2 my-4",children:[(0,a().jsx)("div",{className:"h-12 bg-slate-200 rounded"}),(0,a().jsx)("div",{className:"h-12 bg-slate-200 rounded w-11/12"}),(0,a().jsx)("div",{className:"h-12 bg-slate-200 rounded w-4/5"}),(0,a().jsx)("div",{className:"h-12 bg-slate-200 rounded w-9/12"})]})]})};function vm(){var e,t,r=(0,l().useMemo)(function(){return ll()},[]),o=(0,l().useMemo)(function(){return sl()},[]),i=(e=null==o?void 0:o.osName,t=null==r?void 0:r.name,l().lazy(function(){return n(4693)("./".concat(null==e?void 0:e.toLowerCase(),"/").concat(null==t?void 0:t.toLowerCase(),".md")).then(function(e){return{default:function(){return(0,a().jsx)(Md,{children:e.default})}}}).catch(function(){return n.e(838).then(()=>n(7838)).then(function(e){return{default:function(){return(0,a().jsx)(Md,{children:e.default})}}})})}));return console.log(null==o?void 0:o.osName,null==r?void 0:r.name,"Os and browser"),(0,a().jsx)("div",{className:"prose prose-sm max-w-none markdown-content",children:(0,a().jsx)(l().Suspense,{fallback:(0,a().jsx)(gm,{}),children:(0,a().jsx)(i,{})})})}var wm=function(){return wm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wm.apply(this,arguments)};function xm(){var e=ro(function(e){return qo(e,"compatibilityChecks")}),t=ro(fo),n={systemChecks:{locked:{title:"System Compatibility",description:"We'll check your browser settings to ensure the test runs smoothly",icon:(0,a().jsx)(Wf,{className:"w-12 h-12 text-scaler-500 animate-spin"})},pending:{title:"System Compatibility",description:"We'll check your browser settings to ensure the test runs smoothly",icon:(0,a().jsx)(Wf,{className:"w-12 h-12 text-scaler-500 animate-spin"})},completed:{title:"System Compatibility",description:"We'll check your browser settings to ensure the test runs smoothly",icon:(0,a().jsx)(ni,{className:"w-12 h-12 text-white fill-green-600"})},error:{title:"System Compatibility",description:"We'll check your browser settings to ensure the test runs smoothly",icon:(0,a().jsx)(ua,{className:"w-12 h-12 text-red-500"}),error:(0,a().jsxs)("span",{className:"text-red-500",children:[(0,a().jsx)("strong",{children:"Error"})," - Supported browsers: Latest three versions of Chrome (preferred), Microsoft edge, Firefox and Safari browser"]}),extraUi:null}},networkChecks:{locked:{title:"Network Checks : Compatibility",description:"Checking your network connection to ensure it stays stable during the test.",icon:(0,a().jsx)(Wf,{className:"w-12 h-12 text-scaler-500 animate-spin"})},pending:{title:"Network Checks : Compatibility",description:"Checking your network connection to ensure it stays stable during the test.",icon:(0,a().jsx)(Wf,{className:"w-12 h-12 text-scaler-500 animate-spin"})},completed:{title:"Network Checks : Compatibility",description:"Checking your network connection to ensure it stays stable during the test.",icon:(0,a().jsx)(ni,{className:"w-12 h-12 text-white fill-green-600"})},error:{title:"Network Checks : Compatibility",description:"Checking your network connection to ensure it stays stable during the test.",icon:(0,a().jsx)(ua,{className:"w-12 h-12 text-red-500"}),error:(0,a().jsxs)("span",{className:"text-red-500",children:["Error - Network speed:"," ",(0,a().jsx)("span",{className:"font-medium",children:"Atleast 512kbps"})]}),extraUi:null}},fullScreenCheck:{locked:{title:"Switch to full screen mode",description:"Ensure you stay in full-screen mode at all times",icon:(0,a().jsx)(Wf,{className:"w-12 h-12 text-scaler-500 animate-spin"})},pending:{title:"Switch to full screen mode",description:"Ensure you stay in full-screen mode at all times",icon:(0,a().jsx)(Wf,{className:"w-12 h-12 text-scaler-500 animate-spin"})},completed:{title:"Switch to full screen mode",description:"Ensure you stay in full-screen mode at all times",icon:(0,a().jsx)(ni,{className:"w-12 h-12 text-white fill-green-600"})},error:{title:"Switch to full screen mode",description:"Ensure you stay in full-screen mode at all times",icon:(0,a().jsx)(ua,{className:"w-12 h-12 text-red-500"}),error:(0,a().jsx)("span",{className:"text-red-500",children:"Error - Switch to full screen mode"}),extraUi:(0,a().jsxs)("div",{className:"flex flex-row flex-wrap items-center gap-2 justify-end",children:[(0,a().jsxs)("span",{className:"text-base-200 italic text-sm mr-2G",children:["Press ",(0,a().jsx)("span",{className:"font-semibold",children:"ENTER KEY"})," or"]}),(0,a().jsx)(Pa,{variant:"outline",className:"text-scaler-500 border-blue-500 hover:bg-blue-50 hover:text-blue-600 text-sm",onClick:function(){return null==t?void 0:t.enableFullScreen()},children:"Enter Full Screen Mode"})]})}}};return(0,a().jsx)("div",{className:"max-w-full",children:(0,a().jsx)("section",{className:"flex flex-col rounded-2xl border border-gray-200 bg-white overflow-hidden divide-y divide-gray-200",children:Object.entries(n).map(function(t){var n=t[0],r=t[1],o=e.subSteps[n].status;return(0,a().jsx)(Zp,wm({checkId:n,status:o},r[o]),n)})})})}var km={cameraShare:{icon:Xo,title:"Desktop Camera Permissions",component:(0,a().jsx)(function(){var e=no(),t=cl("cameraShare"),n=ro(function(e){return qo(e,"cameraShare")}),r=n.acknowledged,o=n.subSteps,i=ro(fo),s=ro(function(e){return e.workflow}).enableProctoring,c=ro(function(e){return Uo(e,"cameraShare","cameraShare")}),u=(0,l().useMemo)(function(){return ll()},[]),d=(0,l().useMemo)(function(){return sl()},[]),f=(0,l().useState)(!1),p=f[0],h=f[1],m=function(){s?null==i||i.handleCompatibilityChecks({forceRun:!0}):(null==i||i.handleWebcamRequest(),e(_o()))},y=Object.values(o).every(function(e){return"completed"===e.status}),b=aa(Object.values(o)),g=s||r&&y,v=(0,l().useMemo)(function(){return(0,a().jsx)(Zd,{open:p,onOpenChange:h,isError:"error"===c.status,title:"It looks like you're having trouble accessing your camera",children:(0,a().jsxs)("div",{className:"space-y-6",children:[(0,a().jsx)("p",{className:"text-base-500 text-sm",children:"Refer to the image below for steps to troubleshoot and grant camera permissions"}),(0,a().jsx)("div",{className:"aspect-[16/9] w-full bg-muted rounded-lg overflow-y-auto p-8 shadow-sm",children:(0,a().jsx)(Xd,{browserName:null==u?void 0:u.name,osName:null==d?void 0:d.osName})})]})})},[p,c.status,null==u?void 0:u.name,null==d?void 0:d.osName]);return(0,a().jsxs)(a().Fragment,{children:[(0,a().jsx)(af,{stepNumber:t,title:"Desktop/Laptop Camera Permissions",status:b}),(0,a().jsxs)("div",{className:"mt-16",children:[(0,a().jsx)(gl,{}),(0,a().jsxs)("p",{className:"mt-6 text-sm text-base-500 font-semibold text-center",children:[(0,a().jsx)(ya,{className:"mb-1 w-6 h-6 inline-block mr-2 text-base-500 font-bold"}),"Need help?"," ",(0,a().jsx)("a",{href:"#",onClick:function(e){e.preventDefault(),h(!0)},className:"text-scaler-500 underline",children:"Click to view"})," ","camera setup guide"]}),!s&&(0,a().jsxs)("form",{onSubmit:function(e){e.preventDefault(),g&&m()},children:[(0,a().jsxs)("div",{className:"flex items-start mt-16 text-sm",children:[(0,a().jsx)(el,{id:"confirm",className:"mt-1 mr-4 h-6 w-6",checked:r,onCheckedChange:function(){e(Ao({step:"cameraShare",acknowledged:!r}))},disabled:!y,role:"checkbox",required:y}),(0,a().jsx)("label",{htmlFor:"confirm",className:"text-sm text-gray-600 cursor-pointer",children:"By clicking, you confirm that all your compatibility checks have been successful. Failure to maintain them during the test may result in disqualification."})]}),(0,a().jsx)(Pa,{type:"submit",className:"mt-8 items-center",variant:"primary",size:"lg",disabled:!y,children:s?"Confirm Settings":(0,a().jsxs)(a().Fragment,{children:["Proceed to next step",(0,a().jsx)(ba,{className:"w-6 h-6"})]})})]}),s&&(0,a().jsx)(Pa,{className:"mt-8 items-center",variant:"primary",onClick:m,size:"lg",children:"Confirm Settings"}),p&&v]})]})},{})},screenShare:{icon:Jo,title:"Screen Share Permissions",component:(0,a().jsx)(function(){var e=no(),t=cl("screenShare"),n=ro(function(e){return qo(e,"screenShare")}),r=n.acknowledged,o=n.subSteps,i=ro(function(e){return e.workflow}).enableProctoring,s=ro(fo),c=ro(function(e){return Uo(e,"screenShare","screenShare")}),u=(0,l().useState)(!1),d=u[0],f=u[1],p=function(){i?null==s||s.handleCompatibilityChecks({forceRun:!0}):e(_o())},h=Object.values(o).every(function(e){return"completed"===e.status}),m=aa(Object.values(o)),y=i||r&&h;return(0,a().jsxs)(a().Fragment,{children:[(0,a().jsx)(af,{stepNumber:t,title:"Share your Entire Screen",status:m}),(0,a().jsxs)("div",{className:"mt-16",children:[(0,a().jsx)(bm,{}),(0,a().jsxs)("p",{className:"mt-6 text-sm text-base-500 font-semibold text-center",children:[(0,a().jsx)("img",{src:jh,alt:"Lightbulb Icon",className:"mb-1 w-6 h-6 inline-block mr-2 text-base-500 font-bold"}),"Need help?"," ",(0,a().jsx)("a",{href:"#",onClick:function(e){e.preventDefault(),f(!0)},className:"text-scaler-500 underline",children:"Click to view"})," ","screen sharing setup guide"]}),!i&&(0,a().jsxs)("form",{onSubmit:function(e){e.preventDefault(),y&&p()},noValidate:!1,children:[(0,a().jsxs)("div",{className:"flex items-start mt-16 text-xs",children:[(0,a().jsx)(el,{id:"confirm",className:"mt-1 mr-4 h-6 w-6",checked:r,onCheckedChange:function(){e(Ao({step:"screenShare",acknowledged:!r}))},disabled:!h,role:"checkbox",required:h}),(0,a().jsx)("label",{htmlFor:"confirm",className:"text-sm text-base-200 cursor-pointer",children:"By clicking on this, you confirm that you have shared your entire screen and it will stay connected throughout the test. Failure to do so may result in disqualification"})]}),(0,a().jsx)(Pa,{type:"submit",className:"mt-8 items-center",variant:"primary",size:"lg",disabled:!h,children:i?"Confirm Settings":(0,a().jsxs)(a().Fragment,{children:["Proceed to next step",(0,a().jsx)(ba,{className:"w-6 h-6"})]})})]}),i&&(0,a().jsx)(Pa,{className:"mt-8 items-center",variant:"primary",onClick:p,size:"lg",children:"Confirm Settings"}),(0,a().jsx)(Zd,{open:d,onOpenChange:f,isError:"error"===c.status,title:"It looks like you're having trouble allowing Screen Sharing Permissions",children:(0,a().jsxs)("div",{className:"space-y-6",children:[(0,a().jsx)("p",{className:"text-muted-foreground text-sm",children:"Refer to the guide below for steps to troubleshoot and grant screen sharing permissions"}),(0,a().jsx)("div",{className:"aspect-[16/9] w-full bg-muted rounded-lg overflow-y-auto p-8 shadow-sm",children:(0,a().jsx)(vm,{})})]})})]})]})},{})},mobileCameraShare:{icon:Zo,title:"Mobile Camera Pairing",component:(0,a().jsx)(function(){console.log("MobileCameraStep component rendered");var e,t,n=no(),r=cl("mobileCameraShare"),o=ro(function(e){return qo(e,"mobileCameraShare")}),i=o.acknowledged,a=o.subSteps,s=o.activeSubStep,c=ro(function(e){return e.workflow}).modalOpen,u=(e=(0,l().useState)(!1),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=u[0],f=u[1],p=ro(function(e){return e.workflow}).enableProctoring,h=Object.values(a).every(function(e){return"completed"===e.status});(0,l().useEffect)(function(){return function(){c||n(Mo({step:"mobileCameraShare",setupMode:!1}))}},[c,n]);var m=aa(Object.values(a)),y=p||i&&h,b=(0,l().useCallback)(function(){f(!1)},[]);return l().createElement(l().Fragment,null,l().createElement(af,{stepNumber:r,title:"Mobile Camera Pairing Permissions",status:m}),l().createElement(Ep,{activeTab:s,className:"mt-20"},l().createElement(Ap,{label:"Scan Code & Pair Mobile",name:vp.pairing,isDisabled:!0,isCompleted:"completed"===a[vp.pairing].status},l().createElement(Ch,null)),l().createElement(Ap,{label:"Camera Orientation",name:vp.orientation,isDisabled:!0,isCompleted:"completed"===a[vp.orientation].status},l().createElement(Eh,{setSwitchModalOpen:f})),l().createElement(Ap,{label:"Mobile System Check",name:vp.mobileCompatibility,isDisabled:!0,isCompleted:"completed"===a[vp.mobileCompatibility].status},l().createElement(Ah,null))),!p&&[vp.mobileCompatibility].includes(s)&&l().createElement("div",{className:"mt-8"},l().createElement("form",{onSubmit:function(e){e.preventDefault(),y&&n(_o())}},l().createElement("div",{className:"flex items-start mt-16 text-xs"},l().createElement(el,{id:"confirm",className:"mt-1 mr-4 h-6 w-6",checked:i,onCheckedChange:function(){n(Ao({step:"mobileCameraShare",acknowledged:!i}))},disabled:!h,role:"checkbox",required:h}),l().createElement("label",{htmlFor:"confirm",className:"text-sm text-gray-600 cursor-pointer"},"By clicking on this, you confirm that your mobile phone is paired and will remain charged during the test. If disconnected, you'll need to reconnect before being able to continue with the test.")),l().createElement("div",{className:"flex items-center"},l().createElement(Pa,{type:"submit",className:"mt-8 items-center",size:"lg",variant:"primary",disabled:!h},p?"Confirm Settings":l().createElement(l().Fragment,null,"Proceed to next step",l().createElement(ba,{className:"w-6 h-6"}))),s!==vp.pairing&&l().createElement(Pa,{className:"mt-8 items-center py-8 px-10 ml-6",variant:"outline",disabled:s===vp.pairing,onClick:function(){return f(!0)}},"Scan QR Code again")))),l().createElement(Th,{isOpen:d,onClose:b}))},{})},compatibilityChecks:{icon:ei,title:"System Compatibility Checks",component:(0,a().jsx)(function(){var e,t=no(),n=cl("compatibilityChecks"),r=ro(function(e){return fo(e)}),o=ro(function(e){return qo(e,"compatibilityChecks")}),i=o.acknowledged,a=o.subSteps,s=ro(function(e){return e.workflow}).enableProctoring;(0,l().useEffect)(function(){r&&(null==r||r.handleCompatibilityChecks())},[r]);var c=function(){s?null==r||r.handleCompatibilityChecks({forceRun:!0}):t(_o())},u=null===(e=Object.values(a))||void 0===e?void 0:e.every(function(e){return"completed"===e.status}),d=aa(Object.values(a)),f=s||i&&u;return l().createElement(l().Fragment,null,l().createElement(af,{stepNumber:n,title:"System Compatibility Checks",status:d}),l().createElement("div",{className:"mt-16"},l().createElement(xm,null),!s&&l().createElement("form",{onSubmit:function(e){e.preventDefault(),f&&c()}},l().createElement("div",{className:"flex items-start mt-16 text-xs"},l().createElement(el,{id:"confirm",className:"mt-1 mr-4 h-6 w-6",checked:i,onCheckedChange:function(){t(Ao({step:"compatibilityChecks",acknowledged:!i}))},disabled:!u,role:"checkbox",required:u}),l().createElement("label",{htmlFor:"confirm",className:"text-sm text-base-200 cursor-pointer"},"By clicking, you confirm that all your compatibility checks remains same. Failure to maintain proper setup may result in interruption.")),l().createElement(Pa,{type:"submit",className:"mt-8 items-center",variant:"primary",size:"lg",disabled:!u},s?"Confirm Settings":l().createElement(l().Fragment,null,"Proceed to next step",l().createElement(ba,{className:"w-6 h-6"})))),s&&l().createElement(Pa,{className:"mt-8 items-center",variant:"primary",onClick:c,size:"lg"},"Confirm Settings")))},{})},identityVerification:{icon:ti,title:"Identity Verification",component:(0,a().jsx)(function(){var e,t,n=no(),r=ro(fo),o=ro(function(e){return e.assessmentInfo.token}),i=ro(function(e){return e.assessmentInfo.identity}),s=null!==(e=null==r?void 0:r.baseUrl)&&void 0!==e?e:"",c=null===(t=null==r?void 0:r.snapshotConfig)||void 0===t?void 0:t.deviceId,u=cl(fp),d=(0,l().useState)(null),f=d[0],p=d[1],h=(0,l().useState)(""),m=h[0],y=h[1],b=(0,l().useState)(!1),g=b[0],v=b[1],w=(0,l().useState)(!1),x=w[0],k=w[1],S=(0,l().useState)(0),_=S[0],C=S[1],E=(0,l().useState)(null),A=E[0],T=E[1],j=(0,l().useState)(!1),N=j[0],O=j[1],P=(0,l().useState)(!1),I=P[0],L=P[1],z=(0,l().useState)(!1),M=z[0],R=z[1],D=(0,l().useState)(!1),F=D[0],B=D[1],q=(0,l().useState)(!1),U=q[0],W=q[1],V=(0,l().useState)(""),Q=V[0],H=V[1],K=(0,l().useRef)(!1),$=(0,l().useRef)(null),Y=(0,l().useRef)(null),G=(0,l().useCallback)(function(e){p(e),O(!1)},[]),X=Ff(f,i),J=N&&["attempt_failed","service_error"].includes(X.state)?"capture":X.state,Z=m&&"capture"===J?"error":X.tone,ee=mo(f);(0,l().useEffect)(function(){if(o&&s){var e=!1;return y(""),yf({baseUrl:s,token:o}).then(function(t){e||G(t)}).catch(function(){e||y("We could not load identity verification. Check your connection and try again.")}),function(){e=!0}}},[s,o,_,G]),(0,l().useEffect)(function(){if("pending"===(null==f?void 0:f.status)&&o){var e,t=!1,n=function(r){e=setTimeout(function(){yf({baseUrl:s,token:o}).then(function(e){t||G(e)}).catch(function(){t||n(5e3)})},r)};return n(function(e){var t,n=null!==(t=null==e?void 0:e.retry_after)&&void 0!==t?t:2;return 1e3*Math.min(Math.max(n,1),5)}(f)),function(){t=!0,clearTimeout(e)}}},[s,o,f,G]),(0,l().useEffect)(function(){if(o&&function(e){return"blocked"===e||"service_error"===e}(J)){var e=setInterval(function(){yf({baseUrl:s,token:o}).then(G).catch(function(){})},1e4);return function(){return clearInterval(e)}}},[s,o,J,G]),(0,l().useEffect)(function(){n(To({step:fp,subStep:"identityCapture",status:Z,clearError:!0}))},[n,Z]),(0,l().useEffect)(function(){"skip"===J&&n(_o())},[n,J]),(0,l().useEffect)(function(){!K.current&&["consent","capture"].includes(J)&&(K.current=!0,L(!0))},[J]),(0,l().useEffect)(function(){var e;(e=c,cp(void 0,void 0,void 0,function(){var t,n,r,o;return up(this,function(i){switch(i.label){case 0:return e&&(null===(n=navigator.mediaDevices)||void 0===n?void 0:n.enumerateDevices)?[4,navigator.mediaDevices.enumerateDevices()]:[2,""];case 1:return t=i.sent(),[2,null!==(o=null===(r=t.find(function(t){return t.deviceId===e}))||void 0===r?void 0:r.label)&&void 0!==o?o:""]}})})).then(H).catch(function(){return H("")})},[c]);var te="capture"===J&&!ee;(0,l().useEffect)(function(){var e;if(te){var t,n=null,r=!1;return null===(e=navigator.mediaDevices)||void 0===e||e.getUserMedia((t=c,{video:sp({width:{ideal:640},height:{ideal:480},facingMode:"user"},t?{deviceId:{ideal:t}}:{}),audio:!1})).then(function(e){r?e.getTracks().forEach(function(e){return e.stop()}):(n=e,Y.current=e,$.current&&($.current.srcObject=e))}).catch(function(){r||y("We could not access your camera. Allow camera access and try again.")}),function(){r=!0,k(!1),null==n||n.getTracks().forEach(function(e){return e.stop()}),Y.current=null}}},[te,c]);var ne=function(){var e,t,n;return sp(sp({},Uf(null!==(n=null===(t=null===(e=Y.current)||void 0===e?void 0:e.getVideoTracks()[0])||void 0===t?void 0:t.label)&&void 0!==n?n:Q)),{previous_camera_label:Q||void 0})},re=(0,l().useCallback)(function(){o&&yf({baseUrl:s,token:o}).then(G).catch(function(){return C(function(e){return e+1})})},[s,o,G]);function oe(){return cp(this,void 0,void 0,function(){var e,t,n,r,a,l;return up(this,function(c){switch(c.label){case 0:if(!o)return[2];if((e=ne()).virtual_camera&&"required"===(null===(l=null==i?void 0:i.camera_integrity)||void 0===l?void 0:l.mode))return y(ho("virtual_camera")),[2];v(!0),y(""),c.label=1;case 1:return c.trys.push([1,3,4,5]),[4,wf({baseUrl:s,token:o,signals:e})];case 2:return t=c.sent(),n=t.nonce,r=t.livenessUrl,T({url:r,nonce:n}),[3,5];case 3:return a=c.sent(),y(ho(a instanceof hf?a.message:"request_failed")),re(),[3,5];case 4:return v(!1),[7];case 5:return[2]}})})}var ie=(0,l().useCallback)(function(e){T(null),"error"===e.type&&y(ho(e.code,e.message)),re()},[re]),ae=function(){y(""),O(!0),ee&&oe()},le=function(){return n(_o())},se=function(){return L(!0)},ce=(0,a().jsx)(af,{stepNumber:u,title:"Identity Verification",status:Z});if("loading"===J||"skip"===J)return(0,a().jsxs)(a().Fragment,{children:[ce,(0,a().jsx)("div",{className:"mt-16",children:m?(0,a().jsxs)(a().Fragment,{children:[(0,a().jsx)("p",{className:"text-sm text-red-500",children:m}),(0,a().jsx)(Pa,{variant:"primary",size:"lg",className:"mt-6",onClick:function(){return C(function(e){return e+1})},children:"Try again"})]}):(0,a().jsx)(ef,{size:"md"})})]});var ue=function(e){return void 0===e&&(e="Continue"),X.canProceed&&!A&&(0,a().jsxs)(Pa,{variant:"outline",size:"lg",className:"items-center gap-3",onClick:le,disabled:g,children:[e,(0,a().jsx)(ba,{className:"w-6 h-6"})]})},de=(0,a().jsx)(Pa,{variant:"outline",size:"lg",onClick:se,children:"See how to do it"}),fe=function(e,t,n,r){return(0,a().jsxs)("div",{className:"flex items-start text-sm",children:[(0,a().jsx)(el,{id:e,className:"mt-1 mr-4 h-6 w-6",checked:t,onCheckedChange:function(e){return n(!0===e)}}),(0,a().jsx)("label",{htmlFor:e,className:"cursor-pointer text-sm text-gray-600",children:r})]})},pe=dp(dp(["We saw your face"],ee?["We know you are really there"]:[],!0),"verified"===J?["Your face matches the photo on your record"]:[],!0),he=null,me=null;return"consent"===J?(he=(0,a().jsx)(ip,{baseUrl:s,livenessOn:ee,onOpenGuide:se}),me=(0,a().jsxs)(a().Fragment,{children:[fe("identity-consent",F,B,Tf),(0,a().jsxs)("div",{className:"mt-8 flex items-center gap-6",children:[(0,a().jsxs)(Pa,{variant:"primary",size:"lg",className:"items-center gap-3",disabled:!F||g,onClick:function(){return cp(void 0,void 0,void 0,function(){var e,t;return up(this,function(n){switch(n.label){case 0:if(!o)return[2];v(!0),y(""),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,xf({baseUrl:s,token:o,version:"2026-10-06"})];case 2:return e=n.sent(),G(e),[3,4];case 3:return t=n.sent(),y(ho(t instanceof hf?t.message:"request_failed")),v(!1),[2];case 4:return v(!1),function(e,t){return mo(e)&&"capture"===Ff(e,t).state}(e,i)&&oe(),[2]}})})},children:[g?"Starting…":"Start face check",(0,a().jsx)(ba,{className:"w-6 h-6"})]}),(0,a().jsx)(Pa,{variant:"outline",size:"lg",onClick:function(){return W(!0)},children:"I do not agree"})]}),U&&!F&&(0,a().jsx)("p",{className:"mt-4 text-sm text-red-500",children:jf}),m&&(0,a().jsx)("p",{className:"mt-4 text-sm text-red-500",children:m})]})):"capture"===J&&ee?(he=A?(0,a().jsxs)(Hf,{banner:m,children:[(0,a().jsx)(ap,{url:A.url,nonce:A.nonce,onDone:ie,className:"h-[60rem] w-full"}),(0,a().jsx)("p",{className:"mt-3 text-center text-sm text-base-500",children:"A short live check: keep your face in the oval while the screen changes colour."})]}):(0,a().jsx)(Hf,{banner:m,children:(0,a().jsxs)($f,{children:[(0,a().jsx)(rp,{tone:"info",baseUrl:s}),(0,a().jsxs)("div",{children:[(0,a().jsx)(Zf,{title:g?"Opening the face check…":"Ready for your face check"}),(0,a().jsx)("ul",{className:"mt-4 list-disc space-y-1 pl-5 text-base leading-relaxed text-base-500",children:Nf.map(function(e){return(0,a().jsx)("li",{children:e},e)})}),(0,a().jsx)("p",{className:"mt-4 rounded-md bg-scaler-100 px-4 py-3 text-sm text-base-700",children:Of})]})]})}),me=!A&&(0,a().jsxs)("div",{className:"flex items-center gap-6",children:[(0,a().jsxs)(Pa,{variant:"primary",size:"lg",className:"items-center gap-3",disabled:g,onClick:oe,children:[g?"Starting…":"Start face check",(0,a().jsx)(ba,{className:"w-6 h-6"})]}),de,ue("Continue without verifying")]})):"capture"===J?(he=(0,a().jsx)(Hf,{banner:m,children:(0,a().jsxs)(Kf,{children:[(0,a().jsxs)("div",{children:[(0,a().jsx)(Gf,{ring:x?"framed":"searching",pill:"Put your face in the oval",live:!0,children:(0,a().jsx)("video",{ref:$,autoPlay:!0,muted:!0,playsInline:!0,onLoadedData:function(){return k(!0)},className:"h-full w-full object-cover",style:{transform:"scale(-1, 1)"}})}),(0,a().jsx)("p",{className:"mt-3 text-center text-sm text-base-500",children:"We take one photo of you and match it with the photo on your record."})]}),(0,a().jsx)(Xf,{spinner:!x,children:x?"Camera is on. Put your face in the oval, look at the camera and start when ready.":"Waiting for you to sit in front of the camera"})]})}),me=te&&(0,a().jsxs)("div",{className:"flex items-center gap-6",children:[(0,a().jsxs)(Pa,{variant:"primary",size:"lg",className:"items-center gap-3",disabled:!x||g,onClick:function(){return cp(void 0,void 0,void 0,function(){var e,t,n,r;return up(this,function(i){switch(i.label){case 0:if(!(e=$.current)||!o)return[2];v(!0),y(""),i.label=1;case 1:return i.trys.push([1,4,5,6]),[4,pp(e)];case 2:return t=i.sent(),n=G,[4,vf({baseUrl:s,token:o,image:t,signals:ne()})];case 3:return n.apply(void 0,[i.sent()]),[3,6];case 4:return r=i.sent(),y(ho(r instanceof hf?r.message:"upload_failed")),[3,6];case 5:return v(!1),[7];case 6:return[2]}})})},children:[g?"Checking…":"Start face check",(0,a().jsx)(ba,{className:"w-6 h-6"})]}),de,ue("Continue without verifying")]})):"analysing"===J?he=(0,a().jsx)(Hf,{children:(0,a().jsxs)($f,{children:[(0,a().jsx)(rp,{tone:"info",baseUrl:s}),(0,a().jsx)(Xf,{children:X.title})]})}):"verified"===J||"captured"===J?(he=(0,a().jsx)(Hf,{children:(0,a().jsxs)($f,{children:[(0,a().jsx)(rp,{tone:"success",baseUrl:s}),(0,a().jsxs)("div",{children:[(0,a().jsx)(Zf,{title:X.title,sub:X.body,done:!0}),(0,a().jsx)(Jf,{rows:pe})]})]})}),me=(0,a().jsxs)(a().Fragment,{children:[fe("identity-confirm",M,R,Pf),(0,a().jsxs)(Pa,{variant:"primary",size:"lg",className:"mt-8 items-center gap-3",disabled:!M,onClick:le,children:["Next step",(0,a().jsx)(ba,{className:"w-6 h-6"})]})]})):"manually_verified"===J?(he=(0,a().jsx)(Hf,{children:(0,a().jsxs)($f,{children:[(0,a().jsx)(rp,{tone:"success",baseUrl:s}),(0,a().jsx)(Zf,{title:X.title,sub:X.body,done:!0})]})}),me=(0,a().jsxs)(a().Fragment,{children:[fe("identity-confirm",M,R,Pf),(0,a().jsxs)(Pa,{variant:"primary",size:"lg",className:"mt-8 items-center gap-3",disabled:!M,onClick:le,children:["Next step",(0,a().jsx)(ba,{className:"w-6 h-6"})]})]})):"attempt_failed"===J?(he=(0,a().jsx)(Hf,{banner:m||X.banner,children:(0,a().jsxs)($f,{children:[(0,a().jsx)(rp,{tone:"error",baseUrl:s}),(0,a().jsxs)("div",{children:[(0,a().jsx)(Zf,{title:X.title,sub:X.body}),(0,a().jsx)(np,{tip:X.tip,onOpenGuide:se}),null!=X.attemptsLeft&&(0,a().jsx)(ep,{label:"Attempts left",value:X.attemptsLeft})]})]})}),me=(0,a().jsxs)("div",{className:"flex items-center gap-6",children:[X.canRetry&&(0,a().jsx)(Pa,{variant:"primary",size:"lg",onClick:ae,children:"Try again"}),de,ue()]})):"blocked"===J?(he=(0,a().jsx)(Hf,{banner:X.banner,children:(0,a().jsxs)($f,{children:[(0,a().jsx)(rp,{tone:"error",baseUrl:s}),(0,a().jsxs)("div",{children:[(0,a().jsx)(Zf,{title:X.title,sub:X.body}),(0,a().jsx)("ul",{className:"mt-4 list-disc space-y-2 pl-5 text-base text-base-500",children:X.bullets.map(function(e){return(0,a().jsx)("li",{children:e},e)})}),X.referenceId&&(0,a().jsx)(ep,{label:"Reference ID",value:X.referenceId})]})]})}),me=(0,a().jsx)(Pa,{variant:"outline",size:"lg",onClick:re,children:"Check again"})):"service_error"===J&&(he=(0,a().jsx)(Hf,{banner:X.banner,children:(0,a().jsxs)($f,{children:[(0,a().jsx)(rp,{tone:"neutral",baseUrl:s}),(0,a().jsxs)("div",{children:[(0,a().jsx)(Zf,{title:X.title,sub:X.body}),null!=X.attemptsUsed&&(0,a().jsx)(ep,{label:"Attempts used",value:X.attemptsUsed})]})]})}),me=(0,a().jsxs)("div",{className:"flex items-center gap-6",children:[(0,a().jsx)(Pa,{variant:"primary",size:"lg",onClick:ae,children:"Try again"}),(0,a().jsx)(Pa,{variant:"outline",size:"lg",onClick:re,children:"Check again"}),ue()]})),(0,a().jsxs)(a().Fragment,{children:[ce,(0,a().jsxs)("div",{className:"mt-16 w-full",children:[he,(0,a().jsx)(op,{onOpen:se}),me&&(0,a().jsx)("div",{className:"mt-16",children:me})]}),(0,a().jsx)(lp,{baseUrl:s,isOpen:I,onClose:function(){return L(!1)}})]})},{})}};function Sm(){var e,t=ro(function(e){return e.workflow}),n=t.activeStep,r=t.enableProctoring,o=t.steps,i=t.modalOpen,s=ro(function(e){return e.workflow.isDisqualified}),c=ro(function(e){return e.workflow.beepConfig}),u=(0,l().useState)(i),d=u[0],f=u[1],p=(0,l().useState)(!1),h=p[0],m=p[1],y=(0,l().useState)(3),b=y[0],g=y[1],v=(0,l().useMemo)(function(){return bo.reduce(function(e,t){var n;return(null===(n=o[t])||void 0===n?void 0:n.enabled)&&(e[t]=km[t]),e},{})},[o]),w=(0,l().useMemo)(function(){return Object.entries(o).reduce(function(e,t){var n=t[0],r=t[1];return r.enabled&&"error"===aa(Object.values(r.subSteps))&&e.push(n),e},[])},[o]),x=(0,l().useState)(n),k=x[0],S=x[1];return(0,l().useEffect)(function(){i&&(S(n),f(!0),m(!1),g(2))},[i,n]),(0,l().useEffect)(function(){if(!i&&d){s||m(!0);var e=setInterval(function(){g(function(t){return t<=1?(clearInterval(e),f(!1),m(!1),0):t-1})},1e3);return function(){return clearInterval(e)}}},[i,d,s]),(0,a().jsx)(ia,{isOpen:d,modalClassName:"w-[100%] h-[100%] flex flex-col items-stretch overflow-hidden",children:h?(0,a().jsxs)("div",{className:"flex flex-col items-center justify-center h-full bg-white space-y-4",children:[(0,a().jsx)(ni,{className:"w-32 h-32 text-white fill-green-600"}),(0,a().jsx)("div",{className:"text-3xl font-semibold text-green-600",children:"Compatibility Check Success"}),(0,a().jsxs)("div",{className:"text-lg text-gray-500",children:["Redirecting back to the page in ",b," seconds"]})]}):(0,a().jsxs)(a().Fragment,{children:[d&&r&&n&&(0,a().jsx)(cf,{activeStep:k,modalOpen:d,failingSteps:w,beepConfig:c}),(0,a().jsxs)("div",{className:"grow flex flex-row items-center overflow-hidden",children:[(0,a().jsx)("div",{className:"flex flex-col justify-center bg-base-100 p-20 pt-24 m-w-96 w-1/3 h-[calc(100vh-22px)] overflow-y-auto",children:(0,a().jsxs)("div",{className:"h-[80%]",children:[(0,a().jsx)(sa,{}),(0,a().jsx)(ma,{step_data:v})]})}),(0,a().jsx)("div",{className:"flex flex-col justify-center p-20 pt-20 flex-1 overflow-y-auto h-full",children:null===(e=v[n])||void 0===e?void 0:e.component})]})]})})}n(4876);const _m=`<div class="warning-modal" id="warning-modal"> <div class="warning-modal__body"> <div class="warning-modal__icon-wrap"> <img src="${new URL(n(4989),n.b)}" class="warning-modal__warning-icon" id="warning-modal-icon"> </div> <div class="warning-modal__content"> <div class="warning-modal__heading" id="warning-modal-heading"> Warning </div> <div class="warning-modal__text" id="warning-modal-text"> You switched tabs/windows during the test. Repeating this action may result in disqualification and a failed test attempt. </div> </div> </div> <div class="warning-modal__action" id="warning-modal-action"> Continue with the test </div> <span class="warning-modal__close-btn" id="warning-modal-close-btn"> &times; </span> </div>`;var Cm=n(4989);function Em(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=document.getElementById("warning-modal");if(t){if(e&&("click"===e.type||e instanceof Event))return void(t.style.display="none");if(e!==t.classList.contains("warning-modal--networkAlert"))return;t.style.display="none"}}function Am(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=document.getElementById("warning-modal"),i=document.getElementById("warning-modal-heading"),a=document.getElementById("warning-modal-text"),l=document.getElementById("warning-modal-action");o&&i&&a&&l&&(i.textContent=e,a.textContent=t,o.classList.remove("warning-modal--networkAlert"),o.style.display="none",r&&o.classList.add("warning-modal--networkAlert"),o.style.display="block",l.style.display=n?"none":"block")}function Tm(){var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()}function jm(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement}function Nm(e){var t=e.onFullScreenEnabled,n=e.onFullScreenDisabled;function r(){jm()?t():n()}jm()?t():n(),document.addEventListener("fullscreenchange",r),document.addEventListener("webkitfullscreenchange",r),document.addEventListener("mozfullscreenchange",r),document.addEventListener("MSFullscreenChange",r)}function Om(e){window.addEventListener("blur",function(){e(mp.browserBlur,!1)})}function Pm(e){function t(t){!t.ctrlKey&&!t.metaKey||"c"!==t.key&&"x"!==t.key&&"v"!==t.key?(t.ctrlKey||t.metaKey)&&"V"===t.key&&t.shiftKey&&(t.preventDefault(),e(mp.copyPasteCut)):(t.preventDefault(),e(mp.copyPasteCut))}function n(t){t.preventDefault(),e(mp.copyPasteCut)}function r(t){t.preventDefault(),e(mp.copyPasteCut)}return window.addEventListener("keydown",t),window.addEventListener("cut",n),window.addEventListener("copy",n),window.addEventListener("paste",r),function(){window.removeEventListener("keydown",t),window.removeEventListener("cut",n),window.removeEventListener("copy",n),window.removeEventListener("paste",r)}}function Im(e){window.addEventListener("beforeunload",function(t){window.isUserDisqualified||window.isTestEnding||(t.preventDefault(),t.returnValue="",e(mp.exitTab))})}var Lm=[{code:"Tab",modifiers:["Alt"],eventType:"alt_tab"},{code:"Tab",modifiers:["Meta"],eventType:"meta_tab"},{code:"KeyI",modifiers:["Control","Shift"],eventType:"ctrl_shift_i"},{code:"KeyQ",modifiers:["Control"],eventType:"ctrl_q"},{code:"KeyW",modifiers:["Control"],eventType:"ctrl_w"},{code:"KeyC",modifiers:["Control","Shift"],eventType:"ctrl_shift_c"},{code:"KeyI",modifiers:["Meta","Alt"],eventType:"ctrl_shift_i"},{code:"KeyC",modifiers:["Meta","Shift"],eventType:"ctrl_shift_c"},{code:"KeyJ",modifiers:["Control","Shift"],eventType:"ctrl_shift_j"},{code:"KeyJ",modifiers:["Meta","Alt"],eventType:"ctrl_shift_j"},{code:"KeyM",modifiers:["Meta"],eventType:"cmd_m"},{code:"KeyH",modifiers:["Meta"],eventType:"cmd_h"},{code:"KeyW",modifiers:["Meta"],eventType:"cmd_w"},{code:"KeyQ",modifiers:["Meta"],eventType:"cmd_q"}];function zm(e){function t(t){var n=t.code,r=t.metaKey,o=t.ctrlKey,i=t.altKey,a=t.shiftKey;Lm.forEach(function(l){var s=l.code,c=l.modifiers,u=l.eventType,d=n===s,f=c.every(function(e){switch(e.toLowerCase()){case"meta":return r;case"control":return o;case"alt":return i;case"shift":return a;default:return!1}});d&&f&&(t.preventDefault(),e(mp.restrictedKeyEvent,u))})}return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}function Mm(e){document.addEventListener("contextmenu",function(t){t.preventDefault(),e(mp.rightClick)})}function Rm(e){document.addEventListener("visibilitychange",function(){document.hidden&&e(mp.tabSwitch)})}function Dm(){document.addEventListener("selectstart",function(e){e.preventDefault()})}function Fm(e){function t(t){"tab"===t.code.toLowerCase()&&(t.altKey||t.metaKey)&&(t.preventDefault(),e(mp.altTab))}return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}function Bm(e){function t(t){"KeyI"===t.code&&(t.ctrlKey||t.metaKey)&&t.shiftKey&&(t.preventDefault(),e(mp.ctrlShiftI))}return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}function qm(e){function t(t){"KeyH"===t.code&&t.metaKey&&(t.preventDefault(),e(mp.cmdH))}return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}function Um(e){function t(t){"KeyM"===t.code&&t.metaKey&&(t.preventDefault(),e(mp.cmdM))}return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}function Wm(e){function t(t){"KeyW"===t.code&&t.metaKey&&(t.preventDefault(),e(mp.cmdW))}return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}function Vm(e){function t(t){"KeyQ"===t.code&&t.metaKey&&(t.preventDefault(),e(mp.cmdQ))}return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}function Qm(e){function t(t){"KeyJ"===t.code&&(t.ctrlKey||t.metaKey)&&t.shiftKey&&(t.preventDefault(),e(mp.ctrlShiftJ))}return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}function Hm(e){function t(t){"KeyQ"===t.code&&t.ctrlKey&&(t.preventDefault(),e(mp.ctrlQ))}return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}function Km(e){function t(t){"KeyW"===t.code&&t.ctrlKey&&(t.preventDefault(),e(mp.ctrlW))}return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}function $m(e){function t(t){"KeyC"===t.code&&(t.ctrlKey||t.metaKey)&&t.shiftKey&&(t.preventDefault(),e(mp.ctrlShiftC))}return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}function Ym(e){return Ym="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ym(e)}function Gm(){Gm=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:E(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",y={};function b(){}function g(){}function v(){}var w={};c(w,a,function(){return this});var x=Object.getPrototypeOf,k=x&&x(x(O([])));k&&k!==n&&r.call(k,a)&&(w=k);var S=v.prototype=b.prototype=Object.create(w);function _(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==Ym(u)&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,l)})}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=A(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function A(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Ym(t)+" is not iterable")}return g.prototype=v,o(S,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(C.prototype),c(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},_(S),c(S,s,"Generator"),c(S,a,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function Xm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xm(Object(n),!0).forEach(function(t){Zm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zm(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ym(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ym(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ym(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ey(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}var ty=null,ny={video:{width:{ideal:640},height:{ideal:480},frameRate:{ideal:4},facingMode:"user",advanced:[{aspectRatio:4/3},{resizeMode:"crop-and-scale"}]}};function ry(){return document.getElementById("webcam")}var oy=null;function iy(e){var t=e.onSnapshotFailure,n=e.frequency,r=e.resizeDimensions;return oy&&clearInterval(oy),oy=setInterval(function(){!function(e){var t=e.onSnapshotFailure,n=e.resizeDimensions,r=ry(),o=em();if(r){var i=document.createElement("canvas"),a=i.getContext("2d");i.width=r.videoWidth,i.height=r.videoHeight,a.drawImage(r,0,0,i.width,i.height),function(e,t){return new Promise(function(n,r){var o=t.width,i=t.height,a=new Image;a.src=e,a.onload=function(){var e=document.createElement("canvas"),t=e.getContext("2d");e.width=o,e.height=i,t.drawImage(a,0,0,o,i),e.toBlob(function(e){e?n(e):r(new Error("Failed to create blob"))},"image/jpeg",.7)},a.onerror=function(){r(new Error("Failed to load image"))}})}(i.toDataURL("image/jpeg"),n).then(function(e){o.addSnapshot(e,"webcam").catch(function(e){null==t||t({error:e})})}).catch(function(e){null==t||t({error:e})})}else null==t||t({error:new Error("No video element found")})}({onSnapshotFailure:t,resizeDimensions:r})},n),oy}function ay(e,t,n){return e<10&&t<10&&n<10}function ly(e,t,n,r,o){var i=document.createElement("canvas"),a=i.getContext("2d");i.width=e.videoWidth,i.height=e.videoHeight,setTimeout(function(){var t,l;a.drawImage(e,0,0,i.width,i.height),t=a.getImageData(0,0,i.width,i.height).data,l=n,function(e){for(var t=0,n=0;n<e.length;n+=4)ay(e[n],e[n+1],e[n+2])&&(t+=1);return t}(t)/(t.length/4)>=l?null==o||o({error:new Error("Mostly black video feed detected")}):null==r||r({videoElement:e})},1e3)}function sy(){return cy.apply(this,arguments)}function cy(){var e;return e=Gm().mark(function e(){var t;return Gm().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,navigator.mediaDevices.enumerateDevices();case 3:return t=e.sent,e.abrupt("return",t.filter(function(e){return"videoinput"===e.kind}).map(function(e){return{id:e.deviceId,label:e.label||"Camera ".concat(e.deviceId.slice(0,4),"...")}}));case 7:return e.prev=7,e.t0=e.catch(0),console.error("Error getting cameras:",e.t0),e.abrupt("return",[]);case 11:case"end":return e.stop()}},e,null,[[0,7]])}),cy=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){ey(i,r,o,a,l,"next",e)}function l(e){ey(i,r,o,a,l,"throw",e)}a(void 0)})},cy.apply(this,arguments)}function uy(e){var t=e.onWebcamEnabled,n=e.onWebcamDisabled,r=e.optional,o=e.blackPixelThreshold,i=void 0===o?.8:o,a=e.deviceId,l=void 0===a?"":a;if(ty&&!function(e,t){var n;return!(!e||t&&(null===(n=e.getVideoTracks()[0])||void 0===n?void 0:n.getSettings().deviceId)!==t)}(ty,l)&&function(){ty&&(ty.getTracks().forEach(function(e){return e.stop()}),ty=null);var e=ry();e&&(e.srcObject=null)}(),ty){var s=ry();if(s)return s.srcObject=ty,void(s.onloadedmetadata=function(){s.play(),ly(s,0,i,t,n)})}navigator.mediaDevices.getUserMedia(Jm(Jm({},ny),{},{video:Jm(Jm({},ny.video),{},{deviceId:{exact:l||void 0}})})).then(function(e){ty=e;var r=ry();r&&(r.srcObject=e,r.onloadedmetadata=function(){r.play(),ly(r,0,i,t,n)})}).catch(function(e){r?"NotFoundError"!==e.name&&(null==n||n({error:e})):null==n||n({error:e})})}var dy=n(8723),fy={};function py(e){return py="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},py(e)}function hy(){hy=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:E(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",y={};function b(){}function g(){}function v(){}var w={};c(w,a,function(){return this});var x=Object.getPrototypeOf,k=x&&x(x(O([])));k&&k!==n&&r.call(k,a)&&(w=k);var S=v.prototype=b.prototype=Object.create(w);function _(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==py(u)&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,l)})}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=A(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function A(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(py(t)+" is not iterable")}return g.prototype=v,o(S,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(C.prototype),c(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},_(S),c(S,s,"Generator"),c(S,a,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function my(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?my(Object(n),!0).forEach(function(t){by(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):my(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function by(e,t,n){return(t=function(e){var t=function(e){if("object"!=py(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=py(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==py(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gy(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}fy.styleTagTransform=Z()(),fy.setAttributes=X()(),fy.insert=G()().bind(null,"head"),fy.domAPI=Y()(),fy.insertStyleElement=J()(),$()()(dy.A,fy),dy.A&&dy.A.locals&&dy.A.locals;var vy=function(){var e,t=(e=hy().mark(function e(t){var n,r,o,i,a,l,s,c;return hy().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.baseUrl,r=t.endpoint,o=t.defaultPayload,i=t.onSuccess,a=t.onFailure,e.prev=1,(l=new URL(r||"/api/v1/proctoring/events",n)).search=new URLSearchParams(yy({},o)).toString(),e.next=6,fetch(l.toString());case 6:if((s=e.sent).ok){e.next=9;break}throw new Error("HTTP error! status: ".concat(s.status));case 9:return e.next=11,s.json();case 11:c=e.sent,null==i||i(c),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(1),null==a||a(e.t0);case 18:case"end":return e.stop()}},e,null,[[1,15]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){gy(i,r,o,a,l,"next",e)}function l(e){gy(i,r,o,a,l,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}();function wy(){return new Worker(n.p+"violation.worker.js")}function xy(){return new Worker(n.p+"compatibility.worker.js")}function ky(){return new Worker(n.p+"network.worker.js")}function Sy(e){return Sy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sy(e)}function _y(){_y=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:E(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",y={};function b(){}function g(){}function v(){}var w={};c(w,a,function(){return this});var x=Object.getPrototypeOf,k=x&&x(x(O([])));k&&k!==n&&r.call(k,a)&&(w=k);var S=v.prototype=b.prototype=Object.create(w);function _(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==Sy(u)&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,l)})}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=A(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function A(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Sy(t)+" is not iterable")}return g.prototype=v,o(S,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(C.prototype),c(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},_(S),c(S,s,"Generator"),c(S,a,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function Cy(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Ey(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Cy(i,r,o,a,l,"next",e)}function l(e){Cy(i,r,o,a,l,"throw",e)}a(void 0)})}}function Ay(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ty(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ay(Object(n),!0).forEach(function(t){jy(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ay(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jy(e,t,n){return(t=Oy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ny(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Oy(r.key),r)}}function Oy(e){var t=function(e){if("object"!=Sy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sy(t)?t:t+""}var Py=function(){return e=function e(t){var n,r=this,o=t.baseUrl,i=void 0===o?null:o,a=t.eventsConfig,l=void 0===a?{}:a,s=t.disqualificationConfig,c=void 0===s?{}:s,u=t.config,d=void 0===u?{}:u,f=t.snapshotConfig,p=void 0===f?{}:f,h=t.screenshotConfig,m=void 0===h?{}:h,y=t.compatibilityCheckConfig,b=void 0===y?{}:y,g=t.callbacks,v=void 0===g?{}:g,w=t.enableAllAlerts,x=void 0!==w&&w,k=t.headerOptions,S=void 0===k?{}:k,_=t.mobilePairingConfig,C=void 0===_?{}:_,E=t.qrCodeConfig,A=void 0===E?{}:E,T=t.workerConfig,j=void 0===T?{}:T,N=t.networkConfig,O=void 0===N?{}:N;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.baseUrl=i,this.eventsConfig=Ty({maxEventsBeforeSend:5,endpoint:l.endpoint},l),this.headerOptions=Ty({csrfToken:null,contentType:"application/x-www-form-urlencoded"},S),this.compatibilityCheckConfig=Ty({enable:!0,showAlert:x,frequency:1e4,maxFrequency:6e4,cpuThreshold:30,disqualificationTimeout:45e3,memoryLimit:200,showTimer:!0,buttonText:"Confirm Settings",headingText:"System Check: Configure Required Settings",defaultPayload:{},endpoint:""},b),this.disqualificationConfig=Ty({enabled:!0,eventCountThreshold:5,showAlert:x,alertHeading:"Disqualification Alert",alertMessage:"You have been disqualified from the contest"},c),this.mobilePairingConfig=Ty({enabled:!1,defaultPayload:{},endpoint:""},C),this.qrCodeConfig=Ty({defaultPayload:{},endpoint:""},A),this.proctoringInitialised=!1,this.config=(jy(jy(jy(jy(jy(jy(jy(jy(jy(jy(n={},mp.tabSwitch,Ty({name:mp.tabSwitch,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.tabSwitch)),mp.browserBlur,Ty({name:mp.browserBlur,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.browserBlur)),mp.rightClick,Ty({name:mp.rightClick,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.rightClick)),mp.exitTab,Ty({name:mp.exitTab,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.exitTab)),mp.copyPasteCut,Ty({name:mp.copyPasteCut,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.copyPasteCut)),mp.restrictedKeyEvent,Ty({name:mp.restrictedKeyEvent,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.restrictedKeyEvent)),mp.textSelection,Ty({name:mp.textSelection,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.textSelection)),mp.fullScreen,Ty({name:mp.fullScreen,enabled:!0,showAlert:!1,recordViolation:!0,disqualify:!0},d.fullScreen)),mp.ctrlShiftI,Ty({name:mp.ctrlShiftI,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.ctrlShiftI)),mp.ctrlShiftC,Ty({name:mp.ctrlShiftC,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.ctrlShiftC)),jy(jy(jy(jy(jy(jy(jy(jy(jy(n,mp.ctrlShiftJ,Ty({name:mp.ctrlShiftJ,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.ctrlShiftJ)),mp.altTab,Ty({name:mp.altTab,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.altTab)),mp.ctrlQ,Ty({name:mp.ctrlQ,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.ctrlQ)),mp.ctrlW,Ty({name:mp.ctrlW,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.ctrlW)),mp.cmdH,Ty({name:mp.cmdH,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.cmdH)),mp.cmdQ,Ty({name:mp.cmdQ,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.cmdQ)),mp.cmdM,Ty({name:mp.cmdM,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.cmdM)),mp.cmdW,Ty({name:mp.cmdW,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.cmdW)),mp.screenshareExit,Ty({name:mp.screenshareExit,enabled:!0,showAlert:x,recordViolation:!0,disqualify:!0},d.screenshareExit))),this.snapshotConfig=Ty({enabled:!1,frequency:5e3,resizeTo:yp,optional:!1,deviceId:null},p),this.screenshotConfig=Ty({enabled:!0,frequency:5e3,resizeTo:bp},m),this.networkConfig=Ty({enabled:!1,interval:5e3,testResourceURL:"https://dajh2p2mfq4ra.cloudfront.net/assets/icons/ib-logo-hire-8f3406787bc4241628bb7e5bea43d56a7ab275401134c297b6631c8b81cd3996.png",timeoutMs:1e4,speedThresholdMbps:1,alertCooldownSec:60},O),this.callbacks={onDisqualified:v.onDisqualified||function(){},onWebcamDisabled:v.onWebcamDisabled||function(){},onWebcamEnabled:v.onWebcamEnabled||function(){},onSnapshotSuccess:v.onSnapshotSuccess||function(){},onSnapshotFailure:v.onSnapshotFailure||function(){},onScreenShareSuccess:v.onScreenShareSuccess||function(){},onScreenShareFailure:v.onScreenShareFailure||function(){},onScreenShareEnd:v.onScreenShareEnd||function(){},onScreenshotFailure:v.onScreenshotFailure||function(){},onScreenshotSuccess:v.onScreenshotSuccess||function(){},onFullScreenEnabled:v.onFullScreenEnabled||function(){},onFullScreenDisabled:v.onFullScreenDisabled||function(){},onCompatibilityCheckSuccess:v.onCompatibilityCheckSuccess||function(){},onCompatibilityCheckFail:v.onCompatibilityCheckFail||function(){},onNetworkUpdate:v.onNetworkUpdate||function(){}},this.violationEvents=[],this.recordedViolationEvents=[],this.failedCompatibilityChecks=!1,this.compatibilityCheckInterval=null,this.initializeProctoring=this.initializeProctoring.bind(this),this.runCompatibilityChecks=this.runCompatibilityChecks.bind(this),this.startCompatibilityChecks=this.startCompatibilityChecks.bind(this),this.runAdaptiveCompatibilityChecks=this.runAdaptiveCompatibilityChecks.bind(this),this.initialFullScreen=!1,window.isUserDisqualified=!1,function(){var e=document.createElement("div");e.innerHTML=_m,document.body.appendChild(e);var t=document.getElementById("warning-modal-close-btn"),n=document.getElementById("warning-modal-action"),r=document.getElementById("warning-modal-icon");r&&(r.src=Cm),t&&t.addEventListener("click",Em),n&&n.addEventListener("click",Em)}(),this.snapshotConfig.enabled&&function(){if(!document.getElementById("webcam-wrapper")){var e=document.createElement("div");document.body.appendChild(e);var t=document.createElement("div");t.innerHTML='<div id="webcam-wrapper"> <video autoplay playsinline id="webcam" style="display:none"></video> </div>',e.appendChild(t)}}(),document.addEventListener("keydown",function(e){if(!jm()&&("Enter"===e.key||"Return"===e.key)){Tm();var t=document.getElementById("fullscreenBlocker");t&&(t.style.display="none")}}),this.queueManager=em({screenshot:function(e){return r.callbacks.onScreenshotSuccess(e)},webcam:function(e){return r.callbacks.onSnapshotSuccess(e)}},{networkCheckInterval:5e3}),this.screenshotIntervalId=null,this.snapshotIntervalId=null,this.workerConfig=Ty({violationWorkerUrl:null,compatibilityWorkerUrl:null,networkWorkerUrl:null},j),this.violationWorker=this.workerConfig.violationWorkerUrl?new Worker(this.workerConfig.violationWorkerUrl,{type:"classic"}):new wy,this.violationWorker.addEventListener("message",this.handleWorkerMessage.bind(this)),this.violationWorker.postMessage({type:"INIT",data:{baseUrl:this.eventsConfig.baseUrl,endpoint:this.eventsConfig.endpoint,maxEventsBeforeSend:this.eventsConfig.maxEventsBeforeSend,contentType:this.headerOptions.contentType,csrfToken:this.headerOptions.csrfToken}}),this.networkCheckInterval=null,this.lastNetworkCheckResult=null,this.NETWORK_CHECK_FREQUENCY=3e4,this.webcamStatus={isEnabled:!1,error:null},this.compatibilityWorker=this.workerConfig.compatibilityWorkerUrl?new Worker(this.workerConfig.compatibilityWorkerUrl,{type:"classic"}):new xy,this.compatibilityWorker.postMessage({type:"INIT",data:{baseUrl:this.baseUrl,frequency:this.compatibilityCheckConfig.frequency,maxFrequency:this.compatibilityCheckConfig.maxFrequency}}),this.networkWorker=null,this.lastNetworkAlertTimestamp=0},t=[{key:"initializeProctoring",value:(a=Ey(_y().mark(function e(){var t;return _y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.proctoringInitialised=!0,!this.screenshotConfig.enabled){e.next=4;break}return e.next=4,this.handleScreenshareRequest();case 4:this.config.fullScreen.enabled&&Nm({onFullScreenDisabled:this.handleFullScreenDisabled.bind(this),onFullScreenEnabled:this.handleFullScreenEnabled.bind(this)}),this.config.tabSwitch.enabled&&Rm(this.handleViolation.bind(this)),this.config.browserBlur.enabled&&Om(this.handleViolation.bind(this)),this.config.rightClick.enabled&&Mm(this.handleViolation.bind(this)),this.config.exitTab.enabled&&Im(this.handleViolation.bind(this)),this.config.copyPasteCut.enabled&&Pm(this.handleViolation.bind(this)),this.config.ctrlShiftI.enabled&&Bm(this.handleViolation.bind(this)),this.config.ctrlShiftC.enabled&&$m(this.handleViolation.bind(this)),this.config.ctrlShiftJ.enabled&&Qm(this.handleViolation.bind(this)),this.config.altTab.enabled&&Fm(this.handleViolation.bind(this)),this.config.ctrlQ.enabled&&Hm(this.handleViolation.bind(this)),this.config.ctrlW.enabled&&Km(this.handleViolation.bind(this)),this.config.cmdH.enabled&&qm(this.handleViolation.bind(this)),this.config.cmdW.enabled&&Wm(this.handleViolation.bind(this)),this.config.cmdM.enabled&&Um(this.handleViolation.bind(this)),this.config.cmdQ.enabled&&Vm(this.handleViolation.bind(this)),this.config.restrictedKeyEvent.enabled&&zm(this.handleViolation.bind(this)),this.config.textSelection.enabled&&Dm(),this.snapshotConfig.enabled&&(t=localStorage.getItem("selectedWebcamDeviceId"),uy({onWebcamEnabled:this.handleWebcamEnabled.bind(this),onWebcamDisabled:this.handleWebcamDisabled.bind(this),optional:this.snapshotConfig.optional,deviceId:t||this.snapshotConfig.deviceId})),this.networkConfig.enabled&&this.startNetworkMonitoring(),this.handleWindowUnload(),this.startCompatibilityChecks();case 26:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})},{key:"startNetworkMonitoring",value:function(){var e=this;this.networkWorker||(this.networkWorker=this.workerConfig.networkWorkerUrl?new Worker(this.workerConfig.networkWorkerUrl,{type:"classic"}):new ky,this.networkWorker.onmessage=function(t){var n=t.data,r=n.type,o=n.payload;"NETWORK_UPDATE"===r&&e.handleNetworkUpdate(o)},this.networkWorker.postMessage({type:"START",payload:Ty({interval:this.networkConfig.interval,testResourceURL:this.networkConfig.testResourceURL,timeoutMs:this.networkConfig.timeoutMs},this.networkConfig)}))}},{key:"handleNetworkUpdate",value:function(e){this.callbacks.onNetworkUpdate&&this.callbacks.onNetworkUpdate(e);var t=this.networkConfig,n=t.speedThresholdMbps,r=t.alertCooldownSec,o=e.speedKbps,i=e.error,a=Date.now();i||o<1024*n?(a-this.lastNetworkAlertTimestamp)/1e3>=r&&(this.lastNetworkAlertTimestamp=a,Am("Weak Network Detected","Connect to a stronger internet to avoid issues during your contest",!1,!0)):Em(!0)}},{key:"stopNetworkMonitoring",value:function(){this.networkWorker&&(this.networkWorker.postMessage({type:"STOP"}),this.networkWorker.terminate(),this.networkWorker=null)}},{key:"startCompatibilityChecks",value:function(){var e=this;this.compatibilityCheckConfig.enable&&(this.compatibilityCheckInterval=setTimeout(function(){e.runAdaptiveCompatibilityChecks()},this.compatibilityCheckConfig.frequency))}},{key:"runAdaptiveCompatibilityChecks",value:function(){var e=this;if(!window.isTestEnding){var t=performance.now(),n=this.compatibilityCheckConfig.memoryLimit;(window.performance&&window.performance.memory?window.performance.memory.usedJSHeapSize/1024/1024:0)<n&&this.runCompatibilityChecks(this.handleCompatibilitySuccess.bind(this),this.handleCompatibilityFailure.bind(this));var r=performance.now()-t;console.log("%c%s","color: #ff2525","Time take for running Compatibility checks (in ms):",r),console.log("%c%s","color: #ff2525","Is CPU peformance fine ?: ",r<this.compatibilityCheckConfig.cpuThreshold);var o=r<this.compatibilityCheckConfig.cpuThreshold?this.compatibilityCheckConfig.frequency:this.compatibilityCheckConfig.maxFrequency;this.compatibilityCheckInterval=setTimeout(function(){e.runAdaptiveCompatibilityChecks()},o)}}},{key:"handleCompatibilitySuccess",value:function(e){this.callbacks.onCompatibilityCheckSuccess({passedChecks:e}),this.proctoringInitialised&&this.compatibilityWorker.postMessage({type:"SEND_COMPATIBILITY_EVENT",data:{checks:e,baseUrl:this.baseUrl,endpoint:this.compatibilityCheckConfig.endpoint,payload:Ty(Ty({},this.compatibilityCheckConfig.defaultPayload),{},{token:window.PROCTORING_SESSION_TOKEN})}})}},{key:"handleCompatibilityFailure",value:function(e){console.log("%c⧭","color: #d90000","Compatibility Failed, checks: ",e),this.callbacks.onCompatibilityCheckFail({passedChecks:e}),this.proctoringInitialised&&this.compatibilityWorker.postMessage({type:"SEND_COMPATIBILITY_EVENT",data:{checks:e,baseUrl:this.baseUrl,endpoint:this.compatibilityCheckConfig.endpoint,payload:Ty(Ty({},this.compatibilityCheckConfig.defaultPayload),{},{token:window.PROCTORING_SESSION_TOKEN})}})}},{key:"stopCompatibilityChecks",value:function(){this.compatibilityCheckInterval&&clearInterval(this.compatibilityCheckInterval)}},{key:"checkMobileCompatiblity",value:function(e){var t=e.onSuccess,n=e.onFailure;vy({baseUrl:this.baseUrl,endpoint:this.mobilePairingConfig.endpoint,defaultPayload:Ty({token:window.PROCTORING_SESSION_TOKEN},this.mobilePairingConfig.defaultPayload),onSuccess:t,onFailure:n})}},{key:"runCompatibilityChecks",value:function(e,t){var n=this,r=this.screenshotConfig.enabled,o=this.snapshotConfig.enabled,i=this.snapshotConfig.enabled||this.screenshotConfig.enabled,a=this.config[mp.fullScreen].enabled,l=this.mobilePairingConfig.enabled,s=this.mobilePairingConfig.enabled,c=this.mobilePairingConfig.enabled,u={screenshare:!0,webcam:!0,mobileSnapshot:!0,mobileBattery:!0,mobileSetup:!0,browser:!0,networkSpeed:!0,fullscreen:!0},d=[];if(o){var f=new Promise(function(e,t){var r=localStorage.getItem("selectedWebcamDeviceId");uy({onWebcamEnabled:function(){return e("webcam")},onWebcamDisabled:function(){u.webcam=!1,t("webcam")},optional:n.snapshotConfig.optional,deviceId:r||n.snapshotConfig.deviceId})});d.push(f)}var p=new Promise(function(e,t){ll().isSupported?e("browser"):(u.browser=!1,t("browser"))});if(d.push(p),i){var h=new Promise(function(e,t){i?e("network_speed"):(u.networkSpeed=!1,t("network_speed"))});d.push(h)}if(a){var m=new Promise(function(e,t){jm()?e("fullscreen"):(u.fullscreen=!1,t("fullscreen"))});d.push(m)}if(r){var y=new Promise(function(e,t){um({onSuccess:function(){e("screenshare")},onFailure:function(e){u.screenshare=!1,t("screenshare"),console.warn(e)}})});d.push(y)}if(s||c||l){var b=new Promise(function(e,t){n.checkMobileCompatiblity({onSuccess:function(n){if(n.success)e({success:!0,checks:u});else{var r,o=null===(r=n.checks)||void 0===r?void 0:r.secondary_camera.checks;Object.keys(o).forEach(function(e){var t=o[e];switch(e){case"setup":null!=t&&t.success||(u.mobileSetup=!1);break;case"snapshot":null!=t&&t.success||(u.mobileSnapshot=!1);break;case"battery":null!=t&&t.success||(u.mobileBattery=!1)}}),t({success:!1,checks:u})}},onFailure:function(){u.mobileBattery=!1,u.mobileSnapshot=!1,u.mobileSetup=!1,t({success:!1,checks:u})}})});d.push(b)}Promise.allSettled(d).then(function(r){r.find(function(e){return"rejected"===e.status})?null==t||t(u):(Em(),n.failedCompatibilityChecks=!1,null==e||e(u))}).catch(function(){null==t||t(u)})}},{key:"handleWebcamDisabled",value:function(e){var t=e.error;this.callbacks.onWebcamDisabled({error:t})}},{key:"handleScreenshotDisabled",value:function(){this.callbacks.onScreenshotDisabled()}},{key:"handleWebcamEnabled",value:function(){this.proctoringInitialised&&(this.snapshotIntervalId=iy({onSnapshotFailure:this.handleSnapshotFailure.bind(this),frequency:this.snapshotConfig.frequency,resizeDimensions:this.snapshotConfig.resizeTo})),this.callbacks.onWebcamEnabled()}},{key:"handleScreenShareSuccess",value:function(){this.callbacks.onScreenShareSuccess(),this.enableFullScreen()}},{key:"handleScreenShareFailure",value:function(e){this.callbacks.onScreenShareFailure(e)}},{key:"handleScreenShareEnd",value:function(){window.isTestEnding||(this.handleViolation(mp.screenshareExit),this.callbacks.onScreenShareEnd())}},{key:"handleScreenshotSuccess",value:function(e){var t=e.blob;this.callbacks.onScreenshotSuccess({blob:t})}},{key:"handleScreenshareRequest",value:(i=Ey(_y().mark(function e(){var t,n=arguments;return _y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=(n.length>0&&void 0!==n[0]?n[0]:{}).disableScreenshot,e.next=3,hm.bind(this)({disableScreenshot:t});case 3:case"end":return e.stop()}},e,this)})),function(){return i.apply(this,arguments)})},{key:"handleWebcamRequest",value:function(){var e=localStorage.getItem("selectedWebcamDeviceId");uy({onWebcamEnabled:this.handleWebcamEnabled.bind(this),onWebcamDisabled:this.handleWebcamDisabled.bind(this),optional:this.snapshotConfig.optional,deviceId:e||this.snapshotConfig.deviceId})}},{key:"getWebcamDevices",value:(o=Ey(_y().mark(function e(){return _y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",sy.bind(this)());case 1:case"end":return e.stop()}},e,this)})),function(){return o.apply(this,arguments)})},{key:"setWebcamDevice",value:function(e){this.snapshotConfig.deviceId=e,localStorage.setItem("selectedWebcamDeviceId",e),this.reportCameraChange(e)}},{key:"reportCameraChange",value:(r=Ey(_y().mark(function e(t){var n,r,o,i,a;return _y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((r=window.PROCTORING_SESSION_TOKEN)&&this.baseUrl&&null!==(n=navigator.mediaDevices)&&void 0!==n&&n.enumerateDevices){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,e.next=6,navigator.mediaDevices.enumerateDevices();case 6:return i=e.sent,a=null===(o=i.find(function(e){return e.deviceId===t}))||void 0===o?void 0:o.label,e.next=10,kf({baseUrl:this.baseUrl,token:r,signals:Uf(a)});case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(3),console.warn("Camera change could not be reported",e.t0);case 15:case"end":return e.stop()}},e,this,[[3,12]])})),function(e){return r.apply(this,arguments)})},{key:"handleScreenshotFailure",value:function(){this.callbacks.onScreenshotFailure()}},{key:"handleSnapshotFailure",value:function(){this.callbacks.onSnapshotFailure()}},{key:"handleFullScreenDisabled",value:function(){window.isTestEnding||(this.initialFullScreen?(this.handleViolation(mp.fullScreen),this.callbacks.onFullScreenDisabled()):(Tm(),this.initialFullScreen=!0))}},{key:"handleFullScreenEnabled",value:function(){this.callbacks.onFullScreenEnabled()}},{key:"handleCompatibilityChecks",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).forceRun,t=void 0!==e&&e;this.proctoringInitialised&&!t||this.runCompatibilityChecks(this.handleCompatibilitySuccess.bind(this),this.handleCompatibilityFailure.bind(this))}},{key:"handleViolation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(mp[e]){var r,o={event_type:this.config[e].name,event_value:t,timestamp:"".concat((new Date).toJSON().slice(0,19).replace("T"," ")," UTC"),disqualify:this.config[e].disqualify};this.config[e].showAlert&&Am("Warning","You performed a violation during the test. \n Repeating this action may result in disqualification \n and a failed test attempt.",!1),this.config[e].recordViolation&&this.recordViolation(o),function(e,t){var n=new CustomEvent(e,{detail:t});document.dispatchEvent(n)}(e,o),r=new CustomEvent("violation",{detail:o}),document.dispatchEvent(r),n&&this.disqualifyUser()}}},{key:"disqualifyUser",value:function(){this.disqualificationConfig.enabled&&(window.isUserDisqualified=!0,this.sendEvents(),this.disqualificationConfig.showAlert&&Am(this.disqualificationConfig.alertHeading,this.disqualificationConfig.alertMessage,!0),this.callbacks.onDisqualified())}},{key:"recordViolation",value:function(e){this.violationWorker.postMessage({type:"RECORD_VIOLATION",data:e})}},{key:"sendEvents",value:function(){this.violationWorker.postMessage({type:"SEND_EVENTS"})}},{key:"handleWindowUnload",value:function(){window.addEventListener("beforeunload",this._cleanup.bind(this)),window.addEventListener("unload",this._cleanup.bind(this))}},{key:"enableFullScreen",value:function(){jm()||Tm()}},{key:"on",value:function(e,t){var n=this;document.addEventListener(e,function(e){t(n.violationEvents,e)})}},{key:"getTotalViolationsCountByType",value:function(e){return this.violationEvents.filter(function(t){return t.type===e}).length}},{key:"getTotalViolationsCount",value:function(){return this.violationEvents.length}},{key:"getAllViolations",value:function(){return this.violationEvents}},{key:"getViolationsCountForDisqualify",value:function(){return this.violationEvents.filter(function(e){return!0===e.disqualify}).length}},{key:"_cleanup",value:function(){this.violationWorker.postMessage({type:"CLEANUP"}),this.violationWorker.terminate(),this.stopNetworkMonitoring(),this.stopCompatibilityChecks(),ym(),this.queueManager.cleanup(),clearInterval(this.snapshotIntervalId),this.networkCheckInterval&&(clearInterval(this.networkCheckInterval),this.networkCheckInterval=null),this.compatibilityWorker.postMessage({type:"CLEANUP"}),this.compatibilityWorker.terminate()}},{key:"handleCleanup",value:function(){console.log("cleanup"),this._cleanup()}},{key:"handleWorkerMessage",value:function(e){var t=e.data,n=t.type,r=t.data;"VIOLATION_UPDATE"===n&&(this.violationEvents=r.violations,r.violationCount>=this.disqualificationConfig.eventCountThreshold&&this.disqualifyUser())}},{key:"startPeriodicNetworkCheck",value:function(){var e=this;this.runNetworkCheck(),this.networkCheckInterval=setInterval(function(){e.runNetworkCheck()},this.NETWORK_CHECK_FREQUENCY)}},{key:"runNetworkCheck",value:(n=Ey(_y().mark(function e(){var t;return _y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Bh();case 3:t=e.sent,this.lastNetworkCheckResult=!t,console.log("Network check result:",this.lastNetworkCheckResult),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),this.lastNetworkCheckResult=!1,console.warn("Network check failed:",e.t0);case 12:case"end":return e.stop()}},e,this,[[0,8]])})),function(){return n.apply(this,arguments)})}],t&&Ny(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,r,o,i,a}();const Iy=function(e){var t=this;this.handleScreenShareSuccess=function(){t.dispatch(To({step:"screenShare",subStep:"screenShare",status:"completed",clearError:!0}))},this.handleScreenShareFailure=function(e){var n=zh[e]||"Screen share validation failed. Please try again.";t.dispatch(So("screenShare")),t.dispatch(jo({step:"screenShare",subStep:"screenShare",error:n}))},this.handleScreenShareEnd=function(){t.dispatch(jo({step:"screenShare",subStep:"screenShare",error:"Screen share ended unexpectedly. Please try again."}))},this.handleScreenshotFailure=function(e){console.error("Screenshot capture failed",e)},this.dispatch=e},Ly=function(){function e(e){this.dispatch=e,this.onWebcamEnabled=this.onWebcamEnabled.bind(this),this.onWebcamDisabled=this.onWebcamDisabled.bind(this),this.onSnapshotFailure=this.onSnapshotFailure.bind(this)}return e.prototype.onWebcamEnabled=function(){this.dispatch(To({step:"cameraShare",subStep:"cameraShare",status:"completed",clearError:!0}))},e.prototype.onWebcamDisabled=function(){},e.prototype.onSnapshotFailure=function(){console.log("Snapshot failure")},e}();var zy=n(675),My={};function Ry(e){return Ry="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ry(e)}function Dy(){Dy=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:E(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",y={};function b(){}function g(){}function v(){}var w={};c(w,a,function(){return this});var x=Object.getPrototypeOf,k=x&&x(x(O([])));k&&k!==n&&r.call(k,a)&&(w=k);var S=v.prototype=b.prototype=Object.create(w);function _(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==Ry(u)&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,l)})}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=A(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function A(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Ry(t)+" is not iterable")}return g.prototype=v,o(S,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(C.prototype),c(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},_(S),c(S,s,"Generator"),c(S,a,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function Fy(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function By(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}My.styleTagTransform=Z()(),My.setAttributes=X()(),My.insert=G()().bind(null,"head"),My.domAPI=Y()(),My.insertStyleElement=J()(),$()()(zy.A,My),zy.A&&zy.A.locals&&zy.A.locals;const qy=function(e){var t,n,r,o=e.baseUrl,i=e.eventsConfig,a=e.disqualificationConfig,s=e.config,c=e.snapshotConfig,u=e.screenshotConfig,d=e.compatibilityCheckConfig,f=e.mobilePairingConfig,p=e.callbacks,h=e.enableAllAlerts,m=e.headerOptions,y=e.mockModeEnabled,b=e.assessmentInfo,g=e.qrCodeConfig,v=e.initConfig,w=e.enableProctoring,x=void 0!==w&&w,k=e.beepConfig,S=e.networkConfig,_=e.identityConfig,C=no(),E=ro(function(e){return e.workflow}).enableProctoring,A=ro(function(e){return e.assessmentInfo}).token,T=(n=(0,l().useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(n,r)||function(e,t){if(e){if("string"==typeof e)return By(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?By(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),j=T[0],N=T[1],O=x||E,P=u.enabled,I=c.enabled,L=f.enabled,z=d.enabled,M=(null!==(t=null==s?void 0:s.fullScreen)&&void 0!==t?t:{enabled:!0}).enabled,R=Boolean(null==_?void 0:_.enabled)&&!x,D=(0,l().useMemo)(function(){return{cameraShare:{step:"cameraShare",enabled:null==I||I},screenShare:{step:"screenShare",enabled:null==P||P},mobileCameraShare:{step:"mobileCameraShare",enabled:null==L||L},compatibilityChecks:{step:"compatibilityChecks",enabled:null==z||z,subSteps:{fullScreenCheck:null==M||M}},identityVerification:{step:"identityVerification",enabled:R}}},[P,I,L,z,M,R]),F=(0,l().useMemo)(function(){var e=new Iy(C),t=new Ly(C),n=new Ho(C,D);return new Py({baseUrl:o,eventsConfig:i,disqualificationConfig:a,config:s,snapshotConfig:c,screenshotConfig:u,compatibilityCheckConfig:d,mobilePairingConfig:f,networkConfig:S,callbacks:{onScreenShareSuccess:function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==p||null===(t=p.onScreenShareSuccess)||void 0===t||t.call.apply(t,[p].concat(r)),e.handleScreenShareSuccess.apply(e,r)},onScreenShareFailure:function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==p||null===(t=p.onScreenShareFailure)||void 0===t||t.call.apply(t,[p].concat(r)),e.handleScreenShareFailure.apply(e,r)},onScreenShareEnd:function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==p||null===(t=p.onScreenShareEnd)||void 0===t||t.call.apply(t,[p].concat(r)),e.handleScreenShareEnd.apply(e,r)},onScreenshotSuccess:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];null==p||null===(e=p.onScreenshotSuccess)||void 0===e||e.call.apply(e,[p].concat(n))},onScreenshotFailure:function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==p||null===(t=p.onScreenshotFailure)||void 0===t||t.call.apply(t,[p].concat(r)),e.handleScreenshotFailure.apply(e,r)},onWebcamEnabled:function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==p||null===(e=p.onWebcamEnabled)||void 0===e||e.call.apply(e,[p].concat(r)),t.onWebcamEnabled.apply(t,r)},onWebcamDisabled:function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==p||null===(e=p.onWebcamDisabled)||void 0===e||e.call.apply(e,[p].concat(r)),t.onWebcamDisabled.apply(t,r)},onSnapshotSuccess:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];null==p||null===(e=p.onSnapshotSuccess)||void 0===e||e.call.apply(e,[p].concat(n))},onSnapshotFailure:function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==p||null===(e=p.onSnapshotFailure)||void 0===e||e.call.apply(e,[p].concat(r)),t.onSnapshotFailure.apply(t,r)},onFullScreenEnabled:function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];null==p||null===(e=p.onFullScreenEnabled)||void 0===e||e.call.apply(e,[p].concat(r)),n.handleFullScreenEnabled.apply(n,r)},onFullScreenDisabled:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];null==p||null===(e=p.onFullScreenDisabled)||void 0===e||e.call.apply(e,[p].concat(n))},onDisqualified:function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];null==p||null===(e=p.onDisqualified)||void 0===e||e.call.apply(e,[p].concat(r)),n.handleDisqualifyUser.apply(n,r)},onCompatibilityCheckSuccess:function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];null==p||null===(e=p.onCompatibilityCheckSuccess)||void 0===e||e.call.apply(e,[p].concat(r)),n.handleCompatibilityCheckSuccess.apply(n,r)},onCompatibilityCheckFail:function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];null==p||null===(e=p.onCompatibilityCheckFail)||void 0===e||e.call.apply(e,[p].concat(r)),n.handleCompatibilityCheckFail.apply(n,r)},onNetworkUpdate:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];null==p||null===(e=p.onNetworkUpdate)||void 0===e||e.call.apply(e,[p].concat(n))}},enableAllAlerts:h,headerOptions:m,mockModeEnabled:y,qrCodeConfig:g,beepConfig:k})},[o,p,d,s,C,a,h,i,m,f,y,g,u,c,D,k,S]),B=(0,l().useCallback)(function(){var e;null==p||null===(e=p.onWorkflowComplete)||void 0===e||e.call(p)},[p]),q=(0,l().useCallback)(function(){C(io({baseUrl:null==v?void 0:v.baseUrl,payload:null==v?void 0:v.payload}))},[C,v]);return(0,l().useEffect)(function(){var e=function(){var e,t=(e=Dy().mark(function e(){return Dy().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,o&&Kr({baseUrl:o}),!O){e.next=8;break}return e.next=5,F.initializeProctoring();case 5:C(Oo(!1)),e.next=9;break;case 8:C(Oo(!0));case 9:C(lo(b)),C(Io(O)),C(Do(k)),C(Lo(B)),C(so(F)),C(No(D)),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(0),console.error("Proctoring initialization failed:",e.t0);case 20:case"end":return e.stop()}},e,null,[[0,17]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Fy(i,r,o,a,l,"next",e)}function l(e){Fy(i,r,o,a,l,"throw",e)}a(void 0)})});return function(){return t.apply(this,arguments)}}();j||(e(),N(!0),A||q())},[b,o,p,d,s,C,a,h,O,E,i,B,m,j,f,y,F,g,u,c,D,q,A,k]),l().createElement(l().Fragment,null,l().createElement(Sm,null),l().createElement(Be,{position:"top-center",toastClassName:"text-base",autoClose:8e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!1,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0,theme:"colored"}))};function Uy(e){return Uy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uy(e)}function Wy(){return Wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wy.apply(null,arguments)}function Vy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qy(r.key),r)}}function Qy(e){var t=function(e){if("object"!=Uy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Uy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Uy(t)?t:t+""}const Hy=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"initialize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.getElementById(e);if(n){n.className="proctor-library-root";var r={baseUrl:window.location.origin,initConfig:{},eventsConfig:{},disqualificationConfig:{},config:{},snapshotConfig:{},screenshotConfig:{},compatibilityCheckConfig:{},callbacks:{},enableAllAlerts:!0,headerOptions:{},mockModeEnabled:!1,additionalData:{},networkConfig:{},identityConfig:{}};(0,o().H)(n).render(l().createElement(q,{store:Vo},l().createElement("div",{id:"proctor-library-root-id"},l().createElement(qy,Wy({},r,t)))))}else console.error('Container with id "'.concat(e,'" not found'))}}],null&&Vy(e.prototype,null),t&&Vy(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()})(),r=r.default,r})());