@flarehr/superhero-basic-profile 4.23.120 → 4.24.121

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.
@@ -1,7 +1,7 @@
1
- (function(){"use strict";var Gi=document.createElement("style");Gi.textContent=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type="button"]),input:where([type="reset"]),input:where([type="submit"]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.-mb-px{margin-bottom:-1px}.ml-3{margin-left:.75rem}.mr-2{margin-right:.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-12{height:3rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.min-h-full{min-height:100%}.w-11{width:2.75rem}.w-12{width:3rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.flex-shrink-0{flex-shrink:0}.basis-1\\/4{flex-basis:25%}.basis-3\\/4{flex-basis:75%}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-5{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity: .75}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-4{padding-bottom:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity))}.hover\\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.focus\\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}@media (min-width: 640px){.sm\\:mx-0{margin-left:0;margin-right:0}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:mr-4{margin-right:1rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-4{margin-top:1rem}.sm\\:flex{display:flex}.sm\\:h-10{height:2.5rem}.sm\\:w-10{width:2.5rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:flex-row-reverse{flex-direction:row-reverse}.sm\\:items-start{align-items:flex-start}.sm\\:items-center{align-items:center}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}
1
+ (function(){"use strict";var Gi=document.createElement("style");Gi.textContent=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type="button"]),input:where([type="reset"]),input:where([type="submit"]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.-mb-px{margin-bottom:-1px}.ml-3{margin-left:.75rem}.mr-2{margin-right:.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-12{height:3rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.min-h-full{min-height:100%}.w-11{width:2.75rem}.w-12{width:3rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.flex-shrink-0{flex-shrink:0}.basis-1\\/4{flex-basis:25%}.basis-3\\/4{flex-basis:75%}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-5{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity: .75}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-4{padding-bottom:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity))}.hover\\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.focus\\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}@media (min-width: 640px){.sm\\:mx-0{margin-left:0;margin-right:0}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:mr-4{margin-right:1rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-4{margin-top:1rem}.sm\\:flex{display:flex}.sm\\:h-10{height:2.5rem}.sm\\:w-10{width:2.5rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:flex-row-reverse{flex-direction:row-reverse}.sm\\:items-start{align-items:flex-start}.sm\\:items-center{align-items:center}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}
2
2
  `,document.head.appendChild(Gi);function Ve(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Bc(e){return e!=null&&typeof e.GetEnumerator=="function"}function Vc(e){return e!=null&&typeof e.CompareTo=="function"}function Uc(e){return e!=null&&typeof e.Equals=="function"}function Wi(e){return e!=null&&typeof e.GetHashCode=="function"}function Qr(e){return e!=null&&typeof e.Dispose=="function"}function G(e){Qr(e)&&e.Dispose()}function Te(){return null}function rr(e,t){return Object.getPrototypeOf(e)?.constructor===Object.getPrototypeOf(t)?.constructor}class zc{constructor(t){this.iter=t,this.current=Te()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function oe(e){return Bc(e)?e.GetEnumerator():new zc(e[Symbol.iterator]())}function or(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}class Gc{constructor(t){this.factory=t,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function R(e,t){return e.toString(10).padStart(t,"0")}function Wc(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function qi(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function qc(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function Ot(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class ot{static id(t){return ot.idMap.has(t)||ot.idMap.set(t,++ot.count),ot.idMap.get(t)}}ot.idMap=new WeakMap,ot.count=0;function ir(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Ue(e){return e*2654435761|0}function Yi(e){return ir(e.toString(32))}function Xt(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const o=e[r];t=(t<<5)+t^o}return t}function Yc(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Ue(e);case"bigint":return Yi(e);case"string":return ir(e);default:return Ue(ot.id(e))}}function Zc(e){return Wi(e)?e.GetHashCode():Yc(e)}function Kc(e){return e.getTime()}function Xc(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=it(e[r]);return Xt(n)}function it(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Ue(e);case"bigint":return Yi(e);case"string":return ir(e);default:{if(Wi(e))return e.GetHashCode();if(Ve(e))return Xc(e);if(e instanceof Date)return Kc(e);if(Object.getPrototypeOf(e)?.constructor===Object){const t=Object.values(e).map(n=>it(n));return Xt(t)}else return Ue(ot.id(e))}}}function Zi(e){return Zc(e)}function eo(e,t,n){if(e==null)return t==null;if(t==null||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function Ki(e,t){return eo(e,t,ye)}function Jc(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=0;o<n.length;o++)if(n[o]!==r[o]||!ye(e[n[o]],t[r[o]]))return!1;return!0}function ye(e,t){return e===t?!0:e==null?t==null:t==null?!1:Uc(e)?e.Equals(t):Ve(e)?Ve(t)&&Ki(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Xi(e,t)===0:Object.getPrototypeOf(e)?.constructor===Object&&Jc(e,t)}function Xi(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+qi(e),r=t.getTime()+qi(t)),n===r?0:n<r?-1:1}function sr(e,t){return e===t?0:e<t?-1:1}function Qc(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=n(e[r],t[r]),o!==0)return o;return 0}function Ji(e,t){return Qc(e,t,Le)}function eu(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,i=0;o<n.length;o++){const s=n[o];if(s!==r[o])return s<r[o]?-1:1;if(i=Le(e[s],t[s]),i!==0)return i}return 0}function Le(e,t){return e===t?0:e==null?t==null?0:-1:t==null?1:Vc(e)?e.CompareTo(t):Ve(e)?Ve(t)?Ji(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Xi(e,t):-1:Object.getPrototypeOf(e)?.constructor===Object?eu(e,t):-1}function te(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function tu(e){Ve(e)?e.splice(0):e.clear()}const ar=new WeakMap;function K(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return ar.set(t,e),t}function At(e){return ar.get(e)??(t=>n=>e(t,n))}function to(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return ar.set(t,e),t}function no(e){return ar.get(e)??(t=>n=>r=>e(t,n,r))}function nu(e){let t=0,n="[";for(const r of e){if(t===0)n+=ze(r);else if(t===100){n+="; ...";break}else n+="; "+ze(r);t++}return n+"]"}function ze(e,t=0){if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return nu(e);{const n=Object.getPrototypeOf(e)?.constructor;return n===Object&&t<10?"{ "+Object.entries(e).map(([r,o])=>r+" = "+ze(o,t+1)).join(`
3
3
  `)+" }":n?.name??""}}return String(e)}function ru(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=ze(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>ze(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class L{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return ru(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>it(n));return t.splice(0,0,Ue(this.tag)),Xt(t)}Equals(t){return this===t?!0:rr(this,t)&&this.tag===t.tag?Ki(this.fields,t.fields):!1}CompareTo(t){return this===t?0:rr(this,t)?this.tag===t.tag?Ji(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function ou(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function iu(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+ze(n)).join(`
4
- `)+" }"}function su(e){const t=Object.values(e).map(n=>it(n));return Xt(t)}function au(e,t){if(e===t)return!0;if(rr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!ye(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function lu(e,t){if(e===t)return 0;if(rr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=Le(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class Me{toJSON(){return ou(this)}toString(){return iu(this)}GetHashCode(){return su(this)}Equals(t){return au(this,t)}CompareTo(t){return lu(this,t)}}class Ee{get contents(){return this.getter()}set contents(t){this.setter(t)}constructor(t,n){typeof n=="function"?(this.getter=t,this.setter=n):(this.getter=()=>t,this.setter=r=>{t=r})}}class cu{constructor(t){this.message=t}}function uu(e){return e instanceof cu||e instanceof Error}function fu(e){return e instanceof Promise}function lr(e){return uu(e)||fu(e)?e:new Error(String(e))}var j={},du=28,hu=1,It=1e6,Qi=1e6,pu=-29,wu=29,mu=!1,Sn="[big.js] ",Nt=Sn+"Invalid ",cr=Nt+"decimal places",gu=Nt+"rounding mode",es=Sn+"Division by zero",Je=void 0,_u=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function ts(){function e(t){var n=this;if(!(n instanceof e))return t===Je?ts():new e(t);if(t instanceof e)n.s=t.s,n.e=t.e,n.c=t.c.slice(),yu(n);else{if(typeof t!="string"){if(e.strict===!0)throw TypeError(Nt+"number");t=t===0&&1/t<0?"-0":String(t)}bu(n,t)}n.constructor=e}return e.prototype=j,e.DP=du,e.RM=hu,e.NE=pu,e.PE=wu,e.strict=mu,e}function yu(e){if(e.c.length>1&&!e.c[0]){let t=e.c.findIndex(n=>n);e.c=e.c.slice(t),e.e=e.e-t}}function bu(e,t){var n,r,o;if(!_u.test(t))throw Error(Nt+"number");for(e.s=t.charAt(0)=="-"?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),o=t.length,r=0;r<n&&r<o&&t.charAt(r)=="0";)++r;if(r==o)e.c=[e.e=0];else for(e.e=n-r-1,e.c=[],n=0;r<o;)e.c[n++]=+t.charAt(r++);return e=wt(e,je.DP+1,je.RM),e}function wt(e,t,n,r){var o=e.c;if(n===Je&&(n=je.RM),n!==0&&n!==1&&n!==2&&n!==3)throw Error(gu);if(t<1)r=n===3&&(r||!!o[0])||t===0&&(n===1&&o[0]>=5||n===2&&(o[0]>5||o[0]===5&&(r||o[1]!==Je))),o.length=1,r?(e.e=e.e-t+1,o[0]=1):o[0]=e.e=0;else if(t<o.length){const i=o.findIndex((s,a)=>a>=t&&s>0)<0;if(r=n===1&&o[t]>=5||n===2&&(o[t]>5||o[t]===5&&(r||o[t+1]!==Je||o[t-1]&1))||n===3&&(r||!i),o.length=t--,r)for(;++o[t]>9;)o[t]=0,t--||(++e.e,o.unshift(1));for(t=o.length;!o[--t];)o.pop()}return e}function Jt(e,t,n){var r=e.e,o=e.c.join(""),i=o.length;if(t)o=o.charAt(0)+(i>1?"."+o.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)o="0"+o;o="0."+o}else if(r>0)if(++r>i)for(r-=i;r--;)o+="0";else r<i&&(o=o.slice(0,r)+"."+o.slice(r));else i>1&&(o=o.charAt(0)+"."+o.slice(1));return e.s<0&&n?"-"+o:o}j.abs=function(){var e=new this.constructor(this);return e.s=1,e},j.cmp=function(o){var t,n=this.constructor,r=new n(this),o=new n(o),i=r.c,s=o.c,a=r.s,l=o.s,c=r.e,f=o.e;if(!i[0]||!s[0])return i[0]?a:s[0]?-l:0;if(a!=l)return a;if(t=a<0,c!=f)return c>f^t?1:-1;for(l=Math.max(i.length,s.length),a=0;a<l;a++)if(c=a<i.length?i[a]:0,f=a<s.length?s[a]:0,c!=f)return c>f^t?1:-1;return 0},j.div=function(r){var t=this.constructor,n=new t(this),r=new t(r),o=n.c,i=r.c,s=n.s==r.s?1:-1,a=t.DP;if(a!==~~a||a<0||a>It)throw Error(cr);if(!i[0])throw Error(es);if(!o[0])return r.s=s,r.c=[r.e=0],r;var l,c,f,u,h,d=i.slice(),w=l=i.length,g=o.length,p=o.slice(0,l),_=p.length,b=r,x=b.c=[],O=0,Y=a+(b.e=n.e-r.e)+1;for(b.s=s,s=Y<0?0:Y,d.unshift(0);_++<l;)p.push(0);do{for(f=0;f<10;f++){if(l!=(_=p.length))u=l>_?1:-1;else for(h=-1,u=0;++h<l;)if(i[h]!=p[h]){u=i[h]>p[h]?1:-1;break}if(u<0){for(c=_==l?i:d;_;){if(p[--_]<c[_]){for(h=_;h&&!p[--h];)p[h]=9;--p[h],p[_]+=10}p[_]-=c[_]}for(;!p[0];)p.shift()}else break}x[O++]=u?f:++f,p[0]&&u?p[_]=o[w]||0:p=[o[w]]}while((w++<g||p[0]!==Je)&&s--);return!x[0]&&O!=1&&(x.shift(),b.e--,Y--),O>Y&&wt(b,Y,t.RM,p[0]!==Je),b},j.eq=function(e){return this.cmp(e)===0},j.gt=function(e){return this.cmp(e)>0},j.gte=function(e){return this.cmp(e)>-1},j.lt=function(e){return this.cmp(e)<0},j.lte=function(e){return this.cmp(e)<1},j.minus=j.sub=function(a){var t,n,r,o,i=this.constructor,s=new i(this),a=new i(a),l=s.s,c=a.s;if(l!=c)return a.s=-c,s.plus(a);var f=s.c.slice(),u=s.e,h=a.c,d=a.e;if(!f[0]||!h[0])return h[0]?a.s=-c:f[0]?a=new i(s):a.s=1,a;if(l=u-d){for((o=l<0)?(l=-l,r=f):(d=u,r=h),r.reverse(),c=l;c--;)r.push(0);r.reverse()}else for(n=((o=f.length<h.length)?f:h).length,l=c=0;c<n;c++)if(f[c]!=h[c]){o=f[c]<h[c];break}if(o&&(r=f,f=h,h=r,a.s=-a.s),(c=(n=h.length)-(t=f.length))>0)for(;c--;)f[t++]=0;for(c=t;n>l;){if(f[--n]<h[n]){for(t=n;t&&!f[--t];)f[t]=9;--f[t],f[n]+=10}f[n]-=h[n]}for(;f[--c]===0;)f.pop();for(;f[0]===0;)f.shift(),--d;return f[0]||(a.s=1,f=[d=0]),a.c=f,a.e=d,a},j.mod=function(o){var t,n=this.constructor,r=new n(this),o=new n(o),i=r.s,s=o.s;if(!o.c[0])throw Error(es);return r.s=o.s=1,t=o.cmp(r)==1,r.s=i,o.s=s,t?new n(r):(i=n.DP,s=n.RM,n.DP=n.RM=0,r=r.div(o),n.DP=i,n.RM=s,this.minus(r.times(o)))},j.plus=j.add=function(s){var t,n,r,o=this.constructor,i=new o(this),s=new o(s);if(i.s!=s.s)return s.s=-s.s,i.minus(s);var a=i.e,l=i.c,c=s.e,f=s.c;if(!l[0]||!f[0])return f[0]||(l[0]?s=new o(i):s.s=i.s),s;if(l=l.slice(),t=a-c){for(t>0?(c=a,r=f):(t=-t,r=l),r.reverse();t--;)r.push(0);r.reverse()}for(l.length-f.length<0&&(r=f,f=l,l=r),t=f.length,n=0;t;l[t]%=10)n=(l[--t]=l[t]+f[t]+n)/10|0;for(n&&(l.unshift(n),++c),t=l.length;l[--t]===0;)l.pop();return s.c=l,s.e=c,s},j.pow=function(e){var t=this.constructor,n=new t(this),r=new t("1"),o=new t("1"),i=e<0;if(e!==~~e||e<-Qi||e>Qi)throw Error(Nt+"exponent");for(i&&(e=-e);e&1&&(r=r.times(n)),e>>=1,!!e;)n=n.times(n);return i?o.div(r):r},j.prec=function(e,t){if(e!==~~e||e<1||e>It)throw Error(Nt+"precision");return wt(new this.constructor(this),e,t)},j.round=function(e,t){if(e===Je)e=0;else if(e!==~~e||e<-It||e>It)throw Error(cr);return wt(new this.constructor(this),e+this.e+1,t)},j.sqrt=function(){var e,t,n,r=this.constructor,o=new r(this),i=o.s,s=o.e,a=new r("0.5");if(!o.c[0])return new r(o);if(i<0)throw Error(Sn+"No square root");i=Math.sqrt(o+""),i===0||i===1/0?(t=o.c.join(""),t.length+s&1||(t+="0"),i=Math.sqrt(t),s=((s+1)/2|0)-(s<0||s&1),e=new r((i==1/0?"5e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+s)):e=new r(i+""),s=e.e+(r.DP+=4);do n=e,e=a.times(n.plus(o.div(n)));while(n.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return wt(e,(r.DP-=4)+e.e+1,r.RM)},j.times=j.mul=function(o){var t,n=this.constructor,r=new n(this),o=new n(o),i=r.c,s=o.c,a=i.length,l=s.length,c=r.e,f=o.e;if(o.s=r.s==o.s?1:-1,!i[0]||!s[0])return o.c=[o.e=0],o;for(o.e=c+f,a<l&&(t=i,i=s,s=t,f=a,a=l,l=f),t=new Array(f=a+l);f--;)t[f]=0;for(c=l;c--;){for(l=0,f=a+c;f>c;)l=t[f]+s[c]*i[f-c-1]+l,t[f--]=l%10,l=l/10|0;t[f]=l}for(l?++o.e:t.shift(),c=t.length;!t[--c];)t.pop();return o.c=t,o},j.toExponential=function(e,t){var n=this,r=n.c[0];if(e!==Je){if(e!==~~e||e<0||e>It)throw Error(cr);for(n=wt(new n.constructor(n),++e,t);n.c.length<e;)n.c.push(0)}return Jt(n,!0,!!r)},j.toFixed=function(e,t){var n=this,r=n.c[0];if(e!==Je){if(e!==~~e||e<0||e>It)throw Error(cr);for(n=wt(new n.constructor(n),e+n.e+1,t),e=e+n.e+1;n.c.length<e;)n.c.push(0)}return Jt(n,!1,!!r)},j.toJSON=j.toString=function(){var e=this,t=e.constructor;return Jt(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])},j.toNumber=function(){var e=Number(Jt(this,!0,!0));if(this.constructor.strict===!0&&!this.eq(e.toString()))throw Error(Sn+"Imprecise conversion");return e},j.toPrecision=function(e,t){var n=this,r=n.constructor,o=n.c[0];if(e!==Je){if(e!==~~e||e<1||e>It)throw Error(Nt+"precision");for(n=wt(new r(n),e,t);n.c.length<e;)n.c.push(0)}return Jt(n,e<=n.e||n.e<=r.NE||n.e>=r.PE,!!o)},j.valueOf=function(){var e=this,t=e.constructor;if(t.strict===!0)throw Error(Sn+"valueOf disallowed");return Jt(e,e.e<=t.NE||e.e>=t.PE,!0)};var je=ts();const Pt=Symbol("numeric");function ns(e){return typeof e=="number"||typeof e=="bigint"||e?.[Pt]}function vu(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function ro(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Pt]().multiply(t)}function ur(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Pt]().toFixed(t)}function fr(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Pt]().toPrecision(t)}function dr(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Pt]().toExponential(t)}function hr(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Pt]().toHex()}je.prototype.GetHashCode=function(){return Xt([this.s,this.e].concat(this.c))},je.prototype.Equals=function(e){return!this.cmp(e)},je.prototype.CompareTo=function(e){return this.cmp(e)},je.prototype[Pt]=function(){const e=this;return{multiply:t=>e.mul(t),toPrecision:t=>e.toPrecision(t),toExponential:t=>e.toExponential(t),toFixed:t=>e.toFixed(t),toHex:()=>(Number(e)>>>0).toString(16)}},new je(0),new je(1),new je(-1),new je("79228162514264337593543950335"),new je("-79228162514264337593543950335");class xu{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class N{constructor(t,n,r,o,i,s,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=i,this.cases=s,this.enumCases=a}toString(){return W(this)}GetHashCode(){return rs(this)}Equals(t){return oo(this,t)}}function Oe(e){return e.generics!=null?e.generics:[]}function rs(e){const t=ir(e.fullname),n=Oe(e).map(rs);return Xt([t,...n])}function oo(e,t){return e.fullname===""?t.fullname===""&&eo($n(e),$n(t),([n,r],[o,i])=>n===o&&oo(r,i)):e.fullname===t.fullname&&eo(Oe(e),Oe(t),oo)}function os(e,t,n,r){return new N(e,t,n,void 0,r)}function ku(...e){return new N("",void 0,void 0,void 0,()=>e)}function Cu(e,t,n,r){const o=new N(e,t,n,void 0,void 0,()=>{const i=n.prototype.cases();return r().map((s,a)=>new xu(o,a,i[a],s))});return o}function Su(e){return new N("[]",[e])}const Eu=new N("System.Object");new N("Microsoft.FSharp.Core.Unit"),new N("System.Char");const is=new N("System.String"),ss=new N("System.Boolean");new N("System.SByte"),new N("System.Byte"),new N("System.Int16"),new N("System.UInt16"),new N("System.Int32"),new N("System.UInt32"),new N("System.Int64"),new N("System.UInt64"),new N("System.Int128"),new N("System.UInt128"),new N("System.IntPtr"),new N("System.UIntPtr"),new N("System.Half"),new N("System.Single"),new N("System.Double"),new N("System.Decimal"),new N("System.Numerics.BigInteger");function Qt(e){if(Array.isArray(e))return e[0];if(e instanceof N){const t=En(e);if(t!=null)return Qt(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function W(e){const t=En(e);return t!=null?W(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>W(n)).join(",")+"]"}function as(e){return En(e)!=null}function En(e){return e.fullname==="[]"&&e.generics?.length===1?e.generics[0]:void 0}function ls(e){return e.generics!=null&&e.generics.length>0}function io(e){return e.enumCases!=null&&e.enumCases.length>0}function cs(e){return e.generics==null?e:new N(e.fullname,e.generics.map(()=>Eu))}function us(e){return e.generics?.[0]}function en(e){if(io(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function $u(e,t){if(e.enumCases!=null)if(typeof t=="string"){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}else{for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}else throw new Error(`${e.fullname} is not an enum type`)}function tn(e,t){const n=parseInt(t,10);return $u(e,isNaN(n)?t:n)[1]}function fs(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function $n(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function ds(e){if(so(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function hs(e){return e instanceof N?e.cases!=null:e instanceof L}function ps(e){return e instanceof N?e.fields!=null:e instanceof Me}function so(e){return e.fullname.startsWith("System.Tuple")}function Tu(e,t){const r=fs(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function ws(e){return e.fields==null?[]:e.fields}function Mu(e,t){return e[t[0]]}function yg(e){return e}function Ou(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);const r=e.declaringType.construct;return r==null?{}:(e.declaringType.cases?e.declaringType.cases().length==1:!1)?new r(...t):new r(e.tag,t)}function Au(e,t){const n=$n(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[o,i],s)=>(r[o]=t[s],r),{})}function Iu(e,t){return e}class ms extends L{constructor(){super(),this.tag=0,this.fields=[]}cases(){return["Configuration"]}}function gs(e){return"Configuration"}BigInt.prototype.toJSON=function(){return`${this.toString()}`};const Nu=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Pu=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Du=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Fu=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ae(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function _s(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Ru(e,t){let n=t;const r=e[t];let o="",i=!1;for(;t<e.length;){t++;const s=e[t];if(s===r){i=!0;break}else if(s==="\\")if(t<e.length)t++,o+=e[t];else throw new Error("Invalid string format");else o+=s}if(!i)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[o,t-n+1]}function ao(e,t,n){let r=0,o=0,i="";const s=n?Tn(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(o=Ae(t,r,"d"),r+=o,o){case 1:i+=vs(s);break;case 2:i+=R(vs(s),2);break;case 3:i+=Nu[Cs(s)];break;case 4:i+=Pu[Cs(s)];break}break;case"f":if(o=Ae(t,r,"f"),r+=o,o<=3){const p=10**(3-o);i+=R(Math.floor(gr(s)/p),o)}else o<=7&&(i+=(""+gr(s)).padEnd(o,"0"));break;case"F":if(o=Ae(t,r,"F"),r+=o,o<=3){const p=10**(3-o),_=Math.floor(gr(s)/p);_!=0&&(i+=R(_,o))}else if(o<=7){const p=gr(s);p!=0&&(i+=R(p,3))}break;case"g":o=Ae(t,r,"g"),r+=o,o<=2&&(i+="A.D.");break;case"h":switch(o=Ae(t,r,"h"),r+=o,o){case 1:i+=mr(s)%12;break;case 2:i+=R(mr(s)%12,2);break}break;case"H":switch(o=Ae(t,r,"H"),r+=o,o){case 1:i+=mr(s);break;case 2:i+=R(mr(s),2);break}break;case"K":switch(o=Ae(t,r,"K"),r+=o,o){case 1:switch(ys(s)){case 1:i+="Z";break;case 2:i+=nn(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=Ae(t,r,"m"),r+=o,o){case 1:i+=xs(s);break;case 2:i+=R(xs(s),2);break}break;case"M":switch(o=Ae(t,r,"M"),r+=o,o){case 1:i+=_r(s);break;case 2:i+=R(_r(s),2);break;case 3:i+=Du[_r(s)-1];break;case 4:i+=Fu[_r(s)-1];break}break;case"s":switch(o=Ae(t,r,"s"),r+=o,o){case 1:i+=ks(s);break;case 2:i+=R(ks(s),2);break}break;case"t":switch(o=Ae(t,r,"t"),r+=o,o){case 1:i+=s.getHours()<12?"A":"P";break;case 2:i+=s.getHours()<12?"AM":"PM";break}break;case"y":switch(o=Ae(t,r,"y"),r+=o,o){case 1:i+=s.getFullYear()%100;break;case 2:i+=R(s.getFullYear()%100,2);break;case 3:i+=R(s.getFullYear(),3);break;case 4:i+=R(s.getFullYear(),4);break;case 5:i+=R(s.getFullYear(),5);break}break;case"z":o=Ae(t,r,"z"),r+=o;let l="";switch(ys(s)){case 1:l="+00:00";break;case 2:l=nn(s.getTimezoneOffset()*-6e4);break;case 0:l=nn(Wu(s).getTimezoneOffset()*-6e4);break}const c=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),u=parseInt(l.substring(4,6),10);switch(o){case 1:i+=`${c}${f}`;break;case 2:i+=`${c}${R(f,2)}`;break;default:i+=`${c}${R(f,2)}:${R(u,2)}`;break}break;case":":i+=":",r++;break;case"/":i+="/",r++;break;case"'":case'"':const[h,d]=Ru(t,r);i+=h,r+=d;break;case"%":const w=_s(t,r);if(w>=0&&w!=="%".charCodeAt(0))r+=2,i+=ao(s,String.fromCharCode(w),n);else throw new Error("Invalid format string");break;case"\\":const g=_s(t,r);if(g>=0)r+=2,i+=String.fromCharCode(g);else throw new Error("Invalid format string");break;default:r++,i+=a;break}}return i}function ys(e){return e.kind||0}function nn(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+R(n,2)+":"+R(r,2)}function pr(e,t){const n=e.toISOString();return t==="first"?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function Lu(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return R(e.getFullYear(),4)+"-"+R(e.getMonth()+1,2)+"-"+R(e.getDate(),2)+"T"+R(e.getHours(),2)+":"+R(e.getMinutes(),2)+":"+R(e.getSeconds(),2)+"."+R(e.getMilliseconds(),3)+(n?nn(e.getTimezoneOffset()*-6e4):"")}}function ju(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+nn(t)}function Hu(e,t){const n=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+nn(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return pr(n,"first");case"T":case"t":return pr(n,"second");case"O":case"o":return ju(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return ao(n,t,!0)}function Bu(e,t){const n=e.kind===1;if(typeof t!="string")return n?e.toUTCString():e.toLocaleString();if(t.length===1)switch(t){case"D":case"d":return n?pr(e,"first"):e.toLocaleDateString();case"T":case"t":return n?pr(e,"second"):e.toLocaleTimeString();case"O":case"o":return Lu(e,n);default:throw new Error("Unrecognized Date print format")}else return ao(e,t,n)}function wr(e,t,n){return e.offset!=null?Hu(e,t):Bu(e,t)}function Tn(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Vu(){return Tn(-621355968e5,1)}function bs(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(o!=null){let i,s=0;if(o[2]!=null){const a=o[2].split(":"),l=parseInt(a[0],10);s=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&l<12&&(s+=720)}if(o[4]!=null){if(o[1]!=null)i=new Date(o[1]+" UTC");else{const a=new Date;i=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(o[4]==="Z")r="Z";else{let a=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(a*=-1),r=a,s-=a*60}}else if(o[1]!=null)i=new Date(o[1]);else{const a=new Date;i=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(i.getTime()+s*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-i.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function Uu(e,t=!1){const[n,r]=bs(e),o=r!=null?t&&r==="Z"?1:2:0;return Tn(n.getTime(),o)}function zu(e,t){try{return t.contents=Uu(e),!0}catch{return!1}}function Gu(e){return e.kind===1?e:Tn(e.getTime(),1)}function Wu(e){return e.kind===2?e:Tn(e.getTime(),2)}function vs(e){return e.kind===1?e.getUTCDate():e.getDate()}function mr(e){return e.kind===1?e.getUTCHours():e.getHours()}function gr(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function xs(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function _r(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function ks(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Cs(e){return e.kind===1?e.getUTCDay():e.getDay()}function qu(e,t=0){if((t&-284)!==0)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=t&1?"i":"",n+=t&2?"m":"",n+=t&16?"s":"",new RegExp(e,n)}function Ss(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Es(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let o,i=-1;for(;(o=e.exec(t))!=null;)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}function Yu(e,t,n,r,o=0){function i(){let s=arguments[0];if(r){r--;const a=[],l=arguments.length,c=typeof arguments[l-1]!="string";let f=c?l-3:l-2;for(let u=0;u<f;u++)a.push(arguments[u]);a.index=arguments[f++],a.input=arguments[f++],c&&(a.groups=arguments[f]),s=n(a)}return s}if(typeof e=="string"){const s=e;e=qu(t,r??0),t=s,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,o)+t.substring(o).replace(e,i);if(n=n.replace(/\$0/g,s=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let s;const a=t.substring(o),l=Es(e,a),c=Es.length>r?(s=l[r-1],a.substring(0,s.index+s[0].length)):a;return t.substring(0,o)+c.replace(e,n)+t.substring(o+c.length)}else return t.replace(e,n)}const Mn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Zu=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function $s(e,t){return vu(e,t)<0}function mt(e){return{input:e,cont:Xu(e)}}function Ts(e,t){return typeof t=="string"?e(t):t.cont(e)}function rn(e){return Ts(t=>t,e)}function Ms(e){return Ts(t=>{throw new Error(t)},e)}function Ku(e,t,n,r,o){let i="";if(t=t||"",o=o||"",ns(e))switch(o.toLowerCase()!=="x"&&($s(e,0)?(e=ro(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=r==null?null:parseInt(r,10),o){case"f":case"F":r=r??6,e=ur(e,r);break;case"g":case"G":e=r!=null?fr(e,r):fr(e);break;case"e":case"E":e=r!=null?dr(e,r):dr(e);break;case"x":e=hr(e);break;case"X":e=hr(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=wr(e):e=ze(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=i+e;else{const s=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!s?" ":"0";l==="0"?(e=On(e,n-i.length,l,a),e=i+e):e=On(i+e,n,l,a)}return e}function Os(e,t,n,r="",o=-1){return(...i)=>{let s=r;const a=t.slice(),l=n.slice();for(const c of i){const[,,f,u,h,d]=l[0];let w=u;if(o>=0)w=o,o=-1;else if(w==="*"){if(c<0)throw new Error("Non-negative number required");o=c;continue}s+=a[0],s+=Ku(c,f,w,h,d),a.splice(0,1),l.splice(0,1)}return l.length===0?(s+=a[0],e(s)):Os(e,a,l,s,o)}}function Xu(e){return t=>{Mn.lastIndex=0;const n=[],r=[];let o=0,i=Mn.exec(e);for(;i;){const s=i.index+(i[1]||"").length;n.push(e.substring(o,s).replace(/%%/g,"%")),r.push(i),o=Mn.lastIndex,Mn.lastIndex-=1,i=Mn.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),Os(t,n,r))}}function Ju(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(Zu,(r,o,i,s,a,l)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let c=t[o];if(ns(c))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,c=ur(c,a);break;case"g":case"G":c=a!=null?fr(c,a):fr(c);break;case"e":case"E":c=a!=null?dr(c,a):dr(c);break;case"p":case"P":a=a??2,c=ur(ro(c,100),a)+" %";break;case"d":case"D":c=a!=null?lo(String(c),a,"0"):String(c);break;case"x":case"X":c=a!=null?lo(hr(c),a,"0"):hr(c),s==="X"&&(c=c.toUpperCase());break;default:if(l){let f="";c=l.replace(/([0#,]+)(\.[0#]+)?/,(u,h,d)=>{$s(c,0)&&(c=ro(c,-1),f="-"),d=d==null?"":d.substring(1),c=ur(c,Math.max(d.length,0));let[w,g]=c.split(".");g||(g="");const p=h.replace(/,/g,"").replace(/^#+/,"").length;w=lo(w,p,"0");const _=d.replace(/#+$/,"").length;if(_>g.length?g=ef(g,_,"0"):_<g.length&&(g=g.substring(0,_)+g.substring(_).replace(/0+$/,"")),h.indexOf(",")>0){const b=w.length%3,x=Math.floor(w.length/3);let O=b>0?w.substr(0,b)+(x>0?",":""):"";for(let Y=0;Y<x;Y++)O+=w.substr(b+Y*3,3)+(Y<x-1?",":"");w=O}return g.length>0?w+"."+g:w}),c=f+c}}else c instanceof Date?c=wr(c,l||s):c=ze(c);return i=parseInt((i||" ").substring(1),10),isNaN(i)||(c=On(String(c),Math.abs(i)," ",i<0)),c})}function Qu(e){return typeof e!="string"||e.length===0}function Dt(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function On(e,t,n,r){n=n||" ",t=t-e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function lo(e,t,n){return On(e,t,n)}function ef(e,t,n){return On(e,t,n,!0)}function As(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const o=(r&1)===1,i=(r&2)===2;t=t||[],t=t.filter(f=>f).map(Ss),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let l=!0,c=0;do{const f=a.exec(e);if(f===null){const u=i?e.substring(c).trim():e.substring(c);(!o||u.length>0)&&s.push(u),l=!1}else{const u=i?e.substring(c,f.index).trim():e.substring(c,f.index);(!o||u.length>0)&&(n!=null&&s.length+1===n?(s.push(i?e.substring(c).trim():e.substring(c)),l=!1):s.push(u)),c=a.lastIndex}}while(l);return s}function tf(e,...t){if(t.length===0)return e.trim();const n="["+Ss(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class Ft{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return it(this.value)}Equals(t){return t==null?!1:ye(this.value,t instanceof Ft?t.value:t)}CompareTo(t){return t==null?1:Le(this.value,t instanceof Ft?t.value:t)}}function y(e){if(e==null)throw new Error("Option has no value");return e instanceof Ft?e.value:e}function nf(e){return e instanceof Ft?e.value:e}function pe(e){return e==null||e instanceof Ft?new Ft(e):e}function co(e,t){return e!=null?y(e):t}function rf(e,t){return e!=null?y(e):t()}function of(e,t){return t!=null?pe(e(y(t))):void 0}const Is="Collection was empty.";function Ns(e,t){return typeof e=="function"?new e(t):new Array(t)}function Ps(e,t){return e>t?e:t}function yr(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function Rt(e,t,n){const r=t.length|0,o=Ns(n,r);for(let i=0;i<=r-1;i++)Qe(o,i,e(q(i,t)));return o}function sf(e,t){const n=Ns(t,1);return Qe(n,0,e),n}function af(e){return e.slice().reverse()}function lf(e,t){return t.find(e)}function cf(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const i=e(q(o,t));if(i!=null){const s=y(i);r.push(s)}}return ye(n,Te())?r:Rt(o=>o,r,n)}function br(e,t,n){const r=e;return n.reduce(r,t)}function uf(e,t,n){if(t==null)return n==null;if(n==null)return!1;{let r=0,o=!0;const i=t.length|0,s=n.length|0;if(i>s)return!1;if(i<s)return!1;for(;r<i&&o;)o=e(q(r,t),q(r,n)),r=r+1|0;return o}}function q(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function Qe(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function Ds(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class be extends Me{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+Dt("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,i)=>{e:for(;;){const s=o,a=i,l=s.tail,c=a.tail;if(l!=null)if(c!=null){const f=y(l),u=y(c);if(ye(s.head,a.head)){o=f,i=u;continue e}else return!1}else return!1;else return c==null}})(n,t)}GetHashCode(){return((r,o,i)=>{e:for(;;){const s=r,a=o,l=i,c=l.tail;if(c!=null){const f=y(c);if(s>18)return a|0;r=s+1,o=(a<<1)+it(l.head)+631*s,i=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,i)=>{e:for(;;){const s=o,a=i,l=s.tail,c=a.tail;if(l!=null)if(c!=null){const f=y(l),u=y(c),h=Le(s.head,a.head)|0;if(h===0){o=f,i=u;continue e}else return h|0}else return 1;else return c!=null?-1:0}})(this,t)|0}GetEnumerator(){return df(this)}[Symbol.iterator](){return or(oe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return oe(this)}}class ff{constructor(t){this.xs=t,this.it=this.xs,this.current=Te()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=y(n);return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=Te()}Dispose(){}}function df(e){return new ff(e)}function ce(){return new be(Te(),void 0)}function An(e,t){return new be(e,t)}function vr(e){return e.tail==null}function hf(e){return((n,r)=>{e:for(;;){const o=n,s=r.tail;if(s!=null){n=o+1,r=y(s);continue e}else return o|0}})(0,e)|0}function uo(e){if(e.tail!=null)return e.head;throw new Error(Is+"\\nParameter name: list")}function Ge(e){const t=e.tail;if(t!=null)return y(t);throw new Error(Is+"\\nParameter name: list")}function fe(){return ce()}function He(e,t){return An(e,t)}function ae(e){return An(e,ce())}function P(e){return vr(e)}function C(e){return uo(e)}function I(e){return Ge(e)}function In(e){const t=hf(e)|0,n=yr(new Array(t),0,t,null);return((o,i)=>{e:for(;;){const s=o,a=i;if(!vr(a)){Qe(n,s,uo(a)),o=s+1,i=Ge(a);continue e}break}})(0,e),n}function et(e,t,n){let r=t,o=n;for(;!vr(o);)r=e(r,C(o)),o=Ge(o);return r}function fo(e){return et((t,n)=>An(n,t),ce(),e)}function pf(e,t,n){return Ds(e,In(t),n)}function Nn(e,t){et((n,r)=>{e(r)},void 0,t)}function X(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=An(q(r,e),n);return n}function M(e){return X(e,ce())}function wf(e){let t,n;if(Ve(e))return M(e);if(e instanceof be)return e;{const r=ce();let o=r;const i=oe(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new be(l,void 0),t.tail=n,n)}}finally{G(i)}const s=o,a=ce();return s.tail=a,Ge(r)}}function mf(e){const t=ce();let n=t;const r=s=>{n=et((a,l)=>{const c=new be(l,void 0);return a.tail=c,c},n,s)};if(Ve(e))e.forEach(r);else if(e instanceof be)Nn(r,e);else{const s=oe(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();)r(s["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{G(s)}}const o=n,i=ce();return o.tail=i,Ge(t)}function ho(e,t){return et((n,r)=>An(r,n),t,fo(e))}function gf(e,t){const n=ce(),r=et((i,s)=>{const a=new be(e(s),void 0);return i.tail=a,a},n,t),o=ce();return r.tail=o,Ge(n)}function _f(e,t){return((r,o)=>{e:for(;;){const i=r,s=o;if(vr(s))return;if(e(uo(s)))return i;r=i+1,o=Ge(s);continue e}})(0,t)}function yf(e,t){const n=ce(),r=et((i,s)=>{if(e(s)){const a=new be(s,void 0);return i.tail=a,a}else return i},n,t),o=ce();return r.tail=o,Ge(n)}function bf(e,t){const n=ce(),r=ce(),o=n,i=et((l,c)=>{let f,u;const h=l[0],d=l[1];return e(c)?[(f=new be(c,void 0),h.tail=f,f),d]:[h,(u=new be(c,void 0),d.tail=u,u)]},[o,r],t),s=ce();i[0].tail=s;const a=ce();return i[1].tail=a,[Ge(o),Ge(r)]}function vf(e,t){const n=ce(),r=et((i,s)=>{const a=e(s);if(a==null)return i;{const l=new be(y(a),void 0);return i.tail=l,l}},n,t),o=ce();return r.tail=o,Ge(n)}function Fs(e,t,n){return _f(r=>n.Equals(e,r),t)!=null}function xf(e){return new m(0,[e])}function Rs(e){return new m(1,[e])}class m extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function st(e,t){return t.tag===0?xf(e(t.fields[0])):Rs(t.fields[0])}function kf(e,t){return t.tag===0?e(t.fields[0]):Rs(t.fields[0])}const Lt={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function po(e,t){return e.replace(/[a-z]?[A-Z]/g,n=>n.length===1?n.toLowerCase():n.charAt(0)+t+n.charAt(1).toLowerCase())}function Cf(e,t){switch(t){case Lt.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Lt.SnakeCase:return po(e,"_");case Lt.SnakeCaseAllCaps:return po(e,"_").toUpperCase();case Lt.KebabCase:return po(e,"-");case Lt.None:default:return e}}function gt(e,t=Lt.None){const n={},r=t;function o(s){throw new Error("Cannot infer key and value of "+String(s))}function i(s,a,l){s=Cf(s,a),n[s]=l}for(let s of e){let a=Lt.None;if(s==null&&o(s),s instanceof L){const l=s.cases()[s.tag];s=s.fields.length===0?l:[l].concat(s.fields),a=r}if(Array.isArray(s))switch(s.length){case 0:o(s);break;case 1:i(s[0],a,!0);break;case 2:const l=s[1];i(s[0],a,l);break;default:i(s[0],a,s.slice(1))}else typeof s=="string"?i(s,a,!0):o(s)}return n}class k extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class jt extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Ls(e){return e.slice(void 0,0+1).toLowerCase()+e.slice(1,e.length)}function js(e,t){switch(e.tag){case 2:return Yu(Ls(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Ls(t)}}const Sf=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Hs=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Ef=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function $f(e){function t(r){return r.replace(Hs,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Sf.test(n))return tf(n,"{","}","(",")");if(Hs.test(n))return t(n);if(Ef.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function Tf(e,t){try{return t.contents=$f(e),!0}catch{return!1}}var wo;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(wo||(wo={}));function Mf(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function Bs(e,t){switch(t){case 8:return e?[0,255]:[-128,127];case 16:return e?[0,65535]:[-32768,32767];case 32:return e?[0,4294967295]:[-2147483648,2147483647];default:throw new Error("Invalid bit size.")}}function Of(e){switch(e){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}function Af(e,t){if(t&wo.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}function If(e,t,n){const o=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(o!=null){const[,,i,s]=o;if(n=n||Af(i,t),!Of(n).test(s))return Mf(o,n)}return null}function Nf(e,t,n,r,o){const i=If(e,t,o);if(i!=null){let s=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(s)){const[a,l]=Bs(!0,r);!n&&i.radix!==10&&s>=a&&s<=l&&(s=s<<32-r>>32-r);const[c,f]=Bs(n,r);if(s>=c&&s<=f)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function on(e,t,n,r,o){try{return o.contents=Nf(e,t,n,r),!0}catch{return!1}}function Vs(e,t){Pf(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Pf(e){if(e!=null&&e!==0){if(e%6e4!==0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}function Df(){return Vs(-621355968e5,0)}function Ff(e){const[t,n]=bs(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return Vs(t.getTime(),r)}function Rf(e,t){try{return t.contents=Ff(e),!0}catch{return!1}}function Pn(e){return e<0?Math.ceil(e):Math.floor(e)}function Us(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Lf(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+o}function Lf(e){return Number(BigInt(e)/10000n)}function jf(e){return Pn(e/864e5)}function Hf(e){return Pn(e%864e5/36e5)}function Bf(e){return Pn(e%36e5/6e4)}function Vf(e){return Pn(e%6e4/1e3)}function Uf(e){return Pn(e%1e3)}function zf(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(jf(e)),o=Math.abs(Hf(e)),i=Math.abs(Bf(e)),s=Math.abs(Vf(e)),a=Math.abs(Uf(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?o:R(o,2)}:${R(i,2)}:${R(s,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+R(a,3):"."+Wc(a,3,7)}`}function Gf(e){const t=e.search("\\."),n=e.search("\\:");if(t===-1&&n===-1){const r=parseInt(e,0);if(isNaN(r))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return Us(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let o=0,i=0,s=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],c=+r[5];if(r[3]!=null&&(o=+r[3]),r[7]!=null&&(s=+r[7]),r[8]!=null)switch(r[8].length){case 1:i=+r[8]*100;break;case 2:i=+r[8]*10;break;case 3:i=+r[8];break;case 4:i=+r[8]/10;break;case 5:i=+r[8]/100;break;case 6:i=+r[8]/1e3;break;case 7:i=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*Us(o,l,c,s,i)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Wf(e,t){try{return t.contents=Gf(e),!0}catch{return!1}}function qf(e){throw new Error(e)}const Yf="Enumeration already finished.",Zf="Enumeration has not started. Call MoveNext.",zs="The input sequence has an insufficient number of elements.",Kf="Reset is not supported on this enumerator.";function Xf(){throw new Error(Kf)}function mo(){throw new Error(Zf)}function go(){throw new Error(Yf)}class Jf{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=oe(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+ze(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{G(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return or(oe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Qf(e){return new Jf(e)}class ed{constructor(t,n,r){this.current=t,this.next=n,this.dispose=r}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){Xf()}Dispose(){this.dispose()}}function xr(e,t,n){return new ed(e,t,n)}function td(e){let t,n,r=!1,o=!1,i;const s=()=>{if(o=!0,n!=null){const a=y(n);try{G(a)}finally{n=void 0}}if(t!=null){const a=y(t);try{G(a)}finally{t=void 0}}};return xr(()=>(r?o&&go():mo(),i!=null?y(i):go()),()=>{let a;if(r||(r=!0),o)return!1;{let l;for(;l==null;){const c=t,f=n;if(c!=null)if(f!=null){const u=y(f);if(u["System.Collections.IEnumerator.MoveNext"]())i=pe(u["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{G(u)}finally{n=void 0}}else{const u=y(c);u["System.Collections.IEnumerator.MoveNext"]()?n=(a=u["System.Collections.Generic.IEnumerator`1.get_Current"](),oe(a)):(s(),l=!1)}else t=oe(e)}return y(l)}},()=>{o||s()})}function nd(e,t){return xr(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{G(t)}finally{e()}})}function Gs(e,t,n){let r=!1,o,i=pe(e());const s=()=>{if(i!=null){const l=y(i);try{n(l)}finally{i=void 0}}},a=()=>{try{s()}finally{o=void 0}};return xr(()=>(r||mo(),o!=null?y(o):go()),()=>{if(r||(r=!0),i!=null){const l=y(i);let c;try{c=t(l)}catch(f){throw a(),f}return c!=null?(o=c,!0):(a(),!1)}else return!1},s)}function rd(e,t){let n,r=t;return xr(()=>{if(n!=null){const o=y(n)[0];return y(n)[1],o}else return mo()},()=>(n=e(r),n!=null?(y(n)[0],r=y(n)[1],!0):!1),()=>{})}function od(e,t){t==null&&qf(e)}function sn(e){return Qf(e)}function _t(e){return od("source",e),oe(e)}function ve(e){return sn(()=>oe(e()))}function Ws(e){return sn(()=>td(e))}function id(e,t){return sn(()=>rd(e,t))}function sd(){return ve(()=>new Array(0))}function yt(e){return ve(()=>sf(e))}function bg(e){return e}function ad(e){return e instanceof be?In(e):Array.from(e)}function kr(e){return Ve(e)?M(e):e instanceof be?e:wf(e)}function ld(e,t,n){return sn(()=>Gs(e,t,n))}function qs(e,t,n){return sn(()=>{let r=-1;return Gs(e,o=>(r=r+1|0,t(r,o)),n)})}function an(e,t){return Ws([e,t])}function cd(e,t,n){const r=_t(t);try{const o=_t(n);try{let i=0,s=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]();for(;i===0&&s&&a;)i=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,i===0&&(s=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]());return(i!==0?i:s?1:a?-1:0)|0}finally{G(o)}}finally{G(r)}}function ln(e,t,n){const r=_t(t);try{let o=!1;for(;!o&&r["System.Collections.IEnumerator.MoveNext"]();)o=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{G(r)}}function Cr(e,t,n){const r=_t(n);try{let o=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)o=e(o,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{G(r)}}function Ys(e,t){Cr((n,r)=>{e(r)},void 0,t)}function Ie(e,t){return ld(()=>_t(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?pe(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{G(n)})}function ud(e,t){return qs(()=>_t(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?pe(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{G(n)})}function fd(e){return ve(()=>af(ad(e)))}function dd(e,t){return sn(()=>{const n=_t(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(zs+"\\nParameter name: source");return nd(()=>{},n)}catch(r){throw G(n),r}})}function hd(e,t){return qs(()=>_t(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return pe(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(zs+"\\nParameter name: source")}else return},n=>{G(n)})}function pd(e,t){return ve(()=>Ws(Ie(e,t)))}class Zs{constructor(t,n){this.k=t,this.v=n}}function Dn(e,t){return new Zs(e,t)}function le(e){return e.k}function xe(e){return e.v}class ie extends Zs{constructor(t,n,r,o,i){super(t,n),this.left=r,this.right=o,this.h=i|0}}function Fn(e,t,n,r,o){return new ie(e,t,n,r,o)}function we(e){return e.left}function me(e){return e.right}function bt(e){return e.h}function vg(){}function Ks(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof ie){const i=o;e=Ks(n+1,we(i)),t=me(i);continue e}else return n+1|0}else return n|0}}function wd(e){return Ks(0,e)}function We(e,t,n,r){let o,i,s;const a=e;if(a!=null){const u=y(a);s=u instanceof ie?(o=u,bt(o)):1}else s=0;let l;const c=r;if(c!=null){const u=y(c);l=u instanceof ie?(i=u,bt(i)):1}else l=0;const f=(s<l?l:s)|0;return f===0?Dn(t,n):Fn(t,n,e,r,f+1)}function Xs(e,t,n,r){let o,i,s,a,l,c,f,u,h;const d=e;if(d!=null){const p=y(d);h=p instanceof ie?(o=p,bt(o)):1}else h=0;let w;const g=r;if(g!=null){const p=y(g);w=p instanceof ie?(i=p,bt(i)):1}else w=0;if(w>h+2){const p=y(r);if(p instanceof ie){const _=p;if(s=we(_),(s!=null?(a=y(s),a instanceof ie?(l=a,bt(l)):1):0)>h+1){const b=y(we(_));if(b instanceof ie){const x=b;return We(We(e,t,n,we(x)),le(x),xe(x),We(me(x),le(_),xe(_),me(_)))}else throw new Error("internal error: Map.rebalance")}else return We(We(e,t,n,we(_)),le(_),xe(_),me(_))}else throw new Error("internal error: Map.rebalance")}else if(h>w+2){const p=y(e);if(p instanceof ie){const _=p;if(c=me(_),(c!=null?(f=y(c),f instanceof ie?(u=f,bt(u)):1):0)>w+1){const b=y(me(_));if(b instanceof ie){const x=b;return We(We(we(_),le(_),xe(_),we(x)),le(x),xe(x),We(me(x),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return We(we(_),le(_),xe(_),We(me(_),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return We(e,t,n,r)}function cn(e,t,n,r){if(r!=null){const o=y(r),i=e.Compare(t,le(o))|0;if(o instanceof ie){const s=o;return i<0?Xs(cn(e,t,n,we(s)),le(s),xe(s),me(s)):i===0?Fn(t,n,we(s),me(s),bt(s)):Xs(we(s),le(s),xe(s),cn(e,t,n,me(s)))}else return i<0?Fn(t,n,void 0,r,2):i===0?Dn(t,n):Fn(t,n,r,void 0,2)}else return Dn(t,n)}function Js(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=y(i),a=r.Compare(o,le(s))|0;if(a===0)return pe(xe(s));if(s instanceof ie){const l=s;e=r,t=o,n=a<0?we(l):me(l);continue e}else return}else return}}function md(e,t,n){const r=Js(e,t,n);if(r==null)throw new Error;return y(r)}function gd(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=y(i),a=r.Compare(o,le(s))|0;if(s instanceof ie){const l=s;if(a<0){e=r,t=o,n=we(l);continue e}else{if(a===0)return!0;e=r,t=o,n=me(l);continue e}}else return a===0}else return!1}}function Qs(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof ie){const i=o;Qs(n,we(i)),n(le(i),xe(i)),e=n,t=me(i);continue e}else n(le(o),xe(o))}break}}function _d(e,t){Qs(e,t)}function _o(e,t){if(t!=null){const n=y(t);if(n instanceof ie){const r=n,o=_o(e,we(r)),i=e(le(r),xe(r)),s=_o(e,me(r));return Fn(le(r),i,o,s,bt(r))}else return Dn(le(n),e(le(n),xe(n)))}else return void 0}function yd(e,t){return _o(e,t)}function bd(e,t,n){let r=n;_d((o,i)=>{Qe(t,r,[o,i]),r=r+1|0},e)}function vd(e,t){return et((n,r)=>cn(e,r[0],r[1],n),void 0,t)}function xd(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=cn(r,s[0],s[1],o),n=i;continue e}else return o}}function kd(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=q(r,t);n=cn(e,o[0],o[1],n)}return n}function ea(e,t){if(Ve(t))return kd(e,t);if(t instanceof be)return vd(e,t);{const n=oe(t);try{return xd(e,void 0,n)}finally{G(n)}}}class Cd extends Me{constructor(t,n){super(),this.stack=t,this.started=n}}function ta(e){e:for(;;){const t=e;if(P(t))return fe();{const n=I(t),r=C(t);if(r!=null){const o=y(r);if(o instanceof ie){const i=o;e=X([we(i),Dn(le(i),xe(i)),me(i)],n);continue e}else return t}else{e=n;continue e}}}}function na(e){return new Cd(ta(ae(e)),!1)}function Sd(){throw new Error("enumeration not started")}function Ed(){throw new Error("enumeration already finished")}function ra(e){if(e.started){const t=e.stack;if(P(t))return Ed();if(C(t)!=null){const n=y(C(t));if(n instanceof ie)throw new Error("Please report error: Map iterator, unexpected stack for current");return[le(n),xe(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Sd()}function $d(e){if(e.started){const t=e.stack;if(P(t))return!1;if(C(t)!=null){if(y(C(t))instanceof ie)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=ta(I(t)),!P(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!P(e.stack)}function oa(e){let t=na(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return ra(t)},"System.Collections.IEnumerator.get_Current"(){return ra(t)},"System.Collections.IEnumerator.MoveNext"(){return $d(t)},"System.Collections.IEnumerator.Reset"(){t=na(e)},Dispose(){}}}class Sr{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Id(this)|0}Equals(t){const n=this;if(t instanceof Sr){const r=t,o=oe(n);try{const i=oe(r);try{const s=()=>{const a=o["System.Collections.IEnumerator.MoveNext"]();if(a===i["System.Collections.IEnumerator.MoveNext"]())if(a){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"](),c=i["System.Collections.Generic.IEnumerator`1.get_Current"]();return ye(l[0],c[0])&&ye(l[1],c[1])?s():!1}else return!0;else return!1};return s()}finally{G(i)}}finally{G(o)}}else return!1}toString(){return"map ["+Dt("; ",Ie(n=>Ju("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return oa(this.tree)}[Symbol.iterator](){return or(oe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return oa(this.tree)}CompareTo(t){const n=this;if(t instanceof Sr)return cd((o,i)=>{const s=n.comparer.Compare(o[0],i[0])|0;return(s!==0?s:Le(o[1],i[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return sa(n,t[0])&&ye(ia(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){bd(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return yo(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return yo(this)|0}get size(){return yo(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Ie(n=>[n[0],n[1]],this)}get(t){return ia(this,t)}has(t){return sa(this,t)}keys(){return Ie(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Ie(n=>n[1],this)}forEach(t,n){const r=this;Ys(o=>{t(o[1],o[0],r)},r)}}function Rn(e,t){return new Sr(e,t)}function Td(e){return Rn(e,void 0)}function Md(e,t,n){return Rn(e.comparer,cn(e.comparer,t,n,e.tree))}function ia(e,t){return md(e.comparer,t,e.tree)}function Od(e,t){return Rn(e.comparer,yd(t,e.tree))}function yo(e){return wd(e.tree)}function sa(e,t){return gd(e.comparer,t,e.tree)}function Ad(e,t){return Js(e.comparer,t,e.tree)}function Id(e){const t=(o,i)=>(o<<1)+i+631;let n=0;const r=oe(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,it(o[0]))|0,n=t(n,it(o[1]))|0}}finally{G(r)}return n|0}function aa(e,t,n){return Md(n,e,t)}function la(e,t){return Ad(t,e)}function ca(e,t){return Od(t,e)}function Nd(e,t){return Rn(t,ea(t,e))}function Pd(e,t){return Rn(t,ea(t,e))}function bo(e){return Td(e)}class ua{constructor(t){this.k=t}}function Ne(e){return new ua(e)}function $(e){return e.k}class D extends ua{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function Pe(e,t,n,r){return new D(e,t,n,r)}function z(e){return e.left}function H(e){return e.right}function un(e){return e.h}function xg(){}function fa(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=y(n);if(o instanceof D){const i=o;e=z(i),t=fa(H(i),r+1);continue e}else return r+1|0}else return r|0}}function Dd(e){return fa(e,0)}function qe(e,t,n){let r,o,i;const s=e;if(s!=null){const f=y(s);i=f instanceof D?(r=f,un(r)):1}else i=0;let a;const l=n;if(l!=null){const f=y(l);a=f instanceof D?(o=f,un(o)):1}else a=0;const c=(i<a?a:i)|0;return c===0?Ne(t):Pe(t,e,n,c+1)}function da(e,t,n){let r,o,i,s,a,l,c,f,u;const h=e;if(h!=null){const g=y(h);u=g instanceof D?(r=g,un(r)):1}else u=0;let d;const w=n;if(w!=null){const g=y(w);d=g instanceof D?(o=g,un(o)):1}else d=0;if(d>u+2){const g=y(n);if(g instanceof D){const p=g;if(i=z(p),(i!=null?(s=y(i),s instanceof D?(a=s,un(a)):1):0)>u+1){const _=y(z(p));if(_ instanceof D){const b=_;return qe(qe(e,t,z(b)),$(b),qe(H(b),$(p),H(p)))}else throw new Error("internal error: Set.rebalance")}else return qe(qe(e,t,z(p)),$(p),H(p))}else throw new Error("internal error: Set.rebalance")}else if(u>d+2){const g=y(e);if(g instanceof D){const p=g;if(l=H(p),(l!=null?(c=y(l),c instanceof D?(f=c,un(f)):1):0)>d+1){const _=y(H(p));if(_ instanceof D){const b=_;return qe(qe(z(p),$(p),z(b)),$(b),qe(H(b),t,n))}else throw new Error("internal error: Set.rebalance")}else return qe(z(p),$(p),qe(H(p),t,n))}else throw new Error("internal error: Set.rebalance")}else return qe(e,t,n)}function fn(e,t,n){if(n!=null){const r=y(n),o=e.Compare(t,$(r))|0;if(r instanceof D){const i=r;return o<0?da(fn(e,t,z(i)),$(i),H(i)):o===0?n:da(z(i),$(i),fn(e,t,H(i)))}else{const i=e.Compare(t,$(r))|0;return i<0?Pe(t,void 0,n,2):i===0?n:Pe(t,n,void 0,2)}}else return Ne(t)}function ha(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=y(i),a=r.Compare(o,$(s))|0;if(s instanceof D){const l=s;if(a<0){e=r,t=o,n=z(l);continue e}else{if(a===0)return!0;e=r,t=o,n=H(l);continue e}}else return a===0}else return!1}}function pa(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof D){const i=o;pa(n,z(i)),n($(i)),e=n,t=H(i);continue e}else n($(o))}break}}class Fd extends Me{constructor(t,n){super(),this.stack=t,this.started=n}}function wa(e){e:for(;;){const t=e;if(P(t))return fe();{const n=C(t),r=I(t);if(n!=null){const o=y(n);if(o instanceof D){const i=o;e=X([z(i),Ne($(i)),H(i)],r);continue e}else return t}else{e=r;continue e}}}}function ma(e){return new Fd(wa(ae(e)),!1)}function Rd(){throw new Error("Enumeration not started")}function Ld(){throw new Error("Enumeration already started")}function ga(e){if(e.started){const t=e.stack;if(P(t))return Ld();if(C(t)!=null){const n=y(C(t));return $(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Rd()}function jd(e){if(e.started){const t=e.stack;if(P(t))return!1;if(C(t)!=null){if(y(C(t))instanceof D)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=wa(I(t)),!P(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!P(e.stack)}function _a(e){let t=ma(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return ga(t)},"System.Collections.IEnumerator.get_Current"(){return ga(t)},"System.Collections.IEnumerator.MoveNext"(){return jd(t)},"System.Collections.IEnumerator.Reset"(){t=ma(e)},Dispose(){}}}function Hd(e,t,n){e:for(;;){const r=e,o=t,i=n;if(P(o))return P(i)?0:-1;if(P(i))return 1;if(C(i)!=null)if(C(o)!=null){const s=y(C(o)),a=y(C(i));if(s instanceof D){const l=s;if(z(l)==null)if(a instanceof D){const c=a;if(z(c)==null){const f=r.Compare($(l),$(c))|0;if(f!==0)return f|0;e=r,t=He(H(l),I(o)),n=He(H(c),I(i));continue e}else{let f,u,h,d,w;switch(P(o)?P(i)?f=2:C(i)!=null?(f=1,d=I(i),w=y(C(i))):f=2:C(o)!=null?(f=0,u=I(o),h=y(C(o))):P(i)?f=2:C(i)!=null?(f=1,d=I(i),w=y(C(i))):f=2,f){case 0:if(h instanceof D){const g=h;e=r,t=X([z(g),Pe($(g),void 0,H(g),0)],u),n=i;continue e}else{e=r,t=X([void 0,Ne($(h))],u),n=i;continue e}case 1:if(w instanceof D){const g=w;e=r,t=o,n=X([z(g),Pe($(g),void 0,H(g),0)],d);continue e}else{e=r,t=o,n=X([void 0,Ne($(w))],d);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const c=r.Compare($(l),$(a))|0;if(c!==0)return c|0;e=r,t=He(H(l),I(o)),n=He(void 0,I(i));continue e}else{let c,f,u,h,d;switch(P(o)?P(i)?c=2:C(i)!=null?(c=1,h=I(i),d=y(C(i))):c=2:C(o)!=null?(c=0,f=I(o),u=y(C(o))):P(i)?c=2:C(i)!=null?(c=1,h=I(i),d=y(C(i))):c=2,c){case 0:if(u instanceof D){const w=u;e=r,t=X([z(w),Pe($(w),void 0,H(w),0)],f),n=i;continue e}else{e=r,t=X([void 0,Ne($(u))],f),n=i;continue e}case 1:if(d instanceof D){const w=d;e=r,t=o,n=X([z(w),Pe($(w),void 0,H(w),0)],h);continue e}else{e=r,t=o,n=X([void 0,Ne($(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof D){const l=a;if(z(l)==null){const c=r.Compare($(s),$(l))|0;if(c!==0)return c|0;e=r,t=He(void 0,I(o)),n=He(H(l),I(i));continue e}else{let c,f,u,h,d;switch(P(o)?P(i)?c=2:C(i)!=null?(c=1,h=I(i),d=y(C(i))):c=2:C(o)!=null?(c=0,f=I(o),u=y(C(o))):P(i)?c=2:C(i)!=null?(c=1,h=I(i),d=y(C(i))):c=2,c){case 0:if(u instanceof D){const w=u;e=r,t=X([z(w),Pe($(w),void 0,H(w),0)],f),n=i;continue e}else{e=r,t=X([void 0,Ne($(u))],f),n=i;continue e}case 1:if(d instanceof D){const w=d;e=r,t=o,n=X([z(w),Pe($(w),void 0,H(w),0)],h);continue e}else{e=r,t=o,n=X([void 0,Ne($(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare($(s),$(a))|0;if(l!==0)return l|0;e=r,t=I(o),n=I(i);continue e}}else{y(C(i));let s,a,l,c,f;switch(P(o)?P(i)?s=2:C(i)!=null?(s=1,c=I(i),f=y(C(i))):s=2:C(o)!=null?(s=0,a=I(o),l=y(C(o))):P(i)?s=2:C(i)!=null?(s=1,c=I(i),f=y(C(i))):s=2,s){case 0:if(l instanceof D){const u=l;e=r,t=X([z(u),Pe($(u),void 0,H(u),0)],a),n=i;continue e}else{e=r,t=X([void 0,Ne($(l))],a),n=i;continue e}case 1:if(f instanceof D){const u=f;e=r,t=o,n=X([z(u),Pe($(u),void 0,H(u),0)],c);continue e}else{e=r,t=o,n=X([void 0,Ne($(f))],c);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(C(o)!=null){y(C(o));let s,a,l,c,f;switch(P(o)?P(i)?s=2:C(i)!=null?(s=1,c=I(i),f=y(C(i))):s=2:C(o)!=null?(s=0,a=I(o),l=y(C(o))):P(i)?s=2:C(i)!=null?(s=1,c=I(i),f=y(C(i))):s=2,s){case 0:if(l instanceof D){const u=l;e=r,t=X([z(u),Pe($(u),void 0,H(u),0)],a),n=i;continue e}else{e=r,t=X([void 0,Ne($(l))],a),n=i;continue e}case 1:if(f instanceof D){const u=f;e=r,t=o,n=X([z(u),Pe($(u),void 0,H(u),0)],c);continue e}else{e=r,t=o,n=X([void 0,Ne($(f))],c);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=I(o),n=I(i);continue e}}}function ya(e,t,n){return t==null?n==null?0:-1:n==null?1:Hd(e,ae(t),ae(n))|0}function Bd(e,t,n){let r=n;pa(o=>{Qe(t,r,o),r=r+1|0},e)}function Vd(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=fn(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i;continue e}else return o}}function Ud(e,t){return br((n,r)=>fn(e,r,n),void 0,t)}function zd(e,t){return et((n,r)=>fn(e,r,n),void 0,t)}function ba(e,t){if(Ve(t))return Ud(e,t);if(t instanceof be)return zd(e,t);{const n=oe(t);try{return Vd(e,void 0,n)}finally{G(n)}}}class vo{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return qd(this)|0}Equals(t){let n;const r=this;return t instanceof vo&&(n=t,ya(dn(r),Ye(r),Ye(n))===0)}toString(){return"set ["+Dt("; ",Ie(n=>ze(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return ya(dn(n),Ye(n),Ye(t))|0}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return ha(dn(n),t,Ye(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Bd(Ye(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return xo(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return xo(this)|0}GetEnumerator(){return _a(Ye(this))}[Symbol.iterator](){return or(oe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return _a(Ye(this))}get size(){return xo(this)|0}add(t){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(t){throw new Error("Set cannot be mutated")}has(t){return va(this,t)}keys(){return Ie(n=>n,this)}values(){return Ie(n=>n,this)}entries(){return Ie(n=>[n,n],this)}forEach(t,n){const r=this;Ys(o=>{t(o,o,r)},r)}}function Er(e,t){return new vo(e,t)}function dn(e){return e.comparer}function Ye(e){return e.tree}function Gd(e){return Er(e,void 0)}function Wd(e,t){return Er(dn(e),fn(dn(e),t,Ye(e)))}function xo(e){return Dd(Ye(e))}function va(e,t){return ha(dn(e),t,Ye(e))}function qd(e){let t=0;const n=oe(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+it(r)+631|0}}finally{G(n)}return Math.abs(t)|0}function ko(e,t){return va(t,e)}function Yd(e,t){return Wd(t,e)}function Zd(e){return Gd(e)}function Kd(e,t){return Er(t,ba(t,e))}function Xd(e,t){return Er(t,ba(t,e))}function Ln(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
4
+ `)+" }"}function su(e){const t=Object.values(e).map(n=>it(n));return Xt(t)}function au(e,t){if(e===t)return!0;if(rr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!ye(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function lu(e,t){if(e===t)return 0;if(rr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=Le(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class Me{toJSON(){return ou(this)}toString(){return iu(this)}GetHashCode(){return su(this)}Equals(t){return au(this,t)}CompareTo(t){return lu(this,t)}}class Ee{get contents(){return this.getter()}set contents(t){this.setter(t)}constructor(t,n){typeof n=="function"?(this.getter=t,this.setter=n):(this.getter=()=>t,this.setter=r=>{t=r})}}class cu{constructor(t){this.message=t}}function uu(e){return e instanceof cu||e instanceof Error}function fu(e){return e instanceof Promise}function lr(e){return uu(e)||fu(e)?e:new Error(String(e))}var j={},du=28,hu=1,It=1e6,Qi=1e6,pu=-29,wu=29,mu=!1,Sn="[big.js] ",Nt=Sn+"Invalid ",cr=Nt+"decimal places",gu=Nt+"rounding mode",es=Sn+"Division by zero",Je=void 0,_u=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function ts(){function e(t){var n=this;if(!(n instanceof e))return t===Je?ts():new e(t);if(t instanceof e)n.s=t.s,n.e=t.e,n.c=t.c.slice(),yu(n);else{if(typeof t!="string"){if(e.strict===!0)throw TypeError(Nt+"number");t=t===0&&1/t<0?"-0":String(t)}bu(n,t)}n.constructor=e}return e.prototype=j,e.DP=du,e.RM=hu,e.NE=pu,e.PE=wu,e.strict=mu,e}function yu(e){if(e.c.length>1&&!e.c[0]){let t=e.c.findIndex(n=>n);e.c=e.c.slice(t),e.e=e.e-t}}function bu(e,t){var n,r,o;if(!_u.test(t))throw Error(Nt+"number");for(e.s=t.charAt(0)=="-"?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),o=t.length,r=0;r<n&&r<o&&t.charAt(r)=="0";)++r;if(r==o)e.c=[e.e=0];else for(e.e=n-r-1,e.c=[],n=0;r<o;)e.c[n++]=+t.charAt(r++);return e=wt(e,je.DP+1,je.RM),e}function wt(e,t,n,r){var o=e.c;if(n===Je&&(n=je.RM),n!==0&&n!==1&&n!==2&&n!==3)throw Error(gu);if(t<1)r=n===3&&(r||!!o[0])||t===0&&(n===1&&o[0]>=5||n===2&&(o[0]>5||o[0]===5&&(r||o[1]!==Je))),o.length=1,r?(e.e=e.e-t+1,o[0]=1):o[0]=e.e=0;else if(t<o.length){const i=o.findIndex((s,a)=>a>=t&&s>0)<0;if(r=n===1&&o[t]>=5||n===2&&(o[t]>5||o[t]===5&&(r||o[t+1]!==Je||o[t-1]&1))||n===3&&(r||!i),o.length=t--,r)for(;++o[t]>9;)o[t]=0,t--||(++e.e,o.unshift(1));for(t=o.length;!o[--t];)o.pop()}return e}function Jt(e,t,n){var r=e.e,o=e.c.join(""),i=o.length;if(t)o=o.charAt(0)+(i>1?"."+o.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)o="0"+o;o="0."+o}else if(r>0)if(++r>i)for(r-=i;r--;)o+="0";else r<i&&(o=o.slice(0,r)+"."+o.slice(r));else i>1&&(o=o.charAt(0)+"."+o.slice(1));return e.s<0&&n?"-"+o:o}j.abs=function(){var e=new this.constructor(this);return e.s=1,e},j.cmp=function(o){var t,n=this.constructor,r=new n(this),o=new n(o),i=r.c,s=o.c,a=r.s,l=o.s,c=r.e,f=o.e;if(!i[0]||!s[0])return i[0]?a:s[0]?-l:0;if(a!=l)return a;if(t=a<0,c!=f)return c>f^t?1:-1;for(l=Math.max(i.length,s.length),a=0;a<l;a++)if(c=a<i.length?i[a]:0,f=a<s.length?s[a]:0,c!=f)return c>f^t?1:-1;return 0},j.div=function(r){var t=this.constructor,n=new t(this),r=new t(r),o=n.c,i=r.c,s=n.s==r.s?1:-1,a=t.DP;if(a!==~~a||a<0||a>It)throw Error(cr);if(!i[0])throw Error(es);if(!o[0])return r.s=s,r.c=[r.e=0],r;var l,c,f,u,h,d=i.slice(),w=l=i.length,g=o.length,p=o.slice(0,l),_=p.length,b=r,x=b.c=[],O=0,Y=a+(b.e=n.e-r.e)+1;for(b.s=s,s=Y<0?0:Y,d.unshift(0);_++<l;)p.push(0);do{for(f=0;f<10;f++){if(l!=(_=p.length))u=l>_?1:-1;else for(h=-1,u=0;++h<l;)if(i[h]!=p[h]){u=i[h]>p[h]?1:-1;break}if(u<0){for(c=_==l?i:d;_;){if(p[--_]<c[_]){for(h=_;h&&!p[--h];)p[h]=9;--p[h],p[_]+=10}p[_]-=c[_]}for(;!p[0];)p.shift()}else break}x[O++]=u?f:++f,p[0]&&u?p[_]=o[w]||0:p=[o[w]]}while((w++<g||p[0]!==Je)&&s--);return!x[0]&&O!=1&&(x.shift(),b.e--,Y--),O>Y&&wt(b,Y,t.RM,p[0]!==Je),b},j.eq=function(e){return this.cmp(e)===0},j.gt=function(e){return this.cmp(e)>0},j.gte=function(e){return this.cmp(e)>-1},j.lt=function(e){return this.cmp(e)<0},j.lte=function(e){return this.cmp(e)<1},j.minus=j.sub=function(a){var t,n,r,o,i=this.constructor,s=new i(this),a=new i(a),l=s.s,c=a.s;if(l!=c)return a.s=-c,s.plus(a);var f=s.c.slice(),u=s.e,h=a.c,d=a.e;if(!f[0]||!h[0])return h[0]?a.s=-c:f[0]?a=new i(s):a.s=1,a;if(l=u-d){for((o=l<0)?(l=-l,r=f):(d=u,r=h),r.reverse(),c=l;c--;)r.push(0);r.reverse()}else for(n=((o=f.length<h.length)?f:h).length,l=c=0;c<n;c++)if(f[c]!=h[c]){o=f[c]<h[c];break}if(o&&(r=f,f=h,h=r,a.s=-a.s),(c=(n=h.length)-(t=f.length))>0)for(;c--;)f[t++]=0;for(c=t;n>l;){if(f[--n]<h[n]){for(t=n;t&&!f[--t];)f[t]=9;--f[t],f[n]+=10}f[n]-=h[n]}for(;f[--c]===0;)f.pop();for(;f[0]===0;)f.shift(),--d;return f[0]||(a.s=1,f=[d=0]),a.c=f,a.e=d,a},j.mod=function(o){var t,n=this.constructor,r=new n(this),o=new n(o),i=r.s,s=o.s;if(!o.c[0])throw Error(es);return r.s=o.s=1,t=o.cmp(r)==1,r.s=i,o.s=s,t?new n(r):(i=n.DP,s=n.RM,n.DP=n.RM=0,r=r.div(o),n.DP=i,n.RM=s,this.minus(r.times(o)))},j.plus=j.add=function(s){var t,n,r,o=this.constructor,i=new o(this),s=new o(s);if(i.s!=s.s)return s.s=-s.s,i.minus(s);var a=i.e,l=i.c,c=s.e,f=s.c;if(!l[0]||!f[0])return f[0]||(l[0]?s=new o(i):s.s=i.s),s;if(l=l.slice(),t=a-c){for(t>0?(c=a,r=f):(t=-t,r=l),r.reverse();t--;)r.push(0);r.reverse()}for(l.length-f.length<0&&(r=f,f=l,l=r),t=f.length,n=0;t;l[t]%=10)n=(l[--t]=l[t]+f[t]+n)/10|0;for(n&&(l.unshift(n),++c),t=l.length;l[--t]===0;)l.pop();return s.c=l,s.e=c,s},j.pow=function(e){var t=this.constructor,n=new t(this),r=new t("1"),o=new t("1"),i=e<0;if(e!==~~e||e<-Qi||e>Qi)throw Error(Nt+"exponent");for(i&&(e=-e);e&1&&(r=r.times(n)),e>>=1,!!e;)n=n.times(n);return i?o.div(r):r},j.prec=function(e,t){if(e!==~~e||e<1||e>It)throw Error(Nt+"precision");return wt(new this.constructor(this),e,t)},j.round=function(e,t){if(e===Je)e=0;else if(e!==~~e||e<-It||e>It)throw Error(cr);return wt(new this.constructor(this),e+this.e+1,t)},j.sqrt=function(){var e,t,n,r=this.constructor,o=new r(this),i=o.s,s=o.e,a=new r("0.5");if(!o.c[0])return new r(o);if(i<0)throw Error(Sn+"No square root");i=Math.sqrt(o+""),i===0||i===1/0?(t=o.c.join(""),t.length+s&1||(t+="0"),i=Math.sqrt(t),s=((s+1)/2|0)-(s<0||s&1),e=new r((i==1/0?"5e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+s)):e=new r(i+""),s=e.e+(r.DP+=4);do n=e,e=a.times(n.plus(o.div(n)));while(n.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return wt(e,(r.DP-=4)+e.e+1,r.RM)},j.times=j.mul=function(o){var t,n=this.constructor,r=new n(this),o=new n(o),i=r.c,s=o.c,a=i.length,l=s.length,c=r.e,f=o.e;if(o.s=r.s==o.s?1:-1,!i[0]||!s[0])return o.c=[o.e=0],o;for(o.e=c+f,a<l&&(t=i,i=s,s=t,f=a,a=l,l=f),t=new Array(f=a+l);f--;)t[f]=0;for(c=l;c--;){for(l=0,f=a+c;f>c;)l=t[f]+s[c]*i[f-c-1]+l,t[f--]=l%10,l=l/10|0;t[f]=l}for(l?++o.e:t.shift(),c=t.length;!t[--c];)t.pop();return o.c=t,o},j.toExponential=function(e,t){var n=this,r=n.c[0];if(e!==Je){if(e!==~~e||e<0||e>It)throw Error(cr);for(n=wt(new n.constructor(n),++e,t);n.c.length<e;)n.c.push(0)}return Jt(n,!0,!!r)},j.toFixed=function(e,t){var n=this,r=n.c[0];if(e!==Je){if(e!==~~e||e<0||e>It)throw Error(cr);for(n=wt(new n.constructor(n),e+n.e+1,t),e=e+n.e+1;n.c.length<e;)n.c.push(0)}return Jt(n,!1,!!r)},j.toJSON=j.toString=function(){var e=this,t=e.constructor;return Jt(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])},j.toNumber=function(){var e=Number(Jt(this,!0,!0));if(this.constructor.strict===!0&&!this.eq(e.toString()))throw Error(Sn+"Imprecise conversion");return e},j.toPrecision=function(e,t){var n=this,r=n.constructor,o=n.c[0];if(e!==Je){if(e!==~~e||e<1||e>It)throw Error(Nt+"precision");for(n=wt(new r(n),e,t);n.c.length<e;)n.c.push(0)}return Jt(n,e<=n.e||n.e<=r.NE||n.e>=r.PE,!!o)},j.valueOf=function(){var e=this,t=e.constructor;if(t.strict===!0)throw Error(Sn+"valueOf disallowed");return Jt(e,e.e<=t.NE||e.e>=t.PE,!0)};var je=ts();const Pt=Symbol("numeric");function ns(e){return typeof e=="number"||typeof e=="bigint"||e?.[Pt]}function vu(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function ro(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Pt]().multiply(t)}function ur(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Pt]().toFixed(t)}function fr(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Pt]().toPrecision(t)}function dr(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Pt]().toExponential(t)}function hr(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Pt]().toHex()}je.prototype.GetHashCode=function(){return Xt([this.s,this.e].concat(this.c))},je.prototype.Equals=function(e){return!this.cmp(e)},je.prototype.CompareTo=function(e){return this.cmp(e)},je.prototype[Pt]=function(){const e=this;return{multiply:t=>e.mul(t),toPrecision:t=>e.toPrecision(t),toExponential:t=>e.toExponential(t),toFixed:t=>e.toFixed(t),toHex:()=>(Number(e)>>>0).toString(16)}},new je(0),new je(1),new je(-1),new je("79228162514264337593543950335"),new je("-79228162514264337593543950335");class xu{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class N{constructor(t,n,r,o,i,s,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=i,this.cases=s,this.enumCases=a}toString(){return W(this)}GetHashCode(){return rs(this)}Equals(t){return oo(this,t)}}function Oe(e){return e.generics!=null?e.generics:[]}function rs(e){const t=ir(e.fullname),n=Oe(e).map(rs);return Xt([t,...n])}function oo(e,t){return e.fullname===""?t.fullname===""&&eo($n(e),$n(t),([n,r],[o,i])=>n===o&&oo(r,i)):e.fullname===t.fullname&&eo(Oe(e),Oe(t),oo)}function os(e,t,n,r){return new N(e,t,n,void 0,r)}function Cu(...e){return new N("",void 0,void 0,void 0,()=>e)}function ku(e,t,n,r){const o=new N(e,t,n,void 0,void 0,()=>{const i=n.prototype.cases();return r().map((s,a)=>new xu(o,a,i[a],s))});return o}function Su(e){return new N("[]",[e])}const Eu=new N("System.Object");new N("Microsoft.FSharp.Core.Unit"),new N("System.Char");const is=new N("System.String"),ss=new N("System.Boolean");new N("System.SByte"),new N("System.Byte"),new N("System.Int16"),new N("System.UInt16"),new N("System.Int32"),new N("System.UInt32"),new N("System.Int64"),new N("System.UInt64"),new N("System.Int128"),new N("System.UInt128"),new N("System.IntPtr"),new N("System.UIntPtr"),new N("System.Half"),new N("System.Single"),new N("System.Double"),new N("System.Decimal"),new N("System.Numerics.BigInteger");function Qt(e){if(Array.isArray(e))return e[0];if(e instanceof N){const t=En(e);if(t!=null)return Qt(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function W(e){const t=En(e);return t!=null?W(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>W(n)).join(",")+"]"}function as(e){return En(e)!=null}function En(e){return e.fullname==="[]"&&e.generics?.length===1?e.generics[0]:void 0}function ls(e){return e.generics!=null&&e.generics.length>0}function io(e){return e.enumCases!=null&&e.enumCases.length>0}function cs(e){return e.generics==null?e:new N(e.fullname,e.generics.map(()=>Eu))}function us(e){return e.generics?.[0]}function en(e){if(io(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function $u(e,t){if(e.enumCases!=null)if(typeof t=="string"){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}else{for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}else throw new Error(`${e.fullname} is not an enum type`)}function tn(e,t){const n=parseInt(t,10);return $u(e,isNaN(n)?t:n)[1]}function fs(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function $n(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function ds(e){if(so(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function hs(e){return e instanceof N?e.cases!=null:e instanceof L}function ps(e){return e instanceof N?e.fields!=null:e instanceof Me}function so(e){return e.fullname.startsWith("System.Tuple")}function Tu(e,t){const r=fs(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function ws(e){return e.fields==null?[]:e.fields}function Mu(e,t){return e[t[0]]}function yg(e){return e}function Ou(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);const r=e.declaringType.construct;return r==null?{}:(e.declaringType.cases?e.declaringType.cases().length==1:!1)?new r(...t):new r(e.tag,t)}function Au(e,t){const n=$n(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[o,i],s)=>(r[o]=t[s],r),{})}function Iu(e,t){return e}class ms extends L{constructor(){super(),this.tag=0,this.fields=[]}cases(){return["Configuration"]}}function gs(e){return"Configuration"}BigInt.prototype.toJSON=function(){return`${this.toString()}`};const Nu=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Pu=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Du=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Fu=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ae(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function _s(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Ru(e,t){let n=t;const r=e[t];let o="",i=!1;for(;t<e.length;){t++;const s=e[t];if(s===r){i=!0;break}else if(s==="\\")if(t<e.length)t++,o+=e[t];else throw new Error("Invalid string format");else o+=s}if(!i)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[o,t-n+1]}function ao(e,t,n){let r=0,o=0,i="";const s=n?Tn(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(o=Ae(t,r,"d"),r+=o,o){case 1:i+=vs(s);break;case 2:i+=R(vs(s),2);break;case 3:i+=Nu[ks(s)];break;case 4:i+=Pu[ks(s)];break}break;case"f":if(o=Ae(t,r,"f"),r+=o,o<=3){const p=10**(3-o);i+=R(Math.floor(gr(s)/p),o)}else o<=7&&(i+=(""+gr(s)).padEnd(o,"0"));break;case"F":if(o=Ae(t,r,"F"),r+=o,o<=3){const p=10**(3-o),_=Math.floor(gr(s)/p);_!=0&&(i+=R(_,o))}else if(o<=7){const p=gr(s);p!=0&&(i+=R(p,3))}break;case"g":o=Ae(t,r,"g"),r+=o,o<=2&&(i+="A.D.");break;case"h":switch(o=Ae(t,r,"h"),r+=o,o){case 1:i+=mr(s)%12;break;case 2:i+=R(mr(s)%12,2);break}break;case"H":switch(o=Ae(t,r,"H"),r+=o,o){case 1:i+=mr(s);break;case 2:i+=R(mr(s),2);break}break;case"K":switch(o=Ae(t,r,"K"),r+=o,o){case 1:switch(ys(s)){case 1:i+="Z";break;case 2:i+=nn(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=Ae(t,r,"m"),r+=o,o){case 1:i+=xs(s);break;case 2:i+=R(xs(s),2);break}break;case"M":switch(o=Ae(t,r,"M"),r+=o,o){case 1:i+=_r(s);break;case 2:i+=R(_r(s),2);break;case 3:i+=Du[_r(s)-1];break;case 4:i+=Fu[_r(s)-1];break}break;case"s":switch(o=Ae(t,r,"s"),r+=o,o){case 1:i+=Cs(s);break;case 2:i+=R(Cs(s),2);break}break;case"t":switch(o=Ae(t,r,"t"),r+=o,o){case 1:i+=s.getHours()<12?"A":"P";break;case 2:i+=s.getHours()<12?"AM":"PM";break}break;case"y":switch(o=Ae(t,r,"y"),r+=o,o){case 1:i+=s.getFullYear()%100;break;case 2:i+=R(s.getFullYear()%100,2);break;case 3:i+=R(s.getFullYear(),3);break;case 4:i+=R(s.getFullYear(),4);break;case 5:i+=R(s.getFullYear(),5);break}break;case"z":o=Ae(t,r,"z"),r+=o;let l="";switch(ys(s)){case 1:l="+00:00";break;case 2:l=nn(s.getTimezoneOffset()*-6e4);break;case 0:l=nn(Wu(s).getTimezoneOffset()*-6e4);break}const c=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),u=parseInt(l.substring(4,6),10);switch(o){case 1:i+=`${c}${f}`;break;case 2:i+=`${c}${R(f,2)}`;break;default:i+=`${c}${R(f,2)}:${R(u,2)}`;break}break;case":":i+=":",r++;break;case"/":i+="/",r++;break;case"'":case'"':const[h,d]=Ru(t,r);i+=h,r+=d;break;case"%":const w=_s(t,r);if(w>=0&&w!=="%".charCodeAt(0))r+=2,i+=ao(s,String.fromCharCode(w),n);else throw new Error("Invalid format string");break;case"\\":const g=_s(t,r);if(g>=0)r+=2,i+=String.fromCharCode(g);else throw new Error("Invalid format string");break;default:r++,i+=a;break}}return i}function ys(e){return e.kind||0}function nn(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+R(n,2)+":"+R(r,2)}function pr(e,t){const n=e.toISOString();return t==="first"?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function Lu(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return R(e.getFullYear(),4)+"-"+R(e.getMonth()+1,2)+"-"+R(e.getDate(),2)+"T"+R(e.getHours(),2)+":"+R(e.getMinutes(),2)+":"+R(e.getSeconds(),2)+"."+R(e.getMilliseconds(),3)+(n?nn(e.getTimezoneOffset()*-6e4):"")}}function ju(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+nn(t)}function Hu(e,t){const n=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+nn(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return pr(n,"first");case"T":case"t":return pr(n,"second");case"O":case"o":return ju(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return ao(n,t,!0)}function Bu(e,t){const n=e.kind===1;if(typeof t!="string")return n?e.toUTCString():e.toLocaleString();if(t.length===1)switch(t){case"D":case"d":return n?pr(e,"first"):e.toLocaleDateString();case"T":case"t":return n?pr(e,"second"):e.toLocaleTimeString();case"O":case"o":return Lu(e,n);default:throw new Error("Unrecognized Date print format")}else return ao(e,t,n)}function wr(e,t,n){return e.offset!=null?Hu(e,t):Bu(e,t)}function Tn(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Vu(){return Tn(-621355968e5,1)}function bs(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(o!=null){let i,s=0;if(o[2]!=null){const a=o[2].split(":"),l=parseInt(a[0],10);s=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&l<12&&(s+=720)}if(o[4]!=null){if(o[1]!=null)i=new Date(o[1]+" UTC");else{const a=new Date;i=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(o[4]==="Z")r="Z";else{let a=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(a*=-1),r=a,s-=a*60}}else if(o[1]!=null)i=new Date(o[1]);else{const a=new Date;i=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(i.getTime()+s*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-i.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function Uu(e,t=!1){const[n,r]=bs(e),o=r!=null?t&&r==="Z"?1:2:0;return Tn(n.getTime(),o)}function zu(e,t){try{return t.contents=Uu(e),!0}catch{return!1}}function Gu(e){return e.kind===1?e:Tn(e.getTime(),1)}function Wu(e){return e.kind===2?e:Tn(e.getTime(),2)}function vs(e){return e.kind===1?e.getUTCDate():e.getDate()}function mr(e){return e.kind===1?e.getUTCHours():e.getHours()}function gr(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function xs(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function _r(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function Cs(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function ks(e){return e.kind===1?e.getUTCDay():e.getDay()}function qu(e,t=0){if((t&-284)!==0)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=t&1?"i":"",n+=t&2?"m":"",n+=t&16?"s":"",new RegExp(e,n)}function Ss(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Es(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let o,i=-1;for(;(o=e.exec(t))!=null;)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}function Yu(e,t,n,r,o=0){function i(){let s=arguments[0];if(r){r--;const a=[],l=arguments.length,c=typeof arguments[l-1]!="string";let f=c?l-3:l-2;for(let u=0;u<f;u++)a.push(arguments[u]);a.index=arguments[f++],a.input=arguments[f++],c&&(a.groups=arguments[f]),s=n(a)}return s}if(typeof e=="string"){const s=e;e=qu(t,r??0),t=s,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,o)+t.substring(o).replace(e,i);if(n=n.replace(/\$0/g,s=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let s;const a=t.substring(o),l=Es(e,a),c=Es.length>r?(s=l[r-1],a.substring(0,s.index+s[0].length)):a;return t.substring(0,o)+c.replace(e,n)+t.substring(o+c.length)}else return t.replace(e,n)}const Mn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Zu=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function $s(e,t){return vu(e,t)<0}function mt(e){return{input:e,cont:Xu(e)}}function Ts(e,t){return typeof t=="string"?e(t):t.cont(e)}function rn(e){return Ts(t=>t,e)}function Ms(e){return Ts(t=>{throw new Error(t)},e)}function Ku(e,t,n,r,o){let i="";if(t=t||"",o=o||"",ns(e))switch(o.toLowerCase()!=="x"&&($s(e,0)?(e=ro(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=r==null?null:parseInt(r,10),o){case"f":case"F":r=r??6,e=ur(e,r);break;case"g":case"G":e=r!=null?fr(e,r):fr(e);break;case"e":case"E":e=r!=null?dr(e,r):dr(e);break;case"x":e=hr(e);break;case"X":e=hr(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=wr(e):e=ze(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=i+e;else{const s=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!s?" ":"0";l==="0"?(e=On(e,n-i.length,l,a),e=i+e):e=On(i+e,n,l,a)}return e}function Os(e,t,n,r="",o=-1){return(...i)=>{let s=r;const a=t.slice(),l=n.slice();for(const c of i){const[,,f,u,h,d]=l[0];let w=u;if(o>=0)w=o,o=-1;else if(w==="*"){if(c<0)throw new Error("Non-negative number required");o=c;continue}s+=a[0],s+=Ku(c,f,w,h,d),a.splice(0,1),l.splice(0,1)}return l.length===0?(s+=a[0],e(s)):Os(e,a,l,s,o)}}function Xu(e){return t=>{Mn.lastIndex=0;const n=[],r=[];let o=0,i=Mn.exec(e);for(;i;){const s=i.index+(i[1]||"").length;n.push(e.substring(o,s).replace(/%%/g,"%")),r.push(i),o=Mn.lastIndex,Mn.lastIndex-=1,i=Mn.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),Os(t,n,r))}}function Ju(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(Zu,(r,o,i,s,a,l)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let c=t[o];if(ns(c))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,c=ur(c,a);break;case"g":case"G":c=a!=null?fr(c,a):fr(c);break;case"e":case"E":c=a!=null?dr(c,a):dr(c);break;case"p":case"P":a=a??2,c=ur(ro(c,100),a)+" %";break;case"d":case"D":c=a!=null?lo(String(c),a,"0"):String(c);break;case"x":case"X":c=a!=null?lo(hr(c),a,"0"):hr(c),s==="X"&&(c=c.toUpperCase());break;default:if(l){let f="";c=l.replace(/([0#,]+)(\.[0#]+)?/,(u,h,d)=>{$s(c,0)&&(c=ro(c,-1),f="-"),d=d==null?"":d.substring(1),c=ur(c,Math.max(d.length,0));let[w,g]=c.split(".");g||(g="");const p=h.replace(/,/g,"").replace(/^#+/,"").length;w=lo(w,p,"0");const _=d.replace(/#+$/,"").length;if(_>g.length?g=ef(g,_,"0"):_<g.length&&(g=g.substring(0,_)+g.substring(_).replace(/0+$/,"")),h.indexOf(",")>0){const b=w.length%3,x=Math.floor(w.length/3);let O=b>0?w.substr(0,b)+(x>0?",":""):"";for(let Y=0;Y<x;Y++)O+=w.substr(b+Y*3,3)+(Y<x-1?",":"");w=O}return g.length>0?w+"."+g:w}),c=f+c}}else c instanceof Date?c=wr(c,l||s):c=ze(c);return i=parseInt((i||" ").substring(1),10),isNaN(i)||(c=On(String(c),Math.abs(i)," ",i<0)),c})}function Qu(e){return typeof e!="string"||e.length===0}function Dt(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function On(e,t,n,r){n=n||" ",t=t-e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function lo(e,t,n){return On(e,t,n)}function ef(e,t,n){return On(e,t,n,!0)}function As(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const o=(r&1)===1,i=(r&2)===2;t=t||[],t=t.filter(f=>f).map(Ss),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let l=!0,c=0;do{const f=a.exec(e);if(f===null){const u=i?e.substring(c).trim():e.substring(c);(!o||u.length>0)&&s.push(u),l=!1}else{const u=i?e.substring(c,f.index).trim():e.substring(c,f.index);(!o||u.length>0)&&(n!=null&&s.length+1===n?(s.push(i?e.substring(c).trim():e.substring(c)),l=!1):s.push(u)),c=a.lastIndex}}while(l);return s}function tf(e,...t){if(t.length===0)return e.trim();const n="["+Ss(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class Ft{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return it(this.value)}Equals(t){return t==null?!1:ye(this.value,t instanceof Ft?t.value:t)}CompareTo(t){return t==null?1:Le(this.value,t instanceof Ft?t.value:t)}}function y(e){if(e==null)throw new Error("Option has no value");return e instanceof Ft?e.value:e}function nf(e){return e instanceof Ft?e.value:e}function pe(e){return e==null||e instanceof Ft?new Ft(e):e}function co(e,t){return e!=null?y(e):t}function rf(e,t){return e!=null?y(e):t()}function of(e,t){return t!=null?pe(e(y(t))):void 0}const Is="Collection was empty.";function Ns(e,t){return typeof e=="function"?new e(t):new Array(t)}function Ps(e,t){return e>t?e:t}function yr(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function Rt(e,t,n){const r=t.length|0,o=Ns(n,r);for(let i=0;i<=r-1;i++)Qe(o,i,e(q(i,t)));return o}function sf(e,t){const n=Ns(t,1);return Qe(n,0,e),n}function af(e){return e.slice().reverse()}function lf(e,t){return t.find(e)}function cf(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const i=e(q(o,t));if(i!=null){const s=y(i);r.push(s)}}return ye(n,Te())?r:Rt(o=>o,r,n)}function br(e,t,n){const r=e;return n.reduce(r,t)}function uf(e,t,n){if(t==null)return n==null;if(n==null)return!1;{let r=0,o=!0;const i=t.length|0,s=n.length|0;if(i>s)return!1;if(i<s)return!1;for(;r<i&&o;)o=e(q(r,t),q(r,n)),r=r+1|0;return o}}function q(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function Qe(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function Ds(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class be extends Me{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+Dt("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,i)=>{e:for(;;){const s=o,a=i,l=s.tail,c=a.tail;if(l!=null)if(c!=null){const f=y(l),u=y(c);if(ye(s.head,a.head)){o=f,i=u;continue e}else return!1}else return!1;else return c==null}})(n,t)}GetHashCode(){return((r,o,i)=>{e:for(;;){const s=r,a=o,l=i,c=l.tail;if(c!=null){const f=y(c);if(s>18)return a|0;r=s+1,o=(a<<1)+it(l.head)+631*s,i=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,i)=>{e:for(;;){const s=o,a=i,l=s.tail,c=a.tail;if(l!=null)if(c!=null){const f=y(l),u=y(c),h=Le(s.head,a.head)|0;if(h===0){o=f,i=u;continue e}else return h|0}else return 1;else return c!=null?-1:0}})(this,t)|0}GetEnumerator(){return df(this)}[Symbol.iterator](){return or(oe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return oe(this)}}class ff{constructor(t){this.xs=t,this.it=this.xs,this.current=Te()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=y(n);return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=Te()}Dispose(){}}function df(e){return new ff(e)}function ce(){return new be(Te(),void 0)}function An(e,t){return new be(e,t)}function vr(e){return e.tail==null}function hf(e){return((n,r)=>{e:for(;;){const o=n,s=r.tail;if(s!=null){n=o+1,r=y(s);continue e}else return o|0}})(0,e)|0}function uo(e){if(e.tail!=null)return e.head;throw new Error(Is+"\\nParameter name: list")}function Ge(e){const t=e.tail;if(t!=null)return y(t);throw new Error(Is+"\\nParameter name: list")}function fe(){return ce()}function He(e,t){return An(e,t)}function ae(e){return An(e,ce())}function P(e){return vr(e)}function k(e){return uo(e)}function I(e){return Ge(e)}function In(e){const t=hf(e)|0,n=yr(new Array(t),0,t,null);return((o,i)=>{e:for(;;){const s=o,a=i;if(!vr(a)){Qe(n,s,uo(a)),o=s+1,i=Ge(a);continue e}break}})(0,e),n}function et(e,t,n){let r=t,o=n;for(;!vr(o);)r=e(r,k(o)),o=Ge(o);return r}function fo(e){return et((t,n)=>An(n,t),ce(),e)}function pf(e,t,n){return Ds(e,In(t),n)}function Nn(e,t){et((n,r)=>{e(r)},void 0,t)}function X(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=An(q(r,e),n);return n}function M(e){return X(e,ce())}function wf(e){let t,n;if(Ve(e))return M(e);if(e instanceof be)return e;{const r=ce();let o=r;const i=oe(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new be(l,void 0),t.tail=n,n)}}finally{G(i)}const s=o,a=ce();return s.tail=a,Ge(r)}}function mf(e){const t=ce();let n=t;const r=s=>{n=et((a,l)=>{const c=new be(l,void 0);return a.tail=c,c},n,s)};if(Ve(e))e.forEach(r);else if(e instanceof be)Nn(r,e);else{const s=oe(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();)r(s["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{G(s)}}const o=n,i=ce();return o.tail=i,Ge(t)}function ho(e,t){return et((n,r)=>An(r,n),t,fo(e))}function gf(e,t){const n=ce(),r=et((i,s)=>{const a=new be(e(s),void 0);return i.tail=a,a},n,t),o=ce();return r.tail=o,Ge(n)}function _f(e,t){return((r,o)=>{e:for(;;){const i=r,s=o;if(vr(s))return;if(e(uo(s)))return i;r=i+1,o=Ge(s);continue e}})(0,t)}function yf(e,t){const n=ce(),r=et((i,s)=>{if(e(s)){const a=new be(s,void 0);return i.tail=a,a}else return i},n,t),o=ce();return r.tail=o,Ge(n)}function bf(e,t){const n=ce(),r=ce(),o=n,i=et((l,c)=>{let f,u;const h=l[0],d=l[1];return e(c)?[(f=new be(c,void 0),h.tail=f,f),d]:[h,(u=new be(c,void 0),d.tail=u,u)]},[o,r],t),s=ce();i[0].tail=s;const a=ce();return i[1].tail=a,[Ge(o),Ge(r)]}function vf(e,t){const n=ce(),r=et((i,s)=>{const a=e(s);if(a==null)return i;{const l=new be(y(a),void 0);return i.tail=l,l}},n,t),o=ce();return r.tail=o,Ge(n)}function Fs(e,t,n){return _f(r=>n.Equals(e,r),t)!=null}function xf(e){return new m(0,[e])}function Rs(e){return new m(1,[e])}class m extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function st(e,t){return t.tag===0?xf(e(t.fields[0])):Rs(t.fields[0])}function Cf(e,t){return t.tag===0?e(t.fields[0]):Rs(t.fields[0])}const Lt={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function po(e,t){return e.replace(/[a-z]?[A-Z]/g,n=>n.length===1?n.toLowerCase():n.charAt(0)+t+n.charAt(1).toLowerCase())}function kf(e,t){switch(t){case Lt.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Lt.SnakeCase:return po(e,"_");case Lt.SnakeCaseAllCaps:return po(e,"_").toUpperCase();case Lt.KebabCase:return po(e,"-");case Lt.None:default:return e}}function gt(e,t=Lt.None){const n={},r=t;function o(s){throw new Error("Cannot infer key and value of "+String(s))}function i(s,a,l){s=kf(s,a),n[s]=l}for(let s of e){let a=Lt.None;if(s==null&&o(s),s instanceof L){const l=s.cases()[s.tag];s=s.fields.length===0?l:[l].concat(s.fields),a=r}if(Array.isArray(s))switch(s.length){case 0:o(s);break;case 1:i(s[0],a,!0);break;case 2:const l=s[1];i(s[0],a,l);break;default:i(s[0],a,s.slice(1))}else typeof s=="string"?i(s,a,!0):o(s)}return n}class C extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class jt extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Ls(e){return e.slice(void 0,0+1).toLowerCase()+e.slice(1,e.length)}function js(e,t){switch(e.tag){case 2:return Yu(Ls(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Ls(t)}}const Sf=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Hs=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Ef=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function $f(e){function t(r){return r.replace(Hs,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Sf.test(n))return tf(n,"{","}","(",")");if(Hs.test(n))return t(n);if(Ef.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function Tf(e,t){try{return t.contents=$f(e),!0}catch{return!1}}var wo;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(wo||(wo={}));function Mf(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function Bs(e,t){switch(t){case 8:return e?[0,255]:[-128,127];case 16:return e?[0,65535]:[-32768,32767];case 32:return e?[0,4294967295]:[-2147483648,2147483647];default:throw new Error("Invalid bit size.")}}function Of(e){switch(e){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}function Af(e,t){if(t&wo.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}function If(e,t,n){const o=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(o!=null){const[,,i,s]=o;if(n=n||Af(i,t),!Of(n).test(s))return Mf(o,n)}return null}function Nf(e,t,n,r,o){const i=If(e,t,o);if(i!=null){let s=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(s)){const[a,l]=Bs(!0,r);!n&&i.radix!==10&&s>=a&&s<=l&&(s=s<<32-r>>32-r);const[c,f]=Bs(n,r);if(s>=c&&s<=f)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function on(e,t,n,r,o){try{return o.contents=Nf(e,t,n,r),!0}catch{return!1}}function Vs(e,t){Pf(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Pf(e){if(e!=null&&e!==0){if(e%6e4!==0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}function Df(){return Vs(-621355968e5,0)}function Ff(e){const[t,n]=bs(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return Vs(t.getTime(),r)}function Rf(e,t){try{return t.contents=Ff(e),!0}catch{return!1}}function Pn(e){return e<0?Math.ceil(e):Math.floor(e)}function Us(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Lf(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+o}function Lf(e){return Number(BigInt(e)/10000n)}function jf(e){return Pn(e/864e5)}function Hf(e){return Pn(e%864e5/36e5)}function Bf(e){return Pn(e%36e5/6e4)}function Vf(e){return Pn(e%6e4/1e3)}function Uf(e){return Pn(e%1e3)}function zf(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(jf(e)),o=Math.abs(Hf(e)),i=Math.abs(Bf(e)),s=Math.abs(Vf(e)),a=Math.abs(Uf(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?o:R(o,2)}:${R(i,2)}:${R(s,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+R(a,3):"."+Wc(a,3,7)}`}function Gf(e){const t=e.search("\\."),n=e.search("\\:");if(t===-1&&n===-1){const r=parseInt(e,0);if(isNaN(r))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return Us(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let o=0,i=0,s=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],c=+r[5];if(r[3]!=null&&(o=+r[3]),r[7]!=null&&(s=+r[7]),r[8]!=null)switch(r[8].length){case 1:i=+r[8]*100;break;case 2:i=+r[8]*10;break;case 3:i=+r[8];break;case 4:i=+r[8]/10;break;case 5:i=+r[8]/100;break;case 6:i=+r[8]/1e3;break;case 7:i=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*Us(o,l,c,s,i)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Wf(e,t){try{return t.contents=Gf(e),!0}catch{return!1}}function qf(e){throw new Error(e)}const Yf="Enumeration already finished.",Zf="Enumeration has not started. Call MoveNext.",zs="The input sequence has an insufficient number of elements.",Kf="Reset is not supported on this enumerator.";function Xf(){throw new Error(Kf)}function mo(){throw new Error(Zf)}function go(){throw new Error(Yf)}class Jf{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=oe(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+ze(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{G(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return or(oe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Qf(e){return new Jf(e)}class ed{constructor(t,n,r){this.current=t,this.next=n,this.dispose=r}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){Xf()}Dispose(){this.dispose()}}function xr(e,t,n){return new ed(e,t,n)}function td(e){let t,n,r=!1,o=!1,i;const s=()=>{if(o=!0,n!=null){const a=y(n);try{G(a)}finally{n=void 0}}if(t!=null){const a=y(t);try{G(a)}finally{t=void 0}}};return xr(()=>(r?o&&go():mo(),i!=null?y(i):go()),()=>{let a;if(r||(r=!0),o)return!1;{let l;for(;l==null;){const c=t,f=n;if(c!=null)if(f!=null){const u=y(f);if(u["System.Collections.IEnumerator.MoveNext"]())i=pe(u["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{G(u)}finally{n=void 0}}else{const u=y(c);u["System.Collections.IEnumerator.MoveNext"]()?n=(a=u["System.Collections.Generic.IEnumerator`1.get_Current"](),oe(a)):(s(),l=!1)}else t=oe(e)}return y(l)}},()=>{o||s()})}function nd(e,t){return xr(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{G(t)}finally{e()}})}function Gs(e,t,n){let r=!1,o,i=pe(e());const s=()=>{if(i!=null){const l=y(i);try{n(l)}finally{i=void 0}}},a=()=>{try{s()}finally{o=void 0}};return xr(()=>(r||mo(),o!=null?y(o):go()),()=>{if(r||(r=!0),i!=null){const l=y(i);let c;try{c=t(l)}catch(f){throw a(),f}return c!=null?(o=c,!0):(a(),!1)}else return!1},s)}function rd(e,t){let n,r=t;return xr(()=>{if(n!=null){const o=y(n)[0];return y(n)[1],o}else return mo()},()=>(n=e(r),n!=null?(y(n)[0],r=y(n)[1],!0):!1),()=>{})}function od(e,t){t==null&&qf(e)}function sn(e){return Qf(e)}function _t(e){return od("source",e),oe(e)}function ve(e){return sn(()=>oe(e()))}function Ws(e){return sn(()=>td(e))}function id(e,t){return sn(()=>rd(e,t))}function sd(){return ve(()=>new Array(0))}function yt(e){return ve(()=>sf(e))}function bg(e){return e}function ad(e){return e instanceof be?In(e):Array.from(e)}function Cr(e){return Ve(e)?M(e):e instanceof be?e:wf(e)}function ld(e,t,n){return sn(()=>Gs(e,t,n))}function qs(e,t,n){return sn(()=>{let r=-1;return Gs(e,o=>(r=r+1|0,t(r,o)),n)})}function an(e,t){return Ws([e,t])}function cd(e,t,n){const r=_t(t);try{const o=_t(n);try{let i=0,s=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]();for(;i===0&&s&&a;)i=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,i===0&&(s=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]());return(i!==0?i:s?1:a?-1:0)|0}finally{G(o)}}finally{G(r)}}function ln(e,t,n){const r=_t(t);try{let o=!1;for(;!o&&r["System.Collections.IEnumerator.MoveNext"]();)o=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{G(r)}}function kr(e,t,n){const r=_t(n);try{let o=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)o=e(o,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{G(r)}}function Ys(e,t){kr((n,r)=>{e(r)},void 0,t)}function Ie(e,t){return ld(()=>_t(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?pe(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{G(n)})}function ud(e,t){return qs(()=>_t(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?pe(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{G(n)})}function fd(e){return ve(()=>af(ad(e)))}function dd(e,t){return sn(()=>{const n=_t(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(zs+"\\nParameter name: source");return nd(()=>{},n)}catch(r){throw G(n),r}})}function hd(e,t){return qs(()=>_t(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return pe(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(zs+"\\nParameter name: source")}else return},n=>{G(n)})}function pd(e,t){return ve(()=>Ws(Ie(e,t)))}class Zs{constructor(t,n){this.k=t,this.v=n}}function Dn(e,t){return new Zs(e,t)}function le(e){return e.k}function xe(e){return e.v}class ie extends Zs{constructor(t,n,r,o,i){super(t,n),this.left=r,this.right=o,this.h=i|0}}function Fn(e,t,n,r,o){return new ie(e,t,n,r,o)}function we(e){return e.left}function me(e){return e.right}function bt(e){return e.h}function vg(){}function Ks(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof ie){const i=o;e=Ks(n+1,we(i)),t=me(i);continue e}else return n+1|0}else return n|0}}function wd(e){return Ks(0,e)}function We(e,t,n,r){let o,i,s;const a=e;if(a!=null){const u=y(a);s=u instanceof ie?(o=u,bt(o)):1}else s=0;let l;const c=r;if(c!=null){const u=y(c);l=u instanceof ie?(i=u,bt(i)):1}else l=0;const f=(s<l?l:s)|0;return f===0?Dn(t,n):Fn(t,n,e,r,f+1)}function Xs(e,t,n,r){let o,i,s,a,l,c,f,u,h;const d=e;if(d!=null){const p=y(d);h=p instanceof ie?(o=p,bt(o)):1}else h=0;let w;const g=r;if(g!=null){const p=y(g);w=p instanceof ie?(i=p,bt(i)):1}else w=0;if(w>h+2){const p=y(r);if(p instanceof ie){const _=p;if(s=we(_),(s!=null?(a=y(s),a instanceof ie?(l=a,bt(l)):1):0)>h+1){const b=y(we(_));if(b instanceof ie){const x=b;return We(We(e,t,n,we(x)),le(x),xe(x),We(me(x),le(_),xe(_),me(_)))}else throw new Error("internal error: Map.rebalance")}else return We(We(e,t,n,we(_)),le(_),xe(_),me(_))}else throw new Error("internal error: Map.rebalance")}else if(h>w+2){const p=y(e);if(p instanceof ie){const _=p;if(c=me(_),(c!=null?(f=y(c),f instanceof ie?(u=f,bt(u)):1):0)>w+1){const b=y(me(_));if(b instanceof ie){const x=b;return We(We(we(_),le(_),xe(_),we(x)),le(x),xe(x),We(me(x),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return We(we(_),le(_),xe(_),We(me(_),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return We(e,t,n,r)}function cn(e,t,n,r){if(r!=null){const o=y(r),i=e.Compare(t,le(o))|0;if(o instanceof ie){const s=o;return i<0?Xs(cn(e,t,n,we(s)),le(s),xe(s),me(s)):i===0?Fn(t,n,we(s),me(s),bt(s)):Xs(we(s),le(s),xe(s),cn(e,t,n,me(s)))}else return i<0?Fn(t,n,void 0,r,2):i===0?Dn(t,n):Fn(t,n,r,void 0,2)}else return Dn(t,n)}function Js(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=y(i),a=r.Compare(o,le(s))|0;if(a===0)return pe(xe(s));if(s instanceof ie){const l=s;e=r,t=o,n=a<0?we(l):me(l);continue e}else return}else return}}function md(e,t,n){const r=Js(e,t,n);if(r==null)throw new Error;return y(r)}function gd(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=y(i),a=r.Compare(o,le(s))|0;if(s instanceof ie){const l=s;if(a<0){e=r,t=o,n=we(l);continue e}else{if(a===0)return!0;e=r,t=o,n=me(l);continue e}}else return a===0}else return!1}}function Qs(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof ie){const i=o;Qs(n,we(i)),n(le(i),xe(i)),e=n,t=me(i);continue e}else n(le(o),xe(o))}break}}function _d(e,t){Qs(e,t)}function _o(e,t){if(t!=null){const n=y(t);if(n instanceof ie){const r=n,o=_o(e,we(r)),i=e(le(r),xe(r)),s=_o(e,me(r));return Fn(le(r),i,o,s,bt(r))}else return Dn(le(n),e(le(n),xe(n)))}else return void 0}function yd(e,t){return _o(e,t)}function bd(e,t,n){let r=n;_d((o,i)=>{Qe(t,r,[o,i]),r=r+1|0},e)}function vd(e,t){return et((n,r)=>cn(e,r[0],r[1],n),void 0,t)}function xd(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=cn(r,s[0],s[1],o),n=i;continue e}else return o}}function Cd(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=q(r,t);n=cn(e,o[0],o[1],n)}return n}function ea(e,t){if(Ve(t))return Cd(e,t);if(t instanceof be)return vd(e,t);{const n=oe(t);try{return xd(e,void 0,n)}finally{G(n)}}}class kd extends Me{constructor(t,n){super(),this.stack=t,this.started=n}}function ta(e){e:for(;;){const t=e;if(P(t))return fe();{const n=I(t),r=k(t);if(r!=null){const o=y(r);if(o instanceof ie){const i=o;e=X([we(i),Dn(le(i),xe(i)),me(i)],n);continue e}else return t}else{e=n;continue e}}}}function na(e){return new kd(ta(ae(e)),!1)}function Sd(){throw new Error("enumeration not started")}function Ed(){throw new Error("enumeration already finished")}function ra(e){if(e.started){const t=e.stack;if(P(t))return Ed();if(k(t)!=null){const n=y(k(t));if(n instanceof ie)throw new Error("Please report error: Map iterator, unexpected stack for current");return[le(n),xe(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Sd()}function $d(e){if(e.started){const t=e.stack;if(P(t))return!1;if(k(t)!=null){if(y(k(t))instanceof ie)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=ta(I(t)),!P(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!P(e.stack)}function oa(e){let t=na(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return ra(t)},"System.Collections.IEnumerator.get_Current"(){return ra(t)},"System.Collections.IEnumerator.MoveNext"(){return $d(t)},"System.Collections.IEnumerator.Reset"(){t=na(e)},Dispose(){}}}class Sr{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Id(this)|0}Equals(t){const n=this;if(t instanceof Sr){const r=t,o=oe(n);try{const i=oe(r);try{const s=()=>{const a=o["System.Collections.IEnumerator.MoveNext"]();if(a===i["System.Collections.IEnumerator.MoveNext"]())if(a){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"](),c=i["System.Collections.Generic.IEnumerator`1.get_Current"]();return ye(l[0],c[0])&&ye(l[1],c[1])?s():!1}else return!0;else return!1};return s()}finally{G(i)}}finally{G(o)}}else return!1}toString(){return"map ["+Dt("; ",Ie(n=>Ju("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return oa(this.tree)}[Symbol.iterator](){return or(oe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return oa(this.tree)}CompareTo(t){const n=this;if(t instanceof Sr)return cd((o,i)=>{const s=n.comparer.Compare(o[0],i[0])|0;return(s!==0?s:Le(o[1],i[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return sa(n,t[0])&&ye(ia(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){bd(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return yo(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return yo(this)|0}get size(){return yo(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Ie(n=>[n[0],n[1]],this)}get(t){return ia(this,t)}has(t){return sa(this,t)}keys(){return Ie(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Ie(n=>n[1],this)}forEach(t,n){const r=this;Ys(o=>{t(o[1],o[0],r)},r)}}function Rn(e,t){return new Sr(e,t)}function Td(e){return Rn(e,void 0)}function Md(e,t,n){return Rn(e.comparer,cn(e.comparer,t,n,e.tree))}function ia(e,t){return md(e.comparer,t,e.tree)}function Od(e,t){return Rn(e.comparer,yd(t,e.tree))}function yo(e){return wd(e.tree)}function sa(e,t){return gd(e.comparer,t,e.tree)}function Ad(e,t){return Js(e.comparer,t,e.tree)}function Id(e){const t=(o,i)=>(o<<1)+i+631;let n=0;const r=oe(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,it(o[0]))|0,n=t(n,it(o[1]))|0}}finally{G(r)}return n|0}function aa(e,t,n){return Md(n,e,t)}function la(e,t){return Ad(t,e)}function ca(e,t){return Od(t,e)}function Nd(e,t){return Rn(t,ea(t,e))}function Pd(e,t){return Rn(t,ea(t,e))}function bo(e){return Td(e)}class ua{constructor(t){this.k=t}}function Ne(e){return new ua(e)}function $(e){return e.k}class D extends ua{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function Pe(e,t,n,r){return new D(e,t,n,r)}function z(e){return e.left}function H(e){return e.right}function un(e){return e.h}function xg(){}function fa(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=y(n);if(o instanceof D){const i=o;e=z(i),t=fa(H(i),r+1);continue e}else return r+1|0}else return r|0}}function Dd(e){return fa(e,0)}function qe(e,t,n){let r,o,i;const s=e;if(s!=null){const f=y(s);i=f instanceof D?(r=f,un(r)):1}else i=0;let a;const l=n;if(l!=null){const f=y(l);a=f instanceof D?(o=f,un(o)):1}else a=0;const c=(i<a?a:i)|0;return c===0?Ne(t):Pe(t,e,n,c+1)}function da(e,t,n){let r,o,i,s,a,l,c,f,u;const h=e;if(h!=null){const g=y(h);u=g instanceof D?(r=g,un(r)):1}else u=0;let d;const w=n;if(w!=null){const g=y(w);d=g instanceof D?(o=g,un(o)):1}else d=0;if(d>u+2){const g=y(n);if(g instanceof D){const p=g;if(i=z(p),(i!=null?(s=y(i),s instanceof D?(a=s,un(a)):1):0)>u+1){const _=y(z(p));if(_ instanceof D){const b=_;return qe(qe(e,t,z(b)),$(b),qe(H(b),$(p),H(p)))}else throw new Error("internal error: Set.rebalance")}else return qe(qe(e,t,z(p)),$(p),H(p))}else throw new Error("internal error: Set.rebalance")}else if(u>d+2){const g=y(e);if(g instanceof D){const p=g;if(l=H(p),(l!=null?(c=y(l),c instanceof D?(f=c,un(f)):1):0)>d+1){const _=y(H(p));if(_ instanceof D){const b=_;return qe(qe(z(p),$(p),z(b)),$(b),qe(H(b),t,n))}else throw new Error("internal error: Set.rebalance")}else return qe(z(p),$(p),qe(H(p),t,n))}else throw new Error("internal error: Set.rebalance")}else return qe(e,t,n)}function fn(e,t,n){if(n!=null){const r=y(n),o=e.Compare(t,$(r))|0;if(r instanceof D){const i=r;return o<0?da(fn(e,t,z(i)),$(i),H(i)):o===0?n:da(z(i),$(i),fn(e,t,H(i)))}else{const i=e.Compare(t,$(r))|0;return i<0?Pe(t,void 0,n,2):i===0?n:Pe(t,n,void 0,2)}}else return Ne(t)}function ha(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=y(i),a=r.Compare(o,$(s))|0;if(s instanceof D){const l=s;if(a<0){e=r,t=o,n=z(l);continue e}else{if(a===0)return!0;e=r,t=o,n=H(l);continue e}}else return a===0}else return!1}}function pa(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof D){const i=o;pa(n,z(i)),n($(i)),e=n,t=H(i);continue e}else n($(o))}break}}class Fd extends Me{constructor(t,n){super(),this.stack=t,this.started=n}}function wa(e){e:for(;;){const t=e;if(P(t))return fe();{const n=k(t),r=I(t);if(n!=null){const o=y(n);if(o instanceof D){const i=o;e=X([z(i),Ne($(i)),H(i)],r);continue e}else return t}else{e=r;continue e}}}}function ma(e){return new Fd(wa(ae(e)),!1)}function Rd(){throw new Error("Enumeration not started")}function Ld(){throw new Error("Enumeration already started")}function ga(e){if(e.started){const t=e.stack;if(P(t))return Ld();if(k(t)!=null){const n=y(k(t));return $(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Rd()}function jd(e){if(e.started){const t=e.stack;if(P(t))return!1;if(k(t)!=null){if(y(k(t))instanceof D)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=wa(I(t)),!P(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!P(e.stack)}function _a(e){let t=ma(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return ga(t)},"System.Collections.IEnumerator.get_Current"(){return ga(t)},"System.Collections.IEnumerator.MoveNext"(){return jd(t)},"System.Collections.IEnumerator.Reset"(){t=ma(e)},Dispose(){}}}function Hd(e,t,n){e:for(;;){const r=e,o=t,i=n;if(P(o))return P(i)?0:-1;if(P(i))return 1;if(k(i)!=null)if(k(o)!=null){const s=y(k(o)),a=y(k(i));if(s instanceof D){const l=s;if(z(l)==null)if(a instanceof D){const c=a;if(z(c)==null){const f=r.Compare($(l),$(c))|0;if(f!==0)return f|0;e=r,t=He(H(l),I(o)),n=He(H(c),I(i));continue e}else{let f,u,h,d,w;switch(P(o)?P(i)?f=2:k(i)!=null?(f=1,d=I(i),w=y(k(i))):f=2:k(o)!=null?(f=0,u=I(o),h=y(k(o))):P(i)?f=2:k(i)!=null?(f=1,d=I(i),w=y(k(i))):f=2,f){case 0:if(h instanceof D){const g=h;e=r,t=X([z(g),Pe($(g),void 0,H(g),0)],u),n=i;continue e}else{e=r,t=X([void 0,Ne($(h))],u),n=i;continue e}case 1:if(w instanceof D){const g=w;e=r,t=o,n=X([z(g),Pe($(g),void 0,H(g),0)],d);continue e}else{e=r,t=o,n=X([void 0,Ne($(w))],d);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const c=r.Compare($(l),$(a))|0;if(c!==0)return c|0;e=r,t=He(H(l),I(o)),n=He(void 0,I(i));continue e}else{let c,f,u,h,d;switch(P(o)?P(i)?c=2:k(i)!=null?(c=1,h=I(i),d=y(k(i))):c=2:k(o)!=null?(c=0,f=I(o),u=y(k(o))):P(i)?c=2:k(i)!=null?(c=1,h=I(i),d=y(k(i))):c=2,c){case 0:if(u instanceof D){const w=u;e=r,t=X([z(w),Pe($(w),void 0,H(w),0)],f),n=i;continue e}else{e=r,t=X([void 0,Ne($(u))],f),n=i;continue e}case 1:if(d instanceof D){const w=d;e=r,t=o,n=X([z(w),Pe($(w),void 0,H(w),0)],h);continue e}else{e=r,t=o,n=X([void 0,Ne($(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof D){const l=a;if(z(l)==null){const c=r.Compare($(s),$(l))|0;if(c!==0)return c|0;e=r,t=He(void 0,I(o)),n=He(H(l),I(i));continue e}else{let c,f,u,h,d;switch(P(o)?P(i)?c=2:k(i)!=null?(c=1,h=I(i),d=y(k(i))):c=2:k(o)!=null?(c=0,f=I(o),u=y(k(o))):P(i)?c=2:k(i)!=null?(c=1,h=I(i),d=y(k(i))):c=2,c){case 0:if(u instanceof D){const w=u;e=r,t=X([z(w),Pe($(w),void 0,H(w),0)],f),n=i;continue e}else{e=r,t=X([void 0,Ne($(u))],f),n=i;continue e}case 1:if(d instanceof D){const w=d;e=r,t=o,n=X([z(w),Pe($(w),void 0,H(w),0)],h);continue e}else{e=r,t=o,n=X([void 0,Ne($(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare($(s),$(a))|0;if(l!==0)return l|0;e=r,t=I(o),n=I(i);continue e}}else{y(k(i));let s,a,l,c,f;switch(P(o)?P(i)?s=2:k(i)!=null?(s=1,c=I(i),f=y(k(i))):s=2:k(o)!=null?(s=0,a=I(o),l=y(k(o))):P(i)?s=2:k(i)!=null?(s=1,c=I(i),f=y(k(i))):s=2,s){case 0:if(l instanceof D){const u=l;e=r,t=X([z(u),Pe($(u),void 0,H(u),0)],a),n=i;continue e}else{e=r,t=X([void 0,Ne($(l))],a),n=i;continue e}case 1:if(f instanceof D){const u=f;e=r,t=o,n=X([z(u),Pe($(u),void 0,H(u),0)],c);continue e}else{e=r,t=o,n=X([void 0,Ne($(f))],c);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(k(o)!=null){y(k(o));let s,a,l,c,f;switch(P(o)?P(i)?s=2:k(i)!=null?(s=1,c=I(i),f=y(k(i))):s=2:k(o)!=null?(s=0,a=I(o),l=y(k(o))):P(i)?s=2:k(i)!=null?(s=1,c=I(i),f=y(k(i))):s=2,s){case 0:if(l instanceof D){const u=l;e=r,t=X([z(u),Pe($(u),void 0,H(u),0)],a),n=i;continue e}else{e=r,t=X([void 0,Ne($(l))],a),n=i;continue e}case 1:if(f instanceof D){const u=f;e=r,t=o,n=X([z(u),Pe($(u),void 0,H(u),0)],c);continue e}else{e=r,t=o,n=X([void 0,Ne($(f))],c);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=I(o),n=I(i);continue e}}}function ya(e,t,n){return t==null?n==null?0:-1:n==null?1:Hd(e,ae(t),ae(n))|0}function Bd(e,t,n){let r=n;pa(o=>{Qe(t,r,o),r=r+1|0},e)}function Vd(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=fn(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i;continue e}else return o}}function Ud(e,t){return br((n,r)=>fn(e,r,n),void 0,t)}function zd(e,t){return et((n,r)=>fn(e,r,n),void 0,t)}function ba(e,t){if(Ve(t))return Ud(e,t);if(t instanceof be)return zd(e,t);{const n=oe(t);try{return Vd(e,void 0,n)}finally{G(n)}}}class vo{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return qd(this)|0}Equals(t){let n;const r=this;return t instanceof vo&&(n=t,ya(dn(r),Ye(r),Ye(n))===0)}toString(){return"set ["+Dt("; ",Ie(n=>ze(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return ya(dn(n),Ye(n),Ye(t))|0}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return ha(dn(n),t,Ye(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Bd(Ye(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return xo(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return xo(this)|0}GetEnumerator(){return _a(Ye(this))}[Symbol.iterator](){return or(oe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return _a(Ye(this))}get size(){return xo(this)|0}add(t){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(t){throw new Error("Set cannot be mutated")}has(t){return va(this,t)}keys(){return Ie(n=>n,this)}values(){return Ie(n=>n,this)}entries(){return Ie(n=>[n,n],this)}forEach(t,n){const r=this;Ys(o=>{t(o,o,r)},r)}}function Er(e,t){return new vo(e,t)}function dn(e){return e.comparer}function Ye(e){return e.tree}function Gd(e){return Er(e,void 0)}function Wd(e,t){return Er(dn(e),fn(dn(e),t,Ye(e)))}function xo(e){return Dd(Ye(e))}function va(e,t){return ha(dn(e),t,Ye(e))}function qd(e){let t=0;const n=oe(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+it(r)+631|0}}finally{G(n)}return Math.abs(t)|0}function Co(e,t){return va(t,e)}function Yd(e,t){return Wd(t,e)}function Zd(e){return Gd(e)}function Kd(e,t){return Er(t,ba(t,e))}function Xd(e,t){return Er(t,ba(t,e))}function Ln(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
5
5
  `:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
6
6
  `:" ")}}function Jd(e,t){const n=t.tag===2?Ln(t.fields[0],t.fields[1],!0):t.tag===1?Ln(t.fields[0],t.fields[1],!1)+`
7
7
  Reason: `+t.fields[2]:t.tag===3?Ln(t.fields[0],t.fields[1],!0):t.tag===4?Ln(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
@@ -9,9 +9,9 @@ Reason: `+t.fields[2]:t.tag===3?Ln(t.fields[0],t.fields[1],!0):t.tag===4?Ln(t.fi
9
9
 
10
10
  `+Dt(`
11
11
 
12
- `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Ln(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function xa(e,t,n){const r=t(e,n);if(r.tag===1){const o=r.fields[0];return new m(1,[Jd(o[0],o[1])])}else return new m(0,[r.fields[0]])}function Co(e,t){try{return xa("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new m(1,["Given an invalid JSON: "+n.message]);throw n}}function ka(e,t){return typeof t=="string"?new m(0,[t]):new m(1,[[e,new k(0,["a string",t])]])}function Qd(e,t){if(typeof t=="string"){const n=t;return n.length===1?new m(0,[n[0]]):new m(1,[[e,new k(0,["a single character string",t])]])}else return new m(1,[[e,new k(0,["a char",t])]])}function eh(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Tf(t,new Ee(()=>r,o=>{r=o})),r],n[0]?new m(0,[n[1]]):new m(1,[[e,new k(0,["a guid",t])]])}else return new m(1,[[e,new k(0,["a guid",t])]])}function th(e,t){return t==null?new m(0,[void 0]):new m(1,[[e,new k(0,["null",t])]])}const Ca=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-128<=o&&o<=127?new m(0,[(o+128&255)-128]):new m(1,[[n,new k(1,["a sbyte",o,"Value was either too large or too small for a sbyte"])]]):new m(1,[[n,new k(1,["a sbyte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[on(r,511,!1,8,new Ee(()=>i,s=>{i=s|0})),i],o[0]?new m(0,[o[1]]):new m(1,[[n,new k(0,["a sbyte",r])]])}else return new m(1,[[n,new k(0,["a sbyte",r])]])},Sa=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=255?new m(0,[o&255]):new m(1,[[n,new k(1,["a byte",o,"Value was either too large or too small for a byte"])]]):new m(1,[[n,new k(1,["a byte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[on(r,511,!0,8,new Ee(()=>i,s=>{i=s})),i],o[0]?new m(0,[o[1]]):new m(1,[[n,new k(0,["a byte",r])]])}else return new m(1,[[n,new k(0,["a byte",r])]])},Ea=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-32768<=o&&o<=32767?new m(0,[(o+32768&65535)-32768]):new m(1,[[n,new k(1,["an int16",o,"Value was either too large or too small for an int16"])]]):new m(1,[[n,new k(1,["an int16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[on(r,511,!1,16,new Ee(()=>i,s=>{i=s|0})),i],o[0]?new m(0,[o[1]]):new m(1,[[n,new k(0,["an int16",r])]])}else return new m(1,[[n,new k(0,["an int16",r])]])},$a=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=65535?new m(0,[o&65535]):new m(1,[[n,new k(1,["an uint16",o,"Value was either too large or too small for an uint16"])]]):new m(1,[[n,new k(1,["an uint16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[on(r,511,!0,16,new Ee(()=>i,s=>{i=s})),i],o[0]?new m(0,[o[1]]):new m(1,[[n,new k(0,["an uint16",r])]])}else return new m(1,[[n,new k(0,["an uint16",r])]])},Ta=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-2147483648<=o&&o<=2147483647?new m(0,[~~o]):new m(1,[[n,new k(1,["an int",o,"Value was either too large or too small for an int"])]]):new m(1,[[n,new k(1,["an int",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[on(r,511,!1,32,new Ee(()=>i,s=>{i=s|0})),i],o[0]?new m(0,[o[1]]):new m(1,[[n,new k(0,["an int",r])]])}else return new m(1,[[n,new k(0,["an int",r])]])},Ma=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=4294967295?new m(0,[o>>>0]):new m(1,[[n,new k(1,["an uint32",o,"Value was either too large or too small for an uint32"])]]):new m(1,[[n,new k(1,["an uint32",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[on(r,511,!0,32,new Ee(()=>i,s=>{i=s})),i],o[0]?new m(0,[o[1]]):new m(1,[[n,new k(0,["an uint32",r])]])}else return new m(1,[[n,new k(0,["an uint32",r])]])};function nh(e,t){return typeof t=="boolean"?new m(0,[t]):new m(1,[[e,new k(0,["a boolean",t])]])}function rh(e,t){return typeof t=="number"?new m(0,[t]):new m(1,[[e,new k(0,["a float",t])]])}function oh(e,t){return typeof t=="number"?new m(0,[t]):new m(1,[[e,new k(0,["a float32",t])]])}function ih(e,t){if(typeof t=="string"){let n,r=Vu();return n=[zu(t,new Ee(()=>r,o=>{r=o})),r],n[0]?new m(0,[Gu(n[1])]):new m(1,[[e,new k(0,["a datetime",t])]])}else return new m(1,[[e,new k(0,["a datetime",t])]])}function sh(e,t){if(typeof t=="string"){let n,r=Df();return n=[Rf(t,new Ee(()=>r,o=>{r=o})),r],n[0]?new m(0,[n[1]]):new m(1,[[e,new k(0,["a datetimeoffset",t])]])}else return new m(1,[[e,new k(0,["a datetime",t])]])}function ah(e,t){if(typeof t=="string"){let n,r=0;return n=[Wf(t,new Ee(()=>r,o=>{r=o})),r],n[0]?new m(0,[n[1]]):new m(1,[[e,new k(0,["a timespan",t])]])}else return new m(1,[[e,new k(0,["a timespan",t])]])}function Oa(e,t,n,r){let o;const i=n+".["+Ot(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(i,q(e,s)):new m(1,[[i,new k(5,["a longer array. Need index `"+Ot(e)+"` but there are only `"+(o=s.length,Ot(o))+"` entries",r])]])}else return new m(1,[[i,new k(0,["an array",r])]])}function lh(e,t,n){return n==null?new m(0,[void 0]):st(pe,e(t,n))}function Aa(e,t,n){if(Array.isArray(n)){let r=-1;return st(fo,br((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+Ot(r)+"]",i);return s.tag===0?new m(0,[He(s.fields[0],o.fields[0])]):new m(1,[s.fields[0]])}else return o},new m(0,[fe()]),n))}else return new m(1,[[t,new k(0,["a list",n])]])}function ch(e,t,n){if(Array.isArray(n)){let r=-1;return st(fd,br((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+Ot(r)+"]",i);return s.tag===0?new m(0,[an([s.fields[0]],o.fields[0])]):new m(1,[s.fields[0]])}else return o},new m(0,[[]]),n))}else return new m(1,[[t,new k(0,["a seq",n])]])}function Ia(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return br((i,s)=>{if(r=r+1|0,i.tag===0){const a=i.fields[0],l=e(t+".["+Ot(r)+"]",s);return l.tag===0?(Qe(a,r,l.fields[0]),new m(0,[a])):new m(1,[l.fields[0]])}else return i},new m(0,[yr(new Array(o.length),0,o.length,null)]),o)}else return new m(1,[[t,new k(0,["an array",n])]])}function uh(e,t,n){return((o,i)=>{e:for(;;){const s=o,a=i;if(P(s))return new m(1,[[t,new k(7,[a])]]);{const l=xa(t,K(C(s)),n);if(l.tag===1){o=I(s),i=ho(a,ae(l.fields[0]));continue e}else return new m(0,[l.fields[0]])}}})(e,fe())}function fh(e,t,n){return new m(0,[e])}function Na(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new m(1,[o.fields[0]])}function dh(e,t,n,r){const o=t(n,r);return o.tag===1?new m(1,[o.fields[0]]):new m(0,[e(o.fields[0])])}function hh(e,t){let n;const r=e;return n=o=>i=>Oa(0,r,o,i),o=>i=>Na(to(s=>{let a;const l=t;return a=c=>f=>Oa(1,l,c,f),c=>f=>Na((u,h,d)=>fh([s,u]),K(a),c,f)}),K(n),o,i)}function ph(e){return Nd(e,{Compare:Le})}function wh(e){return Xd(e,{Compare:Le})}function mh(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?Ds((r,o)=>{const i=r[0];return o.tag===0?st(s=>He(s,o.fields[0]),r[1](t+"."+i)(n[i])):o},e,new m(0,[fe()])):new m(1,[[t,new k(0,["an object",n])]])}function gh(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Cr((o,i)=>{if(o.tag===0){const s=e(n,i);if(s.tag===0){const a=t(n+"."+i,r[i]);return a.tag===0?new m(0,[He([s.fields[0],a.fields[0]],o.fields[0])]):new m(1,[a.fields[0]])}else return new m(1,[s.fields[0]])}else return o},new m(0,[fe()]),Object.keys(r)):new m(1,[[n,new k(0,["an object",r])]])}function Pa(e,t,n,r){let o;const i=t.length+e|0;if(i!==r.length)return new m(1,[[n,new k(6,[(o=r.length|0,rn(mt("Expected array of length %i but got %i"))(i)(o))])]]);{let s=new m(0,[fe()]);for(let a=e;a<=r.length-1;a++)if(s.tag===0){const l=s.fields[0],c=rn(mt("%s[%i]"))(n)(a),f=q(a-e,t),u=q(a,r);s=st(h=>He(h,l),f(c)(u))}return st(fo,s)}}function Da(e,t,n,r,o,i){const s=lf(a=>Qt(a)===r,fs(n));if(s!=null){const a=s,l=Rt(c=>Ze(e,t,!1,c[1]),ws(a));return st(c=>Ou(a,In(c)),l.length===0&&i.length<=1?new m(0,[fe()]):Pa(1,l,o,i))}else return new m(1,[[o,new k(6,["Cannot find case "+r+" in "+W(n)])]])}function Fa(e,t,n,r){let o;const i=new Ee(Te());let s;const a=W(r);s=a===""?e:aa(a,i,e);let l;if(ps(r)){const c=Rt(f=>[js(t,Qt(f)),Ze(s,t,!1,f[1])],$n(r));l=f=>u=>st(h=>Au(r,In(h)),mh(c,f,u))}else if(hs(r))l=c=>f=>{if(typeof f=="string")return Da(s,t,r,f,c,[]);if(Array.isArray(f)){const u=f;return kf(h=>Da(s,t,r,h,c,u),ka(c+"[0]",q(0,u)))}else return new m(1,[[c,new k(0,["a string or array",f])]])};else if(n)l=c=>f=>new m(1,[[c,new k(2,["an extra coder for "+W(r),f])]]);else throw new Error((o=W(r),rn(mt(`Cannot generate auto decoder for %s. Please pass an extra decoder.
12
+ `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Ln(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function xa(e,t,n){const r=t(e,n);if(r.tag===1){const o=r.fields[0];return new m(1,[Jd(o[0],o[1])])}else return new m(0,[r.fields[0]])}function ko(e,t){try{return xa("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new m(1,["Given an invalid JSON: "+n.message]);throw n}}function Ca(e,t){return typeof t=="string"?new m(0,[t]):new m(1,[[e,new C(0,["a string",t])]])}function Qd(e,t){if(typeof t=="string"){const n=t;return n.length===1?new m(0,[n[0]]):new m(1,[[e,new C(0,["a single character string",t])]])}else return new m(1,[[e,new C(0,["a char",t])]])}function eh(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Tf(t,new Ee(()=>r,o=>{r=o})),r],n[0]?new m(0,[n[1]]):new m(1,[[e,new C(0,["a guid",t])]])}else return new m(1,[[e,new C(0,["a guid",t])]])}function th(e,t){return t==null?new m(0,[void 0]):new m(1,[[e,new C(0,["null",t])]])}const ka=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-128<=o&&o<=127?new m(0,[(o+128&255)-128]):new m(1,[[n,new C(1,["a sbyte",o,"Value was either too large or too small for a sbyte"])]]):new m(1,[[n,new C(1,["a sbyte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[on(r,511,!1,8,new Ee(()=>i,s=>{i=s|0})),i],o[0]?new m(0,[o[1]]):new m(1,[[n,new C(0,["a sbyte",r])]])}else return new m(1,[[n,new C(0,["a sbyte",r])]])},Sa=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=255?new m(0,[o&255]):new m(1,[[n,new C(1,["a byte",o,"Value was either too large or too small for a byte"])]]):new m(1,[[n,new C(1,["a byte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[on(r,511,!0,8,new Ee(()=>i,s=>{i=s})),i],o[0]?new m(0,[o[1]]):new m(1,[[n,new C(0,["a byte",r])]])}else return new m(1,[[n,new C(0,["a byte",r])]])},Ea=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-32768<=o&&o<=32767?new m(0,[(o+32768&65535)-32768]):new m(1,[[n,new C(1,["an int16",o,"Value was either too large or too small for an int16"])]]):new m(1,[[n,new C(1,["an int16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[on(r,511,!1,16,new Ee(()=>i,s=>{i=s|0})),i],o[0]?new m(0,[o[1]]):new m(1,[[n,new C(0,["an int16",r])]])}else return new m(1,[[n,new C(0,["an int16",r])]])},$a=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=65535?new m(0,[o&65535]):new m(1,[[n,new C(1,["an uint16",o,"Value was either too large or too small for an uint16"])]]):new m(1,[[n,new C(1,["an uint16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[on(r,511,!0,16,new Ee(()=>i,s=>{i=s})),i],o[0]?new m(0,[o[1]]):new m(1,[[n,new C(0,["an uint16",r])]])}else return new m(1,[[n,new C(0,["an uint16",r])]])},Ta=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-2147483648<=o&&o<=2147483647?new m(0,[~~o]):new m(1,[[n,new C(1,["an int",o,"Value was either too large or too small for an int"])]]):new m(1,[[n,new C(1,["an int",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[on(r,511,!1,32,new Ee(()=>i,s=>{i=s|0})),i],o[0]?new m(0,[o[1]]):new m(1,[[n,new C(0,["an int",r])]])}else return new m(1,[[n,new C(0,["an int",r])]])},Ma=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=4294967295?new m(0,[o>>>0]):new m(1,[[n,new C(1,["an uint32",o,"Value was either too large or too small for an uint32"])]]):new m(1,[[n,new C(1,["an uint32",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[on(r,511,!0,32,new Ee(()=>i,s=>{i=s})),i],o[0]?new m(0,[o[1]]):new m(1,[[n,new C(0,["an uint32",r])]])}else return new m(1,[[n,new C(0,["an uint32",r])]])};function nh(e,t){return typeof t=="boolean"?new m(0,[t]):new m(1,[[e,new C(0,["a boolean",t])]])}function rh(e,t){return typeof t=="number"?new m(0,[t]):new m(1,[[e,new C(0,["a float",t])]])}function oh(e,t){return typeof t=="number"?new m(0,[t]):new m(1,[[e,new C(0,["a float32",t])]])}function ih(e,t){if(typeof t=="string"){let n,r=Vu();return n=[zu(t,new Ee(()=>r,o=>{r=o})),r],n[0]?new m(0,[Gu(n[1])]):new m(1,[[e,new C(0,["a datetime",t])]])}else return new m(1,[[e,new C(0,["a datetime",t])]])}function sh(e,t){if(typeof t=="string"){let n,r=Df();return n=[Rf(t,new Ee(()=>r,o=>{r=o})),r],n[0]?new m(0,[n[1]]):new m(1,[[e,new C(0,["a datetimeoffset",t])]])}else return new m(1,[[e,new C(0,["a datetime",t])]])}function ah(e,t){if(typeof t=="string"){let n,r=0;return n=[Wf(t,new Ee(()=>r,o=>{r=o})),r],n[0]?new m(0,[n[1]]):new m(1,[[e,new C(0,["a timespan",t])]])}else return new m(1,[[e,new C(0,["a timespan",t])]])}function Oa(e,t,n,r){let o;const i=n+".["+Ot(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(i,q(e,s)):new m(1,[[i,new C(5,["a longer array. Need index `"+Ot(e)+"` but there are only `"+(o=s.length,Ot(o))+"` entries",r])]])}else return new m(1,[[i,new C(0,["an array",r])]])}function lh(e,t,n){return n==null?new m(0,[void 0]):st(pe,e(t,n))}function Aa(e,t,n){if(Array.isArray(n)){let r=-1;return st(fo,br((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+Ot(r)+"]",i);return s.tag===0?new m(0,[He(s.fields[0],o.fields[0])]):new m(1,[s.fields[0]])}else return o},new m(0,[fe()]),n))}else return new m(1,[[t,new C(0,["a list",n])]])}function ch(e,t,n){if(Array.isArray(n)){let r=-1;return st(fd,br((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+Ot(r)+"]",i);return s.tag===0?new m(0,[an([s.fields[0]],o.fields[0])]):new m(1,[s.fields[0]])}else return o},new m(0,[[]]),n))}else return new m(1,[[t,new C(0,["a seq",n])]])}function Ia(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return br((i,s)=>{if(r=r+1|0,i.tag===0){const a=i.fields[0],l=e(t+".["+Ot(r)+"]",s);return l.tag===0?(Qe(a,r,l.fields[0]),new m(0,[a])):new m(1,[l.fields[0]])}else return i},new m(0,[yr(new Array(o.length),0,o.length,null)]),o)}else return new m(1,[[t,new C(0,["an array",n])]])}function uh(e,t,n){return((o,i)=>{e:for(;;){const s=o,a=i;if(P(s))return new m(1,[[t,new C(7,[a])]]);{const l=xa(t,K(k(s)),n);if(l.tag===1){o=I(s),i=ho(a,ae(l.fields[0]));continue e}else return new m(0,[l.fields[0]])}}})(e,fe())}function fh(e,t,n){return new m(0,[e])}function Na(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new m(1,[o.fields[0]])}function dh(e,t,n,r){const o=t(n,r);return o.tag===1?new m(1,[o.fields[0]]):new m(0,[e(o.fields[0])])}function hh(e,t){let n;const r=e;return n=o=>i=>Oa(0,r,o,i),o=>i=>Na(to(s=>{let a;const l=t;return a=c=>f=>Oa(1,l,c,f),c=>f=>Na((u,h,d)=>fh([s,u]),K(a),c,f)}),K(n),o,i)}function ph(e){return Nd(e,{Compare:Le})}function wh(e){return Xd(e,{Compare:Le})}function mh(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?Ds((r,o)=>{const i=r[0];return o.tag===0?st(s=>He(s,o.fields[0]),r[1](t+"."+i)(n[i])):o},e,new m(0,[fe()])):new m(1,[[t,new C(0,["an object",n])]])}function gh(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?kr((o,i)=>{if(o.tag===0){const s=e(n,i);if(s.tag===0){const a=t(n+"."+i,r[i]);return a.tag===0?new m(0,[He([s.fields[0],a.fields[0]],o.fields[0])]):new m(1,[a.fields[0]])}else return new m(1,[s.fields[0]])}else return o},new m(0,[fe()]),Object.keys(r)):new m(1,[[n,new C(0,["an object",r])]])}function Pa(e,t,n,r){let o;const i=t.length+e|0;if(i!==r.length)return new m(1,[[n,new C(6,[(o=r.length|0,rn(mt("Expected array of length %i but got %i"))(i)(o))])]]);{let s=new m(0,[fe()]);for(let a=e;a<=r.length-1;a++)if(s.tag===0){const l=s.fields[0],c=rn(mt("%s[%i]"))(n)(a),f=q(a-e,t),u=q(a,r);s=st(h=>He(h,l),f(c)(u))}return st(fo,s)}}function Da(e,t,n,r,o,i){const s=lf(a=>Qt(a)===r,fs(n));if(s!=null){const a=s,l=Rt(c=>Ze(e,t,!1,c[1]),ws(a));return st(c=>Ou(a,In(c)),l.length===0&&i.length<=1?new m(0,[fe()]):Pa(1,l,o,i))}else return new m(1,[[o,new C(6,["Cannot find case "+r+" in "+W(n)])]])}function Fa(e,t,n,r){let o;const i=new Ee(Te());let s;const a=W(r);s=a===""?e:aa(a,i,e);let l;if(ps(r)){const c=Rt(f=>[js(t,Qt(f)),Ze(s,t,!1,f[1])],$n(r));l=f=>u=>st(h=>Au(r,In(h)),mh(c,f,u))}else if(hs(r))l=c=>f=>{if(typeof f=="string")return Da(s,t,r,f,c,[]);if(Array.isArray(f)){const u=f;return Cf(h=>Da(s,t,r,h,c,u),Ca(c+"[0]",q(0,u)))}else return new m(1,[[c,new C(0,["a string or array",f])]])};else if(n)l=c=>f=>new m(1,[[c,new C(2,["an extra coder for "+W(r),f])]]);else throw new Error((o=W(r),rn(mt(`Cannot generate auto decoder for %s. Please pass an extra decoder.
13
13
 
14
- Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return i.contents=l,l}function Ze(e,t,n,r){let o,i,s,a;const l=W(r),c=la(l,e);if(c==null)if(as(r)){const f=Ze(e,t,!1,En(r));return u=>h=>Ia(K(f),u,h)}else if(io(r))switch(W(us(r))){case"System.SByte":return u=>h=>{const d=r,w=u,g=h,p=Ca(w)(g);if(p.tag===1)return new m(1,[p.fields[0]]);{const _=p.fields[0]|0;return ln(_,en(d),{Equals:(b,x)=>b===x,GetHashCode:Ue})?new m(0,[tn(d,_.toString())]):new m(1,[[w,new k(1,[W(d),g,"Unkown value provided for the enum"])]])}};case"System.Byte":return u=>h=>{const d=r,w=u,g=h,p=Sa(w)(g);if(p.tag===1)return new m(1,[p.fields[0]]);{const _=p.fields[0];return ln(_,en(d),{Equals:(b,x)=>b===x,GetHashCode:Ue})?new m(0,[tn(d,_.toString())]):new m(1,[[w,new k(1,[W(d),g,"Unkown value provided for the enum"])]])}};case"System.Int16":return u=>h=>{const d=r,w=u,g=h,p=Ea(w)(g);if(p.tag===1)return new m(1,[p.fields[0]]);{const _=p.fields[0]|0;return ln(_,en(d),{Equals:(b,x)=>b===x,GetHashCode:Ue})?new m(0,[tn(d,qc(_))]):new m(1,[[w,new k(1,[W(d),g,"Unkown value provided for the enum"])]])}};case"System.UInt16":return u=>h=>{const d=r,w=u,g=h,p=$a(w)(g);if(p.tag===1)return new m(1,[p.fields[0]]);{const _=p.fields[0];return ln(_,en(d),{Equals:(b,x)=>b===x,GetHashCode:Ue})?new m(0,[tn(d,_.toString())]):new m(1,[[w,new k(1,[W(d),g,"Unkown value provided for the enum"])]])}};case"System.Int32":return u=>h=>{const d=r,w=u,g=h,p=Ta(w)(g);if(p.tag===1)return new m(1,[p.fields[0]]);{const _=p.fields[0]|0;return ln(_,en(d),{Equals:(b,x)=>b===x,GetHashCode:Ue})?new m(0,[tn(d,Ot(_))]):new m(1,[[w,new k(1,[W(d),g,"Unkown value provided for the enum"])]])}};case"System.UInt32":return u=>h=>{const d=r,w=u,g=h,p=Ma(w)(g);if(p.tag===1)return new m(1,[p.fields[0]]);{const _=p.fields[0];return ln(_,en(d),{Equals:(b,x)=>b===x,GetHashCode:Ue})?new m(0,[tn(d,_.toString())]):new m(1,[[w,new k(1,[W(d),g,"Unkown value provided for the enum"])]])}};default:{const u=W(r),h=Ms(mt(`Cannot generate auto decoder for %s.
14
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return i.contents=l,l}function Ze(e,t,n,r){let o,i,s,a;const l=W(r),c=la(l,e);if(c==null)if(as(r)){const f=Ze(e,t,!1,En(r));return u=>h=>Ia(K(f),u,h)}else if(io(r))switch(W(us(r))){case"System.SByte":return u=>h=>{const d=r,w=u,g=h,p=ka(w)(g);if(p.tag===1)return new m(1,[p.fields[0]]);{const _=p.fields[0]|0;return ln(_,en(d),{Equals:(b,x)=>b===x,GetHashCode:Ue})?new m(0,[tn(d,_.toString())]):new m(1,[[w,new C(1,[W(d),g,"Unkown value provided for the enum"])]])}};case"System.Byte":return u=>h=>{const d=r,w=u,g=h,p=Sa(w)(g);if(p.tag===1)return new m(1,[p.fields[0]]);{const _=p.fields[0];return ln(_,en(d),{Equals:(b,x)=>b===x,GetHashCode:Ue})?new m(0,[tn(d,_.toString())]):new m(1,[[w,new C(1,[W(d),g,"Unkown value provided for the enum"])]])}};case"System.Int16":return u=>h=>{const d=r,w=u,g=h,p=Ea(w)(g);if(p.tag===1)return new m(1,[p.fields[0]]);{const _=p.fields[0]|0;return ln(_,en(d),{Equals:(b,x)=>b===x,GetHashCode:Ue})?new m(0,[tn(d,qc(_))]):new m(1,[[w,new C(1,[W(d),g,"Unkown value provided for the enum"])]])}};case"System.UInt16":return u=>h=>{const d=r,w=u,g=h,p=$a(w)(g);if(p.tag===1)return new m(1,[p.fields[0]]);{const _=p.fields[0];return ln(_,en(d),{Equals:(b,x)=>b===x,GetHashCode:Ue})?new m(0,[tn(d,_.toString())]):new m(1,[[w,new C(1,[W(d),g,"Unkown value provided for the enum"])]])}};case"System.Int32":return u=>h=>{const d=r,w=u,g=h,p=Ta(w)(g);if(p.tag===1)return new m(1,[p.fields[0]]);{const _=p.fields[0]|0;return ln(_,en(d),{Equals:(b,x)=>b===x,GetHashCode:Ue})?new m(0,[tn(d,Ot(_))]):new m(1,[[w,new C(1,[W(d),g,"Unkown value provided for the enum"])]])}};case"System.UInt32":return u=>h=>{const d=r,w=u,g=h,p=Ma(w)(g);if(p.tag===1)return new m(1,[p.fields[0]]);{const _=p.fields[0];return ln(_,en(d),{Equals:(b,x)=>b===x,GetHashCode:Ue})?new m(0,[tn(d,_.toString())]):new m(1,[[w,new C(1,[W(d),g,"Unkown value provided for the enum"])]])}};default:{const u=W(r),h=Ms(mt(`Cannot generate auto decoder for %s.
15
15
  Thoth.Json.Net only support the following enum types:
16
16
  - sbyte
17
17
  - byte
@@ -20,8 +20,8 @@ Thoth.Json.Net only support the following enum types:
20
20
  - int
21
21
  - uint32
22
22
  If you can't use one of these types, please pass an extra decoder.
23
- `))(u);return d=>h(d)}}else if(ls(r))if(so(r)){const f=Rt(u=>Ze(e,t,!1,u),ds(r));return u=>h=>Array.isArray(h)?st(d=>Iu(In(d)),Pa(0,f,u,h)):new m(1,[[u,new k(0,["an array",h])]])}else switch(W(cs(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=Ze(e,t,!0,q(0,Oe(r))),u=>h=>lh(K(o),u,h);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return i=Ze(e,t,!1,q(0,Oe(r))),u=>h=>Aa(K(i),u,h);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=Ze(e,t,!1,q(0,Oe(r))),u=>h=>ch(K(s),u,h);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const u=Ze(e,t,!1,q(0,Oe(r))),h=Ze(e,t,!1,q(1,Oe(r)));let d;const w=M([g=>p=>gh(K(u),K(h),g,p),(a=hh(K(u),K(h)),g=>p=>Aa(K(a),g,p))]);return d=g=>p=>uh(w,g,p),g=>p=>dh(ph,K(d),g,p)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const u=Ze(e,t,!1,q(0,Oe(r)));return h=>d=>{const w=Ia(K(u),h,d);return w.tag===0?new m(0,[wh(w.fields[0])]):new m(1,[w.fields[0]])}}default:return Fa(e,t,n,r)}else switch(l){case"System.Boolean":return f=>u=>nh(f,u);case"Microsoft.FSharp.Core.Unit":return f=>u=>th(f,u);case"System.String":return f=>u=>ka(f,u);case"System.Char":return f=>u=>Qd(f,u);case"System.SByte":return Ca;case"System.Byte":return Sa;case"System.Int16":return Ea;case"System.UInt16":return $a;case"System.Int32":return Ta;case"System.UInt32":return Ma;case"System.Double":return f=>u=>rh(f,u);case"System.Single":return f=>u=>oh(f,u);case"System.DateTime":return f=>u=>ih(f,u);case"System.DateTimeOffset":return f=>u=>sh(f,u);case"System.TimeSpan":return f=>u=>ah(f,u);case"System.Guid":return f=>u=>eh(f,u);case"System.Object":return f=>u=>new m(0,[u]);default:return Fa(e,t,n,r)}else{const f=c;return u=>h=>f.contents(u)(h)}}function _h(e){return e!=null?ca((t,n)=>new Ee(n[1]),e.Coders):bo({Compare:sr})}function So(e,t,n){const r=co(t,new jt(0,[]));return Ze(_h(n),r,!1,e)}class Eo extends L{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AccessRole"]}}function yh(e){return new Eo(e)}const bh=new Eo("BasicProfile.AccessConfig"),vh=new Eo("BasicProfile.EditConfig");function xh(e){if(Fs(bh,e,{Equals:ye,GetHashCode:Zi}))return pe(void 0)}function Ra(e){if(Fs(vh,e,{Equals:ye,GetHashCode:Zi}))return pe(void 0)}function kh(e){return Ra(e)!=null}class La extends Me{constructor(t,n){super(),this.UserName=t,this.Roles=n}}function Ch(e){let t;const n=As(e??"",["."],void 0,0);if(!uf((r,o)=>r===o,n,Te())&&n.length===3){const r=q(1,n),o=atob(r);t=Co(K(So(ku(["Name",is],["Roles",Su(is)]),new jt(1,[]),void 0)),o)}else t=new m(1,["Failed to identify the user"]);if(t.tag===1)return new La(void 0,fe());{const r=t.fields[0];return new La(r.Name,M(Rt(yh,r.Roles)))}}var jn,T,ja,Ht,Ha,Ba,$o,To,Mo,Oo,Va,Hn={},Ua=[],Sh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,$r=Array.isArray;function at(e,t){for(var n in t)e[n]=t[n];return e}function za(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?jn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return Bn(e,s,r,o,null)}function Bn(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++ja,__i:-1,__u:0};return o==null&&T.vnode!=null&&T.vnode(i),i}function Ao(){return{current:null}}function ue(e){return e.children}function Ke(e,t){this.props=e,this.context=t}function Bt(e,t){if(t==null)return e.__?Bt(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Bt(e):null}function Ga(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Ga(e)}}function Io(e){(!e.__d&&(e.__d=!0)&&Ht.push(e)&&!Tr.__r++||Ha!==T.debounceRendering)&&((Ha=T.debounceRendering)||Ba)(Tr)}function Tr(){var e,t,n,r,o,i,s,a;for(Ht.sort($o);e=Ht.shift();)e.__d&&(t=Ht.length,r=void 0,i=(o=(n=e).__v).__e,s=[],a=[],n.__P&&((r=at({},o)).__v=o.__v+1,T.vnode&&T.vnode(r),No(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,s,i??Bt(o),!!(32&o.__u),a),r.__v=o.__v,r.__.__k[r.__i]=r,Ka(s,r,a),r.__e!=i&&Ga(r)),Ht.length>t&&Ht.sort($o));Tr.__r=0}function Wa(e,t,n,r,o,i,s,a,l,c,f){var u,h,d,w,g,p=r&&r.__k||Ua,_=t.length;for(n.__d=l,Eh(n,t,p),l=n.__d,u=0;u<_;u++)(d=n.__k[u])!=null&&typeof d!="boolean"&&typeof d!="function"&&(h=d.__i===-1?Hn:p[d.__i]||Hn,d.__i=u,No(e,d,h,o,i,s,a,l,c,f),w=d.__e,d.ref&&h.ref!=d.ref&&(h.ref&&Po(h.ref,null,d),f.push(d.ref,d.__c||w,d)),g==null&&w!=null&&(g=w),65536&d.__u||h.__k===d.__k?l=qa(d,l,e):typeof d.type=="function"&&d.__d!==void 0?l=d.__d:w&&(l=w.nextSibling),d.__d=void 0,d.__u&=-196609);n.__d=l,n.__e=g}function Eh(e,t,n){var r,o,i,s,a,l=t.length,c=n.length,f=c,u=0;for(e.__k=[],r=0;r<l;r++)s=r+u,(o=e.__k[r]=(o=t[r])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?Bn(null,o,null,null,null):$r(o)?Bn(ue,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?Bn(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,a=$h(o,n,s,f),o.__i=a,i=null,a!==-1&&(f--,(i=n[a])&&(i.__u|=131072)),i==null||i.__v===null?(a==-1&&u--,typeof o.type!="function"&&(o.__u|=65536)):a!==s&&(a==s-1?u--:a==s+1?u++:a>s?f>l-s?u+=a-s:u--:a<s&&(a==s-u?u-=a-s:u++),a!==r+u&&(o.__u|=65536))):(i=n[s])&&i.key==null&&i.__e&&(131072&i.__u)==0&&(i.__e==e.__d&&(e.__d=Bt(i)),Do(i,i,!1),n[s]=null,f--);if(f)for(r=0;r<c;r++)(i=n[r])!=null&&(131072&i.__u)==0&&(i.__e==e.__d&&(e.__d=Bt(i)),Do(i,i))}function qa(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=qa(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Bt(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function lt(e,t){return t=t||[],e==null||typeof e=="boolean"||($r(e)?e.some(function(n){lt(n,t)}):t.push(e)),t}function $h(e,t,n,r){var o=e.key,i=e.type,s=n-1,a=n+1,l=t[n];if(l===null||l&&o==l.key&&i===l.type&&(131072&l.__u)==0)return n;if(r>(l!=null&&(131072&l.__u)==0?1:0))for(;s>=0||a<t.length;){if(s>=0){if((l=t[s])&&(131072&l.__u)==0&&o==l.key&&i===l.type)return s;s--}if(a<t.length){if((l=t[a])&&(131072&l.__u)==0&&o==l.key&&i===l.type)return a;a++}}return-1}function Ya(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Sh.test(t)?n:n+"px"}function Mr(e,t,n,r,o){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Ya(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Ya(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=To,e.addEventListener(t,i?Oo:Mo,i)):e.removeEventListener(t,i?Oo:Mo,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Za(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=To++;else if(t.t<n.u)return;return n(T.event?T.event(t):t)}}}function No(e,t,n,r,o,i,s,a,l,c){var f,u,h,d,w,g,p,_,b,x,O,Y,Z,Xe,$e,U,re=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),i=[a=t.__e=n.__e]),(f=T.__b)&&f(t);e:if(typeof re=="function")try{if(_=t.props,b="prototype"in re&&re.prototype.render,x=(f=re.contextType)&&r[f.__c],O=f?x?x.props.value:f.__:r,n.__c?p=(u=t.__c=n.__c).__=u.__E:(b?t.__c=u=new re(_,O):(t.__c=u=new Ke(_,O),u.constructor=re,u.render=Mh),x&&x.sub(u),u.props=_,u.state||(u.state={}),u.context=O,u.__n=r,h=u.__d=!0,u.__h=[],u._sb=[]),b&&u.__s==null&&(u.__s=u.state),b&&re.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=at({},u.__s)),at(u.__s,re.getDerivedStateFromProps(_,u.__s))),d=u.props,w=u.state,u.__v=t,h)b&&re.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),b&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(b&&re.getDerivedStateFromProps==null&&_!==d&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(_,O),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(_,u.__s,O)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=_,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(nt){nt&&(nt.__=t)}),Y=0;Y<u._sb.length;Y++)u.__h.push(u._sb[Y]);u._sb=[],u.__h.length&&s.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(_,u.__s,O),b&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(d,w,g)})}if(u.context=O,u.props=_,u.__P=e,u.__e=!1,Z=T.__r,Xe=0,b){for(u.state=u.__s,u.__d=!1,Z&&Z(t),f=u.render(u.props,u.state,u.context),$e=0;$e<u._sb.length;$e++)u.__h.push(u._sb[$e]);u._sb=[]}else do u.__d=!1,Z&&Z(t),f=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++Xe<25);u.state=u.__s,u.getChildContext!=null&&(r=at(at({},r),u.getChildContext())),b&&!h&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(d,w)),Wa(e,$r(U=f!=null&&f.type===ue&&f.key==null?f.props.children:f)?U:[U],t,n,r,o,i,s,a,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&s.push(u),p&&(u.__E=u.__=null)}catch(nt){if(t.__v=null,l||i!=null){for(t.__u|=l?160:32;a&&a.nodeType===8&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,t.__e=a}else t.__e=n.__e,t.__k=n.__k;T.__e(nt,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Th(n.__e,t,n,r,o,i,s,l,c);(f=T.diffed)&&f(t)}function Ka(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Po(n[r],n[++r],n[++r]);T.__c&&T.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){T.__e(i,o.__v)}})}function Th(e,t,n,r,o,i,s,a,l){var c,f,u,h,d,w,g,p=n.props,_=t.props,b=t.type;if(b==="svg"?o="http://www.w3.org/2000/svg":b==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(c=0;c<i.length;c++)if((d=i[c])&&"setAttribute"in d==!!b&&(b?d.localName===b:d.nodeType===3)){e=d,i[c]=null;break}}if(e==null){if(b===null)return document.createTextNode(_);e=document.createElementNS(o,b,_.is&&_),i=null,a=!1}if(b===null)p===_||a&&e.data===_||(e.data=_);else{if(i=i&&jn.call(e.childNodes),p=n.props||Hn,!a&&i!=null)for(p={},c=0;c<e.attributes.length;c++)p[(d=e.attributes[c]).name]=d.value;for(c in p)if(d=p[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=d;else if(c!=="key"&&!(c in _)){if(c=="value"&&"defaultValue"in _||c=="checked"&&"defaultChecked"in _)continue;Mr(e,c,null,d,o)}}for(c in _)d=_[c],c=="children"?h=d:c=="dangerouslySetInnerHTML"?f=d:c=="value"?w=d:c=="checked"?g=d:c==="key"||a&&typeof d!="function"||p[c]===d||Mr(e,c,d,p[c],o);if(f)a||u&&(f.__html===u.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(u&&(e.innerHTML=""),Wa(e,$r(h)?h:[h],t,n,r,b==="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&Bt(n,0),a,l),i!=null)for(c=i.length;c--;)i[c]!=null&&za(i[c]);a||(c="value",w!==void 0&&(w!==e[c]||b==="progress"&&!w||b==="option"&&w!==p[c])&&Mr(e,c,w,p[c],o),c="checked",g!==void 0&&g!==e[c]&&Mr(e,c,g,p[c],o))}return e}function Po(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){T.__e(o,n)}}function Do(e,t,n){var r,o;if(T.unmount&&T.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Po(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){T.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Do(r[o],t,n||typeof e.type!="function");n||e.__e==null||za(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Mh(e,t,n){return this.constructor(e,n)}function vt(e,t,n){var r,o,i,s;T.__&&T.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],No(t,e=(!r&&n||t).__k=v(ue,null,[e]),o||Hn,Hn,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?jn.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),Ka(i,e,s)}function Fo(e,t){vt(e,t,Fo)}function Ro(e,t,n){var r,o,i,s,a=at({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i]===void 0&&s!==void 0?s[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?jn.call(arguments,2):n),Bn(e.type,a,r||e.key,o||e.ref,null)}function De(e,t){var n={__c:t="__cC"+Va++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[t]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.some(function(a){a.__e=!0,Io(a)})},this.sub=function(s){o.push(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){o&&o.splice(o.indexOf(s),1),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}jn=Ua.slice,T={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},ja=0,Ke.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=at({},this.state),typeof e=="function"&&(e=e(at({},n),this.props)),e&&at(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Io(this))},Ke.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Io(this))},Ke.prototype.render=ue,Ht=[],Ba=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,$o=function(e,t){return e.__v.__b-t.__v.__b},Tr.__r=0,To=0,Mo=Za(!1),Oo=Za(!0),Va=0;var ct,B,Lo,Xa,hn=0,Ja=[],J=T,Qa=J.__b,el=J.__r,tl=J.diffed,nl=J.__c,rl=J.unmount,ol=J.__;function Vt(e,t){J.__h&&J.__h(B,e,hn||t),hn=0;var n=B.__H||(B.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function se(e){return hn=1,Vn(sl,e)}function Vn(e,t,n){var r=Vt(ct++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):sl(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],c=r.t(l,a);l!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=B,!B.u)){var o=function(a,l,c){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(h){return!!h.__c});if(f.every(function(h){return!h.__N}))return!i||i.call(this,a,l,c);var u=!1;return f.forEach(function(h){if(h.__N){var d=h.__[0];h.__=h.__N,h.__N=void 0,d!==h.__[0]&&(u=!0)}}),!(!u&&r.__c.props===a)&&(!i||i.call(this,a,l,c))};B.u=!0;var i=B.shouldComponentUpdate,s=B.componentWillUpdate;B.componentWillUpdate=function(a,l,c){if(this.__e){var f=i;i=void 0,o(a,l,c),i=f}s&&s.call(this,a,l,c)},B.shouldComponentUpdate=o}return r.__N||r.__}function V(e,t){var n=Vt(ct++,3);!J.__s&&Uo(n.__H,t)&&(n.__=e,n.i=t,B.__H.__h.push(n))}function Ut(e,t){var n=Vt(ct++,4);!J.__s&&Uo(n.__H,t)&&(n.__=e,n.i=t,B.__h.push(n))}function A(e){return hn=5,Q(function(){return{current:e}},[])}function jo(e,t,n){hn=6,Ut(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function Q(e,t){var n=Vt(ct++,7);return Uo(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ut(e,t){return hn=8,Q(function(){return e},t)}function de(e){var t=B.context[e.__c],n=Vt(ct++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(B)),t.props.value):e.__}function Ho(e,t){J.useDebugValue&&J.useDebugValue(t?t(e):e)}function Oh(e){var t=Vt(ct++,10),n=se();return t.__=e,B.componentDidCatch||(B.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Bo(){var e=Vt(ct++,11);if(!e.__){for(var t=B.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Ah(){for(var e;e=Ja.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Or),e.__H.__h.forEach(Vo),e.__H.__h=[]}catch(t){e.__H.__h=[],J.__e(t,e.__v)}}J.__b=function(e){B=null,Qa&&Qa(e)},J.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ol&&ol(e,t)},J.__r=function(e){el&&el(e),ct=0;var t=(B=e.__c).__H;t&&(Lo===B?(t.__h=[],B.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Or),t.__h.forEach(Vo),t.__h=[],ct=0)),Lo=B},J.diffed=function(e){tl&&tl(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ja.push(t)!==1&&Xa===J.requestAnimationFrame||((Xa=J.requestAnimationFrame)||Ih)(Ah)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Lo=B=null},J.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Or),n.__h=n.__h.filter(function(r){return!r.__||Vo(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],J.__e(r,n.__v)}}),nl&&nl(e,t)},J.unmount=function(e){rl&&rl(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Or(r)}catch(o){t=o}}),n.__H=void 0,t&&J.__e(t,n.__v))};var il=typeof requestAnimationFrame=="function";function Ih(e){var t,n=function(){clearTimeout(r),il&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);il&&(t=requestAnimationFrame(n))}function Or(e){var t=B,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),B=t}function Vo(e){var t=B;e.__c=e.__(),B=t}function Uo(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function sl(e,t){return typeof t=="function"?t(e):t}function al(e,t){for(var n in t)e[n]=t[n];return e}function zo(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function Ar(e,t){this.props=e,this.context=t}function ll(e,t){function n(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:zo(this.props,o)}function r(o){return this.shouldComponentUpdate=n,v(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Ar.prototype=new Ke).isPureReactComponent=!0,Ar.prototype.shouldComponentUpdate=function(e,t){return zo(this.props,e)||zo(this.state,t)};var cl=T.__b;T.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),cl&&cl(e)};var Nh=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Go(e){function t(n){var r=al({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Nh,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ul=function(e,t){return e==null?null:lt(lt(e).map(t))},fl={map:ul,forEach:ul,count:function(e){return e?lt(e).length:0},only:function(e){var t=lt(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:lt},Ph=T.__e;T.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}Ph(e,t,n,r)};var dl=T.unmount;function hl(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=al({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return hl(r,t,n)})),e}function pl(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return pl(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Un(){this.__u=0,this.t=null,this.__b=null}function wl(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ml(e){var t,n,r;function o(i){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return v(n,i)}return o.displayName="Lazy",o.__f=!0,o}function pn(){this.u=null,this.o=null}T.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),dl&&dl(e)},(Un.prototype=new Ke).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=wl(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=pl(l,l.__c.__P,l.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.t.pop();)c.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Un.prototype.componentWillUnmount=function(){this.t=[]},Un.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=hl(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&v(ue,null,e.fallback);return o&&(o.__u&=-33),[v(ue,null,t.__a?null:e.children),o]};var gl=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Dh(e){return this.getChildContext=function(){return e.context},e.children}function Fh(e){var t=this,n=e.i;t.componentWillUnmount=function(){vt(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),vt(v(Dh,{context:t.context},e.__v),t.l)}function Wo(e,t){var n=v(Fh,{__v:e,i:t});return n.containerInfo=t,n}(pn.prototype=new Ke).__a=function(e){var t=this,n=wl(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),gl(t,e,r)):o()};n?n(i):i()}},pn.prototype.render=function(e){this.u=null,this.o=new Map;var t=lt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},pn.prototype.componentDidUpdate=pn.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){gl(e,n,t)})};var _l=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Rh=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Lh=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,jh=/[A-Z0-9]/g,Hh=typeof document<"u",Bh=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function yl(e,t,n){return t.__k==null&&(t.textContent=""),vt(e,t),typeof n=="function"&&n(),e?e.__c:null}function bl(e,t,n){return Fo(e,t),typeof n=="function"&&n(),e?e.__c:null}Ke.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ke.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var vl=T.event;function Vh(){}function Uh(){return this.cancelBubble}function zh(){return this.defaultPrevented}T.event=function(e){return vl&&(e=vl(e)),e.persist=Vh,e.isPropagationStopped=Uh,e.isDefaultPrevented=zh,e.nativeEvent=e};var qo,Gh={enumerable:!1,configurable:!0,get:function(){return this.class}},xl=T.vnode;T.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||Hh&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var l=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?s="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Bh(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Lh.test(s)&&(s=l):l=s="oninput":i&&Rh.test(s)?s=s.replace(jh,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&o[s=l]&&(s="oninputCapture"),o[s]=a}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=lt(n.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=lt(n.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",Gh)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=_l,xl&&xl(e)};var kl=T.__r;T.__r=function(e){kl&&kl(e),qo=e.__c};var Cl=T.diffed;T.diffed=function(e){Cl&&Cl(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),qo=null};var Sl={ReactCurrentDispatcher:{current:{readContext:function(e){return qo.__n[e.__c].props.value},useCallback:ut,useContext:de,useDebugValue:Ho,useDeferredValue:Ko,useEffect:V,useId:Bo,useImperativeHandle:jo,useInsertionEffect:Jo,useLayoutEffect:Ut,useMemo:Q,useReducer:Vn,useRef:A,useState:se,useSyncExternalStore:Qo,useTransition:Xo}}},Wh="17.0.2";function El(e){return v.bind(null,e)}function wn(e){return!!e&&e.$$typeof===_l}function $l(e){return wn(e)&&e.type===ue}function Tl(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Yo(e){return wn(e)?Ro.apply(null,arguments):e}function Ml(e){return!!e.__k&&(vt(null,e),!0)}function Ol(e){return e&&(e.base||e.nodeType===1&&e)||null}var Al=function(e,t){return e(t)},Il=function(e,t){return e(t)},Nl=ue;function Zo(e){e()}function Ko(e){return e}function Xo(){return[!1,Zo]}var Jo=Ut,Pl=wn;function Qo(e,t){var n=t(),r=se({h:{__:n,v:t}}),o=r[0].h,i=r[1];return Ut(function(){o.__=n,o.v=t,ei(o)&&i({h:o})},[e,n,t]),V(function(){return ei(o)&&i({h:o}),e(function(){ei(o)&&i({h:o})})},[e]),n}function ei(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var E={useState:se,useId:Bo,useReducer:Vn,useEffect:V,useLayoutEffect:Ut,useInsertionEffect:Jo,useTransition:Xo,useDeferredValue:Ko,useSyncExternalStore:Qo,startTransition:Zo,useRef:A,useImperativeHandle:jo,useMemo:Q,useCallback:ut,useContext:de,useDebugValue:Ho,version:"17.0.2",Children:fl,render:yl,hydrate:bl,unmountComponentAtNode:Ml,createPortal:Wo,createElement:v,createContext:De,createFactory:El,cloneElement:Yo,createRef:Ao,Fragment:ue,isValidElement:wn,isElement:Pl,isFragment:$l,isMemo:Tl,findDOMNode:Ol,Component:Ke,PureComponent:Ar,memo:ll,forwardRef:Go,flushSync:Il,unstable_batchedUpdates:Al,StrictMode:Nl,Suspense:Un,SuspenseList:pn,lazy:ml,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Sl};const mn=Object.freeze(Object.defineProperty({__proto__:null,Children:fl,PureComponent:Ar,StrictMode:Nl,Suspense:Un,SuspenseList:pn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Sl,cloneElement:Yo,createFactory:El,createPortal:Wo,default:E,findDOMNode:Ol,flushSync:Il,forwardRef:Go,hydrate:bl,isElement:Pl,isFragment:$l,isMemo:Tl,isValidElement:wn,lazy:ml,memo:ll,render:yl,startTransition:Zo,unmountComponentAtNode:Ml,unstable_batchedUpdates:Al,useDeferredValue:Ko,useInsertionEffect:Jo,useSyncExternalStore:Qo,useTransition:Xo,version:Wh,Component:Ke,Fragment:ue,createContext:De,createElement:v,createRef:Ao,useCallback:ut,useContext:de,useDebugValue:Ho,useEffect:V,useErrorBoundary:Oh,useId:Bo,useImperativeHandle:jo,useLayoutEffect:Ut,useMemo:Q,useReducer:Vn,useRef:A,useState:se},Symbol.toStringTag,{value:"Module"}));class ti extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Specific","Inherited","Default"]}}function qh(){return Cu("Basic.Profile.Domain.Config.Api.Admin.Read.OwnershipDto",[],ti,()=>[[],[],[]])}class ni extends Me{constructor(t,n){super(),this.AdminUserManagementEnabled=t,this.Ownership=n}}function Dl(){return os("Basic.Profile.Domain.Config.Api.Admin.Read.ConfigDto",[],ni,()=>[["AdminUserManagementEnabled",ss],["Ownership",qh()]])}function Yh(){return new ni(!1,new ti(2,[]))}const ne=E;class Zh{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,o=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(o)}}}Dispose(){}}class ri extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,ri.prototype)}}class oi{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>oi.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function xt(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new ri);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(lr(n))}});else try{e(t)}catch(n){t.onError(lr(n))}}}function Kh(e,t){return xt(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(lr(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Xh(e){return xt(t=>t.onSuccess(e))}class Jh{Bind(t,n){return Kh(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return xt(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let o=r.next();return this.While(()=>!o.done,this.Delay(()=>{const i=n(o.value);return o=r.next(),i}))}Return(t){return Xh(t)}ReturnFrom(t){return t}TryFinally(t,n){return xt(r=>{t({onSuccess:o=>{n(),r.onSuccess(o)},onError:o=>{n(),r.onError(o)},onCancel:o=>{n(),r.onCancel(o)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return xt(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(i){r.onError(lr(i))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return xt(t=>t.onSuccess(void 0))}}const S=new Jh;function Qh(e){return new Fl(0,[e])}function ep(e){return new Fl(1,[e])}class Fl extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function tp(e){return Qh(e)}function np(e){return ep(e)}function ii(e){}const rp=new Zh;function op(e){return xt(t=>{e({onSuccess:n=>t.onSuccess(tp(n)),onError:n=>t.onSuccess(np(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function ip(e){return xt(t=>e([t.onSuccess,t.onError,t.onCancel]))}function sp(e,t){return lp(e,t)}function ap(e,t){return sp(e,t)}function lp(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const i=new oi;e({onSuccess:t||ii,onError:n||ii,onCancel:r||ii,cancelToken:o||rp,trampoline:i})}class Ir extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}class gn extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class cp{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function up(e,t){t.Subscribe(new cp(e))}class fp{constructor(){this.delegates=[]}_add(t){this.delegates.push(t)}_remove(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}get Publish(){return hp(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const o=n===void 0?t:(r=t,n);this.delegates.forEach(i=>{i(r,o)})}}class dp extends fp{}function hp(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(o,i)=>n.OnNext(i);return e(r),{Dispose(){t(r)}}}}}class pp{constructor(t){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=t&&t>0?t:100,this.AutoReset=!0,this._elapsed=new dp}Elapsed(){return this._elapsed.Publish}get Enabled(){return this._enabled}set Enabled(t){!this._isDisposed&&this._enabled!==t&&(this._enabled=t,this._enabled?this.AutoReset?this._intervalId=setInterval(()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)},this.Interval):this._timeoutId=setTimeout(()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)},this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}function wp(e,t){console.error(pe(e),t)}function mp(e,t){let n,r=new pp(e);r.AutoReset=!1,n=r,up(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Rl(e,t,n){Nn(r=>{try{r(t)}catch(o){e(o)}},n)}function kt(){return fe()}function Ll(e){return mf(e)}function si(e,t,n,r){return ae(o=>{e(S.Delay(()=>S.Bind(op(t(n)),i=>{const s=i;return s.tag===0&&o(r(s.fields[0])),S.Zero()})))})}function ai(e){mp(1,t=>{ap(e)})}class Nr extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class jl extends L{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class Hl extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class zn extends Me{constructor(t,n,r,o,i,s,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=i,this.overridenResponseType=s,this.timeout=a,this.content=l}}class _n extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Bl extends Me{constructor(t,n,r,o,i,s){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=o,this.responseHeaders=i,this.content=s}}function Vl(e){return new jl("Content-Type",e)}function li(e){return new jl("Authorization",e)}const zt=new zn("",new Nr(0,[]),fe(),!1,void 0,void 0,void 0,new Hl(0,[]));new Bl(0,"","","",bo({Compare:sr}),new _n(0,[""]));function Ul(e,t){return Qu(t)?new Array(0):As(t,[e],void 0,0)}function gp(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}function ci(e){return new zn(e,zt.method,zt.headers,zt.withCredentials,zt.overridenMimeType,zt.overridenResponseType,zt.timeout,zt.content)}function ui(e,t){return new zn(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Gn(e,t){return new zn(t.url,t.method,ho(t.headers,ae(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function _p(e,t){return new zn(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function fi(e){return ip(t=>{const n=new XMLHttpRequest;n.open(gp(e.method),e.url),n.onreadystatechange=()=>{let l,c,f,u,h,d,w;n.readyState===4&&t[0]((l=(c=n.responseType,c===""||c==="text"?n.responseText:""),f=n.status|0,u=n.responseType,h=(d=n.responseType,d===""?new _n(0,[n.responseText]):d==="text"?new _n(0,[n.responseText]):d==="arraybuffer"?new _n(2,[n.response]):d==="blob"?new _n(1,[n.response]):new _n(3,[n.response])),w=Pd(cf(g=>{const p=M(Ul(":",g));if(!P(p))return[C(p).toLocaleLowerCase(),Dt(":",I(p)).trim()]},Ul(`\r
24
- `,n.getAllResponseHeaders())),{Compare:sr}),new Bl(f,l,u,n.responseURL,w,h)))};const r=oe(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(l.fields[0],l.fields[1])}}finally{G(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const l=o;n.overrideMimeType(l)}const i=e.overridenResponseType;if(i!=null)switch(i.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const s=e.timeout;if(s!=null){const l=s|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send(pe(a.fields[0]));break}case 3:{n.send(pe(a.fields[0]));break}case 2:{n.send(pe(a.fields[0]));break}default:n.send()}})}class Ct extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["AccessDenied","Serialization","Others"]}}class yp{constructor(t){this.accessToken=t}}function bp(e){return new yp(e)}function zl(e,t){return S.Delay(()=>{let n,r;const o=fi((n=ui(new Nr(0,[]),ci(t)),Gn(li(`Bearer ${e.accessToken}`),n)));return r=S.Bind(o,i=>S.Return(new m(0,[i]))),S.Bind(r,i=>{const s=i;if(s.tag===1)return S.Return(new m(1,[s.fields[0]]));{const a=s.fields[0];switch(a.statusCode|0){case 200:return S.Return(new m(0,[a.responseText]));case 403:return S.Return(new m(1,[new Ct(0,[])]));default:return S.Return(new m(1,[new Ct(2,[])]))}}})})}function Gl(e,t,n){return S.Delay(()=>{let r,o,i;const s=fi(_p(new Hl(1,[n]),(r=(o=ui(new Nr(2,[]),ci(t)),Gn(li(`Bearer ${e.accessToken}`),o)),Gn(Vl("application/json"),r))));return i=S.Bind(s,a=>S.Return(new m(0,[a]))),S.Bind(i,a=>{const l=a;if(l.tag===1)return S.Return(new m(1,[l.fields[0]]));switch(l.fields[0].statusCode|0){case 200:return S.Return(new m(0,[void 0]));case 403:return S.Return(new m(1,[new Ct(0,[])]));default:return S.Return(new m(1,[new Ct(2,[])]))}})})}function Wl(e,t){return S.Delay(()=>{let n,r,o;const i=fi((n=(r=ui(new Nr(4,[]),ci(t)),Gn(li(`Bearer ${e.accessToken}`),r)),Gn(Vl("application/json"),n)));return o=S.Bind(i,s=>S.Return(new m(0,[s]))),S.Bind(o,s=>{const a=s;if(a.tag===1)return S.Return(new m(1,[a.fields[0]]));switch(a.fields[0].statusCode|0){case 200:return S.Return(new m(0,[void 0]));case 403:return S.Return(new m(1,[new Ct(0,[])]));default:return S.Return(new m(1,[new Ct(2,[])]))}})})}function vp(e){return e}const ql=Te();function Pr(e){return Array.from(e)}function xp(e){return wr(e,"O")}function kp(e){return zf(e)}function Cp(){return Te()}function Sp(e){return wr(e,"O")}function Yl(e,t){return JSON.stringify(t,void 0,pe(e))}function Ep(e){return t=>rf(of(e,t),()=>ql)}function Zl(e,t,n,r){let o;const i=new Ee(Te());let s;const a=W(r);s=a===""?e:aa(a,i,e);let l;if(ps(r)){const c=Rt(f=>{const u=js(t,Qt(f)),h=ft(s,t,n,f[1]);return d=>w=>{const g=Mu(d,f);return(!n||n&&g!=null)&&(w[u]=h(g)),w}},$n(r));l=f=>Cr((u,h)=>h(f)(u),{},c)}else if(hs(r))l=c=>{const f=Tu(c,r),u=f[0],h=f[1],d=h.length|0;if(d===0)return Qt(u);{const w=d|0,g=ws(u),p=yr(new Array(w+1),0,w+1,null);Qe(p,0,Qt(u));for(let _=1;_<=w;_++){const b=ft(s,t,n,q(_-1,g)[1]);Qe(p,_,b(q(_-1,h)))}return p}};else throw new Error((o=W(r),rn(mt(`Cannot generate auto encoder for %s. Please pass an extra encoder.
23
+ `))(u);return d=>h(d)}}else if(ls(r))if(so(r)){const f=Rt(u=>Ze(e,t,!1,u),ds(r));return u=>h=>Array.isArray(h)?st(d=>Iu(In(d)),Pa(0,f,u,h)):new m(1,[[u,new C(0,["an array",h])]])}else switch(W(cs(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=Ze(e,t,!0,q(0,Oe(r))),u=>h=>lh(K(o),u,h);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return i=Ze(e,t,!1,q(0,Oe(r))),u=>h=>Aa(K(i),u,h);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=Ze(e,t,!1,q(0,Oe(r))),u=>h=>ch(K(s),u,h);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const u=Ze(e,t,!1,q(0,Oe(r))),h=Ze(e,t,!1,q(1,Oe(r)));let d;const w=M([g=>p=>gh(K(u),K(h),g,p),(a=hh(K(u),K(h)),g=>p=>Aa(K(a),g,p))]);return d=g=>p=>uh(w,g,p),g=>p=>dh(ph,K(d),g,p)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const u=Ze(e,t,!1,q(0,Oe(r)));return h=>d=>{const w=Ia(K(u),h,d);return w.tag===0?new m(0,[wh(w.fields[0])]):new m(1,[w.fields[0]])}}default:return Fa(e,t,n,r)}else switch(l){case"System.Boolean":return f=>u=>nh(f,u);case"Microsoft.FSharp.Core.Unit":return f=>u=>th(f,u);case"System.String":return f=>u=>Ca(f,u);case"System.Char":return f=>u=>Qd(f,u);case"System.SByte":return ka;case"System.Byte":return Sa;case"System.Int16":return Ea;case"System.UInt16":return $a;case"System.Int32":return Ta;case"System.UInt32":return Ma;case"System.Double":return f=>u=>rh(f,u);case"System.Single":return f=>u=>oh(f,u);case"System.DateTime":return f=>u=>ih(f,u);case"System.DateTimeOffset":return f=>u=>sh(f,u);case"System.TimeSpan":return f=>u=>ah(f,u);case"System.Guid":return f=>u=>eh(f,u);case"System.Object":return f=>u=>new m(0,[u]);default:return Fa(e,t,n,r)}else{const f=c;return u=>h=>f.contents(u)(h)}}function _h(e){return e!=null?ca((t,n)=>new Ee(n[1]),e.Coders):bo({Compare:sr})}function So(e,t,n){const r=co(t,new jt(0,[]));return Ze(_h(n),r,!1,e)}class Eo extends L{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AccessRole"]}}function yh(e){return new Eo(e)}const bh=new Eo("BasicProfile.AccessConfig"),vh=new Eo("BasicProfile.EditConfig");function xh(e){if(Fs(bh,e,{Equals:ye,GetHashCode:Zi}))return pe(void 0)}function Ra(e){if(Fs(vh,e,{Equals:ye,GetHashCode:Zi}))return pe(void 0)}function Ch(e){return Ra(e)!=null}class La extends Me{constructor(t,n){super(),this.UserName=t,this.Roles=n}}function kh(e){let t;const n=As(e??"",["."],void 0,0);if(!uf((r,o)=>r===o,n,Te())&&n.length===3){const r=q(1,n),o=atob(r);t=ko(K(So(Cu(["Name",is],["Roles",Su(is)]),new jt(1,[]),void 0)),o)}else t=new m(1,["Failed to identify the user"]);if(t.tag===1)return new La(void 0,fe());{const r=t.fields[0];return new La(r.Name,M(Rt(yh,r.Roles)))}}var jn,T,ja,Ht,Ha,Ba,$o,To,Mo,Oo,Va,Hn={},Ua=[],Sh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,$r=Array.isArray;function at(e,t){for(var n in t)e[n]=t[n];return e}function za(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?jn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return Bn(e,s,r,o,null)}function Bn(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++ja,__i:-1,__u:0};return o==null&&T.vnode!=null&&T.vnode(i),i}function Ao(){return{current:null}}function ue(e){return e.children}function Ke(e,t){this.props=e,this.context=t}function Bt(e,t){if(t==null)return e.__?Bt(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Bt(e):null}function Ga(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Ga(e)}}function Io(e){(!e.__d&&(e.__d=!0)&&Ht.push(e)&&!Tr.__r++||Ha!==T.debounceRendering)&&((Ha=T.debounceRendering)||Ba)(Tr)}function Tr(){var e,t,n,r,o,i,s,a;for(Ht.sort($o);e=Ht.shift();)e.__d&&(t=Ht.length,r=void 0,i=(o=(n=e).__v).__e,s=[],a=[],n.__P&&((r=at({},o)).__v=o.__v+1,T.vnode&&T.vnode(r),No(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,s,i??Bt(o),!!(32&o.__u),a),r.__v=o.__v,r.__.__k[r.__i]=r,Ka(s,r,a),r.__e!=i&&Ga(r)),Ht.length>t&&Ht.sort($o));Tr.__r=0}function Wa(e,t,n,r,o,i,s,a,l,c,f){var u,h,d,w,g,p=r&&r.__k||Ua,_=t.length;for(n.__d=l,Eh(n,t,p),l=n.__d,u=0;u<_;u++)(d=n.__k[u])!=null&&typeof d!="boolean"&&typeof d!="function"&&(h=d.__i===-1?Hn:p[d.__i]||Hn,d.__i=u,No(e,d,h,o,i,s,a,l,c,f),w=d.__e,d.ref&&h.ref!=d.ref&&(h.ref&&Po(h.ref,null,d),f.push(d.ref,d.__c||w,d)),g==null&&w!=null&&(g=w),65536&d.__u||h.__k===d.__k?l=qa(d,l,e):typeof d.type=="function"&&d.__d!==void 0?l=d.__d:w&&(l=w.nextSibling),d.__d=void 0,d.__u&=-196609);n.__d=l,n.__e=g}function Eh(e,t,n){var r,o,i,s,a,l=t.length,c=n.length,f=c,u=0;for(e.__k=[],r=0;r<l;r++)s=r+u,(o=e.__k[r]=(o=t[r])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?Bn(null,o,null,null,null):$r(o)?Bn(ue,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?Bn(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,a=$h(o,n,s,f),o.__i=a,i=null,a!==-1&&(f--,(i=n[a])&&(i.__u|=131072)),i==null||i.__v===null?(a==-1&&u--,typeof o.type!="function"&&(o.__u|=65536)):a!==s&&(a==s-1?u--:a==s+1?u++:a>s?f>l-s?u+=a-s:u--:a<s&&(a==s-u?u-=a-s:u++),a!==r+u&&(o.__u|=65536))):(i=n[s])&&i.key==null&&i.__e&&(131072&i.__u)==0&&(i.__e==e.__d&&(e.__d=Bt(i)),Do(i,i,!1),n[s]=null,f--);if(f)for(r=0;r<c;r++)(i=n[r])!=null&&(131072&i.__u)==0&&(i.__e==e.__d&&(e.__d=Bt(i)),Do(i,i))}function qa(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=qa(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Bt(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function lt(e,t){return t=t||[],e==null||typeof e=="boolean"||($r(e)?e.some(function(n){lt(n,t)}):t.push(e)),t}function $h(e,t,n,r){var o=e.key,i=e.type,s=n-1,a=n+1,l=t[n];if(l===null||l&&o==l.key&&i===l.type&&(131072&l.__u)==0)return n;if(r>(l!=null&&(131072&l.__u)==0?1:0))for(;s>=0||a<t.length;){if(s>=0){if((l=t[s])&&(131072&l.__u)==0&&o==l.key&&i===l.type)return s;s--}if(a<t.length){if((l=t[a])&&(131072&l.__u)==0&&o==l.key&&i===l.type)return a;a++}}return-1}function Ya(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Sh.test(t)?n:n+"px"}function Mr(e,t,n,r,o){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Ya(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Ya(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=To,e.addEventListener(t,i?Oo:Mo,i)):e.removeEventListener(t,i?Oo:Mo,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Za(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=To++;else if(t.t<n.u)return;return n(T.event?T.event(t):t)}}}function No(e,t,n,r,o,i,s,a,l,c){var f,u,h,d,w,g,p,_,b,x,O,Y,Z,Xe,$e,U,re=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),i=[a=t.__e=n.__e]),(f=T.__b)&&f(t);e:if(typeof re=="function")try{if(_=t.props,b="prototype"in re&&re.prototype.render,x=(f=re.contextType)&&r[f.__c],O=f?x?x.props.value:f.__:r,n.__c?p=(u=t.__c=n.__c).__=u.__E:(b?t.__c=u=new re(_,O):(t.__c=u=new Ke(_,O),u.constructor=re,u.render=Mh),x&&x.sub(u),u.props=_,u.state||(u.state={}),u.context=O,u.__n=r,h=u.__d=!0,u.__h=[],u._sb=[]),b&&u.__s==null&&(u.__s=u.state),b&&re.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=at({},u.__s)),at(u.__s,re.getDerivedStateFromProps(_,u.__s))),d=u.props,w=u.state,u.__v=t,h)b&&re.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),b&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(b&&re.getDerivedStateFromProps==null&&_!==d&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(_,O),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(_,u.__s,O)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=_,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(nt){nt&&(nt.__=t)}),Y=0;Y<u._sb.length;Y++)u.__h.push(u._sb[Y]);u._sb=[],u.__h.length&&s.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(_,u.__s,O),b&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(d,w,g)})}if(u.context=O,u.props=_,u.__P=e,u.__e=!1,Z=T.__r,Xe=0,b){for(u.state=u.__s,u.__d=!1,Z&&Z(t),f=u.render(u.props,u.state,u.context),$e=0;$e<u._sb.length;$e++)u.__h.push(u._sb[$e]);u._sb=[]}else do u.__d=!1,Z&&Z(t),f=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++Xe<25);u.state=u.__s,u.getChildContext!=null&&(r=at(at({},r),u.getChildContext())),b&&!h&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(d,w)),Wa(e,$r(U=f!=null&&f.type===ue&&f.key==null?f.props.children:f)?U:[U],t,n,r,o,i,s,a,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&s.push(u),p&&(u.__E=u.__=null)}catch(nt){if(t.__v=null,l||i!=null){for(t.__u|=l?160:32;a&&a.nodeType===8&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,t.__e=a}else t.__e=n.__e,t.__k=n.__k;T.__e(nt,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Th(n.__e,t,n,r,o,i,s,l,c);(f=T.diffed)&&f(t)}function Ka(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Po(n[r],n[++r],n[++r]);T.__c&&T.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){T.__e(i,o.__v)}})}function Th(e,t,n,r,o,i,s,a,l){var c,f,u,h,d,w,g,p=n.props,_=t.props,b=t.type;if(b==="svg"?o="http://www.w3.org/2000/svg":b==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(c=0;c<i.length;c++)if((d=i[c])&&"setAttribute"in d==!!b&&(b?d.localName===b:d.nodeType===3)){e=d,i[c]=null;break}}if(e==null){if(b===null)return document.createTextNode(_);e=document.createElementNS(o,b,_.is&&_),i=null,a=!1}if(b===null)p===_||a&&e.data===_||(e.data=_);else{if(i=i&&jn.call(e.childNodes),p=n.props||Hn,!a&&i!=null)for(p={},c=0;c<e.attributes.length;c++)p[(d=e.attributes[c]).name]=d.value;for(c in p)if(d=p[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=d;else if(c!=="key"&&!(c in _)){if(c=="value"&&"defaultValue"in _||c=="checked"&&"defaultChecked"in _)continue;Mr(e,c,null,d,o)}}for(c in _)d=_[c],c=="children"?h=d:c=="dangerouslySetInnerHTML"?f=d:c=="value"?w=d:c=="checked"?g=d:c==="key"||a&&typeof d!="function"||p[c]===d||Mr(e,c,d,p[c],o);if(f)a||u&&(f.__html===u.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(u&&(e.innerHTML=""),Wa(e,$r(h)?h:[h],t,n,r,b==="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&Bt(n,0),a,l),i!=null)for(c=i.length;c--;)i[c]!=null&&za(i[c]);a||(c="value",w!==void 0&&(w!==e[c]||b==="progress"&&!w||b==="option"&&w!==p[c])&&Mr(e,c,w,p[c],o),c="checked",g!==void 0&&g!==e[c]&&Mr(e,c,g,p[c],o))}return e}function Po(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){T.__e(o,n)}}function Do(e,t,n){var r,o;if(T.unmount&&T.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Po(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){T.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Do(r[o],t,n||typeof e.type!="function");n||e.__e==null||za(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Mh(e,t,n){return this.constructor(e,n)}function vt(e,t,n){var r,o,i,s;T.__&&T.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],No(t,e=(!r&&n||t).__k=v(ue,null,[e]),o||Hn,Hn,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?jn.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),Ka(i,e,s)}function Fo(e,t){vt(e,t,Fo)}function Ro(e,t,n){var r,o,i,s,a=at({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i]===void 0&&s!==void 0?s[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?jn.call(arguments,2):n),Bn(e.type,a,r||e.key,o||e.ref,null)}function De(e,t){var n={__c:t="__cC"+Va++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[t]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.some(function(a){a.__e=!0,Io(a)})},this.sub=function(s){o.push(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){o&&o.splice(o.indexOf(s),1),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}jn=Ua.slice,T={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},ja=0,Ke.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=at({},this.state),typeof e=="function"&&(e=e(at({},n),this.props)),e&&at(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Io(this))},Ke.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Io(this))},Ke.prototype.render=ue,Ht=[],Ba=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,$o=function(e,t){return e.__v.__b-t.__v.__b},Tr.__r=0,To=0,Mo=Za(!1),Oo=Za(!0),Va=0;var ct,B,Lo,Xa,hn=0,Ja=[],J=T,Qa=J.__b,el=J.__r,tl=J.diffed,nl=J.__c,rl=J.unmount,ol=J.__;function Vt(e,t){J.__h&&J.__h(B,e,hn||t),hn=0;var n=B.__H||(B.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function se(e){return hn=1,Vn(sl,e)}function Vn(e,t,n){var r=Vt(ct++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):sl(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],c=r.t(l,a);l!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=B,!B.u)){var o=function(a,l,c){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(h){return!!h.__c});if(f.every(function(h){return!h.__N}))return!i||i.call(this,a,l,c);var u=!1;return f.forEach(function(h){if(h.__N){var d=h.__[0];h.__=h.__N,h.__N=void 0,d!==h.__[0]&&(u=!0)}}),!(!u&&r.__c.props===a)&&(!i||i.call(this,a,l,c))};B.u=!0;var i=B.shouldComponentUpdate,s=B.componentWillUpdate;B.componentWillUpdate=function(a,l,c){if(this.__e){var f=i;i=void 0,o(a,l,c),i=f}s&&s.call(this,a,l,c)},B.shouldComponentUpdate=o}return r.__N||r.__}function V(e,t){var n=Vt(ct++,3);!J.__s&&Uo(n.__H,t)&&(n.__=e,n.i=t,B.__H.__h.push(n))}function Ut(e,t){var n=Vt(ct++,4);!J.__s&&Uo(n.__H,t)&&(n.__=e,n.i=t,B.__h.push(n))}function A(e){return hn=5,Q(function(){return{current:e}},[])}function jo(e,t,n){hn=6,Ut(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function Q(e,t){var n=Vt(ct++,7);return Uo(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ut(e,t){return hn=8,Q(function(){return e},t)}function de(e){var t=B.context[e.__c],n=Vt(ct++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(B)),t.props.value):e.__}function Ho(e,t){J.useDebugValue&&J.useDebugValue(t?t(e):e)}function Oh(e){var t=Vt(ct++,10),n=se();return t.__=e,B.componentDidCatch||(B.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Bo(){var e=Vt(ct++,11);if(!e.__){for(var t=B.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Ah(){for(var e;e=Ja.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Or),e.__H.__h.forEach(Vo),e.__H.__h=[]}catch(t){e.__H.__h=[],J.__e(t,e.__v)}}J.__b=function(e){B=null,Qa&&Qa(e)},J.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ol&&ol(e,t)},J.__r=function(e){el&&el(e),ct=0;var t=(B=e.__c).__H;t&&(Lo===B?(t.__h=[],B.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Or),t.__h.forEach(Vo),t.__h=[],ct=0)),Lo=B},J.diffed=function(e){tl&&tl(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ja.push(t)!==1&&Xa===J.requestAnimationFrame||((Xa=J.requestAnimationFrame)||Ih)(Ah)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Lo=B=null},J.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Or),n.__h=n.__h.filter(function(r){return!r.__||Vo(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],J.__e(r,n.__v)}}),nl&&nl(e,t)},J.unmount=function(e){rl&&rl(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Or(r)}catch(o){t=o}}),n.__H=void 0,t&&J.__e(t,n.__v))};var il=typeof requestAnimationFrame=="function";function Ih(e){var t,n=function(){clearTimeout(r),il&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);il&&(t=requestAnimationFrame(n))}function Or(e){var t=B,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),B=t}function Vo(e){var t=B;e.__c=e.__(),B=t}function Uo(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function sl(e,t){return typeof t=="function"?t(e):t}function al(e,t){for(var n in t)e[n]=t[n];return e}function zo(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function Ar(e,t){this.props=e,this.context=t}function ll(e,t){function n(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:zo(this.props,o)}function r(o){return this.shouldComponentUpdate=n,v(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Ar.prototype=new Ke).isPureReactComponent=!0,Ar.prototype.shouldComponentUpdate=function(e,t){return zo(this.props,e)||zo(this.state,t)};var cl=T.__b;T.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),cl&&cl(e)};var Nh=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Go(e){function t(n){var r=al({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Nh,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ul=function(e,t){return e==null?null:lt(lt(e).map(t))},fl={map:ul,forEach:ul,count:function(e){return e?lt(e).length:0},only:function(e){var t=lt(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:lt},Ph=T.__e;T.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}Ph(e,t,n,r)};var dl=T.unmount;function hl(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=al({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return hl(r,t,n)})),e}function pl(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return pl(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Un(){this.__u=0,this.t=null,this.__b=null}function wl(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ml(e){var t,n,r;function o(i){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return v(n,i)}return o.displayName="Lazy",o.__f=!0,o}function pn(){this.u=null,this.o=null}T.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),dl&&dl(e)},(Un.prototype=new Ke).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=wl(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=pl(l,l.__c.__P,l.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.t.pop();)c.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Un.prototype.componentWillUnmount=function(){this.t=[]},Un.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=hl(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&v(ue,null,e.fallback);return o&&(o.__u&=-33),[v(ue,null,t.__a?null:e.children),o]};var gl=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Dh(e){return this.getChildContext=function(){return e.context},e.children}function Fh(e){var t=this,n=e.i;t.componentWillUnmount=function(){vt(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),vt(v(Dh,{context:t.context},e.__v),t.l)}function Wo(e,t){var n=v(Fh,{__v:e,i:t});return n.containerInfo=t,n}(pn.prototype=new Ke).__a=function(e){var t=this,n=wl(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),gl(t,e,r)):o()};n?n(i):i()}},pn.prototype.render=function(e){this.u=null,this.o=new Map;var t=lt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},pn.prototype.componentDidUpdate=pn.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){gl(e,n,t)})};var _l=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Rh=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Lh=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,jh=/[A-Z0-9]/g,Hh=typeof document<"u",Bh=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function yl(e,t,n){return t.__k==null&&(t.textContent=""),vt(e,t),typeof n=="function"&&n(),e?e.__c:null}function bl(e,t,n){return Fo(e,t),typeof n=="function"&&n(),e?e.__c:null}Ke.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ke.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var vl=T.event;function Vh(){}function Uh(){return this.cancelBubble}function zh(){return this.defaultPrevented}T.event=function(e){return vl&&(e=vl(e)),e.persist=Vh,e.isPropagationStopped=Uh,e.isDefaultPrevented=zh,e.nativeEvent=e};var qo,Gh={enumerable:!1,configurable:!0,get:function(){return this.class}},xl=T.vnode;T.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||Hh&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var l=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?s="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Bh(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Lh.test(s)&&(s=l):l=s="oninput":i&&Rh.test(s)?s=s.replace(jh,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&o[s=l]&&(s="oninputCapture"),o[s]=a}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=lt(n.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=lt(n.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",Gh)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=_l,xl&&xl(e)};var Cl=T.__r;T.__r=function(e){Cl&&Cl(e),qo=e.__c};var kl=T.diffed;T.diffed=function(e){kl&&kl(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),qo=null};var Sl={ReactCurrentDispatcher:{current:{readContext:function(e){return qo.__n[e.__c].props.value},useCallback:ut,useContext:de,useDebugValue:Ho,useDeferredValue:Ko,useEffect:V,useId:Bo,useImperativeHandle:jo,useInsertionEffect:Jo,useLayoutEffect:Ut,useMemo:Q,useReducer:Vn,useRef:A,useState:se,useSyncExternalStore:Qo,useTransition:Xo}}},Wh="17.0.2";function El(e){return v.bind(null,e)}function wn(e){return!!e&&e.$$typeof===_l}function $l(e){return wn(e)&&e.type===ue}function Tl(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Yo(e){return wn(e)?Ro.apply(null,arguments):e}function Ml(e){return!!e.__k&&(vt(null,e),!0)}function Ol(e){return e&&(e.base||e.nodeType===1&&e)||null}var Al=function(e,t){return e(t)},Il=function(e,t){return e(t)},Nl=ue;function Zo(e){e()}function Ko(e){return e}function Xo(){return[!1,Zo]}var Jo=Ut,Pl=wn;function Qo(e,t){var n=t(),r=se({h:{__:n,v:t}}),o=r[0].h,i=r[1];return Ut(function(){o.__=n,o.v=t,ei(o)&&i({h:o})},[e,n,t]),V(function(){return ei(o)&&i({h:o}),e(function(){ei(o)&&i({h:o})})},[e]),n}function ei(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var E={useState:se,useId:Bo,useReducer:Vn,useEffect:V,useLayoutEffect:Ut,useInsertionEffect:Jo,useTransition:Xo,useDeferredValue:Ko,useSyncExternalStore:Qo,startTransition:Zo,useRef:A,useImperativeHandle:jo,useMemo:Q,useCallback:ut,useContext:de,useDebugValue:Ho,version:"17.0.2",Children:fl,render:yl,hydrate:bl,unmountComponentAtNode:Ml,createPortal:Wo,createElement:v,createContext:De,createFactory:El,cloneElement:Yo,createRef:Ao,Fragment:ue,isValidElement:wn,isElement:Pl,isFragment:$l,isMemo:Tl,findDOMNode:Ol,Component:Ke,PureComponent:Ar,memo:ll,forwardRef:Go,flushSync:Il,unstable_batchedUpdates:Al,StrictMode:Nl,Suspense:Un,SuspenseList:pn,lazy:ml,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Sl};const mn=Object.freeze(Object.defineProperty({__proto__:null,Children:fl,PureComponent:Ar,StrictMode:Nl,Suspense:Un,SuspenseList:pn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Sl,cloneElement:Yo,createFactory:El,createPortal:Wo,default:E,findDOMNode:Ol,flushSync:Il,forwardRef:Go,hydrate:bl,isElement:Pl,isFragment:$l,isMemo:Tl,isValidElement:wn,lazy:ml,memo:ll,render:yl,startTransition:Zo,unmountComponentAtNode:Ml,unstable_batchedUpdates:Al,useDeferredValue:Ko,useInsertionEffect:Jo,useSyncExternalStore:Qo,useTransition:Xo,version:Wh,Component:Ke,Fragment:ue,createContext:De,createElement:v,createRef:Ao,useCallback:ut,useContext:de,useDebugValue:Ho,useEffect:V,useErrorBoundary:Oh,useId:Bo,useImperativeHandle:jo,useLayoutEffect:Ut,useMemo:Q,useReducer:Vn,useRef:A,useState:se},Symbol.toStringTag,{value:"Module"}));class ti extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Specific","Inherited","Default"]}}function qh(){return ku("Basic.Profile.Domain.Config.Api.Admin.Read.OwnershipDto",[],ti,()=>[[],[],[]])}class ni extends Me{constructor(t,n){super(),this.AdminUserManagementEnabled=t,this.Ownership=n}}function Dl(){return os("Basic.Profile.Domain.Config.Api.Admin.Read.ConfigDto",[],ni,()=>[["AdminUserManagementEnabled",ss],["Ownership",qh()]])}function Yh(){return new ni(!1,new ti(2,[]))}const ne=E;class Zh{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,o=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(o)}}}Dispose(){}}class ri extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,ri.prototype)}}class oi{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>oi.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function xt(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new ri);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(lr(n))}});else try{e(t)}catch(n){t.onError(lr(n))}}}function Kh(e,t){return xt(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(lr(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Xh(e){return xt(t=>t.onSuccess(e))}class Jh{Bind(t,n){return Kh(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return xt(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let o=r.next();return this.While(()=>!o.done,this.Delay(()=>{const i=n(o.value);return o=r.next(),i}))}Return(t){return Xh(t)}ReturnFrom(t){return t}TryFinally(t,n){return xt(r=>{t({onSuccess:o=>{n(),r.onSuccess(o)},onError:o=>{n(),r.onError(o)},onCancel:o=>{n(),r.onCancel(o)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return xt(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(i){r.onError(lr(i))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return xt(t=>t.onSuccess(void 0))}}const S=new Jh;function Qh(e){return new Fl(0,[e])}function ep(e){return new Fl(1,[e])}class Fl extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function tp(e){return Qh(e)}function np(e){return ep(e)}function ii(e){}const rp=new Zh;function op(e){return xt(t=>{e({onSuccess:n=>t.onSuccess(tp(n)),onError:n=>t.onSuccess(np(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function ip(e){return xt(t=>e([t.onSuccess,t.onError,t.onCancel]))}function sp(e,t){return lp(e,t)}function ap(e,t){return sp(e,t)}function lp(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const i=new oi;e({onSuccess:t||ii,onError:n||ii,onCancel:r||ii,cancelToken:o||rp,trampoline:i})}class Ir extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}class gn extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class cp{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function up(e,t){t.Subscribe(new cp(e))}class fp{constructor(){this.delegates=[]}_add(t){this.delegates.push(t)}_remove(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}get Publish(){return hp(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const o=n===void 0?t:(r=t,n);this.delegates.forEach(i=>{i(r,o)})}}class dp extends fp{}function hp(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(o,i)=>n.OnNext(i);return e(r),{Dispose(){t(r)}}}}}class pp{constructor(t){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=t&&t>0?t:100,this.AutoReset=!0,this._elapsed=new dp}Elapsed(){return this._elapsed.Publish}get Enabled(){return this._enabled}set Enabled(t){!this._isDisposed&&this._enabled!==t&&(this._enabled=t,this._enabled?this.AutoReset?this._intervalId=setInterval(()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)},this.Interval):this._timeoutId=setTimeout(()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)},this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}function wp(e,t){console.error(pe(e),t)}function mp(e,t){let n,r=new pp(e);r.AutoReset=!1,n=r,up(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Rl(e,t,n){Nn(r=>{try{r(t)}catch(o){e(o)}},n)}function Ct(){return fe()}function Ll(e){return mf(e)}function si(e,t,n,r){return ae(o=>{e(S.Delay(()=>S.Bind(op(t(n)),i=>{const s=i;return s.tag===0&&o(r(s.fields[0])),S.Zero()})))})}function ai(e){mp(1,t=>{ap(e)})}class Nr extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class jl extends L{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class Hl extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class zn extends Me{constructor(t,n,r,o,i,s,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=i,this.overridenResponseType=s,this.timeout=a,this.content=l}}class _n extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Bl extends Me{constructor(t,n,r,o,i,s){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=o,this.responseHeaders=i,this.content=s}}function Vl(e){return new jl("Content-Type",e)}function li(e){return new jl("Authorization",e)}const zt=new zn("",new Nr(0,[]),fe(),!1,void 0,void 0,void 0,new Hl(0,[]));new Bl(0,"","","",bo({Compare:sr}),new _n(0,[""]));function Ul(e,t){return Qu(t)?new Array(0):As(t,[e],void 0,0)}function gp(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}function ci(e){return new zn(e,zt.method,zt.headers,zt.withCredentials,zt.overridenMimeType,zt.overridenResponseType,zt.timeout,zt.content)}function ui(e,t){return new zn(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Gn(e,t){return new zn(t.url,t.method,ho(t.headers,ae(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function _p(e,t){return new zn(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function fi(e){return ip(t=>{const n=new XMLHttpRequest;n.open(gp(e.method),e.url),n.onreadystatechange=()=>{let l,c,f,u,h,d,w;n.readyState===4&&t[0]((l=(c=n.responseType,c===""||c==="text"?n.responseText:""),f=n.status|0,u=n.responseType,h=(d=n.responseType,d===""?new _n(0,[n.responseText]):d==="text"?new _n(0,[n.responseText]):d==="arraybuffer"?new _n(2,[n.response]):d==="blob"?new _n(1,[n.response]):new _n(3,[n.response])),w=Pd(cf(g=>{const p=M(Ul(":",g));if(!P(p))return[k(p).toLocaleLowerCase(),Dt(":",I(p)).trim()]},Ul(`\r
24
+ `,n.getAllResponseHeaders())),{Compare:sr}),new Bl(f,l,u,n.responseURL,w,h)))};const r=oe(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(l.fields[0],l.fields[1])}}finally{G(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const l=o;n.overrideMimeType(l)}const i=e.overridenResponseType;if(i!=null)switch(i.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const s=e.timeout;if(s!=null){const l=s|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send(pe(a.fields[0]));break}case 3:{n.send(pe(a.fields[0]));break}case 2:{n.send(pe(a.fields[0]));break}default:n.send()}})}class kt extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["AccessDenied","Serialization","Others"]}}class yp{constructor(t){this.accessToken=t}}function bp(e){return new yp(e)}function zl(e,t){return S.Delay(()=>{let n,r;const o=fi((n=ui(new Nr(0,[]),ci(t)),Gn(li(`Bearer ${e.accessToken}`),n)));return r=S.Bind(o,i=>S.Return(new m(0,[i]))),S.Bind(r,i=>{const s=i;if(s.tag===1)return S.Return(new m(1,[s.fields[0]]));{const a=s.fields[0];switch(a.statusCode|0){case 200:return S.Return(new m(0,[a.responseText]));case 403:return S.Return(new m(1,[new kt(0,[])]));default:return S.Return(new m(1,[new kt(2,[])]))}}})})}function Gl(e,t,n){return S.Delay(()=>{let r,o,i;const s=fi(_p(new Hl(1,[n]),(r=(o=ui(new Nr(2,[]),ci(t)),Gn(li(`Bearer ${e.accessToken}`),o)),Gn(Vl("application/json"),r))));return i=S.Bind(s,a=>S.Return(new m(0,[a]))),S.Bind(i,a=>{const l=a;if(l.tag===1)return S.Return(new m(1,[l.fields[0]]));switch(l.fields[0].statusCode|0){case 200:return S.Return(new m(0,[void 0]));case 403:return S.Return(new m(1,[new kt(0,[])]));default:return S.Return(new m(1,[new kt(2,[])]))}})})}function Wl(e,t){return S.Delay(()=>{let n,r,o;const i=fi((n=(r=ui(new Nr(4,[]),ci(t)),Gn(li(`Bearer ${e.accessToken}`),r)),Gn(Vl("application/json"),n)));return o=S.Bind(i,s=>S.Return(new m(0,[s]))),S.Bind(o,s=>{const a=s;if(a.tag===1)return S.Return(new m(1,[a.fields[0]]));switch(a.fields[0].statusCode|0){case 200:return S.Return(new m(0,[void 0]));case 403:return S.Return(new m(1,[new kt(0,[])]));default:return S.Return(new m(1,[new kt(2,[])]))}})})}function vp(e){return e}const ql=Te();function Pr(e){return Array.from(e)}function xp(e){return wr(e,"O")}function Cp(e){return zf(e)}function kp(){return Te()}function Sp(e){return wr(e,"O")}function Yl(e,t){return JSON.stringify(t,void 0,pe(e))}function Ep(e){return t=>rf(of(e,t),()=>ql)}function Zl(e,t,n,r){let o;const i=new Ee(Te());let s;const a=W(r);s=a===""?e:aa(a,i,e);let l;if(ps(r)){const c=Rt(f=>{const u=js(t,Qt(f)),h=ft(s,t,n,f[1]);return d=>w=>{const g=Mu(d,f);return(!n||n&&g!=null)&&(w[u]=h(g)),w}},$n(r));l=f=>kr((u,h)=>h(f)(u),{},c)}else if(hs(r))l=c=>{const f=Tu(c,r),u=f[0],h=f[1],d=h.length|0;if(d===0)return Qt(u);{const w=d|0,g=ws(u),p=yr(new Array(w+1),0,w+1,null);Qe(p,0,Qt(u));for(let _=1;_<=w;_++){const b=ft(s,t,n,q(_-1,g)[1]);Qe(p,_,b(q(_-1,h)))}return p}};else throw new Error((o=W(r),rn(mt(`Cannot generate auto encoder for %s. Please pass an extra encoder.
25
25
 
26
26
  Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return i.contents=l,l}function ft(e,t,n,r){const o=W(r),i=la(o,e);if(i==null)if(as(r)){const s=ft(e,t,n,En(r));return a=>Pr(Ie(s,a))}else if(io(r))switch(W(us(r))){case"System.SByte":return a=>a;case"System.Byte":return a=>a;case"System.Int16":return a=>a;case"System.UInt16":return a=>a;case"System.Int32":return a=>a;case"System.UInt32":return a=>a;default:{const a=W(r);return Ms(mt(`Cannot generate auto encoder for %s.
27
27
  Thoth.Json.Net only support the following enum types:
@@ -35,10 +35,10 @@ Thoth.Json.Net only support the following enum types:
35
35
  If you can't use one of these types, please pass an extra encoder.
36
36
 
37
37
  Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders
38
- `))(a)}}else if(ls(r))if(so(r)){const s=Rt(a=>ft(e,t,n,a),ds(r));return a=>Pr(ud((l,c)=>q(l,s)(c),a))}else{const s=W(cs(r));if(s==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new Gc(()=>Ep(ft(e,t,n,q(0,Oe(r)))));return l=>l==null?ql:a.Value(l)}else if(s==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||s==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||s==="System.Collections.Generic.IEnumerable`1[System.Object]"){const a=ft(e,t,n,q(0,Oe(r)));return l=>Pr(Ie(a,l))}else if(s==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=q(0,Oe(r)),l=ft(e,t,n,q(1,Oe(r)));if(W(a)==="System.String"||W(a)==="System.Guid")return c=>Cr((f,u)=>{const h=u;return f[h[0]]=l(h[1]),f},{},c);{let c;return c=ft(e,t,n,a),u=>Pr(Ie(h=>{const d=h;return[c(d[0]),l(d[1])]},u))}}else return Zl(e,t,n,r)}else switch(o){case"System.Boolean":return s=>s;case"Microsoft.FSharp.Core.Unit":return Cp;case"System.String":return s=>s;case"System.Char":return s=>s;case"System.SByte":return s=>s;case"System.Byte":return s=>s;case"System.Int16":return s=>s;case"System.UInt16":return s=>s;case"System.Int32":return s=>s;case"System.UInt32":return s=>s;case"System.Double":return s=>s;case"System.Single":return s=>s;case"System.DateTime":return Sp;case"System.DateTimeOffset":return xp;case"System.TimeSpan":return kp;case"System.Guid":return vp;case"System.Object":return s=>s;default:return Zl(e,t,n,r)}else{const s=i;return a=>s.contents(a)}}function $p(e){return e!=null?ca((t,n)=>new Ee(n[0]),e.Coders):bo({Compare:sr})}function Kl(e,t,n,r){const o=co(t,new jt(0,[])),i=co(r,!0);return ft($p(n),o,i,e)}class Tp extends Me{constructor(t){super(),this.AdminUserManagementEnabled=t}}new Tp(!1);class Xl extends Me{constructor(t){super(),this.AdminUserManagementEnabled=t}}function Jl(){return os("Basic.Profile.Domain.Config.Api.Admin.Write.ConfigPutDto",[],Xl,()=>[["AdminUserManagementEnabled",ss]])}class Mp{constructor(t,n){this.backendUrl=t,this.httpClient=bp(n)}}function Op(e,t){return new Mp(e,t)}function Ap(e,t){let n;const r=zl(e.httpClient,di(e,t));return n=S.Bind(r,o=>{const i=o;return i.tag===1?S.Return(new m(1,[i.fields[0]])):S.Delay(()=>{let s;const a=Co(K(So(Dl(),new jt(1,[]),void 0)),i.fields[0]);return s=a.tag===1?new m(1,[new Ct(1,[a.fields[0]])]):new m(0,[a.fields[0]]),S.Return(s)})}),S.Bind(n,o=>{let i;const s=o;return i=s.tag===1?new m(1,[yn(e,"Failed to fetch partner's config",s.fields[0])]):new m(0,[s.fields[0]]),S.Return(i)})}function Ip(e,t,n){return S.Delay(()=>{const r=Yl(0,Kl(Jl(),new jt(1,[]),void 0,void 0)(n)),o=Gl(e.httpClient,di(e,t),r);return S.Bind(o,i=>{let s;const a=i;return s=a.tag===1?new m(1,[yn(e,"Failed to update partner's config",a.fields[0])]):new m(0,[a.fields[0]]),S.Return(s)})})}function Np(e,t){const n=Wl(e.httpClient,di(e,t));return S.Bind(n,r=>{let o;const i=r;return o=i.tag===1?new m(1,[yn(e,"Failed to delete partner's config",i.fields[0])]):new m(0,[i.fields[0]]),S.Return(o)})}function Pp(e,t,n){let r;const o=zl(e.httpClient,hi(e,t,n));return r=S.Bind(o,i=>{const s=i;return s.tag===1?S.Return(new m(1,[s.fields[0]])):S.Delay(()=>{let a;const l=Co(K(So(Dl(),new jt(1,[]),void 0)),s.fields[0]);return a=l.tag===1?new m(1,[new Ct(1,[l.fields[0]])]):new m(0,[l.fields[0]]),S.Return(a)})}),S.Bind(r,i=>{let s;const a=i;return s=a.tag===1?new m(1,[yn(e,"Failed to fetch account's config",a.fields[0])]):new m(0,[a.fields[0]]),S.Return(s)})}function Dp(e,t,n,r){return S.Delay(()=>{const o=Yl(0,Kl(Jl(),new jt(1,[]),void 0,void 0)(r)),i=Gl(e.httpClient,hi(e,t,n),o);return S.Bind(i,s=>{let a;const l=s;return a=l.tag===1?new m(1,[yn(e,"Failed to update account's config",l.fields[0])]):new m(0,[l.fields[0]]),S.Return(a)})})}function Fp(e,t,n){const r=Wl(e.httpClient,hi(e,t,n));return S.Bind(r,o=>{let i;const s=o;return i=s.tag===1?new m(1,[yn(e,"Failed to delete account's config",s.fields[0])]):new m(0,[s.fields[0]]),S.Return(i)})}function Rp(e,t,n){return n==null?Ap(e,t):Pp(e,t,n)}function Lp(e,t,n,r){return n==null?Ip(e,t,r):Dp(e,t,n,r)}function jp(e,t,n){return n==null?Np(e,t):Fp(e,t,n)}function di(e,t){return`${e.backendUrl}/profiles/admin/partners/${t}/config`}function hi(e,t,n){return`${e.backendUrl}/profiles/admin/partners/${t}/accounts/${n}/config`}function yn(e,t,n){switch(n.tag){case 1:return n.fields[0];case 2:return t;default:return"Access is denied"}}class pi extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["View","Edit"]}}function Dr(e){return e.tag!==0}class Hp extends L{constructor(){super(),this.tag=0,this.fields=[]}cases(){return["Reset"]}}class tt extends Me{constructor(t,n,r,o){super(),this.Mode=t,this.CurrentConfirmationDialog=n,this.Config=r,this.Error=o}}function wi(e){const t=e.Config;let n,r;switch(t.tag===2&&t.fields[0].tag===0?(n=0,r=t.fields[0].fields[0]):n=1,n){case 0:return r;default:return Yh()}}class he extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetMode","Init","FetchConfig","SetAdminUserManagementEnabled","UpdateConfig","DeleteConfig","ShowResetConfirmationDialog","HideConfirmationDialog","CancelEdit"]}}function Bp(){return new he(2,[new gn(0,[void 0])])}function Vp(){return new he(4,[new gn(0,[void 0])])}function Up(){return new he(5,[new gn(0,[void 0])])}const zp=[new tt(new pi(0,[]),void 0,new Ir(0,[]),void 0),ae(e=>{e(new he(1,[]))})];function Gp(e,t,n,r,o){let i;switch(r.tag){case 0:return[new tt(r.fields[0],o.CurrentConfirmationDialog,o.Config,o.Error),kt()];case 2:return r.fields[0].tag===1?[new tt(o.Mode,o.CurrentConfirmationDialog,new Ir(2,[r.fields[0].fields[0]]),o.Error),kt()]:[new tt(o.Mode,o.CurrentConfirmationDialog,new Ir(1,[]),o.Error),si(s=>{ai(s)},()=>Rp(n,e,t),void 0,s=>new he(2,[new gn(1,[s])]))];case 3:return[new tt(o.Mode,o.CurrentConfirmationDialog,new Ir(2,[new m(0,[new ni(r.fields[0],wi(o).Ownership)])]),o.Error),kt()];case 4:if(r.fields[0].tag===1)return r.fields[0].fields[0].tag===1?[new tt(o.Mode,o.CurrentConfirmationDialog,o.Config,r.fields[0].fields[0].fields[0]),kt()]:[o,ae(s=>{s(new he(1,[]))})];{const s=new Xl(wi(o).AdminUserManagementEnabled);return[o,si(a=>{ai(a)},()=>Lp(n,e,t,s),void 0,a=>new he(4,[new gn(1,[a])]))]}case 5:return r.fields[0].tag===1?r.fields[0].fields[0].tag===1?[new tt(o.Mode,o.CurrentConfirmationDialog,o.Config,r.fields[0].fields[0].fields[0]),kt()]:[o,ae(s=>{s(new he(1,[]))})]:[o,Ll([ae(s=>{s(new he(7,[]))}),si(s=>{ai(s)},()=>jp(n,e,t),void 0,s=>new he(5,[new gn(1,[s])]))])];case 6:return[new tt(o.Mode,new Hp,o.Config,o.Error),kt()];case 7:return[new tt(o.Mode,void 0,o.Config,o.Error),kt()];case 8:return[o,ae(s=>{s(new he(1,[]))})];default:return[new tt(o.Mode,void 0,o.Config,void 0),Ll([ae(s=>{s(new he(0,[new pi(0,[])]))}),(i=Bp(),ae(s=>{s(i)}))])]}}const Wp=v("svg",te(M([["className","h-6 w-6 text-red-600"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox",0+" "+0+" "+24+" "+24],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=ae(v("path",te(M([["strokeLinecap","round"],["strokeLinejoin","round"],(e="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z",["d",e])]))));return["children",ne.Children.toArray(Array.from(t))]})()]))),qp=v("svg",te(M([["className","w-6 h-6"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox",0+" "+0+" "+24+" "+24],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=ae(v("path",te(M([["strokeLinecap","round"],["strokeLinejoin","round"],(e="M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487zm0 0L19.5 7.125",["d",e])]))));return["children",ne.Children.toArray(Array.from(t))]})()]))),Yp=v("svg",te(M([["className","w-6 h-6"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox",0+" "+0+" "+24+" "+24],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=ae(v("path",te(M([["strokeLinecap","round"],["strokeLinejoin","round"],(e="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0",["d",e])]))));return["children",ne.Children.toArray(Array.from(t))]})()])));var Zp=Object.defineProperty,Kp=(e,t,n)=>t in e?Zp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mi=(e,t,n)=>(Kp(e,typeof t!="symbol"?t+"":t,n),n);class Xp{constructor(){mi(this,"current",this.detect()),mi(this,"handoffState","pending"),mi(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}}let dt=new Xp,ke=(e,t)=>{dt.isServer?V(e,t):Ut(e,t)};function ht(e){let t=A(e);return ke(()=>{t.current=e},[e]),t}let F=function(e){let t=ht(e);return E.useCallback((...n)=>t.current(...n),[t])};function Jp(e,t,n){let[r,o]=se(n),i=e!==void 0,s=A(i),a=A(!1),l=A(!1);return i&&!s.current&&!a.current?(a.current=!0,s.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!i&&s.current&&!l.current&&(l.current=!0,s.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[i?e:r,F(c=>(i||o(c),t?.(c)))]}function Fr(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Gt(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Fr(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=Gt();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function Rr(){let[e]=se(Gt);return V(()=>()=>e.dispose(),[e]),e}function Qp(){let e=typeof document>"u";return"useSyncExternalStore"in mn?(t=>t.useSyncExternalStore)(mn)(()=>()=>{},()=>!1,()=>!e):!1}function bn(){let e=Qp(),[t,n]=se(dt.isHandoffComplete);return t&&dt.isHandoffComplete===!1&&n(!1),V(()=>{t!==!0&&n(!0)},[t]),V(()=>dt.handoff(),[]),e?!1:t}var Ql;let St=(Ql=E.useId)!=null?Ql:function(){let e=bn(),[t,n]=E.useState(e?()=>dt.nextId():null);return ke(()=>{t===null&&n(dt.nextId())},[t]),t!=null?""+t:void 0};function ge(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,ge),r}function ec(e){return dt.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let gi=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Wt=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Wt||{}),tc=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(tc||{}),e0=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(e0||{});function t0(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(gi)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var nc=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(nc||{});function n0(e,t=0){var n;return e===((n=ec(e))==null?void 0:n.body)?!1:ge(t,{[0](){return e.matches(gi)},[1](){let r=e;for(;r!==null;){if(r.matches(gi))return!0;r=r.parentElement}return!1}})}var r0=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(r0||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function qt(e){e?.focus({preventScroll:!0})}let o0=["textarea","input"].join(",");function i0(e){var t,n;return(n=(t=e?.matches)==null?void 0:t.call(e,o0))!=null?n:!1}function s0(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let s=o.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Lr(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?n?s0(e):e:t0(e);o.length>0&&s.length>1&&(s=s.filter(d=>!o.includes(d))),r=r??i.activeElement;let a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,s.indexOf(r))-1;if(t&4)return Math.max(0,s.indexOf(r))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=t&32?{preventScroll:!0}:{},f=0,u=s.length,h;do{if(f>=u||f+u<=0)return 0;let d=l+f;if(t&16)d=(d+u)%u;else{if(d<0)return 3;if(d>=u)return 1}h=s[d],h?.focus(c),f+=a}while(h!==i.activeElement);return t&6&&i0(h)&&h.select(),2}function rc(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function a0(){return/Android/gi.test(window.navigator.userAgent)}function l0(){return rc()||a0()}function jr(e,t,n){let r=ht(t);V(()=>{function o(i){r.current(i)}return document.addEventListener(e,o,n),()=>document.removeEventListener(e,o,n)},[e,n])}function oc(e,t,n){let r=ht(t);V(()=>{function o(i){r.current(i)}return window.addEventListener(e,o,n),()=>window.removeEventListener(e,o,n)},[e,n])}function c0(e,t,n=!0){let r=A(!1);V(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function o(s,a){if(!r.current||s.defaultPrevented)return;let l=a(s);if(l===null||!l.getRootNode().contains(l)||!l.isConnected)return;let c=function f(u){return typeof u=="function"?f(u()):Array.isArray(u)||u instanceof Set?u:[u]}(e);for(let f of c){if(f===null)continue;let u=f instanceof HTMLElement?f:f.current;if(u!=null&&u.contains(l)||s.composed&&s.composedPath().includes(u))return}return!n0(l,nc.Loose)&&l.tabIndex!==-1&&s.preventDefault(),t(s,l)}let i=A(null);jr("pointerdown",s=>{var a,l;r.current&&(i.current=((l=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:l[0])||s.target)},!0),jr("mousedown",s=>{var a,l;r.current&&(i.current=((l=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:l[0])||s.target)},!0),jr("click",s=>{l0()||i.current&&(o(s,()=>i.current),i.current=null)},!0),jr("touchend",s=>o(s,()=>s.target instanceof HTMLElement?s.target:null),!0),oc("blur",s=>o(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Wn(...e){return Q(()=>ec(...e),[...e])}function ic(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function u0(e,t){let[n,r]=se(()=>ic(e));return ke(()=>{r(ic(e))},[e.type,e.as]),ke(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let sc=Symbol();function f0(e,t=!0){return Object.assign(e,{[sc]:t})}function Fe(...e){let t=A(e);V(()=>{t.current=e},[e]);let n=F(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||r?.[sc])?void 0:n}function _i(e,t){let n=A([]),r=F(e);V(()=>{let o=[...n.current];for(let[i,s]of t.entries())if(n.current[i]!==s){let a=r(t,o);return n.current=t,a}},[r,...t])}function Hr(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var Br=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Br||{}),Et=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Et||{});function Ce({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s,mergeRefs:a}){a=a??d0;let l=ac(t,e);if(i)return Vr(l,n,r,s,a);let c=o??0;if(c&2){let{static:f=!1,...u}=l;if(f)return Vr(u,n,r,s,a)}if(c&1){let{unmount:f=!0,...u}=l;return ge(f?0:1,{[0](){return null},[1](){return Vr({...u,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return Vr(l,n,r,s,a)}function Vr(e,t={},n,r,o){let{as:i=n,children:s,refName:a="ref",...l}=bi(e,["unmount","static"]),c=e.ref!==void 0?{[a]:e.ref}:{},f=typeof s=="function"?s(t):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t));let u={};if(t){let h=!1,d=[];for(let[w,g]of Object.entries(t))typeof g=="boolean"&&(h=!0),g===!0&&d.push(w);h&&(u["data-headlessui-state"]=d.join(" "))}if(i===ue&&Object.keys(yi(l)).length>0){if(!wn(f)||Array.isArray(f)&&f.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(g=>` - ${g}`).join(`
38
+ `))(a)}}else if(ls(r))if(so(r)){const s=Rt(a=>ft(e,t,n,a),ds(r));return a=>Pr(ud((l,c)=>q(l,s)(c),a))}else{const s=W(cs(r));if(s==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new Gc(()=>Ep(ft(e,t,n,q(0,Oe(r)))));return l=>l==null?ql:a.Value(l)}else if(s==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||s==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||s==="System.Collections.Generic.IEnumerable`1[System.Object]"){const a=ft(e,t,n,q(0,Oe(r)));return l=>Pr(Ie(a,l))}else if(s==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=q(0,Oe(r)),l=ft(e,t,n,q(1,Oe(r)));if(W(a)==="System.String"||W(a)==="System.Guid")return c=>kr((f,u)=>{const h=u;return f[h[0]]=l(h[1]),f},{},c);{let c;return c=ft(e,t,n,a),u=>Pr(Ie(h=>{const d=h;return[c(d[0]),l(d[1])]},u))}}else return Zl(e,t,n,r)}else switch(o){case"System.Boolean":return s=>s;case"Microsoft.FSharp.Core.Unit":return kp;case"System.String":return s=>s;case"System.Char":return s=>s;case"System.SByte":return s=>s;case"System.Byte":return s=>s;case"System.Int16":return s=>s;case"System.UInt16":return s=>s;case"System.Int32":return s=>s;case"System.UInt32":return s=>s;case"System.Double":return s=>s;case"System.Single":return s=>s;case"System.DateTime":return Sp;case"System.DateTimeOffset":return xp;case"System.TimeSpan":return Cp;case"System.Guid":return vp;case"System.Object":return s=>s;default:return Zl(e,t,n,r)}else{const s=i;return a=>s.contents(a)}}function $p(e){return e!=null?ca((t,n)=>new Ee(n[0]),e.Coders):bo({Compare:sr})}function Kl(e,t,n,r){const o=co(t,new jt(0,[])),i=co(r,!0);return ft($p(n),o,i,e)}class Tp extends Me{constructor(t){super(),this.AdminUserManagementEnabled=t}}new Tp(!1);class Xl extends Me{constructor(t){super(),this.AdminUserManagementEnabled=t}}function Jl(){return os("Basic.Profile.Domain.Config.Api.Admin.Write.ConfigPutDto",[],Xl,()=>[["AdminUserManagementEnabled",ss]])}class Mp{constructor(t,n){this.backendUrl=t,this.httpClient=bp(n)}}function Op(e,t){return new Mp(e,t)}function Ap(e,t){let n;const r=zl(e.httpClient,di(e,t));return n=S.Bind(r,o=>{const i=o;return i.tag===1?S.Return(new m(1,[i.fields[0]])):S.Delay(()=>{let s;const a=ko(K(So(Dl(),new jt(1,[]),void 0)),i.fields[0]);return s=a.tag===1?new m(1,[new kt(1,[a.fields[0]])]):new m(0,[a.fields[0]]),S.Return(s)})}),S.Bind(n,o=>{let i;const s=o;return i=s.tag===1?new m(1,[yn(e,"Failed to fetch partner's config",s.fields[0])]):new m(0,[s.fields[0]]),S.Return(i)})}function Ip(e,t,n){return S.Delay(()=>{const r=Yl(0,Kl(Jl(),new jt(1,[]),void 0,void 0)(n)),o=Gl(e.httpClient,di(e,t),r);return S.Bind(o,i=>{let s;const a=i;return s=a.tag===1?new m(1,[yn(e,"Failed to update partner's config",a.fields[0])]):new m(0,[a.fields[0]]),S.Return(s)})})}function Np(e,t){const n=Wl(e.httpClient,di(e,t));return S.Bind(n,r=>{let o;const i=r;return o=i.tag===1?new m(1,[yn(e,"Failed to delete partner's config",i.fields[0])]):new m(0,[i.fields[0]]),S.Return(o)})}function Pp(e,t,n){let r;const o=zl(e.httpClient,hi(e,t,n));return r=S.Bind(o,i=>{const s=i;return s.tag===1?S.Return(new m(1,[s.fields[0]])):S.Delay(()=>{let a;const l=ko(K(So(Dl(),new jt(1,[]),void 0)),s.fields[0]);return a=l.tag===1?new m(1,[new kt(1,[l.fields[0]])]):new m(0,[l.fields[0]]),S.Return(a)})}),S.Bind(r,i=>{let s;const a=i;return s=a.tag===1?new m(1,[yn(e,"Failed to fetch account's config",a.fields[0])]):new m(0,[a.fields[0]]),S.Return(s)})}function Dp(e,t,n,r){return S.Delay(()=>{const o=Yl(0,Kl(Jl(),new jt(1,[]),void 0,void 0)(r)),i=Gl(e.httpClient,hi(e,t,n),o);return S.Bind(i,s=>{let a;const l=s;return a=l.tag===1?new m(1,[yn(e,"Failed to update account's config",l.fields[0])]):new m(0,[l.fields[0]]),S.Return(a)})})}function Fp(e,t,n){const r=Wl(e.httpClient,hi(e,t,n));return S.Bind(r,o=>{let i;const s=o;return i=s.tag===1?new m(1,[yn(e,"Failed to delete account's config",s.fields[0])]):new m(0,[s.fields[0]]),S.Return(i)})}function Rp(e,t,n){return n==null?Ap(e,t):Pp(e,t,n)}function Lp(e,t,n,r){return n==null?Ip(e,t,r):Dp(e,t,n,r)}function jp(e,t,n){return n==null?Np(e,t):Fp(e,t,n)}function di(e,t){return`${e.backendUrl}/profiles/admin/partners/${t}/config`}function hi(e,t,n){return`${e.backendUrl}/profiles/admin/partners/${t}/accounts/${n}/config`}function yn(e,t,n){switch(n.tag){case 1:return n.fields[0];case 2:return t;default:return"Access is denied"}}class pi extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["View","Edit"]}}function Dr(e){return e.tag!==0}class Hp extends L{constructor(){super(),this.tag=0,this.fields=[]}cases(){return["Reset"]}}class tt extends Me{constructor(t,n,r,o){super(),this.Mode=t,this.CurrentConfirmationDialog=n,this.Config=r,this.Error=o}}function wi(e){const t=e.Config;let n,r;switch(t.tag===2&&t.fields[0].tag===0?(n=0,r=t.fields[0].fields[0]):n=1,n){case 0:return r;default:return Yh()}}class he extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetMode","Init","FetchConfig","SetAdminUserManagementEnabled","UpdateConfig","DeleteConfig","ShowResetConfirmationDialog","HideConfirmationDialog","CancelEdit"]}}function Bp(){return new he(2,[new gn(0,[void 0])])}function Vp(){return new he(4,[new gn(0,[void 0])])}function Up(){return new he(5,[new gn(0,[void 0])])}const zp=[new tt(new pi(0,[]),void 0,new Ir(0,[]),void 0),ae(e=>{e(new he(1,[]))})];function Gp(e,t,n,r,o){let i;switch(r.tag){case 0:return[new tt(r.fields[0],o.CurrentConfirmationDialog,o.Config,o.Error),Ct()];case 2:return r.fields[0].tag===1?[new tt(o.Mode,o.CurrentConfirmationDialog,new Ir(2,[r.fields[0].fields[0]]),o.Error),Ct()]:[new tt(o.Mode,o.CurrentConfirmationDialog,new Ir(1,[]),o.Error),si(s=>{ai(s)},()=>Rp(n,e,t),void 0,s=>new he(2,[new gn(1,[s])]))];case 3:return[new tt(o.Mode,o.CurrentConfirmationDialog,new Ir(2,[new m(0,[new ni(r.fields[0],wi(o).Ownership)])]),o.Error),Ct()];case 4:if(r.fields[0].tag===1)return r.fields[0].fields[0].tag===1?[new tt(o.Mode,o.CurrentConfirmationDialog,o.Config,r.fields[0].fields[0].fields[0]),Ct()]:[o,ae(s=>{s(new he(1,[]))})];{const s=new Xl(wi(o).AdminUserManagementEnabled);return[o,si(a=>{ai(a)},()=>Lp(n,e,t,s),void 0,a=>new he(4,[new gn(1,[a])]))]}case 5:return r.fields[0].tag===1?r.fields[0].fields[0].tag===1?[new tt(o.Mode,o.CurrentConfirmationDialog,o.Config,r.fields[0].fields[0].fields[0]),Ct()]:[o,ae(s=>{s(new he(1,[]))})]:[o,Ll([ae(s=>{s(new he(7,[]))}),si(s=>{ai(s)},()=>jp(n,e,t),void 0,s=>new he(5,[new gn(1,[s])]))])];case 6:return[new tt(o.Mode,new Hp,o.Config,o.Error),Ct()];case 7:return[new tt(o.Mode,void 0,o.Config,o.Error),Ct()];case 8:return[o,ae(s=>{s(new he(1,[]))})];default:return[new tt(o.Mode,void 0,o.Config,void 0),Ll([ae(s=>{s(new he(0,[new pi(0,[])]))}),(i=Bp(),ae(s=>{s(i)}))])]}}const Wp=v("svg",te(M([["className","h-6 w-6 text-red-600"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox",0+" "+0+" "+24+" "+24],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=ae(v("path",te(M([["strokeLinecap","round"],["strokeLinejoin","round"],(e="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z",["d",e])]))));return["children",ne.Children.toArray(Array.from(t))]})()]))),qp=v("svg",te(M([["className","w-6 h-6"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox",0+" "+0+" "+24+" "+24],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=ae(v("path",te(M([["strokeLinecap","round"],["strokeLinejoin","round"],(e="M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487zm0 0L19.5 7.125",["d",e])]))));return["children",ne.Children.toArray(Array.from(t))]})()]))),Yp=v("svg",te(M([["className","w-6 h-6"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox",0+" "+0+" "+24+" "+24],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=ae(v("path",te(M([["strokeLinecap","round"],["strokeLinejoin","round"],(e="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0",["d",e])]))));return["children",ne.Children.toArray(Array.from(t))]})()])));var Zp=Object.defineProperty,Kp=(e,t,n)=>t in e?Zp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mi=(e,t,n)=>(Kp(e,typeof t!="symbol"?t+"":t,n),n);class Xp{constructor(){mi(this,"current",this.detect()),mi(this,"handoffState","pending"),mi(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}}let dt=new Xp,Ce=(e,t)=>{dt.isServer?V(e,t):Ut(e,t)};function ht(e){let t=A(e);return Ce(()=>{t.current=e},[e]),t}let F=function(e){let t=ht(e);return E.useCallback((...n)=>t.current(...n),[t])};function Jp(e,t,n){let[r,o]=se(n),i=e!==void 0,s=A(i),a=A(!1),l=A(!1);return i&&!s.current&&!a.current?(a.current=!0,s.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!i&&s.current&&!l.current&&(l.current=!0,s.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[i?e:r,F(c=>(i||o(c),t?.(c)))]}function Fr(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Gt(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Fr(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=Gt();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function Rr(){let[e]=se(Gt);return V(()=>()=>e.dispose(),[e]),e}function Qp(){let e=typeof document>"u";return"useSyncExternalStore"in mn?(t=>t.useSyncExternalStore)(mn)(()=>()=>{},()=>!1,()=>!e):!1}function bn(){let e=Qp(),[t,n]=se(dt.isHandoffComplete);return t&&dt.isHandoffComplete===!1&&n(!1),V(()=>{t!==!0&&n(!0)},[t]),V(()=>dt.handoff(),[]),e?!1:t}var Ql;let St=(Ql=E.useId)!=null?Ql:function(){let e=bn(),[t,n]=E.useState(e?()=>dt.nextId():null);return Ce(()=>{t===null&&n(dt.nextId())},[t]),t!=null?""+t:void 0};function ge(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,ge),r}function ec(e){return dt.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let gi=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Wt=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Wt||{}),tc=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(tc||{}),e0=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(e0||{});function t0(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(gi)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var nc=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(nc||{});function n0(e,t=0){var n;return e===((n=ec(e))==null?void 0:n.body)?!1:ge(t,{[0](){return e.matches(gi)},[1](){let r=e;for(;r!==null;){if(r.matches(gi))return!0;r=r.parentElement}return!1}})}var r0=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(r0||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function qt(e){e?.focus({preventScroll:!0})}let o0=["textarea","input"].join(",");function i0(e){var t,n;return(n=(t=e?.matches)==null?void 0:t.call(e,o0))!=null?n:!1}function s0(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let s=o.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Lr(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?n?s0(e):e:t0(e);o.length>0&&s.length>1&&(s=s.filter(d=>!o.includes(d))),r=r??i.activeElement;let a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,s.indexOf(r))-1;if(t&4)return Math.max(0,s.indexOf(r))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=t&32?{preventScroll:!0}:{},f=0,u=s.length,h;do{if(f>=u||f+u<=0)return 0;let d=l+f;if(t&16)d=(d+u)%u;else{if(d<0)return 3;if(d>=u)return 1}h=s[d],h?.focus(c),f+=a}while(h!==i.activeElement);return t&6&&i0(h)&&h.select(),2}function rc(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function a0(){return/Android/gi.test(window.navigator.userAgent)}function l0(){return rc()||a0()}function jr(e,t,n){let r=ht(t);V(()=>{function o(i){r.current(i)}return document.addEventListener(e,o,n),()=>document.removeEventListener(e,o,n)},[e,n])}function oc(e,t,n){let r=ht(t);V(()=>{function o(i){r.current(i)}return window.addEventListener(e,o,n),()=>window.removeEventListener(e,o,n)},[e,n])}function c0(e,t,n=!0){let r=A(!1);V(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function o(s,a){if(!r.current||s.defaultPrevented)return;let l=a(s);if(l===null||!l.getRootNode().contains(l)||!l.isConnected)return;let c=function f(u){return typeof u=="function"?f(u()):Array.isArray(u)||u instanceof Set?u:[u]}(e);for(let f of c){if(f===null)continue;let u=f instanceof HTMLElement?f:f.current;if(u!=null&&u.contains(l)||s.composed&&s.composedPath().includes(u))return}return!n0(l,nc.Loose)&&l.tabIndex!==-1&&s.preventDefault(),t(s,l)}let i=A(null);jr("pointerdown",s=>{var a,l;r.current&&(i.current=((l=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:l[0])||s.target)},!0),jr("mousedown",s=>{var a,l;r.current&&(i.current=((l=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:l[0])||s.target)},!0),jr("click",s=>{l0()||i.current&&(o(s,()=>i.current),i.current=null)},!0),jr("touchend",s=>o(s,()=>s.target instanceof HTMLElement?s.target:null),!0),oc("blur",s=>o(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Wn(...e){return Q(()=>ec(...e),[...e])}function ic(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function u0(e,t){let[n,r]=se(()=>ic(e));return Ce(()=>{r(ic(e))},[e.type,e.as]),Ce(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let sc=Symbol();function f0(e,t=!0){return Object.assign(e,{[sc]:t})}function Fe(...e){let t=A(e);V(()=>{t.current=e},[e]);let n=F(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||r?.[sc])?void 0:n}function _i(e,t){let n=A([]),r=F(e);V(()=>{let o=[...n.current];for(let[i,s]of t.entries())if(n.current[i]!==s){let a=r(t,o);return n.current=t,a}},[r,...t])}function Hr(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var Br=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Br||{}),Et=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Et||{});function ke({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s,mergeRefs:a}){a=a??d0;let l=ac(t,e);if(i)return Vr(l,n,r,s,a);let c=o??0;if(c&2){let{static:f=!1,...u}=l;if(f)return Vr(u,n,r,s,a)}if(c&1){let{unmount:f=!0,...u}=l;return ge(f?0:1,{[0](){return null},[1](){return Vr({...u,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return Vr(l,n,r,s,a)}function Vr(e,t={},n,r,o){let{as:i=n,children:s,refName:a="ref",...l}=bi(e,["unmount","static"]),c=e.ref!==void 0?{[a]:e.ref}:{},f=typeof s=="function"?s(t):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t));let u={};if(t){let h=!1,d=[];for(let[w,g]of Object.entries(t))typeof g=="boolean"&&(h=!0),g===!0&&d.push(w);h&&(u["data-headlessui-state"]=d.join(" "))}if(i===ue&&Object.keys(yi(l)).length>0){if(!wn(f)||Array.isArray(f)&&f.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(g=>` - ${g}`).join(`
39
39
  `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(g=>` - ${g}`).join(`
40
40
  `)].join(`
41
- `));let h=f.props,d=typeof h?.className=="function"?(...g)=>Hr(h?.className(...g),l.className):Hr(h?.className,l.className),w=d?{className:d}:{};return Yo(f,Object.assign({},ac(f.props,yi(bi(l,["ref"]))),u,c,{ref:o(f.ref,c.ref)},w))}return v(i,Object.assign({},bi(l,["ref"]),i!==ue&&c,i!==ue&&u),f)}function d0(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function ac(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...i){let s=n[r];for(let a of s){if((o instanceof Event||o?.nativeEvent instanceof Event)&&o.defaultPrevented)return;a(o,...i)}}});return t}function Se(e){var t;return Object.assign(Go(e),{displayName:(t=e.displayName)!=null?t:e.name})}function yi(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function bi(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let h0="div";var qn=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(qn||{});function p0(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":(r&2)===2?!0:(n=o["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Ce({ourProps:i,theirProps:o,slot:{},defaultTag:h0,name:"Hidden"})}let Ur=Se(p0),vi=De(null);vi.displayName="OpenClosedContext";var Re=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Re||{});function xi(){return de(vi)}function w0({value:e,children:t}){return E.createElement(vi.Provider,{value:e},t)}function m0(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let $t=[];m0(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&$t[0]!==t.target&&($t.unshift(t.target),$t=$t.filter(n=>n!=null&&n.isConnected),$t.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function lc(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=t?.getAttribute("disabled")==="";return r&&g0(n)?!1:r}function g0(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function _0(e){var t,n;let r=(t=e?.form)!=null?t:e.closest("form");if(r){for(let o of r.elements)if(o!==e&&(o.tagName==="INPUT"&&o.type==="submit"||o.tagName==="BUTTON"&&o.type==="submit"||o.nodeName==="INPUT"&&o.type==="image")){o.click();return}(n=r.requestSubmit)==null||n.call(r)}}var zr=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(zr||{});function cc(e,t,n,r){let o=ht(n);V(()=>{e=e??window;function i(s){o.current(s)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function Yn(){let e=A(!1);return ke(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function uc(e){let t=F(e),n=A(!1);V(()=>(n.current=!1,()=>{n.current=!0,Fr(()=>{n.current&&t()})}),[t])}var Zn=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Zn||{});function y0(){let e=A(0);return oc("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function fc(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let b0="div";var dc=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(dc||{});function v0(e,t){let n=A(null),r=Fe(n,t),{initialFocus:o,containers:i,features:s=30,...a}=e;bn()||(s=1);let l=Wn(n);C0({ownerDocument:l},Boolean(s&16));let c=S0({ownerDocument:l,container:n,initialFocus:o},Boolean(s&2));E0({ownerDocument:l,container:n,containers:i,previousActiveElement:c},Boolean(s&8));let f=y0(),u=F(g=>{let p=n.current;!p||(_=>_())(()=>{ge(f.current,{[Zn.Forwards]:()=>{Lr(p,Wt.First,{skipElements:[g.relatedTarget]})},[Zn.Backwards]:()=>{Lr(p,Wt.Last,{skipElements:[g.relatedTarget]})}})})}),h=Rr(),d=A(!1),w={ref:r,onKeyDown(g){g.key=="Tab"&&(d.current=!0,h.requestAnimationFrame(()=>{d.current=!1}))},onBlur(g){let p=fc(i);n.current instanceof HTMLElement&&p.add(n.current);let _=g.relatedTarget;_ instanceof HTMLElement&&_.dataset.headlessuiFocusGuard!=="true"&&(hc(p,_)||(d.current?Lr(n.current,ge(f.current,{[Zn.Forwards]:()=>Wt.Next,[Zn.Backwards]:()=>Wt.Previous})|Wt.WrapAround,{relativeTo:g.target}):g.target instanceof HTMLElement&&qt(g.target)))}};return E.createElement(E.Fragment,null,Boolean(s&4)&&E.createElement(Ur,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:u,features:qn.Focusable}),Ce({ourProps:w,theirProps:a,defaultTag:b0,name:"FocusTrap"}),Boolean(s&4)&&E.createElement(Ur,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:u,features:qn.Focusable}))}let x0=Se(v0),Kn=Object.assign(x0,{features:dc});function k0(e=!0){let t=A($t.slice());return _i(([n],[r])=>{r===!0&&n===!1&&Fr(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=$t.slice())},[e,$t,t]),F(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function C0({ownerDocument:e},t){let n=k0(t);_i(()=>{t||e?.activeElement===e?.body&&qt(n())},[t]),uc(()=>{t&&qt(n())})}function S0({ownerDocument:e,container:t,initialFocus:n},r){let o=A(null),i=Yn();return _i(()=>{if(!r)return;let s=t.current;s&&Fr(()=>{if(!i.current)return;let a=e?.activeElement;if(n!=null&&n.current){if(n?.current===a){o.current=a;return}}else if(s.contains(a)){o.current=a;return}n!=null&&n.current?qt(n.current):Lr(s,Wt.First)===tc.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=e?.activeElement})},[r]),o}function E0({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=Yn();cc(e?.defaultView,"focus",s=>{if(!o||!i.current)return;let a=fc(n);t.current instanceof HTMLElement&&a.add(t.current);let l=r.current;if(!l)return;let c=s.target;c&&c instanceof HTMLElement?hc(a,c)?(r.current=c,qt(c)):(s.preventDefault(),s.stopPropagation(),qt(l)):qt(r.current)},!0)}function hc(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let pc=De(!1);function $0(){return de(pc)}function ki(e){return E.createElement(pc.Provider,{value:e.force},e.children)}function T0(e){let t=$0(),n=de(wc),r=Wn(e),[o,i]=se(()=>{if(!t&&n!==null||dt.isServer)return null;let s=r?.getElementById("headlessui-portal-root");if(s)return s;if(r===null)return null;let a=r.createElement("div");return a.setAttribute("id","headlessui-portal-root"),r.body.appendChild(a)});return V(()=>{o!==null&&(r!=null&&r.body.contains(o)||r==null||r.body.appendChild(o))},[o,r]),V(()=>{t||n!==null&&i(n.current)},[n,i,t]),o}let M0=ue;function O0(e,t){let n=e,r=A(null),o=Fe(f0(f=>{r.current=f}),t),i=Wn(r),s=T0(r),[a]=se(()=>{var f;return dt.isServer?null:(f=i?.createElement("div"))!=null?f:null}),l=de(Ci),c=bn();return ke(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),ke(()=>{if(a&&l)return l.register(a)},[l,a]),uc(()=>{var f;!s||!a||(a instanceof Node&&s.contains(a)&&s.removeChild(a),s.childNodes.length<=0&&((f=s.parentElement)==null||f.removeChild(s)))}),c?!s||!a?null:Wo(Ce({ourProps:{ref:o},theirProps:n,defaultTag:M0,name:"Portal"}),a):null}let A0=ue,wc=De(null);function I0(e,t){let{target:n,...r}=e,o={ref:Fe(t)};return E.createElement(wc.Provider,{value:n},Ce({ourProps:o,theirProps:r,defaultTag:A0,name:"Popover.Group"}))}let Ci=De(null);function N0(){let e=de(Ci),t=A([]),n=F(i=>(t.current.push(i),e&&e.register(i),()=>r(i))),r=F(i=>{let s=t.current.indexOf(i);s!==-1&&t.current.splice(s,1),e&&e.unregister(i)}),o=Q(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,Q(()=>function({children:i}){return E.createElement(Ci.Provider,{value:o},i)},[o])]}let P0=Se(O0),D0=Se(I0),Si=Object.assign(P0,{Group:D0});function F0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const R0=typeof Object.is=="function"?Object.is:F0,{useState:L0,useEffect:j0,useLayoutEffect:H0,useDebugValue:B0}=mn;function V0(e,t,n){const r=t(),[{inst:o},i]=L0({inst:{value:r,getSnapshot:t}});return H0(()=>{o.value=r,o.getSnapshot=t,Ei(o)&&i({inst:o})},[e,r,t]),j0(()=>(Ei(o)&&i({inst:o}),e(()=>{Ei(o)&&i({inst:o})})),[e]),B0(r),r}function Ei(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!R0(n,r)}catch{return!0}}function U0(e,t,n){return t()}const z0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",G0=!z0,W0=G0?U0:V0,q0="useSyncExternalStore"in mn?(e=>e.useSyncExternalStore)(mn):W0;function Y0(e){return q0(e.subscribe,e.getSnapshot,e.getSnapshot)}function Z0(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let s=t[o].call(n,...i);s&&(n=s,r.forEach(a=>a()))}}}function K0(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,i=e-o;n.style(r,"paddingRight",`${i}px`)}}}function X0(){return rc()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(i=>i()).some(i=>i.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=Gt();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let i=(o=window.scrollY)!=null?o:window.pageYOffset,s=null;t.addEventListener(e,"click",a=>{if(a.target instanceof HTMLElement)try{let l=a.target.closest("a");if(!l)return;let{hash:c}=new URL(l.href),f=e.querySelector(c);f&&!r(f)&&(s=f)}catch{}},!0),t.addEventListener(e,"touchstart",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let l=a.target;for(;l.parentElement&&r(l.parentElement);)l=l.parentElement;t.style(l,"overscrollBehavior","contain")}else t.style(a.target,"touchAction","none")}),t.addEventListener(e,"touchmove",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let l=a.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()},{passive:!1}),t.add(()=>{var a;let l=(a=window.scrollY)!=null?a:window.pageYOffset;i!==l&&window.scrollTo(0,i),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function J0(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Q0(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Yt=Z0(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Gt(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:Q0(n)},o=[X0(),K0(),J0()];o.forEach(({before:i})=>i?.(r)),o.forEach(({after:i})=>i?.(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Yt.subscribe(()=>{let e=Yt.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&Yt.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Yt.dispatch("TEARDOWN",n)}});function ew(e,t,n){let r=Y0(Yt),o=e?r.get(e):void 0,i=o?o.count>0:!1;return ke(()=>{if(!(!e||!t))return Yt.dispatch("PUSH",e,n),()=>Yt.dispatch("POP",e,n)},[t,e]),i}let $i=new Map,Xn=new Map;function mc(e,t=!0){ke(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function o(){var s;if(!r)return;let a=(s=Xn.get(r))!=null?s:1;if(a===1?Xn.delete(r):Xn.set(r,a-1),a!==1)return;let l=$i.get(r);l&&(l["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",l["aria-hidden"]),r.inert=l.inert,$i.delete(r))}let i=(n=Xn.get(r))!=null?n:0;return Xn.set(r,i+1),i!==0||($i.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),o},[e,t])}function tw({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){var r;let o=A((r=n?.current)!=null?r:null),i=Wn(o),s=F(()=>{var a,l,c;let f=[];for(let u of e)u!==null&&(u instanceof HTMLElement?f.push(u):"current"in u&&u.current instanceof HTMLElement&&f.push(u.current));if(t!=null&&t.current)for(let u of t.current)f.push(u);for(let u of(a=i?.querySelectorAll("html > *, body > *"))!=null?a:[])u!==document.body&&u!==document.head&&u instanceof HTMLElement&&u.id!=="headlessui-portal-root"&&(u.contains(o.current)||u.contains((c=(l=o.current)==null?void 0:l.getRootNode())==null?void 0:c.host)||f.some(h=>u.contains(h))||f.push(u));return f});return{resolveContainers:s,contains:F(a=>s().some(l=>l.contains(a))),mainTreeNodeRef:o,MainTreeNode:Q(()=>function(){return n!=null?null:E.createElement(Ur,{features:qn.Hidden,ref:o})},[o,n])}}let Ti=De(()=>{});Ti.displayName="StackContext";var Mi=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Mi||{});function nw(){return de(Ti)}function rw({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=nw(),s=F((...a)=>{t?.(...a),i(...a)});return ke(()=>{let a=o===void 0||o===!0;return a&&s(0,n,r),()=>{a&&s(1,n,r)}},[s,n,r,o]),E.createElement(Ti.Provider,{value:s},e)}let gc=De(null);function _c(){let e=de(gc);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,_c),t}return e}function yc(){let[e,t]=se([]);return[e.length>0?e.join(" "):void 0,Q(()=>function(n){let r=F(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),l=a.indexOf(i);return l!==-1&&a.splice(l,1),a}))),o=Q(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return E.createElement(gc.Provider,{value:o},n.children)},[t])]}let ow="p";function iw(e,t){let n=St(),{id:r=`headlessui-description-${n}`,...o}=e,i=_c(),s=Fe(t);ke(()=>i.register(r),[r,i.register]);let a={ref:s,...i.props,id:r};return Ce({ourProps:a,theirProps:o,slot:i.slot||{},defaultTag:ow,name:i.name||"Description"})}let sw=Se(iw),bc=Object.assign(sw,{});var aw=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(aw||{}),lw=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(lw||{});let cw={[0](e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Gr=De(null);Gr.displayName="DialogContext";function Jn(e){let t=de(Gr);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Jn),n}return t}function uw(e,t,n=()=>[document.body]){ew(e,t,r=>{var o;return{containers:[...(o=r.containers)!=null?o:[],n]}})}function fw(e,t){return ge(t.type,cw,e,t)}let dw="div",hw=Br.RenderStrategy|Br.Static;function pw(e,t){let n=St(),{id:r=`headlessui-dialog-${n}`,open:o,onClose:i,initialFocus:s,role:a="dialog",__demoMode:l=!1,...c}=e,[f,u]=se(0),h=A(!1);a=function(){return a==="dialog"||a==="alertdialog"?a:(h.current||(h.current=!0,console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let d=xi();o===void 0&&d!==null&&(o=(d&Re.Open)===Re.Open);let w=A(null),g=Fe(w,t),p=Wn(w),_=e.hasOwnProperty("open")||d!==null,b=e.hasOwnProperty("onClose");if(!_&&!b)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!_)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!b)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof o!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${o}`);if(typeof i!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${i}`);let x=o?0:1,[O,Y]=Vn(fw,{titleId:null,descriptionId:null,panelRef:Ao()}),Z=F(()=>i(!1)),Xe=F(ee=>Y({type:0,id:ee})),$e=bn()?l?!1:x===0:!1,U=f>1,re=de(Gr)!==null,[nt,kn]=N0(),er={get current(){var ee;return(ee=O.panelRef.current)!=null?ee:w.current}},{resolveContainers:tr,mainTreeNodeRef:Zt,MainTreeNode:Vi}=tw({portals:nt,defaultContainers:[er]}),Kt=U?"parent":"leaf",Xr=d!==null?(d&Re.Closing)===Re.Closing:!1,Ui=(()=>re||Xr?!1:$e)(),Cn=ut(()=>{var ee,pt;return(pt=Array.from((ee=p?.querySelectorAll("body > *"))!=null?ee:[]).find(Be=>Be.id==="headlessui-portal-root"?!1:Be.contains(Zt.current)&&Be instanceof HTMLElement))!=null?pt:null},[Zt]);mc(Cn,Ui);let nr=(()=>U?!0:$e)(),Mt=ut(()=>{var ee,pt;return(pt=Array.from((ee=p?.querySelectorAll("[data-headlessui-portal]"))!=null?ee:[]).find(Be=>Be.contains(Zt.current)&&Be instanceof HTMLElement))!=null?pt:null},[Zt]);mc(Mt,nr);let zi=(()=>!(!$e||U))();c0(tr,ee=>{ee.preventDefault(),Z()},zi);let rt=(()=>!(U||x!==0))();cc(p?.defaultView,"keydown",ee=>{rt&&(ee.defaultPrevented||ee.key===zr.Escape&&(ee.preventDefault(),ee.stopPropagation(),Z()))});let pg=(()=>!(Xr||x!==0||re))();uw(p,pg,tr),V(()=>{if(x!==0||!w.current)return;let ee=new ResizeObserver(pt=>{for(let Be of pt){let Jr=Be.target.getBoundingClientRect();Jr.x===0&&Jr.y===0&&Jr.width===0&&Jr.height===0&&Z()}});return ee.observe(w.current),()=>ee.disconnect()},[x,w,Z]);let[wg,mg]=yc(),gg=Q(()=>[{dialogState:x,close:Z,setTitleId:Xe},O],[x,O,Z,Xe]),Hc=Q(()=>({open:x===0}),[x]),_g={ref:g,id:r,role:a,"aria-modal":x===0?!0:void 0,"aria-labelledby":O.titleId,"aria-describedby":wg};return E.createElement(rw,{type:"Dialog",enabled:x===0,element:w,onUpdate:F((ee,pt)=>{pt==="Dialog"&&ge(ee,{[Mi.Add]:()=>u(Be=>Be+1),[Mi.Remove]:()=>u(Be=>Be-1)})})},E.createElement(ki,{force:!0},E.createElement(Si,null,E.createElement(Gr.Provider,{value:gg},E.createElement(Si.Group,{target:w},E.createElement(ki,{force:!1},E.createElement(mg,{slot:Hc,name:"Dialog.Description"},E.createElement(Kn,{initialFocus:s,containers:tr,features:$e?ge(Kt,{parent:Kn.features.RestoreFocus,leaf:Kn.features.All&~Kn.features.FocusLock}):Kn.features.None},E.createElement(kn,null,Ce({ourProps:_g,theirProps:c,slot:Hc,defaultTag:dw,features:hw,visible:x===0,name:"Dialog"}))))))))),E.createElement(Vi,null))}let ww="div";function mw(e,t){let n=St(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:i,close:s}]=Jn("Dialog.Overlay"),a=Fe(t),l=F(f=>{if(f.target===f.currentTarget){if(lc(f.currentTarget))return f.preventDefault();f.preventDefault(),f.stopPropagation(),s()}}),c=Q(()=>({open:i===0}),[i]);return Ce({ourProps:{ref:a,id:r,"aria-hidden":!0,onClick:l},theirProps:o,slot:c,defaultTag:ww,name:"Dialog.Overlay"})}let gw="div";function _w(e,t){let n=St(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:i},s]=Jn("Dialog.Backdrop"),a=Fe(t);V(()=>{if(s.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[s.panelRef]);let l=Q(()=>({open:i===0}),[i]);return E.createElement(ki,{force:!0},E.createElement(Si,null,Ce({ourProps:{ref:a,id:r,"aria-hidden":!0},theirProps:o,slot:l,defaultTag:gw,name:"Dialog.Backdrop"})))}let yw="div";function bw(e,t){let n=St(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:i},s]=Jn("Dialog.Panel"),a=Fe(t,s.panelRef),l=Q(()=>({open:i===0}),[i]),c=F(f=>{f.stopPropagation()});return Ce({ourProps:{ref:a,id:r,onClick:c},theirProps:o,slot:l,defaultTag:yw,name:"Dialog.Panel"})}let vw="h2";function xw(e,t){let n=St(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:s}]=Jn("Dialog.Title"),a=Fe(t);V(()=>(s(r),()=>s(null)),[r,s]);let l=Q(()=>({open:i===0}),[i]);return Ce({ourProps:{ref:a,id:r},theirProps:o,slot:l,defaultTag:vw,name:"Dialog.Title"})}let kw=Se(pw),Cw=Se(_w),Sw=Se(bw),Ew=Se(mw),$w=Se(xw),Oi=Object.assign(kw,{Backdrop:Cw,Panel:Sw,Overlay:Ew,Title:$w,Description:bc}),vc=De(null);function xc(){let e=de(vc);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,xc),t}return e}function Tw(){let[e,t]=se([]);return[e.length>0?e.join(" "):void 0,Q(()=>function(n){let r=F(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),l=a.indexOf(i);return l!==-1&&a.splice(l,1),a}))),o=Q(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return E.createElement(vc.Provider,{value:o},n.children)},[t])]}let Mw="label";function Ow(e,t){let n=St(),{id:r=`headlessui-label-${n}`,passive:o=!1,...i}=e,s=xc(),a=Fe(t);ke(()=>s.register(r),[r,s.register]);let l={ref:a,...s.props,id:r};return o&&("onClick"in l&&(delete l.htmlFor,delete l.onClick),"onClick"in i&&delete i.onClick),Ce({ourProps:l,theirProps:i,slot:s.slot||{},defaultTag:Mw,name:s.name||"Label"})}let Aw=Se(Ow),Iw=Object.assign(Aw,{});function Nw(e=0){let[t,n]=se(e),r=Yn(),o=ut(l=>{r.current&&n(c=>c|l)},[t,r]),i=ut(l=>Boolean(t&l),[t]),s=ut(l=>{r.current&&n(c=>c&~l)},[n,r]),a=ut(l=>{r.current&&n(c=>c^l)},[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:a}}let Ai=De(null);Ai.displayName="GroupContext";let Pw=ue;function Dw(e){var t;let[n,r]=se(null),[o,i]=Tw(),[s,a]=yc(),l=Q(()=>({switch:n,setSwitch:r,labelledby:o,describedby:s}),[n,r,o,s]),c={},f=e;return E.createElement(a,{name:"Switch.Description"},E.createElement(i,{name:"Switch.Label",props:{htmlFor:(t=l.switch)==null?void 0:t.id,onClick(u){n&&(u.currentTarget.tagName==="LABEL"&&u.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},E.createElement(Ai.Provider,{value:l},Ce({ourProps:c,theirProps:f,defaultTag:Pw,name:"Switch.Group"}))))}let Fw="button";function Rw(e,t){var n;let r=St(),{id:o=`headlessui-switch-${r}`,checked:i,defaultChecked:s=!1,onChange:a,disabled:l=!1,name:c,value:f,form:u,...h}=e,d=de(Ai),w=A(null),g=Fe(w,t,d===null?null:d.setSwitch),[p,_]=Jp(i,a,s),b=F(()=>_?.(!p)),x=F(U=>{if(lc(U.currentTarget))return U.preventDefault();U.preventDefault(),b()}),O=F(U=>{U.key===zr.Space?(U.preventDefault(),b()):U.key===zr.Enter&&_0(U.currentTarget)}),Y=F(U=>U.preventDefault()),Z=Q(()=>({checked:p}),[p]),Xe={id:o,ref:g,role:"switch",type:u0(e,w),tabIndex:e.tabIndex===-1?0:(n=e.tabIndex)!=null?n:0,"aria-checked":p,"aria-labelledby":d?.labelledby,"aria-describedby":d?.describedby,disabled:l,onClick:x,onKeyUp:O,onKeyPress:Y},$e=Rr();return V(()=>{var U;let re=(U=w.current)==null?void 0:U.closest("form");re&&s!==void 0&&$e.addEventListener(re,"reset",()=>{_(s)})},[w,_]),E.createElement(E.Fragment,null,c!=null&&p&&E.createElement(Ur,{features:qn.Hidden,...yi({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:l,form:u,checked:p,name:c,value:f})}),Ce({ourProps:Xe,theirProps:h,slot:Z,defaultTag:Fw,name:"Switch"}))}let Lw=Se(Rw),jw=Dw,Ii=Object.assign(Lw,{Group:jw,Label:Iw,Description:bc});function Hw(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Ni(e,...t){e&&t.length>0&&e.classList.add(...t)}function Pi(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Bw(e,t){let n=Gt();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,s]=[r,o].map(l=>{let[c=0]=l.split(",").filter(Boolean).map(f=>f.includes("ms")?parseFloat(f):parseFloat(f)*1e3).sort((f,u)=>u-f);return c}),a=i+s;if(a!==0){n.group(c=>{c.setTimeout(()=>{t(),c.dispose()},a),c.addEventListener(e,"transitionrun",f=>{f.target===f.currentTarget&&c.dispose()})});let l=n.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(t(),l())})}else t();return n.add(()=>t()),n.dispose}function Vw(e,t,n,r){let o=n?"enter":"leave",i=Gt(),s=r!==void 0?Hw(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let a=ge(o,{enter:()=>t.enter,leave:()=>t.leave}),l=ge(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=ge(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Pi(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Ni(e,...t.base,...a,...c),i.nextFrame(()=>{Pi(e,...t.base,...a,...c),Ni(e,...t.base,...a,...l),Bw(e,()=>(Pi(e,...t.base,...a),Ni(e,...t.base,...t.entered),s()))}),i.dispose}function Uw({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let s=Yn(),a=Rr(),l=ht(n);ke(()=>{e&&(l.current="enter")},[e]),ke(()=>{let c=Gt();a.add(c.dispose);let f=t.current;if(f&&l.current!=="idle"&&s.current)return c.dispose(),o.current(l.current),c.add(Vw(f,r.current,l.current==="enter",()=>{c.dispose(),i.current(l.current)})),c.dispose},[n])}function Tt(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Wr=De(null);Wr.displayName="TransitionContext";var zw=(e=>(e.Visible="visible",e.Hidden="hidden",e))(zw||{});function Gw(){let e=de(Wr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Ww(){let e=de(qr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let qr=De(null);qr.displayName="NestingContext";function Yr(e){return"children"in e?Yr(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function kc(e,t){let n=ht(e),r=A([]),o=Yn(),i=Rr(),s=F((d,w=Et.Hidden)=>{let g=r.current.findIndex(({el:p})=>p===d);g!==-1&&(ge(w,{[Et.Unmount](){r.current.splice(g,1)},[Et.Hidden](){r.current[g].state="hidden"}}),i.microTask(()=>{var p;!Yr(r)&&o.current&&((p=n.current)==null||p.call(n))}))}),a=F(d=>{let w=r.current.find(({el:g})=>g===d);return w?w.state!=="visible"&&(w.state="visible"):r.current.push({el:d,state:"visible"}),()=>s(d,Et.Unmount)}),l=A([]),c=A(Promise.resolve()),f=A({enter:[],leave:[],idle:[]}),u=F((d,w,g)=>{l.current.splice(0),t&&(t.chains.current[w]=t.chains.current[w].filter(([p])=>p!==d)),t?.chains.current[w].push([d,new Promise(p=>{l.current.push(p)})]),t?.chains.current[w].push([d,new Promise(p=>{Promise.all(f.current[w].map(([_,b])=>b)).then(()=>p())})]),w==="enter"?c.current=c.current.then(()=>t?.wait.current).then(()=>g(w)):g(w)}),h=F((d,w,g)=>{Promise.all(f.current[w].splice(0).map(([p,_])=>_)).then(()=>{var p;(p=l.current.shift())==null||p()}).then(()=>g(w))});return Q(()=>({children:r,register:a,unregister:s,onStart:u,onStop:h,wait:c,chains:f}),[a,s,r,u,h,f,c])}function qw(){}let Yw=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Cc(e){var t;let n={};for(let r of Yw)n[r]=(t=e[r])!=null?t:qw;return n}function Zw(e){let t=A(Cc(e));return V(()=>{t.current=Cc(e)},[e]),t}let Kw="div",Sc=Br.RenderStrategy;function Xw(e,t){var n,r;let{beforeEnter:o,afterEnter:i,beforeLeave:s,afterLeave:a,enter:l,enterFrom:c,enterTo:f,entered:u,leave:h,leaveFrom:d,leaveTo:w,...g}=e,p=A(null),_=Fe(p,t),b=(n=g.unmount)==null||n?Et.Unmount:Et.Hidden,{show:x,appear:O,initial:Y}=Gw(),[Z,Xe]=se(x?"visible":"hidden"),$e=Ww(),{register:U,unregister:re}=$e;V(()=>U(p),[U,p]),V(()=>{if(b===Et.Hidden&&p.current){if(x&&Z!=="visible"){Xe("visible");return}return ge(Z,{hidden:()=>re(p),visible:()=>U(p)})}},[Z,p,U,re,x,b]);let nt=ht({base:Tt(g.className),enter:Tt(l),enterFrom:Tt(c),enterTo:Tt(f),entered:Tt(u),leave:Tt(h),leaveFrom:Tt(d),leaveTo:Tt(w)}),kn=Zw({beforeEnter:o,afterEnter:i,beforeLeave:s,afterLeave:a}),er=bn();V(()=>{if(er&&Z==="visible"&&p.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[p,Z,er]);let tr=Y&&!O,Zt=O&&x&&Y,Vi=(()=>!er||tr?"idle":x?"enter":"leave")(),Kt=Nw(0),Xr=F(rt=>ge(rt,{enter:()=>{Kt.addFlag(Re.Opening),kn.current.beforeEnter()},leave:()=>{Kt.addFlag(Re.Closing),kn.current.beforeLeave()},idle:()=>{}})),Ui=F(rt=>ge(rt,{enter:()=>{Kt.removeFlag(Re.Opening),kn.current.afterEnter()},leave:()=>{Kt.removeFlag(Re.Closing),kn.current.afterLeave()},idle:()=>{}})),Cn=kc(()=>{Xe("hidden"),re(p)},$e),nr=A(!1);Uw({immediate:Zt,container:p,classes:nt,direction:Vi,onStart:ht(rt=>{nr.current=!0,Cn.onStart(p,rt,Xr)}),onStop:ht(rt=>{nr.current=!1,Cn.onStop(p,rt,Ui),rt==="leave"&&!Yr(Cn)&&(Xe("hidden"),re(p))})});let Mt=g,zi={ref:_};return Zt?Mt={...Mt,className:Hr(g.className,...nt.current.enter,...nt.current.enterFrom)}:nr.current&&(Mt.className=Hr(g.className,(r=p.current)==null?void 0:r.className),Mt.className===""&&delete Mt.className),E.createElement(qr.Provider,{value:Cn},E.createElement(w0,{value:ge(Z,{visible:Re.Open,hidden:Re.Closed})|Kt.flags},Ce({ourProps:zi,theirProps:Mt,defaultTag:Kw,features:Sc,visible:Z==="visible",name:"Transition.Child"})))}function Jw(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,s=A(null),a=Fe(s,t);bn();let l=xi();if(n===void 0&&l!==null&&(n=(l&Re.Open)===Re.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,f]=se(n?"visible":"hidden"),u=kc(()=>{f("hidden")}),[h,d]=se(!0),w=A([n]);ke(()=>{h!==!1&&w.current[w.current.length-1]!==n&&(w.current.push(n),d(!1))},[w,n]);let g=Q(()=>({show:n,appear:r,initial:h}),[n,r,h]);V(()=>{if(n)f("visible");else if(!Yr(u))f("hidden");else{let x=s.current;if(!x)return;let O=x.getBoundingClientRect();O.x===0&&O.y===0&&O.width===0&&O.height===0&&f("hidden")}},[n,u]);let p={unmount:o},_=F(()=>{var x;h&&d(!1),(x=e.beforeEnter)==null||x.call(e)}),b=F(()=>{var x;h&&d(!1),(x=e.beforeLeave)==null||x.call(e)});return E.createElement(qr.Provider,{value:u},E.createElement(Wr.Provider,{value:g},Ce({ourProps:{...p,as:ue,children:E.createElement(Ec,{ref:a,...p,...i,beforeEnter:_,beforeLeave:b})},theirProps:{},defaultTag:ue,features:Sc,visible:c==="visible",name:"Transition"})))}function Qw(e,t){let n=de(Wr)!==null,r=xi()!==null;return E.createElement(E.Fragment,null,!n&&r?E.createElement(Di,{ref:t,...e}):E.createElement(Ec,{ref:t,...e}))}let Di=Se(Jw),Ec=Se(Xw),em=Se(Qw),$c=Object.assign(Di,{Child:em,Root:Di});class Zr extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Checked","OnChange","ClassName","Children"]}}function tm(e){const t=gt(e,1);return v(Ii,t)}class Tc extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ClassName","Children"]}}function nm(e){const t=gt(e,1);return v(Ii.Label,t)}class rm extends L{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Children"]}}function om(e){const t=gt(e,1);return v(Ii.Group,t)}class Fi extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","As","Show","Children"]}}function im(e){const t=gt(e,1);return v($c.Root,t)}class _e extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Appear","Show","ClassName","Enter","EnterFrom","EnterTo","Leave","LeaveFrom","LeaveTo","Children"]}}function Mc(e){const t=gt(e,1);return v($c.Child,t)}class Qn extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}}function sm(e){const t=gt(e,1);return v(Oi,t)}class Ri extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function am(e){const t=gt(e,1);return v(Oi.Panel,t)}class Kr extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Children"]}}function lm(e){const t=gt(e,1);return v(Oi.Title,t)}class cm extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Primary","Warning"]}}class um extends Me{constructor(t,n,r,o,i,s,a,l,c){super(),this.show=t,this.title=n,this.message=r,this.dialogIcon=o,this.okButtonText=i,this.okButtonClick=s,this.okButtonThem=a,this.cancelButtonText=l,this.cancelButtonClick=c}}function fm(e){let t,n,r,o;return im(M([new Fi(0,["1"]),new Fi(2,[e.show]),new Fi(3,[[sm(M([new Qn(1,["1"]),new Qn(0,["div"]),new Qn(2,["relative z-10"]),new Qn(4,[e.cancelButtonClick]),new Qn(5,[[Mc(M([new _e(0,["1"]),new _e(3,["fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"]),new _e(4,["ease-out duration-300"]),new _e(5,["opacity-0"]),new _e(6,["opacity-100"]),new _e(7,["ease-in duration-200"]),new _e(8,["opacity-100"]),new _e(9,["opacity-0"])])),v("div",te(M([["className","fixed inset-0 z-10 overflow-y-auto"],["key","2"],(t=[v("div",te(M([["key","1"],["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(n=[Mc(M([new _e(0,["1"]),new _e(4,["ease-out duration-300"]),new _e(5,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new _e(6,["opacity-100 translate-y-0 sm:scale-100"]),new _e(7,["ease-in duration-200"]),new _e(8,["opacity-100 translate-y-0 sm:scale-100"]),new _e(9,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new _e(10,[[am(M([new Ri(0,["1"]),new Ri(1,["relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6"]),new Ri(2,[[v("div",te(M([["key","1"],["className","sm:flex sm:items-start"],(r=kr(ve(()=>{let i,s,a;return an((i=e.dialogIcon,i==null?sd():(s=i,yt(v("div",te(M([["key","1"],(a="mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center sm:mx-0 sm:h-10 sm:w-10 sm:mr-4 rounded-full bg-red-100",["className",a]),["children",ne.Children.toArray([s])]])))))),ve(()=>{let l,c;return yt(v("div",te(M([["key","2"],["className","mt-3 text-center sm:mt-0 sm:text-left"],(l=[lm(M([new Kr(1,["1"]),new Kr(0,["h3"]),new Kr(2,["text-lg font-medium leading-6 text-gray-900"]),new Kr(3,[[v("span",{children:e.title,key:"1"})]])])),v("div",te(M([["className","mt-2"],["key","2"],(c=[v("p",{className:"text-sm text-gray-500",children:e.message})],["children",ne.Children.toArray(Array.from(c))])])))],["children",ne.Children.toArray(Array.from(l))])]))))}))})),["children",ne.Children.toArray(Array.from(r))])]))),v("div",te(M([["key","2"],["className","mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"],(o=kr(ve(()=>an(yt(v("button",{key:"Ok",type:"button",className:e.okButtonThem.tag===1?"inline-flex w-full justify-center rounded-md border border-transparent bg-red-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-gray-300 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm":"inline-flex w-full justify-center rounded-md border border-transparent bg-white px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-gray-300 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm",onClick:i=>{e.okButtonClick()},children:e.okButtonText})),ve(()=>{let i;return yt(v("button",te(M([["key","Cancel"],["type","button"],(i="mt-3 inline-flex w-full justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-base font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-gray-200 focus:ring-offset-2 sm:mt-0 sm:w-auto sm:text-sm",["className",i]),["onClick",s=>{e.cancelButtonClick()}],["children",e.cancelButtonText]]))))})))),["children",ne.Children.toArray(Array.from(o))])])))]])]))]])]))],["children",ne.Children.toArray(Array.from(n))])])))],["children",ne.Children.toArray(Array.from(t))])])))]])]))]])]))}function dm(){return fe()}function Li(e){return Dt("/",e)}function hm(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Li(t),n])}function Oc(e,t,n){try{G(n)}catch(r){e(["Error stopping subscription: "+Li(t),r])}}function pm(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+Li(n),o]);return}}function wm(e,t){Nn(n=>{Oc(e,n[0],n[1])},t)}function Ac(e,t,n,r,o,i){return Nn(s=>{hm(e,s)},n),Nn(s=>{Oc(e,s[0],s[1])},r),ho(o,vf(s=>pm(e,t,s[0],s[1]),i))}function mm(){return[fe(),Zd({Compare:Le}),fe()]}function gm(e,t,n,r,o){return ko(e,r)?[He(e,n),r,o]:[n,Yd(e,r),He([e,t],o)]}function _m(e){return pf((t,n)=>gm(t[0],t[1],n[0],n[1],n[2]),e,mm())}const ym=fe();function Ic(e,t){const n=Kd(gf(s=>s[0],e),{Compare:Le}),r=_m(t),o=r[1],i=r[0];if(n.Equals(o))return[i,fe(),e,fe()];{const s=bf(a=>ko(a[0],o),e);return[i,s[1],s[0],yf(a=>!ko(a[0],n),r[2])]}}function bm(e,t,n,r){const o=Le(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const i=o>0;return s=>{const a=Le(s,t)|0;return i&&a<=0||!i&&a>=0?[s,r(s,e)]:void 0}}function vm(e,t,n,r,o){const i=bm(t,n,r,o);return ve(()=>id(i,e))}function xm(e,t,n){return vm(e,t,n,0,(r,o)=>r+o)}class vn extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class km{constructor(t){this.state=new vn(0,[yr(new Array(Ps(t,10)),0,Ps(t,10),null),0])}}function Cm(e){return new km(e)}function Nc(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,o=t.fields[0],i=(r+1)%o.length|0;return i===n?e.state=new vn(0,[o,n]):e.state=new vn(1,[o,n,i]),pe(q(r,o))}else return}function Sm(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,o=n.fields[2]|0,i=n.fields[0];Qe(i,r,t);const s=(r+1)%i.length|0;s===o?e.state=new vn(1,[Em(e,o,i),i.length,0]):e.state=new vn(1,[i,s,o])}else{const r=n.fields[1]|0,o=n.fields[0];Qe(o,r,t);const i=(r+1)%o.length|0;e.state=new vn(1,[o,i,r])}}function Em(e,t,n){return Array.from(ve(()=>an(dd(t,n),ve(()=>an(hd(t,n),ve(()=>pd(r=>yt(Te()),xm(0,1,n.length))))))))}class ji extends Me{constructor(t,n,r,o,i,s,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=i,this.onError=s,this.termination=a}}function $m(e,t,n){return new ji(e,t,r=>dm(),n,K(r=>{const o=At(n)(r);return i=>{o(i)}}),r=>{wp(r[0],r[1])},[r=>!1,r=>{}])}function Tm(e,t){return new ji(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function Mm(e){return e.init}function Om(e,t,n,r,o,i,s){const a=At(e)(s.init),l=no(t)(At(s.update)),c=no(n)(At(s.view)),f=no(r)(At(s.setState));return new ji(a,K(l),At(o)(s.subscribe),K(c),K(f),s.onError,i(s.termination))}function Am(e,t,n){let r;const o=n.init(t),i=o[0],s=n.subscribe(i),a=n.termination,l=Cm(10);let c=!1,f=i,u=ym,h=!1;const d=p=>{h||(Sm(l,p),c||(c=!0,g(),c=!1))},w=At(e)(d),g=()=>{let p,_=Nc(l);for(;!h&&_!=null;){const b=y(_);if(a[0](b))wm(n.onError,u),a[1](f),h=!0;else{const x=n.update(b,f),O=x[0],Y=n.subscribe(O);n.setState(O,w),Rl(Z=>{n.onError([rn(mt("Error handling the message: %A"))(b),Z])},w,x[1]),f=O,u=(p=Ic(u,Y),Ac(n.onError,w,p[0],p[1],p[2],p[3])),_=Nc(l)}}};c=!0,n.setState(i,w),Rl(p=>{n.onError([rn(mt("Error intitializing:")),p])},w,o[1]),u=(r=Ic(u,s),Ac(n.onError,w,r[0],r[1],r[2],r[3])),g(),c=!1}function Im(e,t){Am(K(n=>n),e,t)}function Nm(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Pc={exports:{}},Dc={};const Pm=Nm(mn);/**
41
+ `));let h=f.props,d=typeof h?.className=="function"?(...g)=>Hr(h?.className(...g),l.className):Hr(h?.className,l.className),w=d?{className:d}:{};return Yo(f,Object.assign({},ac(f.props,yi(bi(l,["ref"]))),u,c,{ref:o(f.ref,c.ref)},w))}return v(i,Object.assign({},bi(l,["ref"]),i!==ue&&c,i!==ue&&u),f)}function d0(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function ac(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...i){let s=n[r];for(let a of s){if((o instanceof Event||o?.nativeEvent instanceof Event)&&o.defaultPrevented)return;a(o,...i)}}});return t}function Se(e){var t;return Object.assign(Go(e),{displayName:(t=e.displayName)!=null?t:e.name})}function yi(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function bi(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let h0="div";var qn=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(qn||{});function p0(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":(r&2)===2?!0:(n=o["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return ke({ourProps:i,theirProps:o,slot:{},defaultTag:h0,name:"Hidden"})}let Ur=Se(p0),vi=De(null);vi.displayName="OpenClosedContext";var Re=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Re||{});function xi(){return de(vi)}function w0({value:e,children:t}){return E.createElement(vi.Provider,{value:e},t)}function m0(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let $t=[];m0(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&$t[0]!==t.target&&($t.unshift(t.target),$t=$t.filter(n=>n!=null&&n.isConnected),$t.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function lc(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=t?.getAttribute("disabled")==="";return r&&g0(n)?!1:r}function g0(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function _0(e){var t,n;let r=(t=e?.form)!=null?t:e.closest("form");if(r){for(let o of r.elements)if(o!==e&&(o.tagName==="INPUT"&&o.type==="submit"||o.tagName==="BUTTON"&&o.type==="submit"||o.nodeName==="INPUT"&&o.type==="image")){o.click();return}(n=r.requestSubmit)==null||n.call(r)}}var zr=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(zr||{});function cc(e,t,n,r){let o=ht(n);V(()=>{e=e??window;function i(s){o.current(s)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function Yn(){let e=A(!1);return Ce(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function uc(e){let t=F(e),n=A(!1);V(()=>(n.current=!1,()=>{n.current=!0,Fr(()=>{n.current&&t()})}),[t])}var Zn=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Zn||{});function y0(){let e=A(0);return oc("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function fc(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let b0="div";var dc=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(dc||{});function v0(e,t){let n=A(null),r=Fe(n,t),{initialFocus:o,containers:i,features:s=30,...a}=e;bn()||(s=1);let l=Wn(n);k0({ownerDocument:l},Boolean(s&16));let c=S0({ownerDocument:l,container:n,initialFocus:o},Boolean(s&2));E0({ownerDocument:l,container:n,containers:i,previousActiveElement:c},Boolean(s&8));let f=y0(),u=F(g=>{let p=n.current;!p||(_=>_())(()=>{ge(f.current,{[Zn.Forwards]:()=>{Lr(p,Wt.First,{skipElements:[g.relatedTarget]})},[Zn.Backwards]:()=>{Lr(p,Wt.Last,{skipElements:[g.relatedTarget]})}})})}),h=Rr(),d=A(!1),w={ref:r,onKeyDown(g){g.key=="Tab"&&(d.current=!0,h.requestAnimationFrame(()=>{d.current=!1}))},onBlur(g){let p=fc(i);n.current instanceof HTMLElement&&p.add(n.current);let _=g.relatedTarget;_ instanceof HTMLElement&&_.dataset.headlessuiFocusGuard!=="true"&&(hc(p,_)||(d.current?Lr(n.current,ge(f.current,{[Zn.Forwards]:()=>Wt.Next,[Zn.Backwards]:()=>Wt.Previous})|Wt.WrapAround,{relativeTo:g.target}):g.target instanceof HTMLElement&&qt(g.target)))}};return E.createElement(E.Fragment,null,Boolean(s&4)&&E.createElement(Ur,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:u,features:qn.Focusable}),ke({ourProps:w,theirProps:a,defaultTag:b0,name:"FocusTrap"}),Boolean(s&4)&&E.createElement(Ur,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:u,features:qn.Focusable}))}let x0=Se(v0),Kn=Object.assign(x0,{features:dc});function C0(e=!0){let t=A($t.slice());return _i(([n],[r])=>{r===!0&&n===!1&&Fr(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=$t.slice())},[e,$t,t]),F(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function k0({ownerDocument:e},t){let n=C0(t);_i(()=>{t||e?.activeElement===e?.body&&qt(n())},[t]),uc(()=>{t&&qt(n())})}function S0({ownerDocument:e,container:t,initialFocus:n},r){let o=A(null),i=Yn();return _i(()=>{if(!r)return;let s=t.current;s&&Fr(()=>{if(!i.current)return;let a=e?.activeElement;if(n!=null&&n.current){if(n?.current===a){o.current=a;return}}else if(s.contains(a)){o.current=a;return}n!=null&&n.current?qt(n.current):Lr(s,Wt.First)===tc.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=e?.activeElement})},[r]),o}function E0({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=Yn();cc(e?.defaultView,"focus",s=>{if(!o||!i.current)return;let a=fc(n);t.current instanceof HTMLElement&&a.add(t.current);let l=r.current;if(!l)return;let c=s.target;c&&c instanceof HTMLElement?hc(a,c)?(r.current=c,qt(c)):(s.preventDefault(),s.stopPropagation(),qt(l)):qt(r.current)},!0)}function hc(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let pc=De(!1);function $0(){return de(pc)}function Ci(e){return E.createElement(pc.Provider,{value:e.force},e.children)}function T0(e){let t=$0(),n=de(wc),r=Wn(e),[o,i]=se(()=>{if(!t&&n!==null||dt.isServer)return null;let s=r?.getElementById("headlessui-portal-root");if(s)return s;if(r===null)return null;let a=r.createElement("div");return a.setAttribute("id","headlessui-portal-root"),r.body.appendChild(a)});return V(()=>{o!==null&&(r!=null&&r.body.contains(o)||r==null||r.body.appendChild(o))},[o,r]),V(()=>{t||n!==null&&i(n.current)},[n,i,t]),o}let M0=ue;function O0(e,t){let n=e,r=A(null),o=Fe(f0(f=>{r.current=f}),t),i=Wn(r),s=T0(r),[a]=se(()=>{var f;return dt.isServer?null:(f=i?.createElement("div"))!=null?f:null}),l=de(ki),c=bn();return Ce(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),Ce(()=>{if(a&&l)return l.register(a)},[l,a]),uc(()=>{var f;!s||!a||(a instanceof Node&&s.contains(a)&&s.removeChild(a),s.childNodes.length<=0&&((f=s.parentElement)==null||f.removeChild(s)))}),c?!s||!a?null:Wo(ke({ourProps:{ref:o},theirProps:n,defaultTag:M0,name:"Portal"}),a):null}let A0=ue,wc=De(null);function I0(e,t){let{target:n,...r}=e,o={ref:Fe(t)};return E.createElement(wc.Provider,{value:n},ke({ourProps:o,theirProps:r,defaultTag:A0,name:"Popover.Group"}))}let ki=De(null);function N0(){let e=de(ki),t=A([]),n=F(i=>(t.current.push(i),e&&e.register(i),()=>r(i))),r=F(i=>{let s=t.current.indexOf(i);s!==-1&&t.current.splice(s,1),e&&e.unregister(i)}),o=Q(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,Q(()=>function({children:i}){return E.createElement(ki.Provider,{value:o},i)},[o])]}let P0=Se(O0),D0=Se(I0),Si=Object.assign(P0,{Group:D0});function F0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const R0=typeof Object.is=="function"?Object.is:F0,{useState:L0,useEffect:j0,useLayoutEffect:H0,useDebugValue:B0}=mn;function V0(e,t,n){const r=t(),[{inst:o},i]=L0({inst:{value:r,getSnapshot:t}});return H0(()=>{o.value=r,o.getSnapshot=t,Ei(o)&&i({inst:o})},[e,r,t]),j0(()=>(Ei(o)&&i({inst:o}),e(()=>{Ei(o)&&i({inst:o})})),[e]),B0(r),r}function Ei(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!R0(n,r)}catch{return!0}}function U0(e,t,n){return t()}const z0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",G0=!z0,W0=G0?U0:V0,q0="useSyncExternalStore"in mn?(e=>e.useSyncExternalStore)(mn):W0;function Y0(e){return q0(e.subscribe,e.getSnapshot,e.getSnapshot)}function Z0(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let s=t[o].call(n,...i);s&&(n=s,r.forEach(a=>a()))}}}function K0(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,i=e-o;n.style(r,"paddingRight",`${i}px`)}}}function X0(){return rc()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(i=>i()).some(i=>i.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=Gt();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let i=(o=window.scrollY)!=null?o:window.pageYOffset,s=null;t.addEventListener(e,"click",a=>{if(a.target instanceof HTMLElement)try{let l=a.target.closest("a");if(!l)return;let{hash:c}=new URL(l.href),f=e.querySelector(c);f&&!r(f)&&(s=f)}catch{}},!0),t.addEventListener(e,"touchstart",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let l=a.target;for(;l.parentElement&&r(l.parentElement);)l=l.parentElement;t.style(l,"overscrollBehavior","contain")}else t.style(a.target,"touchAction","none")}),t.addEventListener(e,"touchmove",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let l=a.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()},{passive:!1}),t.add(()=>{var a;let l=(a=window.scrollY)!=null?a:window.pageYOffset;i!==l&&window.scrollTo(0,i),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function J0(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Q0(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Yt=Z0(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Gt(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:Q0(n)},o=[X0(),K0(),J0()];o.forEach(({before:i})=>i?.(r)),o.forEach(({after:i})=>i?.(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Yt.subscribe(()=>{let e=Yt.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&Yt.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Yt.dispatch("TEARDOWN",n)}});function ew(e,t,n){let r=Y0(Yt),o=e?r.get(e):void 0,i=o?o.count>0:!1;return Ce(()=>{if(!(!e||!t))return Yt.dispatch("PUSH",e,n),()=>Yt.dispatch("POP",e,n)},[t,e]),i}let $i=new Map,Xn=new Map;function mc(e,t=!0){Ce(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function o(){var s;if(!r)return;let a=(s=Xn.get(r))!=null?s:1;if(a===1?Xn.delete(r):Xn.set(r,a-1),a!==1)return;let l=$i.get(r);l&&(l["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",l["aria-hidden"]),r.inert=l.inert,$i.delete(r))}let i=(n=Xn.get(r))!=null?n:0;return Xn.set(r,i+1),i!==0||($i.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),o},[e,t])}function tw({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){var r;let o=A((r=n?.current)!=null?r:null),i=Wn(o),s=F(()=>{var a,l,c;let f=[];for(let u of e)u!==null&&(u instanceof HTMLElement?f.push(u):"current"in u&&u.current instanceof HTMLElement&&f.push(u.current));if(t!=null&&t.current)for(let u of t.current)f.push(u);for(let u of(a=i?.querySelectorAll("html > *, body > *"))!=null?a:[])u!==document.body&&u!==document.head&&u instanceof HTMLElement&&u.id!=="headlessui-portal-root"&&(u.contains(o.current)||u.contains((c=(l=o.current)==null?void 0:l.getRootNode())==null?void 0:c.host)||f.some(h=>u.contains(h))||f.push(u));return f});return{resolveContainers:s,contains:F(a=>s().some(l=>l.contains(a))),mainTreeNodeRef:o,MainTreeNode:Q(()=>function(){return n!=null?null:E.createElement(Ur,{features:qn.Hidden,ref:o})},[o,n])}}let Ti=De(()=>{});Ti.displayName="StackContext";var Mi=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Mi||{});function nw(){return de(Ti)}function rw({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=nw(),s=F((...a)=>{t?.(...a),i(...a)});return Ce(()=>{let a=o===void 0||o===!0;return a&&s(0,n,r),()=>{a&&s(1,n,r)}},[s,n,r,o]),E.createElement(Ti.Provider,{value:s},e)}let gc=De(null);function _c(){let e=de(gc);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,_c),t}return e}function yc(){let[e,t]=se([]);return[e.length>0?e.join(" "):void 0,Q(()=>function(n){let r=F(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),l=a.indexOf(i);return l!==-1&&a.splice(l,1),a}))),o=Q(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return E.createElement(gc.Provider,{value:o},n.children)},[t])]}let ow="p";function iw(e,t){let n=St(),{id:r=`headlessui-description-${n}`,...o}=e,i=_c(),s=Fe(t);Ce(()=>i.register(r),[r,i.register]);let a={ref:s,...i.props,id:r};return ke({ourProps:a,theirProps:o,slot:i.slot||{},defaultTag:ow,name:i.name||"Description"})}let sw=Se(iw),bc=Object.assign(sw,{});var aw=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(aw||{}),lw=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(lw||{});let cw={[0](e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Gr=De(null);Gr.displayName="DialogContext";function Jn(e){let t=de(Gr);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Jn),n}return t}function uw(e,t,n=()=>[document.body]){ew(e,t,r=>{var o;return{containers:[...(o=r.containers)!=null?o:[],n]}})}function fw(e,t){return ge(t.type,cw,e,t)}let dw="div",hw=Br.RenderStrategy|Br.Static;function pw(e,t){let n=St(),{id:r=`headlessui-dialog-${n}`,open:o,onClose:i,initialFocus:s,role:a="dialog",__demoMode:l=!1,...c}=e,[f,u]=se(0),h=A(!1);a=function(){return a==="dialog"||a==="alertdialog"?a:(h.current||(h.current=!0,console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let d=xi();o===void 0&&d!==null&&(o=(d&Re.Open)===Re.Open);let w=A(null),g=Fe(w,t),p=Wn(w),_=e.hasOwnProperty("open")||d!==null,b=e.hasOwnProperty("onClose");if(!_&&!b)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!_)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!b)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof o!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${o}`);if(typeof i!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${i}`);let x=o?0:1,[O,Y]=Vn(fw,{titleId:null,descriptionId:null,panelRef:Ao()}),Z=F(()=>i(!1)),Xe=F(ee=>Y({type:0,id:ee})),$e=bn()?l?!1:x===0:!1,U=f>1,re=de(Gr)!==null,[nt,Cn]=N0(),er={get current(){var ee;return(ee=O.panelRef.current)!=null?ee:w.current}},{resolveContainers:tr,mainTreeNodeRef:Zt,MainTreeNode:Vi}=tw({portals:nt,defaultContainers:[er]}),Kt=U?"parent":"leaf",Xr=d!==null?(d&Re.Closing)===Re.Closing:!1,Ui=(()=>re||Xr?!1:$e)(),kn=ut(()=>{var ee,pt;return(pt=Array.from((ee=p?.querySelectorAll("body > *"))!=null?ee:[]).find(Be=>Be.id==="headlessui-portal-root"?!1:Be.contains(Zt.current)&&Be instanceof HTMLElement))!=null?pt:null},[Zt]);mc(kn,Ui);let nr=(()=>U?!0:$e)(),Mt=ut(()=>{var ee,pt;return(pt=Array.from((ee=p?.querySelectorAll("[data-headlessui-portal]"))!=null?ee:[]).find(Be=>Be.contains(Zt.current)&&Be instanceof HTMLElement))!=null?pt:null},[Zt]);mc(Mt,nr);let zi=(()=>!(!$e||U))();c0(tr,ee=>{ee.preventDefault(),Z()},zi);let rt=(()=>!(U||x!==0))();cc(p?.defaultView,"keydown",ee=>{rt&&(ee.defaultPrevented||ee.key===zr.Escape&&(ee.preventDefault(),ee.stopPropagation(),Z()))});let pg=(()=>!(Xr||x!==0||re))();uw(p,pg,tr),V(()=>{if(x!==0||!w.current)return;let ee=new ResizeObserver(pt=>{for(let Be of pt){let Jr=Be.target.getBoundingClientRect();Jr.x===0&&Jr.y===0&&Jr.width===0&&Jr.height===0&&Z()}});return ee.observe(w.current),()=>ee.disconnect()},[x,w,Z]);let[wg,mg]=yc(),gg=Q(()=>[{dialogState:x,close:Z,setTitleId:Xe},O],[x,O,Z,Xe]),Hc=Q(()=>({open:x===0}),[x]),_g={ref:g,id:r,role:a,"aria-modal":x===0?!0:void 0,"aria-labelledby":O.titleId,"aria-describedby":wg};return E.createElement(rw,{type:"Dialog",enabled:x===0,element:w,onUpdate:F((ee,pt)=>{pt==="Dialog"&&ge(ee,{[Mi.Add]:()=>u(Be=>Be+1),[Mi.Remove]:()=>u(Be=>Be-1)})})},E.createElement(Ci,{force:!0},E.createElement(Si,null,E.createElement(Gr.Provider,{value:gg},E.createElement(Si.Group,{target:w},E.createElement(Ci,{force:!1},E.createElement(mg,{slot:Hc,name:"Dialog.Description"},E.createElement(Kn,{initialFocus:s,containers:tr,features:$e?ge(Kt,{parent:Kn.features.RestoreFocus,leaf:Kn.features.All&~Kn.features.FocusLock}):Kn.features.None},E.createElement(Cn,null,ke({ourProps:_g,theirProps:c,slot:Hc,defaultTag:dw,features:hw,visible:x===0,name:"Dialog"}))))))))),E.createElement(Vi,null))}let ww="div";function mw(e,t){let n=St(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:i,close:s}]=Jn("Dialog.Overlay"),a=Fe(t),l=F(f=>{if(f.target===f.currentTarget){if(lc(f.currentTarget))return f.preventDefault();f.preventDefault(),f.stopPropagation(),s()}}),c=Q(()=>({open:i===0}),[i]);return ke({ourProps:{ref:a,id:r,"aria-hidden":!0,onClick:l},theirProps:o,slot:c,defaultTag:ww,name:"Dialog.Overlay"})}let gw="div";function _w(e,t){let n=St(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:i},s]=Jn("Dialog.Backdrop"),a=Fe(t);V(()=>{if(s.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[s.panelRef]);let l=Q(()=>({open:i===0}),[i]);return E.createElement(Ci,{force:!0},E.createElement(Si,null,ke({ourProps:{ref:a,id:r,"aria-hidden":!0},theirProps:o,slot:l,defaultTag:gw,name:"Dialog.Backdrop"})))}let yw="div";function bw(e,t){let n=St(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:i},s]=Jn("Dialog.Panel"),a=Fe(t,s.panelRef),l=Q(()=>({open:i===0}),[i]),c=F(f=>{f.stopPropagation()});return ke({ourProps:{ref:a,id:r,onClick:c},theirProps:o,slot:l,defaultTag:yw,name:"Dialog.Panel"})}let vw="h2";function xw(e,t){let n=St(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:s}]=Jn("Dialog.Title"),a=Fe(t);V(()=>(s(r),()=>s(null)),[r,s]);let l=Q(()=>({open:i===0}),[i]);return ke({ourProps:{ref:a,id:r},theirProps:o,slot:l,defaultTag:vw,name:"Dialog.Title"})}let Cw=Se(pw),kw=Se(_w),Sw=Se(bw),Ew=Se(mw),$w=Se(xw),Oi=Object.assign(Cw,{Backdrop:kw,Panel:Sw,Overlay:Ew,Title:$w,Description:bc}),vc=De(null);function xc(){let e=de(vc);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,xc),t}return e}function Tw(){let[e,t]=se([]);return[e.length>0?e.join(" "):void 0,Q(()=>function(n){let r=F(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),l=a.indexOf(i);return l!==-1&&a.splice(l,1),a}))),o=Q(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return E.createElement(vc.Provider,{value:o},n.children)},[t])]}let Mw="label";function Ow(e,t){let n=St(),{id:r=`headlessui-label-${n}`,passive:o=!1,...i}=e,s=xc(),a=Fe(t);Ce(()=>s.register(r),[r,s.register]);let l={ref:a,...s.props,id:r};return o&&("onClick"in l&&(delete l.htmlFor,delete l.onClick),"onClick"in i&&delete i.onClick),ke({ourProps:l,theirProps:i,slot:s.slot||{},defaultTag:Mw,name:s.name||"Label"})}let Aw=Se(Ow),Iw=Object.assign(Aw,{});function Nw(e=0){let[t,n]=se(e),r=Yn(),o=ut(l=>{r.current&&n(c=>c|l)},[t,r]),i=ut(l=>Boolean(t&l),[t]),s=ut(l=>{r.current&&n(c=>c&~l)},[n,r]),a=ut(l=>{r.current&&n(c=>c^l)},[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:a}}let Ai=De(null);Ai.displayName="GroupContext";let Pw=ue;function Dw(e){var t;let[n,r]=se(null),[o,i]=Tw(),[s,a]=yc(),l=Q(()=>({switch:n,setSwitch:r,labelledby:o,describedby:s}),[n,r,o,s]),c={},f=e;return E.createElement(a,{name:"Switch.Description"},E.createElement(i,{name:"Switch.Label",props:{htmlFor:(t=l.switch)==null?void 0:t.id,onClick(u){n&&(u.currentTarget.tagName==="LABEL"&&u.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},E.createElement(Ai.Provider,{value:l},ke({ourProps:c,theirProps:f,defaultTag:Pw,name:"Switch.Group"}))))}let Fw="button";function Rw(e,t){var n;let r=St(),{id:o=`headlessui-switch-${r}`,checked:i,defaultChecked:s=!1,onChange:a,disabled:l=!1,name:c,value:f,form:u,...h}=e,d=de(Ai),w=A(null),g=Fe(w,t,d===null?null:d.setSwitch),[p,_]=Jp(i,a,s),b=F(()=>_?.(!p)),x=F(U=>{if(lc(U.currentTarget))return U.preventDefault();U.preventDefault(),b()}),O=F(U=>{U.key===zr.Space?(U.preventDefault(),b()):U.key===zr.Enter&&_0(U.currentTarget)}),Y=F(U=>U.preventDefault()),Z=Q(()=>({checked:p}),[p]),Xe={id:o,ref:g,role:"switch",type:u0(e,w),tabIndex:e.tabIndex===-1?0:(n=e.tabIndex)!=null?n:0,"aria-checked":p,"aria-labelledby":d?.labelledby,"aria-describedby":d?.describedby,disabled:l,onClick:x,onKeyUp:O,onKeyPress:Y},$e=Rr();return V(()=>{var U;let re=(U=w.current)==null?void 0:U.closest("form");re&&s!==void 0&&$e.addEventListener(re,"reset",()=>{_(s)})},[w,_]),E.createElement(E.Fragment,null,c!=null&&p&&E.createElement(Ur,{features:qn.Hidden,...yi({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:l,form:u,checked:p,name:c,value:f})}),ke({ourProps:Xe,theirProps:h,slot:Z,defaultTag:Fw,name:"Switch"}))}let Lw=Se(Rw),jw=Dw,Ii=Object.assign(Lw,{Group:jw,Label:Iw,Description:bc});function Hw(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Ni(e,...t){e&&t.length>0&&e.classList.add(...t)}function Pi(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Bw(e,t){let n=Gt();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,s]=[r,o].map(l=>{let[c=0]=l.split(",").filter(Boolean).map(f=>f.includes("ms")?parseFloat(f):parseFloat(f)*1e3).sort((f,u)=>u-f);return c}),a=i+s;if(a!==0){n.group(c=>{c.setTimeout(()=>{t(),c.dispose()},a),c.addEventListener(e,"transitionrun",f=>{f.target===f.currentTarget&&c.dispose()})});let l=n.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(t(),l())})}else t();return n.add(()=>t()),n.dispose}function Vw(e,t,n,r){let o=n?"enter":"leave",i=Gt(),s=r!==void 0?Hw(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let a=ge(o,{enter:()=>t.enter,leave:()=>t.leave}),l=ge(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=ge(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Pi(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Ni(e,...t.base,...a,...c),i.nextFrame(()=>{Pi(e,...t.base,...a,...c),Ni(e,...t.base,...a,...l),Bw(e,()=>(Pi(e,...t.base,...a),Ni(e,...t.base,...t.entered),s()))}),i.dispose}function Uw({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let s=Yn(),a=Rr(),l=ht(n);Ce(()=>{e&&(l.current="enter")},[e]),Ce(()=>{let c=Gt();a.add(c.dispose);let f=t.current;if(f&&l.current!=="idle"&&s.current)return c.dispose(),o.current(l.current),c.add(Vw(f,r.current,l.current==="enter",()=>{c.dispose(),i.current(l.current)})),c.dispose},[n])}function Tt(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Wr=De(null);Wr.displayName="TransitionContext";var zw=(e=>(e.Visible="visible",e.Hidden="hidden",e))(zw||{});function Gw(){let e=de(Wr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Ww(){let e=de(qr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let qr=De(null);qr.displayName="NestingContext";function Yr(e){return"children"in e?Yr(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Cc(e,t){let n=ht(e),r=A([]),o=Yn(),i=Rr(),s=F((d,w=Et.Hidden)=>{let g=r.current.findIndex(({el:p})=>p===d);g!==-1&&(ge(w,{[Et.Unmount](){r.current.splice(g,1)},[Et.Hidden](){r.current[g].state="hidden"}}),i.microTask(()=>{var p;!Yr(r)&&o.current&&((p=n.current)==null||p.call(n))}))}),a=F(d=>{let w=r.current.find(({el:g})=>g===d);return w?w.state!=="visible"&&(w.state="visible"):r.current.push({el:d,state:"visible"}),()=>s(d,Et.Unmount)}),l=A([]),c=A(Promise.resolve()),f=A({enter:[],leave:[],idle:[]}),u=F((d,w,g)=>{l.current.splice(0),t&&(t.chains.current[w]=t.chains.current[w].filter(([p])=>p!==d)),t?.chains.current[w].push([d,new Promise(p=>{l.current.push(p)})]),t?.chains.current[w].push([d,new Promise(p=>{Promise.all(f.current[w].map(([_,b])=>b)).then(()=>p())})]),w==="enter"?c.current=c.current.then(()=>t?.wait.current).then(()=>g(w)):g(w)}),h=F((d,w,g)=>{Promise.all(f.current[w].splice(0).map(([p,_])=>_)).then(()=>{var p;(p=l.current.shift())==null||p()}).then(()=>g(w))});return Q(()=>({children:r,register:a,unregister:s,onStart:u,onStop:h,wait:c,chains:f}),[a,s,r,u,h,f,c])}function qw(){}let Yw=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function kc(e){var t;let n={};for(let r of Yw)n[r]=(t=e[r])!=null?t:qw;return n}function Zw(e){let t=A(kc(e));return V(()=>{t.current=kc(e)},[e]),t}let Kw="div",Sc=Br.RenderStrategy;function Xw(e,t){var n,r;let{beforeEnter:o,afterEnter:i,beforeLeave:s,afterLeave:a,enter:l,enterFrom:c,enterTo:f,entered:u,leave:h,leaveFrom:d,leaveTo:w,...g}=e,p=A(null),_=Fe(p,t),b=(n=g.unmount)==null||n?Et.Unmount:Et.Hidden,{show:x,appear:O,initial:Y}=Gw(),[Z,Xe]=se(x?"visible":"hidden"),$e=Ww(),{register:U,unregister:re}=$e;V(()=>U(p),[U,p]),V(()=>{if(b===Et.Hidden&&p.current){if(x&&Z!=="visible"){Xe("visible");return}return ge(Z,{hidden:()=>re(p),visible:()=>U(p)})}},[Z,p,U,re,x,b]);let nt=ht({base:Tt(g.className),enter:Tt(l),enterFrom:Tt(c),enterTo:Tt(f),entered:Tt(u),leave:Tt(h),leaveFrom:Tt(d),leaveTo:Tt(w)}),Cn=Zw({beforeEnter:o,afterEnter:i,beforeLeave:s,afterLeave:a}),er=bn();V(()=>{if(er&&Z==="visible"&&p.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[p,Z,er]);let tr=Y&&!O,Zt=O&&x&&Y,Vi=(()=>!er||tr?"idle":x?"enter":"leave")(),Kt=Nw(0),Xr=F(rt=>ge(rt,{enter:()=>{Kt.addFlag(Re.Opening),Cn.current.beforeEnter()},leave:()=>{Kt.addFlag(Re.Closing),Cn.current.beforeLeave()},idle:()=>{}})),Ui=F(rt=>ge(rt,{enter:()=>{Kt.removeFlag(Re.Opening),Cn.current.afterEnter()},leave:()=>{Kt.removeFlag(Re.Closing),Cn.current.afterLeave()},idle:()=>{}})),kn=Cc(()=>{Xe("hidden"),re(p)},$e),nr=A(!1);Uw({immediate:Zt,container:p,classes:nt,direction:Vi,onStart:ht(rt=>{nr.current=!0,kn.onStart(p,rt,Xr)}),onStop:ht(rt=>{nr.current=!1,kn.onStop(p,rt,Ui),rt==="leave"&&!Yr(kn)&&(Xe("hidden"),re(p))})});let Mt=g,zi={ref:_};return Zt?Mt={...Mt,className:Hr(g.className,...nt.current.enter,...nt.current.enterFrom)}:nr.current&&(Mt.className=Hr(g.className,(r=p.current)==null?void 0:r.className),Mt.className===""&&delete Mt.className),E.createElement(qr.Provider,{value:kn},E.createElement(w0,{value:ge(Z,{visible:Re.Open,hidden:Re.Closed})|Kt.flags},ke({ourProps:zi,theirProps:Mt,defaultTag:Kw,features:Sc,visible:Z==="visible",name:"Transition.Child"})))}function Jw(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,s=A(null),a=Fe(s,t);bn();let l=xi();if(n===void 0&&l!==null&&(n=(l&Re.Open)===Re.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,f]=se(n?"visible":"hidden"),u=Cc(()=>{f("hidden")}),[h,d]=se(!0),w=A([n]);Ce(()=>{h!==!1&&w.current[w.current.length-1]!==n&&(w.current.push(n),d(!1))},[w,n]);let g=Q(()=>({show:n,appear:r,initial:h}),[n,r,h]);V(()=>{if(n)f("visible");else if(!Yr(u))f("hidden");else{let x=s.current;if(!x)return;let O=x.getBoundingClientRect();O.x===0&&O.y===0&&O.width===0&&O.height===0&&f("hidden")}},[n,u]);let p={unmount:o},_=F(()=>{var x;h&&d(!1),(x=e.beforeEnter)==null||x.call(e)}),b=F(()=>{var x;h&&d(!1),(x=e.beforeLeave)==null||x.call(e)});return E.createElement(qr.Provider,{value:u},E.createElement(Wr.Provider,{value:g},ke({ourProps:{...p,as:ue,children:E.createElement(Ec,{ref:a,...p,...i,beforeEnter:_,beforeLeave:b})},theirProps:{},defaultTag:ue,features:Sc,visible:c==="visible",name:"Transition"})))}function Qw(e,t){let n=de(Wr)!==null,r=xi()!==null;return E.createElement(E.Fragment,null,!n&&r?E.createElement(Di,{ref:t,...e}):E.createElement(Ec,{ref:t,...e}))}let Di=Se(Jw),Ec=Se(Xw),em=Se(Qw),$c=Object.assign(Di,{Child:em,Root:Di});class Zr extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Checked","OnChange","ClassName","Children"]}}function tm(e){const t=gt(e,1);return v(Ii,t)}class Tc extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ClassName","Children"]}}function nm(e){const t=gt(e,1);return v(Ii.Label,t)}class rm extends L{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Children"]}}function om(e){const t=gt(e,1);return v(Ii.Group,t)}class Fi extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","As","Show","Children"]}}function im(e){const t=gt(e,1);return v($c.Root,t)}class _e extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Appear","Show","ClassName","Enter","EnterFrom","EnterTo","Leave","LeaveFrom","LeaveTo","Children"]}}function Mc(e){const t=gt(e,1);return v($c.Child,t)}class Qn extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}}function sm(e){const t=gt(e,1);return v(Oi,t)}class Ri extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function am(e){const t=gt(e,1);return v(Oi.Panel,t)}class Kr extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Children"]}}function lm(e){const t=gt(e,1);return v(Oi.Title,t)}class cm extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Primary","Warning"]}}class um extends Me{constructor(t,n,r,o,i,s,a,l,c){super(),this.show=t,this.title=n,this.message=r,this.dialogIcon=o,this.okButtonText=i,this.okButtonClick=s,this.okButtonThem=a,this.cancelButtonText=l,this.cancelButtonClick=c}}function fm(e){let t,n,r,o;return im(M([new Fi(0,["1"]),new Fi(2,[e.show]),new Fi(3,[[sm(M([new Qn(1,["1"]),new Qn(0,["div"]),new Qn(2,["relative z-10"]),new Qn(4,[e.cancelButtonClick]),new Qn(5,[[Mc(M([new _e(0,["1"]),new _e(3,["fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"]),new _e(4,["ease-out duration-300"]),new _e(5,["opacity-0"]),new _e(6,["opacity-100"]),new _e(7,["ease-in duration-200"]),new _e(8,["opacity-100"]),new _e(9,["opacity-0"])])),v("div",te(M([["className","fixed inset-0 z-10 overflow-y-auto"],["key","2"],(t=[v("div",te(M([["key","1"],["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(n=[Mc(M([new _e(0,["1"]),new _e(4,["ease-out duration-300"]),new _e(5,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new _e(6,["opacity-100 translate-y-0 sm:scale-100"]),new _e(7,["ease-in duration-200"]),new _e(8,["opacity-100 translate-y-0 sm:scale-100"]),new _e(9,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new _e(10,[[am(M([new Ri(0,["1"]),new Ri(1,["relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6"]),new Ri(2,[[v("div",te(M([["key","1"],["className","sm:flex sm:items-start"],(r=Cr(ve(()=>{let i,s,a;return an((i=e.dialogIcon,i==null?sd():(s=i,yt(v("div",te(M([["key","1"],(a="mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center sm:mx-0 sm:h-10 sm:w-10 sm:mr-4 rounded-full bg-red-100",["className",a]),["children",ne.Children.toArray([s])]])))))),ve(()=>{let l,c;return yt(v("div",te(M([["key","2"],["className","mt-3 text-center sm:mt-0 sm:text-left"],(l=[lm(M([new Kr(1,["1"]),new Kr(0,["h3"]),new Kr(2,["text-lg font-medium leading-6 text-gray-900"]),new Kr(3,[[v("span",{children:e.title,key:"1"})]])])),v("div",te(M([["className","mt-2"],["key","2"],(c=[v("p",{className:"text-sm text-gray-500",children:e.message})],["children",ne.Children.toArray(Array.from(c))])])))],["children",ne.Children.toArray(Array.from(l))])]))))}))})),["children",ne.Children.toArray(Array.from(r))])]))),v("div",te(M([["key","2"],["className","mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"],(o=Cr(ve(()=>an(yt(v("button",{key:"Ok",type:"button",className:e.okButtonThem.tag===1?"inline-flex w-full justify-center rounded-md border border-transparent bg-red-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-gray-300 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm":"inline-flex w-full justify-center rounded-md border border-transparent bg-white px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-gray-300 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm",onClick:i=>{e.okButtonClick()},children:e.okButtonText})),ve(()=>{let i;return yt(v("button",te(M([["key","Cancel"],["type","button"],(i="mt-3 inline-flex w-full justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-base font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-gray-200 focus:ring-offset-2 sm:mt-0 sm:w-auto sm:text-sm",["className",i]),["onClick",s=>{e.cancelButtonClick()}],["children",e.cancelButtonText]]))))})))),["children",ne.Children.toArray(Array.from(o))])])))]])]))]])]))],["children",ne.Children.toArray(Array.from(n))])])))],["children",ne.Children.toArray(Array.from(t))])])))]])]))]])]))}function dm(){return fe()}function Li(e){return Dt("/",e)}function hm(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Li(t),n])}function Oc(e,t,n){try{G(n)}catch(r){e(["Error stopping subscription: "+Li(t),r])}}function pm(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+Li(n),o]);return}}function wm(e,t){Nn(n=>{Oc(e,n[0],n[1])},t)}function Ac(e,t,n,r,o,i){return Nn(s=>{hm(e,s)},n),Nn(s=>{Oc(e,s[0],s[1])},r),ho(o,vf(s=>pm(e,t,s[0],s[1]),i))}function mm(){return[fe(),Zd({Compare:Le}),fe()]}function gm(e,t,n,r,o){return Co(e,r)?[He(e,n),r,o]:[n,Yd(e,r),He([e,t],o)]}function _m(e){return pf((t,n)=>gm(t[0],t[1],n[0],n[1],n[2]),e,mm())}const ym=fe();function Ic(e,t){const n=Kd(gf(s=>s[0],e),{Compare:Le}),r=_m(t),o=r[1],i=r[0];if(n.Equals(o))return[i,fe(),e,fe()];{const s=bf(a=>Co(a[0],o),e);return[i,s[1],s[0],yf(a=>!Co(a[0],n),r[2])]}}function bm(e,t,n,r){const o=Le(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const i=o>0;return s=>{const a=Le(s,t)|0;return i&&a<=0||!i&&a>=0?[s,r(s,e)]:void 0}}function vm(e,t,n,r,o){const i=bm(t,n,r,o);return ve(()=>id(i,e))}function xm(e,t,n){return vm(e,t,n,0,(r,o)=>r+o)}class vn extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Cm{constructor(t){this.state=new vn(0,[yr(new Array(Ps(t,10)),0,Ps(t,10),null),0])}}function km(e){return new Cm(e)}function Nc(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,o=t.fields[0],i=(r+1)%o.length|0;return i===n?e.state=new vn(0,[o,n]):e.state=new vn(1,[o,n,i]),pe(q(r,o))}else return}function Sm(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,o=n.fields[2]|0,i=n.fields[0];Qe(i,r,t);const s=(r+1)%i.length|0;s===o?e.state=new vn(1,[Em(e,o,i),i.length,0]):e.state=new vn(1,[i,s,o])}else{const r=n.fields[1]|0,o=n.fields[0];Qe(o,r,t);const i=(r+1)%o.length|0;e.state=new vn(1,[o,i,r])}}function Em(e,t,n){return Array.from(ve(()=>an(dd(t,n),ve(()=>an(hd(t,n),ve(()=>pd(r=>yt(Te()),xm(0,1,n.length))))))))}class ji extends Me{constructor(t,n,r,o,i,s,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=i,this.onError=s,this.termination=a}}function $m(e,t,n){return new ji(e,t,r=>dm(),n,K(r=>{const o=At(n)(r);return i=>{o(i)}}),r=>{wp(r[0],r[1])},[r=>!1,r=>{}])}function Tm(e,t){return new ji(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function Mm(e){return e.init}function Om(e,t,n,r,o,i,s){const a=At(e)(s.init),l=no(t)(At(s.update)),c=no(n)(At(s.view)),f=no(r)(At(s.setState));return new ji(a,K(l),At(o)(s.subscribe),K(c),K(f),s.onError,i(s.termination))}function Am(e,t,n){let r;const o=n.init(t),i=o[0],s=n.subscribe(i),a=n.termination,l=km(10);let c=!1,f=i,u=ym,h=!1;const d=p=>{h||(Sm(l,p),c||(c=!0,g(),c=!1))},w=At(e)(d),g=()=>{let p,_=Nc(l);for(;!h&&_!=null;){const b=y(_);if(a[0](b))wm(n.onError,u),a[1](f),h=!0;else{const x=n.update(b,f),O=x[0],Y=n.subscribe(O);n.setState(O,w),Rl(Z=>{n.onError([rn(mt("Error handling the message: %A"))(b),Z])},w,x[1]),f=O,u=(p=Ic(u,Y),Ac(n.onError,w,p[0],p[1],p[2],p[3])),_=Nc(l)}}};c=!0,n.setState(i,w),Rl(p=>{n.onError([rn(mt("Error intitializing:")),p])},w,o[1]),u=(r=Ic(u,s),Ac(n.onError,w,r[0],r[1],r[2],r[3])),g(),c=!1}function Im(e,t){Am(K(n=>n),e,t)}function Nm(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Pc={exports:{}},Dc={};const Pm=Nm(mn);/**
42
42
  * @license React
43
43
  * use-sync-external-store-shim.production.min.js
44
44
  *
@@ -46,5 +46,5 @@ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation
46
46
  *
47
47
  * This source code is licensed under the MIT license found in the
48
48
  * LICENSE file in the root directory of this source tree.
49
- */var xn=Pm;function Dm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fm=typeof Object.is=="function"?Object.is:Dm,Rm=xn.useState,Lm=xn.useEffect,jm=xn.useLayoutEffect,Hm=xn.useDebugValue;function Bm(e,t){var n=t(),r=Rm({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return jm(function(){o.value=n,o.getSnapshot=t,Hi(o)&&i({inst:o})},[e,n,t]),Lm(function(){return Hi(o)&&i({inst:o}),e(function(){Hi(o)&&i({inst:o})})},[e]),Hm(n),n}function Hi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fm(e,n)}catch{return!0}}function Vm(e,t){return t()}var Um=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Vm:Bm;Dc.useSyncExternalStore=xn.useSyncExternalStore!==void 0?xn.useSyncExternalStore:Um,function(e){e.exports=Dc}(Pc);class zm{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),i=[];this.finalDispatch=void 0;let s;const a=Mm(o)(this.arg);let l=a[0],c=a[1];s=[[l,f=>{const u=this.finalDispatch;u==null?i.push(f):u(f)},!1,i],c],this.state=s[0],this.cmd=s[1],this.subscribe=f=>{let u=!1;const h=Qr(this.state[0]);return Im(this.arg,Tm((d,w)=>{const g=this.state;this.finalDispatch=w,this.state=[d,g[1],!0,i],d!==g[0]&&f()},Om((d,w)=>{const g=this.cmd;return this.cmd=kt(),[this.state[0],g]},(d,w,g)=>d(w)(this.state[0]),to(d=>d),to(d=>d),K(d=>d),d=>[w=>d[0](w)?!0:h&&u,w=>{const g=w;Qr(g)?G(g):d[1](w)}],o))),()=>{u=!0}}}}function Fc(e,t,n){return new zm(e,t,n)}function Gm(e){return e.state}function Wm(e){return e.subscribe}function qm(e,t,n){return ye(e.arg,t)?!ye(e.dependencies,n):!0}function Ym(e,t,n){const r=se(()=>Fc(e,t,n)),o=r[0];qm(o,t,n)&&r[1](Fc(e,t,n));const i=Pc.exports.useSyncExternalStore(Wm(o),()=>Gm(o)),s=i[2],a=i[3],l=i[1];return V(()=>{if(s&&a.length>0){let c=oe(a);try{for(;c["System.Collections.IEnumerator.MoveNext"]();){const f=c["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{G(c)}tu(a)}},[s,a]),[i[0],l]}function Zm(e){switch(e.Ownership.tag){case 2:return"(Default)";case 0:return"";default:return"(Inherited)"}}function Km(e){const t=e.Error;let n,r;switch(t!=null&&e.Mode.tag===1?(n=0,r=t):n=1,n){case 0:return v("h1",{className:"basis-1/4 text-lg font-semibold text-red-500",children:`${r}. Please cancel edit or try again`});default:return Te()}}function Xm(e,t){return v("h3",{className:"basis-1/4 text-lg font-semibold text-gray-900",children:t?"Admin Settings (*)":`Admin Settings ${Zm(e)}`})}function Jm(e,t,n){let r;const o=e.EditAllowed&&!Dr(t.Mode),i=o?"":"hidden",s=Dr(t.Mode)?"":"hidden",a=o&&ye(wi(t).Ownership,new ti(0,[]))?"":"hidden";return v("div",te(M([["className","flex flex-row space-x-2 basis-3/4"],(r=[v("button",{className:`${s} inline-flex justify-center rounded-md border border-transparent py-2 px-4 shadow-sm focus:outline-none focus:ring-indigo-500 focus:ring-2 focus:ring-offset-2 text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700`,onClick:l=>{n(Vp())},type:"button",children:"Save"}),v("button",{className:`${s} inline-flex justify-center rounded-md border border-transparent py-2 px-4 shadow-sm focus:outline-none focus:ring-indigo-500 focus:ring-2 focus:ring-offset-2 text-sm font-medium border-gray-300 bg-white text-gray-700 hover:bg-gray-50 focus:ring-gray-300`,onClick:l=>{n(new he(8,[]))},type:"button",children:"Cancel"}),v("button",{className:`${i} inline-flex items-center rounded border border-transparent bg-indigo-600 px-2.5 py-1.5 mr-2 text-xs font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none`,onClick:l=>{n(new he(0,[new pi(1,[])]))},type:"button",children:ne.Children.toArray([qp])}),v("button",{className:`${a} inline-flex items-center rounded border border-transparent bg-red-600 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none`,onClick:l=>{n(new he(6,[]))},type:"button",children:ne.Children.toArray([Yp])})],["children",ne.Children.toArray(Array.from(r))])])))}function Qm(e,t,n,r){return om(ae(new rm([tm(M([new Zr(0,[e]),new Zr(1,[o=>{n&&r(o)}]),new Zr(2,[`${e?"bg-gray-900":"bg-gray-300"} relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-primary-600 focus:ring-offset-2`]),new Zr(3,[[v("span",{className:`${e?"translate-x-5":"translate-x-0"} pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out`})]])])),nm(M([new Tc(0,["ml-3"]),new Tc(1,[[v("span",{className:"text-sm leading-5 font-medium text-gray-900",children:t})]])]))])))}function eg(e,t){return e.CurrentConfirmationDialog==null?Te():fm(new um(!0,"Reset User Management Configuration","Are you sure you want to reset the current user management configuration? This action cannot be undone.",Wp,"Reset",()=>{t(Up())},new cm(1,[]),"Cancel",()=>{t(new he(7,[]))}))}function tg(e){let t,n,r;const o=Ym(()=>$m(()=>zp,(c,f)=>Gp(e.PartnerId,e.AccountId,e.ConfigService,c,f),(c,f)=>{}),void 0,void 0),i=o[0],s=o[1],a=e.EditAllowed&&Dr(i.Mode),l=i.Config;switch(l.tag){case 3:return v("div",{children:["Something went wrong. Please try again"]});case 2:{const c=l.fields[0];if(c.tag===0){const f=c.fields[0];return v("div",te(M([["className","flex flex-col mt-5 w-full "],(t=[v("div",te(M([["className","flex flex-row"],(n=[Xm(f,Dr(i.Mode)),Jm(e,i,s)],["children",ne.Children.toArray(Array.from(n))])]))),v("div",te(M([["className","mt-5"],(r=[Qm(f.AdminUserManagementEnabled,"User Management",a,u=>{s(new he(3,[u]))})],["children",ne.Children.toArray(Array.from(r))])]))),Km(i),eg(i,s)],["children",ne.Children.toArray(Array.from(t))])])))}else return v("div",{children:[`${c.fields[0]}`]})}default:return v("div",{children:["Please wait"]})}}const ng=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type="button"]),input:where([type="reset"]),input:where([type="submit"]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.-mb-px{margin-bottom:-1px}.ml-3{margin-left:.75rem}.mr-2{margin-right:.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-12{height:3rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.min-h-full{min-height:100%}.w-11{width:2.75rem}.w-12{width:3rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.flex-shrink-0{flex-shrink:0}.basis-1\\/4{flex-basis:25%}.basis-3\\/4{flex-basis:75%}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-5{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity: .75}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-4{padding-bottom:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity))}.hover\\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.focus\\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}@media (min-width: 640px){.sm\\:mx-0{margin-left:0;margin-right:0}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:mr-4{margin-right:1rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-4{margin-top:1rem}.sm\\:flex{display:flex}.sm\\:h-10{height:2.5rem}.sm\\:w-10{width:2.5rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:flex-row-reverse{flex-direction:row-reverse}.sm\\:items-start{align-items:flex-start}.sm\\:items-center{align-items:center}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}
50
- `,Rc=(()=>ze(ng))();function rg(e){let t,n;const r=e.setCurrentTab,o=e.currentTab,i=e.tabs;return v("div",te(M([["className","border-b border-gray-200"],(t=[v("nav",te(M([["className","-mb-px flex space-x-8"],(n=kr(ve(()=>Ie(s=>v("a",{key:gs(),className:Dt(" ",kr(ve(()=>an(ye(o,s)?yt("border-indigo-500 text-indigo-600"):yt("border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 cursor-pointer"),ve(()=>yt("whitespace-nowrap border-b-2 py-4 px-1 text-sm font-medium")))))),onClick:a=>{r(s)},children:gs()}),i))),["children",ne.Children.toArray(Array.from(n))])])))],["children",ne.Children.toArray(Array.from(t))])])))}function Bi(){return(Bi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var og=["context","children"];function ig(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,s,a={},l=Object.keys(r);for(s=0;s<l.length;s++)o.indexOf(i=l[s])>=0||(a[i]=r[i]);return a}(e,og);return Ro(t,n)}function sg(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=v(ig,Bi({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],i={},s=0,a=n.attributes,l=n.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(i[a[s].name]=a[s].value,i[Lc(a[s].name)]=a[s].value);for(s=l.length;s--;){var c=t(l[s],null),f=l[s].slot;f?i[f]=v(jc,{name:f},c):o[s]=c}var u=r?v(jc,null,o):o;return v(r||n.nodeName.toLowerCase(),i,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Fo:vt)(this._vdom,this._root)}function Lc(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function ag(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Lc(e)]=n,this._vdom=Ro(this._vdom,r),vt(this._vdom,this._root)}}function lg(){vt(this._vdom=null,this._root)}function jc(e,t){var n=this;return v("slot",Bi({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function cg(e,t,n,r){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=r&&r.shadow?i.attachShadow({mode:r.mode||"open"}):i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=sg,o.prototype.attributeChangedCallback=ag,o.prototype.disconnectedCallback=lg,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(s){this._vdom?this.attributeChangedCallback(i,null,s):(this._props||(this._props={}),this._props[i]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(i,s)}})}),customElements.define(t||e.tagName||e.displayName||e.name,o)}function ug(e,t){cg(e,t,void 0,{shadow:!0})}function fg(e,t){return v(tg,{AccountId:nf(e.accountId),ConfigService:Op(e.backendUrl,e.accessToken),EditAllowed:kh(t.Roles),PartnerId:e.partnerId})}function dg(e){let t;const n=Ch(e.accessToken),r=n.Roles;let o;switch(xh(r)!=null||Ra(r)!=null?o=0:o=1,o){case 0:{const i=M([v("style",{children:[Rc]}),v(rg,{tabs:ae(new ms),currentTab:new ms,setCurrentTab:s=>{}}),v("div",te(M([["className","mt-4"],(t=[fg(e,n)],["children",ne.Children.toArray(Array.from(t))])])))]);return v("div",{children:ne.Children.toArray(Array.from(i))})}default:{const i=M([v("style",{children:[Rc]}),v("div",{children:"You do not have the appropriate permissions to view this page."})]);return v("div",{children:ne.Children.toArray(Array.from(i))})}}}function hg(){ug(e=>v(dg,e),"superhero-profile-directory-app")}hg()})();
49
+ */var xn=Pm;function Dm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fm=typeof Object.is=="function"?Object.is:Dm,Rm=xn.useState,Lm=xn.useEffect,jm=xn.useLayoutEffect,Hm=xn.useDebugValue;function Bm(e,t){var n=t(),r=Rm({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return jm(function(){o.value=n,o.getSnapshot=t,Hi(o)&&i({inst:o})},[e,n,t]),Lm(function(){return Hi(o)&&i({inst:o}),e(function(){Hi(o)&&i({inst:o})})},[e]),Hm(n),n}function Hi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fm(e,n)}catch{return!0}}function Vm(e,t){return t()}var Um=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Vm:Bm;Dc.useSyncExternalStore=xn.useSyncExternalStore!==void 0?xn.useSyncExternalStore:Um,function(e){e.exports=Dc}(Pc);class zm{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),i=[];this.finalDispatch=void 0;let s;const a=Mm(o)(this.arg);let l=a[0],c=a[1];s=[[l,f=>{const u=this.finalDispatch;u==null?i.push(f):u(f)},!1,i],c],this.state=s[0],this.cmd=s[1],this.subscribe=f=>{let u=!1;const h=Qr(this.state[0]);return Im(this.arg,Tm((d,w)=>{const g=this.state;this.finalDispatch=w,this.state=[d,g[1],!0,i],d!==g[0]&&f()},Om((d,w)=>{const g=this.cmd;return this.cmd=Ct(),[this.state[0],g]},(d,w,g)=>d(w)(this.state[0]),to(d=>d),to(d=>d),K(d=>d),d=>[w=>d[0](w)?!0:h&&u,w=>{const g=w;Qr(g)?G(g):d[1](w)}],o))),()=>{u=!0}}}}function Fc(e,t,n){return new zm(e,t,n)}function Gm(e){return e.state}function Wm(e){return e.subscribe}function qm(e,t,n){return ye(e.arg,t)?!ye(e.dependencies,n):!0}function Ym(e,t,n){const r=se(()=>Fc(e,t,n)),o=r[0];qm(o,t,n)&&r[1](Fc(e,t,n));const i=Pc.exports.useSyncExternalStore(Wm(o),()=>Gm(o)),s=i[2],a=i[3],l=i[1];return V(()=>{if(s&&a.length>0){let c=oe(a);try{for(;c["System.Collections.IEnumerator.MoveNext"]();){const f=c["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{G(c)}tu(a)}},[s,a]),[i[0],l]}function Zm(e){switch(e.Ownership.tag){case 2:return"(Default)";case 0:return"";default:return"(Inherited)"}}function Km(e){const t=e.Error;let n,r;switch(t!=null&&e.Mode.tag===1?(n=0,r=t):n=1,n){case 0:return v("h1",{className:"basis-1/4 text-lg font-semibold text-red-500",children:`${r}. Please cancel edit or try again`});default:return Te()}}function Xm(e,t){return v("h3",{className:"basis-1/4 text-lg font-semibold text-gray-900",children:t?"Admin Settings (*)":`Admin Settings ${Zm(e)}`})}function Jm(e,t,n){let r;const o=e.EditAllowed&&!Dr(t.Mode),i=o?"":"hidden",s=Dr(t.Mode)?"":"hidden",a=o&&ye(wi(t).Ownership,new ti(0,[]))?"":"hidden";return v("div",te(M([["className","flex flex-row space-x-2 basis-3/4"],(r=[v("button",{className:`${s} inline-flex justify-center rounded-md border border-transparent py-2 px-4 shadow-sm focus:outline-none focus:ring-indigo-500 focus:ring-2 focus:ring-offset-2 text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700`,onClick:l=>{n(Vp())},type:"button",children:"Save"}),v("button",{className:`${s} inline-flex justify-center rounded-md border border-transparent py-2 px-4 shadow-sm focus:outline-none focus:ring-indigo-500 focus:ring-2 focus:ring-offset-2 text-sm font-medium border-gray-300 bg-white text-gray-700 hover:bg-gray-50 focus:ring-gray-300`,onClick:l=>{n(new he(8,[]))},type:"button",children:"Cancel"}),v("button",{className:`${i} inline-flex items-center rounded border border-transparent bg-indigo-600 px-2.5 py-1.5 mr-2 text-xs font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none`,onClick:l=>{n(new he(0,[new pi(1,[])]))},type:"button",children:ne.Children.toArray([qp])}),v("button",{className:`${a} inline-flex items-center rounded border border-transparent bg-red-600 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none`,onClick:l=>{n(new he(6,[]))},type:"button",children:ne.Children.toArray([Yp])})],["children",ne.Children.toArray(Array.from(r))])])))}function Qm(e,t,n,r){return om(ae(new rm([tm(M([new Zr(0,[e]),new Zr(1,[o=>{n&&r(o)}]),new Zr(2,[`${e?"bg-gray-900":"bg-gray-300"} relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-primary-600 focus:ring-offset-2`]),new Zr(3,[[v("span",{className:`${e?"translate-x-5":"translate-x-0"} pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out`})]])])),nm(M([new Tc(0,["ml-3"]),new Tc(1,[[v("span",{className:"text-sm leading-5 font-medium text-gray-900",children:t})]])]))])))}function eg(e,t){return e.CurrentConfirmationDialog==null?Te():fm(new um(!0,"Reset User Management Configuration","Are you sure you want to reset the current user management configuration? This action cannot be undone.",Wp,"Reset",()=>{t(Up())},new cm(1,[]),"Cancel",()=>{t(new he(7,[]))}))}function tg(e){let t,n,r;const o=Ym(()=>$m(()=>zp,(c,f)=>Gp(e.PartnerId,e.AccountId,e.ConfigService,c,f),(c,f)=>{}),void 0,void 0),i=o[0],s=o[1],a=e.EditAllowed&&Dr(i.Mode),l=i.Config;switch(l.tag){case 3:return v("div",{children:["Something went wrong. Please try again"]});case 2:{const c=l.fields[0];if(c.tag===0){const f=c.fields[0];return v("div",te(M([["className","flex flex-col mt-5 w-full "],(t=[v("div",te(M([["className","flex flex-row"],(n=[Xm(f,Dr(i.Mode)),Jm(e,i,s)],["children",ne.Children.toArray(Array.from(n))])]))),v("div",te(M([["className","mt-5"],(r=[Qm(f.AdminUserManagementEnabled,"User Management",a,u=>{s(new he(3,[u]))})],["children",ne.Children.toArray(Array.from(r))])]))),Km(i),eg(i,s)],["children",ne.Children.toArray(Array.from(t))])])))}else return v("div",{children:[`${c.fields[0]}`]})}default:return v("div",{children:["Please wait"]})}}const ng=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type="button"]),input:where([type="reset"]),input:where([type="submit"]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.-mb-px{margin-bottom:-1px}.ml-3{margin-left:.75rem}.mr-2{margin-right:.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-12{height:3rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.min-h-full{min-height:100%}.w-11{width:2.75rem}.w-12{width:3rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.flex-shrink-0{flex-shrink:0}.basis-1\\/4{flex-basis:25%}.basis-3\\/4{flex-basis:75%}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-5{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity: .75}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-4{padding-bottom:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity))}.hover\\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.focus\\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}@media (min-width: 640px){.sm\\:mx-0{margin-left:0;margin-right:0}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:mr-4{margin-right:1rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-4{margin-top:1rem}.sm\\:flex{display:flex}.sm\\:h-10{height:2.5rem}.sm\\:w-10{width:2.5rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:flex-row-reverse{flex-direction:row-reverse}.sm\\:items-start{align-items:flex-start}.sm\\:items-center{align-items:center}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}
50
+ `,Rc=(()=>ze(ng))();function rg(e){let t,n;const r=e.setCurrentTab,o=e.currentTab,i=e.tabs;return v("div",te(M([["className","border-b border-gray-200"],(t=[v("nav",te(M([["className","-mb-px flex space-x-8"],(n=Cr(ve(()=>Ie(s=>v("a",{key:gs(),className:Dt(" ",Cr(ve(()=>an(ye(o,s)?yt("border-indigo-500 text-indigo-600"):yt("border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 cursor-pointer"),ve(()=>yt("whitespace-nowrap border-b-2 py-4 px-1 text-sm font-medium")))))),onClick:a=>{r(s)},children:gs()}),i))),["children",ne.Children.toArray(Array.from(n))])])))],["children",ne.Children.toArray(Array.from(t))])])))}function Bi(){return(Bi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var og=["context","children"];function ig(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,s,a={},l=Object.keys(r);for(s=0;s<l.length;s++)o.indexOf(i=l[s])>=0||(a[i]=r[i]);return a}(e,og);return Ro(t,n)}function sg(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=v(ig,Bi({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],i={},s=0,a=n.attributes,l=n.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(i[a[s].name]=a[s].value,i[Lc(a[s].name)]=a[s].value);for(s=l.length;s--;){var c=t(l[s],null),f=l[s].slot;f?i[f]=v(jc,{name:f},c):o[s]=c}var u=r?v(jc,null,o):o;return v(r||n.nodeName.toLowerCase(),i,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Fo:vt)(this._vdom,this._root)}function Lc(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function ag(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Lc(e)]=n,this._vdom=Ro(this._vdom,r),vt(this._vdom,this._root)}}function lg(){vt(this._vdom=null,this._root)}function jc(e,t){var n=this;return v("slot",Bi({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function cg(e,t,n,r){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=r&&r.shadow?i.attachShadow({mode:r.mode||"open"}):i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=sg,o.prototype.attributeChangedCallback=ag,o.prototype.disconnectedCallback=lg,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(s){this._vdom?this.attributeChangedCallback(i,null,s):(this._props||(this._props={}),this._props[i]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(i,s)}})}),customElements.define(t||e.tagName||e.displayName||e.name,o)}function ug(e,t){cg(e,t,void 0,{shadow:!0})}function fg(e,t){return v(tg,{AccountId:nf(e.accountId),ConfigService:Op(e.backendUrl,e.accessToken),EditAllowed:Ch(t.Roles),PartnerId:e.partnerId})}function dg(e){let t;const n=kh(e.accessToken),r=n.Roles;let o;switch(xh(r)!=null||Ra(r)!=null?o=0:o=1,o){case 0:{const i=M([v("style",{children:[Rc]}),v(rg,{tabs:ae(new ms),currentTab:new ms,setCurrentTab:s=>{}}),v("div",te(M([["className","mt-4"],(t=[fg(e,n)],["children",ne.Children.toArray(Array.from(t))])])))]);return v("div",{children:ne.Children.toArray(Array.from(i))})}default:{const i=M([v("style",{children:[Rc]}),v("div",{children:"You do not have the appropriate permissions to view this page."})]);return v("div",{children:ne.Children.toArray(Array.from(i))})}}}function hg(){ug(e=>v(dg,e),"superhero-profile-directory-app")}hg()})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/superhero-basic-profile",
3
- "version": "4.23.120",
3
+ "version": "4.24.121",
4
4
  "description": "Flare Superhero Basic Profile Components",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "files": [