@flarehr/superhero-import-app 0.1.97 → 0.1.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/superhero-import-app.js +20 -20
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
(function(){"use strict";var Ko=document.createElement("style");Ko.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: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.z-10{z-index:10}.m-2{margin:.5rem}.-mx-4{margin-left:-1rem;margin-right:-1rem}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.mx-auto{margin-left:auto;margin-right:auto}.-mb-px{margin-bottom:-1px}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-6{margin-bottom:1.5rem}.ml-6{margin-left:1.5rem}.mr-6{margin-right:1.5rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.inline-table{display:inline-table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row-group{display:table-row-group}.table-row{display:table-row}.flow-root{display:flow-root}.grid{display:grid}.inline-grid{display:inline-grid}.contents{display:contents}.list-item{display:list-item}.hidden{display:none}.min-h-full{min-height:100%}.w-full{width:100%}.min-w-full{min-width:100%}.flex-shrink,.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.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))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-outside{list-style-position:outside}.list-disc{list-style-type:disc}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.justify-center{justify-content:center}.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)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(209 213 219 / var(--tw-divide-opacity))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.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-transparent{border-color:transparent}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / 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-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-4{padding-bottom:1rem}.pl-4{padding-left:1rem}.pr-3{padding-right:.75rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-justify{text-align:justify}.align-middle{vertical-align:middle}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.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)}.outline{outline-style:solid}.ring{--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(3px + 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)}.ring-1{--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, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.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}.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-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.focus-visible\\:outline:focus-visible{outline-style:solid}.focus-visible\\:outline-2:focus-visible{outline-width:2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-indigo-600:focus-visible{outline-color:#4f46e5}.disabled\\:border-indigo-500:disabled{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.disabled\\:text-indigo-600:disabled{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\\:col-start-1{grid-column-start:1}.sm\\:col-start-2{grid-column-start:2}.sm\\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-5{margin-top:1.25rem}.sm\\:mt-6{margin-top:1.5rem}.sm\\:grid{display:grid}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:grid-flow-row-dense{grid-auto-flow:row dense}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:items-center{align-items:center}.sm\\:gap-3{gap:.75rem}.sm\\:rounded-lg{border-radius:.5rem}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:pl-6{padding-left:1.5rem}}@media (min-width: 1024px){.lg\\:-mx-8{margin-left:-2rem;margin-right:-2rem}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}
|
|
2
|
-
`,document.head.appendChild(Ko);var un,R,Xo,bt,Yo,ei,Er,kr,Dr,Ir,ti,fn={},ni=[],jl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Nn=Array.isArray;function st(e,t){for(var n in t)e[n]=t[n];return e}function ri(e){var t=e.parentNode;t&&t.removeChild(e)}function p(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?un.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 dn(e,s,r,o,null)}function dn(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??++Xo,__i:-1,__u:0};return o==null&&R.vnode!=null&&R.vnode(i),i}function oi(){return{current:null}}function be(e){return e.children}function $e(e,t){this.props=e,this.context=t}function At(e,t){if(t==null)return e.__?At(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"?At(e):null}function ii(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 ii(e)}}function Tr(e){(!e.__d&&(e.__d=!0)&&bt.push(e)&&!Bn.__r++||Yo!==R.debounceRendering)&&((Yo=R.debounceRendering)||ei)(Bn)}function Bn(){var e,t,n,r,o,i,s,a;for(bt.sort(Er);e=bt.shift();)e.__d&&(t=bt.length,r=void 0,i=(o=(n=e).__v).__e,s=[],a=[],n.__P&&((r=st({},o)).__v=o.__v+1,R.vnode&&R.vnode(r),Rr(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,s,i??At(o),!!(32&o.__u),a),r.__v=o.__v,r.__.__k[r.__i]=r,ui(s,r,a),r.__e!=i&&ii(r)),bt.length>t&&bt.sort(Er));Bn.__r=0}function si(e,t,n,r,o,i,s,a,u,l,f){var c,m,d,g,_,w=r&&r.__k||ni,y=t.length;for(n.__d=u,Hl(n,t,w),u=n.__d,c=0;c<y;c++)(d=n.__k[c])!=null&&typeof d!="boolean"&&typeof d!="function"&&(m=d.__i===-1?fn:w[d.__i]||fn,d.__i=c,Rr(e,d,m,o,i,s,a,u,l,f),g=d.__e,d.ref&&m.ref!=d.ref&&(m.ref&&Mr(m.ref,null,d),f.push(d.ref,d.__c||g,d)),_==null&&g!=null&&(_=g),65536&d.__u||m.__k===d.__k?(u&&!u.isConnected&&(u=At(m)),u=ai(d,u,e)):typeof d.type=="function"&&d.__d!==void 0?u=d.__d:g&&(u=g.nextSibling),d.__d=void 0,d.__u&=-196609);n.__d=u,n.__e=_}function Hl(e,t,n){var r,o,i,s,a,u=t.length,l=n.length,f=l,c=0;for(e.__k=[],r=0;r<u;r++)s=r+c,(o=e.__k[r]=(o=t[r])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?dn(null,o,null,null,null):Nn(o)?dn(be,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?dn(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,a=$l(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&&c--,typeof o.type!="function"&&(o.__u|=65536)):a!==s&&(a===s+1?c++:a>s?f>u-s?c+=a-s:c--:a<s?a==s-1&&(c=a-s):c=0,a!==r+c&&(o.__u|=65536))):(i=n[s])&&i.key==null&&i.__e&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=At(i)),Fr(i,i,!1),n[s]=null,f--);if(f)for(r=0;r<l;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=At(i)),Fr(i,i))}function ai(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=ai(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function at(e,t){return t=t||[],e==null||typeof e=="boolean"||(Nn(e)?e.some(function(n){at(n,t)}):t.push(e)),t}function $l(e,t,n,r){var o=e.key,i=e.type,s=n-1,a=n+1,u=t[n];if(u===null||u&&o==u.key&&i===u.type&&!(131072&u.__u))return n;if(r>(u!=null&&!(131072&u.__u)?1:0))for(;s>=0||a<t.length;){if(s>=0){if((u=t[s])&&!(131072&u.__u)&&o==u.key&&i===u.type)return s;s--}if(a<t.length){if((u=t[a])&&!(131072&u.__u)&&o==u.key&&i===u.type)return a;a++}}return-1}function li(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||jl.test(t)?n:n+"px"}function jn(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||li(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||li(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=kr,e.addEventListener(t,i?Ir:Dr,i)):e.removeEventListener(t,i?Ir:Dr,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 in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function ci(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=kr++;else if(t.t<n.u)return;return n(R.event?R.event(t):t)}}}function Rr(e,t,n,r,o,i,s,a,u,l){var f,c,m,d,g,_,w,y,S,I,oe,Y,je,Se,Rt,ie=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(u=!!(32&n.__u),i=[a=t.__e=n.__e]),(f=R.__b)&&f(t);e:if(typeof ie=="function")try{if(y=t.props,S=(f=ie.contextType)&&r[f.__c],I=f?S?S.props.value:f.__:r,n.__c?w=(c=t.__c=n.__c).__=c.__E:("prototype"in ie&&ie.prototype.render?t.__c=c=new ie(y,I):(t.__c=c=new $e(y,I),c.constructor=ie,c.render=Ul),S&&S.sub(c),c.props=y,c.state||(c.state={}),c.context=I,c.__n=r,m=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),ie.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=st({},c.__s)),st(c.__s,ie.getDerivedStateFromProps(y,c.__s))),d=c.props,g=c.state,c.__v=t,m)ie.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(ie.getDerivedStateFromProps==null&&y!==d&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(y,I),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(y,c.__s,I)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=y,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(it){it&&(it.__=t)}),oe=0;oe<c._sb.length;oe++)c.__h.push(c._sb[oe]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(y,c.__s,I),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(d,g,_)})}if(c.context=I,c.props=y,c.__P=e,c.__e=!1,Y=R.__r,je=0,"prototype"in ie&&ie.prototype.render){for(c.state=c.__s,c.__d=!1,Y&&Y(t),f=c.render(c.props,c.state,c.context),Se=0;Se<c._sb.length;Se++)c.__h.push(c._sb[Se]);c._sb=[]}else do c.__d=!1,Y&&Y(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++je<25);c.state=c.__s,c.getChildContext!=null&&(r=st(st({},r),c.getChildContext())),m||c.getSnapshotBeforeUpdate==null||(_=c.getSnapshotBeforeUpdate(d,g)),si(e,Nn(Rt=f!=null&&f.type===be&&f.key==null?f.props.children:f)?Rt:[Rt],t,n,r,o,i,s,a,u,l),c.base=t.__e,t.__u&=-161,c.__h.length&&s.push(c),w&&(c.__E=c.__=null)}catch(it){t.__v=null,u||i!=null?(t.__e=a,t.__u|=u?160:32,i[i.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),R.__e(it,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Vl(n.__e,t,n,r,o,i,s,u,l);(f=R.diffed)&&f(t)}function ui(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Mr(n[r],n[++r],n[++r]);R.__c&&R.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){R.__e(i,o.__v)}})}function Vl(e,t,n,r,o,i,s,a,u){var l,f,c,m,d,g,_,w=n.props,y=t.props,S=t.type;if(S==="svg"?o="http://www.w3.org/2000/svg":S==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(l=0;l<i.length;l++)if((d=i[l])&&"setAttribute"in d==!!S&&(S?d.localName===S:d.nodeType===3)){e=d,i[l]=null;break}}if(e==null){if(S===null)return document.createTextNode(y);e=document.createElementNS(o,S,y.is&&y),i=null,a=!1}if(S===null)w===y||a&&e.data===y||(e.data=y);else{if(i=i&&un.call(e.childNodes),w=n.props||fn,!a&&i!=null)for(w={},l=0;l<e.attributes.length;l++)w[(d=e.attributes[l]).name]=d.value;for(l in w)if(d=w[l],l!="children"){if(l=="dangerouslySetInnerHTML")c=d;else if(l!=="key"&&!(l in y)){if(l=="value"&&"defaultValue"in y||l=="checked"&&"defaultChecked"in y)continue;jn(e,l,null,d,o)}}for(l in y)d=y[l],l=="children"?m=d:l=="dangerouslySetInnerHTML"?f=d:l=="value"?g=d:l=="checked"?_=d:l==="key"||a&&typeof d!="function"||w[l]===d||jn(e,l,d,w[l],o);if(f)a||c&&(f.__html===c.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),si(e,Nn(m)?m:[m],t,n,r,S==="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&At(n,0),a,u),i!=null)for(l=i.length;l--;)i[l]!=null&&ri(i[l]);a||(l="value",g!==void 0&&(g!==e[l]||S==="progress"&&!g||S==="option"&&g!==w[l])&&jn(e,l,g,w[l],o),l="checked",_!==void 0&&_!==e[l]&&jn(e,l,_,w[l],o))}return e}function Mr(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){R.__e(r,n)}}function Fr(e,t,n){var r,o;if(R.unmount&&R.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Mr(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){R.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Fr(r[o],t,n||typeof e.type!="function");n||e.__e==null||ri(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Ul(e,t,n){return this.constructor(e,n)}function wt(e,t,n){var r,o,i,s;R.__&&R.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],Rr(t,e=(!r&&n||t).__k=p(be,null,[e]),o||fn,fn,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?un.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),ui(i,e,s)}function Or(e,t){wt(e,t,Or)}function Pr(e,t,n){var r,o,i,s,a=st({},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?un.call(arguments,2):n),dn(e.type,a,r||e.key,o||e.ref,null)}function fi(e,t){var n={__c:t="__cC"+ti++,__: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.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.some(function(a){a.__e=!0,Tr(a)})},this.sub=function(s){o.push(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){o.splice(o.indexOf(s),1),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}un=ni.slice,R={__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}},Xo=0,$e.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=st({},this.state),typeof e=="function"&&(e=e(st({},n),this.props)),e&&st(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Tr(this))},$e.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Tr(this))},$e.prototype.render=be,bt=[],ei=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Er=function(e,t){return e.__v.__b-t.__v.__b},Bn.__r=0,kr=0,Dr=ci(!1),Ir=ci(!0),ti=0;var lt,j,Nr,di,Ft=0,pi=[],Hn=[],Q=R,hi=Q.__b,mi=Q.__r,gi=Q.diffed,wi=Q.__c,_i=Q.unmount,yi=Q.__;function vt(e,t){Q.__h&&Q.__h(j,e,Ft||t),Ft=0;var n=j.__H||(j.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Hn}),n.__[e]}function Ot(e){return Ft=1,pn(Ai,e)}function pn(e,t,n){var r=vt(lt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ai(void 0,t),function(a){var u=r.__N?r.__N[0]:r.__[0],l=r.t(u,a);u!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=j,!j.u)){var o=function(a,u,l){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(m){return!!m.__c});if(f.every(function(m){return!m.__N}))return!i||i.call(this,a,u,l);var c=!1;return f.forEach(function(m){if(m.__N){var d=m.__[0];m.__=m.__N,m.__N=void 0,d!==m.__[0]&&(c=!0)}}),!(!c&&r.__c.props===a)&&(!i||i.call(this,a,u,l))};j.u=!0;var i=j.shouldComponentUpdate,s=j.componentWillUpdate;j.componentWillUpdate=function(a,u,l){if(this.__e){var f=i;i=void 0,o(a,u,l),i=f}s&&s.call(this,a,u,l)},j.shouldComponentUpdate=o}return r.__N||r.__}function _t(e,t){var n=vt(lt++,3);!Q.__s&&Vr(n.__H,t)&&(n.__=e,n.i=t,j.__H.__h.push(n))}function Pt(e,t){var n=vt(lt++,4);!Q.__s&&Vr(n.__H,t)&&(n.__=e,n.i=t,j.__h.push(n))}function xt(e){return Ft=5,Ve(function(){return{current:e}},[])}function $n(e,t,n){Ft=6,Pt(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 Ve(e,t){var n=vt(lt++,7);return Vr(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function de(e,t){return Ft=8,Ve(function(){return e},t)}function Br(e){var t=j.context[e.__c],n=vt(lt++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(j)),t.props.value):e.__}function jr(e,t){Q.useDebugValue&&Q.useDebugValue(t?t(e):e)}function Ll(e){var t=vt(lt++,10),n=Ot();return t.__=e,j.componentDidCatch||(j.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Hr(){var e=vt(lt++,11);if(!e.__){for(var t=j.__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 zl(){for(var e;e=pi.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Vn),e.__H.__h.forEach($r),e.__H.__h=[]}catch(t){e.__H.__h=[],Q.__e(t,e.__v)}}Q.__b=function(e){j=null,hi&&hi(e)},Q.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),yi&&yi(e,t)},Q.__r=function(e){mi&&mi(e),lt=0;var t=(j=e.__c).__H;t&&(Nr===j?(t.__h=[],j.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Hn,n.__N=n.i=void 0})):(t.__h.forEach(Vn),t.__h.forEach($r),t.__h=[],lt=0)),Nr=j},Q.diffed=function(e){gi&&gi(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(pi.push(t)!==1&&di===Q.requestAnimationFrame||((di=Q.requestAnimationFrame)||Gl)(zl)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Hn&&(n.__=n.__V),n.i=void 0,n.__V=Hn})),Nr=j=null},Q.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Vn),n.__h=n.__h.filter(function(r){return!r.__||$r(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],Q.__e(r,n.__v)}}),wi&&wi(e,t)},Q.unmount=function(e){_i&&_i(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Vn(r)}catch(o){t=o}}),n.__H=void 0,t&&Q.__e(t,n.__v))};var bi=typeof requestAnimationFrame=="function";function Gl(e){var t,n=function(){clearTimeout(r),bi&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);bi&&(t=requestAnimationFrame(n))}function Vn(e){var t=j,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),j=t}function $r(e){var t=j;e.__c=e.__(),j=t}function Vr(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Ai(e,t){return typeof t=="function"?t(e):t}function vi(e,t){for(var n in t)e[n]=t[n];return e}function Ur(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 Un(e,t){this.props=e,this.context=t}function xi(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:Ur(this.props,o)}function r(o){return this.shouldComponentUpdate=n,p(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Un.prototype=new $e).isPureReactComponent=!0,Un.prototype.shouldComponentUpdate=function(e,t){return Ur(this.props,e)||Ur(this.state,t)};var Si=R.__b;R.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Si&&Si(e)};var Ql=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Lr(e){function t(n){var r=vi({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Ql,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ci=function(e,t){return e==null?null:at(at(e).map(t))},Ei={map:Ci,forEach:Ci,count:function(e){return e?at(e).length:0},only:function(e){var t=at(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:at},Wl=R.__e;R.__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)}Wl(e,t,n,r)};var ki=R.unmount;function Di(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=vi({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Di(r,t,n)})),e}function Ii(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Ii(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 hn(){this.__u=0,this.t=null,this.__b=null}function Ti(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ri(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 p(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Nt(){this.u=null,this.o=null}R.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ki&&ki(e)},(hn.prototype=new $e).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Ti(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 u=r.state.__a;r.__v.__k[0]=Ii(u,u.__c.__P,u.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.t.pop();)l.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},hn.prototype.componentWillUnmount=function(){this.t=[]},hn.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]=Di(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&p(be,null,e.fallback);return o&&(o.__u&=-33),[p(be,null,t.__a?null:e.children),o]};var Mi=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 Jl(e){return this.getChildContext=function(){return e.context},e.children}function ql(e){var t=this,n=e.i;t.componentWillUnmount=function(){wt(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:[],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)}}),wt(p(Jl,{context:t.context},e.__v),t.l)}function Fi(e,t){var n=p(ql,{__v:e,i:t});return n.containerInfo=t,n}(Nt.prototype=new $e).__a=function(e){var t=this,n=Ti(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Mi(t,e,r)):o()};n?n(i):i()}},Nt.prototype.render=function(e){this.u=null,this.o=new Map;var t=at(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},Nt.prototype.componentDidUpdate=Nt.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Mi(e,n,t)})};var Oi=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Zl=/^(?: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]/,Kl=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Xl=/[A-Z0-9]/g,Yl=typeof document<"u",ec=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Pi(e,t,n){return t.__k==null&&(t.textContent=""),wt(e,t),typeof n=="function"&&n(),e?e.__c:null}function Ni(e,t,n){return Or(e,t),typeof n=="function"&&n(),e?e.__c:null}$e.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty($e.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Bi=R.event;function tc(){}function nc(){return this.cancelBubble}function rc(){return this.defaultPrevented}R.event=function(e){return Bi&&(e=Bi(e)),e.persist=tc,e.isPropagationStopped=nc,e.isDefaultPrevented=rc,e.nativeEvent=e};var zr,oc={enumerable:!1,configurable:!0,get:function(){return this.class}},ji=R.vnode;R.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var i in n){var s=n[i];if(!(i==="value"&&"defaultValue"in n&&s==null||Yl&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var a=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&s===!0?s="":a==="translate"&&s==="no"?s=!1:a==="ondoubleclick"?i="ondblclick":a!=="onchange"||r!=="input"&&r!=="textarea"||ec(n.type)?a==="onfocus"?i="onfocusin":a==="onblur"?i="onfocusout":Kl.test(i)?i=a:r.indexOf("-")===-1&&Zl.test(i)?i=i.replace(Xl,"-$&").toLowerCase():s===null&&(s=void 0):a=i="oninput",a==="oninput"&&o[i=a]&&(i="oninputCapture"),o[i]=s}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=at(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=at(n.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",oc)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Oi,ji&&ji(e)};var Hi=R.__r;R.__r=function(e){Hi&&Hi(e),zr=e.__c};var $i=R.diffed;R.diffed=function(e){$i&&$i(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),zr=null};var Vi={ReactCurrentDispatcher:{current:{readContext:function(e){return zr.__n[e.__c].props.value},useCallback:de,useContext:Br,useDebugValue:jr,useDeferredValue:Qr,useEffect:_t,useId:Hr,useImperativeHandle:$n,useInsertionEffect:Jr,useLayoutEffect:Pt,useMemo:Ve,useReducer:pn,useRef:xt,useState:Ot,useSyncExternalStore:qr,useTransition:Wr}}},ic="17.0.2";function Ui(e){return p.bind(null,e)}function mn(e){return!!e&&e.$$typeof===Oi}function Li(e){return mn(e)&&e.type===be}function zi(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Gi(e){return mn(e)?Pr.apply(null,arguments):e}function Qi(e){return!!e.__k&&(wt(null,e),!0)}function Wi(e){return e&&(e.base||e.nodeType===1&&e)||null}var Ji=function(e,t){return e(t)},qi=function(e,t){return e(t)},Zi=be;function Gr(e){e()}function Qr(e){return e}function Wr(){return[!1,Gr]}var Jr=Pt,Ki=mn;function qr(e,t){var n=t(),r=Ot({h:{__:n,v:t}}),o=r[0].h,i=r[1];return Pt(function(){o.__=n,o.v=t,Zr(o)&&i({h:o})},[e,n,t]),_t(function(){return Zr(o)&&i({h:o}),e(function(){Zr(o)&&i({h:o})})},[e]),n}function Zr(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 Kr={useState:Ot,useId:Hr,useReducer:pn,useEffect:_t,useLayoutEffect:Pt,useInsertionEffect:Jr,useTransition:Wr,useDeferredValue:Qr,useSyncExternalStore:qr,startTransition:Gr,useRef:xt,useImperativeHandle:$n,useMemo:Ve,useCallback:de,useContext:Br,useDebugValue:jr,version:"17.0.2",Children:Ei,render:Pi,hydrate:Ni,unmountComponentAtNode:Qi,createPortal:Fi,createElement:p,createContext:fi,createFactory:Ui,cloneElement:Gi,createRef:oi,Fragment:be,isValidElement:mn,isElement:Ki,isFragment:Li,isMemo:zi,findDOMNode:Wi,Component:$e,PureComponent:Un,memo:xi,forwardRef:Lr,flushSync:qi,unstable_batchedUpdates:Ji,StrictMode:Zi,Suspense:hn,SuspenseList:Nt,lazy:Ri,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Vi};const sc=Object.freeze(Object.defineProperty({__proto__:null,Children:Ei,Component:$e,Fragment:be,PureComponent:Un,StrictMode:Zi,Suspense:hn,SuspenseList:Nt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Vi,cloneElement:Gi,createContext:fi,createElement:p,createFactory:Ui,createPortal:Fi,createRef:oi,default:Kr,findDOMNode:Wi,flushSync:qi,forwardRef:Lr,hydrate:Ni,isElement:Ki,isFragment:Li,isMemo:zi,isValidElement:mn,lazy:Ri,memo:xi,render:Pi,startTransition:Gr,unmountComponentAtNode:Qi,unstable_batchedUpdates:Ji,useCallback:de,useContext:Br,useDebugValue:jr,useDeferredValue:Qr,useEffect:_t,useErrorBoundary:Ll,useId:Hr,useImperativeHandle:$n,useInsertionEffect:Jr,useLayoutEffect:Pt,useMemo:Ve,useReducer:pn,useRef:xt,useState:Ot,useSyncExternalStore:qr,useTransition:Wr,version:ic},Symbol.toStringTag,{value:"Module"}));function Ue(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function ac(e){return e!=null&&typeof e.GetEnumerator=="function"}function lc(e){return e!=null&&typeof e.CompareTo=="function"}function cc(e){return e!=null&&typeof e.Equals=="function"}function Xi(e){return e!=null&&typeof e.GetHashCode=="function"}function Xr(e){return e!=null&&typeof e.Dispose=="function"}function z(e){Xr(e)&&e.Dispose()}function St(){return null}function Ln(e,t){var n,r;return((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===((r=Object.getPrototypeOf(t))==null?void 0:r.constructor)}class uc{constructor(t){this.iter=t,this.current=St()}"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 Z(e){return ac(e)?e.GetEnumerator():new uc(e[Symbol.iterator]())}function zn(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}}}}function L(e,t){return e.toString(10).padStart(t,"0")}function Yi(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function fc(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function Xe(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class ct{static id(t){return ct.idMap.has(t)||ct.idMap.set(t,++ct.count),ct.idMap.get(t)}}ct.idMap=new WeakMap,ct.count=0;function Gn(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Le(e){return e*2654435761|0}function es(e){return Gn(e.toString(32))}function gn(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 dc(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Le(e);case"bigint":return es(e);case"string":return Gn(e);default:return Le(ct.id(e))}}function pc(e){return Xi(e)?e.GetHashCode():dc(e)}function hc(e){return e.getTime()}function mc(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=ut(e[r]);return gn(n)}function ut(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Le(e);case"bigint":return es(e);case"string":return Gn(e);default:{if(Xi(e))return e.GetHashCode();if(Ue(e))return mc(e);if(e instanceof Date)return hc(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>ut(r));return gn(n)}else return Le(ct.id(e))}}}function ts(e){return pc(e)}function Yr(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 ns(e,t){return Yr(e,t,Ae)}function gc(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]||!Ae(e[n[o]],t[r[o]]))return!1;return!0}function Ae(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:cc(e)?e.Equals(t):Ue(e)?Ue(t)&&ns(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&rs(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&gc(e,t)}function rs(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Yi(e),r=t.getTime()+Yi(t)),n===r?0:n<r?-1:1}function eo(e,t){return e===t?0:e<t?-1:1}function wc(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 os(e,t){return wc(e,t,Me)}function _c(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=Me(e[s],t[s]),i!==0)return i}return 0}function Me(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:lc(e)?e.CompareTo(t):Ue(e)?Ue(t)?os(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?rs(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?_c(e,t):-1}function M(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function yc(e){Ue(e)?e.splice(0):e.clear()}const Qn=new WeakMap;function V(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Qn.set(t,e),t}function Ye(e){return Qn.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 Qn.set(t,e),t}function Wn(e){return Qn.get(e)??(t=>n=>r=>e(t,n,r))}function bc(e){let t=0,n="[";for(const r of e){if(t===0)n+=pe(r);else if(t===100){n+="; ...";break}else n+="; "+pe(r);t++}return n+"]"}function pe(e,t=0){var n;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return bc(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([o,i])=>o+" = "+pe(i,t+1)).join(`
|
|
3
|
-
`)+" }":(r==null?void 0:r.name)??""}}return String(e)}function Ac(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=
|
|
4
|
-
`)+" }"}function Sc(e){const t=Object.values(e).map(n=>ut(n));return gn(t)}function Cc(e,t){if(e===t)return!0;if(Ln(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!Ae(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Ec(e,t){if(e===t)return 0;if(Ln(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=Me(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class G{toJSON(){return vc(this)}toString(){return xc(this)}GetHashCode(){return Sc(this)}Equals(t){return Cc(this,t)}CompareTo(t){return Ec(this,t)}}class ze{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 kc{constructor(t){this.message=t}}function Dc(e){return e instanceof kc||e instanceof Error}function Ic(e){return e instanceof Promise}function Jn(e){return Dc(e)||Ic(e)?e:new Error(String(e))}const Bt=Symbol("numeric");function is(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[Bt])}function Tc(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function no(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Bt]().multiply(t)}function qn(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Bt]().toFixed(t)}function Zn(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Bt]().toPrecision(t)}function Kn(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Bt]().toExponential(t)}function Xn(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Bt]().toHex()}class Rc{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class he{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 se(this)}GetHashCode(){return ss(this)}Equals(t){return ro(this,t)}}function ft(e){return e.generics!=null?e.generics:[]}function ss(e){const t=Gn(e.fullname),n=ft(e).map(ss);return gn([t,...n])}function ro(e,t){return e.fullname===""?t.fullname===""&&Yr(er(e),er(t),([n,r],[o,i])=>n===o&&ro(r,i)):e.fullname===t.fullname&&Yr(ft(e),ft(t),ro)}function dt(e,t,n,r){return new he(e,t,n,r)}function Fe(e,t,n,r){return new he(e,t,n,void 0,r)}function oo(...e){return new he("",void 0,void 0,void 0,()=>e)}function wn(e,t,n,r){const o=new he(e,t,n,void 0,void 0,()=>{const i=n.prototype.cases();return r().map((s,a)=>new Rc(o,a,i[a],s))});return o}function jt(e){return new he("Microsoft.FSharp.Core.FSharpOption`1",[e])}function et(e){return new he("Microsoft.FSharp.Collections.FSharpList`1",[e])}function Mc(e){return new he("[]",[e])}const Fc=new he("System.Object"),ee=new he("System.String"),Oc=new he("System.Boolean"),te=new he("System.Int32");function io(e){if(Array.isArray(e))return e[0];if(e instanceof he){const t=Yn(e);if(t!=null)return io(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function se(e){const t=Yn(e);return t!=null?se(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>se(n)).join(",")+"]"}function Pc(e){return Yn(e)!=null}function Yn(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Nc(e){return e.generics!=null&&e.generics.length>0}function as(e){return e.enumCases!=null&&e.enumCases.length>0}function Bc(e){return e.generics==null?e:new he(e.fullname,e.generics.map(()=>Fc))}function jc(e){var t;return(t=e.generics)==null?void 0:t[0]}function Ht(e){if(as(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Hc(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 $t(e,t){const n=parseInt(t,10);return Hc(e,isNaN(n)?t:n)[1]}function $c(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function er(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Vc(e){if(ls(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Uc(e){return e instanceof he?e.cases!=null:e instanceof q}function Lc(e){return e instanceof he?e.fields!=null:e instanceof G}function ls(e){return e.fullname.startsWith("System.Tuple")}function zc(e){return e.fields==null?[]:e.fields}function Gc(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 Qc(e,t){const n=er(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 Wc(e,t){return e}const Jc=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],qc=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Zc=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Kc=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ce(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function cs(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Xc(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 so(e,t,n){let r=0,o=0,i="";const s=n?_n(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(o=Ce(t,r,"d"),r+=o,o){case 1:i+=ps(s);break;case 2:i+=L(ps(s),2);break;case 3:i+=Jc[gs(s)];break;case 4:i+=qc[gs(s)];break}break;case"f":if(o=Ce(t,r,"f"),r+=o,o<=3){const w=10**(3-o);i+=L(Math.floor(rr(s)/w),o)}else o<=7&&(i+=(""+rr(s)).padEnd(o,"0"));break;case"F":if(o=Ce(t,r,"F"),r+=o,o<=3){const w=10**(3-o),y=Math.floor(rr(s)/w);y!=0&&(i+=L(y,o))}else if(o<=7){const w=rr(s);w!=0&&(i+=L(w,3))}break;case"g":o=Ce(t,r,"g"),r+=o,o<=2&&(i+="A.D.");break;case"h":switch(o=Ce(t,r,"h"),r+=o,o){case 1:i+=nr(s)%12;break;case 2:i+=L(nr(s)%12,2);break}break;case"H":switch(o=Ce(t,r,"H"),r+=o,o){case 1:i+=nr(s);break;case 2:i+=L(nr(s),2);break}break;case"K":switch(o=Ce(t,r,"K"),r+=o,o){case 1:switch(us(s)){case 1:i+="Z";break;case 2:i+=Vt(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=Ce(t,r,"m"),r+=o,o){case 1:i+=hs(s);break;case 2:i+=L(hs(s),2);break}break;case"M":switch(o=Ce(t,r,"M"),r+=o,o){case 1:i+=or(s);break;case 2:i+=L(or(s),2);break;case 3:i+=Zc[or(s)-1];break;case 4:i+=Kc[or(s)-1];break}break;case"s":switch(o=Ce(t,r,"s"),r+=o,o){case 1:i+=ms(s);break;case 2:i+=L(ms(s),2);break}break;case"t":switch(o=Ce(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=Ce(t,r,"y"),r+=o,o){case 1:i+=s.getFullYear()%100;break;case 2:i+=L(s.getFullYear()%100,2);break;case 3:i+=L(s.getFullYear(),3);break;case 4:i+=L(s.getFullYear(),4);break;case 5:i+=L(s.getFullYear(),5);break}break;case"z":o=Ce(t,r,"z"),r+=o;let u="";switch(us(s)){case 1:u="+00:00";break;case 2:u=Vt(s.getTimezoneOffset()*-6e4);break;case 0:u=Vt(au(s).getTimezoneOffset()*-6e4);break}const l=u[0]==="-"?"-":"+",f=parseInt(u.substring(1,3),10),c=parseInt(u.substring(4,6),10);switch(o){case 1:i+=`${l}${f}`;break;case 2:i+=`${l}${L(f,2)}`;break;default:i+=`${l}${L(f,2)}:${L(c,2)}`;break}break;case":":i+=":",r++;break;case"/":i+="/",r++;break;case"'":case'"':const[m,d]=Xc(t,r);i+=m,r+=d;break;case"%":const g=cs(t,r);if(g>=0&&g!==37)r+=2,i+=so(s,String.fromCharCode(g),n);else throw new Error("Invalid format string");break;case"\\":const _=cs(t,r);if(_>=0)r+=2,i+=String.fromCharCode(_);else throw new Error("Invalid format string");break;default:r++,i+=a;break}}return i}function us(e){return e.kind||0}function Vt(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+L(n,2)+":"+L(r,2)}function tr(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 Yc(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return L(e.getFullYear(),4)+"-"+L(e.getMonth()+1,2)+"-"+L(e.getDate(),2)+"T"+L(e.getHours(),2)+":"+L(e.getMinutes(),2)+":"+L(e.getSeconds(),2)+"."+L(e.getMilliseconds(),3)+(n?Vt(e.getTimezoneOffset()*-6e4):"")}}function eu(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+Vt(t)}function tu(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," ")+Vt(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return tr(n,"first");case"T":case"t":return tr(n,"second");case"O":case"o":return eu(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return so(n,t,!0)}function nu(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?tr(e,"first"):e.toLocaleDateString();case"T":case"t":return n?tr(e,"second"):e.toLocaleTimeString();case"O":case"o":return Yc(e,n);default:throw new Error("Unrecognized Date print format")}else return so(e,t,n)}function fs(e,t,n){return e.offset!=null?tu(e,t):nu(e,t)}function _n(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function ru(){return _n(-621355968e5,1)}function ds(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(":"),u=parseInt(a[0],10);s=u*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&u<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 ou(e,t=!1){const[n,r]=ds(e),o=r!=null?t&&r==="Z"?1:2:0;return _n(n.getTime(),o)}function iu(e,t){try{return t.contents=ou(e),!0}catch{return!1}}function su(e){return e.kind===1?e:_n(e.getTime(),1)}function au(e){return e.kind===2?e:_n(e.getTime(),2)}function ps(e){return e.kind===1?e.getUTCDate():e.getDate()}function nr(e){return e.kind===1?e.getUTCHours():e.getHours()}function rr(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function hs(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function or(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function ms(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function gs(e){return e.kind===1?e.getUTCDay():e.getDay()}function lu(e,t=0){if(t&-284)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 ao(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function ws(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 cu(e,t,n,r,o=0){function i(){let s=arguments[0];if(r){r--;const a=[],u=arguments.length,l=typeof arguments[u-1]!="string";let f=l?u-3:u-2;for(let c=0;c<f;c++)a.push(arguments[c]);a.index=arguments[f++],a.input=arguments[f++],l&&(a.groups=arguments[f]),s=n(a)}return s}if(typeof e=="string"){const s=e;e=lu(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),u=ws(e,a),l=ws.length>r?(s=u[r-1],a.substring(0,s.index+s[0].length)):a;return t.substring(0,o)+l.replace(e,n)+t.substring(o+l.length)}else return t.replace(e,n)}const yn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,uu=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function _s(e,t){return Tc(e,t)<0}function Ge(e){return{input:e,cont:pu(e)}}function ys(e,t){return typeof t=="string"?e(t):t.cont(e)}function tt(e){return ys(t=>t,e)}function fu(e){return ys(t=>{throw new Error(t)},e)}function du(e,t,n,r,o){let i="";if(t=t||"",o=o||"",is(e))switch(o.toLowerCase()!=="x"&&(_s(e,0)?(e=no(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=qn(e,r);break;case"g":case"G":e=r!=null?Zn(e,r):Zn(e);break;case"e":case"E":e=r!=null?Kn(e,r):Kn(e);break;case"x":e=Xn(e);break;case"X":e=Xn(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=fs(e):e=pe(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,u=a||!s?" ":"0";u==="0"?(e=bn(e,n-i.length,u,a),e=i+e):e=bn(i+e,n,u,a)}return e}function bs(e,t,n,r="",o=-1){return(...i)=>{let s=r;const a=t.slice(),u=n.slice();for(const l of i){const[,,f,c,m,d]=u[0];let g=c;if(o>=0)g=o,o=-1;else if(g==="*"){if(l<0)throw new Error("Non-negative number required");o=l;continue}s+=a[0],s+=du(l,f,g,m,d),a.splice(0,1),u.splice(0,1)}return u.length===0?(s+=a[0],e(s)):bs(e,a,u,s,o)}}function pu(e){return t=>{yn.lastIndex=0;const n=[],r=[];let o=0,i=yn.exec(e);for(;i;){const s=i.index+(i[1]||"").length;n.push(e.substring(o,s).replace(/%%/g,"%")),r.push(i),o=yn.lastIndex,yn.lastIndex-=1,i=yn.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),bs(t,n,r))}}function hu(e,...t){let n;return n=e,n.replace(uu,(r,o,i,s,a,u)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let l=t[o];if(is(l))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,l=qn(l,a);break;case"g":case"G":l=a!=null?Zn(l,a):Zn(l);break;case"e":case"E":l=a!=null?Kn(l,a):Kn(l);break;case"p":case"P":a=a??2,l=qn(no(l,100),a)+" %";break;case"d":case"D":l=a!=null?lo(String(l),a,"0"):String(l);break;case"x":case"X":l=a!=null?lo(Xn(l),a,"0"):Xn(l),s==="X"&&(l=l.toUpperCase());break;default:if(u){let f="";l=u.replace(/([0#,]+)(\.[0#]+)?/,(c,m,d)=>{_s(l,0)&&(l=no(l,-1),f="-"),d=d==null?"":d.substring(1),l=qn(l,Math.max(d.length,0));let[g,_]=l.split(".");_||(_="");const w=m.replace(/,/g,"").replace(/^#+/,"").length;g=lo(g,w,"0");const y=d.replace(/#+$/,"").length;if(y>_.length?_=gu(_,y,"0"):y<_.length&&(_=_.substring(0,y)+_.substring(y).replace(/0+$/,"")),m.indexOf(",")>0){const S=g.length%3,I=Math.floor(g.length/3);let oe=S>0?g.substr(0,S)+(I>0?",":""):"";for(let Y=0;Y<I;Y++)oe+=g.substr(S+Y*3,3)+(Y<I-1?",":"");g=oe}return _.length>0?g+"."+_:g}),l=f+l}}else l instanceof Date?l=fs(l,u||s):l=pe(l);return i=parseInt((i||" ").substring(1),10),isNaN(i)||(l=bn(String(l),Math.abs(i)," ",i<0)),l})}function mu(e){return typeof e!="string"||e.length===0}function Ee(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function bn(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 bn(e,t,n)}function gu(e,t,n){return bn(e,t,n,!0)}function As(e,t,n){return e.replace(new RegExp(ao(t),"g"),n)}function co(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(ao),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let u=!0,l=0;do{const f=a.exec(e);if(f===null){const c=i?e.substring(l).trim():e.substring(l);(!o||c.length>0)&&s.push(c),u=!1}else{const c=i?e.substring(l,f.index).trim():e.substring(l,f.index);(!o||c.length>0)&&(n!=null&&s.length+1===n?(s.push(i?e.substring(l).trim():e.substring(l)),u=!1):s.push(c)),l=a.lastIndex}}while(u);return s}function wu(e,...t){if(t.length===0)return e.trim();const n="["+ao(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class Ut{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return ut(this.value)}Equals(t){return t==null?!1:Ae(this.value,t instanceof Ut?t.value:t)}CompareTo(t){return t==null?1:Me(this.value,t instanceof Ut?t.value:t)}}function b(e){if(e==null)throw new Error("Option has no value");return e instanceof Ut?e.value:e}function Oe(e){return e==null||e instanceof Ut?new Ut(e):e}function vs(e,t){return e!=null?b(e):t}function _u(e,t){return t!=null?Oe(e(b(t))):void 0}function yu(e,t,n){return t!=null&&n!=null?e(b(t),b(n)):void 0}const xs="Collection was empty.";function Ss(e,t){return new Array(t)}function Cs(e,t){return e>t?e:t}function uo(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function pt(e,t,n){const r=t.length|0,o=Ss(n,r);for(let i=0;i<=r-1;i++)yt(o,i,e(ae(i,t)));return o}function bu(e,t){const n=Ss(t,1);return yt(n,0,e),n}function Au(e){return e.slice().reverse()}function vu(e,t){return t.find(e)}function xu(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const i=e(ae(o,t));if(i!=null){const s=b(i);r.push(s)}}return Ae(n,St())?r:pt(o=>o,r,n)}function ir(e,t,n){const r=e;return n.reduce(r,t)}function Su(e,t,n){return t==null}function ae(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 yt(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 Es(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class me extends G{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+Ee("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,i)=>{e:for(;;){const s=o,a=i,u=s.tail,l=a.tail;if(u!=null)if(l!=null){const f=b(u),c=b(l);if(Ae(s.head,a.head)){o=f,i=c;continue e}else return!1}else return!1;else return l==null}})(n,t)}GetHashCode(){return((r,o,i)=>{e:for(;;){const s=r,a=o,u=i,l=u.tail;if(l!=null){const f=b(l);if(s>18)return a|0;r=s+1,o=(a<<1)+ut(u.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,u=s.tail,l=a.tail;if(u!=null)if(l!=null){const f=b(u),c=b(l),m=Me(s.head,a.head)|0;if(m===0){o=f,i=c;continue e}else return m|0}else return 1;else return l!=null?-1:0}})(this,t)|0}GetEnumerator(){return Eu(this)}[Symbol.iterator](){return zn(Z(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Z(this)}}class Cu{constructor(t){this.xs=t,this.it=this.xs,this.current=St()}"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=b(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=St()}Dispose(){}}function Eu(e){return new Cu(e)}function ne(){return new me(St(),void 0)}function An(e,t){return new me(e,t)}function sr(e){return e.tail==null}function ks(e){return((n,r)=>{e:for(;;){const o=n,s=r.tail;if(s!=null){n=o+1,r=b(s);continue e}else return o|0}})(0,e)|0}function fo(e){if(e.tail!=null)return e.head;throw new Error(xs+"\\nParameter name: list")}function Qe(e){const t=e.tail;if(t!=null)return b(t);throw new Error(xs+"\\nParameter name: list")}function le(){return ne()}function Pe(e,t){return An(e,t)}function re(e){return An(e,ne())}function P(e){return sr(e)}function Ds(e){return ks(e)}function E(e){return fo(e)}function F(e){return Qe(e)}function vn(e){const t=ks(e)|0,n=uo(new Array(t),0,t,null);return((o,i)=>{e:for(;;){const s=o,a=i;if(!sr(a)){yt(n,s,fo(a)),o=s+1,i=Qe(a);continue e}break}})(0,e),n}function nt(e,t,n){let r=t,o=n;for(;!sr(o);)r=e(r,E(o)),o=Qe(o);return r}function po(e){return nt((t,n)=>An(n,t),ne(),e)}function ku(e,t,n){return Es(e,vn(t),n)}function xn(e,t){nt((n,r)=>{e(r)},void 0,t)}function W(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=An(ae(r,e),n);return n}function C(e){return W(e,ne())}function Du(e){let t,n;if(Ue(e))return C(e);if(e instanceof me)return e;{const r=ne();let o=r;const i=Z(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new me(u,void 0),t.tail=n,n)}}finally{z(i)}const s=o,a=ne();return s.tail=a,Qe(r)}}function Iu(e){const t=ne();let n=t;const r=s=>{n=nt((a,u)=>{const l=new me(u,void 0);return a.tail=l,l},n,s)};if(Ue(e))e.forEach(r);else if(e instanceof me)xn(r,e);else{const s=Z(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();)r(s["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{z(s)}}const o=n,i=ne();return o.tail=i,Qe(t)}function Sn(e,t){return nt((n,r)=>An(r,n),t,po(e))}function Ct(e,t){const n=ne(),r=nt((i,s)=>{const a=new me(e(s),void 0);return i.tail=a,a},n,t),o=ne();return r.tail=o,Qe(n)}function Tu(e,t){return((r,o)=>{e:for(;;){const i=r,s=o;if(sr(s))return;if(e(fo(s)))return i;r=i+1,o=Qe(s);continue e}})(0,t)}function Ru(e,t){const n=ne(),r=nt((i,s)=>{if(e(s)){const a=new me(s,void 0);return i.tail=a,a}else return i},n,t),o=ne();return r.tail=o,Qe(n)}function Mu(e,t){const n=ne(),r=ne(),o=n,i=nt((u,l)=>{let f,c;const m=u[0],d=u[1];return e(l)?[(f=new me(l,void 0),m.tail=f,f),d]:[m,(c=new me(l,void 0),d.tail=c,c)]},[o,r],t),s=ne();i[0].tail=s;const a=ne();return i[1].tail=a,[Qe(o),Qe(r)]}function Fu(e,t){const n=ne(),r=nt((i,s)=>{const a=e(s);if(a==null)return i;{const u=new me(b(a),void 0);return i.tail=u,u}},n,t),o=ne();return r.tail=o,Qe(n)}function Is(e,t,n){return Tu(r=>n.Equals(e,r),t)!=null}function Ou(e){return new h(0,[e])}function Ts(e){return new h(1,[e])}class h extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function ht(e,t){return t.tag===0?Ou(e(t.fields[0])):Ts(t.fields[0])}function Pu(e,t){return t.tag===0?e(t.fields[0]):Ts(t.fields[0])}class x extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Et extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Rs(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Nu(e,t){switch(e.tag){case 2:return cu(Rs(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Rs(t)}}const Bu=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Ms=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,ju=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Hu(e){function t(r){return r.replace(Ms,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Bu.test(n))return wu(n,"{","}","(",")");if(Ms.test(n))return t(n);if(ju.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 $u(e,t){try{return t.contents=Hu(e),!0}catch{return!1}}var ho;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(ho||(ho={}));function Vu(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function Fs(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 Uu(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 Lu(e,t){if(t&ho.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 zu(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||Lu(i,t),!Uu(n).test(s))return Vu(o,n)}return null}function Gu(e,t,n,r,o){const i=zu(e,t,o);if(i!=null){let s=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(s)){const[a,u]=Fs(!0,r);!n&&i.radix!==10&&s>=a&&s<=u&&(s=s<<32-r>>32-r);const[l,f]=Fs(n,r);if(s>=l&&s<=f)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function Lt(e,t,n,r,o){try{return o.contents=Gu(e,t,n,r),!0}catch{return!1}}function Os(e,t){Qu(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Qu(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 Wu(){return Os(-621355968e5,0)}function Ju(e){const[t,n]=ds(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return Os(t.getTime(),r)}function qu(e,t){try{return t.contents=Ju(e),!0}catch{return!1}}function Ps(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Zu(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 Zu(e){return Number(BigInt(e)/10000n)}function Ku(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 Ps(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,u=+r[4],l=+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*Ps(o,u,l,s,i)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Xu(e,t){try{return t.contents=Ku(e),!0}catch{return!1}}function Yu(e){throw new Error(e)}const ef="Enumeration already finished.",tf="Enumeration has not started. Call MoveNext.",Ns="The input sequence has an insufficient number of elements.",nf="Reset is not supported on this enumerator.";function rf(){throw new Error(nf)}function mo(){throw new Error(tf)}function go(){throw new Error(ef)}class of{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=Z(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+pe(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{z(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return zn(Z(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function sf(e){return new of(e)}class af{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"(){rf()}Dispose(){this.dispose()}}function ar(e,t,n){return new af(e,t,n)}function lf(e){let t,n,r=!1,o=!1,i;const s=()=>{if(o=!0,n!=null){const a=b(n);try{z(a)}finally{n=void 0}}if(t!=null){const a=b(t);try{z(a)}finally{t=void 0}}};return ar(()=>(r?o&&go():mo(),i!=null?b(i):go()),()=>{let a;if(r||(r=!0),o)return!1;{let u;for(;u==null;){const l=t,f=n;if(l!=null)if(f!=null){const c=b(f);if(c["System.Collections.IEnumerator.MoveNext"]())i=Oe(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),u=!0;else try{z(c)}finally{n=void 0}}else{const c=b(l);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),Z(a)):(s(),u=!1)}else t=Z(e)}return b(u)}},()=>{o||s()})}function cf(e,t){return ar(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{z(t)}finally{}})}function Bs(e,t,n){let r=!1,o,i=Oe(e());const s=()=>{if(i!=null){const u=b(i);try{n(u)}finally{i=void 0}}},a=()=>{try{s()}finally{o=void 0}};return ar(()=>(r||mo(),o!=null?b(o):go()),()=>{if(r||(r=!0),i!=null){const u=b(i);let l;try{l=t(u)}catch(f){throw a(),f}return l!=null?(o=l,!0):(a(),!1)}else return!1},s)}function uf(e,t){let n,r=t;return ar(()=>{if(n!=null){const o=b(n)[0];return b(n)[1],o}else return mo()},()=>(n=e(r),n!=null?(b(n)[0],r=b(n)[1],!0):!1),()=>{})}function ff(e,t){t==null&&Yu(e)}function zt(e){return sf(e)}function kt(e){return ff("source",e),Z(e)}function O(e){return zt(()=>Z(e()))}function js(e){return zt(()=>lf(e))}function df(e,t){return zt(()=>uf(e,t))}function Hs(){return O(()=>new Array(0))}function N(e){return O(()=>bu(e))}function u0(e){return e}function pf(e){return e instanceof me?vn(e):Array.from(e)}function mt(e){return Ue(e)?C(e):e instanceof me?e:Du(e)}function hf(e,t,n){return zt(()=>Bs(e,t,n))}function mf(e,t,n){return zt(()=>{let r=-1;return Bs(e,o=>(r=r+1|0,t(r,o)),n)})}function ce(e,t){return js([e,t])}function gf(e,t,n){const r=kt(t);try{const o=kt(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{z(o)}}finally{z(r)}}function Gt(e,t,n){const r=kt(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{z(r)}}function $s(e,t,n){const r=kt(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{z(r)}}function Vs(e,t){$s((n,r)=>{e(r)},void 0,t)}function We(e,t){return hf(()=>kt(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?Oe(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{z(n)})}function wf(e){return O(()=>Au(pf(e)))}function _f(e,t){return zt(()=>{const n=kt(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Ns+"\\nParameter name: source");return cf(()=>{},n)}catch(r){throw z(n),r}})}function yf(e,t){return mf(()=>kt(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return Oe(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Ns+"\\nParameter name: source")}else return},n=>{z(n)})}function lr(e,t){return O(()=>js(We(e,t)))}class Us{constructor(t,n){this.k=t,this.v=n}}function cr(e,t){return new Us(e,t)}function ge(e){return e.k}function ke(e){return e.v}class X extends Us{constructor(t,n,r,o,i){super(t,n),this.left=r,this.right=o,this.h=i|0}}function ur(e,t,n,r,o){return new X(e,t,n,r,o)}function we(e){return e.left}function _e(e){return e.right}function Dt(e){return e.h}function f0(){}function Ls(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=b(r);if(o instanceof X){const i=o;e=Ls(n+1,we(i)),t=_e(i);continue e}else return n+1|0}else return n|0}}function bf(e){return Ls(0,e)}function Je(e,t,n,r){let o,i,s;const a=e;if(a!=null){const c=b(a);s=c instanceof X?(o=c,Dt(o)):1}else s=0;let u;const l=r;if(l!=null){const c=b(l);u=c instanceof X?(i=c,Dt(i)):1}else u=0;const f=(s<u?u:s)|0;return f===0?cr(t,n):ur(t,n,e,r,f+1)}function zs(e,t,n,r){let o,i,s,a,u,l,f,c,m;const d=e;if(d!=null){const w=b(d);m=w instanceof X?(o=w,Dt(o)):1}else m=0;let g;const _=r;if(_!=null){const w=b(_);g=w instanceof X?(i=w,Dt(i)):1}else g=0;if(g>m+2){const w=b(r);if(w instanceof X){const y=w;if(s=we(y),(s!=null?(a=b(s),a instanceof X?(u=a,Dt(u)):1):0)>m+1){const S=b(we(y));if(S instanceof X){const I=S;return Je(Je(e,t,n,we(I)),ge(I),ke(I),Je(_e(I),ge(y),ke(y),_e(y)))}else throw new Error("internal error: Map.rebalance")}else return Je(Je(e,t,n,we(y)),ge(y),ke(y),_e(y))}else throw new Error("internal error: Map.rebalance")}else if(m>g+2){const w=b(e);if(w instanceof X){const y=w;if(l=_e(y),(l!=null?(f=b(l),f instanceof X?(c=f,Dt(c)):1):0)>g+1){const S=b(_e(y));if(S instanceof X){const I=S;return Je(Je(we(y),ge(y),ke(y),we(I)),ge(I),ke(I),Je(_e(I),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Je(we(y),ge(y),ke(y),Je(_e(y),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Je(e,t,n,r)}function Qt(e,t,n,r){if(r!=null){const o=b(r),i=e.Compare(t,ge(o))|0;if(o instanceof X){const s=o;return i<0?zs(Qt(e,t,n,we(s)),ge(s),ke(s),_e(s)):i===0?ur(t,n,we(s),_e(s),Dt(s)):zs(we(s),ge(s),ke(s),Qt(e,t,n,_e(s)))}else return i<0?ur(t,n,void 0,r,2):i===0?cr(t,n):ur(t,n,r,void 0,2)}else return cr(t,n)}function Gs(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=b(i),a=r.Compare(o,ge(s))|0;if(a===0)return Oe(ke(s));if(s instanceof X){const u=s;e=r,t=o,n=a<0?we(u):_e(u);continue e}else return}else return}}function Af(e,t,n){const r=Gs(e,t,n);if(r==null)throw new Error;return b(r)}function vf(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=b(i),a=r.Compare(o,ge(s))|0;if(s instanceof X){const u=s;if(a<0){e=r,t=o,n=we(u);continue e}else{if(a===0)return!0;e=r,t=o,n=_e(u);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=b(r);if(o instanceof X){const i=o;Qs(n,we(i)),n(ge(i),ke(i)),e=n,t=_e(i);continue e}else n(ge(o),ke(o))}break}}function xf(e,t){Qs(e,t)}function Sf(e,t,n){let r=n;xf((o,i)=>{yt(t,r,[o,i]),r=r+1|0},e)}function Cf(e,t){return nt((n,r)=>Qt(e,r[0],r[1],n),void 0,t)}function Ef(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=Qt(r,s[0],s[1],o),n=i;continue e}else return o}}function kf(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=ae(r,t);n=Qt(e,o[0],o[1],n)}return n}function Ws(e,t){if(Ue(t))return kf(e,t);if(t instanceof me)return Cf(e,t);{const n=Z(t);try{return Ef(e,void 0,n)}finally{z(n)}}}class Df extends G{constructor(t,n){super(),this.stack=t,this.started=n}}function Js(e){e:for(;;){const t=e;if(P(t))return le();{const n=F(t),r=E(t);if(r!=null){const o=b(r);if(o instanceof X){const i=o;e=W([we(i),cr(ge(i),ke(i)),_e(i)],n);continue e}else return t}else{e=n;continue e}}}}function qs(e){return new Df(Js(re(e)),!1)}function If(){throw new Error("enumeration not started")}function Tf(){throw new Error("enumeration already finished")}function Zs(e){if(e.started){const t=e.stack;if(P(t))return Tf();if(E(t)!=null){const n=b(E(t));if(n instanceof X)throw new Error("Please report error: Map iterator, unexpected stack for current");return[ge(n),ke(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return If()}function Rf(e){if(e.started){const t=e.stack;if(P(t))return!1;if(E(t)!=null){if(b(E(t))instanceof X)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Js(F(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 Ks(e){let t=qs(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Zs(t)},"System.Collections.IEnumerator.get_Current"(){return Zs(t)},"System.Collections.IEnumerator.MoveNext"(){return Rf(t)},"System.Collections.IEnumerator.Reset"(){t=qs(e)},Dispose(){}}}class fr{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Pf(this)|0}Equals(t){const n=this;if(t instanceof fr){const r=t,o=Z(n);try{const i=Z(r);try{const s=()=>{const a=o["System.Collections.IEnumerator.MoveNext"]();if(a===i["System.Collections.IEnumerator.MoveNext"]())if(a){const u=o["System.Collections.Generic.IEnumerator`1.get_Current"](),l=i["System.Collections.Generic.IEnumerator`1.get_Current"]();return Ae(u[0],l[0])&&Ae(u[1],l[1])?s():!1}else return!0;else return!1};return s()}finally{z(i)}}finally{z(o)}}else return!1}toString(){return"map ["+Ee("; ",We(n=>hu("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Ks(this.tree)}[Symbol.iterator](){return zn(Z(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Ks(this.tree)}CompareTo(t){const n=this;if(t instanceof fr)return gf((o,i)=>{const s=n.comparer.Compare(o[0],i[0])|0;return(s!==0?s:Me(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 Ys(n,t[0])&&Ae(Xs(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Sf(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return wo(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return wo(this)|0}get size(){return wo(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return We(n=>[n[0],n[1]],this)}get(t){return Xs(this,t)}has(t){return Ys(this,t)}keys(){return We(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return We(n=>n[1],this)}forEach(t,n){const r=this;Vs(o=>{t(o[1],o[0],r)},r)}}function dr(e,t){return new fr(e,t)}function Mf(e){return dr(e,void 0)}function Ff(e,t,n){return dr(e.comparer,Qt(e.comparer,t,n,e.tree))}function Xs(e,t){return Af(e.comparer,t,e.tree)}function wo(e){return bf(e.tree)}function Ys(e,t){return vf(e.comparer,t,e.tree)}function Of(e,t){return Gs(e.comparer,t,e.tree)}function Pf(e){const t=(o,i)=>(o<<1)+i+631;let n=0;const r=Z(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,ut(o[0]))|0,n=t(n,ut(o[1]))|0}}finally{z(r)}return n|0}function Nf(e,t,n){return Ff(n,e,t)}function Bf(e,t){return Of(t,e)}function jf(e,t){return dr(t,Ws(t,e))}function Hf(e,t){return dr(t,Ws(t,e))}function ea(e){return Mf(e)}class ta{constructor(t){this.k=t}}function De(e){return new ta(e)}function T(e){return e.k}class B extends ta{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function Ie(e,t,n,r){return new B(e,t,n,r)}function U(e){return e.left}function H(e){return e.right}function Wt(e){return e.h}function d0(){}function na(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=b(n);if(o instanceof B){const i=o;e=U(i),t=na(H(i),r+1);continue e}else return r+1|0}else return r|0}}function $f(e){return na(e,0)}function qe(e,t,n){let r,o,i;const s=e;if(s!=null){const f=b(s);i=f instanceof B?(r=f,Wt(r)):1}else i=0;let a;const u=n;if(u!=null){const f=b(u);a=f instanceof B?(o=f,Wt(o)):1}else a=0;const l=(i<a?a:i)|0;return l===0?De(t):Ie(t,e,n,l+1)}function ra(e,t,n){let r,o,i,s,a,u,l,f,c;const m=e;if(m!=null){const _=b(m);c=_ instanceof B?(r=_,Wt(r)):1}else c=0;let d;const g=n;if(g!=null){const _=b(g);d=_ instanceof B?(o=_,Wt(o)):1}else d=0;if(d>c+2){const _=b(n);if(_ instanceof B){const w=_;if(i=U(w),(i!=null?(s=b(i),s instanceof B?(a=s,Wt(a)):1):0)>c+1){const y=b(U(w));if(y instanceof B){const S=y;return qe(qe(e,t,U(S)),T(S),qe(H(S),T(w),H(w)))}else throw new Error("internal error: Set.rebalance")}else return qe(qe(e,t,U(w)),T(w),H(w))}else throw new Error("internal error: Set.rebalance")}else if(c>d+2){const _=b(e);if(_ instanceof B){const w=_;if(u=H(w),(u!=null?(l=b(u),l instanceof B?(f=l,Wt(f)):1):0)>d+1){const y=b(H(w));if(y instanceof B){const S=y;return qe(qe(U(w),T(w),U(S)),T(S),qe(H(S),t,n))}else throw new Error("internal error: Set.rebalance")}else return qe(U(w),T(w),qe(H(w),t,n))}else throw new Error("internal error: Set.rebalance")}else return qe(e,t,n)}function Jt(e,t,n){if(n!=null){const r=b(n),o=e.Compare(t,T(r))|0;if(r instanceof B){const i=r;return o<0?ra(Jt(e,t,U(i)),T(i),H(i)):o===0?n:ra(U(i),T(i),Jt(e,t,H(i)))}else{const i=e.Compare(t,T(r))|0;return i<0?Ie(t,void 0,n,2):i===0?n:Ie(t,n,void 0,2)}}else return De(t)}function oa(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=b(i),a=r.Compare(o,T(s))|0;if(s instanceof B){const u=s;if(a<0){e=r,t=o,n=U(u);continue e}else{if(a===0)return!0;e=r,t=o,n=H(u);continue e}}else return a===0}else return!1}}function ia(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=b(r);if(o instanceof B){const i=o;ia(n,U(i)),n(T(i)),e=n,t=H(i);continue e}else n(T(o))}break}}class Vf extends G{constructor(t,n){super(),this.stack=t,this.started=n}}function sa(e){e:for(;;){const t=e;if(P(t))return le();{const n=E(t),r=F(t);if(n!=null){const o=b(n);if(o instanceof B){const i=o;e=W([U(i),De(T(i)),H(i)],r);continue e}else return t}else{e=r;continue e}}}}function aa(e){return new Vf(sa(re(e)),!1)}function Uf(){throw new Error("Enumeration not started")}function Lf(){throw new Error("Enumeration already started")}function la(e){if(e.started){const t=e.stack;if(P(t))return Lf();if(E(t)!=null){const n=b(E(t));return T(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Uf()}function zf(e){if(e.started){const t=e.stack;if(P(t))return!1;if(E(t)!=null){if(b(E(t))instanceof B)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=sa(F(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 ca(e){let t=aa(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return la(t)},"System.Collections.IEnumerator.get_Current"(){return la(t)},"System.Collections.IEnumerator.MoveNext"(){return zf(t)},"System.Collections.IEnumerator.Reset"(){t=aa(e)},Dispose(){}}}function Gf(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(E(i)!=null)if(E(o)!=null){const s=b(E(o)),a=b(E(i));if(s instanceof B){const u=s;if(U(u)==null)if(a instanceof B){const l=a;if(U(l)==null){const f=r.Compare(T(u),T(l))|0;if(f!==0)return f|0;e=r,t=Pe(H(u),F(o)),n=Pe(H(l),F(i));continue e}else{let f,c,m,d,g;switch(P(o)?P(i)?f=2:E(i)!=null?(f=1,d=F(i),g=b(E(i))):f=2:E(o)!=null?(f=0,c=F(o),m=b(E(o))):P(i)?f=2:E(i)!=null?(f=1,d=F(i),g=b(E(i))):f=2,f){case 0:if(m instanceof B){const _=m;e=r,t=W([U(_),Ie(T(_),void 0,H(_),0)],c),n=i;continue e}else{e=r,t=W([void 0,De(T(m))],c),n=i;continue e}case 1:if(g instanceof B){const _=g;e=r,t=o,n=W([U(_),Ie(T(_),void 0,H(_),0)],d);continue e}else{e=r,t=o,n=W([void 0,De(T(g))],d);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(T(u),T(a))|0;if(l!==0)return l|0;e=r,t=Pe(H(u),F(o)),n=Pe(void 0,F(i));continue e}else{let l,f,c,m,d;switch(P(o)?P(i)?l=2:E(i)!=null?(l=1,m=F(i),d=b(E(i))):l=2:E(o)!=null?(l=0,f=F(o),c=b(E(o))):P(i)?l=2:E(i)!=null?(l=1,m=F(i),d=b(E(i))):l=2,l){case 0:if(c instanceof B){const g=c;e=r,t=W([U(g),Ie(T(g),void 0,H(g),0)],f),n=i;continue e}else{e=r,t=W([void 0,De(T(c))],f),n=i;continue e}case 1:if(d instanceof B){const g=d;e=r,t=o,n=W([U(g),Ie(T(g),void 0,H(g),0)],m);continue e}else{e=r,t=o,n=W([void 0,De(T(d))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof B){const u=a;if(U(u)==null){const l=r.Compare(T(s),T(u))|0;if(l!==0)return l|0;e=r,t=Pe(void 0,F(o)),n=Pe(H(u),F(i));continue e}else{let l,f,c,m,d;switch(P(o)?P(i)?l=2:E(i)!=null?(l=1,m=F(i),d=b(E(i))):l=2:E(o)!=null?(l=0,f=F(o),c=b(E(o))):P(i)?l=2:E(i)!=null?(l=1,m=F(i),d=b(E(i))):l=2,l){case 0:if(c instanceof B){const g=c;e=r,t=W([U(g),Ie(T(g),void 0,H(g),0)],f),n=i;continue e}else{e=r,t=W([void 0,De(T(c))],f),n=i;continue e}case 1:if(d instanceof B){const g=d;e=r,t=o,n=W([U(g),Ie(T(g),void 0,H(g),0)],m);continue e}else{e=r,t=o,n=W([void 0,De(T(d))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(T(s),T(a))|0;if(u!==0)return u|0;e=r,t=F(o),n=F(i);continue e}}else{b(E(i));let s,a,u,l,f;switch(P(o)?P(i)?s=2:E(i)!=null?(s=1,l=F(i),f=b(E(i))):s=2:E(o)!=null?(s=0,a=F(o),u=b(E(o))):P(i)?s=2:E(i)!=null?(s=1,l=F(i),f=b(E(i))):s=2,s){case 0:if(u instanceof B){const c=u;e=r,t=W([U(c),Ie(T(c),void 0,H(c),0)],a),n=i;continue e}else{e=r,t=W([void 0,De(T(u))],a),n=i;continue e}case 1:if(f instanceof B){const c=f;e=r,t=o,n=W([U(c),Ie(T(c),void 0,H(c),0)],l);continue e}else{e=r,t=o,n=W([void 0,De(T(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(E(o)!=null){b(E(o));let s,a,u,l,f;switch(P(o)?P(i)?s=2:E(i)!=null?(s=1,l=F(i),f=b(E(i))):s=2:E(o)!=null?(s=0,a=F(o),u=b(E(o))):P(i)?s=2:E(i)!=null?(s=1,l=F(i),f=b(E(i))):s=2,s){case 0:if(u instanceof B){const c=u;e=r,t=W([U(c),Ie(T(c),void 0,H(c),0)],a),n=i;continue e}else{e=r,t=W([void 0,De(T(u))],a),n=i;continue e}case 1:if(f instanceof B){const c=f;e=r,t=o,n=W([U(c),Ie(T(c),void 0,H(c),0)],l);continue e}else{e=r,t=o,n=W([void 0,De(T(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=F(o),n=F(i);continue e}}}function ua(e,t,n){return t==null?n==null?0:-1:n==null?1:Gf(e,re(t),re(n))|0}function Qf(e,t,n){let r=n;ia(o=>{yt(t,r,o),r=r+1|0},e)}function Wf(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=Jt(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i;continue e}else return o}}function Jf(e,t){return ir((n,r)=>Jt(e,r,n),void 0,t)}function qf(e,t){return nt((n,r)=>Jt(e,r,n),void 0,t)}function fa(e,t){if(Ue(t))return Jf(e,t);if(t instanceof me)return qf(e,t);{const n=Z(t);try{return Wf(e,void 0,n)}finally{z(n)}}}class _o{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Xf(this)|0}Equals(t){let n;const r=this;return t instanceof _o&&(n=t,ua(qt(r),Ze(r),Ze(n))===0)}toString(){return"set ["+Ee("; ",We(n=>pe(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return ua(qt(n),Ze(n),Ze(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 oa(qt(n),t,Ze(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Qf(Ze(this),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}GetEnumerator(){return ca(Ze(this))}[Symbol.iterator](){return zn(Z(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ca(Ze(this))}get size(){return yo(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 da(this,t)}keys(){return We(n=>n,this)}values(){return We(n=>n,this)}entries(){return We(n=>[n,n],this)}forEach(t,n){const r=this;Vs(o=>{t(o,o,r)},r)}}function pr(e,t){return new _o(e,t)}function qt(e){return e.comparer}function Ze(e){return e.tree}function Zf(e){return pr(e,void 0)}function Kf(e,t){return pr(qt(e),Jt(qt(e),t,Ze(e)))}function yo(e){return $f(Ze(e))}function da(e,t){return oa(qt(e),t,Ze(e))}function Xf(e){let t=0;const n=Z(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+ut(r)+631|0}}finally{z(n)}return Math.abs(t)|0}function bo(e,t){return da(t,e)}function Yf(e,t){return Kf(t,e)}function ed(e){return Zf(e)}function td(e,t){return pr(t,fa(t,e))}function nd(e,t){return pr(t,fa(t,e))}function Cn(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
|
1
|
+
(function(){"use strict";var ei=document.createElement("style");ei.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: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.z-10{z-index:10}.m-2{margin:.5rem}.-mx-4{margin-left:-1rem;margin-right:-1rem}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.mx-auto{margin-left:auto;margin-right:auto}.-mb-px{margin-bottom:-1px}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-6{margin-bottom:1.5rem}.ml-6{margin-left:1.5rem}.mr-6{margin-right:1.5rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.inline-table{display:inline-table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row-group{display:table-row-group}.table-row{display:table-row}.flow-root{display:flow-root}.grid{display:grid}.inline-grid{display:inline-grid}.contents{display:contents}.list-item{display:list-item}.hidden{display:none}.min-h-full{min-height:100%}.w-full{width:100%}.min-w-full{min-width:100%}.flex-shrink,.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.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))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-outside{list-style-position:outside}.list-disc{list-style-type:disc}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.justify-center{justify-content:center}.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)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(209 213 219 / var(--tw-divide-opacity))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.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-transparent{border-color:transparent}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / 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-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-4{padding-bottom:1rem}.pl-4{padding-left:1rem}.pr-3{padding-right:.75rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-justify{text-align:justify}.align-middle{vertical-align:middle}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.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)}.outline{outline-style:solid}.ring{--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(3px + 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)}.ring-1{--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, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.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}.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-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.focus-visible\\:outline:focus-visible{outline-style:solid}.focus-visible\\:outline-2:focus-visible{outline-width:2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-indigo-600:focus-visible{outline-color:#4f46e5}.disabled\\:border-indigo-500:disabled{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.disabled\\:text-indigo-600:disabled{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\\:col-start-1{grid-column-start:1}.sm\\:col-start-2{grid-column-start:2}.sm\\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-5{margin-top:1.25rem}.sm\\:mt-6{margin-top:1.5rem}.sm\\:grid{display:grid}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:grid-flow-row-dense{grid-auto-flow:row dense}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:items-center{align-items:center}.sm\\:gap-3{gap:.75rem}.sm\\:rounded-lg{border-radius:.5rem}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:pl-6{padding-left:1.5rem}}@media (min-width: 1024px){.lg\\:-mx-8{margin-left:-2rem;margin-right:-2rem}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}
|
|
2
|
+
`,document.head.appendChild(ei);var wn,O,ti,St,ni,ri,Rr,Mr,Fr,Or,oi,gn={},ii=[],jl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Un=Array.isArray;function ct(e,t){for(var n in t)e[n]=t[n];return e}function si(e){var t=e.parentNode;t&&t.removeChild(e)}function d(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?wn.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 _n(e,s,r,o,null)}function _n(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??++ti,__i:-1,__u:0};return o==null&&O.vnode!=null&&O.vnode(i),i}function ai(){return{current:null}}function Se(e){return e.children}function We(e,t){this.props=e,this.context=t}function Et(e,t){if(t==null)return e.__?Et(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"?Et(e):null}function li(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 li(e)}}function Nr(e){(!e.__d&&(e.__d=!0)&&St.push(e)&&!Vn.__r++||ni!==O.debounceRendering)&&((ni=O.debounceRendering)||ri)(Vn)}function Vn(){var e,t,n,r,o,i,s,a;for(St.sort(Rr);e=St.shift();)e.__d&&(t=St.length,r=void 0,i=(o=(n=e).__v).__e,s=[],a=[],n.__P&&((r=ct({},o)).__v=o.__v+1,O.vnode&&O.vnode(r),Pr(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,s,i??Et(o),!!(32&o.__u),a),r.__v=o.__v,r.__.__k[r.__i]=r,pi(s,r,a),r.__e!=i&&li(r)),St.length>t&&St.sort(Rr));Vn.__r=0}function ci(e,t,n,r,o,i,s,a,u,l,f){var c,m,p,w,_,g=r&&r.__k||ii,y=t.length;for(n.__d=u,$l(n,t,g),u=n.__d,c=0;c<y;c++)(p=n.__k[c])!=null&&typeof p!="boolean"&&typeof p!="function"&&(m=p.__i===-1?gn:g[p.__i]||gn,p.__i=c,Pr(e,p,m,o,i,s,a,u,l,f),w=p.__e,p.ref&&m.ref!=p.ref&&(m.ref&&Br(m.ref,null,p),f.push(p.ref,p.__c||w,p)),_==null&&w!=null&&(_=w),65536&p.__u||m.__k===p.__k?(u&&!u.isConnected&&(u=Et(m)),u=ui(p,u,e)):typeof p.type=="function"&&p.__d!==void 0?u=p.__d:w&&(u=w.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=u,n.__e=_}function $l(e,t,n){var r,o,i,s,a,u=t.length,l=n.length,f=l,c=0;for(e.__k=[],r=0;r<u;r++)s=r+c,(o=e.__k[r]=(o=t[r])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?_n(null,o,null,null,null):Un(o)?_n(Se,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?_n(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,a=Hl(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&&c--,typeof o.type!="function"&&(o.__u|=65536)):a!==s&&(a===s+1?c++:a>s?f>u-s?c+=a-s:c--:a<s?a==s-1&&(c=a-s):c=0,a!==r+c&&(o.__u|=65536))):(i=n[s])&&i.key==null&&i.__e&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=Et(i)),jr(i,i,!1),n[s]=null,f--);if(f)for(r=0;r<l;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=Et(i)),jr(i,i))}function ui(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=ui(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function ut(e,t){return t=t||[],e==null||typeof e=="boolean"||(Un(e)?e.some(function(n){ut(n,t)}):t.push(e)),t}function Hl(e,t,n,r){var o=e.key,i=e.type,s=n-1,a=n+1,u=t[n];if(u===null||u&&o==u.key&&i===u.type&&!(131072&u.__u))return n;if(r>(u!=null&&!(131072&u.__u)?1:0))for(;s>=0||a<t.length;){if(s>=0){if((u=t[s])&&!(131072&u.__u)&&o==u.key&&i===u.type)return s;s--}if(a<t.length){if((u=t[a])&&!(131072&u.__u)&&o==u.key&&i===u.type)return a;a++}}return-1}function fi(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||jl.test(t)?n:n+"px"}function Ln(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||fi(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||fi(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=Mr,e.addEventListener(t,i?Or:Fr,i)):e.removeEventListener(t,i?Or:Fr,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 in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function di(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Mr++;else if(t.t<n.u)return;return n(O.event?O.event(t):t)}}}function Pr(e,t,n,r,o,i,s,a,u,l){var f,c,m,p,w,_,g,y,S,T,J,j,ce,H,at,ue=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(u=!!(32&n.__u),i=[a=t.__e=n.__e]),(f=O.__b)&&f(t);e:if(typeof ue=="function")try{if(y=t.props,S=(f=ue.contextType)&&r[f.__c],T=f?S?S.props.value:f.__:r,n.__c?g=(c=t.__c=n.__c).__=c.__E:("prototype"in ue&&ue.prototype.render?t.__c=c=new ue(y,T):(t.__c=c=new We(y,T),c.constructor=ue,c.render=Vl),S&&S.sub(c),c.props=y,c.state||(c.state={}),c.context=T,c.__n=r,m=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),ue.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=ct({},c.__s)),ct(c.__s,ue.getDerivedStateFromProps(y,c.__s))),p=c.props,w=c.state,c.__v=t,m)ue.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(ue.getDerivedStateFromProps==null&&y!==p&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(y,T),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(y,c.__s,T)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=y,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(lt){lt&&(lt.__=t)}),J=0;J<c._sb.length;J++)c.__h.push(c._sb[J]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(y,c.__s,T),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(p,w,_)})}if(c.context=T,c.props=y,c.__P=e,c.__e=!1,j=O.__r,ce=0,"prototype"in ue&&ue.prototype.render){for(c.state=c.__s,c.__d=!1,j&&j(t),f=c.render(c.props,c.state,c.context),H=0;H<c._sb.length;H++)c.__h.push(c._sb[H]);c._sb=[]}else do c.__d=!1,j&&j(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++ce<25);c.state=c.__s,c.getChildContext!=null&&(r=ct(ct({},r),c.getChildContext())),m||c.getSnapshotBeforeUpdate==null||(_=c.getSnapshotBeforeUpdate(p,w)),ci(e,Un(at=f!=null&&f.type===Se&&f.key==null?f.props.children:f)?at:[at],t,n,r,o,i,s,a,u,l),c.base=t.__e,t.__u&=-161,c.__h.length&&s.push(c),g&&(c.__E=c.__=null)}catch(lt){t.__v=null,u||i!=null?(t.__e=a,t.__u|=u?160:32,i[i.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),O.__e(lt,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Ul(n.__e,t,n,r,o,i,s,u,l);(f=O.diffed)&&f(t)}function pi(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Br(n[r],n[++r],n[++r]);O.__c&&O.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){O.__e(i,o.__v)}})}function Ul(e,t,n,r,o,i,s,a,u){var l,f,c,m,p,w,_,g=n.props,y=t.props,S=t.type;if(S==="svg"?o="http://www.w3.org/2000/svg":S==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(l=0;l<i.length;l++)if((p=i[l])&&"setAttribute"in p==!!S&&(S?p.localName===S:p.nodeType===3)){e=p,i[l]=null;break}}if(e==null){if(S===null)return document.createTextNode(y);e=document.createElementNS(o,S,y.is&&y),i=null,a=!1}if(S===null)g===y||a&&e.data===y||(e.data=y);else{if(i=i&&wn.call(e.childNodes),g=n.props||gn,!a&&i!=null)for(g={},l=0;l<e.attributes.length;l++)g[(p=e.attributes[l]).name]=p.value;for(l in g)if(p=g[l],l!="children"){if(l=="dangerouslySetInnerHTML")c=p;else if(l!=="key"&&!(l in y)){if(l=="value"&&"defaultValue"in y||l=="checked"&&"defaultChecked"in y)continue;Ln(e,l,null,p,o)}}for(l in y)p=y[l],l=="children"?m=p:l=="dangerouslySetInnerHTML"?f=p:l=="value"?w=p:l=="checked"?_=p:l==="key"||a&&typeof p!="function"||g[l]===p||Ln(e,l,p,g[l],o);if(f)a||c&&(f.__html===c.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),ci(e,Un(m)?m:[m],t,n,r,S==="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&Et(n,0),a,u),i!=null)for(l=i.length;l--;)i[l]!=null&&si(i[l]);a||(l="value",w!==void 0&&(w!==e[l]||S==="progress"&&!w||S==="option"&&w!==g[l])&&Ln(e,l,w,g[l],o),l="checked",_!==void 0&&_!==e[l]&&Ln(e,l,_,g[l],o))}return e}function Br(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){O.__e(r,n)}}function jr(e,t,n){var r,o;if(O.unmount&&O.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Br(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){O.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&jr(r[o],t,n||typeof e.type!="function");n||e.__e==null||si(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Vl(e,t,n){return this.constructor(e,n)}function yt(e,t,n){var r,o,i,s;O.__&&O.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],Pr(t,e=(!r&&n||t).__k=d(Se,null,[e]),o||gn,gn,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?wn.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),pi(i,e,s)}function $r(e,t){yt(e,t,$r)}function Hr(e,t,n){var r,o,i,s,a=ct({},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?wn.call(arguments,2):n),_n(e.type,a,r||e.key,o||e.ref,null)}function hi(e,t){var n={__c:t="__cC"+oi++,__: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.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.some(function(a){a.__e=!0,Nr(a)})},this.sub=function(s){o.push(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){o.splice(o.indexOf(s),1),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}wn=ii.slice,O={__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}},ti=0,We.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ct({},this.state),typeof e=="function"&&(e=e(ct({},n),this.props)),e&&ct(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Nr(this))},We.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Nr(this))},We.prototype.render=Se,St=[],ri=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Rr=function(e,t){return e.__v.__b-t.__v.__b},Vn.__r=0,Mr=0,Fr=di(!1),Or=di(!0),oi=0;var ft,U,Ur,mi,Ht=0,wi=[],zn=[],K=O,gi=K.__b,_i=K.__r,yi=K.diffed,bi=K.__c,Ai=K.unmount,vi=K.__;function kt(e,t){K.__h&&K.__h(U,e,Ht||t),Ht=0;var n=U.__H||(U.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:zn}),n.__[e]}function Ut(e){return Ht=1,yn(Ci,e)}function yn(e,t,n){var r=kt(ft++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ci(void 0,t),function(a){var u=r.__N?r.__N[0]:r.__[0],l=r.t(u,a);u!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=U,!U.u)){var o=function(a,u,l){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(m){return!!m.__c});if(f.every(function(m){return!m.__N}))return!i||i.call(this,a,u,l);var c=!1;return f.forEach(function(m){if(m.__N){var p=m.__[0];m.__=m.__N,m.__N=void 0,p!==m.__[0]&&(c=!0)}}),!(!c&&r.__c.props===a)&&(!i||i.call(this,a,u,l))};U.u=!0;var i=U.shouldComponentUpdate,s=U.componentWillUpdate;U.componentWillUpdate=function(a,u,l){if(this.__e){var f=i;i=void 0,o(a,u,l),i=f}s&&s.call(this,a,u,l)},U.shouldComponentUpdate=o}return r.__N||r.__}function bt(e,t){var n=kt(ft++,3);!K.__s&&Wr(n.__H,t)&&(n.__=e,n.i=t,U.__H.__h.push(n))}function Vt(e,t){var n=kt(ft++,4);!K.__s&&Wr(n.__H,t)&&(n.__=e,n.i=t,U.__h.push(n))}function It(e){return Ht=5,Qe(function(){return{current:e}},[])}function Gn(e,t,n){Ht=6,Vt(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 Qe(e,t){var n=kt(ft++,7);return Wr(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function we(e,t){return Ht=8,Qe(function(){return e},t)}function Vr(e){var t=U.context[e.__c],n=kt(ft++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(U)),t.props.value):e.__}function Lr(e,t){K.useDebugValue&&K.useDebugValue(t?t(e):e)}function Ll(e){var t=kt(ft++,10),n=Ut();return t.__=e,U.componentDidCatch||(U.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function zr(){var e=kt(ft++,11);if(!e.__){for(var t=U.__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 zl(){for(var e;e=wi.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Wn),e.__H.__h.forEach(Gr),e.__H.__h=[]}catch(t){e.__H.__h=[],K.__e(t,e.__v)}}K.__b=function(e){U=null,gi&&gi(e)},K.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),vi&&vi(e,t)},K.__r=function(e){_i&&_i(e),ft=0;var t=(U=e.__c).__H;t&&(Ur===U?(t.__h=[],U.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=zn,n.__N=n.i=void 0})):(t.__h.forEach(Wn),t.__h.forEach(Gr),t.__h=[],ft=0)),Ur=U},K.diffed=function(e){yi&&yi(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(wi.push(t)!==1&&mi===K.requestAnimationFrame||((mi=K.requestAnimationFrame)||Gl)(zl)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==zn&&(n.__=n.__V),n.i=void 0,n.__V=zn})),Ur=U=null},K.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Wn),n.__h=n.__h.filter(function(r){return!r.__||Gr(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],K.__e(r,n.__v)}}),bi&&bi(e,t)},K.unmount=function(e){Ai&&Ai(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Wn(r)}catch(o){t=o}}),n.__H=void 0,t&&K.__e(t,n.__v))};var xi=typeof requestAnimationFrame=="function";function Gl(e){var t,n=function(){clearTimeout(r),xi&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);xi&&(t=requestAnimationFrame(n))}function Wn(e){var t=U,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),U=t}function Gr(e){var t=U;e.__c=e.__(),U=t}function Wr(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Ci(e,t){return typeof t=="function"?t(e):t}function Si(e,t){for(var n in t)e[n]=t[n];return e}function Qr(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 Qn(e,t){this.props=e,this.context=t}function Ei(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:Qr(this.props,o)}function r(o){return this.shouldComponentUpdate=n,d(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Qn.prototype=new We).isPureReactComponent=!0,Qn.prototype.shouldComponentUpdate=function(e,t){return Qr(this.props,e)||Qr(this.state,t)};var ki=O.__b;O.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ki&&ki(e)};var Wl=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function qr(e){function t(n){var r=Si({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Wl,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ii=function(e,t){return e==null?null:ut(ut(e).map(t))},Di={map:Ii,forEach:Ii,count:function(e){return e?ut(e).length:0},only:function(e){var t=ut(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ut},Ql=O.__e;O.__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)}Ql(e,t,n,r)};var Ti=O.unmount;function Ri(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=Si({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Ri(r,t,n)})),e}function Mi(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Mi(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 bn(){this.__u=0,this.t=null,this.__b=null}function Fi(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Oi(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 d(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Lt(){this.u=null,this.o=null}O.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ti&&Ti(e)},(bn.prototype=new We).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Fi(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 u=r.state.__a;r.__v.__k[0]=Mi(u,u.__c.__P,u.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.t.pop();)l.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},bn.prototype.componentWillUnmount=function(){this.t=[]},bn.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]=Ri(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&d(Se,null,e.fallback);return o&&(o.__u&=-33),[d(Se,null,t.__a?null:e.children),o]};var Ni=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 ql(e){return this.getChildContext=function(){return e.context},e.children}function Zl(e){var t=this,n=e.i;t.componentWillUnmount=function(){yt(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:[],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)}}),yt(d(ql,{context:t.context},e.__v),t.l)}function Pi(e,t){var n=d(Zl,{__v:e,i:t});return n.containerInfo=t,n}(Lt.prototype=new We).__a=function(e){var t=this,n=Fi(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Ni(t,e,r)):o()};n?n(i):i()}},Lt.prototype.render=function(e){this.u=null,this.o=new Map;var t=ut(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},Lt.prototype.componentDidUpdate=Lt.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Ni(e,n,t)})};var Bi=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Jl=/^(?: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]/,Kl=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Xl=/[A-Z0-9]/g,Yl=typeof document<"u",ec=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function ji(e,t,n){return t.__k==null&&(t.textContent=""),yt(e,t),typeof n=="function"&&n(),e?e.__c:null}function $i(e,t,n){return $r(e,t),typeof n=="function"&&n(),e?e.__c:null}We.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(We.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Hi=O.event;function tc(){}function nc(){return this.cancelBubble}function rc(){return this.defaultPrevented}O.event=function(e){return Hi&&(e=Hi(e)),e.persist=tc,e.isPropagationStopped=nc,e.isDefaultPrevented=rc,e.nativeEvent=e};var Zr,oc={enumerable:!1,configurable:!0,get:function(){return this.class}},Ui=O.vnode;O.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var i in n){var s=n[i];if(!(i==="value"&&"defaultValue"in n&&s==null||Yl&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var a=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&s===!0?s="":a==="translate"&&s==="no"?s=!1:a==="ondoubleclick"?i="ondblclick":a!=="onchange"||r!=="input"&&r!=="textarea"||ec(n.type)?a==="onfocus"?i="onfocusin":a==="onblur"?i="onfocusout":Kl.test(i)?i=a:r.indexOf("-")===-1&&Jl.test(i)?i=i.replace(Xl,"-$&").toLowerCase():s===null&&(s=void 0):a=i="oninput",a==="oninput"&&o[i=a]&&(i="oninputCapture"),o[i]=s}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=ut(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=ut(n.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",oc)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Bi,Ui&&Ui(e)};var Vi=O.__r;O.__r=function(e){Vi&&Vi(e),Zr=e.__c};var Li=O.diffed;O.diffed=function(e){Li&&Li(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),Zr=null};var zi={ReactCurrentDispatcher:{current:{readContext:function(e){return Zr.__n[e.__c].props.value},useCallback:we,useContext:Vr,useDebugValue:Lr,useDeferredValue:Kr,useEffect:bt,useId:zr,useImperativeHandle:Gn,useInsertionEffect:Yr,useLayoutEffect:Vt,useMemo:Qe,useReducer:yn,useRef:It,useState:Ut,useSyncExternalStore:eo,useTransition:Xr}}},ic="17.0.2";function Gi(e){return d.bind(null,e)}function An(e){return!!e&&e.$$typeof===Bi}function Wi(e){return An(e)&&e.type===Se}function Qi(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function qi(e){return An(e)?Hr.apply(null,arguments):e}function Zi(e){return!!e.__k&&(yt(null,e),!0)}function Ji(e){return e&&(e.base||e.nodeType===1&&e)||null}var Ki=function(e,t){return e(t)},Xi=function(e,t){return e(t)},Yi=Se;function Jr(e){e()}function Kr(e){return e}function Xr(){return[!1,Jr]}var Yr=Vt,es=An;function eo(e,t){var n=t(),r=Ut({h:{__:n,v:t}}),o=r[0].h,i=r[1];return Vt(function(){o.__=n,o.v=t,to(o)&&i({h:o})},[e,n,t]),bt(function(){return to(o)&&i({h:o}),e(function(){to(o)&&i({h:o})})},[e]),n}function to(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 no={useState:Ut,useId:zr,useReducer:yn,useEffect:bt,useLayoutEffect:Vt,useInsertionEffect:Yr,useTransition:Xr,useDeferredValue:Kr,useSyncExternalStore:eo,startTransition:Jr,useRef:It,useImperativeHandle:Gn,useMemo:Qe,useCallback:we,useContext:Vr,useDebugValue:Lr,version:"17.0.2",Children:Di,render:ji,hydrate:$i,unmountComponentAtNode:Zi,createPortal:Pi,createElement:d,createContext:hi,createFactory:Gi,cloneElement:qi,createRef:ai,Fragment:Se,isValidElement:An,isElement:es,isFragment:Wi,isMemo:Qi,findDOMNode:Ji,Component:We,PureComponent:Qn,memo:Ei,forwardRef:qr,flushSync:Xi,unstable_batchedUpdates:Ki,StrictMode:Yi,Suspense:bn,SuspenseList:Lt,lazy:Oi,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:zi};const sc=Object.freeze(Object.defineProperty({__proto__:null,Children:Di,Component:We,Fragment:Se,PureComponent:Qn,StrictMode:Yi,Suspense:bn,SuspenseList:Lt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:zi,cloneElement:qi,createContext:hi,createElement:d,createFactory:Gi,createPortal:Pi,createRef:ai,default:no,findDOMNode:Ji,flushSync:Xi,forwardRef:qr,hydrate:$i,isElement:es,isFragment:Wi,isMemo:Qi,isValidElement:An,lazy:Oi,memo:Ei,render:ji,startTransition:Jr,unmountComponentAtNode:Zi,unstable_batchedUpdates:Ki,useCallback:we,useContext:Vr,useDebugValue:Lr,useDeferredValue:Kr,useEffect:bt,useErrorBoundary:Ll,useId:zr,useImperativeHandle:Gn,useInsertionEffect:Yr,useLayoutEffect:Vt,useMemo:Qe,useReducer:yn,useRef:It,useState:Ut,useSyncExternalStore:eo,useTransition:Xr,version:ic},Symbol.toStringTag,{value:"Module"}));function qe(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function ac(e){return e!=null&&typeof e.GetEnumerator=="function"}function lc(e){return e!=null&&typeof e.CompareTo=="function"}function cc(e){return e!=null&&typeof e.Equals=="function"}function ts(e){return e!=null&&typeof e.GetHashCode=="function"}function ro(e){return e!=null&&typeof e.Dispose=="function"}function Z(e){ro(e)&&e.Dispose()}function At(){return null}function qn(e,t){var n,r;return((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===((r=Object.getPrototypeOf(t))==null?void 0:r.constructor)}class uc{constructor(t){this.iter=t,this.current=At()}"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 te(e){return ac(e)?e.GetEnumerator():new uc(e[Symbol.iterator]())}function Zn(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}}}}function W(e,t){return e.toString(10).padStart(t,"0")}function ns(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function fc(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 dt{static id(t){return dt.idMap.has(t)||dt.idMap.set(t,++dt.count),dt.idMap.get(t)}}dt.idMap=new WeakMap,dt.count=0;function Jn(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Ze(e){return e*2654435761|0}function rs(e){return Jn(e.toString(32))}function vn(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 dc(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Ze(e);case"bigint":return rs(e);case"string":return Jn(e);default:return Ze(dt.id(e))}}function pc(e){return ts(e)?e.GetHashCode():dc(e)}function hc(e){return e.getTime()}function mc(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=pt(e[r]);return vn(n)}function pt(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Ze(e);case"bigint":return rs(e);case"string":return Jn(e);default:{if(ts(e))return e.GetHashCode();if(qe(e))return mc(e);if(e instanceof Date)return hc(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>pt(r));return vn(n)}else return Ze(dt.id(e))}}}function os(e){return pc(e)}function oo(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 is(e,t){return oo(e,t,Ee)}function wc(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]||!Ee(e[n[o]],t[r[o]]))return!1;return!0}function Ee(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:cc(e)?e.Equals(t):qe(e)?qe(t)&&is(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&io(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&wc(e,t)}function io(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+ns(e),r=t.getTime()+ns(t)),n===r?0:n<r?-1:1}function so(e,t){return e===t?0:e<t?-1:1}function gc(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 ss(e,t){return gc(e,t,je)}function _c(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=je(e[s],t[s]),i!==0)return i}return 0}function je(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:lc(e)?e.CompareTo(t):qe(e)?qe(t)?ss(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?io(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?_c(e,t):-1}function I(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function yc(e){qe(e)?e.splice(0):e.clear()}const Kn=new WeakMap;function z(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Kn.set(t,e),t}function $e(e){return Kn.get(e)??(t=>n=>e(t,n))}function ao(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return Kn.set(t,e),t}function Xn(e){return Kn.get(e)??(t=>n=>r=>e(t,n,r))}function bc(e){let t=0,n="[";for(const r of e){if(t===0)n+=ie(r);else if(t===100){n+="; ...";break}else n+="; "+ie(r);t++}return n+"]"}function ie(e,t=0){var n;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return bc(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([o,i])=>o+" = "+ie(i,t+1)).join(`
|
|
3
|
+
`)+" }":(r==null?void 0:r.name)??""}}return String(e)}function Ac(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=ie(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>ie(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class ee{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return Ac(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>pt(n));return t.splice(0,0,Ze(this.tag)),vn(t)}Equals(t){return this===t?!0:qn(this,t)&&this.tag===t.tag?is(this.fields,t.fields):!1}CompareTo(t){return this===t?0:qn(this,t)?this.tag===t.tag?ss(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function vc(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function xc(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+ie(n)).join(`
|
|
4
|
+
`)+" }"}function Cc(e){const t=Object.values(e).map(n=>pt(n));return vn(t)}function Sc(e,t){if(e===t)return!0;if(qn(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!Ee(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Ec(e,t){if(e===t)return 0;if(qn(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=je(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class Q{toJSON(){return vc(this)}toString(){return xc(this)}GetHashCode(){return Cc(this)}Equals(t){return Sc(this,t)}CompareTo(t){return Ec(this,t)}}class Je{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 kc{constructor(t){this.message=t}}function Ic(e){return e instanceof kc||e instanceof Error}function Dc(e){return e instanceof Promise}function Yn(e){return Ic(e)||Dc(e)?e:new Error(String(e))}const zt=Symbol("numeric");function as(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[zt])}function Tc(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function lo(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[zt]().multiply(t)}function er(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[zt]().toFixed(t)}function tr(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[zt]().toPrecision(t)}function nr(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[zt]().toExponential(t)}function rr(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[zt]().toHex()}class Rc{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class ye{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 fe(this)}GetHashCode(){return ls(this)}Equals(t){return co(this,t)}}function ht(e){return e.generics!=null?e.generics:[]}function ls(e){const t=Jn(e.fullname),n=ht(e).map(ls);return vn([t,...n])}function co(e,t){return e.fullname===""?t.fullname===""&&oo(ir(e),ir(t),([n,r],[o,i])=>n===o&&co(r,i)):e.fullname===t.fullname&&oo(ht(e),ht(t),co)}function mt(e,t,n,r){return new ye(e,t,n,r)}function He(e,t,n,r){return new ye(e,t,n,void 0,r)}function uo(...e){return new ye("",void 0,void 0,void 0,()=>e)}function xn(e,t,n,r){const o=new ye(e,t,n,void 0,void 0,()=>{const i=n.prototype.cases();return r().map((s,a)=>new Rc(o,a,i[a],s))});return o}function Gt(e){return new ye("Microsoft.FSharp.Core.FSharpOption`1",[e])}function it(e){return new ye("Microsoft.FSharp.Collections.FSharpList`1",[e])}function Mc(e){return new ye("[]",[e])}const Fc=new ye("System.Object"),se=new ye("System.String"),Oc=new ye("System.Boolean"),ae=new ye("System.Int32");function fo(e){if(Array.isArray(e))return e[0];if(e instanceof ye){const t=or(e);if(t!=null)return fo(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function fe(e){const t=or(e);return t!=null?fe(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>fe(n)).join(",")+"]"}function Nc(e){return or(e)!=null}function or(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Pc(e){return e.generics!=null&&e.generics.length>0}function cs(e){return e.enumCases!=null&&e.enumCases.length>0}function Bc(e){return e.generics==null?e:new ye(e.fullname,e.generics.map(()=>Fc))}function jc(e){var t;return(t=e.generics)==null?void 0:t[0]}function Wt(e){if(cs(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function $c(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 Qt(e,t){const n=parseInt(t,10);return $c(e,isNaN(n)?t:n)[1]}function Hc(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function ir(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Uc(e){if(us(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Vc(e){return e instanceof ye?e.cases!=null:e instanceof ee}function Lc(e){return e instanceof ye?e.fields!=null:e instanceof Q}function us(e){return e.fullname.startsWith("System.Tuple")}function zc(e){return e.fields==null?[]:e.fields}function Gc(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 Wc(e,t){const n=ir(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 Qc(e,t){return e}const qc=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Zc=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Jc=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Kc=["January","February","March","April","May","June","July","August","September","October","November","December"];function De(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function fs(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Xc(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 po(e,t,n){let r=0,o=0,i="";const s=n?Cn(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(o=De(t,r,"d"),r+=o,o){case 1:i+=ms(s);break;case 2:i+=W(ms(s),2);break;case 3:i+=qc[_s(s)];break;case 4:i+=Zc[_s(s)];break}break;case"f":if(o=De(t,r,"f"),r+=o,o<=3){const g=10**(3-o);i+=W(Math.floor(lr(s)/g),o)}else o<=7&&(i+=(""+lr(s)).padEnd(o,"0"));break;case"F":if(o=De(t,r,"F"),r+=o,o<=3){const g=10**(3-o),y=Math.floor(lr(s)/g);y!=0&&(i+=W(y,o))}else if(o<=7){const g=lr(s);g!=0&&(i+=W(g,3))}break;case"g":o=De(t,r,"g"),r+=o,o<=2&&(i+="A.D.");break;case"h":switch(o=De(t,r,"h"),r+=o,o){case 1:i+=ar(s)%12;break;case 2:i+=W(ar(s)%12,2);break}break;case"H":switch(o=De(t,r,"H"),r+=o,o){case 1:i+=ar(s);break;case 2:i+=W(ar(s),2);break}break;case"K":switch(o=De(t,r,"K"),r+=o,o){case 1:switch(ds(s)){case 1:i+="Z";break;case 2:i+=qt(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=De(t,r,"m"),r+=o,o){case 1:i+=ws(s);break;case 2:i+=W(ws(s),2);break}break;case"M":switch(o=De(t,r,"M"),r+=o,o){case 1:i+=cr(s);break;case 2:i+=W(cr(s),2);break;case 3:i+=Jc[cr(s)-1];break;case 4:i+=Kc[cr(s)-1];break}break;case"s":switch(o=De(t,r,"s"),r+=o,o){case 1:i+=gs(s);break;case 2:i+=W(gs(s),2);break}break;case"t":switch(o=De(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=De(t,r,"y"),r+=o,o){case 1:i+=s.getFullYear()%100;break;case 2:i+=W(s.getFullYear()%100,2);break;case 3:i+=W(s.getFullYear(),3);break;case 4:i+=W(s.getFullYear(),4);break;case 5:i+=W(s.getFullYear(),5);break}break;case"z":o=De(t,r,"z"),r+=o;let u="";switch(ds(s)){case 1:u="+00:00";break;case 2:u=qt(s.getTimezoneOffset()*-6e4);break;case 0:u=qt(au(s).getTimezoneOffset()*-6e4);break}const l=u[0]==="-"?"-":"+",f=parseInt(u.substring(1,3),10),c=parseInt(u.substring(4,6),10);switch(o){case 1:i+=`${l}${f}`;break;case 2:i+=`${l}${W(f,2)}`;break;default:i+=`${l}${W(f,2)}:${W(c,2)}`;break}break;case":":i+=":",r++;break;case"/":i+="/",r++;break;case"'":case'"':const[m,p]=Xc(t,r);i+=m,r+=p;break;case"%":const w=fs(t,r);if(w>=0&&w!==37)r+=2,i+=po(s,String.fromCharCode(w),n);else throw new Error("Invalid format string");break;case"\\":const _=fs(t,r);if(_>=0)r+=2,i+=String.fromCharCode(_);else throw new Error("Invalid format string");break;default:r++,i+=a;break}}return i}function ds(e){return e.kind||0}function qt(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+W(n,2)+":"+W(r,2)}function sr(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 Yc(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return W(e.getFullYear(),4)+"-"+W(e.getMonth()+1,2)+"-"+W(e.getDate(),2)+"T"+W(e.getHours(),2)+":"+W(e.getMinutes(),2)+":"+W(e.getSeconds(),2)+"."+W(e.getMilliseconds(),3)+(n?qt(e.getTimezoneOffset()*-6e4):"")}}function eu(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+qt(t)}function tu(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," ")+qt(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return sr(n,"first");case"T":case"t":return sr(n,"second");case"O":case"o":return eu(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return po(n,t,!0)}function nu(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?sr(e,"first"):e.toLocaleDateString();case"T":case"t":return n?sr(e,"second"):e.toLocaleTimeString();case"O":case"o":return Yc(e,n);default:throw new Error("Unrecognized Date print format")}else return po(e,t,n)}function ps(e,t,n){return e.offset!=null?tu(e,t):nu(e,t)}function Cn(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function ru(){return Cn(-621355968e5,1)}function hs(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(":"),u=parseInt(a[0],10);s=u*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&u<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 ou(e,t=!1){const[n,r]=hs(e),o=r!=null?t&&r==="Z"?1:2:0;return Cn(n.getTime(),o)}function iu(e,t){try{return t.contents=ou(e),!0}catch{return!1}}function su(e){return e.kind===1?e:Cn(e.getTime(),1)}function au(e){return e.kind===2?e:Cn(e.getTime(),2)}function ms(e){return e.kind===1?e.getUTCDate():e.getDate()}function ar(e){return e.kind===1?e.getUTCHours():e.getHours()}function lr(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function ws(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function cr(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function gs(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function _s(e){return e.kind===1?e.getUTCDay():e.getDay()}const lu=io;function cu(e,t=0){if(t&-284)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 ho(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function ys(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 uu(e,t,n,r,o=0){function i(){let s=arguments[0];if(r){r--;const a=[],u=arguments.length,l=typeof arguments[u-1]!="string";let f=l?u-3:u-2;for(let c=0;c<f;c++)a.push(arguments[c]);a.index=arguments[f++],a.input=arguments[f++],l&&(a.groups=arguments[f]),s=n(a)}return s}if(typeof e=="string"){const s=e;e=cu(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),u=ys(e,a),l=ys.length>r?(s=u[r-1],a.substring(0,s.index+s[0].length)):a;return t.substring(0,o)+l.replace(e,n)+t.substring(o+l.length)}else return t.replace(e,n)}const Sn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,fu=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function bs(e,t){return Tc(e,t)<0}function Te(e){return{input:e,cont:hu(e)}}function As(e,t){return typeof t=="string"?e(t):t.cont(e)}function Ue(e){return As(t=>t,e)}function du(e){return As(t=>{throw new Error(t)},e)}function pu(e,t,n,r,o){let i="";if(t=t||"",o=o||"",as(e))switch(o.toLowerCase()!=="x"&&(bs(e,0)?(e=lo(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=er(e,r);break;case"g":case"G":e=r!=null?tr(e,r):tr(e);break;case"e":case"E":e=r!=null?nr(e,r):nr(e);break;case"x":e=rr(e);break;case"X":e=rr(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=ps(e):e=ie(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,u=a||!s?" ":"0";u==="0"?(e=En(e,n-i.length,u,a),e=i+e):e=En(i+e,n,u,a)}return e}function vs(e,t,n,r="",o=-1){return(...i)=>{let s=r;const a=t.slice(),u=n.slice();for(const l of i){const[,,f,c,m,p]=u[0];let w=c;if(o>=0)w=o,o=-1;else if(w==="*"){if(l<0)throw new Error("Non-negative number required");o=l;continue}s+=a[0],s+=pu(l,f,w,m,p),a.splice(0,1),u.splice(0,1)}return u.length===0?(s+=a[0],e(s)):vs(e,a,u,s,o)}}function hu(e){return t=>{Sn.lastIndex=0;const n=[],r=[];let o=0,i=Sn.exec(e);for(;i;){const s=i.index+(i[1]||"").length;n.push(e.substring(o,s).replace(/%%/g,"%")),r.push(i),o=Sn.lastIndex,Sn.lastIndex-=1,i=Sn.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),vs(t,n,r))}}function mu(e,...t){let n;return n=e,n.replace(fu,(r,o,i,s,a,u)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let l=t[o];if(as(l))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,l=er(l,a);break;case"g":case"G":l=a!=null?tr(l,a):tr(l);break;case"e":case"E":l=a!=null?nr(l,a):nr(l);break;case"p":case"P":a=a??2,l=er(lo(l,100),a)+" %";break;case"d":case"D":l=a!=null?mo(String(l),a,"0"):String(l);break;case"x":case"X":l=a!=null?mo(rr(l),a,"0"):rr(l),s==="X"&&(l=l.toUpperCase());break;default:if(u){let f="";l=u.replace(/([0#,]+)(\.[0#]+)?/,(c,m,p)=>{bs(l,0)&&(l=lo(l,-1),f="-"),p=p==null?"":p.substring(1),l=er(l,Math.max(p.length,0));let[w,_]=l.split(".");_||(_="");const g=m.replace(/,/g,"").replace(/^#+/,"").length;w=mo(w,g,"0");const y=p.replace(/#+$/,"").length;if(y>_.length?_=gu(_,y,"0"):y<_.length&&(_=_.substring(0,y)+_.substring(y).replace(/0+$/,"")),m.indexOf(",")>0){const S=w.length%3,T=Math.floor(w.length/3);let J=S>0?w.substr(0,S)+(T>0?",":""):"";for(let j=0;j<T;j++)J+=w.substr(S+j*3,3)+(j<T-1?",":"");w=J}return _.length>0?w+"."+_:w}),l=f+l}}else l instanceof Date?l=ps(l,u||s):l=ie(l);return i=parseInt((i||" ").substring(1),10),isNaN(i)||(l=En(String(l),Math.abs(i)," ",i<0)),l})}function wu(e){return typeof e!="string"||e.length===0}function Re(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function En(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 mo(e,t,n){return En(e,t,n)}function gu(e,t,n){return En(e,t,n,!0)}function xs(e,t,n){return e.replace(new RegExp(ho(t),"g"),n)}function wo(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(ho),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let u=!0,l=0;do{const f=a.exec(e);if(f===null){const c=i?e.substring(l).trim():e.substring(l);(!o||c.length>0)&&s.push(c),u=!1}else{const c=i?e.substring(l,f.index).trim():e.substring(l,f.index);(!o||c.length>0)&&(n!=null&&s.length+1===n?(s.push(i?e.substring(l).trim():e.substring(l)),u=!1):s.push(c)),l=a.lastIndex}}while(u);return s}function _u(e,...t){if(t.length===0)return e.trim();const n="["+ho(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class Zt{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return pt(this.value)}Equals(t){return t==null?!1:Ee(this.value,t instanceof Zt?t.value:t)}CompareTo(t){return t==null?1:je(this.value,t instanceof Zt?t.value:t)}}function b(e){if(e==null)throw new Error("Option has no value");return e instanceof Zt?e.value:e}function Me(e){return e==null||e instanceof Zt?new Zt(e):e}function Cs(e,t){return e!=null?b(e):t}function yu(e,t){return t!=null?Me(e(b(t))):void 0}function bu(e,t,n){return t!=null&&n!=null?e(b(t),b(n)):void 0}const Ss="Collection was empty.";function Es(e,t){return new Array(t)}function ks(e,t){return e>t?e:t}function go(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function wt(e,t,n){const r=t.length|0,o=Es(n,r);for(let i=0;i<=r-1;i++)vt(o,i,e(de(i,t)));return o}function Au(e,t){const n=Es(t,1);return vt(n,0,e),n}function vu(e){return e.slice().reverse()}function xu(e,t){return t.find(e)}function Cu(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const i=e(de(o,t));if(i!=null){const s=b(i);r.push(s)}}return Ee(n,At())?r:wt(o=>o,r,n)}function ur(e,t,n){const r=e;return n.reduce(r,t)}function Su(e,t,n){return t==null}function de(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 vt(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 Is(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class be extends Q{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+Re("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,i)=>{e:for(;;){const s=o,a=i,u=s.tail,l=a.tail;if(u!=null)if(l!=null){const f=b(u),c=b(l);if(Ee(s.head,a.head)){o=f,i=c;continue e}else return!1}else return!1;else return l==null}})(n,t)}GetHashCode(){return((r,o,i)=>{e:for(;;){const s=r,a=o,u=i,l=u.tail;if(l!=null){const f=b(l);if(s>18)return a|0;r=s+1,o=(a<<1)+pt(u.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,u=s.tail,l=a.tail;if(u!=null)if(l!=null){const f=b(u),c=b(l),m=je(s.head,a.head)|0;if(m===0){o=f,i=c;continue e}else return m|0}else return 1;else return l!=null?-1:0}})(this,t)|0}GetEnumerator(){return ku(this)}[Symbol.iterator](){return Zn(te(this))}"System.Collections.IEnumerable.GetEnumerator"(){return te(this)}}class Eu{constructor(t){this.xs=t,this.it=this.xs,this.current=At()}"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=b(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=At()}Dispose(){}}function ku(e){return new Eu(e)}function le(){return new be(At(),void 0)}function kn(e,t){return new be(e,t)}function In(e){return e.tail==null}function Ds(e){return((n,r)=>{e:for(;;){const o=n,s=r.tail;if(s!=null){n=o+1,r=b(s);continue e}else return o|0}})(0,e)|0}function fr(e){if(e.tail!=null)return e.head;throw new Error(Ss+"\\nParameter name: list")}function Ve(e){const t=e.tail;if(t!=null)return b(t);throw new Error(Ss+"\\nParameter name: list")}function pe(){return le()}function Le(e,t){return kn(e,t)}function q(e){return kn(e,le())}function P(e){return In(e)}function Dn(e){return Ds(e)}function k(e){return fr(e)}function N(e){return Ve(e)}function Jt(e){const t=Ds(e)|0,n=go(new Array(t),0,t,null);return((o,i)=>{e:for(;;){const s=o,a=i;if(!In(a)){vt(n,s,fr(a)),o=s+1,i=Ve(a);continue e}break}})(0,e),n}function Ke(e,t,n){let r=t,o=n;for(;!In(o);)r=e(r,k(o)),o=Ve(o);return r}function _o(e){return Ke((t,n)=>kn(n,t),le(),e)}function Iu(e,t,n){return Is(e,Jt(t),n)}function Tn(e,t){Ke((n,r)=>{e(r)},void 0,t)}function X(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=kn(de(r,e),n);return n}function x(e){return X(e,le())}function Du(e){let t,n;if(qe(e))return x(e);if(e instanceof be)return e;{const r=le();let o=r;const i=te(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new be(u,void 0),t.tail=n,n)}}finally{Z(i)}const s=o,a=le();return s.tail=a,Ve(r)}}function Tu(e){const t=le();let n=t;const r=s=>{n=Ke((a,u)=>{const l=new be(u,void 0);return a.tail=l,l},n,s)};if(qe(e))e.forEach(r);else if(e instanceof be)Tn(r,e);else{const s=te(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();)r(s["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{Z(s)}}const o=n,i=le();return o.tail=i,Ve(t)}function Rn(e,t){return Ke((n,r)=>kn(r,n),t,_o(e))}function xt(e,t){const n=le(),r=Ke((i,s)=>{const a=new be(e(s),void 0);return i.tail=a,a},n,t),o=le();return r.tail=o,Ve(n)}function Ru(e,t){return(r=>{e:for(;;){const o=r;if(In(o))return;{const i=e(fr(o));if(i==null){r=Ve(o);continue e}else return i}}})(t)}function Mu(e,t){return Ru(n=>e(n)?Me(n):void 0,t)}function Fu(e,t){return((r,o)=>{e:for(;;){const i=r,s=o;if(In(s))return;if(e(fr(s)))return i;r=i+1,o=Ve(s);continue e}})(0,t)}function Ou(e,t){const n=le(),r=Ke((i,s)=>{if(e(s)){const a=new be(s,void 0);return i.tail=a,a}else return i},n,t),o=le();return r.tail=o,Ve(n)}function Nu(e,t){const n=le(),r=le(),o=n,i=Ke((u,l)=>{let f,c;const m=u[0],p=u[1];return e(l)?[(f=new be(l,void 0),m.tail=f,f),p]:[m,(c=new be(l,void 0),p.tail=c,c)]},[o,r],t),s=le();i[0].tail=s;const a=le();return i[1].tail=a,[Ve(o),Ve(r)]}function Pu(e,t){const n=le(),r=Ke((i,s)=>{const a=e(s);if(a==null)return i;{const u=new be(b(a),void 0);return i.tail=u,u}},n,t),o=le();return r.tail=o,Ve(n)}function Ts(e,t,n){return Fu(r=>n.Equals(e,r),t)!=null}function Bu(e,t){const n=Jt(t);return n.sort(e),x(n)}function ju(e,t,n){return Bu((r,o)=>n.Compare(e(r),e(o))*-1,t)}function $u(e){return new h(0,[e])}function Rs(e){return new h(1,[e])}class h extends ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function gt(e,t){return t.tag===0?$u(e(t.fields[0])):Rs(t.fields[0])}function Hu(e,t){return t.tag===0?e(t.fields[0]):Rs(t.fields[0])}class E extends ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Dt extends ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Ms(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Uu(e,t){switch(e.tag){case 2:return uu(Ms(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Ms(t)}}const Vu=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Fs=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Lu=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function zu(e){function t(r){return r.replace(Fs,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Vu.test(n))return _u(n,"{","}","(",")");if(Fs.test(n))return t(n);if(Lu.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 Gu(e,t){try{return t.contents=zu(e),!0}catch{return!1}}var yo;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(yo||(yo={}));function Wu(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function Os(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 Qu(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 qu(e,t){if(t&yo.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 Zu(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||qu(i,t),!Qu(n).test(s))return Wu(o,n)}return null}function Ju(e,t,n,r,o){const i=Zu(e,t,o);if(i!=null){let s=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(s)){const[a,u]=Os(!0,r);!n&&i.radix!==10&&s>=a&&s<=u&&(s=s<<32-r>>32-r);const[l,f]=Os(n,r);if(s>=l&&s<=f)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function Kt(e,t,n,r,o){try{return o.contents=Ju(e,t,n,r),!0}catch{return!1}}function Ns(e,t){Ku(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Ku(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 Xu(){return Ns(-621355968e5,0)}function Yu(e){const[t,n]=hs(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return Ns(t.getTime(),r)}function ef(e,t){try{return t.contents=Yu(e),!0}catch{return!1}}function Ps(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return tf(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 tf(e){return Number(BigInt(e)/10000n)}function nf(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 Ps(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,u=+r[4],l=+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*Ps(o,u,l,s,i)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function rf(e,t){try{return t.contents=nf(e),!0}catch{return!1}}function of(e){throw new Error(e)}const sf="Enumeration already finished.",af="Enumeration has not started. Call MoveNext.",Bs="The input sequence has an insufficient number of elements.",lf="Reset is not supported on this enumerator.";function cf(){throw new Error(lf)}function bo(){throw new Error(af)}function Ao(){throw new Error(sf)}class uf{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=te(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+ie(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{Z(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Zn(te(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function ff(e){return new uf(e)}class df{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"(){cf()}Dispose(){this.dispose()}}function dr(e,t,n){return new df(e,t,n)}function pf(e){let t,n,r=!1,o=!1,i;const s=()=>{if(o=!0,n!=null){const a=b(n);try{Z(a)}finally{n=void 0}}if(t!=null){const a=b(t);try{Z(a)}finally{t=void 0}}};return dr(()=>(r?o&&Ao():bo(),i!=null?b(i):Ao()),()=>{let a;if(r||(r=!0),o)return!1;{let u;for(;u==null;){const l=t,f=n;if(l!=null)if(f!=null){const c=b(f);if(c["System.Collections.IEnumerator.MoveNext"]())i=Me(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),u=!0;else try{Z(c)}finally{n=void 0}}else{const c=b(l);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),te(a)):(s(),u=!1)}else t=te(e)}return b(u)}},()=>{o||s()})}function hf(e,t){return dr(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{Z(t)}finally{}})}function js(e,t,n){let r=!1,o,i=Me(e());const s=()=>{if(i!=null){const u=b(i);try{n(u)}finally{i=void 0}}},a=()=>{try{s()}finally{o=void 0}};return dr(()=>(r||bo(),o!=null?b(o):Ao()),()=>{if(r||(r=!0),i!=null){const u=b(i);let l;try{l=t(u)}catch(f){throw a(),f}return l!=null?(o=l,!0):(a(),!1)}else return!1},s)}function mf(e,t){let n,r=t;return dr(()=>{if(n!=null){const o=b(n)[0];return b(n)[1],o}else return bo()},()=>(n=e(r),n!=null?(b(n)[0],r=b(n)[1],!0):!1),()=>{})}function wf(e,t){t==null&&of(e)}function Xt(e){return ff(e)}function Tt(e){return wf("source",e),te(e)}function M(e){return Xt(()=>te(e()))}function $s(e){return Xt(()=>pf(e))}function gf(e,t){return Xt(()=>mf(e,t))}function pr(){return M(()=>new Array(0))}function R(e){return M(()=>Au(e))}function b0(e){return e}function _f(e){return e instanceof be?Jt(e):Array.from(e)}function Xe(e){return qe(e)?x(e):e instanceof be?e:Du(e)}function yf(e,t,n){return Xt(()=>js(e,t,n))}function bf(e,t,n){return Xt(()=>{let r=-1;return js(e,o=>(r=r+1|0,t(r,o)),n)})}function $(e,t){return $s([e,t])}function Af(e,t,n){const r=Tt(t);try{const o=Tt(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{Z(o)}}finally{Z(r)}}function Yt(e,t,n){const r=Tt(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{Z(r)}}function Hs(e,t,n){const r=Tt(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{Z(r)}}function Us(e,t){Hs((n,r)=>{e(r)},void 0,t)}function Ye(e,t){return yf(()=>Tt(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?Me(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Z(n)})}function vf(e){return M(()=>vu(_f(e)))}function xf(e,t){return Xt(()=>{const n=Tt(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Bs+"\\nParameter name: source");return hf(()=>{},n)}catch(r){throw Z(n),r}})}function Cf(e,t){return bf(()=>Tt(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return Me(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Bs+"\\nParameter name: source")}else return},n=>{Z(n)})}function Mn(e,t){return M(()=>$s(Ye(e,t)))}class Vs{constructor(t,n){this.k=t,this.v=n}}function hr(e,t){return new Vs(e,t)}function Ae(e){return e.k}function Fe(e){return e.v}class oe extends Vs{constructor(t,n,r,o,i){super(t,n),this.left=r,this.right=o,this.h=i|0}}function mr(e,t,n,r,o){return new oe(e,t,n,r,o)}function ve(e){return e.left}function xe(e){return e.right}function Rt(e){return e.h}function A0(){}function Ls(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=b(r);if(o instanceof oe){const i=o;e=Ls(n+1,ve(i)),t=xe(i);continue e}else return n+1|0}else return n|0}}function Sf(e){return Ls(0,e)}function et(e,t,n,r){let o,i,s;const a=e;if(a!=null){const c=b(a);s=c instanceof oe?(o=c,Rt(o)):1}else s=0;let u;const l=r;if(l!=null){const c=b(l);u=c instanceof oe?(i=c,Rt(i)):1}else u=0;const f=(s<u?u:s)|0;return f===0?hr(t,n):mr(t,n,e,r,f+1)}function zs(e,t,n,r){let o,i,s,a,u,l,f,c,m;const p=e;if(p!=null){const g=b(p);m=g instanceof oe?(o=g,Rt(o)):1}else m=0;let w;const _=r;if(_!=null){const g=b(_);w=g instanceof oe?(i=g,Rt(i)):1}else w=0;if(w>m+2){const g=b(r);if(g instanceof oe){const y=g;if(s=ve(y),(s!=null?(a=b(s),a instanceof oe?(u=a,Rt(u)):1):0)>m+1){const S=b(ve(y));if(S instanceof oe){const T=S;return et(et(e,t,n,ve(T)),Ae(T),Fe(T),et(xe(T),Ae(y),Fe(y),xe(y)))}else throw new Error("internal error: Map.rebalance")}else return et(et(e,t,n,ve(y)),Ae(y),Fe(y),xe(y))}else throw new Error("internal error: Map.rebalance")}else if(m>w+2){const g=b(e);if(g instanceof oe){const y=g;if(l=xe(y),(l!=null?(f=b(l),f instanceof oe?(c=f,Rt(c)):1):0)>w+1){const S=b(xe(y));if(S instanceof oe){const T=S;return et(et(ve(y),Ae(y),Fe(y),ve(T)),Ae(T),Fe(T),et(xe(T),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return et(ve(y),Ae(y),Fe(y),et(xe(y),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return et(e,t,n,r)}function en(e,t,n,r){if(r!=null){const o=b(r),i=e.Compare(t,Ae(o))|0;if(o instanceof oe){const s=o;return i<0?zs(en(e,t,n,ve(s)),Ae(s),Fe(s),xe(s)):i===0?mr(t,n,ve(s),xe(s),Rt(s)):zs(ve(s),Ae(s),Fe(s),en(e,t,n,xe(s)))}else return i<0?mr(t,n,void 0,r,2):i===0?hr(t,n):mr(t,n,r,void 0,2)}else return hr(t,n)}function Gs(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=b(i),a=r.Compare(o,Ae(s))|0;if(a===0)return Me(Fe(s));if(s instanceof oe){const u=s;e=r,t=o,n=a<0?ve(u):xe(u);continue e}else return}else return}}function Ef(e,t,n){const r=Gs(e,t,n);if(r==null)throw new Error;return b(r)}function kf(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=b(i),a=r.Compare(o,Ae(s))|0;if(s instanceof oe){const u=s;if(a<0){e=r,t=o,n=ve(u);continue e}else{if(a===0)return!0;e=r,t=o,n=xe(u);continue e}}else return a===0}else return!1}}function Ws(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=b(r);if(o instanceof oe){const i=o;Ws(n,ve(i)),n(Ae(i),Fe(i)),e=n,t=xe(i);continue e}else n(Ae(o),Fe(o))}break}}function If(e,t){Ws(e,t)}function Df(e,t,n){let r=n;If((o,i)=>{vt(t,r,[o,i]),r=r+1|0},e)}function Tf(e,t){return Ke((n,r)=>en(e,r[0],r[1],n),void 0,t)}function Rf(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=en(r,s[0],s[1],o),n=i;continue e}else return o}}function Mf(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=de(r,t);n=en(e,o[0],o[1],n)}return n}function Qs(e,t){if(qe(t))return Mf(e,t);if(t instanceof be)return Tf(e,t);{const n=te(t);try{return Rf(e,void 0,n)}finally{Z(n)}}}class Ff extends Q{constructor(t,n){super(),this.stack=t,this.started=n}}function qs(e){e:for(;;){const t=e;if(P(t))return pe();{const n=N(t),r=k(t);if(r!=null){const o=b(r);if(o instanceof oe){const i=o;e=X([ve(i),hr(Ae(i),Fe(i)),xe(i)],n);continue e}else return t}else{e=n;continue e}}}}function Zs(e){return new Ff(qs(q(e)),!1)}function Of(){throw new Error("enumeration not started")}function Nf(){throw new Error("enumeration already finished")}function Js(e){if(e.started){const t=e.stack;if(P(t))return Nf();if(k(t)!=null){const n=b(k(t));if(n instanceof oe)throw new Error("Please report error: Map iterator, unexpected stack for current");return[Ae(n),Fe(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Of()}function Pf(e){if(e.started){const t=e.stack;if(P(t))return!1;if(k(t)!=null){if(b(k(t))instanceof oe)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=qs(N(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 Ks(e){let t=Zs(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Js(t)},"System.Collections.IEnumerator.get_Current"(){return Js(t)},"System.Collections.IEnumerator.MoveNext"(){return Pf(t)},"System.Collections.IEnumerator.Reset"(){t=Zs(e)},Dispose(){}}}class wr{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Hf(this)|0}Equals(t){const n=this;if(t instanceof wr){const r=t,o=te(n);try{const i=te(r);try{const s=()=>{const a=o["System.Collections.IEnumerator.MoveNext"]();if(a===i["System.Collections.IEnumerator.MoveNext"]())if(a){const u=o["System.Collections.Generic.IEnumerator`1.get_Current"](),l=i["System.Collections.Generic.IEnumerator`1.get_Current"]();return Ee(u[0],l[0])&&Ee(u[1],l[1])?s():!1}else return!0;else return!1};return s()}finally{Z(i)}}finally{Z(o)}}else return!1}toString(){return"map ["+Re("; ",Ye(n=>mu("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Ks(this.tree)}[Symbol.iterator](){return Zn(te(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Ks(this.tree)}CompareTo(t){const n=this;if(t instanceof wr)return Af((o,i)=>{const s=n.comparer.Compare(o[0],i[0])|0;return(s!==0?s:je(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 Ys(n,t[0])&&Ee(Xs(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Df(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return vo(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return vo(this)|0}get size(){return vo(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Ye(n=>[n[0],n[1]],this)}get(t){return Xs(this,t)}has(t){return Ys(this,t)}keys(){return Ye(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Ye(n=>n[1],this)}forEach(t,n){const r=this;Us(o=>{t(o[1],o[0],r)},r)}}function gr(e,t){return new wr(e,t)}function Bf(e){return gr(e,void 0)}function jf(e,t,n){return gr(e.comparer,en(e.comparer,t,n,e.tree))}function Xs(e,t){return Ef(e.comparer,t,e.tree)}function vo(e){return Sf(e.tree)}function Ys(e,t){return kf(e.comparer,t,e.tree)}function $f(e,t){return Gs(e.comparer,t,e.tree)}function Hf(e){const t=(o,i)=>(o<<1)+i+631;let n=0;const r=te(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,pt(o[0]))|0,n=t(n,pt(o[1]))|0}}finally{Z(r)}return n|0}function Uf(e,t,n){return jf(n,e,t)}function Vf(e,t){return $f(t,e)}function Lf(e,t){return gr(t,Qs(t,e))}function zf(e,t){return gr(t,Qs(t,e))}function ea(e){return Bf(e)}class ta{constructor(t){this.k=t}}function Oe(e){return new ta(e)}function F(e){return e.k}class B extends ta{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function Ne(e,t,n,r){return new B(e,t,n,r)}function G(e){return e.left}function V(e){return e.right}function tn(e){return e.h}function v0(){}function na(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=b(n);if(o instanceof B){const i=o;e=G(i),t=na(V(i),r+1);continue e}else return r+1|0}else return r|0}}function Gf(e){return na(e,0)}function tt(e,t,n){let r,o,i;const s=e;if(s!=null){const f=b(s);i=f instanceof B?(r=f,tn(r)):1}else i=0;let a;const u=n;if(u!=null){const f=b(u);a=f instanceof B?(o=f,tn(o)):1}else a=0;const l=(i<a?a:i)|0;return l===0?Oe(t):Ne(t,e,n,l+1)}function ra(e,t,n){let r,o,i,s,a,u,l,f,c;const m=e;if(m!=null){const _=b(m);c=_ instanceof B?(r=_,tn(r)):1}else c=0;let p;const w=n;if(w!=null){const _=b(w);p=_ instanceof B?(o=_,tn(o)):1}else p=0;if(p>c+2){const _=b(n);if(_ instanceof B){const g=_;if(i=G(g),(i!=null?(s=b(i),s instanceof B?(a=s,tn(a)):1):0)>c+1){const y=b(G(g));if(y instanceof B){const S=y;return tt(tt(e,t,G(S)),F(S),tt(V(S),F(g),V(g)))}else throw new Error("internal error: Set.rebalance")}else return tt(tt(e,t,G(g)),F(g),V(g))}else throw new Error("internal error: Set.rebalance")}else if(c>p+2){const _=b(e);if(_ instanceof B){const g=_;if(u=V(g),(u!=null?(l=b(u),l instanceof B?(f=l,tn(f)):1):0)>p+1){const y=b(V(g));if(y instanceof B){const S=y;return tt(tt(G(g),F(g),G(S)),F(S),tt(V(S),t,n))}else throw new Error("internal error: Set.rebalance")}else return tt(G(g),F(g),tt(V(g),t,n))}else throw new Error("internal error: Set.rebalance")}else return tt(e,t,n)}function nn(e,t,n){if(n!=null){const r=b(n),o=e.Compare(t,F(r))|0;if(r instanceof B){const i=r;return o<0?ra(nn(e,t,G(i)),F(i),V(i)):o===0?n:ra(G(i),F(i),nn(e,t,V(i)))}else{const i=e.Compare(t,F(r))|0;return i<0?Ne(t,void 0,n,2):i===0?n:Ne(t,n,void 0,2)}}else return Oe(t)}function oa(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=b(i),a=r.Compare(o,F(s))|0;if(s instanceof B){const u=s;if(a<0){e=r,t=o,n=G(u);continue e}else{if(a===0)return!0;e=r,t=o,n=V(u);continue e}}else return a===0}else return!1}}function ia(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=b(r);if(o instanceof B){const i=o;ia(n,G(i)),n(F(i)),e=n,t=V(i);continue e}else n(F(o))}break}}class Wf extends Q{constructor(t,n){super(),this.stack=t,this.started=n}}function sa(e){e:for(;;){const t=e;if(P(t))return pe();{const n=k(t),r=N(t);if(n!=null){const o=b(n);if(o instanceof B){const i=o;e=X([G(i),Oe(F(i)),V(i)],r);continue e}else return t}else{e=r;continue e}}}}function aa(e){return new Wf(sa(q(e)),!1)}function Qf(){throw new Error("Enumeration not started")}function qf(){throw new Error("Enumeration already started")}function la(e){if(e.started){const t=e.stack;if(P(t))return qf();if(k(t)!=null){const n=b(k(t));return F(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Qf()}function Zf(e){if(e.started){const t=e.stack;if(P(t))return!1;if(k(t)!=null){if(b(k(t))instanceof B)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=sa(N(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 ca(e){let t=aa(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return la(t)},"System.Collections.IEnumerator.get_Current"(){return la(t)},"System.Collections.IEnumerator.MoveNext"(){return Zf(t)},"System.Collections.IEnumerator.Reset"(){t=aa(e)},Dispose(){}}}function Jf(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=b(k(o)),a=b(k(i));if(s instanceof B){const u=s;if(G(u)==null)if(a instanceof B){const l=a;if(G(l)==null){const f=r.Compare(F(u),F(l))|0;if(f!==0)return f|0;e=r,t=Le(V(u),N(o)),n=Le(V(l),N(i));continue e}else{let f,c,m,p,w;switch(P(o)?P(i)?f=2:k(i)!=null?(f=1,p=N(i),w=b(k(i))):f=2:k(o)!=null?(f=0,c=N(o),m=b(k(o))):P(i)?f=2:k(i)!=null?(f=1,p=N(i),w=b(k(i))):f=2,f){case 0:if(m instanceof B){const _=m;e=r,t=X([G(_),Ne(F(_),void 0,V(_),0)],c),n=i;continue e}else{e=r,t=X([void 0,Oe(F(m))],c),n=i;continue e}case 1:if(w instanceof B){const _=w;e=r,t=o,n=X([G(_),Ne(F(_),void 0,V(_),0)],p);continue e}else{e=r,t=o,n=X([void 0,Oe(F(w))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(F(u),F(a))|0;if(l!==0)return l|0;e=r,t=Le(V(u),N(o)),n=Le(void 0,N(i));continue e}else{let l,f,c,m,p;switch(P(o)?P(i)?l=2:k(i)!=null?(l=1,m=N(i),p=b(k(i))):l=2:k(o)!=null?(l=0,f=N(o),c=b(k(o))):P(i)?l=2:k(i)!=null?(l=1,m=N(i),p=b(k(i))):l=2,l){case 0:if(c instanceof B){const w=c;e=r,t=X([G(w),Ne(F(w),void 0,V(w),0)],f),n=i;continue e}else{e=r,t=X([void 0,Oe(F(c))],f),n=i;continue e}case 1:if(p instanceof B){const w=p;e=r,t=o,n=X([G(w),Ne(F(w),void 0,V(w),0)],m);continue e}else{e=r,t=o,n=X([void 0,Oe(F(p))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof B){const u=a;if(G(u)==null){const l=r.Compare(F(s),F(u))|0;if(l!==0)return l|0;e=r,t=Le(void 0,N(o)),n=Le(V(u),N(i));continue e}else{let l,f,c,m,p;switch(P(o)?P(i)?l=2:k(i)!=null?(l=1,m=N(i),p=b(k(i))):l=2:k(o)!=null?(l=0,f=N(o),c=b(k(o))):P(i)?l=2:k(i)!=null?(l=1,m=N(i),p=b(k(i))):l=2,l){case 0:if(c instanceof B){const w=c;e=r,t=X([G(w),Ne(F(w),void 0,V(w),0)],f),n=i;continue e}else{e=r,t=X([void 0,Oe(F(c))],f),n=i;continue e}case 1:if(p instanceof B){const w=p;e=r,t=o,n=X([G(w),Ne(F(w),void 0,V(w),0)],m);continue e}else{e=r,t=o,n=X([void 0,Oe(F(p))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(F(s),F(a))|0;if(u!==0)return u|0;e=r,t=N(o),n=N(i);continue e}}else{b(k(i));let s,a,u,l,f;switch(P(o)?P(i)?s=2:k(i)!=null?(s=1,l=N(i),f=b(k(i))):s=2:k(o)!=null?(s=0,a=N(o),u=b(k(o))):P(i)?s=2:k(i)!=null?(s=1,l=N(i),f=b(k(i))):s=2,s){case 0:if(u instanceof B){const c=u;e=r,t=X([G(c),Ne(F(c),void 0,V(c),0)],a),n=i;continue e}else{e=r,t=X([void 0,Oe(F(u))],a),n=i;continue e}case 1:if(f instanceof B){const c=f;e=r,t=o,n=X([G(c),Ne(F(c),void 0,V(c),0)],l);continue e}else{e=r,t=o,n=X([void 0,Oe(F(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(k(o)!=null){b(k(o));let s,a,u,l,f;switch(P(o)?P(i)?s=2:k(i)!=null?(s=1,l=N(i),f=b(k(i))):s=2:k(o)!=null?(s=0,a=N(o),u=b(k(o))):P(i)?s=2:k(i)!=null?(s=1,l=N(i),f=b(k(i))):s=2,s){case 0:if(u instanceof B){const c=u;e=r,t=X([G(c),Ne(F(c),void 0,V(c),0)],a),n=i;continue e}else{e=r,t=X([void 0,Oe(F(u))],a),n=i;continue e}case 1:if(f instanceof B){const c=f;e=r,t=o,n=X([G(c),Ne(F(c),void 0,V(c),0)],l);continue e}else{e=r,t=o,n=X([void 0,Oe(F(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=N(o),n=N(i);continue e}}}function ua(e,t,n){return t==null?n==null?0:-1:n==null?1:Jf(e,q(t),q(n))|0}function Kf(e,t,n){let r=n;ia(o=>{vt(t,r,o),r=r+1|0},e)}function Xf(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=nn(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i;continue e}else return o}}function Yf(e,t){return ur((n,r)=>nn(e,r,n),void 0,t)}function ed(e,t){return Ke((n,r)=>nn(e,r,n),void 0,t)}function fa(e,t){if(qe(t))return Yf(e,t);if(t instanceof be)return ed(e,t);{const n=te(t);try{return Xf(e,void 0,n)}finally{Z(n)}}}class xo{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return rd(this)|0}Equals(t){let n;const r=this;return t instanceof xo&&(n=t,ua(rn(r),nt(r),nt(n))===0)}toString(){return"set ["+Re("; ",Ye(n=>ie(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return ua(rn(n),nt(n),nt(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 oa(rn(n),t,nt(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Kf(nt(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Co(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Co(this)|0}GetEnumerator(){return ca(nt(this))}[Symbol.iterator](){return Zn(te(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ca(nt(this))}get size(){return Co(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 da(this,t)}keys(){return Ye(n=>n,this)}values(){return Ye(n=>n,this)}entries(){return Ye(n=>[n,n],this)}forEach(t,n){const r=this;Us(o=>{t(o,o,r)},r)}}function _r(e,t){return new xo(e,t)}function rn(e){return e.comparer}function nt(e){return e.tree}function td(e){return _r(e,void 0)}function nd(e,t){return _r(rn(e),nn(rn(e),t,nt(e)))}function Co(e){return Gf(nt(e))}function da(e,t){return oa(rn(e),t,nt(e))}function rd(e){let t=0;const n=te(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+pt(r)+631|0}}finally{Z(n)}return Math.abs(t)|0}function So(e,t){return da(t,e)}function od(e,t){return nd(t,e)}function id(e){return td(e)}function sd(e,t){return _r(t,fa(t,e))}function ad(e,t){return _r(t,fa(t,e))}function Fn(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
|
-
`:" ")}}function
|
|
7
|
-
Reason: `+t.fields[2]:t.tag===3?
|
|
6
|
+
`:" ")}}function ld(e,t){const n=t.tag===2?Fn(t.fields[0],t.fields[1],!0):t.tag===1?Fn(t.fields[0],t.fields[1],!1)+`
|
|
7
|
+
Reason: `+t.fields[2]:t.tag===3?Fn(t.fields[0],t.fields[1],!0):t.tag===4?Fn(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
|
|
8
8
|
`+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
|
|
9
9
|
|
|
10
|
-
`+
|
|
10
|
+
`+Re(`
|
|
11
11
|
|
|
12
|
-
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:
|
|
12
|
+
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Fn(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function pa(e,t,n){const r=t(e,n);if(r.tag===1){const o=r.fields[0];return new h(1,[ld(o[0],o[1])])}else return new h(0,[r.fields[0]])}function on(e,t){try{return pa("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new h(1,["Given an invalid JSON: "+n.message]);throw n}}function ha(e,t){return typeof t=="string"?new h(0,[t]):new h(1,[[e,new E(0,["a string",t])]])}function cd(e,t){if(typeof t=="string"){const n=t;return n.length===1?new h(0,[n[0]]):new h(1,[[e,new E(0,["a single character string",t])]])}else return new h(1,[[e,new E(0,["a char",t])]])}function ud(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Gu(t,new Je(()=>r,o=>{r=o})),r],n[0]?new h(0,[n[1]]):new h(1,[[e,new E(0,["a guid",t])]])}else return new h(1,[[e,new E(0,["a guid",t])]])}function fd(e,t){return t==null?new h(0,[void 0]):new h(1,[[e,new E(0,["null",t])]])}const ma=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 h(0,[(o+128&255)-128]):new h(1,[[n,new E(1,["a sbyte",o,"Value was either too large or too small for a sbyte"])]]):new h(1,[[n,new E(1,["a sbyte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[Kt(r,511,!1,8,new Je(()=>i,s=>{i=s|0})),i],o[0]?new h(0,[o[1]]):new h(1,[[n,new E(0,["a sbyte",r])]])}else return new h(1,[[n,new E(0,["a sbyte",r])]])},wa=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 h(0,[o&255]):new h(1,[[n,new E(1,["a byte",o,"Value was either too large or too small for a byte"])]]):new h(1,[[n,new E(1,["a byte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[Kt(r,511,!0,8,new Je(()=>i,s=>{i=s})),i],o[0]?new h(0,[o[1]]):new h(1,[[n,new E(0,["a byte",r])]])}else return new h(1,[[n,new E(0,["a byte",r])]])},ga=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 h(0,[(o+32768&65535)-32768]):new h(1,[[n,new E(1,["an int16",o,"Value was either too large or too small for an int16"])]]):new h(1,[[n,new E(1,["an int16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[Kt(r,511,!1,16,new Je(()=>i,s=>{i=s|0})),i],o[0]?new h(0,[o[1]]):new h(1,[[n,new E(0,["an int16",r])]])}else return new h(1,[[n,new E(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 h(0,[o&65535]):new h(1,[[n,new E(1,["an uint16",o,"Value was either too large or too small for an uint16"])]]):new h(1,[[n,new E(1,["an uint16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[Kt(r,511,!0,16,new Je(()=>i,s=>{i=s})),i],o[0]?new h(0,[o[1]]):new h(1,[[n,new E(0,["an uint16",r])]])}else return new h(1,[[n,new E(0,["an uint16",r])]])},ya=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 h(0,[~~o]):new h(1,[[n,new E(1,["an int",o,"Value was either too large or too small for an int"])]]):new h(1,[[n,new E(1,["an int",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[Kt(r,511,!1,32,new Je(()=>i,s=>{i=s|0})),i],o[0]?new h(0,[o[1]]):new h(1,[[n,new E(0,["an int",r])]])}else return new h(1,[[n,new E(0,["an int",r])]])},ba=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 h(0,[o>>>0]):new h(1,[[n,new E(1,["an uint32",o,"Value was either too large or too small for an uint32"])]]):new h(1,[[n,new E(1,["an uint32",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[Kt(r,511,!0,32,new Je(()=>i,s=>{i=s})),i],o[0]?new h(0,[o[1]]):new h(1,[[n,new E(0,["an uint32",r])]])}else return new h(1,[[n,new E(0,["an uint32",r])]])};function dd(e,t){return typeof t=="boolean"?new h(0,[t]):new h(1,[[e,new E(0,["a boolean",t])]])}function pd(e,t){return typeof t=="number"?new h(0,[t]):new h(1,[[e,new E(0,["a float",t])]])}function hd(e,t){return typeof t=="number"?new h(0,[t]):new h(1,[[e,new E(0,["a float32",t])]])}function md(e,t){if(typeof t=="string"){let n,r=ru();return n=[iu(t,new Je(()=>r,o=>{r=o})),r],n[0]?new h(0,[su(n[1])]):new h(1,[[e,new E(0,["a datetime",t])]])}else return new h(1,[[e,new E(0,["a datetime",t])]])}function wd(e,t){if(typeof t=="string"){let n,r=Xu();return n=[ef(t,new Je(()=>r,o=>{r=o})),r],n[0]?new h(0,[n[1]]):new h(1,[[e,new E(0,["a datetimeoffset",t])]])}else return new h(1,[[e,new E(0,["a datetime",t])]])}function gd(e,t){if(typeof t=="string"){let n,r=0;return n=[rf(t,new Je(()=>r,o=>{r=o})),r],n[0]?new h(0,[n[1]]):new h(1,[[e,new E(0,["a timespan",t])]])}else return new h(1,[[e,new E(0,["a timespan",t])]])}function Aa(e,t,n,r){let o;const i=n+".["+ot(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(i,de(e,s)):new h(1,[[i,new E(5,["a longer array. Need index `"+ot(e)+"` but there are only `"+(o=s.length,ot(o))+"` entries",r])]])}else return new h(1,[[i,new E(0,["an array",r])]])}function _d(e,t,n){return n==null?new h(0,[void 0]):gt(Me,e(t,n))}function va(e,t,n){if(Array.isArray(n)){let r=-1;return gt(_o,ur((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+ot(r)+"]",i);return s.tag===0?new h(0,[Le(s.fields[0],o.fields[0])]):new h(1,[s.fields[0]])}else return o},new h(0,[pe()]),n))}else return new h(1,[[t,new E(0,["a list",n])]])}function yd(e,t,n){if(Array.isArray(n)){let r=-1;return gt(vf,ur((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+ot(r)+"]",i);return s.tag===0?new h(0,[$([s.fields[0]],o.fields[0])]):new h(1,[s.fields[0]])}else return o},new h(0,[[]]),n))}else return new h(1,[[t,new E(0,["a seq",n])]])}function xa(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return ur((i,s)=>{if(r=r+1|0,i.tag===0){const a=i.fields[0],u=e(t+".["+ot(r)+"]",s);return u.tag===0?(vt(a,r,u.fields[0]),new h(0,[a])):new h(1,[u.fields[0]])}else return i},new h(0,[go(new Array(o.length),0,o.length,null)]),o)}else return new h(1,[[t,new E(0,["an array",n])]])}function bd(e,t,n){return((o,i)=>{e:for(;;){const s=o,a=i;if(P(s))return new h(1,[[t,new E(7,[a])]]);{const u=pa(t,z(k(s)),n);if(u.tag===1){o=N(s),i=Rn(a,q(u.fields[0]));continue e}else return new h(0,[u.fields[0]])}}})(e,pe())}function Ad(e,t,n){return new h(0,[e])}function Ca(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new h(1,[o.fields[0]])}function vd(e,t,n,r){const o=t(n,r);return o.tag===1?new h(1,[o.fields[0]]):new h(0,[e(o.fields[0])])}function xd(e,t){let n;const r=e;return n=o=>i=>Aa(0,r,o,i),o=>i=>Ca(ao(s=>{let a;const u=t;return a=l=>f=>Aa(1,u,l,f),l=>f=>Ca((c,m,p)=>Ad([s,c]),z(a),l,f)}),z(n),o,i)}function Cd(e){return Lf(e,{Compare:je})}function Sd(e){return ad(e,{Compare:je})}function Ed(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?Is((r,o)=>{const i=r[0];return o.tag===0?gt(s=>Le(s,o.fields[0]),r[1](t+"."+i)(n[i])):o},e,new h(0,[pe()])):new h(1,[[t,new E(0,["an object",n])]])}function kd(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Hs((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 h(0,[Le([s.fields[0],a.fields[0]],o.fields[0])]):new h(1,[a.fields[0]])}else return new h(1,[s.fields[0]])}else return o},new h(0,[pe()]),Object.keys(r)):new h(1,[[n,new E(0,["an object",r])]])}function Sa(e,t,n,r){let o;const i=t.length+e|0;if(i!==r.length)return new h(1,[[n,new E(6,[(o=r.length|0,Ue(Te("Expected array of length %i but got %i"))(i)(o))])]]);{let s=new h(0,[pe()]);for(let a=e;a<=r.length-1;a++)if(s.tag===0){const u=s.fields[0],l=Ue(Te("%s[%i]"))(n)(a),f=de(a-e,t),c=de(a,r);s=gt(m=>Le(m,u),f(l)(c))}return gt(_o,s)}}function Ea(e,t,n,r,o,i){const s=xu(a=>fo(a)===r,Hc(n));if(s!=null){const a=s,u=wt(l=>rt(e,t,!1,l[1]),zc(a));return gt(l=>Gc(a,Jt(l)),u.length===0&&i.length<=1?new h(0,[pe()]):Sa(1,u,o,i))}else return new h(1,[[o,new E(6,["Cannot find case "+r+" in "+fe(n)])]])}function ka(e,t,n,r){let o;const i=new Je(At());let s;const a=fe(r);s=a===""?e:Uf(a,i,e);let u;if(Lc(r)){const l=wt(f=>[Uu(t,fo(f)),rt(s,t,!1,f[1])],ir(r));u=f=>c=>gt(m=>Wc(r,Jt(m)),Ed(l,f,c))}else if(Vc(r))u=l=>f=>{if(typeof f=="string")return Ea(s,t,r,f,l,[]);if(Array.isArray(f)){const c=f;return Hu(m=>Ea(s,t,r,m,l,c),ha(l+"[0]",de(0,c)))}else return new h(1,[[l,new E(0,["a string or array",f])]])};else if(n)u=l=>f=>new h(1,[[l,new E(2,["an extra coder for "+fe(r),f])]]);else throw new Error((o=fe(r),Ue(Te(`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=u,u}function
|
|
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=u,u}function rt(e,t,n,r){let o,i,s,a;const u=fe(r),l=Vf(u,e);if(l==null)if(Nc(r)){const f=rt(e,t,!1,or(r));return c=>m=>xa(z(f),c,m)}else if(cs(r))switch(fe(jc(r))){case"System.SByte":return c=>m=>{const p=r,w=c,_=m,g=ma(w)(_);if(g.tag===1)return new h(1,[g.fields[0]]);{const y=g.fields[0]|0;return Yt(y,Wt(p),{Equals:(S,T)=>S===T,GetHashCode:Ze})?new h(0,[Qt(p,y.toString())]):new h(1,[[w,new E(1,[fe(p),_,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>m=>{const p=r,w=c,_=m,g=wa(w)(_);if(g.tag===1)return new h(1,[g.fields[0]]);{const y=g.fields[0];return Yt(y,Wt(p),{Equals:(S,T)=>S===T,GetHashCode:Ze})?new h(0,[Qt(p,y.toString())]):new h(1,[[w,new E(1,[fe(p),_,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>m=>{const p=r,w=c,_=m,g=ga(w)(_);if(g.tag===1)return new h(1,[g.fields[0]]);{const y=g.fields[0]|0;return Yt(y,Wt(p),{Equals:(S,T)=>S===T,GetHashCode:Ze})?new h(0,[Qt(p,fc(y))]):new h(1,[[w,new E(1,[fe(p),_,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>m=>{const p=r,w=c,_=m,g=_a(w)(_);if(g.tag===1)return new h(1,[g.fields[0]]);{const y=g.fields[0];return Yt(y,Wt(p),{Equals:(S,T)=>S===T,GetHashCode:Ze})?new h(0,[Qt(p,y.toString())]):new h(1,[[w,new E(1,[fe(p),_,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>m=>{const p=r,w=c,_=m,g=ya(w)(_);if(g.tag===1)return new h(1,[g.fields[0]]);{const y=g.fields[0]|0;return Yt(y,Wt(p),{Equals:(S,T)=>S===T,GetHashCode:Ze})?new h(0,[Qt(p,ot(y))]):new h(1,[[w,new E(1,[fe(p),_,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>m=>{const p=r,w=c,_=m,g=ba(w)(_);if(g.tag===1)return new h(1,[g.fields[0]]);{const y=g.fields[0];return Yt(y,Wt(p),{Equals:(S,T)=>S===T,GetHashCode:Ze})?new h(0,[Qt(p,y.toString())]):new h(1,[[w,new E(1,[fe(p),_,"Unkown value provided for the enum"])]])}};default:{const c=fe(r),m=du(Te(`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
|
-
`))(c);return d=>m(d)}}else if(Nc(r))if(ls(r)){const f=pt(c=>Ke(e,t,!1,c),Vc(r));return c=>m=>Array.isArray(m)?ht(d=>Wc(vn(d)),Ca(0,f,c,m)):new h(1,[[c,new x(0,["an array",m])]])}else switch(se(Bc(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=Ke(e,t,!0,ae(0,ft(r))),c=>m=>pd(V(o),c,m);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return i=Ke(e,t,!1,ae(0,ft(r))),c=>m=>va(V(i),c,m);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=Ke(e,t,!1,ae(0,ft(r))),c=>m=>hd(V(s),c,m);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=Ke(e,t,!1,ae(0,ft(r))),m=Ke(e,t,!1,ae(1,ft(r)));let d;const g=C([_=>w=>vd(V(c),V(m),_,w),(a=_d(V(c),V(m)),_=>w=>va(V(a),_,w))]);return d=_=>w=>md(g,_,w),_=>w=>wd(yd,V(d),_,w)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=Ke(e,t,!1,ae(0,ft(r)));return m=>d=>{const g=xa(V(c),m,d);return g.tag===0?new h(0,[bd(g.fields[0])]):new h(1,[g.fields[0]])}}default:return ka(e,t,n,r)}else switch(u){case"System.Boolean":return f=>c=>ad(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>sd(f,c);case"System.String":return f=>c=>ha(f,c);case"System.Char":return f=>c=>od(f,c);case"System.SByte":return ma;case"System.Byte":return ga;case"System.Int16":return wa;case"System.UInt16":return _a;case"System.Int32":return ya;case"System.UInt32":return ba;case"System.Double":return f=>c=>ld(f,c);case"System.Single":return f=>c=>cd(f,c);case"System.DateTime":return f=>c=>ud(f,c);case"System.DateTimeOffset":return f=>c=>fd(f,c);case"System.TimeSpan":return f=>c=>dd(f,c);case"System.Guid":return f=>c=>id(f,c);case"System.Object":return f=>c=>new h(0,[c]);default:return ka(e,t,n,r)}else{const f=l;return c=>m=>f.contents(c)(m)}}function xd(e){return ea({Compare:eo})}function Kt(e,t,n){const r=vs(t,new Et(0,[]));return Ke(xd(),r,!1,e)}class Ao extends q{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AccessRole"]}}function Sd(e){return new Ao(e)}const Cd=new Ao("Import.RunInvites"),Ed=new Ao("Import.RunImports");class kd extends G{constructor(t,n){super(),this.UserName=t,this.Roles=n}}function Dd(e){return Is(Cd,e.Roles,{Equals:Ae,GetHashCode:ts})}function Da(e){return Is(Ed,e.Roles,{Equals:Ae,GetHashCode:ts})}function Id(e){let t;const n=co(e??"",["."],void 0,0);if(!Su((r,o)=>r===o,n)&&n.length===3){const r=ae(1,n),o=atob(r);t=Zt(V(Kt(oo(["Name",ee],["Roles",Mc(ee)]),new Et(1,[]))),o)}else t=new h(1,["Failed to identify the user"]);if(t.tag!==1){const r=t.fields[0];return new kd(r.Name,C(pt(Sd,r.Roles)))}}class Td extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Profiles","Tax"]}}function vo(){return wn("Import.Domain.AdminApi.Read.ImportStageDto",[],Td,()=>[[],[]])}class Rd extends G{constructor(t,n){super(),this.RowId=t|0,this.Reason=n}}function Md(){return Fe("Import.Domain.AdminApi.Read.FailedRowInfoDto",[],Rd,()=>[["RowId",te],["Reason",ee]])}class Fd extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Invite","RevokeInvite"]}}function Od(){return wn("Import.Domain.AdminApi.Read.BenefitsRequestTypeDto",[],Fd,()=>[[],[]])}class Pd extends G{constructor(t,n,r,o){super(),this.User=t,this.ProfileCount=n|0,this.RequestType=r,this.RequestedAt=o}}function Nd(){return Fe("Import.Domain.AdminApi.Read.BenefitsRequestInfoDto",[],Pd,()=>[["User",ee],["ProfileCount",te],["RequestType",Od()],["RequestedAt",dt("System.DateTime")]])}class Bd extends G{constructor(t,n,r,o,i,s){super(),this.Stage=t,this.InputRowCount=n|0,this.StartTime=r,this.SucceededRowCount=o,this.FailedRowCount=i,this.RemainingRowCount=s}}function jd(){return Fe("Import.Domain.AdminApi.Read.RunningStageDto",[],Bd,()=>[["Stage",vo()],["InputRowCount",te],["StartTime",dt("System.DateTime")],["SucceededRowCount",jt(te)],["FailedRowCount",jt(te)],["RemainingRowCount",jt(te)]])}class Hd extends G{constructor(t,n,r,o,i,s){super(),this.Stage=t,this.InputRowCount=n|0,this.SucceededRowCount=r|0,this.FailedRowCount=o|0,this.StartTime=i,this.StopTime=s}}function Ia(){return Fe("Import.Domain.AdminApi.Read.CompletedStageDto",[],Hd,()=>[["Stage",vo()],["InputRowCount",te],["SucceededRowCount",te],["FailedRowCount",te],["StartTime",dt("System.DateTime")],["StopTime",dt("System.DateTime")]])}class $d extends G{constructor(t,n,r,o,i,s,a){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.CurrentStage=i,this.CompletedStages=s,this.StartTime=a}}function Ta(){return Fe("Import.Domain.AdminApi.Read.ActiveImportDto",[],$d,()=>[["ImportId",te],["User",ee],["Filename",ee],["NumberOfRecords",te],["CurrentStage",jt(jd())],["CompletedStages",et(Ia())],["StartTime",dt("System.DateTime")]])}class Vd extends G{constructor(t,n,r,o,i,s,a,u){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.CompletedStages=i,this.BenefitsRequests=s,this.StartTime=a,this.StopTime=u}}function Ra(){return Fe("Import.Domain.AdminApi.Read.PastImportDto",[],Vd,()=>[["ImportId",te],["User",ee],["Filename",ee],["NumberOfRecords",te],["CompletedStages",et(Ia())],["BenefitsRequests",et(Nd())],["StartTime",dt("System.DateTime")],["StopTime",dt("System.DateTime")]])}class Ma extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Active","Complete"]}}function Ud(){return wn("Import.Domain.AdminApi.Read.ImportStatusDto",[],Ma,()=>[[["Item",Ta()]],[["Item",Ra()]]])}class Ld extends G{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function zd(){return Fe("Import.Domain.AdminApi.Read.AccountImportsDto",[],Ld,()=>[["ActiveImport",jt(Ta())],["ImportHistory",et(Ra())]])}class Gd extends G{constructor(t,n){super(),this.Column=t,this.Message=n}}function Qd(){return Fe("Import.Domain.AdminApi.Read.FieldError",[],Gd,()=>[["Column",ee],["Message",ee]])}class Wd extends G{constructor(t,n){super(),this.RowId=t|0,this.FieldErrors=n}}function Jd(){return Fe("Import.Domain.AdminApi.Read.RowValidationError",[],Wd,()=>[["RowId",te],["FieldErrors",et(Qd())]])}class qd extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InvalidFileContentType","InvalidImportStages","InvalidImportStage","StageNotCompleted","InvalidFileName","ExceedsMaxRows","FileFormatError","NoData","NoFile","MultipleFiles","RowValidationErrors","UnknownAccount","ImportInProgress","BadInternalRequestPayload","DuplicateRowId","InternalApiDeserializationError","InternalApiClientError"]}}function Zd(){return wn("Import.Domain.AdminApi.Read.ApiError",[],qd,()=>[[],[],[],[],[],[],[["Item",ee]],[],[],[],[["Item",et(Jd())]],[],[],[],[],[["Item",oo(["Message",ee])]],[["Item",oo(["Message",ee])]]])}class Kd extends G{constructor(t,n,r,o,i,s,a){super(),this.Stage=t,this.FailedRows=n,this.TotalRowCount=r|0,this.SucceededRowCount=o|0,this.FailedRowCount=i|0,this.StartTime=s,this.StopTime=a}}function Xd(){return Fe("Import.Domain.AdminApi.Read.CompletedStageDetailsDto",[],Kd,()=>[["Stage",vo()],["FailedRows",et(Md())],["TotalRowCount",te],["SucceededRowCount",te],["FailedRowCount",te],["StartTime",dt("System.DateTime")],["StopTime",dt("System.DateTime")]])}class Yd extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["MaxLength","Pattern","AllowedValues"]}}function ep(){return wn("Import.Domain.AdminApi.Read.ValidationRule",[],Yd,()=>[[["Item",te]],[["Item",ee]],[["Item",et(ee)]]])}class tp extends G{constructor(t,n,r,o,i){super(),this.DisplayName=t,this.PropName=n,this.Description=r,this.Required=o,this.ValidationRules=i}}function np(){return Fe("Import.Domain.AdminApi.Read.ColumnDefinitionDto",[],tp,()=>[["DisplayName",ee],["PropName",ee],["Description",jt(ee)],["Required",Oc],["ValidationRules",et(ep())]])}class rp extends G{constructor(t){super(),this.ColumnsInfo=t}}function op(){return Fe("Import.Domain.AdminApi.Read.ImportSchemaDto",[],rp,()=>[["ColumnsInfo",et(np())]])}class ip{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 hr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,hr.prototype)}}class xo{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>xo.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function gt(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new hr);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Jn(n))}});else try{e(t)}catch(n){t.onError(Jn(n))}}}function sp(e,t){return gt(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(Jn(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function ap(e){return gt(t=>t.onSuccess(e))}class lp{Bind(t,n){return sp(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return gt(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 ap(t)}ReturnFrom(t){return t}TryFinally(t,n){return gt(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 gt(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(i){r.onError(Jn(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 gt(t=>t.onSuccess(void 0))}}const v=new lp;function cp(e){return new Fa(0,[e])}function up(e){return new Fa(1,[e])}class Fa extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function fp(e){return cp(e)}function dp(e){return up(e)}function So(e){}const pp=new ip;function hp(e){return gt(t=>{e({onSuccess:n=>t.onSuccess(fp(n)),onError:n=>t.onSuccess(dp(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function mp(e){return gt(t=>e([t.onSuccess,t.onError,t.onCancel]))}function gp(e){return gt(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new hr)})})}function wp(e,t){return _p(e,t)}function Co(e,t){return wp(e,t)}function _p(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const i=new xo;e({onSuccess:t||So,onError:So,onCancel:So,cancelToken:o||pp,trampoline:i})}class Xt extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class yp extends q{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class Oa extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class En extends G{constructor(t,n,r,o,i,s,a,u){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=i,this.overridenResponseType=s,this.timeout=a,this.content=u}}class Yt extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Pa extends G{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 kn(e){return new yp("Authorization",e)}const It=new En("",new Xt(0,[]),le(),!1,void 0,void 0,void 0,new Oa(0,[]));new Pa(0,"","","",ea({Compare:eo}),new Yt(0,[""]));function Na(e,t){return mu(t)?new Array(0):co(t,[e],void 0,0)}function bp(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 Dn(e){return new En(e,It.method,It.headers,It.withCredentials,It.overridenMimeType,It.overridenResponseType,It.timeout,It.content)}function In(e,t){return new En(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Tn(e,t){return new En(t.url,t.method,Sn(t.headers,re(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Ap(e,t){return new En(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function Rn(e){return mp(t=>{const n=new XMLHttpRequest;n.open(bp(e.method),e.url),n.onreadystatechange=()=>{let u,l,f,c,m,d,g;n.readyState===4&&t[0]((u=(l=n.responseType,l===""||l==="text"?n.responseText:""),f=n.status|0,c=n.responseType,m=(d=n.responseType,d===""?new Yt(0,[n.responseText]):d==="text"?new Yt(0,[n.responseText]):d==="arraybuffer"?new Yt(2,[n.response]):d==="blob"?new Yt(1,[n.response]):new Yt(3,[n.response])),g=Hf(xu(_=>{const w=C(Na(":",_));if(!P(w))return[E(w).toLocaleLowerCase(),Ee(":",F(w)).trim()]},Na(`\r
|
|
24
|
-
`,n.getAllResponseHeaders())),{Compare:eo}),new Pa(f,u,c,n.responseURL,g,m)))};const r=Z(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const u=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(u.fields[0],u.fields[1])}}finally{z(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const u=o;n.overrideMimeType(u)}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 u=s|0;n.timeout=u|0}const a=e.content;switch(a.tag){case 1:{n.send(Oe(a.fields[0]));break}case 3:{n.send(Oe(a.fields[0]));break}case 2:{n.send(Oe(a.fields[0]));break}default:n.send()}})}class Eo extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadRequest","OtherError"]}}class vp{constructor(t,n,r,o){this.backendUrl=t,this.accessToken=o,this.baseUrl=`${this.backendUrl}/import/admin/partners/${n}/accounts/${r}/imports`}}function xp(e,t,n,r){return new vp(e,t,n,r)}function Sp(e){return v.Delay(()=>{let t,n;const r=Rn((t=In(new Xt(0,[]),Dn(`${e.backendUrl}/import/admin/schema`)),Tn(kn(tt(Ge("Bearer %s"))(e.accessToken)),t)));return n=v.Bind(r,o=>v.Return(new h(0,[o]))),v.Bind(n,o=>{const i=o;if(i.tag===1)return v.Return(new h(1,[i.fields[0]]));{const s=i.fields[0];if(s.statusCode===200){const a=Zt(V(Kt(op(),new Et(1,[]))),s.responseText);return v.Return(a)}else return v.Return(new h(1,["Failed to get import schema"]))}})})}function Cp(e,t){return v.Delay(()=>{let n,r;const o=Rn((n=In(new Xt(0,[]),Dn(`${e.baseUrl}/${t}/status`)),Tn(kn(tt(Ge("Bearer %s"))(e.accessToken)),n)));return r=v.Bind(o,i=>v.Return(new h(0,[i]))),v.Bind(r,i=>{const s=i;if(s.tag===1)return v.Return(new h(1,[s.fields[0]]));{const a=s.fields[0];if(a.statusCode===200){const u=Zt(V(Kt(Ud(),new Et(1,[]))),a.responseText);return v.Return(u)}else return v.Return(new h(1,["Failed to get import status"]))}})})}function Ep(e,t,n){return v.Delay(()=>{let r,o;const i=Rn((r=In(new Xt(0,[]),Dn(`${e.baseUrl}/${t}/stages/${n}`)),Tn(kn(tt(Ge("Bearer %s"))(e.accessToken)),r)));return o=v.Bind(i,s=>v.Return(new h(0,[s]))),v.Bind(o,s=>{const a=s;if(a.tag===1)return v.Return(new h(1,[a.fields[0]]));{const u=a.fields[0];if(u.statusCode===200){const l=Zt(V(Kt(Xd(),new Et(1,[]))),u.responseText);return v.Return(l)}else return v.Return(new h(1,["Failed to get import stage details"]))}})})}function kp(e){return v.Delay(()=>{let t,n;const r=Rn((t=In(new Xt(0,[]),Dn(e.baseUrl)),Tn(kn(tt(Ge("Bearer %s"))(e.accessToken)),t)));return n=v.Bind(r,o=>v.Return(new h(0,[o]))),v.Bind(n,o=>{const i=o;if(i.tag===1)return v.Return(new h(1,[i.fields[0]]));{const s=i.fields[0];switch(s.statusCode|0){case 200:{let u;const l=Zt(V(Kt(zd(),new Et(1,[]))),s.responseText);return u=l.tag===1?new h(1,[l.fields[0]]):new h(0,[l.fields[0]]),v.Return(u)}case 404:return v.Return(new h(0,[void 0]));default:return v.Return(new h(1,["Failed to get account imports"]))}}})})}function Dp(e,t){return v.Delay(()=>{let n,r;const o=Rn((n=Ap(new Oa(3,[t]),In(new Xt(1,[]),Dn(e.baseUrl))),Tn(kn(tt(Ge("Bearer %s"))(e.accessToken)),n)));return r=v.Bind(o,i=>v.Return(new h(0,[i]))),v.Bind(r,i=>{const s=i;if(s.tag===1)return v.Return(new h(1,[s.fields[0]]));{const a=s.fields[0];switch(a.statusCode|0){case 202:return v.Return(new h(0,[void 0]));case 400:{let l,f;const c=Zt(V(Kt(Zd(),new Et(1,[]))),a.responseText);return f=c.tag===1?new h(1,[new Eo(1,[c.fields[0]])]):new h(0,[c.fields[0]]),l=v.Return(f),v.Bind(l,m=>{const d=m;return d.tag===1?v.Return(new h(1,[d.fields[0]])):v.Return(new h(1,[new Eo(0,[d.fields[0]])]))})}default:return v.Return(new h(1,[new Eo(1,["Failed to start import"])]))}}})})}class Ip{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function Tp(e,t){t.Subscribe(new Ip(e))}class Rp{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 Fp(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 Mp extends Rp{}function Fp(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 Op{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 Mp}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 Pp(e,t){console.error(Oe(e),t)}function Np(e,t){let n,r=new Op(e);r.AutoReset=!1,n=r,Tp(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Ba(e,t,n){xn(r=>{try{r(t)}catch(o){e(o)}},n)}function Ne(){return le()}function ko(e,t,n,r){return re(o=>{e(v.Delay(()=>v.Bind(hp(t(n)),i=>{const s=i;return s.tag===0&&o(r(s.fields[0])),v.Zero()})))})}function Do(e){Np(1,t=>{Co(e)})}function Io(e){return e.tag===1?"tax":"profiles"}class rt extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}class en extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ActiveImport","PastImports"]}}function ja(e){return e.tag===1?"Past Imports":"Active Import"}class Bp extends G{constructor(t,n){super(),this.AccountId=t,this.PartnerId=n}}class Be extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialising","FileSelection","Validating","ValidationError","ImportInProgress","UnexpectedError"]}}class Mn extends G{constructor(t,n){super(),this.PastImports=t,this.ImportSummary=n}}class ve extends G{constructor(t,n,r,o,i){super(),this.User=t,this.CurrentTab=n,this.AccountInfo=r,this.ActiveImportTabState=o,this.ImportHistoryTabState=i}}class xe extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetCurrentTab","SelectFile","ShowImportSummary","ShowImportHistory","GetImports","StartImport","GetImportStatus"]}}function jp(e,t){return[new ve(e,new en(0,[]),t,new Be(0,[]),new Mn(le(),void 0)),re(n=>{n(new xe(4,[new rt(0,[void 0])]))})]}function Hp(e,t,n){let r;switch(t.tag){case 4:if(t.fields[0].tag===1){if(t.fields[0].fields[0].tag===1)return[new ve(n.User,n.CurrentTab,n.AccountInfo,new Be(5,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),Ne()];if(t.fields[0].fields[0].fields[0]==null)return[new ve(n.User,n.CurrentTab,n.AccountInfo,new Be(1,[]),n.ImportHistoryTabState),Ne()];{const o=t.fields[0].fields[0].fields[0];let i;const s=o.ActiveImport;if(s==null)i=[new Be(1,[]),Ne()];else{const a=s;i=[new Be(4,[new Ma(0,[a])]),re(u=>{u(new xe(6,[new rt(0,[a.ImportId])]))})]}return[new ve(n.User,n.CurrentTab,n.AccountInfo,i[0],new Mn(o.ImportHistory,n.ImportHistoryTabState.ImportSummary)),i[1]]}}else return[n,ko(o=>{Do(o)},()=>kp(e),t.fields[0].fields[0],o=>new xe(4,[new rt(1,[o])]))];case 6:return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new ve(n.User,n.CurrentTab,n.AccountInfo,new Be(5,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),(r=n.ActiveImportTabState,r.tag===4&&r.fields[0].tag===0?re(o=>{o(new xe(6,[new rt(0,[r.fields[0].fields[0].ImportId])]))}):Ne())]:t.fields[0].fields[0].fields[0].tag===1?[new ve(n.User,new en(1,[]),n.AccountInfo,new Be(1,[]),new Mn(n.ImportHistoryTabState.PastImports,t.fields[0].fields[0].fields[0].fields[0])),re(o=>{o(new xe(4,[new rt(0,[void 0])]))})]:[new ve(n.User,n.CurrentTab,n.AccountInfo,new Be(4,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),re(o=>{o(new xe(6,[new rt(0,[t.fields[0].fields[0].fields[0].fields[0].ImportId])]))})]:[n,ko(o=>{Do(o)},o=>v.Delay(()=>v.Bind(gp(1e4),()=>v.ReturnFrom(Cp(e,o)))),t.fields[0].fields[0],o=>new xe(6,[new rt(1,[o])]))];case 1:return[new ve(n.User,n.CurrentTab,n.AccountInfo,new Be(1,[]),n.ImportHistoryTabState),Ne()];case 5:return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?t.fields[0].fields[0].fields[0].tag===1?[new ve(n.User,n.CurrentTab,n.AccountInfo,new Be(5,[t.fields[0].fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),Ne()]:[new ve(n.User,n.CurrentTab,n.AccountInfo,new Be(3,[t.fields[0].fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),Ne()]:[n,re(o=>{o(new xe(4,[new rt(0,[void 0])]))})]:[new ve(n.User,n.CurrentTab,n.AccountInfo,new Be(2,[]),n.ImportHistoryTabState),ko(o=>{Do(o)},o=>Dp(e,o),t.fields[0].fields[0],o=>new xe(5,[new rt(1,[o])]))];case 2:return[new ve(n.User,new en(1,[]),n.AccountInfo,n.ActiveImportTabState,new Mn(n.ImportHistoryTabState.PastImports,t.fields[0])),Ne()];case 3:return[new ve(n.User,new en(1,[]),n.AccountInfo,n.ActiveImportTabState,new Mn(n.ImportHistoryTabState.PastImports,void 0)),Ne()];default:return[new ve(n.User,t.fields[0],n.AccountInfo,n.ActiveImportTabState,n.ImportHistoryTabState),Ne()]}}function $p(){return le()}function To(e){return Ee("/",e)}function Vp(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+To(t),n])}function Ha(e,t,n){try{z(n)}catch(r){e(["Error stopping subscription: "+To(t),r])}}function Up(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+To(n),o]);return}}function Lp(e,t){xn(n=>{Ha(e,n[0],n[1])},t)}function $a(e,t,n,r,o,i){return xn(s=>{Vp(e,s)},n),xn(s=>{Ha(e,s[0],s[1])},r),Sn(o,Fu(s=>Up(e,t,s[0],s[1]),i))}function zp(){return[le(),ed({Compare:Me}),le()]}function Gp(e,t,n,r,o){return bo(e,r)?[Pe(e,n),r,o]:[n,Yf(e,r),Pe([e,t],o)]}function Qp(e){return ku((t,n)=>Gp(t[0],t[1],n[0],n[1],n[2]),e,zp())}const Wp=le();function Va(e,t){const n=td(Ct(s=>s[0],e),{Compare:Me}),r=Qp(t),o=r[1],i=r[0];if(n.Equals(o))return[i,le(),e,le()];{const s=Mu(a=>bo(a[0],o),e);return[i,s[1],s[0],Ru(a=>!bo(a[0],n),r[2])]}}function Jp(e,t,n,r){const o=Me(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=Me(s,t)|0;return i&&a<=0||!i&&a>=0?[s,r(s,e)]:void 0}}function qp(e,t,n,r,o){const i=Jp(t,n,r,o);return O(()=>df(i,e))}function Zp(e,t,n){return qp(e,t,n,0,(r,o)=>r+o)}class tn extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Kp{constructor(t){this.state=new tn(0,[uo(new Array(Cs(t,10)),0,Cs(t,10),null),0])}}function Xp(e){return new Kp(e)}function Ua(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 tn(0,[o,n]):e.state=new tn(1,[o,n,i]),Oe(ae(r,o))}else return}function Yp(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];yt(i,r,t);const s=(r+1)%i.length|0;s===o?e.state=new tn(1,[eh(e,o,i),i.length,0]):e.state=new tn(1,[i,s,o])}else{const r=n.fields[1]|0,o=n.fields[0];yt(o,r,t);const i=(r+1)%o.length|0;e.state=new tn(1,[o,i,r])}}function eh(e,t,n){return Array.from(O(()=>ce(_f(t,n),O(()=>ce(yf(t,n),O(()=>lr(r=>N(St()),Zp(0,1,n.length))))))))}class Ro extends G{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 th(e,t,n){return new Ro(e,t,r=>$p(),n,V(r=>{const o=Ye(n)(r);return i=>{o(i)}}),r=>{Pp(r[0],r[1])},[r=>!1,r=>{}])}function nh(e,t){return new Ro(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function rh(e){return e.init}function oh(e,t,n,r,o,i,s){const a=Ye(e)(s.init),u=Wn(t)(Ye(s.update)),l=Wn(n)(Ye(s.view)),f=Wn(r)(Ye(s.setState));return new Ro(a,V(u),Ye(o)(s.subscribe),V(l),V(f),s.onError,i(s.termination))}function ih(e,t,n){let r;const o=n.init(t),i=o[0],s=n.subscribe(i),a=n.termination,u=Xp(10);let l=!1,f=i,c=Wp,m=!1;const d=w=>{m||(Yp(u,w),l||(l=!0,_(),l=!1))},g=Ye(e)(d),_=()=>{let w,y=Ua(u);for(;!m&&y!=null;){const S=b(y);if(a[0](S))Lp(n.onError,c),a[1](f),m=!0;else{const I=n.update(S,f),oe=I[0],Y=n.subscribe(oe);n.setState(oe,g),Ba(je=>{n.onError([tt(Ge("Error handling the message: %A"))(S),je])},g,I[1]),f=oe,c=(w=Va(c,Y),$a(n.onError,g,w[0],w[1],w[2],w[3])),y=Ua(u)}}};l=!0,n.setState(i,g),Ba(w=>{n.onError([tt(Ge("Error intitializing:")),w])},g,o[1]),c=(r=Va(c,s),$a(n.onError,g,r[0],r[1],r[2],r[3])),_(),l=!1}function sh(e,t){ih(V(n=>n),e,t)}function ah(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function lh(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):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 La={exports:{}},za={};const ch=lh(sc);/**
|
|
23
|
+
`))(c);return p=>m(p)}}else if(Pc(r))if(us(r)){const f=wt(c=>rt(e,t,!1,c),Uc(r));return c=>m=>Array.isArray(m)?gt(p=>Qc(Jt(p)),Sa(0,f,c,m)):new h(1,[[c,new E(0,["an array",m])]])}else switch(fe(Bc(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=rt(e,t,!0,de(0,ht(r))),c=>m=>_d(z(o),c,m);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return i=rt(e,t,!1,de(0,ht(r))),c=>m=>va(z(i),c,m);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=rt(e,t,!1,de(0,ht(r))),c=>m=>yd(z(s),c,m);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=rt(e,t,!1,de(0,ht(r))),m=rt(e,t,!1,de(1,ht(r)));let p;const w=x([_=>g=>kd(z(c),z(m),_,g),(a=xd(z(c),z(m)),_=>g=>va(z(a),_,g))]);return p=_=>g=>bd(w,_,g),_=>g=>vd(Cd,z(p),_,g)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=rt(e,t,!1,de(0,ht(r)));return m=>p=>{const w=xa(z(c),m,p);return w.tag===0?new h(0,[Sd(w.fields[0])]):new h(1,[w.fields[0]])}}default:return ka(e,t,n,r)}else switch(u){case"System.Boolean":return f=>c=>dd(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>fd(f,c);case"System.String":return f=>c=>ha(f,c);case"System.Char":return f=>c=>cd(f,c);case"System.SByte":return ma;case"System.Byte":return wa;case"System.Int16":return ga;case"System.UInt16":return _a;case"System.Int32":return ya;case"System.UInt32":return ba;case"System.Double":return f=>c=>pd(f,c);case"System.Single":return f=>c=>hd(f,c);case"System.DateTime":return f=>c=>md(f,c);case"System.DateTimeOffset":return f=>c=>wd(f,c);case"System.TimeSpan":return f=>c=>gd(f,c);case"System.Guid":return f=>c=>ud(f,c);case"System.Object":return f=>c=>new h(0,[c]);default:return ka(e,t,n,r)}else{const f=l;return c=>m=>f.contents(c)(m)}}function Id(e){return ea({Compare:so})}function sn(e,t,n){const r=Cs(t,new Dt(0,[]));return rt(Id(),r,!1,e)}class Eo extends ee{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AccessRole"]}}function Dd(e){return new Eo(e)}const Td=new Eo("Import.RunInvites"),Rd=new Eo("Import.RunImports");class Md extends Q{constructor(t,n){super(),this.UserName=t,this.Roles=n}}function Fd(e){return Ts(Td,e.Roles,{Equals:Ee,GetHashCode:os})}function Ia(e){return Ts(Rd,e.Roles,{Equals:Ee,GetHashCode:os})}function Od(e){let t;const n=wo(e??"",["."],void 0,0);if(!Su((r,o)=>r===o,n)&&n.length===3){const r=de(1,n),o=atob(r);t=on(z(sn(uo(["Name",se],["Roles",Mc(se)]),new Dt(1,[]))),o)}else t=new h(1,["Failed to identify the user"]);if(t.tag!==1){const r=t.fields[0];return new Md(r.Name,x(wt(Dd,r.Roles)))}}class Nd extends ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Profiles","Tax"]}}function ko(){return xn("Import.Domain.AdminApi.Read.ImportStageDto",[],Nd,()=>[[],[]])}class Pd extends Q{constructor(t,n){super(),this.RowId=t|0,this.Reason=n}}function Bd(){return He("Import.Domain.AdminApi.Read.FailedRowInfoDto",[],Pd,()=>[["RowId",ae],["Reason",se]])}class jd extends ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Invite","RevokeInvite"]}}function $d(){return xn("Import.Domain.AdminApi.Read.BenefitsRequestTypeDto",[],jd,()=>[[],[]])}class Hd extends Q{constructor(t,n,r,o){super(),this.User=t,this.ProfileCount=n|0,this.RequestType=r,this.RequestedAt=o}}function Ud(){return He("Import.Domain.AdminApi.Read.BenefitsRequestInfoDto",[],Hd,()=>[["User",se],["ProfileCount",ae],["RequestType",$d()],["RequestedAt",mt("System.DateTime")]])}class Vd extends Q{constructor(t,n,r,o,i,s){super(),this.Stage=t,this.InputRowCount=n|0,this.StartTime=r,this.SucceededRowCount=o,this.FailedRowCount=i,this.RemainingRowCount=s}}function Ld(){return He("Import.Domain.AdminApi.Read.RunningStageDto",[],Vd,()=>[["Stage",ko()],["InputRowCount",ae],["StartTime",mt("System.DateTime")],["SucceededRowCount",Gt(ae)],["FailedRowCount",Gt(ae)],["RemainingRowCount",Gt(ae)]])}class zd extends Q{constructor(t,n,r,o,i,s){super(),this.Stage=t,this.InputRowCount=n|0,this.SucceededRowCount=r|0,this.FailedRowCount=o|0,this.StartTime=i,this.StopTime=s}}function Da(){return He("Import.Domain.AdminApi.Read.CompletedStageDto",[],zd,()=>[["Stage",ko()],["InputRowCount",ae],["SucceededRowCount",ae],["FailedRowCount",ae],["StartTime",mt("System.DateTime")],["StopTime",mt("System.DateTime")]])}class Gd extends Q{constructor(t,n,r,o,i,s,a){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.CurrentStage=i,this.CompletedStages=s,this.StartTime=a}}function Ta(){return He("Import.Domain.AdminApi.Read.ActiveImportDto",[],Gd,()=>[["ImportId",ae],["User",se],["Filename",se],["NumberOfRecords",ae],["CurrentStage",Gt(Ld())],["CompletedStages",it(Da())],["StartTime",mt("System.DateTime")]])}class Wd extends Q{constructor(t,n,r,o,i,s,a,u){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.CompletedStages=i,this.BenefitsRequests=s,this.StartTime=a,this.StopTime=u}}function Ra(){return He("Import.Domain.AdminApi.Read.PastImportDto",[],Wd,()=>[["ImportId",ae],["User",se],["Filename",se],["NumberOfRecords",ae],["CompletedStages",it(Da())],["BenefitsRequests",it(Ud())],["StartTime",mt("System.DateTime")],["StopTime",mt("System.DateTime")]])}class Ma extends ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Active","Complete"]}}function Qd(){return xn("Import.Domain.AdminApi.Read.ImportStatusDto",[],Ma,()=>[[["Item",Ta()]],[["Item",Ra()]]])}class qd extends Q{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function Zd(){return He("Import.Domain.AdminApi.Read.AccountImportsDto",[],qd,()=>[["ActiveImport",Gt(Ta())],["ImportHistory",it(Ra())]])}class Jd extends Q{constructor(t,n){super(),this.Column=t,this.Message=n}}function Kd(){return He("Import.Domain.AdminApi.Read.FieldError",[],Jd,()=>[["Column",se],["Message",se]])}class Xd extends Q{constructor(t,n){super(),this.RowId=t|0,this.FieldErrors=n}}function Yd(){return He("Import.Domain.AdminApi.Read.RowValidationError",[],Xd,()=>[["RowId",ae],["FieldErrors",it(Kd())]])}class ep extends ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InvalidFileContentType","InvalidImportStages","InvalidImportStage","StageNotCompleted","InvalidFileName","ExceedsMaxRows","FileFormatError","NoData","NoFile","MultipleFiles","RowValidationErrors","UnknownAccount","ImportInProgress","BadInternalRequestPayload","DuplicateRowId","InternalApiDeserializationError","InternalApiClientError"]}}function tp(){return xn("Import.Domain.AdminApi.Read.ApiError",[],ep,()=>[[],[],[],[],[],[],[["Item",se]],[],[],[],[["Item",it(Yd())]],[],[],[],[],[["Item",uo(["Message",se])]],[["Item",uo(["Message",se])]]])}class np extends Q{constructor(t,n,r,o,i,s,a){super(),this.Stage=t,this.FailedRows=n,this.TotalRowCount=r|0,this.SucceededRowCount=o|0,this.FailedRowCount=i|0,this.StartTime=s,this.StopTime=a}}function rp(){return He("Import.Domain.AdminApi.Read.CompletedStageDetailsDto",[],np,()=>[["Stage",ko()],["FailedRows",it(Bd())],["TotalRowCount",ae],["SucceededRowCount",ae],["FailedRowCount",ae],["StartTime",mt("System.DateTime")],["StopTime",mt("System.DateTime")]])}class op extends ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["MaxLength","Pattern","AllowedValues"]}}function ip(){return xn("Import.Domain.AdminApi.Read.ValidationRule",[],op,()=>[[["Item",ae]],[["Item",se]],[["Item",it(se)]]])}class sp extends Q{constructor(t,n,r,o,i){super(),this.DisplayName=t,this.PropName=n,this.Description=r,this.Required=o,this.ValidationRules=i}}function ap(){return He("Import.Domain.AdminApi.Read.ColumnDefinitionDto",[],sp,()=>[["DisplayName",se],["PropName",se],["Description",Gt(se)],["Required",Oc],["ValidationRules",it(ip())]])}class lp extends Q{constructor(t){super(),this.ColumnsInfo=t}}function cp(){return He("Import.Domain.AdminApi.Read.ImportSchemaDto",[],lp,()=>[["ColumnsInfo",it(ap())]])}class up{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 yr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,yr.prototype)}}class Io{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Io.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function _t(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new yr);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Yn(n))}});else try{e(t)}catch(n){t.onError(Yn(n))}}}function fp(e,t){return _t(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(Yn(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function dp(e){return _t(t=>t.onSuccess(e))}class pp{Bind(t,n){return fp(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return _t(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 dp(t)}ReturnFrom(t){return t}TryFinally(t,n){return _t(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 _t(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(i){r.onError(Yn(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 _t(t=>t.onSuccess(void 0))}}const A=new pp;function hp(e){return new Fa(0,[e])}function mp(e){return new Fa(1,[e])}class Fa extends ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function wp(e){return hp(e)}function gp(e){return mp(e)}function Do(e){}const _p=new up;function yp(e){return _t(t=>{e({onSuccess:n=>t.onSuccess(wp(n)),onError:n=>t.onSuccess(gp(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function bp(e){return _t(t=>e([t.onSuccess,t.onError,t.onCancel]))}function Ap(e){return _t(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new yr)})})}function vp(e,t){return xp(e,t)}function To(e,t){return vp(e,t)}function xp(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const i=new Io;e({onSuccess:t||Do,onError:Do,onCancel:Do,cancelToken:o||_p,trampoline:i})}class Ct extends ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Cp extends ee{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class Oa extends ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class On extends Q{constructor(t,n,r,o,i,s,a,u){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=i,this.overridenResponseType=s,this.timeout=a,this.content=u}}class an extends ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Na extends Q{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 Mt(e){return new Cp("Authorization",e)}const Ft=new On("",new Ct(0,[]),pe(),!1,void 0,void 0,void 0,new Oa(0,[]));new Na(0,"","","",ea({Compare:so}),new an(0,[""]));function Pa(e,t){return wu(t)?new Array(0):wo(t,[e],void 0,0)}function Sp(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 Ot(e){return new On(e,Ft.method,Ft.headers,Ft.withCredentials,Ft.overridenMimeType,Ft.overridenResponseType,Ft.timeout,Ft.content)}function Nt(e,t){return new On(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Pt(e,t){return new On(t.url,t.method,Rn(t.headers,q(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Ep(e,t){return new On(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function Bt(e){return bp(t=>{const n=new XMLHttpRequest;n.open(Sp(e.method),e.url),n.onreadystatechange=()=>{let u,l,f,c,m,p,w;n.readyState===4&&t[0]((u=(l=n.responseType,l===""||l==="text"?n.responseText:""),f=n.status|0,c=n.responseType,m=(p=n.responseType,p===""?new an(0,[n.responseText]):p==="text"?new an(0,[n.responseText]):p==="arraybuffer"?new an(2,[n.response]):p==="blob"?new an(1,[n.response]):new an(3,[n.response])),w=zf(Cu(_=>{const g=x(Pa(":",_));if(!P(g))return[k(g).toLocaleLowerCase(),Re(":",N(g)).trim()]},Pa(`\r
|
|
24
|
+
`,n.getAllResponseHeaders())),{Compare:so}),new Na(f,u,c,n.responseURL,w,m)))};const r=te(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const u=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(u.fields[0],u.fields[1])}}finally{Z(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const u=o;n.overrideMimeType(u)}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 u=s|0;n.timeout=u|0}const a=e.content;switch(a.tag){case 1:{n.send(Me(a.fields[0]));break}case 3:{n.send(Me(a.fields[0]));break}case 2:{n.send(Me(a.fields[0]));break}default:n.send()}})}class Ro extends ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadRequest","OtherError"]}}class kp{constructor(t,n,r,o){this.backendUrl=t,this.accessToken=o,this.baseUrl=`${this.backendUrl}/import/admin/partners/${n}/accounts/${r}/imports`}}function Ip(e,t,n,r){return new kp(e,t,n,r)}function Dp(e){return A.Delay(()=>{let t,n;const r=Bt((t=Nt(new Ct(0,[]),Ot(`${e.backendUrl}/import/admin/schema`)),Pt(Mt(Ue(Te("Bearer %s"))(e.accessToken)),t)));return n=A.Bind(r,o=>A.Return(new h(0,[o]))),A.Bind(n,o=>{const i=o;if(i.tag===1)return A.Return(new h(1,[i.fields[0]]));{const s=i.fields[0];if(s.statusCode===200){const a=on(z(sn(cp(),new Dt(1,[]))),s.responseText);return A.Return(a)}else return A.Return(new h(1,["Failed to get import schema"]))}})})}function Tp(e,t){return A.Delay(()=>{let n,r;const o=Bt((n=Nt(new Ct(0,[]),Ot(`${e.baseUrl}/${t}/status`)),Pt(Mt(Ue(Te("Bearer %s"))(e.accessToken)),n)));return r=A.Bind(o,i=>A.Return(new h(0,[i]))),A.Bind(r,i=>{const s=i;if(s.tag===1)return A.Return(new h(1,[s.fields[0]]));{const a=s.fields[0];if(a.statusCode===200){const u=on(z(sn(Qd(),new Dt(1,[]))),a.responseText);return A.Return(u)}else return A.Return(new h(1,["Failed to get import status"]))}})})}function Rp(e,t,n){return A.Delay(()=>{let r,o;const i=Bt((r=Nt(new Ct(0,[]),Ot(`${e.baseUrl}/${t}/stages/${n}`)),Pt(Mt(Ue(Te("Bearer %s"))(e.accessToken)),r)));return o=A.Bind(i,s=>A.Return(new h(0,[s]))),A.Bind(o,s=>{const a=s;if(a.tag===1)return A.Return(new h(1,[a.fields[0]]));{const u=a.fields[0];if(u.statusCode===200){const l=on(z(sn(rp(),new Dt(1,[]))),u.responseText);return A.Return(l)}else return A.Return(new h(1,["Failed to get import stage details"]))}})})}function Mp(e){return A.Delay(()=>{let t,n;const r=Bt((t=Nt(new Ct(0,[]),Ot(e.baseUrl)),Pt(Mt(Ue(Te("Bearer %s"))(e.accessToken)),t)));return n=A.Bind(r,o=>A.Return(new h(0,[o]))),A.Bind(n,o=>{const i=o;if(i.tag===1)return A.Return(new h(1,[i.fields[0]]));{const s=i.fields[0];switch(s.statusCode|0){case 200:{let u;const l=on(z(sn(Zd(),new Dt(1,[]))),s.responseText);return u=l.tag===1?new h(1,[l.fields[0]]):new h(0,[l.fields[0]]),A.Return(u)}case 404:return A.Return(new h(0,[void 0]));default:return A.Return(new h(1,["Failed to get account imports"]))}}})})}function Fp(e,t){return A.Delay(()=>{let n,r;const o=Bt((n=Ep(new Oa(3,[t]),Nt(new Ct(1,[]),Ot(e.baseUrl))),Pt(Mt(Ue(Te("Bearer %s"))(e.accessToken)),n)));return r=A.Bind(o,i=>A.Return(new h(0,[i]))),A.Bind(r,i=>{const s=i;if(s.tag===1)return A.Return(new h(1,[s.fields[0]]));{const a=s.fields[0];switch(a.statusCode|0){case 202:return A.Return(new h(0,[void 0]));case 400:{let l,f;const c=on(z(sn(tp(),new Dt(1,[]))),a.responseText);return f=c.tag===1?new h(1,[new Ro(1,[c.fields[0]])]):new h(0,[c.fields[0]]),l=A.Return(f),A.Bind(l,m=>{const p=m;return p.tag===1?A.Return(new h(1,[p.fields[0]])):A.Return(new h(1,[new Ro(0,[p.fields[0]])]))})}default:return A.Return(new h(1,[new Ro(1,["Failed to start import"])]))}}})})}function Op(e,t){return A.Delay(()=>{let n,r;const o=Bt((n=Nt(new Ct(2,[]),Ot(`${e.baseUrl}/${t}/benefits/invite-all`)),Pt(Mt(Ue(Te("Bearer %s"))(e.accessToken)),n)));return r=A.Bind(o,i=>A.Return(new h(0,[i]))),A.Bind(r,i=>{const s=i;return s.tag===1?A.Return(new h(1,[s.fields[0]])):s.fields[0].statusCode===202?A.Return(new h(0,[void 0])):A.Return(new h(1,["Failed to send invites"]))})})}function Np(e,t){return A.Delay(()=>{let n,r;const o=Bt((n=Nt(new Ct(2,[]),Ot(`${e.baseUrl}/${t}/benefits/uninvite-all`)),Pt(Mt(Ue(Te("Bearer %s"))(e.accessToken)),n)));return r=A.Bind(o,i=>A.Return(new h(0,[i]))),A.Bind(r,i=>{const s=i;return s.tag===1?A.Return(new h(1,[s.fields[0]])):s.fields[0].statusCode===202?A.Return(new h(0,[void 0])):A.Return(new h(1,["Failed to revoke invites"]))})})}class Pp{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function Bp(e,t){t.Subscribe(new Pp(e))}class jp{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 $p extends jp{}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 Up{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 $p}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 Vp(e,t){console.error(Me(e),t)}function Lp(e,t){let n,r=new Up(e);r.AutoReset=!1,n=r,Bp(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Ba(e,t,n){Tn(r=>{try{r(t)}catch(o){e(o)}},n)}function ke(){return pe()}function Nn(e,t,n,r){return q(o=>{e(A.Delay(()=>A.Bind(yp(t(n)),i=>{const s=i;return s.tag===0&&o(r(s.fields[0])),A.Zero()})))})}function Pn(e){Lp(1,t=>{To(e)})}function Mo(e){return e.tag===1?"tax":"profiles"}class ge extends ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}class ze extends ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ActiveImport","PastImports"]}}function ja(e){return e.tag===1?"Past Imports":"Active Import"}class zp extends Q{constructor(t,n){super(),this.AccountId=t,this.PartnerId=n}}class Ie extends ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialising","FileSelection","Validating","ValidationError","ImportInProgress","UnexpectedError"]}}class Bn extends Q{constructor(t,n){super(),this.PastImports=t,this.ImportSummary=n}}class _e extends Q{constructor(t,n,r,o,i){super(),this.User=t,this.CurrentTab=n,this.AccountInfo=r,this.ActiveImportTabState=o,this.ImportHistoryTabState=i}}class ne extends ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetCurrentTab","SelectFile","ShowImportSummary","ShowImportHistory","GetImports","StartImport","GetImportStatus","SendInvites","RevokeInvites"]}}function Gp(e,t){return[new _e(e,new ze(0,[]),t,new Ie(0,[]),new Bn(pe(),void 0)),q(n=>{n(new ne(4,[new ge(0,[void 0])]))})]}function Wp(e,t,n){let r,o,i;switch(t.tag){case 4:if(t.fields[0].tag===1){if(t.fields[0].fields[0].tag===1)return[new _e(n.User,new ze(0,[]),n.AccountInfo,new Ie(5,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),ke()];if(t.fields[0].fields[0].fields[0]==null)return[new _e(n.User,n.CurrentTab,n.AccountInfo,new Ie(1,[]),n.ImportHistoryTabState),ke()];{const s=t.fields[0].fields[0].fields[0];let a;const u=s.ActiveImport;if(u==null)a=[new Ie(1,[]),ke()];else{const l=u;a=[new Ie(4,[new Ma(0,[l])]),q(f=>{f(new ne(6,[new ge(0,[l.ImportId])]))})]}return[new _e(n.User,n.CurrentTab,n.AccountInfo,a[0],new Bn(s.ImportHistory,(r=n.ImportHistoryTabState.ImportSummary,r==null?void 0:(o=r,Mu(l=>l.ImportId===o.ImportId,s.ImportHistory))))),a[1]]}}else return[n,Nn(s=>{Pn(s)},()=>Mp(e),t.fields[0].fields[0],s=>new ne(4,[new ge(1,[s])]))];case 6:return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new _e(n.User,new ze(0,[]),n.AccountInfo,new Ie(5,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),(i=n.ActiveImportTabState,i.tag===4&&i.fields[0].tag===0?q(s=>{s(new ne(6,[new ge(0,[i.fields[0].fields[0].ImportId])]))}):ke())]:t.fields[0].fields[0].fields[0].tag===1?[new _e(n.User,new ze(1,[]),n.AccountInfo,new Ie(1,[]),new Bn(n.ImportHistoryTabState.PastImports,t.fields[0].fields[0].fields[0].fields[0])),q(s=>{s(new ne(4,[new ge(0,[void 0])]))})]:[new _e(n.User,n.CurrentTab,n.AccountInfo,new Ie(4,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),q(s=>{s(new ne(6,[new ge(0,[t.fields[0].fields[0].fields[0].fields[0].ImportId])]))})]:[n,Nn(s=>{Pn(s)},s=>A.Delay(()=>A.Bind(Ap(1e4),()=>A.ReturnFrom(Tp(e,s)))),t.fields[0].fields[0],s=>new ne(6,[new ge(1,[s])]))];case 1:return[new _e(n.User,n.CurrentTab,n.AccountInfo,new Ie(1,[]),n.ImportHistoryTabState),ke()];case 5:return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?t.fields[0].fields[0].fields[0].tag===1?[new _e(n.User,new ze(0,[]),n.AccountInfo,new Ie(5,[t.fields[0].fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),ke()]:[new _e(n.User,new ze(0,[]),n.AccountInfo,new Ie(3,[t.fields[0].fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),ke()]:[n,q(s=>{s(new ne(4,[new ge(0,[void 0])]))})]:[new _e(n.User,n.CurrentTab,n.AccountInfo,new Ie(2,[]),n.ImportHistoryTabState),Nn(s=>{Pn(s)},s=>Fp(e,s),t.fields[0].fields[0],s=>new ne(5,[new ge(1,[s])]))];case 2:return[new _e(n.User,new ze(1,[]),n.AccountInfo,n.ActiveImportTabState,new Bn(n.ImportHistoryTabState.PastImports,t.fields[0])),ke()];case 3:return[new _e(n.User,new ze(1,[]),n.AccountInfo,n.ActiveImportTabState,new Bn(n.ImportHistoryTabState.PastImports,void 0)),ke()];case 7:return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new _e(n.User,new ze(0,[]),n.AccountInfo,new Ie(5,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),ke()]:[n,q(s=>{s(new ne(4,[new ge(0,[void 0])]))})]:[n,Nn(s=>{Pn(s)},s=>Op(e,s),t.fields[0].fields[0],s=>new ne(7,[new ge(1,[s])]))];case 8:return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new _e(n.User,new ze(0,[]),n.AccountInfo,new Ie(5,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),ke()]:[n,q(s=>{s(new ne(4,[new ge(0,[void 0])]))})]:[n,Nn(s=>{Pn(s)},s=>Np(e,s),t.fields[0].fields[0],s=>new ne(8,[new ge(1,[s])]))];default:return[new _e(n.User,t.fields[0],n.AccountInfo,n.ActiveImportTabState,n.ImportHistoryTabState),ke()]}}function Qp(){return pe()}function Fo(e){return Re("/",e)}function qp(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Fo(t),n])}function $a(e,t,n){try{Z(n)}catch(r){e(["Error stopping subscription: "+Fo(t),r])}}function Zp(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+Fo(n),o]);return}}function Jp(e,t){Tn(n=>{$a(e,n[0],n[1])},t)}function Ha(e,t,n,r,o,i){return Tn(s=>{qp(e,s)},n),Tn(s=>{$a(e,s[0],s[1])},r),Rn(o,Pu(s=>Zp(e,t,s[0],s[1]),i))}function Kp(){return[pe(),id({Compare:je}),pe()]}function Xp(e,t,n,r,o){return So(e,r)?[Le(e,n),r,o]:[n,od(e,r),Le([e,t],o)]}function Yp(e){return Iu((t,n)=>Xp(t[0],t[1],n[0],n[1],n[2]),e,Kp())}const eh=pe();function Ua(e,t){const n=sd(xt(s=>s[0],e),{Compare:je}),r=Yp(t),o=r[1],i=r[0];if(n.Equals(o))return[i,pe(),e,pe()];{const s=Nu(a=>So(a[0],o),e);return[i,s[1],s[0],Ou(a=>!So(a[0],n),r[2])]}}function th(e,t,n,r){const o=je(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=je(s,t)|0;return i&&a<=0||!i&&a>=0?[s,r(s,e)]:void 0}}function nh(e,t,n,r,o){const i=th(t,n,r,o);return M(()=>gf(i,e))}function rh(e,t,n){return nh(e,t,n,0,(r,o)=>r+o)}class ln extends ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class oh{constructor(t){this.state=new ln(0,[go(new Array(ks(t,10)),0,ks(t,10),null),0])}}function ih(e){return new oh(e)}function Va(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 ln(0,[o,n]):e.state=new ln(1,[o,n,i]),Me(de(r,o))}else return}function sh(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];vt(i,r,t);const s=(r+1)%i.length|0;s===o?e.state=new ln(1,[ah(e,o,i),i.length,0]):e.state=new ln(1,[i,s,o])}else{const r=n.fields[1]|0,o=n.fields[0];vt(o,r,t);const i=(r+1)%o.length|0;e.state=new ln(1,[o,i,r])}}function ah(e,t,n){return Array.from(M(()=>$(xf(t,n),M(()=>$(Cf(t,n),M(()=>Mn(r=>R(At()),rh(0,1,n.length))))))))}class Oo extends Q{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 lh(e,t,n){return new Oo(e,t,r=>Qp(),n,z(r=>{const o=$e(n)(r);return i=>{o(i)}}),r=>{Vp(r[0],r[1])},[r=>!1,r=>{}])}function ch(e,t){return new Oo(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function uh(e){return e.init}function fh(e,t,n,r,o,i,s){const a=$e(e)(s.init),u=Xn(t)($e(s.update)),l=Xn(n)($e(s.view)),f=Xn(r)($e(s.setState));return new Oo(a,z(u),$e(o)(s.subscribe),z(l),z(f),s.onError,i(s.termination))}function dh(e,t,n){let r;const o=n.init(t),i=o[0],s=n.subscribe(i),a=n.termination,u=ih(10);let l=!1,f=i,c=eh,m=!1;const p=g=>{m||(sh(u,g),l||(l=!0,_(),l=!1))},w=$e(e)(p),_=()=>{let g,y=Va(u);for(;!m&&y!=null;){const S=b(y);if(a[0](S))Jp(n.onError,c),a[1](f),m=!0;else{const T=n.update(S,f),J=T[0],j=n.subscribe(J);n.setState(J,w),Ba(ce=>{n.onError([Ue(Te("Error handling the message: %A"))(S),ce])},w,T[1]),f=J,c=(g=Ua(c,j),Ha(n.onError,w,g[0],g[1],g[2],g[3])),y=Va(u)}}};l=!0,n.setState(i,w),Ba(g=>{n.onError([Ue(Te("Error intitializing:")),g])},w,o[1]),c=(r=Ua(c,s),Ha(n.onError,w,r[0],r[1],r[2],r[3])),_(),l=!1}function ph(e,t){dh(z(n=>n),e,t)}function hh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function mh(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):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 La={exports:{}},za={};const wh=mh(sc);/**
|
|
25
25
|
* @license React
|
|
26
26
|
* use-sync-external-store-shim.production.min.js
|
|
27
27
|
*
|
|
@@ -29,14 +29,14 @@ If you can't use one of these types, please pass an extra decoder.
|
|
|
29
29
|
*
|
|
30
30
|
* This source code is licensed under the MIT license found in the
|
|
31
31
|
* LICENSE file in the root directory of this source tree.
|
|
32
|
-
*/var
|
|
33
|
-
`,Sn(re("Row,Reason"),Ct(s=>Ee(",",pt(a=>`"${a}"`,pt(a=>As(a,'"','""'),[Xe(s.RowId),s.Reason]))),o.fields[0].FailedRows)));return v.Bind(Qa(i,`${t}_stage_failed_rows.csv`),()=>v.Return(void 0))}}))}function kh(e){return v.Delay(()=>v.Bind(Sp(e),t=>{const n=t;if(n.tag===1)return v.Return(void 0);{const r=Ee(",",Ct(o=>o.DisplayName,n.fields[0].ColumnsInfo));return v.Bind(Qa(r,"schema.csv"),()=>v.Return(void 0))}}))}function Dh(e,t){return new Ch((n,r)=>{e(new xe(0,[n]))},n=>{e(new xe(1,[]))},(n,r)=>{e(new xe(2,[n]))},n=>{e(new xe(3,[]))},(n,r,o)=>{Co(Eh(n,r,t))},n=>{Co(kh(t))},(n,r)=>{e(new xe(5,[new rt(0,[n])]))})}const Ih=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Wa=pe(Ih),k=Kr;function Th(e){return Ee(", ",Ct(Io,Ct(t=>t.Stage,e.CompletedStages)))}function Rh(e){let t,n,r,o,i,s,a;const u=e.userActions,l=e.pastImports;return p("div",M(C([["className","-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(t=[p("div",M(C([["className","inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"],(n=[p("div",M(C([["className","overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg"],(r=[p("table",M(C([["className","min-w-full divide-y divide-gray-300"],(o=[p("thead",M(C([["className","bg-gray-100"],(i=[(s=C([p("th",{scope:"col",className:"py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6",children:"Import ID"}),p("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Date"}),p("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"User"}),p("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"# of Records"}),p("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Stages"}),p("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Invites sent"})]),p("tr",{children:k.Children.toArray(Array.from(s))}))],["children",k.Children.toArray(Array.from(i))])]))),p("tbody",M(C([["className","divide-y divide-gray-200 bg-white"],(a=mt(O(()=>lr(f=>{let c;const m=Th(f),d=Ds(f.BenefitsRequests)>0?"Yes":"No";return N(p("tr",M(C([["key",f.ImportId],["className","cursor-pointer hover:bg-gray-50"],["onClick",Ye(u.ShowImportSummary)(f)],(c=[p("td",{className:"whitespace-nowrap py-4 pl-4 pr-3 text-sm text-gray-500 sm:pl-6",children:f.ImportId}),p("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:pe(f.StartTime)}),p("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:f.User}),p("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:f.NumberOfRecords}),p("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:m}),p("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:d})],["children",k.Children.toArray(Array.from(c))])]))))},l))),["children",k.Children.toArray(Array.from(a))])])))],["children",k.Children.toArray(Array.from(o))])])))],["children",k.Children.toArray(Array.from(r))])])))],["children",k.Children.toArray(Array.from(n))])])))],["children",k.Children.toArray(Array.from(t))])])))}function Ja(e){let t,n,r;const o=e.userActions,i=e.import;return p("div",M(C([["className","text-center"],(t=[p("p",{children:[`Import ID: ${i.ImportId}`]}),p("p",{children:[`Creator: ${i.User}`]}),p("p",{children:[`Filename: ${i.Filename}`]}),p("p",{children:[`Date started: ${pe(i.StartTime)}`]}),p("p",{children:[`Date completed: ${pe(i.StopTime)}`]}),p("p",{children:[`Total rows: ${i.NumberOfRecords}`]}),p("div",M(C([["className","mt-4"],(n=mt(O(()=>{let s;return ce(N((s=re(p("b",{children:["Completed stages"]})),p("p",{children:k.Children.toArray(Array.from(s))}))),O(()=>lr(a=>{let u;const l=Io(a.Stage);return N(p("div",M(C([["className","mt-4"],(u=mt(O(()=>ce(N(p("p",{children:[`Stage: ${l}`]})),O(()=>ce(N(p("p",{children:[`Row count: ${a.InputRowCount}`]})),O(()=>ce(N(p("p",{children:[`Successful count: ${a.SucceededRowCount}`]})),O(()=>ce(N(p("p",{children:[`Failed count: ${a.FailedRowCount}`]})),O(()=>ce(N(p("p",{children:[`Date started: ${pe(a.StartTime)}`]})),O(()=>ce(N(p("p",{children:[`Date completed: ${pe(a.StopTime)}`]})),O(()=>{let f;return a.FailedRowCount>0?N(p("button",M(C([["type","button"],["children","Download Errors"],(f="mt-4 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",["className",f]),["onClick",Wn(o.DownloadStageFailures)(i.ImportId)(l)]])))):Hs()})))))))))))))),["children",k.Children.toArray(Array.from(u))])]))))},i.CompletedStages)))})),["children",k.Children.toArray(Array.from(n))])]))),p("button",M(C([["type","button"],["children","Done"],(r="mt-4 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",["className",r]),["onClick",o.ShowImportHistory]])))],["children",k.Children.toArray(Array.from(t))])])))}function Mh(e){const t=e.userActions,n=e.state,r=n.ImportSummary;return r==null?p(Rh,{pastImports:n.PastImports,userActions:t}):p(Ja,{import:r,userActions:t})}const qa="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAAxADcDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDz/wCKH7XPxUvfiT4glb4keOYy+o3B2Ra5cxxr+8bhVVwFA9AMCsL/AIav+KX/AEUrx/8A+FDd/wDxyuY+In/JQNd/7CFx/wCjGrHr6WMY22PmXKV9z6y/4J2/8FK/GX7P/wC01o994w8XeIvEHhHVz/ZurQapqU12lvFIwxOgkZtrRsFbIxldw71+8Vlew6lZw3FvIk0FwgkjkQ5V1IyCD6EHNfy11754I/4Ki/Hz4c+ENN0HR/iTrFrpOj2yWlnA1vbTeREg2ogZ42YhVAAyTgADtXJisH7R80NDswuM9muWep/Q5RX8/H/D3j9o7/oqGq/+ANn/APGaP+HvH7R3/RUNV/8AAGz/APjNcv8AZ1Tujq/tGn2Z/QPRX4//APBLf/gpb8aPjF+2Hofhvxd4zuPEWh6ja3jTWtzaQIN0dvJIpDRopBDKO9FctahKnLlZ1Ua8akeZH5//ABE/5KBrv/YQuP8A0Y1Y9bHxE/5KBrv/AGELj/0Y1Y9fQx2PnQr74/b28C+G9A/4JT/s76xpvh/Q9P1jWIoftt/bWMUN1eFbYg+ZIqhn55+YnmvgevvX9vPUvtP/AASP/ZhXP3hcr/3wpWsK3xQ9f0Oij8M/T9UfBVFFFdBzn1D/AMEcv+T+/Cn/AF6ah/6SS0Uf8Ecv+T+/Cn/XpqH/AKSS0V5GO/ifI9fA/wAP5nzt8RP+Sga7/wBhC4/9GNWPXdftL/C7W/g38d/FXh/xBYXGn6jZ6lOSk0ZTzEMjFJF9VZcEEcEGuFr1Y7Hky0dmFe8fHf8AaX8RfEv9jv4S+BdQ8H3Wj6D4La8/s3W38zy9aLvlwu5AnyE4O1mx3xXg9enfE79rvxp8XfgV4N+HetXVlL4b8C7hpaR2qxzKCMAO45bA4H15zSlG7TKjKyZ5jRRRVkH1D/wRy/5P78Kf9emof+kktFdX/wAENvg3rvxC/bVsdbsbOY6L4bsbp9Rvdh8m3MsDxRoT03MzcDrhWPaivHx8l7T5HsYGL9n8z2z/AIOK/wDkevCX/YNT/wBHT1+Y9FFd+D/hI4cZ/FYUUUV0nKFFFFAH7r/8ERP+TJ7D/r7b/wBASiiivncR/El6n0WH/hx9D//Z";var Za={exports:{}},Fh="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Oh=Fh,Ph=Oh;function Ka(){}function Xa(){}Xa.resetWarningCache=Ka;var Nh=function(){function e(r,o,i,s,a,u){if(u!==Ph){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Xa,resetWarningCache:Ka};return n.PropTypes=n,n};Za.exports=Nh();var Bh=Za.exports;const $=ah(Bh);function rn(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(f){try{l(r.next(f))}catch(c){s(c)}}function u(f){try{l(r.throw(f))}catch(c){s(c)}}function l(f){f.done?i(f.value):o(f.value).then(a,u)}l((r=r.apply(e,t||[])).next())})}function on(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(f){return u([l,f])}}function u(l){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(n=0)),n;)try{if(r=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(l[0]===6&&n.label<i[1]){n.label=i[1],i=l;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(l);break}i[2]&&n.ops.pop(),n.trys.pop();continue}l=t.call(e,n)}catch(f){l=[6,f],o=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Ya(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function el(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var jh=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Fn(e,t){var n=Hh(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function Hh(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=jh.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var $h=[".DS_Store","Thumbs.db"];function Vh(e){return rn(this,void 0,void 0,function(){return on(this,function(t){return mr(e)&&Uh(e.dataTransfer)?[2,Qh(e.dataTransfer,e.type)]:Lh(e)?[2,zh(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,Gh(e)]:[2,[]]})})}function Uh(e){return mr(e)}function Lh(e){return mr(e)&&mr(e.target)}function mr(e){return typeof e=="object"&&e!==null}function zh(e){return Fo(e.target.files).map(function(t){return Fn(t)})}function Gh(e){return rn(this,void 0,void 0,function(){var t;return on(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return Fn(r)})]}})})}function Qh(e,t){return rn(this,void 0,void 0,function(){var n,r;return on(this,function(o){switch(o.label){case 0:return e.items?(n=Fo(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(Wh))]):[3,2];case 1:return r=o.sent(),[2,tl(nl(r))];case 2:return[2,tl(Fo(e.files).map(function(i){return Fn(i)}))]}})})}function tl(e){return e.filter(function(t){return $h.indexOf(t.name)===-1})}function Fo(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function Wh(e){if(typeof e.webkitGetAsEntry!="function")return rl(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?ol(t):rl(e)}function nl(e){return e.reduce(function(t,n){return el(el([],Ya(t),!1),Ya(Array.isArray(n)?nl(n):[n]),!1)},[])}function rl(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Fn(t);return Promise.resolve(n)}function Jh(e){return rn(this,void 0,void 0,function(){return on(this,function(t){return[2,e.isDirectory?ol(e):qh(e)]})})}function ol(e){var t=e.createReader();return new Promise(function(n,r){var o=[];function i(){var s=this;t.readEntries(function(a){return rn(s,void 0,void 0,function(){var u,l,f;return on(this,function(c){switch(c.label){case 0:if(a.length)return[3,5];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return u=c.sent(),n(u),[3,4];case 3:return l=c.sent(),r(l),[3,4];case 4:return[3,6];case 5:f=Promise.all(a.map(Jh)),o.push(f),i(),c.label=6;case 6:return[2]}})})},function(a){r(a)})}i()})}function qh(e){return rn(this,void 0,void 0,function(){return on(this,function(t){return[2,new Promise(function(n,r){e.file(function(o){var i=Fn(o,e.fullPath);n(i)},function(o){r(o)})})]})})}var Zh=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some(function(s){var a=s.trim().toLowerCase();return a.charAt(0)==="."?r.toLowerCase().endsWith(a):a.endsWith("/*")?i===a.replace(/\/.*$/,""):o===a})}return!0};function il(e){return Yh(e)||Xh(e)||cl(e)||Kh()}function Kh(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
34
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
35
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cl(e,t){if(e){if(typeof e=="string")return
|
|
36
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
37
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wl(e,t){if(e){if(typeof e=="string")return No(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return No(e,t)}}function No(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function km(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,s,a;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(u){i=!0,a=u}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function Dm(e){if(Array.isArray(e))return e}function _l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_l(Object(n),!0).forEach(function(r){Bo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_l(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _r(e,t){if(e==null)return{};var n=Im(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Im(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var jo=Lr(function(e,t){var n=e.children,r=_r(e,_m),o=bl(r),i=o.open,s=_r(o,ym);return $n(t,function(){return{open:i}},[i]),Kr.createElement(be,null,n(J(J({},s),{},{open:i})))});jo.displayName="Dropzone";var yl={disabled:!1,getFilesFromEvent:Vh,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};jo.defaultProps=yl,jo.propTypes={children:$.func,accept:$.objectOf($.arrayOf($.string)),multiple:$.bool,preventDropOnDocument:$.bool,noClick:$.bool,noKeyboard:$.bool,noDrag:$.bool,noDragEventsBubbling:$.bool,minSize:$.number,maxSize:$.number,maxFiles:$.number,disabled:$.bool,getFilesFromEvent:$.func,onFileDialogCancel:$.func,onFileDialogOpen:$.func,useFsAccessApi:$.bool,autoFocus:$.bool,onDragEnter:$.func,onDragLeave:$.func,onDragOver:$.func,onDrop:$.func,onDropAccepted:$.func,onDropRejected:$.func,onError:$.func,validator:$.func};var Ho={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function bl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=J(J({},yl),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,a=t.multiple,u=t.maxFiles,l=t.onDragEnter,f=t.onDragLeave,c=t.onDragOver,m=t.onDrop,d=t.onDropAccepted,g=t.onDropRejected,_=t.onFileDialogCancel,w=t.onFileDialogOpen,y=t.useFsAccessApi,S=t.autoFocus,I=t.preventDropOnDocument,oe=t.noClick,Y=t.noKeyboard,je=t.noDrag,Se=t.noDragEventsBubbling,Rt=t.onError,ie=t.validator,it=Ve(function(){return mm(n)},[n]),El=Ve(function(){return hm(n)},[n]),Vo=Ve(function(){return typeof w=="function"?w:Al},[w]),yr=Ve(function(){return typeof _=="function"?_:Al},[_]),ye=xt(null),He=xt(null),o0=pn(Tm,Ho),kl=Po(o0,2),Uo=kl[0],Te=kl[1],i0=Uo.isFocused,Dl=Uo.isFileDialogActive,br=xt(typeof window<"u"&&window.isSecureContext&&y&&pm()),Il=function(){!br.current&&Dl&&setTimeout(function(){if(He.current){var D=He.current.files;D.length||(Te({type:"closeDialog"}),yr())}},300)};_t(function(){return window.addEventListener("focus",Il,!1),function(){window.removeEventListener("focus",Il,!1)}},[He,Dl,yr,br]);var sn=xt([]),Tl=function(D){ye.current&&ye.current.contains(D.target)||(D.preventDefault(),sn.current=[])};_t(function(){return I&&(document.addEventListener("dragover",hl,!1),document.addEventListener("drop",Tl,!1)),function(){I&&(document.removeEventListener("dragover",hl),document.removeEventListener("drop",Tl))}},[ye,I]),_t(function(){return!r&&S&&ye.current&&ye.current.focus(),function(){}},[ye,S,r]);var Mt=de(function(A){Rt?Rt(A):console.error(A)},[Rt]),Rl=de(function(A){A.preventDefault(),A.persist(),Sr(A),sn.current=[].concat(vm(sn.current),[A.target]),wr(A)&&Promise.resolve(o(A)).then(function(D){if(!(gr(A)&&!Se)){var K=D.length,fe=K>0&&cm({files:D,accept:it,minSize:s,maxSize:i,multiple:a,maxFiles:u,validator:ie}),Re=K>0&&!fe;Te({isDragAccept:fe,isDragReject:Re,isDragActive:!0,type:"setDraggedFiles"}),l&&l(A)}}).catch(function(D){return Mt(D)})},[o,l,Mt,Se,it,s,i,a,u,ie]),Ml=de(function(A){A.preventDefault(),A.persist(),Sr(A);var D=wr(A);if(D&&A.dataTransfer)try{A.dataTransfer.dropEffect="copy"}catch{}return D&&c&&c(A),!1},[c,Se]),Fl=de(function(A){A.preventDefault(),A.persist(),Sr(A);var D=sn.current.filter(function(fe){return ye.current&&ye.current.contains(fe)}),K=D.indexOf(A.target);K!==-1&&D.splice(K,1),sn.current=D,!(D.length>0)&&(Te({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),wr(A)&&f&&f(A))},[ye,f,Se]),Ar=de(function(A,D){var K=[],fe=[];A.forEach(function(Re){var Pn=dl(Re,it),cn=Po(Pn,2),zo=cn[0],Go=cn[1],Qo=pl(Re,s,i),Cr=Po(Qo,2),Wo=Cr[0],Jo=Cr[1],qo=ie?ie(Re):null;if(zo&&Wo&&!qo)K.push(Re);else{var Zo=[Go,Jo];qo&&(Zo=Zo.concat(qo)),fe.push({file:Re,errors:Zo.filter(function(c0){return c0})})}}),(!a&&K.length>1||a&&u>=1&&K.length>u)&&(K.forEach(function(Re){fe.push({file:Re,errors:[lm]})}),K.splice(0)),Te({acceptedFiles:K,fileRejections:fe,type:"setFiles"}),m&&m(K,fe,D),fe.length>0&&g&&g(fe,D),K.length>0&&d&&d(K,D)},[Te,a,it,s,i,u,m,d,g,ie]),vr=de(function(A){A.preventDefault(),A.persist(),Sr(A),sn.current=[],wr(A)&&Promise.resolve(o(A)).then(function(D){gr(A)&&!Se||Ar(D,A)}).catch(function(D){return Mt(D)}),Te({type:"reset"})},[o,Ar,Mt,Se]),an=de(function(){if(br.current){Te({type:"openDialog"}),Vo();var A={multiple:a,types:El};window.showOpenFilePicker(A).then(function(D){return o(D)}).then(function(D){Ar(D,null),Te({type:"closeDialog"})}).catch(function(D){gm(D)?(yr(D),Te({type:"closeDialog"})):wm(D)?(br.current=!1,He.current?(He.current.value=null,He.current.click()):Mt(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):Mt(D)});return}He.current&&(Te({type:"openDialog"}),Vo(),He.current.value=null,He.current.click())},[Te,Vo,yr,y,Ar,Mt,El,a]),Ol=de(function(A){!ye.current||!ye.current.isEqualNode(A.target)||(A.key===" "||A.key==="Enter"||A.keyCode===32||A.keyCode===13)&&(A.preventDefault(),an())},[ye,an]),Pl=de(function(){Te({type:"focus"})},[]),Nl=de(function(){Te({type:"blur"})},[]),Bl=de(function(){oe||(dm()?setTimeout(an,0):an())},[oe,an]),ln=function(D){return r?null:D},Lo=function(D){return Y?null:ln(D)},xr=function(D){return je?null:ln(D)},Sr=function(D){Se&&D.stopPropagation()},s0=Ve(function(){return function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=A.refKey,K=D===void 0?"ref":D,fe=A.role,Re=A.onKeyDown,Pn=A.onFocus,cn=A.onBlur,zo=A.onClick,Go=A.onDragEnter,Qo=A.onDragOver,Cr=A.onDragLeave,Wo=A.onDrop,Jo=_r(A,bm);return J(J(Bo({onKeyDown:Lo(ot(Re,Ol)),onFocus:Lo(ot(Pn,Pl)),onBlur:Lo(ot(cn,Nl)),onClick:ln(ot(zo,Bl)),onDragEnter:xr(ot(Go,Rl)),onDragOver:xr(ot(Qo,Ml)),onDragLeave:xr(ot(Cr,Fl)),onDrop:xr(ot(Wo,vr)),role:typeof fe=="string"&&fe!==""?fe:"presentation"},K,ye),!r&&!Y?{tabIndex:0}:{}),Jo)}},[ye,Ol,Pl,Nl,Bl,Rl,Ml,Fl,vr,Y,je,r]),a0=de(function(A){A.stopPropagation()},[]),l0=Ve(function(){return function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=A.refKey,K=D===void 0?"ref":D,fe=A.onChange,Re=A.onClick,Pn=_r(A,Am),cn=Bo({accept:it,multiple:a,type:"file",style:{display:"none"},onChange:ln(ot(fe,vr)),onClick:ln(ot(Re,a0)),tabIndex:-1},K,He);return J(J({},cn),Pn)}},[He,n,a,vr,r]);return J(J({},Uo),{},{isFocused:i0&&!r,getRootProps:s0,getInputProps:l0,rootRef:ye,inputRef:He,open:ln(an)})}function Tm(e,t){switch(t.type){case"focus":return J(J({},e),{},{isFocused:!0});case"blur":return J(J({},e),{},{isFocused:!1});case"openDialog":return J(J({},Ho),{},{isFileDialogActive:!0});case"closeDialog":return J(J({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return J(J({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return J(J({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return J({},Ho);default:return e}}function Al(){}const Rm="data:image/jpeg;base64,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",Mm="data:image/jpeg;base64,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";var Fm=0;function ue(e,t,n,r,o,i){t||(t={});var s,a,u=t;if("ref"in u)for(a in u={},t)a=="ref"?s=t[a]:u[a]=t[a];var l={type:e,props:u,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Fm,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)u[a]===void 0&&(u[a]=s[a]);return R.vnode&&R.vnode(l),l}function Om({onCancel:e,onSubmit:t,onFileDrop:n}){const r=de(c=>{const m=c[0];n(m,m.path)},[]),{getRootProps:o,getInputProps:i,open:s,acceptedFiles:a,fileRejections:u}=bl({onDrop:r,accept:{"text/csv":[".csv"]},maxFiles:1,noClick:!0,noKeyboard:!0,multiple:!1,maxSize:4e6}),l=a.map(c=>ue("p",{children:c.path},c.path)),f=u.map(({file:c,errors:m})=>ue("li",{children:[c.path," - ",c.size," bytes",ue("ul",{children:m.map(d=>ue("li",{children:d.message},d.code))})]},c.path));return ue("div",{...o(),children:[ue("input",{...i(),name:"file"}),ue("img",{src:l.length?Mm:Rm,className:"mx-auto mb-2"}),u.length?ue("div",{className:"mb-2",children:[ue("div",{className:"mb-2 font-semibold",children:"Rejected files"}),ue("ul",{children:f})]}):ue(be,{}),l.length?ue(be,{children:[l,ue("button",{type:"reset",onClick:e,className:"mt-6 mr-6 rounded-md bg-white px-3.5 py-2.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:"Cancel"}),ue("button",{type:"button",onClick:t,className:"rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Import file"})]}):ue(be,{children:[ue("p",{className:"mb-6 text-gray-500",children:"Drag a file to upload"}),ue("button",{type:"button",onClick:s,className:"rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Browse"})]})]})}const Pm=qa;function Nm(e){let t;const n=k.useState(!1),r=n[1],o=k.useState(0),i=o[0]|0;let s;const a=new FormData;s=k.useState(a);const u=s[0],l=k.useState("profiles");return p("form",M(C([["key",i],(t=mt(O(()=>ce(N(p("label",{for:"importStages"})),O(()=>{let f;return ce(N(p("select",M(C([["className","m-2"],["name","importStages"],["id","importStages"],(f=[p("option",{children:"Profiles",value:"profiles"}),p("option",{children:"Profiles and Tax",value:"profiles,tax"})],["children",k.Children.toArray(Array.from(f))]),["onChange",c=>{l[1](c.target.value)}]])))),O(()=>ce(N(p(Om,{onCancel:()=>{o[1](i+1),s[1](new FormData)},onSubmit:()=>{r(!0)},onFileDrop:(c,m)=>{u.set("file",c,m)}})),O(()=>{let c,m,d,g,_,w,y,S,I,oe,Y;return n[0]?N((c=C([p("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75"}),p("div",M(C([["className","fixed inset-0 z-10 overflow-y-auto"],(m=[p("div",M(C([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(d=[p("div",M(C([(g="relative overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl sm:my-8 sm:w-full sm:max-w-lg sm:p-6",["className",g]),(_=[(w=C([p("div",M(C([["className","mt-3 text-center sm:mt-5 space-y-6"],(y=[p("img",{src:Pm,className:"mx-auto"}),p("p",{children:["Please check and confirm this file is being uploaded to the correct account."]}),p("p",{children:["Uploading files to the wrong account can cause a security breach."]})],["children",k.Children.toArray(Array.from(y))])]))),p("div",M(C([["className","mt-5 sm:mt-6 sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3"],(S=[p("button",M(C([["type","button"],(I="inline-flex w-full justify-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 sm:col-start-2",["className",I]),["children","I confirm"],["onClick",Ye(e.RequestStartImport)((oe=co(l[0],[","],void 0,0),(()=>{for(let je=0;je<=oe.length-1;je++){const Se=ae(je,oe);u.append("importStages",Se)}})(),u))]]))),p("button",M(C([["type","button"],(Y="mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:col-start-1 sm:mt-0",["className",Y]),["children","Cancel"],["onClick",je=>{r(!1)}]])))],["children",k.Children.toArray(Array.from(S))])])))]),p("div",{children:k.Children.toArray(Array.from(w))}))],["children",k.Children.toArray(Array.from(_))])])))],["children",k.Children.toArray(Array.from(d))])])))],["children",k.Children.toArray(Array.from(m))])])))]),p("div",{children:k.Children.toArray(Array.from(c))}))):Hs()}))))})))),["children",k.Children.toArray(Array.from(t))])])))}const vl="data:image/jpeg;base64,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",Bm=vl;function jm(){const e=C([p("img",{src:Bm,className:"mx-auto animate-spin"}),p("p",{className:"mt-2",children:"Validating data"})]);return p("div",{children:k.Children.toArray(Array.from(e))})}const Hm=qa;function $m(e,t,n){let r;return p("a",{className:"font-medium text-blue-600 underline cursor-pointer",href:(r=new Blob([e],{type:"text/csv;charset=utf-8;"}),window.URL.createObjectURL(r)),download:t,children:n})}function xl(e,t){let n;return p("p",M(C([["className","mt-6"],(n=["Download the full error report ",$m(Ee(`\r
|
|
38
|
-
`,
|
|
32
|
+
*/var cn=wh;function gh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _h=typeof Object.is=="function"?Object.is:gh,yh=cn.useState,bh=cn.useEffect,Ah=cn.useLayoutEffect,vh=cn.useDebugValue;function xh(e,t){var n=t(),r=yh({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Ah(function(){o.value=n,o.getSnapshot=t,No(o)&&i({inst:o})},[e,n,t]),bh(function(){return No(o)&&i({inst:o}),e(function(){No(o)&&i({inst:o})})},[e]),vh(n),n}function No(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_h(e,n)}catch{return!0}}function Ch(e,t){return t()}var Sh=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Ch:xh;za.useSyncExternalStore=cn.useSyncExternalStore!==void 0?cn.useSyncExternalStore:Sh,La.exports=za;var Eh=La.exports;class kh{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),i=[];this.finalDispatch=void 0;let s;const a=uh(o)(this.arg);let u=a[0],l=a[1];s=[[u,f=>{const c=this.finalDispatch;c==null?i.push(f):c(f)},!1,i],l],this.state=s[0],this.cmd=s[1],this.subscribe=f=>{let c=!1;const m=ro(this.state[0]);return ph(this.arg,ch((p,w)=>{const _=this.state;this.finalDispatch=w,this.state=[p,_[1],!0,i],p!==_[0]&&f()},fh((p,w)=>{const _=this.cmd;return this.cmd=ke(),[this.state[0],_]},(p,w,_)=>p(w)(this.state[0]),ao(p=>p),ao(p=>p),z(p=>p),p=>[w=>p[0](w)?!0:m&&c,w=>{const _=w;ro(_)?Z(_):p[1](w)}],o))),()=>{c=!0}}}}function Ga(e,t,n){return new kh(e,t,n)}function Ih(e){return e.state}function Dh(e){return e.subscribe}function Th(e,t,n){return Ee(e.arg,t)?!Ee(e.dependencies,n):!0}function Rh(e,t,n){const r=Ut(()=>Ga(e,t,n)),o=r[0];Th(o,t,n)&&r[1](Ga(e,t,n));const i=Eh.useSyncExternalStore(Dh(o),()=>Ih(o)),s=i[2],a=i[3],u=i[1];return bt(()=>{if(s&&a.length>0){let l=te(a);try{for(;l["System.Collections.IEnumerator.MoveNext"]();){const f=l["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{u(f)})}}finally{Z(l)}yc(a)}},[s,a]),[i[0],u]}function Wa(e,t){return A.Delay(()=>{const n=document.createElement("a");let r;const o=new Blob([e],{type:"text/csv;charset=utf-8;"});return r=window.URL.createObjectURL(o),n.setAttribute("href",r),n.setAttribute("download",t),document.body.appendChild(n),n.click(),document.body.removeChild(n),A.Zero()})}class Mh extends Q{constructor(t,n,r,o,i,s,a,u,l){super(),this.SetCurrentTab=t,this.SelectFile=n,this.ShowImportSummary=r,this.ShowImportHistory=o,this.DownloadStageFailures=i,this.DownloadSchema=s,this.RequestStartImport=a,this.SendInvites=u,this.RevokeInvites=l}}function Fh(e,t,n){return A.Delay(()=>A.Bind(Rp(n,e,t),r=>{const o=r;if(o.tag===1)return A.Return(void 0);{const i=Re(`\r
|
|
33
|
+
`,Rn(q("Row,Reason"),xt(s=>Re(",",wt(a=>`"${a}"`,wt(a=>xs(a,'"','""'),[ot(s.RowId),s.Reason]))),o.fields[0].FailedRows)));return A.Bind(Wa(i,`${t}_stage_failed_rows.csv`),()=>A.Return(void 0))}}))}function Oh(e){return A.Delay(()=>A.Bind(Dp(e),t=>{const n=t;if(n.tag===1)return A.Return(void 0);{const r=Re(",",xt(o=>o.DisplayName,n.fields[0].ColumnsInfo));return A.Bind(Wa(r,"schema.csv"),()=>A.Return(void 0))}}))}function Nh(e,t){return new Mh((n,r)=>{e(new ne(0,[n]))},n=>{e(new ne(1,[]))},(n,r)=>{e(new ne(2,[n]))},n=>{e(new ne(3,[]))},(n,r,o)=>{To(Fh(n,r,t))},n=>{To(Oh(t))},(n,r)=>{e(new ne(5,[new ge(0,[n])]))},(n,r)=>{e(new ne(7,[new ge(0,[n])]))},(n,r)=>{e(new ne(8,[new ge(0,[n])]))})}const Ph=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Qa=ie(Ph),C=no;function Bh(e){return Re(", ",xt(Mo,xt(t=>t.Stage,e.CompletedStages)))}function jh(e){let t,n,r,o,i,s,a;const u=e.userActions,l=e.pastImports;return d("div",I(x([["className","-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(t=[d("div",I(x([["className","inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"],(n=[d("div",I(x([["className","overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg"],(r=[d("table",I(x([["className","min-w-full divide-y divide-gray-300"],(o=[d("thead",I(x([["className","bg-gray-100"],(i=[(s=x([d("th",{scope:"col",className:"py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6",children:"Import ID"}),d("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Date"}),d("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"User"}),d("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"# of Records"}),d("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Stages"}),d("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Invites sent"}),d("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Has errors"})]),d("tr",{children:C.Children.toArray(Array.from(s))}))],["children",C.Children.toArray(Array.from(i))])]))),d("tbody",I(x([["className","divide-y divide-gray-200 bg-white"],(a=Xe(M(()=>Mn(f=>{let c;const m=Bh(f),p=Dn(f.BenefitsRequests)>0?"Yes":"No",w=Ke((_,g)=>_+g,0,xt(_=>_.FailedRowCount,f.CompletedStages))>0?"Yes":"No";return R(d("tr",I(x([["key",f.ImportId],["className","cursor-pointer hover:bg-gray-50"],["onClick",$e(u.ShowImportSummary)(f)],(c=[d("td",{className:"whitespace-nowrap py-4 pl-4 pr-3 text-sm text-gray-500 sm:pl-6",children:f.ImportId}),d("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:ie(f.StartTime)}),d("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:f.User}),d("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:f.NumberOfRecords}),d("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:m}),d("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:p}),d("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:w})],["children",C.Children.toArray(Array.from(c))])]))))},l))),["children",C.Children.toArray(Array.from(a))])])))],["children",C.Children.toArray(Array.from(o))])])))],["children",C.Children.toArray(Array.from(r))])])))],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}const $h="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='40'%20height='40'%20rx='4'%20fill='url(%23paint0_linear_764_3086)'/%3e%3cpath%20d='M29%2011L17%2023'%20stroke='%232563EB'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M29%2011L22%2031L17%2023L9%2018L29%2011Z'%20stroke='%23111827'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_764_3086'%20x1='40'%20y1='5.71311e-06'%20x2='4.50001'%20y2='35.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23D6E2FC'/%3e%3cstop%20offset='1'%20stop-color='%23D6E2FC'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";function Hh(e){let t,n,r,o,i,s,a,u,l,f,c,m;const p=e.onCancel,w=e.onConfirm,_=e.actionName,g=e.text,y=e.title,S=x([d("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75"}),d("div",I(x([["className","fixed inset-0 z-10 overflow-y-auto"],(t=[d("div",I(x([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(n=[d("div",I(x([(r="relative overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl sm:my-8 sm:w-full sm:max-w-lg sm:p-6",["className",r]),(o=[(i=x([d("div",I(x([["className","mt-3 text-center sm:mt-5 space-y-6"],(s=[d("img",{src:$h,className:"mx-auto"}),d("div",I(q((a=[(u=q(d("b",{children:[y]})),d("p",{children:C.Children.toArray(Array.from(u))}))],["children",C.Children.toArray(Array.from(a))])))),d("div",I(x([["className","mt-2 text-left"],(l=[d("p",{children:[g]})],["children",C.Children.toArray(Array.from(l))])])))],["children",C.Children.toArray(Array.from(s))])]))),d("div",I(x([["className","mt-5 sm:mt-6 sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3"],(f=[d("button",I(x([["type","button"],(c="inline-flex w-full justify-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 sm:col-start-2",["className",c]),["children",_],["onClick",w]]))),d("button",I(x([["type","button"],(m="mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:col-start-1 sm:mt-0",["className",m]),["children","Cancel"],["onClick",p]])))],["children",C.Children.toArray(Array.from(f))])])))]),d("div",{children:C.Children.toArray(Array.from(i))}))],["children",C.Children.toArray(Array.from(o))])])))],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))]);return d("div",{children:C.Children.toArray(Array.from(S))})}class Uh extends Q{constructor(t,n,r,o,i){super(),this.Title=t,this.Text=n,this.ActionName=r,this.OnConfirm=o,this.OnCancel=i}}function qa(e){let t;const n=e.userActions,r=e.import,o=C.useState(void 0),i=o[1],s=(l,f,c,m)=>new Uh(l,f,c,p=>{m(p),i(void 0)},p=>{i(void 0)}),a="All profiles will receive an invite to workplace benefits in this import. You can't undo this action",u=ju(l=>l.RequestedAt,r.BenefitsRequests,{Compare:lu});return d("div",I(x([["className","text-center"],(t=Xe(M(()=>$(R(d("p",{children:[`Import ID: ${r.ImportId}`]})),M(()=>$(R(d("p",{children:[`Creator: ${r.User}`]})),M(()=>$(R(d("p",{children:[`Filename: ${r.Filename}`]})),M(()=>$(R(d("p",{children:[`Date started: ${ie(r.StartTime)}`]})),M(()=>$(R(d("p",{children:[`Date completed: ${ie(r.StopTime)}`]})),M(()=>$(R(d("p",{children:[`Total rows: ${r.NumberOfRecords}`]})),M(()=>{let l,f;return $(R(d("div",I(q((l=[d("button",I(x([["type","button"],["children",Dn(u)===0?"Send Benefits Invites":"Resend Benefits Invites"],(f="mt-4 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",["className",f]),["onClick",c=>{i(s("Send invites to Flare Benefits",a,"Send Invites",$e(n.SendInvites)(r.ImportId)))}]])))],["children",C.Children.toArray(Array.from(l))]))))),M(()=>{let c,m;return $(Dn(u)>0?R(d("div",I(q((c=[d("button",I(x([["type","button"],["children","Revoke Benefits Invites"],(m="mt-4 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",["className",m]),["onClick",p=>{i(s("Revoke invites to Flare Benefits","All invites to workplace benefits in this import will be revoked. You can't undo this action","Revoke Invites",$e(n.RevokeInvites)(r.ImportId)))}]])))],["children",C.Children.toArray(Array.from(c))]))))):pr(),M(()=>{let p,w,_,g,y,S;return $((p=o[0],p==null?R(At()):(w=p.Title,_=p.Text,g=p.OnConfirm,y=p.OnCancel,S=p.ActionName,R(d(Hh,{title:w,text:_,actionName:S,onConfirm:g,onCancel:y})))),M(()=>{let T;return $(R(d("div",I(x([["className","mt-4"],(T=Xe(M(()=>{let J;return $(R((J=q(d("b",{children:["Completed stages"]})),d("p",{children:C.Children.toArray(Array.from(J))}))),M(()=>Mn(j=>{let ce;const H=Mo(j.Stage);return R(d("div",I(x([["className","mt-4"],(ce=Xe(M(()=>$(R(d("p",{children:[`Stage: ${H}`]})),M(()=>$(R(d("p",{children:[`Row count: ${j.InputRowCount}`]})),M(()=>$(R(d("p",{children:[`Successful count: ${j.SucceededRowCount}`]})),M(()=>$(R(d("p",{children:[`Failed count: ${j.FailedRowCount}`]})),M(()=>$(R(d("p",{children:[`Date started: ${ie(j.StartTime)}`]})),M(()=>$(R(d("p",{children:[`Date completed: ${ie(j.StopTime)}`]})),M(()=>{let at;return j.FailedRowCount>0?R(d("button",I(x([["type","button"],["children","Download Errors"],(at="mt-4 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",["className",at]),["onClick",Xn(n.DownloadStageFailures)(r.ImportId)(H)]])))):pr()})))))))))))))),["children",C.Children.toArray(Array.from(ce))])]))))},r.CompletedStages)))})),["children",C.Children.toArray(Array.from(T))])])))),M(()=>{let J,j,ce;return $(Dn(u)>0?R(d("div",I(x([["className","mt-4"],(J=[(j=q(d("b",{children:["Invite Log"]})),d("p",{children:C.Children.toArray(Array.from(j))})),d("div",I(x([["className","mt-4"],(ce=Xe(M(()=>Mn(H=>H.RequestType.tag===1?R(d("p",{children:[`${H.User} revoked invites of ${H.ProfileCount} users at ${ie(H.RequestedAt)}`]})):R(d("p",{children:[`${H.User} sent invites to ${H.ProfileCount} users at ${ie(H.RequestedAt)}`]})),u))),["children",C.Children.toArray(Array.from(ce))])])))],["children",C.Children.toArray(Array.from(J))])])))):pr(),M(()=>{let H;return R(d("button",I(x([["type","button"],["children","Done"],(H="mt-4 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",["className",H]),["onClick",n.ShowImportHistory]]))))}))}))}))}))}))})))))))))))))),["children",C.Children.toArray(Array.from(t))])])))}function Vh(e){const t=e.userActions,n=e.state,r=n.ImportSummary;return r==null?d(jh,{pastImports:n.PastImports,userActions:t}):d(qa,{import:r,userActions:t})}const Za="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAAxADcDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDz/wCKH7XPxUvfiT4glb4keOYy+o3B2Ra5cxxr+8bhVVwFA9AMCsL/AIav+KX/AEUrx/8A+FDd/wDxyuY+In/JQNd/7CFx/wCjGrHr6WMY22PmXKV9z6y/4J2/8FK/GX7P/wC01o994w8XeIvEHhHVz/ZurQapqU12lvFIwxOgkZtrRsFbIxldw71+8Vlew6lZw3FvIk0FwgkjkQ5V1IyCD6EHNfy11754I/4Ki/Hz4c+ENN0HR/iTrFrpOj2yWlnA1vbTeREg2ogZ42YhVAAyTgADtXJisH7R80NDswuM9muWep/Q5RX8/H/D3j9o7/oqGq/+ANn/APGaP+HvH7R3/RUNV/8AAGz/APjNcv8AZ1Tujq/tGn2Z/QPRX4//APBLf/gpb8aPjF+2Hofhvxd4zuPEWh6ja3jTWtzaQIN0dvJIpDRopBDKO9FctahKnLlZ1Ua8akeZH5//ABE/5KBrv/YQuP8A0Y1Y9bHxE/5KBrv/AGELj/0Y1Y9fQx2PnQr74/b28C+G9A/4JT/s76xpvh/Q9P1jWIoftt/bWMUN1eFbYg+ZIqhn55+YnmvgevvX9vPUvtP/AASP/ZhXP3hcr/3wpWsK3xQ9f0Oij8M/T9UfBVFFFdBzn1D/AMEcv+T+/Cn/AF6ah/6SS0Uf8Ecv+T+/Cn/XpqH/AKSS0V5GO/ifI9fA/wAP5nzt8RP+Sga7/wBhC4/9GNWPXdftL/C7W/g38d/FXh/xBYXGn6jZ6lOSk0ZTzEMjFJF9VZcEEcEGuFr1Y7Hky0dmFe8fHf8AaX8RfEv9jv4S+BdQ8H3Wj6D4La8/s3W38zy9aLvlwu5AnyE4O1mx3xXg9enfE79rvxp8XfgV4N+HetXVlL4b8C7hpaR2qxzKCMAO45bA4H15zSlG7TKjKyZ5jRRRVkH1D/wRy/5P78Kf9emof+kktFdX/wAENvg3rvxC/bVsdbsbOY6L4bsbp9Rvdh8m3MsDxRoT03MzcDrhWPaivHx8l7T5HsYGL9n8z2z/AIOK/wDkevCX/YNT/wBHT1+Y9FFd+D/hI4cZ/FYUUUV0nKFFFFAH7r/8ERP+TJ7D/r7b/wBASiiivncR/El6n0WH/hx9D//Z";var Ja={exports:{}},Lh="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",zh=Lh,Gh=zh;function Ka(){}function Xa(){}Xa.resetWarningCache=Ka;var Wh=function(){function e(r,o,i,s,a,u){if(u!==Gh){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Xa,resetWarningCache:Ka};return n.PropTypes=n,n};Ja.exports=Wh();var Qh=Ja.exports;const L=hh(Qh);function un(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(f){try{l(r.next(f))}catch(c){s(c)}}function u(f){try{l(r.throw(f))}catch(c){s(c)}}function l(f){f.done?i(f.value):o(f.value).then(a,u)}l((r=r.apply(e,t||[])).next())})}function fn(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(f){return u([l,f])}}function u(l){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(n=0)),n;)try{if(r=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(l[0]===6&&n.label<i[1]){n.label=i[1],i=l;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(l);break}i[2]&&n.ops.pop(),n.trys.pop();continue}l=t.call(e,n)}catch(f){l=[6,f],o=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Ya(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function el(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var qh=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function jn(e,t){var n=Zh(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function Zh(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=qh.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var Jh=[".DS_Store","Thumbs.db"];function Kh(e){return un(this,void 0,void 0,function(){return fn(this,function(t){return br(e)&&Xh(e.dataTransfer)?[2,nm(e.dataTransfer,e.type)]:Yh(e)?[2,em(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,tm(e)]:[2,[]]})})}function Xh(e){return br(e)}function Yh(e){return br(e)&&br(e.target)}function br(e){return typeof e=="object"&&e!==null}function em(e){return Po(e.target.files).map(function(t){return jn(t)})}function tm(e){return un(this,void 0,void 0,function(){var t;return fn(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return jn(r)})]}})})}function nm(e,t){return un(this,void 0,void 0,function(){var n,r;return fn(this,function(o){switch(o.label){case 0:return e.items?(n=Po(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(rm))]):[3,2];case 1:return r=o.sent(),[2,tl(nl(r))];case 2:return[2,tl(Po(e.files).map(function(i){return jn(i)}))]}})})}function tl(e){return e.filter(function(t){return Jh.indexOf(t.name)===-1})}function Po(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function rm(e){if(typeof e.webkitGetAsEntry!="function")return rl(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?ol(t):rl(e)}function nl(e){return e.reduce(function(t,n){return el(el([],Ya(t),!1),Ya(Array.isArray(n)?nl(n):[n]),!1)},[])}function rl(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=jn(t);return Promise.resolve(n)}function om(e){return un(this,void 0,void 0,function(){return fn(this,function(t){return[2,e.isDirectory?ol(e):im(e)]})})}function ol(e){var t=e.createReader();return new Promise(function(n,r){var o=[];function i(){var s=this;t.readEntries(function(a){return un(s,void 0,void 0,function(){var u,l,f;return fn(this,function(c){switch(c.label){case 0:if(a.length)return[3,5];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return u=c.sent(),n(u),[3,4];case 3:return l=c.sent(),r(l),[3,4];case 4:return[3,6];case 5:f=Promise.all(a.map(om)),o.push(f),i(),c.label=6;case 6:return[2]}})})},function(a){r(a)})}i()})}function im(e){return un(this,void 0,void 0,function(){return fn(this,function(t){return[2,new Promise(function(n,r){e.file(function(o){var i=jn(o,e.fullPath);n(i)},function(o){r(o)})})]})})}var sm=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some(function(s){var a=s.trim().toLowerCase();return a.charAt(0)==="."?r.toLowerCase().endsWith(a):a.endsWith("/*")?i===a.replace(/\/.*$/,""):o===a})}return!0};function il(e){return cm(e)||lm(e)||cl(e)||am()}function am(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
34
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lm(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cm(e){if(Array.isArray(e))return Bo(e)}function sl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function al(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sl(Object(n),!0).forEach(function(r){ll(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ll(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $n(e,t){return dm(e)||fm(e,t)||cl(e,t)||um()}function um(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
35
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cl(e,t){if(e){if(typeof e=="string")return Bo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bo(e,t)}}function Bo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fm(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,s,a;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(u){i=!0,a=u}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function dm(e){if(Array.isArray(e))return e}var pm="file-invalid-type",hm="file-too-large",mm="file-too-small",wm="too-many-files",gm=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:pm,message:"File type must be ".concat(n)}},ul=function(t){return{code:hm,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},fl=function(t){return{code:mm,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},_m={code:wm,message:"Too many files"};function dl(e,t){var n=e.type==="application/x-moz-file"||sm(e,t);return[n,n?null:gm(t)]}function pl(e,t,n){if(jt(e.size))if(jt(t)&&jt(n)){if(e.size>n)return[!1,ul(n)];if(e.size<t)return[!1,fl(t)]}else{if(jt(t)&&e.size<t)return[!1,fl(t)];if(jt(n)&&e.size>n)return[!1,ul(n)]}return[!0,null]}function jt(e){return e!=null}function ym(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles,a=e.validator;return!i&&t.length>1||i&&s>=1&&t.length>s?!1:t.every(function(u){var l=dl(u,n),f=$n(l,1),c=f[0],m=pl(u,r,o),p=$n(m,1),w=p[0],_=a?a(u):null;return c&&w&&!_})}function Ar(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function vr(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function hl(e){e.preventDefault()}function bm(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Am(e){return e.indexOf("Edge/")!==-1}function vm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return bm(e)||Am(e)}function st(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];return t.some(function(a){return!Ar(r)&&a&&a.apply(void 0,[r].concat(i)),Ar(r)})}}function xm(){return"showOpenFilePicker"in window}function Cm(e){if(jt(e)){var t=Object.entries(e).filter(function(n){var r=$n(n,2),o=r[0],i=r[1],s=!0;return ml(o)||(console.warn('Skipped "'.concat(o,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),s=!1),(!Array.isArray(i)||!i.every(wl))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),s=!1),s}).reduce(function(n,r){var o=$n(r,2),i=o[0],s=o[1];return al(al({},n),{},ll({},i,s))},{});return[{description:"Files",accept:t}]}return e}function Sm(e){if(jt(e))return Object.entries(e).reduce(function(t,n){var r=$n(n,2),o=r[0],i=r[1];return[].concat(il(t),[o],il(i))},[]).filter(function(t){return ml(t)||wl(t)}).join(",")}function Em(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function km(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function ml(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function wl(e){return/^.*\.[\w]+$/.test(e)}var Im=["children"],Dm=["open"],Tm=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Rm=["refKey","onChange","onClick"];function Mm(e){return Nm(e)||Om(e)||gl(e)||Fm()}function Fm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
36
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Om(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Nm(e){if(Array.isArray(e))return $o(e)}function jo(e,t){return jm(e)||Bm(e,t)||gl(e,t)||Pm()}function Pm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
37
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gl(e,t){if(e){if(typeof e=="string")return $o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $o(e,t)}}function $o(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bm(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,s,a;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(u){i=!0,a=u}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function jm(e){if(Array.isArray(e))return e}function _l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_l(Object(n),!0).forEach(function(r){Ho(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_l(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ho(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xr(e,t){if(e==null)return{};var n=$m(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $m(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Uo=qr(function(e,t){var n=e.children,r=xr(e,Im),o=bl(r),i=o.open,s=xr(o,Dm);return Gn(t,function(){return{open:i}},[i]),no.createElement(Se,null,n(Y(Y({},s),{},{open:i})))});Uo.displayName="Dropzone";var yl={disabled:!1,getFilesFromEvent:Kh,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Uo.defaultProps=yl,Uo.propTypes={children:L.func,accept:L.objectOf(L.arrayOf(L.string)),multiple:L.bool,preventDropOnDocument:L.bool,noClick:L.bool,noKeyboard:L.bool,noDrag:L.bool,noDragEventsBubbling:L.bool,minSize:L.number,maxSize:L.number,maxFiles:L.number,disabled:L.bool,getFilesFromEvent:L.func,onFileDialogCancel:L.func,onFileDialogOpen:L.func,useFsAccessApi:L.bool,autoFocus:L.bool,onDragEnter:L.func,onDragLeave:L.func,onDragOver:L.func,onDrop:L.func,onDropAccepted:L.func,onDropRejected:L.func,onError:L.func,validator:L.func};var Vo={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function bl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Y(Y({},yl),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,a=t.multiple,u=t.maxFiles,l=t.onDragEnter,f=t.onDragLeave,c=t.onDragOver,m=t.onDrop,p=t.onDropAccepted,w=t.onDropRejected,_=t.onFileDialogCancel,g=t.onFileDialogOpen,y=t.useFsAccessApi,S=t.autoFocus,T=t.preventDropOnDocument,J=t.noClick,j=t.noKeyboard,ce=t.noDrag,H=t.noDragEventsBubbling,at=t.onError,ue=t.validator,lt=Qe(function(){return Sm(n)},[n]),El=Qe(function(){return Cm(n)},[n]),zo=Qe(function(){return typeof g=="function"?g:Al},[g]),Cr=Qe(function(){return typeof _=="function"?_:Al},[_]),Ce=It(null),Ge=It(null),h0=yn(Hm,Vo),kl=jo(h0,2),Go=kl[0],Pe=kl[1],m0=Go.isFocused,Il=Go.isFileDialogActive,Sr=It(typeof window<"u"&&window.isSecureContext&&y&&xm()),Dl=function(){!Sr.current&&Il&&setTimeout(function(){if(Ge.current){var D=Ge.current.files;D.length||(Pe({type:"closeDialog"}),Cr())}},300)};bt(function(){return window.addEventListener("focus",Dl,!1),function(){window.removeEventListener("focus",Dl,!1)}},[Ge,Il,Cr,Sr]);var dn=It([]),Tl=function(D){Ce.current&&Ce.current.contains(D.target)||(D.preventDefault(),dn.current=[])};bt(function(){return T&&(document.addEventListener("dragover",hl,!1),document.addEventListener("drop",Tl,!1)),function(){T&&(document.removeEventListener("dragover",hl),document.removeEventListener("drop",Tl))}},[Ce,T]),bt(function(){return!r&&S&&Ce.current&&Ce.current.focus(),function(){}},[Ce,S,r]);var $t=we(function(v){at?at(v):console.error(v)},[at]),Rl=we(function(v){v.preventDefault(),v.persist(),Dr(v),dn.current=[].concat(Mm(dn.current),[v.target]),vr(v)&&Promise.resolve(o(v)).then(function(D){if(!(Ar(v)&&!H)){var re=D.length,me=re>0&&ym({files:D,accept:lt,minSize:s,maxSize:i,multiple:a,maxFiles:u,validator:ue}),Be=re>0&&!me;Pe({isDragAccept:me,isDragReject:Be,isDragActive:!0,type:"setDraggedFiles"}),l&&l(v)}}).catch(function(D){return $t(D)})},[o,l,$t,H,lt,s,i,a,u,ue]),Ml=we(function(v){v.preventDefault(),v.persist(),Dr(v);var D=vr(v);if(D&&v.dataTransfer)try{v.dataTransfer.dropEffect="copy"}catch{}return D&&c&&c(v),!1},[c,H]),Fl=we(function(v){v.preventDefault(),v.persist(),Dr(v);var D=dn.current.filter(function(me){return Ce.current&&Ce.current.contains(me)}),re=D.indexOf(v.target);re!==-1&&D.splice(re,1),dn.current=D,!(D.length>0)&&(Pe({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),vr(v)&&f&&f(v))},[Ce,f,H]),Er=we(function(v,D){var re=[],me=[];v.forEach(function(Be){var Hn=dl(Be,lt),mn=jo(Hn,2),Qo=mn[0],qo=mn[1],Zo=pl(Be,s,i),Tr=jo(Zo,2),Jo=Tr[0],Ko=Tr[1],Xo=ue?ue(Be):null;if(Qo&&Jo&&!Xo)re.push(Be);else{var Yo=[qo,Ko];Xo&&(Yo=Yo.concat(Xo)),me.push({file:Be,errors:Yo.filter(function(y0){return y0})})}}),(!a&&re.length>1||a&&u>=1&&re.length>u)&&(re.forEach(function(Be){me.push({file:Be,errors:[_m]})}),re.splice(0)),Pe({acceptedFiles:re,fileRejections:me,type:"setFiles"}),m&&m(re,me,D),me.length>0&&w&&w(me,D),re.length>0&&p&&p(re,D)},[Pe,a,lt,s,i,u,m,p,w,ue]),kr=we(function(v){v.preventDefault(),v.persist(),Dr(v),dn.current=[],vr(v)&&Promise.resolve(o(v)).then(function(D){Ar(v)&&!H||Er(D,v)}).catch(function(D){return $t(D)}),Pe({type:"reset"})},[o,Er,$t,H]),pn=we(function(){if(Sr.current){Pe({type:"openDialog"}),zo();var v={multiple:a,types:El};window.showOpenFilePicker(v).then(function(D){return o(D)}).then(function(D){Er(D,null),Pe({type:"closeDialog"})}).catch(function(D){Em(D)?(Cr(D),Pe({type:"closeDialog"})):km(D)?(Sr.current=!1,Ge.current?(Ge.current.value=null,Ge.current.click()):$t(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):$t(D)});return}Ge.current&&(Pe({type:"openDialog"}),zo(),Ge.current.value=null,Ge.current.click())},[Pe,zo,Cr,y,Er,$t,El,a]),Ol=we(function(v){!Ce.current||!Ce.current.isEqualNode(v.target)||(v.key===" "||v.key==="Enter"||v.keyCode===32||v.keyCode===13)&&(v.preventDefault(),pn())},[Ce,pn]),Nl=we(function(){Pe({type:"focus"})},[]),Pl=we(function(){Pe({type:"blur"})},[]),Bl=we(function(){J||(vm()?setTimeout(pn,0):pn())},[J,pn]),hn=function(D){return r?null:D},Wo=function(D){return j?null:hn(D)},Ir=function(D){return ce?null:hn(D)},Dr=function(D){H&&D.stopPropagation()},w0=Qe(function(){return function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=v.refKey,re=D===void 0?"ref":D,me=v.role,Be=v.onKeyDown,Hn=v.onFocus,mn=v.onBlur,Qo=v.onClick,qo=v.onDragEnter,Zo=v.onDragOver,Tr=v.onDragLeave,Jo=v.onDrop,Ko=xr(v,Tm);return Y(Y(Ho({onKeyDown:Wo(st(Be,Ol)),onFocus:Wo(st(Hn,Nl)),onBlur:Wo(st(mn,Pl)),onClick:hn(st(Qo,Bl)),onDragEnter:Ir(st(qo,Rl)),onDragOver:Ir(st(Zo,Ml)),onDragLeave:Ir(st(Tr,Fl)),onDrop:Ir(st(Jo,kr)),role:typeof me=="string"&&me!==""?me:"presentation"},re,Ce),!r&&!j?{tabIndex:0}:{}),Ko)}},[Ce,Ol,Nl,Pl,Bl,Rl,Ml,Fl,kr,j,ce,r]),g0=we(function(v){v.stopPropagation()},[]),_0=Qe(function(){return function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=v.refKey,re=D===void 0?"ref":D,me=v.onChange,Be=v.onClick,Hn=xr(v,Rm),mn=Ho({accept:lt,multiple:a,type:"file",style:{display:"none"},onChange:hn(st(me,kr)),onClick:hn(st(Be,g0)),tabIndex:-1},re,Ge);return Y(Y({},mn),Hn)}},[Ge,n,a,kr,r]);return Y(Y({},Go),{},{isFocused:m0&&!r,getRootProps:w0,getInputProps:_0,rootRef:Ce,inputRef:Ge,open:hn(pn)})}function Hm(e,t){switch(t.type){case"focus":return Y(Y({},e),{},{isFocused:!0});case"blur":return Y(Y({},e),{},{isFocused:!1});case"openDialog":return Y(Y({},Vo),{},{isFileDialogActive:!0});case"closeDialog":return Y(Y({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Y(Y({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Y(Y({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Y({},Vo);default:return e}}function Al(){}const Um="data:image/jpeg;base64,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",Vm="data:image/jpeg;base64,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";var Lm=0;function he(e,t,n,r,o,i){t||(t={});var s,a,u=t;if("ref"in u)for(a in u={},t)a=="ref"?s=t[a]:u[a]=t[a];var l={type:e,props:u,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Lm,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)u[a]===void 0&&(u[a]=s[a]);return O.vnode&&O.vnode(l),l}function zm({onCancel:e,onSubmit:t,onFileDrop:n}){const r=we(c=>{const m=c[0];n(m,m.path)},[]),{getRootProps:o,getInputProps:i,open:s,acceptedFiles:a,fileRejections:u}=bl({onDrop:r,accept:{"text/csv":[".csv"]},maxFiles:1,noClick:!0,noKeyboard:!0,multiple:!1,maxSize:4e6}),l=a.map(c=>he("p",{children:c.path},c.path)),f=u.map(({file:c,errors:m})=>he("li",{children:[c.path," - ",c.size," bytes",he("ul",{children:m.map(p=>he("li",{children:p.message},p.code))})]},c.path));return he("div",{...o(),children:[he("input",{...i(),name:"file"}),he("img",{src:l.length?Vm:Um,className:"mx-auto mb-2"}),u.length?he("div",{className:"mb-2",children:[he("div",{className:"mb-2 font-semibold",children:"Rejected files"}),he("ul",{children:f})]}):he(Se,{}),l.length?he(Se,{children:[l,he("button",{type:"reset",onClick:e,className:"mt-6 mr-6 rounded-md bg-white px-3.5 py-2.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:"Cancel"}),he("button",{type:"button",onClick:t,className:"rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Import file"})]}):he(Se,{children:[he("p",{className:"mb-6 text-gray-500",children:"Drag a file to upload"}),he("button",{type:"button",onClick:s,className:"rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Browse"})]})]})}const Gm=Za;function Wm(e){let t;const n=C.useState(!1),r=n[1],o=C.useState(0),i=o[0]|0;let s;const a=new FormData;s=C.useState(a);const u=s[0],l=C.useState("profiles");return d("form",I(x([["key",i],(t=Xe(M(()=>$(R(d("label",{for:"importStages"})),M(()=>{let f;return $(R(d("select",I(x([["className","m-2"],["name","importStages"],["id","importStages"],(f=[d("option",{children:"Profiles",value:"profiles"}),d("option",{children:"Profiles and Tax",value:"profiles,tax"})],["children",C.Children.toArray(Array.from(f))]),["onChange",c=>{l[1](c.target.value)}]])))),M(()=>$(R(d(zm,{onCancel:()=>{o[1](i+1),s[1](new FormData)},onSubmit:()=>{r(!0)},onFileDrop:(c,m)=>{u.set("file",c,m)}})),M(()=>{let c,m,p,w,_,g,y,S,T,J,j;return n[0]?R((c=x([d("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75"}),d("div",I(x([["className","fixed inset-0 z-10 overflow-y-auto"],(m=[d("div",I(x([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(p=[d("div",I(x([(w="relative overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl sm:my-8 sm:w-full sm:max-w-lg sm:p-6",["className",w]),(_=[(g=x([d("div",I(x([["className","mt-3 text-center sm:mt-5 space-y-6"],(y=[d("img",{src:Gm,className:"mx-auto"}),d("p",{children:["Please check and confirm this file is being uploaded to the correct account."]}),d("p",{children:["Uploading files to the wrong account can cause a security breach."]})],["children",C.Children.toArray(Array.from(y))])]))),d("div",I(x([["className","mt-5 sm:mt-6 sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3"],(S=[d("button",I(x([["type","button"],(T="inline-flex w-full justify-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 sm:col-start-2",["className",T]),["children","I confirm"],["onClick",$e(e.RequestStartImport)((J=wo(l[0],[","],void 0,0),(()=>{for(let ce=0;ce<=J.length-1;ce++){const H=de(ce,J);u.append("importStages",H)}})(),u))]]))),d("button",I(x([["type","button"],(j="mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:col-start-1 sm:mt-0",["className",j]),["children","Cancel"],["onClick",ce=>{r(!1)}]])))],["children",C.Children.toArray(Array.from(S))])])))]),d("div",{children:C.Children.toArray(Array.from(g))}))],["children",C.Children.toArray(Array.from(_))])])))],["children",C.Children.toArray(Array.from(p))])])))],["children",C.Children.toArray(Array.from(m))])])))]),d("div",{children:C.Children.toArray(Array.from(c))}))):pr()}))))})))),["children",C.Children.toArray(Array.from(t))])])))}const vl="data:image/jpeg;base64,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",Qm=vl;function qm(){const e=x([d("img",{src:Qm,className:"mx-auto animate-spin"}),d("p",{className:"mt-2",children:"Validating data"})]);return d("div",{children:C.Children.toArray(Array.from(e))})}const Zm=Za;function Jm(e,t,n){let r;return d("a",{className:"font-medium text-blue-600 underline cursor-pointer",href:(r=new Blob([e],{type:"text/csv;charset=utf-8;"}),window.URL.createObjectURL(r)),download:t,children:n})}function xl(e,t){let n;return d("p",I(x([["className","mt-6"],(n=["Download the full error report ",Jm(Re(`\r
|
|
38
|
+
`,Tu(Rn(q(q("Row,Column,Error")),xt(r=>xt(o=>Re(",",wt(i=>`"${i}"`,wt(i=>xs(i,'"','""'),[ot(r.RowId),o.Column,o.Message]))),r.FieldErrors),t)))),`${e}_validation_errors.csv`,"here"),"."],["children",C.Children.toArray(Array.from(n))])])))}function Km(e,t){switch(t.tag){case 15:return d("p",{children:["Internal API deserialization error"]});case 16:return d("p",{children:["Internal API client error"]});case 0:return d("p",{children:["Invalid file type"]});case 4:return d("p",{children:["Invalid file name"]});case 5:return d("p",{children:["CSV exceeds max row limit"]});case 14:return d("p",{children:["Duplicate row id"]});case 6:return d("p",{children:[t.fields[0]]});case 7:return d("p",{children:["CSV does not contain any data"]});case 8:return d("p",{children:["File not uploaded, ensure a file is selected"]});case 9:return d("p",{children:["Only a single file is allowed"]});case 11:return d("p",{children:["Unknown account"]});case 10:if(Dn(t.fields[0])<=10){const n=Xe(M(()=>$(R(d("p",{className:"mb-3",children:"The file contains the following validation error(s)"})),M(()=>$(Mn(r=>Ye(o=>d("li",{children:[`Row ${r.RowId}, Column ${o.Column}: ${o.Message}`]}),r.FieldErrors),t.fields[0]),M(()=>R(xl(e,t.fields[0]))))))));return d("div",{children:C.Children.toArray(Array.from(n))})}else{const n=x([d("p",{children:["The file contains more than 10 validation errors"]}),xl(e,t.fields[0])]);return d("div",{children:C.Children.toArray(Array.from(n))})}case 12:return d("p",{children:["An import is already in progress"]});case 3:return d("p",{children:["Stage not completed"]});case 2:return d("p",{children:["Invalid import stage"]});case 1:return d("p",{children:["Invalid import stages"]});default:return d("p",{children:["Bad internal request payload"]})}}function Xm(e){const t=e.userActions,n=e.accountId,r=e.error,o=Xe(M(()=>{const i=Km(n,r);return $(R(d("img",{src:Zm,className:"mx-auto"})),M(()=>$(R(d("div",{className:"mt-2",children:C.Children.toArray([i])})),M(()=>{let s;return R(d("button",I(x([["type","button"],["children","Upload another file"],(s="mt-8 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",["className",s]),["onClick",t.SelectFile]]))))}))))}));return d("div",{children:C.Children.toArray(Array.from(o))})}const Ym="data:image/jpeg;base64,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";function e0(e){const t=e.userActions,n=e.import,r=x([d("img",{src:Ym,className:"mx-auto"}),d("p",{className:"mt-2 mb-6",children:"Import has finished"}),d(qa,{import:n,userActions:t})]);return d("div",{children:C.Children.toArray(Array.from(r))})}const t0=vl;function n0(e){const t=e.CurrentStage;if(t==null)return d("p",{children:["No running stage. Please wait..."]});{const n=t,r=Mo(n.Stage),o=Cs(yu(ot,bu((s,a)=>s+a,n.SucceededRowCount,n.FailedRowCount)),"Working..."),i=x([d("img",{src:t0,className:"mx-auto animate-spin"}),d("p",{className:"mt-2 mb-6",children:`Running stage: ${r}`}),d("p",{children:[`Creator: ${e.User}`]}),d("p",{children:[`Filename: ${e.Filename}`]}),d("p",{children:[`Rows processed: ${o}`]}),d("p",{children:[`Total rows: ${e.NumberOfRecords}`]})]);return d("div",{children:C.Children.toArray(Array.from(i))})}}function r0(e){let t,n;const r=e.errorText;return d("div",I(x([["className","text-center"],(t=[d("p",{children:["Oops, something went wrong."]}),d("p",{children:[`Error: ${r}.`]}),d("p",{children:["Please refresh the page and try again."]}),d("button",I(x([(n="mt-4 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",["className",n]),["onClick",o=>{window.location.reload()}],["children","Refresh"]])))],["children",C.Children.toArray(Array.from(t))])])))}function o0(e){let t,n,r,o,i,s,a,u,l,f;const c=e.userActions,m=e.accountId,p=e.tabState,w=e.user,_=x([d("div",I(x([["className","space-y-6"],(t=[(n=x([(r=`Upload a CSV file with required information (first name, last name, email) to create new partial profiles.
|
|
39
39
|
Optionally include employment info.
|
|
40
|
-
The file will be validated `,r),
|
|
40
|
+
The file will be validated `,r),d("b",{children:["before"]}),(o=` creating the profiles.
|
|
41
41
|
If validation fails, the file will be rejected, and no profiles or tax records created.
|
|
42
|
-
You'll get an error report to fix the information before re-uploading.`,o)]),
|
|
42
|
+
You'll get an error report to fix the information before re-uploading.`,o)]),d("p",{children:C.Children.toArray(Array.from(n))})),d("p",{children:"This feature doesn't update existing profiles or tax information in the account."}),(i=x([d("span",{children:["Not sure how to get started?"]}),d("ul",I(x([["className","ml-6 list-disc list-outside"],(s=[(a=x([d("a",{className:"cursor-pointer font-medium text-blue-600 underline",children:"Read the guide",target:"_blank",rel:"noreferrer",href:"https://coda.io/d/Network-Partners_duJlEDaJduS/How-to-import-existing-employees_suumX#_lu5Lq"})," to using the CSV importer"]),d("li",{children:C.Children.toArray(Array.from(a))})),d("button",I(x([["type","button"],["children","Download Template"],(u="mt-4 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",["className",u]),["onClick",c.DownloadSchema]])))],["children",C.Children.toArray(Array.from(s))])])))]),d("div",{children:C.Children.toArray(Array.from(i))}))],["children",C.Children.toArray(Array.from(t))])]))),d("div",I(x([["className","px-8 mt-10"],(l=[d("div",I(x([["className","border border-gray-300 w-full py-12 rounded text-center bg-white"],(f=Xe(M(()=>{switch(p.tag){case 1:return Ia(w)?R(d(Wm,c)):R(d("div",{children:["You are not authorised to run imports"]}));case 2:return R(d(qm,null));case 3:return R(d(Xm,{error:p.fields[0],accountId:m,userActions:c}));case 4:{const g=p.fields[0];return g.tag===1?R(d(e0,{import:g.fields[0],userActions:c})):R(d(n0,g.fields[0]))}case 5:return R(d(r0,{errorText:p.fields[0]}));default:return R(d("div",{children:["Please wait..."]}))}})),["children",C.Children.toArray(Array.from(f))])])))],["children",C.Children.toArray(Array.from(l))])])))]);return d("div",{children:C.Children.toArray(Array.from(_))})}function i0(e){let t,n,r;const o=e.userActions,i=e.state,s=e.tabs,a=x([d("style",{children:[Qa]}),d("div",I(x([["className","border-b border-gray-200"],(t=[d("nav",I(x([["className","-mb-px flex space-x-8"],(n=Xe(M(()=>Ye(u=>d("button",{type:"button",key:ja(u),disabled:Ee(i.CurrentTab,u),className:Re(" ",["border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700","whitespace-nowrap border-b-2 py-4 px-1 text-sm font-medium","disabled:border-indigo-500 disabled:text-indigo-600"]),onClick:$e(o.SetCurrentTab)(u),children:ja(u)}),s))),["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])]))),d("div",I(x([["className","mt-4"],(r=Xe(M(()=>{let u;return i.CurrentTab.tag===1?R(d(Vh,{state:i.ImportHistoryTabState,userActions:o})):R((u=q(d(o0,{user:i.User,tabState:i.ActiveImportTabState,accountId:i.AccountInfo.AccountId,userActions:o})),d("div",{children:C.Children.toArray(Array.from(u))})))})),["children",C.Children.toArray(Array.from(r))])])))]);return d("div",{children:C.Children.toArray(Array.from(a))})}function Lo(){return(Lo=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 s0=["context","children"];function a0(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,s,a={},u=Object.keys(r);for(s=0;s<u.length;s++)o.indexOf(i=u[s])>=0||(a[i]=r[i]);return a}(e,s0);return Hr(t,n)}function l0(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=d(a0,Lo({},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,u=n.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(i[a[s].name]=a[s].value,i[Cl(a[s].name)]=a[s].value);for(s=u.length;s--;){var l=t(u[s],null),f=u[s].slot;f?i[f]=d(Sl,{name:f},l):o[s]=l}var c=r?d(Sl,null,o):o;return d(r||n.nodeName.toLowerCase(),i,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?$r:yt)(this._vdom,this._root)}function Cl(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function c0(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Cl(e)]=n,this._vdom=Hr(this._vdom,r),yt(this._vdom,this._root)}}function u0(){yt(this._vdom=null,this._root)}function Sl(e,t){var n=this;return d("slot",Lo({},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 f0(e,t,n,r){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=l0,o.prototype.attributeChangedCallback=c0,o.prototype.disconnectedCallback=u0,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,o)}function d0(e,t){f0(e,t)}function p0(e){let t;const n=Od(e.accessToken),r=e.accountId,o=e.partnerId,i=new zp(r,o);let s,a;switch(n!=null?(t=n,(Fd(t)?!0:Ia(t))?(s=0,a=n):s=1):s=1,s){case 0:{const u=Ip(e.backendUrl,o,r,e.accessToken);let l;const f=Gp(a,i);l=Rh(()=>lh(()=>f,(m,p)=>Wp(u,m,p),(m,p)=>{}),void 0,void 0);const c=Nh(l[1],u);return d(i0,{tabs:x([new ze(0,[]),new ze(1,[])]),state:l[0],userActions:c})}default:{const u=x([d("style",{children:[Qa]}),d("div",{children:"You do not have the appropriate permissions to view or perform an import."})]);return d("div",{children:C.Children.toArray(Array.from(u))})}}}d0(e=>d(p0,e),"superhero-import-app")})();
|