@flarehr/tfn-declaration-app 2.5.10 → 2.6.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (()=>{"use strict";var e={118:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(81),o=n.n(r),i=n(645),a=n.n(i),s=n(667),u=n.n(s),l=new URL(n(578),n.b),c=new URL(n(254),n.b),f=new URL(n(184),n.b),d=new URL(n(421),n.b),$=a()(o()),p=u()(l),h=u()(c),m=u()(f),w=u()(d);$.push([e.id,'/*! tailwindcss v3.1.6 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}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,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;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{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-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,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,select:focus,textarea:focus{--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);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}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}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{color-adjust:exact;background-image:url('+p+");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]{color-adjust:unset;background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{color-adjust:exact;--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--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);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("+h+")}[type=radio]:checked{background-image:url("+m+")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("+w+");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:after,:before{--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-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:rgba(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: }::-webkit-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-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:rgba(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: }::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-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:rgba(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: }.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}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-y-0{bottom:0;top:0}.right-0{right:0}.z-50{z-index:50}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.my-8{margin-bottom:2rem;margin-top:2rem}.my-4{margin-bottom:1rem;margin-top:1rem}.-mx-1\\.5{margin-left:-.375rem;margin-right:-.375rem}.-my-1\\.5{margin-bottom:-.375rem;margin-top:-.375rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-my-1{margin-bottom:-.25rem;margin-top:-.25rem}.my-3{margin-bottom:.75rem;margin-top:.75rem}.mt-5{margin-top:1.25rem}.mt-4{margin-top:1rem}.mb-8{margin-bottom:2rem}.mb-10{margin-bottom:2.5rem}.ml-auto{margin-left:auto}.mt-2{margin-top:.5rem}.ml-3{margin-left:.75rem}.mt-7{margin-top:1.75rem}.ml-6{margin-left:1.5rem}.mt-1{margin-top:.25rem}.mt-0\\.5{margin-top:.125rem}.mt-0{margin-top:0}.mb-0\\.5{margin-bottom:.125rem}.mb-0{margin-bottom:0}.-ml-px{margin-left:-1px}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-4{height:1rem}.max-h-60{max-height:15rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.w-4{width:1rem}.w-1\\/2{width:50%}.w-auto{width:auto}.max-w-560{max-width:560px}.max-w-320{max-width:320px}.flex-grow{flex-grow:1}.cursor-default{cursor:default}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-0\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.125rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.125rem*var(--tw-space-x-reverse))}.space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(0px*(1 - var(--tw-space-x-reverse)));margin-right:calc(0px*var(--tw-space-x-reverse))}.self-start{align-self:flex-start}.overflow-auto{overflow:auto}.overflow-hidden,.truncate{overflow:hidden}.truncate{text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.rounded-md{border-radius:.375rem}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-none{border-radius:0}.rounded-r-md{border-bottom-right-radius:.375rem;border-top-right-radius:.375rem}.rounded-l-md{border-bottom-left-radius:.375rem;border-top-left-radius:.375rem}.border{border-width:1px}.border-transparent{border-color:transparent}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.p-4{padding:1rem}.p-1\\.5{padding:.375rem}.p-1{padding:.25rem}.p-0\\.5{padding:.125rem}.p-0{padding:0}.px-10{padding-left:2.5rem;padding-right:2.5rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.px-8{padding-left:2rem;padding-right:2rem}.pr-2{padding-right:.5rem}.pt-1{padding-top:.25rem}.pb-3{padding-bottom:.75rem}.pr-10{padding-right:2.5rem}.pl-2{padding-left:.5rem}.pr-4{padding-right:1rem}.pl-3{padding-left:.75rem}.text-left{text-align:left}.text-center{text-align:center}.font-inter{font-family:Inter,sans-serif}.text-sm{font-size:.875rem;line-height:1.25rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.font-medium{font-weight:500}.font-bold{font-weight:700}.font-normal{font-weight:400}.leading-5{line-height:1.25rem}.leading-3{line-height:.75rem}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-primary-base{color:var(--fl-color-primary)}.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-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.placeholder-red-300::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity))}.placeholder-red-300::placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity))}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.shadow-lg,.shadow-none{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.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-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity:0.05}.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)}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.hover\\:bg-red-100:hover{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.hover\\:bg-green-100:hover{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.hover\\:bg-blue-100:hover{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.focus\\:z-20:focus{z-index:20}.focus\\:z-10:focus{z-index:10}.focus\\:border-primary-focus:focus{border-color:var(--fl-color-primary-focus)}.focus\\:border-red-500:focus{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-0:focus,.focus\\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(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)}.focus\\:ring-inset:focus{--tw-ring-inset:inset}.focus\\:ring-primary-focus:focus{--tw-ring-color:var(--fl-color-primary-focus)}.focus\\:ring-red-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(220 38 38/var(--tw-ring-opacity))}.focus\\:ring-green-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.focus\\:ring-blue-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity))}.focus\\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus\\:ring-offset-red-50:focus{--tw-ring-offset-color:#fef2f2}.focus\\:ring-offset-green-50:focus{--tw-ring-offset-color:#f0fdf4}.focus\\:ring-offset-blue-50:focus{--tw-ring-offset-color:#eff6ff}.focus-visible\\:outline-primary-hover:focus-visible{outline-color:var(--fl-color-primary-hover)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-gray-300:disabled{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.disabled\\:text-gray-400:disabled{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.group:hover .group-hover\\:text-primary-hover{color:var(--fl-color-primary-hover)}@media (min-width:640px){.sm\\:mb-12{margin-bottom:3rem}.sm\\:py-2{padding-bottom:.5rem;padding-top:.5rem}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}",""]);const g=$},645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var u=this[s][0];null!=u&&(a[u]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);r&&a[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},667:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},81:e=>{e.exports=function(e){return e[1]}},495:(e,t,n)=>{var r,o,i,a,s,u,l={},c=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(e,t){for(var n in t)e[n]=t[n];return e}function $(e){var t=e.parentNode;t&&t.removeChild(e)}function p(e,t,n){var o,i,a,s={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return h(e,s,o,i,null)}function h(e,t,n,r,a){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++i:a};return null==a&&null!=o.vnode&&o.vnode(s),s}function m(e){return e.children}function w(e,t){this.props=e,this.context=t}function g(e,t){if(null==t)return e.__?g(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?g(e):null}function y(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return y(e)}}function b(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!v.__r++||s!==o.debounceRendering)&&((s=o.debounceRendering)||setTimeout)(v)}function v(){for(var e;v.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=d({},o)).__v=o.__v+1,A(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?g(o):i,o.__h),N(n,o),o.__e!=i&&y(o)))}))}function x(e,t,n,r,o,i,a,s,u,f){var d,$,p,w,y,b,v,x=r&&r.__k||c,S=x.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(w=n.__k[d]=null==(w=t[d])||"boolean"==typeof w?null:"string"==typeof w||"number"==typeof w||"bigint"==typeof w?h(null,w,null,null,w):Array.isArray(w)?h(m,{children:w},null,null,null):w.__b>0?h(w.type,w.props,w.key,null,w.__v):w)){if(w.__=n,w.__b=n.__b+1,null===(p=x[d])||p&&w.key==p.key&&w.type===p.type)x[d]=void 0;else for($=0;$<S;$++){if((p=x[$])&&w.key==p.key&&w.type===p.type){x[$]=void 0;break}p=null}A(e,w,p=p||l,o,i,a,s,u,f),y=w.__e,($=w.ref)&&p.ref!=$&&(v||(v=[]),p.ref&&v.push(p.ref,null,w),v.push($,w.__c||y,w)),null!=y?(null==b&&(b=y),"function"==typeof w.type&&w.__k===p.__k?w.__d=u=_(w,u,e):u=C(e,w,p,x,y,u),"function"==typeof n.type&&(n.__d=u)):u&&p.__e==u&&u.parentNode!=e&&(u=g(p))}for(n.__e=b,d=S;d--;)null!=x[d]&&("function"==typeof n.type&&null!=x[d].__e&&x[d].__e==n.__d&&(n.__d=g(r,d+1)),O(x[d],x[d]));if(v)for(d=0;d<v.length;d++)M(v[d],v[++d],v[++d])}function _(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?_(r,t,n):C(n,r,r,o,r.__e,t));return t}function S(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){S(e,t)})):t.push(e)),t}function C(e,t,n,r,o,i){var a,s,u;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(s=i,u=0;(s=s.nextSibling)&&u<r.length;u+=2)if(s==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function T(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||f.test(t)?n:n+"px"}function E(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||T(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||T(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?I:k,i):e.removeEventListener(t,i?I:k,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function k(e){this.l[e.type+!1](o.event?o.event(e):e)}function I(e){this.l[e.type+!0](o.event?o.event(e):e)}function A(e,t,n,r,i,a,s,u,l){var c,f,$,p,h,g,y,b,v,_,S,C,T,E=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,u=t.__e=n.__e,t.__h=null,a=[u]),(c=o.__b)&&c(t);try{e:if("function"==typeof E){if(b=t.props,v=(c=E.contextType)&&r[c.__c],_=c?v?v.props.value:c.__:r,n.__c?y=(f=t.__c=n.__c).__=f.__E:("prototype"in E&&E.prototype.render?t.__c=f=new E(b,_):(t.__c=f=new w(b,_),f.constructor=E,f.render=D),v&&v.sub(f),f.props=b,f.state||(f.state={}),f.context=_,f.__n=r,$=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=E.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=d({},f.__s)),d(f.__s,E.getDerivedStateFromProps(b,f.__s))),p=f.props,h=f.state,$)null==E.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==E.getDerivedStateFromProps&&b!==p&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(b,_),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(b,f.__s,_)||t.__v===n.__v){f.props=b,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&s.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(b,f.__s,_),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(p,h,g)}))}if(f.context=_,f.props=b,f.__v=t,f.__P=e,S=o.__r,C=0,"prototype"in E&&E.prototype.render)f.state=f.__s,f.__d=!1,S&&S(t),c=f.render(f.props,f.state,f.context);else do{f.__d=!1,S&&S(t),c=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++C<25);f.state=f.__s,null!=f.getChildContext&&(r=d(d({},r),f.getChildContext())),$||null==f.getSnapshotBeforeUpdate||(g=f.getSnapshotBeforeUpdate(p,h)),T=null!=c&&c.type===m&&null==c.key?c.props.children:c,x(e,Array.isArray(T)?T:[T],t,n,r,i,a,s,u,l),f.base=t.__e,t.__h=null,f.__h.length&&s.push(f),y&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=R(n.__e,t,n,r,i,a,s,l);(c=o.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=u,t.__h=!!l,a[a.indexOf(u)]=null),o.__e(e,t,n)}}function N(e,t){o.__c&&o.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function R(e,t,n,o,i,a,s,u){var c,f,d,p=n.props,h=t.props,m=t.type,w=0;if("svg"===m&&(i=!0),null!=a)for(;w<a.length;w++)if((c=a[w])&&"setAttribute"in c==!!m&&(m?c.localName===m:3===c.nodeType)){e=c,a[w]=null;break}if(null==e){if(null===m)return document.createTextNode(h);e=i?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,h.is&&h),a=null,u=!1}if(null===m)p===h||u&&e.data===h||(e.data=h);else{if(a=a&&r.call(e.childNodes),f=(p=n.props||l).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,!u){if(null!=a)for(p={},w=0;w<e.attributes.length;w++)p[e.attributes[w].name]=e.attributes[w].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||E(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||E(e,i,t[i],n[i],r)}(e,h,p,i,u),d)t.__k=[];else if(w=t.props.children,x(e,Array.isArray(w)?w:[w],t,n,o,i&&"foreignObject"!==m,a,s,a?a[0]:n.__k&&g(n,0),u),null!=a)for(w=a.length;w--;)null!=a[w]&&$(a[w]);u||("value"in h&&void 0!==(w=h.value)&&(w!==e.value||"progress"===m&&!w||"option"===m&&w!==p.value)&&E(e,"value",w,p.value,!1),"checked"in h&&void 0!==(w=h.checked)&&w!==e.checked&&E(e,"checked",w,p.checked,!1))}return e}function M(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function O(e,t,n){var r,i;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||M(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&O(r[i],t,"function"!=typeof e.type);n||null==e.__e||$(e.__e),e.__e=e.__d=void 0}function D(e,t,n){return this.constructor(e,n)}function P(e,t,n){var i,a,s;o.__&&o.__(e,t),a=(i="function"==typeof n)?null:n&&n.__k||t.__k,s=[],A(t,e=(!i&&n||t).__k=p(m,null,[e]),a||l,l,void 0!==t.ownerSVGElement,!i&&n?[n]:a?null:t.firstChild?r.call(t.childNodes):null,s,!i&&n?n:a?a.__e:t.firstChild,i),N(s,e)}function F(e,t){P(e,t,F)}function B(e,t,n){var o,i,a,s=d({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:s[a]=t[a];return arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),h(e.type,s,o||e.key,i||e.ref,null)}function G(e,t){var n={__c:t="__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(b)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=c.slice,o={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},i=0,w.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof e&&(e=e(d({},n),this.props)),e&&d(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),b(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),b(this))},w.prototype.render=m,a=[],v.__r=0,u=0;var L,V,H,U,j=0,z=[],W=[],Y=o.__b,q=o.__r,K=o.diffed,Z=o.__c,J=o.unmount;function X(e,t){o.__h&&o.__h(V,e,j||t),j=0;var n=V.__H||(V.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:W}),n.__[e]}function Q(e){return j=1,ee(de,e)}function ee(e,t,n){var r=X(L++,2);return r.t=e,r.__c||(r.__=[n?n(t):de(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=V),r.__}function te(e,t){var n=X(L++,3);!o.__s&&fe(n.__H,t)&&(n.__=e,n.u=t,V.__H.__h.push(n))}function ne(e,t){var n=X(L++,4);!o.__s&&fe(n.__H,t)&&(n.__=e,n.u=t,V.__h.push(n))}function re(e){return j=5,oe((function(){return{current:e}}),[])}function oe(e,t){var n=X(L++,7);return fe(n.__H,t)?(n.__V=e(),n.u=t,n.__h=e,n.__V):n.__}function ie(e,t){return j=8,oe((function(){return e}),t)}function ae(e){var t=V.context[e.__c],n=X(L++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(V)),t.props.value):e.__}function se(){for(var e;e=z.shift();)if(e.__P)try{e.__H.__h.forEach(le),e.__H.__h.forEach(ce),e.__H.__h=[]}catch(t){e.__H.__h=[],o.__e(t,e.__v)}}o.__b=function(e){V=null,Y&&Y(e)},o.__r=function(e){q&&q(e),L=0;var t=(V=e.__c).__H;t&&(H===V?(t.__h=[],V.__h=[],t.__.forEach((function(e){e.__V=W,e.u=void 0}))):(t.__h.forEach(le),t.__h.forEach(ce),t.__h=[])),H=V},o.diffed=function(e){K&&K(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==z.push(t)&&U===o.requestAnimationFrame||((U=o.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),ue&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ue&&(t=requestAnimationFrame(n))})(se)),t.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.__V!==W&&(e.__=e.__V),e.u=void 0,e.__V=W}))),H=V=null},o.__c=function(e,t){t.some((function(e){try{e.__h.forEach(le),e.__h=e.__h.filter((function(e){return!e.__||ce(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],o.__e(n,e.__v)}})),Z&&Z(e,t)},o.unmount=function(e){J&&J(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{le(e)}catch(e){t=e}})),t&&o.__e(t,n.__v))};var ue="function"==typeof requestAnimationFrame;function le(e){var t=V,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),V=t}function ce(e){var t=V;e.__c=e.__(),V=t}function fe(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function de(e,t){return"function"==typeof t?t(e):t}function $e(e,t){for(var n in t)e[n]=t[n];return e}function pe(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function he(e){this.props=e}(he.prototype=new w).isPureReactComponent=!0,he.prototype.shouldComponentUpdate=function(e,t){return pe(this.props,e)||pe(this.state,t)};var me=o.__b;o.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),me&&me(e)};var we="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ge(e){function t(t){var n=$e({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=we,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ye=function(e,t){return null==e?null:S(S(e).map(t))},be={map:ye,forEach:ye,count:function(e){return e?S(e).length:0},only:function(e){var t=S(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:S},ve=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 null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);ve(e,t,n,r)};var xe=o.unmount;function _e(){this.__u=0,this.t=null,this.__b=null}function Se(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ce(){this.u=null,this.o=null}o.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),xe&&xe(e)},(_e.prototype=new w).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=Se(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},u=!0===t.__h;r.__u++||u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},_e.prototype.componentWillUnmount=function(){this.t=[]},_e.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]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=$e({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&p(m,null,e.fallback);return o&&(o.__h=null),[p(m,null,t.__a?null:e.children),o]};var Te=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!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 Ee(e){return this.getChildContext=function(){return e.context},e.children}function ke(e){var t=this,n=e.i;t.componentWillUnmount=function(){P(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),P(p(Ee,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(Ce.prototype=new w).__a=function(e){var t=this,n=Se(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Te(t,e,r)):o()};n?n(i):i()}},Ce.prototype.render=function(e){this.u=null,this.o=new Map;var t=S(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Ce.prototype.componentDidUpdate=Ce.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Te(e,n,t)}))};var Ie="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ae=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|shape|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ne="undefined"!=typeof document,Re=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};w.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(w.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Me=o.event;function Oe(){}function De(){return this.cancelBubble}function Pe(){return this.defaultPrevented}o.event=function(e){return Me&&(e=Me(e)),e.persist=Oe,e.isPropagationStopped=De,e.isDefaultPrevented=Pe,e.nativeEvent=e};var Fe,Be={configurable:!0,get:function(){return this.class}},Ge=o.vnode;o.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in r={},n){var a=n[i];Ne&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in n&&null==a||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===a?a="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!Re(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&Ae.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===a&&(a=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=a)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=S(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=S(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(Be.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Be))}e.$$typeof=Ie,Ge&&Ge(e)};var Le=o.__r;o.__r=function(e){Le&&Le(e),Fe=e.__c};var Ve={ReactCurrentDispatcher:{current:{readContext:function(e){return Fe.__n[e.__c].props.value}}}};function He(e){return!!e&&e.$$typeof===Ie}function Ue(e){return He(e)?B.apply(null,arguments):e}function je(e){e()}const ze={useState:Q,useReducer:ee,useEffect:te,useLayoutEffect:ne,useInsertionEffect:ne,useTransition:function(){return[!1,je]},useDeferredValue:function(e){return e},useSyncExternalStore:function(e,t){var n=Q(t),r=n[0],o=n[1];return te((function(){return e((function(){o(t())}))}),[e,t]),r},startTransition:je,useRef:re,useImperativeHandle:function(e,t,n){j=6,ne((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))},useMemo:oe,useCallback:ie,useContext:ae,useDebugValue:function(e,t){o.useDebugValue&&o.useDebugValue(t?t(e):e)},version:"17.0.2",Children:be,render:function(e,t,n){return null==t.__k&&(t.textContent=""),P(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return F(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(P(null,e),!0)},createPortal:function(e,t){var n=p(ke,{__v:e,i:t});return n.containerInfo=t,n},createElement:p,createContext:G,createFactory:function(e){return p.bind(null,e)},cloneElement:Ue,createRef:function(){return{current:null}},Fragment:m,isValidElement:He,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:w,PureComponent:he,memo:function(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:pe(this.props,e)}function r(t){return this.shouldComponentUpdate=n,p(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:ge,flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:m,Suspense:_e,SuspenseList:Ce,lazy:function(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return p(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ve};function We(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Ye(e){return null!=e&&"function"==typeof e.Dispose}function qe(e){Ye(e)&&e.Dispose()}function Ke(e,t){var n,r;return(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===(null===(r=Object.getPrototypeOf(t))||void 0===r?void 0:r.constructor)}class Ze{constructor(e){this.iter=e}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this.iter.next();return this.current=e.value,!e.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function Je(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new Ze(e[Symbol.iterator]())}function Xe(e){return{[Symbol.iterator](){return this},next(){const t=e["System.Collections.IEnumerator.MoveNext"]();return{done:!t,value:t?e["System.Collections.IEnumerator.get_Current"]():void 0}}}}class Qe{constructor(e){this.factory=e,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function et(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function tt(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function nt(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class rt{static id(e){return rt.idMap.has(e)||rt.idMap.set(e,++rt.count),rt.idMap.get(e)}}function ot(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function it(e){return 2654435761*e|0}function at(e){return 0===e.length?0:e.reduce(((e,t)=>(e<<5)+e^t))}function st(e){var t;if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return it(e);case"string":return ot(e);default:if(function(e){return"function"==typeof e.GetHashCode}(e))return e.GetHashCode();if(We(e))return function(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=st(e[r]);return at(n)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if((null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===Object){const t=Object.values(e).map((e=>st(e)));return at(t)}return it(rt.id(e))}}function ut(e,t,n){if(null==e)return null==t;if(null==t)return!1;if(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 lt(e,t){return ut(e,t,ct)}function ct(e,t){var n;return e===t||(null==e?null==t:null!=t&&"object"==typeof e&&(function(e){return"function"==typeof e.Equals}(e)?e.Equals(t):We(e)?We(t)&&lt(e,t):e instanceof Date?t instanceof Date&&0===ft(e,t):(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===Object&&function(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]||!ct(e[n[o]],t[r[o]]))return!1;return!0}(e,t)))}function ft(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+tt(e),r=t.getTime()+tt(t)),n===r?0:n<r?-1:1}function dt(e,t){return e===t?0:e<t?-1:1}function $t(e,t){return function(e,t,n){if(null==e)return null==t?0:1;if(null==t)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]),0!==o)return o;return 0}(e,t,pt)}function pt(e,t){var n;return e===t?0:null==e?null==t?0:-1:null==t?1:"object"!=typeof e?e<t?-1:1:function(e){return"function"==typeof e.CompareTo}(e)?e.CompareTo(t):We(e)?We(t)?$t(e,t):-1:e instanceof Date?t instanceof Date?ft(e,t):-1:(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===Object?function(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 a=n[o];if(a!==r[o])return a<r[o]?-1:1;if(i=pt(e[a],t[a]),0!==i)return i}return 0}(e,t):-1}function ht(e,t,n){return e(t,n)>0?t:n}function mt(e){const t={};for(const n of e)t[n[0]]=n[1];return t}rt.idMap=new WeakMap,rt.count=0;const wt=Symbol("curried");function gt(e,t){if(null==t||t.length>1)return t;const n=(...n)=>{let r=t;for(let t=0;t<e;t++)r=r(n[t]);return r};return n[wt]=t,n}function yt(e,t,n){return r=>1===t?n(...e.concat([r])):yt(e.concat([r]),t-1,n)}function bt(e,t,n){if(null!=t){if(wt in t){t=t[wt];for(let e=0;e<n.length;e++)t=t(n[e]);return t}return yt(n,e,t)}}function vt(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+et(~~(e/36e5),2)+":"+et(n,2)}function xt(e,t){const n=e.toISOString();return"first"===t?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function _t(e,t,n){return t.replace(/(\w)\1*/g,(t=>{let r=Number.NaN;switch(t.substring(0,1)){case"y":const o=n?e.getUTCFullYear():e.getFullYear();r=t.length<4?o%100:o;break;case"M":r=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":r=n?e.getUTCDate():e.getDate();break;case"H":r=n?e.getUTCHours():e.getHours();break;case"h":const i=n?e.getUTCHours():e.getHours();r=i>12?i%12:i;break;case"m":r=n?e.getUTCMinutes():e.getMinutes();break;case"s":r=n?e.getUTCSeconds():e.getSeconds();break;case"f":r=n?e.getUTCMilliseconds():e.getMilliseconds()}return Number.isNaN(r)?t:r<10&&t.length>1?"0"+r:""+r}))}function St(e,t,n){return null!=e.offset?function(e,t){var n,r,o;const i=new Date(e.getTime()+(null!==(n=e.offset)&&void 0!==n?n:0));if("string"!=typeof t)return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+vt(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return _t(i,t,!0);switch(t){case"D":case"d":return xt(i,"first");case"T":case"t":return xt(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+vt(t)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}(e,t):function(e,t){const n=1===e.kind;if("string"!=typeof t)return n?e.toUTCString():e.toLocaleString();if(1!==t.length)return _t(e,t,n);switch(t){case"D":case"d":return n?xt(e,"first"):e.toLocaleDateString();case"T":case"t":return n?xt(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,t){if(t)return e.toISOString();{const t=null==e.kind||2===e.kind;return et(e.getFullYear(),4)+"-"+et(e.getMonth()+1,2)+"-"+et(e.getDate(),2)+"T"+et(e.getHours(),2)+":"+et(e.getMinutes(),2)+":"+et(e.getSeconds(),2)+"."+et(e.getMilliseconds(),3)+(t?vt(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}(e,t)}function Ct(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function Tt(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}null!=e&&""!==e.trim()||t(),10===e.length&&"-"===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(null!=o){let e,t=0;if(null!=o[2]){const e=o[2].split(":");t=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=o[3]&&"PM"===o[3].toUpperCase()&&(t+=720)}if(null!=o[4]){if(null!=o[1])e=new Date(o[1]+" UTC");else{const t=new Date;e=new Date(t.getUTCFullYear()+"/"+(t.getUTCMonth()+1)+"/"+t.getUTCDate())}if("Z"===o[4])r="Z";else{let e=60*parseInt(o[5],10)+parseInt(o[6]||"0",10);"-"===o[4][0]&&(e*=-1),r=e,t-=60*e}}else if(null!=o[1])e=new Date(o[1]);else{const t=new Date;e=new Date(t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate())}n=new Date(e.getTime()+1e3*t),n=new Date(n.getTime()+6e4*(n.getTimezoneOffset()-e.getTimezoneOffset()))}else t();isNaN(n.getTime())&&t()}return[n,r]}function Et(e,t){try{return t.contents=function(e,t=!1){const[n,r]=Tt(e),o=null!=r?t&&"Z"===r?1:2:0;return Ct(n.getTime(),o)}(e),!0}catch(e){return!1}}const kt=Symbol("numeric");function It(e){return"number"==typeof e||(null==e?void 0:e[kt])}function At(e,t){return"number"==typeof e?e*t:e[kt]().multiply(t)}function Nt(e,t){return"number"==typeof e?e.toFixed(t):e[kt]().toFixed(t)}function Rt(e,t){return"number"==typeof e?e.toPrecision(t):e[kt]().toPrecision(t)}function Mt(e,t){return"number"==typeof e?e.toExponential(t):e[kt]().toExponential(t)}function Ot(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[kt]().toHex()}function Dt(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Pt(e,t,n=0){if(null==t)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(;null!=(o=e.exec(t));)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}function Ft(e,t=0){var n,r;if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return function(e){let t=0,n="[";for(const r of e){if(0===t)n+=Ft(r);else{if(100===t){n+="; ...";break}n+="; "+Ft(r)}t++}return n+"]"}(e);{const o=null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor;return o===Object&&t<10?"{ "+Object.entries(e).map((([e,n])=>e+" = "+Ft(n,t+1))).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class Bt{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){return function(e,t){if(0===t.length)return e;{let n="",r=!0;return 1===t.length?(n=Ft(t[0]),r=n.indexOf(" ")>=0):n=t.map((e=>Ft(e))).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>st(e)));return e.splice(0,0,it(this.tag)),at(e)}Equals(e){return this===e||!!Ke(this,e)&&this.tag===e.tag&&lt(this.fields,e.fields)}CompareTo(e){return this===e?0:Ke(this,e)?this.tag===e.tag?$t(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class Gt{toJSON(){return function(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}(this)}toString(){return function(e){return"{ "+Object.entries(e).map((([e,t])=>e+" = "+Ft(t))).join("\n ")+" }"}(this)}GetHashCode(){return function(e){const t=Object.values(e).map((e=>st(e)));return at(t)}(this)}Equals(e){return function(e,t){if(e===t)return!0;if(Ke(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!ct(e[n[r]],t[n[r]]))return!1;return!0}return!1}(this,e)}CompareTo(e){return function(e,t){if(e===t)return 0;if(Ke(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=pt(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class Lt{constructor(e,t){"function"==typeof t?(this.getter=e,this.setter=t):(this.getter=()=>e,this.setter=t=>{e=t})}get contents(){return this.getter()}set contents(e){this.setter(e)}}function Vt(e){return function(e){return e instanceof class{constructor(e){this.message=e}}||e instanceof Error}(e)?e:new Error(String(e))}const Ht=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Ut=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function jt(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function zt(e){return{input:e,cont:(t=e,e=>{Ht.lastIndex=0;const n=[],r=[];let o=0,i=Ht.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=Ht.lastIndex,Ht.lastIndex-=1,i=Ht.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),Zt(e,n,r))})};var t}function Wt(e,t){return"string"==typeof t?e(t):t.cont(e)}function Yt(e){return Wt((e=>e),e)}function qt(e){return Wt((e=>{throw new Error(e)}),e)}function Kt(e,t,n,r,o){let i="";if(t=t||"",o=o||"",It(e))switch("x"!==o.toLowerCase()&&(jt(e,0)?(e=At(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=Nt(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?Rt(e,r):Rt(e);break;case"e":case"E":e=null!=r?Mt(e,r):Mt(e);break;case"x":e=Ot(e);break;case"X":e=Ot(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?St(e):Ft(e);if(n="number"==typeof n?n:parseInt(n,10),isNaN(n))e=i+e;else{const r=t.indexOf("0")>=0,o=t.indexOf("-")>=0,a=o||!r?" ":"0";e="0"===a?i+(e=Xt(e,n-i.length,a,o)):Xt(i+e,n,a,o)}return e}function Zt(e,t,n,r="",o=-1){return(...i)=>{let a=r;const s=t.slice(),u=n.slice();for(const e of i){const[,,t,n,r,i]=u[0];let l=n;if(o>=0)l=o,o=-1;else if("*"===l){if(e<0)throw new Error("Non-negative number required");o=e;continue}a+=s[0],a+=Kt(e,t,l,r,i),s.splice(0,1),u.splice(0,1)}return 0===u.length?(a+=s[0],e(a)):Zt(e,s,u,a,o)}}function Jt(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Xt(e,t,n,r){n=n||" ",t-=e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function Qt(e,t,n,r){if(r="number"==typeof r?r:0,(n="number"==typeof n?n:void 0)&&n<0)throw new Error("Count cannot be less than zero");if(0===n)return[];const o=1==(1&r),i=2==(2&r);t=(t=t||[]).filter((e=>e)).map(Dt),t=t.length>0?t:["\\s"];const a=[],s=new RegExp(t.join("|"),"g");let u=!0,l=0;do{const t=s.exec(e);if(null===t){const t=i?e.substring(l).trim():e.substring(l);(!o||t.length>0)&&a.push(t),u=!1}else{const r=i?e.substring(l,t.index).trim():e.substring(l,t.index);(!o||r.length>0)&&(null!=n&&a.length+1===n?(a.push(i?e.substring(l).trim():e.substring(l)),u=!1):a.push(r)),l=s.lastIndex}}while(u);return a}function en(e,t){return t.split("").filter((t=>e(t))).join("")}var tn=n(118);class nn{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return st(this.value)}Equals(e){return null!=e&&ct(this.value,e instanceof nn?e.value:e)}CompareTo(e){return null==e?1:pt(this.value,e instanceof nn?e.value:e)}}function rn(e){return null==e||e instanceof nn?new nn(e):e}function on(e){if(null==e)throw new Error("Option has no value");return e instanceof nn?e.value:e}function an(e){return null==e?void 0:e}function sn(e){return null==e?null:on(e)}function un(e){return null==e?[]:[on(e)]}function ln(e,t){return null!=e?on(e):t}function cn(e,t){return null!=t?rn(e(on(t))):void 0}function fn(e,t){return null!=t?e(on(t)):void 0}function dn(e,t){return"function"==typeof e?new e(t):new Array(t)}function $n(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function pn(e,t,n){const r=0|t.length,o=dn(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function hn(e,t,n){return function(e,t,n,r,o){const i=0|ln(n,0),a=0|ln(cn((e=>i+e),r),e.length);return 0|(n=>{for(;;){const r=n;if(r>=a)return-1;if(o.Equals(t,e[r]))return 0|r;n=r+1}})(i)}(t,e,void 0,void 0,n)>=0}function mn(e,t,n){return n.reduce(e,t)}function wn(e,t,n,r){return function(e,t,n,r){let o=r;t.length!==n.length&&function(){throw new Error("Arrays had different lengths")}();const i=0|t.length;for(let r=1;r<=i;r++)o=e(0,t[i-r],n[i-r],o);return o}(((t,n,r,o)=>e(n,r,o)),t,n,r)}class gn extends Gt{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+Jt("; ",this)+"]"}Equals(e){return this===e||((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],a=o[1];if(ct(n.head,r.head)){e=i,t=a;continue e}return!1}return!1}return null==o[1]}})(this,e)}GetHashCode(){return 0|((e,t,n)=>{for(;;){const r=e,o=t,i=n,a=i.tail;if(null==a)return 0|o;{const s=a;if(r>18)return 0|o;e=r+1,t=(o<<1)+st(i.head)+631*r,n=s}}})(0,0,this)}toJSON(e){return Array.from(this)}CompareTo(e){return 0|((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],a=o[1],s=0|pt(n.head,r.head);if(0===s){e=i,t=a;continue e}return 0|s}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return new yn(this)}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Je(this)}}class yn{constructor(e){this.xs=e,this.it=this.xs,this.current=null}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this,t=e.it.tail;if(null!=t){const n=t;return e.current=e.it.head,e.it=n,!0}return!1}"System.Collections.IEnumerator.Reset"(){const e=this;e.it=e.xs,e.current=null}Dispose(){}}function bn(){return new gn(null,void 0)}function vn(e,t){return new gn(e,t)}function xn(e){return null==e.tail}function _n(e){if(null!=e.tail)return e.head;throw new Error("Collection was empty.\\nParameter name: list")}function Sn(e){const t=e.tail;if(null!=t)return t;throw new Error("Collection was empty.\\nParameter name: list")}function Cn(){return bn()}function Tn(e,t){return vn(e,t)}function En(e){return vn(e,bn())}function kn(e){return xn(e)}function In(e){return _n(e)}function An(e){return Sn(e)}function Nn(e){const t=0|function(e){return 0|((e,t)=>{for(;;){const n=e,r=t.tail;if(null==r)return 0|n;e=n+1,t=r}})(0,e)}(e),n=$n(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(xn(o))break;n[r]=_n(o),e=r+1,t=Sn(o)}})(0,e),n}function Rn(e,t,n){let r=t,o=n;for(;!xn(o);)r=e(r,_n(o)),o=Sn(o);return r}function Mn(e){return Rn(((e,t)=>vn(t,e)),bn(),e)}function On(e,t){Rn(((t,n)=>{e(n)}),void 0,t)}function Dn(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=vn(e[t],n);return n}function Pn(e){return Dn(e,bn())}function Fn(e,t){return Rn(((e,t)=>vn(t,e)),t,Mn(e))}function Bn(e,t){const n=bn(),r=Rn(((t,n)=>{const r=new gn(e(n),void 0);return t.tail=r,r}),n,t),o=bn();return r.tail=o,Sn(n)}function Gn(e,t){return function(e,t){const n=Nn(t);return n.sort(e),Pn(n)}(((e,n)=>t.Compare(e,n)),e)}const Ln=ze,Vn=Ft(tn.Z),Hn=p("svg",mt(Pn([["className",Jt(" ",["h-5","w-5","text-gray-400"])],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],["fill","currentColor"],(()=>{const e=En(p("path",{d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"}));return["children",Ln.Children.toArray(Array.from(e))]})()]))),Un=p("svg",mt(Pn([["className",Jt(" ",["h-5","w-5","text-gray-400"])],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],["fill","currentColor"],(()=>{const e=En(p("path",{d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","fill-rule":"evenodd",clipRule:"evenodd"}));return["children",Ln.Children.toArray(Array.from(e))]})()]))),jn=p("svg",mt(Pn([["className",Jt(" ",["h-6","w-6","text-gray-400","group-hover:text-primary-hover"])],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],["fill","none"],["stroke","currentColor"],["strokeWidth",2],(()=>{const e=En(p("path",{d:"M18 12H6",strokeLinejoin:"round",strokeLinecap:"round"}));return["children",Ln.Children.toArray(Array.from(e))]})()]))),zn=p("svg",mt(Pn([["className",Jt(" ",["h-6","w-6","text-gray-400","group-hover:text-primary-hover"])],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],["fill","none"],["stroke","currentColor"],["strokeWidth",2],(()=>{const e=En(p("path",{d:"M12 6v6m0 0v6m0-6h6m-6 0H6",strokeLinejoin:"round",strokeLinecap:"round"}));return["children",Ln.Children.toArray(Array.from(e))]})()]))),Wn=p("svg",mt(Pn([["className",Jt(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=En(p("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}));return["children",Ln.Children.toArray(Array.from(e))]})()]))),Yn=p("svg",mt(Pn([["className",Jt(" ",["h-5","w-5","text-gray-400"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=En(p("path",{"fill-rule":"evenodd",d:"M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z",clipRule:"evenodd"}));return["children",Ln.Children.toArray(Array.from(e))]})()]))),qn=Pn(["flex","flex-col","align-center"]),Kn=(e,t)=>{te((()=>{const t=e();return()=>{t.Dispose()}}),t)};function Zn(e){return{Dispose(){e()}}}function Jn(e){return Ln.useState(e)}function Xn(e,t){Kn(e,t)}function Qn(e,t){Kn((t=>(e(),Zn((()=>{})))),t)}function er(e){return Ln.useRef(e)}function tr(e){const t=er(e),n=function(e,n){const r=ln([],[]);return Ln.useCallback((e=>t.current(e)),r)}();var r,o;return r=()=>{t.current=e},o=e=>(r(),Zn((()=>{}))),ne((()=>{const e=o();return()=>{e.Dispose()}})),n}function nr(e){return Ln.useState(e)}class rr{constructor(e=!1){this._id=0,this._cancelled=e,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,e]of this._listeners)e()}}addListener(e){const t=this._id;return this._listeners.set(this._id++,e),t}removeListener(e){return this._listeners.delete(e)}register(e,t){const n=this,r=this.addListener(null==t?e:()=>e(t));return{Dispose(){n.removeListener(r)}}}}class or extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,or.prototype)}}class ir{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>ir.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function ar(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new or);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack((()=>{try{e(t)}catch(e){t.onError(Vt(e))}}));else try{e(t)}catch(e){t.onError(Vt(e))}}}const sr=new class{Bind(e,t){return function(e,t){return ar((n=>{e({onSuccess:e=>{try{t(e)(n)}catch(e){n.onError(Vt(e))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})}))}(e,t)}Combine(e,t){return this.Bind(e,(()=>t))}Delay(e){return ar((t=>e()(t)))}For(e,t){const n=e[Symbol.iterator]();let r=n.next();return this.While((()=>!r.done),this.Delay((()=>{const e=t(r.value);return r=n.next(),e})))}Return(e){return function(e){return ar((t=>t.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,t){return ar((n=>{e({onSuccess:e=>{t(),n.onSuccess(e)},onError:e=>{t(),n.onError(e)},onCancel:e=>{t(),n.onCancel(e)},cancelToken:n.cancelToken,trampoline:n.trampoline})}))}TryWith(e,t){return ar((n=>{e({onSuccess:n.onSuccess,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline,onError:e=>{try{t(e)(n)}catch(e){n.onError(Vt(e))}}})}))}Using(e,t){return this.TryFinally(t(e),(()=>e.Dispose()))}While(e,t){return e()?this.Bind(t,(()=>this.While(e,t))):this.Return(void 0)}Zero(){return ar((e=>e.onSuccess(void 0)))}};function ur(e){}function lr(e){const t=new rr("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout((()=>{t.cancel()}),e),t}function cr(e){e.cancel()}const fr=new rr;function dr(e){return ar((t=>{let n;const r=setTimeout((()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)}),e);n=t.cancelToken.addListener((()=>{clearTimeout(r),t.onCancel(new or)}))}))}function $r(e,t){return function(e,t){return function(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new ir;e({onSuccess:t||ur,onError:n||ur,onCancel:r||ur,cancelToken:o||fr,trampoline:i})}(e,t)}(e,t)}class pr extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function hr(e,t){const n=er(lr());return Xn((()=>Zn((()=>{cr(n.current)}))),[]),tr((r=>{var o;null!=(o=n.current)&&o.isCancelled||$r(sr.Delay((()=>sr.TryWith(sr.Delay((()=>(t(new pr(1)),sr.Bind(e(r),(e=>(t(new pr(2,e)),sr.Zero())))))),(e=>(t(new pr(3,e)),sr.Zero()))))),n.current)}))}class mr extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function wr(e,t){return 0===t.tag?new mr(0,e(t.fields[0])):new mr(1,t.fields[0])}function gr(e,t){return 0===t.tag?e(t.fields[0]):new mr(1,t.fields[0])}function yr(){return e=pt,{Compare:(t,n)=>e(t,n)};var e}const br="The input sequence has an insufficient number of elements.";function vr(){throw new Error("Enumeration has not started. Call MoveNext.")}function xr(){throw new Error("Enumeration already finished.")}class _r{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=Je(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=Ft(n["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(t+="; ..."),t+"]"}finally{qe(n)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class Sr{constructor(e,t,n){this.current=e,this.next=t,this.dispose=n}"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"(){!function(){throw new Error("Reset is not supported on this enumerator.")}()}Dispose(){this.dispose()}}function Cr(e,t,n){return new Sr(e,t,n)}function Tr(e,t,n){let r,o=!1,i=rn(e());const a=()=>{if(null!=i){const e=on(i);try{n(e)}finally{i=void 0}}},s=()=>{try{a()}finally{r=void 0}};return Cr((()=>(o||vr(),null!=r?on(r):xr())),(()=>{if(o||(o=!0),null!=i){const e=on(i);let n;try{n=t(e)}catch(e){throw s(),e}return null!=n?(r=n,!0):(s(),!1)}return!1}),a)}function Er(e){return function(e){return new _r(e)}(e)}function kr(e){return t="source",null==e&&function(e){throw new Error(e)}(t),Je(e);var t}function Ir(e){return Er((()=>Je(e())))}function Ar(e){return Er((()=>function(e){let t,n,r,o=!1,i=!1;const a=()=>{if(i=!0,null!=n){const e=n;try{qe(e)}finally{n=void 0}}if(null!=t){const e=t;try{qe(e)}finally{t=void 0}}};return Cr((()=>(o?i&&xr():vr(),null!=r?on(r):xr())),(()=>{let s;if(o||(o=!0),i)return!1;{let o;for(;null==o;){const i=[t,n];if(null!=i[0])if(null!=i[1]){const e=i[1];if(e["System.Collections.IEnumerator.MoveNext"]())r=rn(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{qe(e)}finally{n=void 0}}else{const e=i[0];e["System.Collections.IEnumerator.MoveNext"]()?(s=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=Je(s)):(a(),o=!1)}else t=Je(e)}return on(o)}}),(()=>{i||a()}))}(e)))}function Nr(){return Ir((()=>new Array(0)))}function Rr(e){return Ir((()=>function(e,t){const n=dn(void 0,1);return n[0]=e,n}(e)))}function Mr(e){return We(e)?Pn(e):e instanceof gn?e:function(e){let t,n;if(We(e))return Pn(e);if(e instanceof gn)return e;{const r=bn();let o=r;const i=Je(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();t=o,n=new gn(e,void 0),t.tail=n,o=n}}finally{qe(i)}const a=o,s=bn();return a.tail=s,Sn(r)}}(e)}function Or(e,t,n){return Er((()=>Tr(e,t,n)))}function Dr(e,t,n){return Er((()=>{let r=-1;return Tr(e,(e=>(r=r+1|0,t(r,e))),n)}))}function Pr(e,t){return Ar([e,t])}function Fr(e,t,n){const r=kr(t);try{let t=!1;for(;!t&&r["System.Collections.IEnumerator.MoveNext"]();)t=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}finally{qe(r)}}function Br(e,t){return function(e,t){return Or((()=>kr(t)),(t=>{let n;for(;null==n&&t["System.Collections.IEnumerator.MoveNext"]();)n=e(t["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}),(e=>{qe(e)}))}((t=>e(t)?rn(t):void 0),t)}function Gr(e,t,n){const r=kr(n);try{let n=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)n=e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}finally{qe(r)}}function Lr(e,t){Gr(((t,n)=>{e(n)}),void 0,t)}function Vr(e,t){return Or((()=>kr(t)),(t=>t["System.Collections.IEnumerator.MoveNext"]()?rn(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{qe(e)}))}function Hr(e,t){return Er((()=>{const n=kr(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(br+"\\nParameter name: source");return function(e,t){return Cr((()=>t["System.Collections.Generic.IEnumerator`1.get_Current"]()),(()=>t["System.Collections.IEnumerator.MoveNext"]()),(()=>{try{qe(t)}finally{e()}}))}((()=>{}),n)}catch(e){throw qe(n),e}}))}function Ur(e,t){return Ir((()=>Ar(Vr(e,t))))}function jr(e,t){return null==t?new mr(1,e):new mr(0,on(t))}function zr(e,t,n){return ct(n,e)?new mr(0,void 0):new mr(1,t)}Symbol.iterator;class Wr extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Success","Failure","Info"]}}function Yr(e){switch(e.tag){case 0:return"text-green-700";case 2:return"text-blue-700";default:return"text-red-700"}}function qr(e){switch(e.tag){case 0:return"bg-green-50";case 2:return"bg-blue-50";default:return"bg-red-50"}}function Kr(e){return e.tag,e.fields[0]}function Zr(e){let t,n,r,o;const i=e.hideAlert,a=e.alert,s=lr();var u;return u=()=>{!function(e,t){$r(sr.Delay((()=>sr.Bind(dr(5e3),(()=>(e(),sr.Zero()))))),t)}(i,s)},Qn(u,[]),p("div",mt(Pn([["className",Jt(" ",["rounded-md","p-4","my-4",qr(a)])],["data-testid","alert"],(t=[p("div",mt(Pn([["className",Jt(" ",["flex"])],(n=[p("p",{className:Jt(" ",["text-sm","pr-2",Yr(a)]),children:Kr(a)}),p("div",mt(Pn([["className",Jt(" ",["ml-auto"])],(r=[p("div",mt(Pn([["className",Jt(" ",["-mx-1.5","-my-1.5"])],(o=[p("button",{type:"button",className:Jt(" ",Mr(Ir((()=>Pr(Rr("inline-flex"),Ir((()=>Pr(Rr("rounded-md"),Ir((()=>Pr(Rr("p-1.5"),Ir((()=>Pr(Rr("focus:outline-none"),Ir((()=>Pr(Rr("focus:ring-2"),Ir((()=>Pr(Rr("focus:ring-offset-2"),Ir((()=>function(e){switch(e.tag){case 0:return Pn(["bg-green-50","text-green-500","hover:bg-green-100","focus:ring-offset-green-50","focus:ring-green-600"]);case 2:return Pn(["bg-blue-50","text-blue-500","hover:bg-blue-100","focus:ring-offset-blue-50","focus:ring-blue-600"]);default:return Pn(["bg-red-50","text-red-500","hover:bg-red-100","focus:ring-offset-red-50","focus:ring-red-600"])}}(a))))))))))))))))))))))),children:Ln.Children.toArray([Wn]),onClick:e=>{cr(s),i()}})],["children",Ln.Children.toArray(Array.from(o))])])))],["children",Ln.Children.toArray(Array.from(r))])])))],["children",Ln.Children.toArray(Array.from(n))])])))],["children",Ln.Children.toArray(Array.from(t))])])))}function Jr(e,t){return t}function Xr(e,t,n){return wr(n,t)}new class{constructor(){}};function Qr(e,t){const n=function(e,t){return new mr(0,t)}(0,t);return sr.Return(n)}function eo(e,t){return sr.Delay(t)}new class{constructor(){}};class to extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class no extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class ro extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class oo extends Gt{constructor(e,t,n,r,o,i,a,s){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=a,this.content=s}}class io extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class ao extends Gt{constructor(e,t,n,r,o){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseHeaders=r,this.content=o}}class so{constructor(e,t){this.k=e,this.v=t}}function uo(e,t){return new so(e,t)}function lo(e){return e.k}function co(e){return e.v}class fo extends so{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function $o(e,t,n,r,o){return new fo(e,t,n,r,o)}function po(e){return e.left}function ho(e){return e.right}function mo(e){return e.h}function wo(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof fo){e=wo(n+1,po(o)),t=ho(o);continue e}return n+1|0}return 0|n}}function go(e){return wo(0,e)}function yo(e,t,n,r){let o,i;if(null!=e){const t=e;o=t instanceof fo?mo(t):1}else o=0;if(null!=r){const e=r;i=e instanceof fo?mo(e):1}else i=0;const a=0|(o<i?i:o);return 0===a?uo(t,n):$o(t,n,e,r,a+1)}function bo(e,t,n,r){let o,i,a,s,u,l;if(null!=e){const t=e;u=t instanceof fo?mo(t):1}else u=0;if(null!=r){const e=r;l=e instanceof fo?mo(e):1}else l=0;if(l>u+2){const a=on(r);if(a instanceof fo){if(o=po(a),(null!=o?(i=o,i instanceof fo?mo(i):1):0)>u+1){const r=on(po(a));if(r instanceof fo)return yo(yo(e,t,n,po(r)),lo(r),co(r),yo(ho(r),lo(a),co(a),ho(a)));throw new Error("internal error: Map.rebalance")}return yo(yo(e,t,n,po(a)),lo(a),co(a),ho(a))}throw new Error("internal error: Map.rebalance")}if(u>l+2){const o=on(e);if(o instanceof fo){if(a=ho(o),(null!=a?(s=a,s instanceof fo?mo(s):1):0)>l+1){const e=on(ho(o));if(e instanceof fo)return yo(yo(po(o),lo(o),co(o),po(e)),lo(e),co(e),yo(ho(e),t,n,r));throw new Error("internal error: Map.rebalance")}return yo(po(o),lo(o),co(o),yo(ho(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return yo(e,t,n,r)}function vo(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,lo(o));return o instanceof fo?i<0?bo(vo(e,t,n,po(o)),lo(o),co(o),ho(o)):0===i?$o(t,n,po(o),ho(o),mo(o)):bo(po(o),lo(o),co(o),vo(e,t,n,ho(o))):i<0?$o(t,n,void 0,r,2):0===i?uo(t,n):$o(t,n,r,void 0,2)}return uo(t,n)}function xo(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const a=i,s=0|r.Compare(o,lo(a));if(0===s)return rn(co(a));if(a instanceof fo){e=r,t=o,n=s<0?po(a):ho(a);continue e}return}return}}function _o(e,t,n,r,o){return t(n,r)?vo(e,n,r,o):o}function So(e,t,n,r){e:for(;;){const o=e,i=t,a=n,s=r;if(null!=a){const u=a;if(u instanceof fo){const a=So(o,i,po(u),s),l=_o(o,i,lo(u),co(u),a);e=o,t=i,n=ho(u),r=l;continue e}return _o(o,i,lo(u),co(u),s)}return s}}function Co(e,t,n){return So(e,t,n,void 0)}function To(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof fo){To(n,po(o)),n(lo(o),co(o)),e=n,t=ho(o);continue e}n(lo(o),co(o))}break}}function Eo(e,t){To(e,t)}function ko(e,t){if(null!=t){const n=t;if(n instanceof fo){const t=ko(e,po(n)),r=e(lo(n),co(n)),o=ko(e,ho(n));return $o(lo(n),r,t,o,mo(n))}return uo(lo(n),e(lo(n),co(n)))}}function Io(e,t){return ko(e,t)}function Ao(e,t){let n;for(let r=0;r<=t.length-1;r++){const o=t[r];n=vo(e,o[0],o[1],n)}return n}class No extends Gt{constructor(e,t){super(),this.stack=e,this.started=t}}function Ro(e){e:for(;;){const t=e;if(kn(t))return Cn();{const n=An(t),r=In(t);if(null!=r){const o=r;if(o instanceof fo){e=Dn([po(o),uo(lo(o),co(o)),ho(o)],n);continue e}return t}e=n;continue e}}}function Mo(e){return new No(Ro(En(e)),!1)}function Oo(e){if(e.started){const t=e.stack;if(kn(t))return function(){throw new Error("enumeration already finished")}();if(null!=In(t)){const e=In(t);if(e instanceof fo)throw new Error("Please report error: Map iterator, unexpected stack for current");return[lo(e),co(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function Do(e){let t=Mo(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Oo(t),"System.Collections.IEnumerator.get_Current":()=>Oo(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(kn(t))return!1;if(null!=In(t)){if(In(t)instanceof fo)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Ro(An(t)),!kn(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!kn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Mo(e)},Dispose(){}}}class Po{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){const t=(e,t)=>(e<<1)+t+631;let n=0;const r=Je(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|t(n,st(e[0])),n=0|t(n,st(e[1]))}}finally{qe(r)}return 0|n}(this)}Equals(e){if(!(e instanceof Po))return!1;{const t=Je(this);try{const n=Je(e);try{const e=()=>{const r=t["System.Collections.IEnumerator.MoveNext"]();if(r===n["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=t["System.Collections.Generic.IEnumerator`1.get_Current"](),o=n["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!ct(r[0],o[0])||!ct(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{qe(n)}}finally{qe(t)}}}toString(){return"map ["+Jt("; ",Vr((e=>function(e,...t){return"object"==typeof e&&t.length>0&&(e=t[0],t.shift()),e.replace(Ut,((e,n,r,o,i,a)=>{if(n<0||n>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let s=t[n];if(It(s))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":s=Nt(s,i=null!=i?i:2);break;case"g":case"G":s=null!=i?Rt(s,i):Rt(s);break;case"e":case"E":s=null!=i?Mt(s,i):Mt(s);break;case"p":case"P":i=null!=i?i:2,s=Nt(At(s,100),i)+" %";break;case"d":case"D":s=null!=i?Xt(String(s),i,"0"):String(s);break;case"x":case"X":s=null!=i?Xt(Ot(s),i,"0"):Ot(s),"X"===o&&(s=s.toUpperCase());break;default:if(a){let e="";s=a.replace(/([0#,]+)(\.[0#]+)?/,((t,n,r)=>{jt(s,0)&&(s=At(s,-1),e="-");const o=null!=r?r.length:0;if(s=Nt(s,Math.max(o-1,0)),n.indexOf(",")>0){const[e,t]=s.split("."),n=e.length%3,r=Math.floor(e.length/3);let o=n>0?e.substr(0,n)+(r>0?",":""):"";for(let t=0;t<r;t++)o+=e.substr(n+3*t,3)+(t<r-1?",":"");s=t?o+"."+t:o}const i=(n=n.replace(/,/g,"")).length>0&&"0"===n[0]?n.length:0;return Xt(s,i-e.length+o,"0")})),s=e+s}}else s=s instanceof Date?St(s,a||o):Ft(s);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(s=Xt(String(s),Math.abs(r)," ",r<0)),s}))}("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return Do(this.tree)}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Do(this.tree)}CompareTo(e){const t=this;if(e instanceof Po)return 0|function(e,t,n){const r=kr(t);try{const t=kr(n);try{let n=0,o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]();for(;0===n&&o&&i;)n=0|e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),t["System.Collections.Generic.IEnumerator`1.get_Current"]()),0===n&&(o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]());return 0|(0!==n?n:o?1:i?-1:0)}finally{qe(t)}}finally{qe(r)}}(((e,n)=>{const r=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==r?r:pt(e[1],n[1]))}),t,e);throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(e){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"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Vo(this,e[0])&&ct(Go(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){!function(e,t,n){let r=n;Eo(((e,n)=>{t[r]=[e,n],r=r+1|0}),e)}(this.tree,e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Lo(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Lo(this)}get size(){return 0|Lo(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Vr((e=>[e[0],e[1]]),this)}get(e){return Go(this,e)}has(e){return Vo(this,e)}keys(){return Vr((e=>e[0]),this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return Vr((e=>e[1]),this)}forEach(e,t){const n=this;Lr((t=>{e(t[1],t[0],n)}),n)}}function Fo(e,t){return new Po(e,t)}function Bo(e){const t=yr();return Fo(t,function(e,t){if(We(t))return Ao(e,t);if(t instanceof gn)return function(e,t){return Rn(((t,n)=>vo(e,n[0],n[1],t)),void 0,t)}(e,t);{const n=Je(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const a=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=vo(r,a[0],a[1],o),n=i}}}(e,void 0,n)}finally{qe(n)}}}(t,e))}function Go(e,t){return function(e,t,n){const r=xo(e,t,n);if(null==r)throw new Error;return on(r)}(e.comparer,t,e.tree)}function Lo(e){return go(e.tree)}function Vo(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const a=i,s=0|r.Compare(o,lo(a));if(a instanceof fo){if(s<0){e=r,t=o,n=po(a);continue e}if(0===s)return!0;e=r,t=o,n=ho(a);continue e}return 0===s}return!1}}(e.comparer,t,e.tree)}function Ho(e,t,n){return function(e,t,n){return Fo(e.comparer,vo(e.comparer,t,n,e.tree))}(n,e,t)}function Uo(e,t){return function(e,t){return xo(e.comparer,t,e.tree)}(t,e)}function jo(e,t){return function(e,t){return Fo(e.comparer,Io(t,e.tree))}(t,e)}function zo(e){return Bo(e)}function Wo(){return Po.empty}Po.empty=Fo(yr(),void 0);const Yo=new oo("",new to(0),Cn(),!1,void 0,void 0,void 0,new ro(0));function qo(e,t){return"string"!=typeof(n=t)||0===n.length?[t]:Qt(t,[e],null,0);var n}function Ko(e){return new oo(e,Yo.method,Yo.headers,Yo.withCredentials,Yo.overridenMimeType,Yo.overridenResponseType,Yo.timeout,Yo.content)}function Zo(e,t){return new oo(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Jo(e,t){return new oo(t.url,t.method,Fn(t.headers,En(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Xo(e){return function(e){return ar((t=>e([t.onSuccess,t.onError,t.onCancel])))}((t=>{const n=new XMLHttpRequest;n.open(function(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"}}(e.method),e.url),n.onreadystatechange=()=>{let e,r,o,i,a,s;4===n.readyState&&t[0]((r=n.responseType,e=""===r||"text"===r?n.responseText:"",o=0|n.status,i=n.responseType,s=n.responseType,a=""===s||"text"===s?new io(0,n.responseText):new io("arraybuffer"===s?2:"blob"===s?1:3,n.response),new ao(o,e,i,function(e){const t=yr();return Fo(t,Ao(t,e))}(function(e,t,n){const r=[];for(let n=0;n<=t.length-1;n++){const o=e(t[n]);if(null!=o){const e=on(o);r.push(e)}}return r}((e=>{const t=Pn(qo(":",e));return kn(t)?void 0:[In(t).toLocaleLowerCase(),Jt(":",An(t)).trim()]}),qo("\r\n",n.getAllResponseHeaders()))),a)))};const r=Je(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(e.fields[0],e.fields[1])}}finally{qe(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(null==o);else{const e=o;n.overrideMimeType(e)}const i=e.overridenResponseType;null==i||(1===i.tag?n.responseType="blob":2===i.tag?n.responseType="arraybuffer":n.responseType="text");const a=e.timeout;if(null==a);else{const e=0|a;n.timeout=0|e}const s=[e.method,e.content];0===s[0].tag?n.send(rn(void 0)):1===s[1].tag||3===s[1].tag||2===s[1].tag?n.send(rn(s[1].fields[0])):n.send(rn(void 0))}))}new ao(0,"","",Wo(),new io(0,""));class Qo extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class ei extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class ti{constructor(){this.cache=new Map([])}}function ni(){return new ti}function ri(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function oi(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=function(e,t=0){if(0!=(-284&t))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=1&t?"i":"",n+=2&t?"m":"",n+=16&t?"s":"",new RegExp(e,n)}(t,null!=r?r:0),t=n,r=void 0}if("function"==typeof n)return r=null==r?-1:r,t.substring(0,o)+t.substring(o).replace(e,(function(){let e=arguments[0];if(r){r--;const t=[],o=arguments.length,i="string"!=typeof arguments[o-1];let a=i?o-3:o-2;for(let e=0;e<a;e++)t.push(arguments[e]);t.index=arguments[a++],t.input=arguments[a++],i&&(t.groups=arguments[a]),e=n(t)}return e}));if(n=n.replace(/\$0/g,(e=>"$&")).replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const a=t.substring(o),s=Pt(e,a),u=Pt.length>r?(i=s[r-1],a.substring(0,i.index+i[0].length)):a;return t.substring(0,o)+u.replace(e,n)+t.substring(o+u.length)}return t.replace(e,n)}(ri(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return ri(t)}}ni(),ni();const ii=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,ai=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,si=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function ui(e,t){try{return t.contents=function(e){function t(e){return e.replace(ai,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(ii.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+Dt(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(ai.test(n))return t(n);if(si.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}(e),!0}catch(e){return!1}}var li;function ci(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 fi(e,t,n,r,o){const i=function(e,t,n){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;n=n||function(e,t){if(t&li.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}}(e,t);const i=function(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.")}}(n);if(!i.test(o))return function(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}(r,n)}return null}(e,t,o);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[t,o]=ci(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[a,s]=ci(n,r);if(e>=a&&e<=s)return e}}throw new Error("Input string was not in a correct format.")}function di(e,t,n,r,o){try{return o.contents=fi(e,t,n,r),!0}catch(e){return!1}}function $i(e,t){!function(e){if(null!=e&&0!==e){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.")}}(t);const n=new Date(e);return n.offset=null!=t?t:-6e4*(new Date).getTimezoneOffset(),n}function pi(e,t){try{return t.contents=function(e){const[t,n]=Tt(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n?0:6e4*n;return $i(t.getTime(),r)}(e),!0}catch(e){return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(li||(li={}));var hi=null;try{hi=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(c){}function mi(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function wi(e){return!0===(e&&e.__isLong__)}mi.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},mi.prototype.Equals=function(e){return ji(this,e)},mi.prototype.CompareTo=function(e){return qi(this,e)},mi.prototype.toString=function(e){return Li(this,e)},mi.prototype.toJSON=function(){return Li(this)},mi.prototype[kt]=function(){const e=this;return{multiply:t=>Xi(e,t),toPrecision:t=>String(e)+(0).toPrecision(t).substr(1),toExponential:t=>String(e)+(0).toExponential(t).substr(1),toFixed:t=>String(e)+(0).toFixed(t).substr(1),toHex:()=>{return Li(e.unsigned?e:function(e,t,n){return n?function(e,t){return new mi(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)}(e,t):function(e,t){return new mi(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}(e,t)}((t=e,n?function(e){var t=e.high,n=e.low;return[255&n,n>>>8&255,n>>>16&255,n>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]}(t):function(e){var t=e.high,n=e.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,n>>>24,n>>>16&255,n>>>8&255,255&n]}(t)),!0),16);var t,n}}},mi.prototype.__isLong__,Object.defineProperty(mi.prototype,"__isLong__",{value:!0});var gi={},yi={};function bi(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=yi[e])?r:(n=xi(e,(0|e)<0?-1:0,!0),o&&(yi[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=gi[e])?r:(n=xi(e,e<0?-1:0,!1),o&&(gi[e]=n),n)}function vi(e,t){if(isNaN(e))return t?Ni:Ai;if(t){if(e<0)return Ni;if(e>=Ei)return Pi}else{if(e<=-ki)return Fi;if(e+1>=ki)return Di}return e<0?Ki(vi(-e,t)):xi(e%Ti|0,e/Ti|0,t)}function xi(e,t,n){return new mi(e,t,n)}var _i=Math.pow;function Si(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Ai;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||36<n)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(0===r)return Ki(Si(e.substring(1),t,n));for(var o=vi(_i(n,8)),i=Ai,a=0;a<e.length;a+=8){var s=Math.min(8,e.length-a),u=parseInt(e.substring(a,a+s),n);i=Zi(s<8?Xi(i,vi(_i(n,s))):i=Xi(i,o),vi(u))}return i.unsigned=t,i}function Ci(e,t){return"number"==typeof e?vi(e,t):"string"==typeof e?Si(e,t):xi(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var Ti=4294967296,Ei=Ti*Ti,ki=Ei/2,Ii=bi(1<<24),Ai=bi(0),Ni=bi(0,!0),Ri=bi(1),Mi=bi(1,!0),Oi=bi(-1),Di=xi(-1,2147483647,!1),Pi=xi(-1,-1,!0),Fi=xi(0,-2147483648,!1);function Bi(e){return e.unsigned?e.low>>>0:e.low}function Gi(e){return e.unsigned?(e.high>>>0)*Ti+(e.low>>>0):e.high*Ti+(e.low>>>0)}function Li(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(Vi(e))return"0";if(Hi(e)){if(ji(e,Fi)){var n=vi(t),r=Qi(e,n),o=Ji(Xi(r,n),e);return Li(r,t)+Bi(o).toString(t)}return"-"+Li(Ki(e),t)}for(var i=vi(_i(t,6),e.unsigned),a=e,s="";;){var u=Qi(a,i),l=(Bi(Ji(a,Xi(u,i)))>>>0).toString(t);if(Vi(a=u))return l+s;for(;l.length<6;)l="0"+l;s=""+l+s}}function Vi(e){return 0===e.high&&0===e.low}function Hi(e){return!e.unsigned&&e.high<0}function Ui(e){return 1==(1&e.low)}function ji(e,t){return wi(t)||(t=Ci(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&e.high===t.high&&e.low===t.low}function zi(e,t){return qi(e,t)<0}function Wi(e,t){return qi(e,t)>0}function Yi(e,t){return qi(e,t)>=0}function qi(e,t){if(wi(t)||(t=Ci(t)),ji(e,t))return 0;var n=Hi(e),r=Hi(t);return n&&!r?-1:!n&&r?1:e.unsigned?t.high>>>0>e.high>>>0||t.high===e.high&&t.low>>>0>e.low>>>0?-1:1:Hi(Ji(e,t))?-1:1}function Ki(e){return!e.unsigned&&ji(e,Fi)?Fi:Zi(function(e){return xi(~e.low,~e.high,e.unsigned)}(e),Ri)}function Zi(e,t){wi(t)||(t=Ci(t));var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,a=t.high>>>16,s=65535&t.high,u=t.low>>>16,l=0,c=0,f=0,d=0;return f+=(d+=i+(65535&t.low))>>>16,c+=(f+=o+u)>>>16,l+=(c+=r+s)>>>16,l+=n+a,xi((f&=65535)<<16|(d&=65535),(l&=65535)<<16|(c&=65535),e.unsigned)}function Ji(e,t){return wi(t)||(t=Ci(t)),Zi(e,Ki(t))}function Xi(e,t){if(Vi(e))return e.unsigned?Ni:Ai;if(wi(t)||(t=Ci(t)),hi)return xi(hi.mul(e.low,e.high,t.low,t.high),hi.get_high(),e.unsigned);if(Vi(t))return e.unsigned?Ni:Ai;if(ji(e,Fi))return Ui(t)?Fi:Ai;if(ji(t,Fi))return Ui(e)?Fi:Ai;if(Hi(e))return Hi(t)?Xi(Ki(e),Ki(t)):Ki(Xi(Ki(e),t));if(Hi(t))return Ki(Xi(e,Ki(t)));if(zi(e,Ii)&&zi(t,Ii))return vi(Gi(e)*Gi(t),e.unsigned);var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,a=t.high>>>16,s=65535&t.high,u=t.low>>>16,l=65535&t.low,c=0,f=0,d=0,$=0;return d+=($+=i*l)>>>16,f+=(d+=o*l)>>>16,d&=65535,f+=(d+=i*u)>>>16,c+=(f+=r*l)>>>16,f&=65535,c+=(f+=o*u)>>>16,f&=65535,c+=(f+=i*s)>>>16,c+=n*l+r*u+o*s+i*a,xi((d&=65535)<<16|($&=65535),(c&=65535)<<16|(f&=65535),e.unsigned)}function Qi(e,t){if(wi(t)||(t=Ci(t)),Vi(t))throw Error("division by zero");var n,r,o;if(hi)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?xi((e.unsigned?hi.div_u:hi.div_s)(e.low,e.high,t.low,t.high),hi.get_high(),e.unsigned):e;if(Vi(e))return e.unsigned?Ni:Ai;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:xi(e.low,e.high,!0)}(t)),Wi(t,e))return Ni;if(Wi(t,function(e,t){if(wi(t)&&(t=Bi(t)),0==(t&=63))return e;var n=e.high;return t<32?xi(e.low>>>t|n<<32-t,n>>>t,e.unsigned):xi(32===t?n:n>>>t-32,0,e.unsigned)}(e,1)))return Mi;o=Ni}else{if(ji(e,Fi))return ji(t,Ri)||ji(t,Oi)?Fi:ji(t,Fi)?Ri:ji(n=function(e,t){return wi(t)&&(t=Bi(t)),0==(t&=63)?e:t<32?xi(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):xi(0,e.low<<t-32,e.unsigned)}(Qi(function(e,t){return wi(t)&&(t=Bi(t)),0==(t&=63)?e:t<32?xi(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):xi(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}(e,1),t),1),Ai)?Hi(t)?Ri:Oi:o=Zi(n,Qi(r=Ji(e,Xi(t,n)),t));if(ji(t,Fi))return e.unsigned?Ni:Ai;if(Hi(e))return Hi(t)?Qi(Ki(e),Ki(t)):Ki(Qi(Ki(e),t));if(Hi(t))return Ki(Qi(e,Ki(t)));o=Ai}for(r=e;Yi(r,t);){n=Math.max(1,Math.floor(Gi(r)/Gi(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),a=i<=48?1:_i(2,i-48),s=vi(n),u=Xi(s,t);Hi(u)||Wi(u,r);)u=Xi(s=vi(n-=a,e.unsigned),t);Vi(s)&&(s=Ri),o=Zi(o,s),r=Ji(r,u)}return o}const ea=Qi,ta=Gi;function na(e){return e<0?Math.ceil(e):Math.floor(e)}function ra(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return oa(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0}return 864e5*e+36e5*t+6e4*n+1e3*r+o}function oa(e){return ta(ea(e,1e4))}function ia(e,t){try{return t.contents=function(e){const t=e.search("\\."),n=e.search("\\:");if(-1===t&&-1===n){const t=parseInt(e,0);if(isNaN(t))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return ra(t,0,0,0,0)}if(n>0){const t=/^(-?)((\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(null!=t&&null!=t[4]&&null!=t[5]){let n=0,r=0,o=0;const i=null!=t[1]&&"-"===t[1]?-1:1,a=+t[4],s=+t[5];if(null!=t[3]&&(n=+t[3]),null!=t[7]&&(o=+t[7]),null!=t[8])switch(t[8].length){case 1:r=100*+t[8];break;case 2:r=10*+t[8];break;case 3:r=+t[8];break;case 4:r=+t[8]/10;break;case 5:r=+t[8]/100;break;case 6:r=+t[8]/1e3;break;case 7:r=+t[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return i*ra(n,a,s,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class aa{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class sa{constructor(e,t,n,r,o,i,a){this.fullname=e,this.generics=t,this.construct=n,this.parent=r,this.fields=o,this.cases=i,this.enumCases=a}toString(){return xa(this)}GetHashCode(){return la(this)}Equals(e){return ca(this,e)}}function ua(e){return null!=e.generics?e.generics:[]}function la(e){return at([ot(e.fullname),...ua(e).map(la)])}function ca(e,t){return""===e.fullname?""===t.fullname&&ut(Ra(e),Ra(t),(([e,t],[n,r])=>e===n&&ca(t,r))):e.fullname===t.fullname&&ut(ua(e),ua(t),ca)}function fa(e,t,n,r){return new sa(e,t,n,void 0,r)}function da(...e){return new sa("",void 0,void 0,void 0,(()=>e))}function $a(e,t,n,r){const o=new sa(e,t,n,void 0,void 0,(()=>{const e=n.prototype.cases();return r().map(((t,n)=>new aa(o,n,e[n],t)))}));return o}function pa(e){return new sa("Microsoft.FSharp.Core.FSharpOption`1",[e])}function ha(e){return new sa("Microsoft.FSharp.Collections.FSharpList`1",[e])}function ma(e,t,n){return new sa(e,[t],void 0,void 0,void 0,void 0,n)}const wa=new sa("System.Object"),ga=(new sa("Microsoft.FSharp.Core.Unit"),new sa("System.Char"),new sa("System.String")),ya=new sa("System.Boolean"),ba=(new sa("System.SByte"),new sa("System.Byte"),new sa("System.Int16"),new sa("System.UInt16"),new sa("System.Int32"));function va(e){if(Array.isArray(e))return e[0];if(e instanceof sa){const t=Sa(e);if(null!=t)return va(t)+"[]";{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}return e.name}function xa(e){const t=Sa(e);return null!=t?xa(t)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>xa(e))).join(",")+"]"}function _a(e){return null!=Sa(e)}function Sa(e){var t;return"[]"===e.fullname&&1===(null===(t=e.generics)||void 0===t?void 0:t.length)?e.generics[0]:void 0}function Ca(e){return null!=e.generics&&e.generics.length>0}function Ta(e){return null!=e.enumCases&&e.enumCases.length>0}function Ea(e){return null==e.generics?e:new sa(e.fullname,e.generics.map((()=>wa)))}function ka(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function Ia(e){if(Ta(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function Aa(e,t){const n=parseInt(t,10);return function(e,t){if(null!=e.enumCases){if("string"==typeof t){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}throw new Error(`${e.fullname} is not an enum type`)}(e,isNaN(n)?t:n)[1]}function Na(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Ra(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Ma(e){if(Pa(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Oa(e){return e instanceof sa?null!=e.cases:e instanceof Bt}function Da(e){return e instanceof sa?null!=e.fields:e instanceof Gt}function Pa(e){return e.fullname.startsWith("System.Tuple")}function Fa(e){return null==e.fields?[]:e.fields}function Ba(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);return null!=e.declaringType.construct?new e.declaringType.construct(e.tag,...t):{}}new sa("System.UInt32"),new sa("System.Single"),new sa("System.Double"),new sa("System.Decimal");class Ga{constructor(e){this.k=e}}function La(e){return new Ga(e)}function Va(e){return e.k}class Ha extends Ga{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function Ua(e,t,n,r){return new Ha(e,t,n,r)}function ja(e){return e.left}function za(e){return e.right}function Wa(e){return e.h}function Ya(e,t){e:for(;;){const n=e,r=t;if(null!=n){const o=n;if(o instanceof Ha){e=ja(o),t=Ya(za(o),r+1);continue e}return r+1|0}return 0|r}}function qa(e){return Ya(e,0)}function Ka(e,t,n){let r,o;if(null!=e){const t=e;r=t instanceof Ha?Wa(t):1}else r=0;if(null!=n){const e=n;o=e instanceof Ha?Wa(e):1}else o=0;const i=0|(r<o?o:r);return 0===i?La(t):Ua(t,e,n,i+1)}function Za(e,t,n){let r,o,i,a,s,u;if(null!=e){const t=e;s=t instanceof Ha?Wa(t):1}else s=0;if(null!=n){const e=n;u=e instanceof Ha?Wa(e):1}else u=0;if(u>s+2){const i=on(n);if(i instanceof Ha){if(r=ja(i),(null!=r?(o=r,o instanceof Ha?Wa(o):1):0)>s+1){const n=on(ja(i));if(n instanceof Ha)return Ka(Ka(e,t,ja(n)),Va(n),Ka(za(n),Va(i),za(i)));throw new Error("internal error: Set.rebalance")}return Ka(Ka(e,t,ja(i)),Va(i),za(i))}throw new Error("internal error: Set.rebalance")}if(s>u+2){const r=on(e);if(r instanceof Ha){if(i=za(r),(null!=i?(a=i,a instanceof Ha?Wa(a):1):0)>u+1){const e=on(za(r));if(e instanceof Ha)return Ka(Ka(ja(r),Va(r),ja(e)),Va(e),Ka(za(e),t,n));throw new Error("internal error: Set.rebalance")}return Ka(ja(r),Va(r),Ka(za(r),t,n))}throw new Error("internal error: Set.rebalance")}return Ka(e,t,n)}function Ja(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,Va(r));if(r instanceof Ha)return o<0?Za(Ja(e,t,ja(r)),Va(r),za(r)):0===o?n:Za(ja(r),Va(r),Ja(e,t,za(r)));{const o=0|e.Compare(t,Va(r));return o<0?Ua(t,void 0,n,2):0===o?n:Ua(t,n,void 0,2)}}return La(t)}function Xa(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const a=i,s=0|r.Compare(o,Va(a));if(a instanceof Ha){if(s<0){e=r,t=o,n=ja(a);continue e}if(0===s)return!0;e=r,t=o,n=za(a);continue e}return 0===s}return!1}}function Qa(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof Ha){Qa(n,ja(o)),n(Va(o)),e=n,t=za(o);continue e}n(Va(o))}break}}class es extends Gt{constructor(e,t){super(),this.stack=e,this.started=t}}function ts(e){e:for(;;){const t=e;if(kn(t))return Cn();{const n=In(t),r=An(t);if(null!=n){const o=n;if(o instanceof Ha){e=Dn([ja(o),La(Va(o)),za(o)],r);continue e}return t}e=r;continue e}}}function ns(e){return new es(ts(En(e)),!1)}function rs(e){if(e.started){const t=e.stack;if(kn(t))return function(){throw new Error("Enumeration already started")}();if(null!=In(t))return Va(In(t));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function os(e){let t=ns(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>rs(t),"System.Collections.IEnumerator.get_Current":()=>rs(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(kn(t))return!1;if(null!=In(t)){if(In(t)instanceof Ha)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=ts(An(t)),!kn(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!kn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=ns(e)},Dispose(){}}}function is(e,t,n){return null==t?null==n?0:-1:null==n?1:0|function(e,t,n){e:for(;;){const r=e,o=t,i=n,a=[o,i];if(kn(a[0]))return kn(a[1])?0:-1;if(kn(a[1]))return 1;if(null!=In(a[1]))if(null!=In(a[0])){const s=In(a[0]),u=In(a[1]);if(s instanceof Ha)if(null==ja(s)){if(!(u instanceof Ha)){const o=0|r.Compare(Va(s),Va(u));if(0!==o)return 0|o;e=r,t=Tn(za(s),An(a[0])),n=Tn(void 0,An(a[1]));continue e}if(null==ja(u)){const o=0|r.Compare(Va(s),Va(u));if(0!==o)return 0|o;e=r,t=Tn(za(s),An(a[0])),n=Tn(za(u),An(a[1]));continue e}{const a=[o,i];let s,u,l,c,f;switch(kn(a[0])?kn(a[1])?s=2:null!=In(a[1])?(s=1,c=An(a[1]),f=In(a[1])):s=2:null!=In(a[0])?(s=0,u=An(a[0]),l=In(a[0])):kn(a[1])?s=2:null!=In(a[1])?(s=1,c=An(a[1]),f=In(a[1])):s=2,s){case 0:if(l instanceof Ha){e=r,t=Dn([ja(l),Ua(Va(l),void 0,za(l),0)],u),n=i;continue e}e=r,t=Dn([void 0,La(Va(l))],u),n=i;continue e;case 1:if(f instanceof Ha){e=r,t=o,n=Dn([ja(f),Ua(Va(f),void 0,za(f),0)],c);continue e}e=r,t=o,n=Dn([void 0,La(Va(f))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const a=[o,i];let s,u,l,c,f;switch(kn(a[0])?kn(a[1])?s=2:null!=In(a[1])?(s=1,c=An(a[1]),f=In(a[1])):s=2:null!=In(a[0])?(s=0,u=An(a[0]),l=In(a[0])):kn(a[1])?s=2:null!=In(a[1])?(s=1,c=An(a[1]),f=In(a[1])):s=2,s){case 0:if(l instanceof Ha){e=r,t=Dn([ja(l),Ua(Va(l),void 0,za(l),0)],u),n=i;continue e}e=r,t=Dn([void 0,La(Va(l))],u),n=i;continue e;case 1:if(f instanceof Ha){e=r,t=o,n=Dn([ja(f),Ua(Va(f),void 0,za(f),0)],c);continue e}e=r,t=o,n=Dn([void 0,La(Va(f))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(u instanceof Ha)){const o=0|r.Compare(Va(s),Va(u));if(0!==o)return 0|o;e=r,t=An(a[0]),n=An(a[1]);continue e}if(null==ja(u)){const o=0|r.Compare(Va(s),Va(u));if(0!==o)return 0|o;e=r,t=Tn(void 0,An(a[0])),n=Tn(za(u),An(a[1]));continue e}{const a=[o,i];let s,u,l,c,f;switch(kn(a[0])?kn(a[1])?s=2:null!=In(a[1])?(s=1,c=An(a[1]),f=In(a[1])):s=2:null!=In(a[0])?(s=0,u=An(a[0]),l=In(a[0])):kn(a[1])?s=2:null!=In(a[1])?(s=1,c=An(a[1]),f=In(a[1])):s=2,s){case 0:if(l instanceof Ha){e=r,t=Dn([ja(l),Ua(Va(l),void 0,za(l),0)],u),n=i;continue e}e=r,t=Dn([void 0,La(Va(l))],u),n=i;continue e;case 1:if(f instanceof Ha){e=r,t=o,n=Dn([ja(f),Ua(Va(f),void 0,za(f),0)],c);continue e}e=r,t=o,n=Dn([void 0,La(Va(f))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{In(a[1]);const s=[o,i];let u,l,c,f,d;switch(kn(s[0])?kn(s[1])?u=2:null!=In(s[1])?(u=1,f=An(s[1]),d=In(s[1])):u=2:null!=In(s[0])?(u=0,l=An(s[0]),c=In(s[0])):kn(s[1])?u=2:null!=In(s[1])?(u=1,f=An(s[1]),d=In(s[1])):u=2,u){case 0:if(c instanceof Ha){e=r,t=Dn([ja(c),Ua(Va(c),void 0,za(c),0)],l),n=i;continue e}e=r,t=Dn([void 0,La(Va(c))],l),n=i;continue e;case 1:if(d instanceof Ha){e=r,t=o,n=Dn([ja(d),Ua(Va(d),void 0,za(d),0)],f);continue e}e=r,t=o,n=Dn([void 0,La(Va(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==In(a[0])){e=r,t=An(a[0]),n=An(a[1]);continue e}{In(a[0]);const s=[o,i];let u,l,c,f,d;switch(kn(s[0])?kn(s[1])?u=2:null!=In(s[1])?(u=1,f=An(s[1]),d=In(s[1])):u=2:null!=In(s[0])?(u=0,l=An(s[0]),c=In(s[0])):kn(s[1])?u=2:null!=In(s[1])?(u=1,f=An(s[1]),d=In(s[1])):u=2,u){case 0:if(c instanceof Ha){e=r,t=Dn([ja(c),Ua(Va(c),void 0,za(c),0)],l),n=i;continue e}e=r,t=Dn([void 0,La(Va(c))],l),n=i;continue e;case 1:if(d instanceof Ha){e=r,t=o,n=Dn([ja(d),Ua(Va(d),void 0,za(d),0)],f);continue e}e=r,t=o,n=Dn([void 0,La(Va(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,En(t),En(n))}function as(e,t,n){let r=n;Qa((e=>{t[r]=e,r=r+1|0}),e)}function ss(e,t){if(We(t))return function(e,t){return mn(((t,n)=>Ja(e,n,t)),void 0,t)}(e,t);if(t instanceof gn)return function(e,t){return Rn(((t,n)=>Ja(e,n,t)),void 0,t)}(e,t);{const n=Je(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;e=r,t=Ja(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{qe(n)}}}class us{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t,n=0;const r=Je(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();)n=0|(t=0|st(r["System.Collections.Generic.IEnumerator`1.get_Current"]()),(n<<1)+t+631)}finally{qe(r)}return 0|Math.abs(n)}(this)}Equals(e){return e instanceof us&&0===is(ls(this),cs(this),cs(e))}toString(){return"set ["+Jt("; ",Vr((e=>Ft(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|is(ls(this),cs(this),cs(e))}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Xa(ls(this),e,cs(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){as(cs(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|fs(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|fs(this)}GetEnumerator(){return os(cs(this))}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return os(cs(this))}get size(){return 0|fs(this)}add(e){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(e){throw new Error("Set cannot be mutated")}has(e){return function(e,t){return Xa(ls(e),t,cs(e))}(this,e)}keys(){return Vr((e=>e),this)}values(){return Vr((e=>e),this)}entries(){return Vr((e=>[e,e]),this)}forEach(e,t){const n=this;Lr((t=>{e(t,t,n)}),n)}}function ls(e){return e.comparer}function cs(e){return e.tree}function fs(e){return qa(cs(e))}function ds(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?"\n":" ")+JSON.stringify(t,null,4)}catch(t){return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?"\n":" ")}}function $s(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new mr(1,function(e,t){const n=2===t.tag?ds(t.fields[0],t.fields[1],!0):1===t.tag?ds(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?ds(t.fields[0],t.fields[1],!0):4===t.tag?ds(t.fields[0],t.fields[1],!0)+"\nNode `"+t.fields[2]+"` is unkown.":5===t.tag?"Expecting "+t.fields[0]+".\n"+JSON.stringify(t.fields[1],null,4):7===t.tag?"The following errors were found:\n\n"+Jt("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:ds(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}(e[0],e[1]))}return new mr(0,r.fields[0])}const ps=e=>t=>{const n="a sbyte",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new mr(0,(e+128&255)-128):new mr(1,[r,new Qo(1,n,e,"Value was either too large or too small for a sbyte")]):new mr(1,[r,new Qo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[di(o,511,!1,8,new Lt((()=>t),(e=>{t=0|e}))),t],e[0]?new mr(0,e[1]):new mr(1,[r,new Qo(0,n,o)])}return new mr(1,[r,new Qo(0,n,o)])},hs=e=>t=>{const n="a byte",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new mr(0,255&e):new mr(1,[r,new Qo(1,n,e,"Value was either too large or too small for a byte")]):new mr(1,[r,new Qo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[di(o,511,!0,8,new Lt((()=>t),(e=>{t=e}))),t],e[0]?new mr(0,e[1]):new mr(1,[r,new Qo(0,n,o)])}return new mr(1,[r,new Qo(0,n,o)])},ms=e=>t=>{const n="an int16",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-32768<=e&&e<=32767?new mr(0,(e+32768&65535)-32768):new mr(1,[r,new Qo(1,n,e,"Value was either too large or too small for "+n)]):new mr(1,[r,new Qo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[di(o,511,!1,16,new Lt((()=>t),(e=>{t=0|e}))),t],e[0]?new mr(0,e[1]):new mr(1,[r,new Qo(0,n,o)])}return new mr(1,[r,new Qo(0,n,o)])},ws=e=>t=>{const n="an uint16",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=65535?new mr(0,65535&e):new mr(1,[r,new Qo(1,n,e,"Value was either too large or too small for "+n)]):new mr(1,[r,new Qo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[di(o,511,!0,16,new Lt((()=>t),(e=>{t=e}))),t],e[0]?new mr(0,e[1]):new mr(1,[r,new Qo(0,n,o)])}return new mr(1,[r,new Qo(0,n,o)])},gs=e=>t=>{const n="an int",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new mr(0,~~e):new mr(1,[r,new Qo(1,n,e,"Value was either too large or too small for an int")]):new mr(1,[r,new Qo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[di(o,511,!1,32,new Lt((()=>t),(e=>{t=0|e}))),t],e[0]?new mr(0,e[1]):new mr(1,[r,new Qo(0,n,o)])}return new mr(1,[r,new Qo(0,n,o)])},ys=e=>t=>{const n="an uint32",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=4294967295?new mr(0,e>>>0):new mr(1,[r,new Qo(1,n,e,"Value was either too large or too small for "+n)]):new mr(1,[r,new Qo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[di(o,511,!0,32,new Lt((()=>t),(e=>{t=e}))),t],e[0]?new mr(0,e[1]):new mr(1,[r,new Qo(0,n,o)])}return new mr(1,[r,new Qo(0,n,o)])};function bs(e,t,n,r){let o;const i=n+".["+nt(e)+"]";if(Array.isArray(r)){const n=r;return e<n.length?t(i,n[e]):new mr(1,[i,new Qo(5,"a longer array. Need index `"+nt(e)+"` but there are only `"+(o=n.length,nt(o)+"` entries"),r)])}return new mr(1,[i,new Qo(0,"an array",r)])}function vs(e,t,n){if(Array.isArray(n)){let r=-1;return wr(Mn,mn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+nt(r)+"]",o);return 0===i.tag?new mr(0,Tn(i.fields[0],n.fields[0])):new mr(1,i.fields[0])}return n}),new mr(0,Cn()),n))}return new mr(1,[t,new Qo(0,"a list",n)])}function xs(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return mn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=n.fields[0],a=e(t+".["+nt(r)+"]",o);return 0===a.tag?(i[r]=a.fields[0],new mr(0,i)):new mr(1,a.fields[0])}return n}),new mr(0,$n(new Array(o.length),0,o.length,null)),o)}return new mr(1,[t,new Qo(0,"an array",n)])}function _s(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new mr(1,o.fields[0])}function Ss(e,t){let n;const r=e;return n=e=>t=>bs(0,r,e,t),e=>r=>_s(gt(3,(e=>{let n;const r=t;return n=e=>t=>bs(1,r,e,t),t=>r=>_s(((t,n,r)=>new mr(0,[e,t])),gt(2,n),t,r)})),gt(2,n),e,r)}function Cs(e){return zo(e)}function Ts(e){return function(e,t){return new us(e,t)}(t={Compare:pt},ss(t,e));var t}function Es(e,t,n,r){let o,i;return t.length!==r.length?new mr(1,[n,new Qo(6,(o=0|r.length,i=0|t.length,Yt(zt("Expected %i %s but got %i"))(i)(e)(o)))]):wn(((e,t,r)=>0===r.tag?wr((e=>Tn(e,r.fields[0])),t(n)(e)):r),r,t,new mr(0,Cn()))}function ks(e,t,n,r,o,i){const a=function(e,t){return t.find((e=>va(e)===r))}(0,Na(n));if(null!=a){const n=a;return 0===i.length?new mr(0,Ba(n,[])):wr((e=>Ba(n,Nn(e))),Es("union fields",pn((n=>As(e,t,!1,n[1])),Fa(n)),o,i))}return new mr(1,[o,new Qo(6,"Cannot find case "+r+" in "+xa(n))])}function Is(e,t,n,r){const o=new Lt(null),i=Ho(xa(r),o,e);let a;if(Da(r)){const e=pn((e=>[oi(t,va(e)),As(i,t,!1,e[1])]),Ra(r));a=t=>n=>wr((e=>function(e,t){const n=Ra(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return null!=e.construct?new e.construct(...t):n.reduce(((e,[n,r],o)=>(e[n]=t[o],e)),{})}(r,Nn(e))),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new mr(1,[t,new Qo(0,"an object",n)]):function(e,t,n){return t.reduceRight(((t,n)=>e(n,t)),n)}(gt(2,(e=>{const r=e[0];return o=>0===o.tag?wr((e=>Tn(e,o.fields[0])),e[1](t+"."+r)(n[r])):o})),e,new mr(0,Cn()))}(e,t,n))}else if(Oa(r))a=e=>n=>{if("string"==typeof n)return ks(i,t,r,n,e,[]);if(Array.isArray(n)){const o=n;return ks(i,t,r,o[0],e,o.slice(1,o.length))}return new mr(1,[e,new Qo(0,"a string or array",n)])};else{if(!n){let e;const t=xa(r);throw e=Yt(zt("Cannot generate auto decoder for %s. Please pass an extra decoder."))(t),new Error(e)}a=e=>t=>new mr(1,[e,new Qo(2,"an extra coder for "+xa(r),t)])}return o.contents=a,a}function As(e,t,n,r){let o,i,a;const s=xa(r),u=Uo(s,e);if(null==u){if(_a(r)){const n=As(e,t,!1,Sa(r));return e=>t=>xs(gt(2,n),e,t)}if(Ta(r)){const e=xa(ka(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,a=ps(o)(i);if(1===a.tag)return new mr(1,a.fields[0]);{const e=a.fields[0];return Fr(e,Ia(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new mr(0,Aa(n,e.toString())):new mr(1,[o,new Qo(1,xa(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,a=hs(o)(i);if(1===a.tag)return new mr(1,a.fields[0]);{const e=a.fields[0];return Fr(e,Ia(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new mr(0,Aa(n,e.toString())):new mr(1,[o,new Qo(1,xa(n),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,a=ms(o)(i);if(1===a.tag)return new mr(1,a.fields[0]);{const e=a.fields[0];return Fr(e,Ia(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new mr(0,Aa(n,e.toString(s))):new mr(1,[o,new Qo(1,xa(n),i,"Unkown value provided for the enum")])}var s};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,a=ws(o)(i);if(1===a.tag)return new mr(1,a.fields[0]);{const e=a.fields[0];return Fr(e,Ia(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new mr(0,Aa(n,e.toString())):new mr(1,[o,new Qo(1,xa(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,a=gs(o)(i);if(1===a.tag)return new mr(1,a.fields[0]);{const e=a.fields[0];return Fr(e,Ia(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new mr(0,Aa(n,nt(e))):new mr(1,[o,new Qo(1,xa(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,a=ys(o)(i);if(1===a.tag)return new mr(1,a.fields[0]);{const e=a.fields[0];return Fr(e,Ia(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new mr(0,Aa(n,e.toString())):new mr(1,[o,new Qo(1,xa(n),i,"Unkown value provided for the enum")])}};{const e=xa(r),t=qt(zt("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the folluwing enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra decoder.\n "))(e);return e=>t(e)}}if(Ca(r)){if(Pa(r)){const n=pn((n=>As(e,t,!1,n)),Ma(r));return e=>t=>Array.isArray(t)?wr((e=>Nn(e)),Es("tuple elements",n,e,t)):new mr(1,[e,new Qo(0,"an array",t)])}{const s=xa(Ea(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===s)return o=As(e,t,!0,ua(r)[0]),e=>t=>{return n=gt(2,o),r=e,null==(i=t)?new mr(0,void 0):wr(rn,n(r,i));var n,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===s)return i=As(e,t,!1,ua(r)[0]),e=>t=>vs(gt(2,i),e,t);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===s){const n=As(e,t,!1,ua(r)[0]),o=As(e,t,!1,ua(r)[1]);let i;const s=Pn([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new mr(1,[n,new Qo(0,"an object",r)]):Gr(((o,i)=>{if(0===o.tag){const a=e(n,i);if(0===a.tag){const e=t(n+"."+i,r[i]);return 0===e.tag?new mr(0,Tn([a.fields[0],e.fields[0]],o.fields[0])):new mr(1,e.fields[0])}return new mr(1,a.fields[0])}return o}),new mr(0,Cn()),Object.keys(r))}(gt(2,n),gt(2,o),e,t),(a=Ss(gt(2,n),gt(2,o)),e=>t=>vs(gt(2,a),e,t))]);return i=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(kn(o))return new mr(1,[n,new Qo(7,i)]);{const a=$s(n,gt(2,In(o)),r);if(1===a.tag){e=An(o),t=Fn(i,En(a.fields[0]));continue e}return new mr(0,a.fields[0])}}})(s,Cn());var n,r},e=>t=>function(e,t,n,r){const o=t(n,r);return 1===o.tag?new mr(1,o.fields[0]):new mr(0,e(o.fields[0]))}(Cs,gt(2,i),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===s){const n=As(e,t,!1,ua(r)[0]);return e=>t=>{const r=xs(gt(2,n),e,t);return 0===r.tag?new mr(0,Ts(r.fields[0])):new mr(1,r.fields[0])}}return Is(e,t,n,r)}}return"System.Boolean"===s?e=>t=>{return n=e,"boolean"==typeof(r=t)?new mr(0,r):new mr(1,[n,new Qo(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===s?e=>t=>{return n=e,null==(r=t)?new mr(0,void 0):new mr(1,[n,new Qo(0,"null",r)]);var n,r}:"System.String"===s?e=>t=>{return n=e,"string"==typeof(r=t)?new mr(0,r):new mr(1,[n,new Qo(0,"a string",r)]);var n,r}:"System.SByte"===s?ps:"System.Byte"===s?hs:"System.Int16"===s?ms:"System.UInt16"===s?ws:"System.Int32"===s?gs:"System.UInt32"===s?ys:"System.Double"===s?e=>t=>{return n=e,"number"==typeof(r=t)?new mr(0,r):new mr(1,[n,new Qo(0,"a float",r)]);var n,r}:"System.Single"===s?e=>t=>{return n=e,"number"==typeof(r=t)?new mr(0,r):new mr(1,[n,new Qo(0,"a float32",r)]);var n,r}:"System.DateTime"===s?e=>t=>function(e,t){if("string"==typeof t){let r,o=Ct(-621355968e5,0);return r=[Et(t,new Lt((()=>o),(e=>{o=e}))),o],r[0]?new mr(0,1===(n=r[1]).kind?n:Ct(n.getTime(),1)):new mr(1,[e,new Qo(0,"a datetime",t)])}var n;return new mr(1,[e,new Qo(0,"a datetime",t)])}(e,t):"System.DateTimeOffset"===s?e=>t=>function(e,t){if("string"==typeof t){let n,r=$i(-621355968e5,0);return n=[pi(t,new Lt((()=>r),(e=>{r=e}))),r],n[0]?new mr(0,n[1]):new mr(1,[e,new Qo(0,"a datetimeoffset",t)])}return new mr(1,[e,new Qo(0,"a datetime",t)])}(e,t):"System.TimeSpan"===s?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[ia(t,new Lt((()=>r),(e=>{r=e}))),r],n[0]?new mr(0,n[1]):new mr(1,[e,new Qo(0,"a timespan",t)])}return new mr(1,[e,new Qo(0,"a timespan",t)])}(e,t):"System.Guid"===s?e=>t=>function(e,t){if("string"==typeof t){let n,r="00000000-0000-0000-0000-000000000000";return n=[ui(t,new Lt((()=>r),(e=>{r=e}))),r],n[0]?new mr(0,n[1]):new mr(1,[e,new Qo(0,"a guid",t)])}return new mr(1,[e,new Qo(0,"a guid",t)])}(e,t):"System.Object"===s?e=>e=>new mr(0,e):Is(e,t,n,r)}{const e=u;return t=>n=>e.contents(t)(n)}}const Ns=function(){const e=[..."#C$&$&$$$$$$%-%&%=$$$$$$=$$$$D$$'$$$$$$$$$$$$%$$%$$$$&$:$*;$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$&%$$$%$&%'$%$&&%$%$$$$$%$$%$$%$&$$$%%$$&'$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$%$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*%$%%$$'$$$$$$$$h$>5'/1(*$$$4“$$$$$$$$%$&$$'%$$&$$$%$4$,F$%&&$$$$$$$$$$$$$$$$$$$$$$$($$$$$%%VS$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$(%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$I%$)L$$%%$$P$$$%$%$$+>''%.)&%$%%.$$$%C$-8-'%$†$$*$$)%%$'%-&%$1$$$$A>%|.$1-D,%$&$%$%9'$,$&$(%2$<&%$$.X8$5.2$C$Y$$$$&+'$%$*-%%-$$2$%$+%%%9$*$$&'%$$&'%%%%$$+$'%$&%%-%%)$$$$$%%$$)'%%9$*$%$%$%%$$&%'%%&&$*'$$*-%&$$-%$$,$&$9$*$%$(%$$&($%$$%$%$2%%%-$$*$)$$%$+%%%9$*$%$(%$$$$$'%%%%$*%$'%$&%%-$$)-$$$)&&$'&%$$$%&%&&&/'%$%&&$&$%$)$1-&)$$($&$+$&$:$3&$&'$&$'*%$&(%%%-*$*$$$%$+$&$:$-$(%$$$$($$%$%%*%*$$%%%-$%0%%,$&$L%$&'$&$&$$$'&$*&%%-,$)$$%$5&;$,$$%*&$'&&$$$+)-%%$/S$%*'$)$+$-%H%$$$($;$$$-$%,$%($$$)%-%'C$&2$$&%)--$$$$$$$$$$%+$G'1$($%(.$G$+$)$%('%HN%'$)$%%%$-))%%'&$&%*&'0$%%)$$$-&$%I$$($%N$$&Ŭ$'%*$$$'%L$'%D$'%*$$$'%2$\\$'%f%&,7&3-)y%)%$ʏ$$4$=$$&n&&+*0$'&.5&%,5%/0$&$%/W%$*+$%.&$&$$$%-)-))$'&$$-)F$X*(%E$$(i-B$&'%&'%$)&'$&%-A%(.O'=)-$&E:%%$%%X$$$*$$$$%+)-%$-)-)*$)%1$%b'$R$$($$($%*'-*-,,&%$A$'%%$&%-O$$%&$$&%+'G++%%&(-&&-A)%,*N%&++&$0$*'$)$%$%$(Ob0$EH]$($$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,+)%)%++++)%)%+$$$$$$$$++1%++++++($%'$$$&&$%'$&'%%'$&+(&%&$%'$%$.()%$$$%$$$+$$($,$$'%&$$$.$$$-$($-$$%)&$$$-&$$$0&C30'$&/2%$'$%$&%&$$$%$()$$$$$$'$$'$'$%%%($'$$%$$3F$$'$%'((%'$%$%$*$B%%$$$Bį+$$$$7%*$$t$A<K)h<.8_q9Ú$,$Y+’$ě$$$$$$$$$$$$$$AO($$B$$$$$$$$$$3ģ¦$$$$$$$$$$$$$$$$$$$$$$b$$$$C$$ĥS8%)J%C$ŒR$R$$$&%$$$$$$'$$%$)%&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%)$$$$&$$('$%I$$($%[*$$1$:,*$*$*$*$*$*$*$*$C%$$$$&$$$$$,$%$$$$%$$$$$$$$$$($-%'$$$0%$P=$|/ù=/'$&$$$$$$$$$$$$$$%$$$$$$$$$$%$,'%$(%&$$$%$y%%%%$$}$&$(N$$%'-CG/3B$-A+$2C-J2ţ᧣c删&8$Қ&Z,K)%į$&3-%7$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$&$-$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%%i-%)+:,%$$$$$$$$$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$+$$$$%$$$$$$$$$$%$$$$$$$$&$$$$$$$$$$$$$$$$$$$$($($$$$$$$$$$$%$$'$$$M$$$%$*$&$'$:%%$'$&)%$$)W'+%U3%+%-)5)&$$%$-?+%:.%.$@&&$R$%'%%&0$$-'%($$,-($L)%%%%,&$+$$%-%'3$)&$$$$U$$&%%(%$$$;%$%.$%%%$%$$-)%)%),*$*$N$',$%'sF%$%$%$$$%-)⯇/:'T'ࠣᤣƑ%I*/(($$-$0$($$$%$%$34Ǝ$$3c%YK/$$%3*$$$)3$%%$$$$$$$$$$$$$$$$%$$'&&$'$$$$$$$&$$&$$$%'($ª%$$&$&$$$$$$%-%&%=$$$$$$=$$$$$$$$$%-$P%B&)%)%)%&&%$$$%$$'%-&%%/$=$6$%$2%1Ež(&'P&,X'4%&$0&$RP$¥@&T2$>'C',7$+$(I((A$$G'+$(MKKq%-)G'G'K+W.$³Ś,9-+»)%$$O$%&$%:$$+:%*B+,S6$%((9)&$=($c['%%3%Q$&$%(''$&$@%&'$,*,*@%$@&C+$?%'(*,Y&*9%+6(+5*'/*slZV0V*)G'+-ʼnB$M$%$%%q@-$+9.'(y8*7:,$$$X2*'7-2&$P&'%%%$'.$%<*-)&G($+$-'$%$+F$%$,%$S&,%'''$$$-$$$&$7.5$<&&%$$%)$d*$$$'$2$-$)R$&+(-)%%$+%%%9$*$%$($%$%$'%%%&%$)$((%%*&(®X&+%&$$'(-%$$$&AS&)$$'%$%%$$+-ÉR&'%'%$%:'%ES&+%$$%&$.-)06N$$$%)$$$*-Y>%&%'$('-%&$ãO&,$%$‡CC-,/+%$%+$%$;)$%%%$$$$$$$&,-i+%J&'%%'$$$$$>$-K)$$'+$+$)%&Q0$%&$(@\\Ī,$H$*$)$$$(--6&%A%9$$*$%$%l*$%$I)&$$%$*$$+-))$%$C($%$%$$$$*-ř6%%%Ú$28+'40$ν‰’$(.ç૟ђ$,࿪ɪ⇜ɜ*B$-'%ƒA%($-S*(''$$--$*$8(6˓CC:'ˆn'$$Z*'0c%$$$.%1᠛+ӹM,⌚łT&4'+ƯधŽ(0&,*-%$%$'፿ę-J%_%&&)++%*A'^:e&$½7/z,<ª===*$5==$$%%$%%%'$+'$$$*$.==%$'%+$*$=%$'$($$&*$============?%<$<$)<$<$)<$<$)<$<$)<$<$)$$%UȣZ'U+$1$%(2($2ճ*$4%*$%$(øP&**%-'$$ƓO'-($ԣè%,*LEE*$'-'%̴^$&$'oP$2å'$>$%$$%$$-$'$$$$)$'$$$$$$&$%$$%$$$$$$$$$$%$$%'$*$'$'$$$-$4(&$($4W%ıO'‡/2%2$2$H-0Ä[@0O',*%1)½Ğ(˻+0&0&—/|*/7/'[+-)K+A%%qœ$u$ª/1%(&&(*,<**,&0*L¶$ZH-Щ꜁Eၘ.ā%ᚥ1ᵔూɁ؅፮򮳙$Aƒ£ē︳𐀡%𐀡"].map((e=>{var t;return(null!==(t=e.codePointAt(0))&&void 0!==t?t:0)-35})),t=[..."1.;=;78;<;6;+;<;#7;8>5>$7<8<1.;=?;>?'9<2?>?<->$;>-':-;#<#$<$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'#$'#%$#%$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'$&>&>&>&>&>(#$#$&>#$@&$;#@>#;#@#@#$#@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$<#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?(*#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@&;$;6@?=@(6(;(;(;(@'@';@2<;=;?(;2@;'&'(+;'(';'(2?(&(?('+'?';@2'('(@'('@+'(&?;&@(='(&(&(&(@;@'(@;@'@'@'@(2()'()(')()()'('(;+;&'()@'@'@'@'@'@'@(')(@)@)('@)@'@'(@+'=-?=';(@()@'@'@'@'@'@'@'@(@)(@(@(@(@'@'@+('(;@()@'@'@'@'@'@'@(')(@()@)(@'@'(@+;=@'(@()@'@'@'@'@'@'@(')()(@)@)(@()@'@'(@+?'-@('@'@'@'@'@'@'@'@'@'@)()@)@)(@'@)@+-?=?@()('@'@'@'@'()@(@(@(@'@'(@+@;-?'();'@'@'@'@'@(')()@()@)(@)@'@'(@+@'@()'@'@'(')(@)@)('?@')-'(@+-?'@()@'@'@'@'@'@(@)(@(@)@+@);@'('(@='&(;+;@'@'@'@'@'@'('('@'@&@(@+@'@'?;?;?(?+-?(?(?(7878)'@'@()(;('(@(@?(?@?;?;@')()()()('+;')('(')')'('()()(')+)(?#@#@#@$;&$'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@(;-@'?@#@$@6'?;'.'78@';,'@'@'(@'(;@'(@'@'@(@'()()()(;&;='(@+@-@;6;(2@+@'&'@'('('@'@'@()()@)()(@?@;+'@'@'@'@+-@?'()(@;')()(@()()()(@(+@+@;&;@(*(@()'()()()()'@+;?(?@()')()()('+'()()()()@;')()(@;+@'+'&;$@#@#;@(;()('('(')('@$&$&$&(@(#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@$#$#$@#@$@#@#@#@#$#$@$%$%$%$@$#%>$>$@$#%>$@$#@>$#>@$@$#%>@.26;9:79:79;/02.;9:;5;<78;<;5;.2@2-&@-<78&-<78@&@=@(*(*(@?#?#?$#$#$?#?<#?#?#?#?#?$#$'$?$#<#$?<?$?-,#$,-?@<?<?<?<?<?<?<?<?<?<?7878?<?78?<?<?<?@?@-?-?<?<?<?<?78787878787878-?<78<7878787878<?<7878787878787878787878<7878<78<?<?<?@?@?#@$@#$#$#$#$#$#$#$#$&#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?#$#$(#$@;-;$@$@$@'@&;@('@'@'@'@'@'@'@'@'@(;9:9:;9:;9:;6;6;9:;9:78787878;&;6;6;7;?;@?@?@?@?@.;?&',7878787878?78787878678?,()6&?,&';?@'@(>&'6';&'@'@'@?-?'?@'?@-?-?-?-?-?'?'@'&'@?@'&;'&;'+'@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'(*;(;&#$#$#$#$#$#$#$#$#$#$#$#$#$#$&(',(;@>&>#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$&$#$#$#$#$#$#$#$&>#$#$'#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#$#$#$@#$'&$'('('(')()?(@-?=?@';@)')(@;+@(';';'(+'(;'()@;'@()'()()();@&+@;'(&'+'@'()()(@'('()@+@;'&'?')()'('('('('('@'&;')();'&)(@'@'@'@'@'@$>&$&>@$')()();)(@+@'@'@'@34'@'@$@$@'('<'@'@'@'@'@'>@'87@'@'@'=?@(;78;@(;657878787878787878;78;5;@;6787878;<6<@;=;@'@'@2@;=;78;<;6;+;<;#7;8>5>$7<8<78;78;'&'&'@'@'@'@'@=<>?=@?<?@2?@'@'@'@'@'@'@'@;@-@?,-?-?@?@?@?(@'@'@(-@'-@',',@'(@'@;'@';,@#$'@+@#@$@'@'@;@'@'@'@'@'@'@'@'@'@;-'?-'@-@'@'@-'-@;'@;@'@-'-@-'(@(@('@'@'@(@(-@;@'-;'-@'?'(@-;@'@;'@-'@-'@;@-@'@#@$@-'(@+@-@'@(6@'@'-'@'(-;@'-@'@)()'(;@-+@()')()(;2;@2@'@+@('()(@+;')'@'(;'@()')()';(;)(+';';@-@'@')()()(;(@'@'@'@'@';@'()(@+@()@'@'@'@'@'@'@(')()@)@)@'@)@')@(@(@')()()(';+;@;('@')()()()(';'@+@')(@)()(;'(@')()()(;'@+@;@'()()()('@+@'@()()(@+-;?@')()(;@#$+-@'@'@'@'@')@)@()(')')(;@+@'@')(@()(';')@'('()'(;(@'()('()(;';@'@'@')(@()(';@+-@;'@(@)()()(@'@'@'(@(@(@('(@+@'@'@')@(@)()('@+@'();@'@-?=?@;'@,@;@'@'@2@'@'@'@+@;@'@(;@'(;?&;?@+@-@'@'@#$-;@'@(')@(&@&;&(@)@'@'@'@'@'@'@'@'@'@'@'@?(;2@?@?@?)(?)2(?(?(?@?(?@-@?@-@#$#$@$#$#@#@#@#@#@#$@$@$@$#$#@#@#@#@$#@#@#@#@#@$#$#$#$#$#$#$@#<$<$#<$<$#<$<$#<$<$#<$<$#$@+?(?(?(?(?;@(@(@(@(@(@(@(@'@(&@+@'?@'(+@=@'@-(@#$(&@+@;@-?-=-@-?-@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@<@?@?@?@?@?@?@-?@?@?@?@?@?@?>?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@+@'@'@'@'@'@'@'@2@2@(@4@4@"].map((e=>{var t;return(null!==(t=e.codePointAt(0))&&void 0!==t?t:0)-35})),n=new Uint32Array(e),r=new Uint8Array(t);for(let e=1;e<n.length;++e)n[e]+=n[e-1];return e=>{let t=n.length,o=0;for(;t-o>1;){const r=Math.floor((t+o)/2),i=n[r];if(e<i)t=r;else{if(e===i){t=o=r;break}i<e&&(o=r)}}return r[o]}}();const Rs=e=>function(e,t){return 0!=(1<<function(e,t){const n=function(e,t){if(t>=0&&t<e.length)return e.charCodeAt(t);throw new Error("Index out of range.")}(e,t);return Ns(n)}(e,0)&256)}(e);function Ms(e,t){return e.replace(/[a-z]?[A-Z]/g,(e=>1===e.length?e.toLowerCase():e.charAt(0)+t+e.charAt(1).toLowerCase()))}function Os(e,t=0){const n={},r=t;function o(e){throw new Error("Cannot infer key and value of "+String(e))}function i(e,t,r){e=function(e,t){switch(t){case 1:return e.charAt(0).toLowerCase()+e.slice(1);case 2:return Ms(e,"_");case 3:return Ms(e,"_").toUpperCase();case 4:return Ms(e,"-");default:return e}}(e,t),n[e]=r}for(let t of e){let e=0;if(null==t&&o(t),t instanceof Bt){const n=t.cases()[t.tag];t=0===t.fields.length?n:[n].concat(t.fields),e=r}if(Array.isArray(t))switch(t.length){case 0:o(t);break;case 1:i(t[0],e,!0);break;case 2:const n=t[1];i(t[0],e,n);break;default:i(t[0],e,t.slice(1))}else"string"==typeof t?i(t,e,!0):o(t)}return n}function Ds(e,t){return!t.has(e)&&(t.add(e),!0)}function Ps(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class Fs{constructor(e,t){const n=new Lt(null);this.comparer=t,n.contents=this,this.hashMap=new Map([]),this["init@8-2"]=1;const r=Je(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();Vs(n.contents,e)}}finally{qe(r)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(e){return Array.from(this)}"System.Collections.IEnumerable.GetEnumerator"(){return Je(this)}GetEnumerator(){return Je(Ar(this.hashMap.values()))}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){Vs(this,e)}"System.Collections.Generic.ICollection`1.Clear"(){Gs(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Hs(this,e)}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){var n;n=(n,r)=>{e[t+n]=r},Gr(((e,t)=>(n(e,t),e+1|0)),0,this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Ls(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){return Us(this,e)}get size(){return 0|Ls(this)}add(e){return Vs(this,e),this}clear(){Gs(this)}delete(e){return Us(this,e)}has(e){return Hs(this,e)}keys(){return Vr((e=>e),this)}values(){return Vr((e=>e),this)}entries(){return Vr((e=>[e,e]),this)}forEach(e,t){const n=this;Lr((t=>{e(t,t,n)}),n)}}function Bs(e,t){const n=0|e.comparer.GetHashCode(t);let r,o=null;return r=[(i=e.hashMap,a=n,s=new Lt((()=>o),(e=>{o=e})),!!i.has(a)&&(s.contents=i.get(a),!0)),o],r[0]?[!0,n,r[1].findIndex((n=>e.comparer.Equals(t,n)))]:[!1,n,-1];var i,a,s}function Gs(e){e.hashMap.clear()}function Ls(e){let t=0,n=Je(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();)t=t+n["System.Collections.Generic.IEnumerator`1.get_Current"]().length|0}finally{qe(n)}return 0|t}function Vs(e,t){const n=Bs(e,t);return n[0]?!(n[2]>-1)&&(Ps(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function Hs(e,t){const n=Bs(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!0;case 1:return!1}}function Us(e,t){const n=Bs(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return Ps(e.hashMap,n[1]).splice(n[2],1),!0;case 1:return!1}}class js extends Gt{constructor(e,t){super(),this.Code=e,this.Name=t}}const zs=zo([["AFG","Afghanistan"],["ALA","Aland Islands"],["ALB","Albania"],["DZA","Algeria"],["ASM","American Samoa"],["AND","Andorra"],["AGO","Angola"],["AIA","Anguilla"],["ATA","Antarctica"],["ATG","Antigua and Barbuda"],["ARG","Argentina"],["ARM","Armenia"],["ABW","Aruba"],["AUT","Austria"],["AZE","Azerbaijan"],["BHS","Bahamas"],["BHR","Bahrain"],["BGD","Bangladesh"],["BRB","Barbados"],["BLR","Belarus"],["BEL","Belgium"],["BLZ","Belize"],["BEN","Benin"],["BMU","Bermuda"],["BTN","Bhutan"],["BOL","Bolivia"],["BES","Bonaire Saint Eustatius, and Saba Islands"],["BIH","Bosnia and Herzegovina"],["BWA","Botswana"],["BVT","Bouvet Island"],["BRA","Brazil"],["IOT","British Indian Ocean Territory"],["VGB","British Virgin Islands"],["BRN","Brunei Darussalam"],["BGR","Bulgaria"],["BFA","Burkina Faso"],["BDI","Burundi"],["KHM","Cambodia"],["CMR","Cameroon"],["CAN","Canada"],["CPV","Cabo Verde"],["CYM","Cayman Islands"],["CAF","Central African Republic"],["TCD","Chad"],["CHL","Chile"],["CHN","China"],["CXR","Christmas Island"],["CCK","Cocos (Keeling) Islands"],["COL","Colombia"],["COM","Comoros"],["COD","Congo, Democratic Republic of (was Zaire)"],["COG","Congo, Republic of"],["COK","Cook Islands"],["CRI","Costa Rica"],["CIV","Cote D'Ivoire (Ivory Coast)"],["HRV","Croatia (Hrvatska)"],["CUB","Cuba"],["CUW","Curacao"],["CYP","Cyprus"],["CZE","Czech Republic"],["DNK","Denmark"],["DJI","Djibouti"],["DMA","Dominica"],["DOM","Dominican Republic"],["ECU","Ecuador"],["EGY","Egypt"],["SLV","El Salvador"],["GNQ","Equatorial Guinea"],["ERI","Eritrea"],["EST","Estonia"],["SWZ","eSwatini"],["ETH","Ethiopia"],["FLK","Falkland Islands (Malvinas)"],["FRO","Faroe Islands"],["FJI","Fiji"],["FIN","Finland"],["FRA","France"],["GUF","French Guiana"],["PYF","French Polynesia"],["ATF","French Southern Territories"],["GAB","Gabon"],["GMB","Gambia"],["GEO","Georgia"],["DEU","Germany"],["GHA","Ghana"],["GIB","Gibraltar"],["GRC","Greece"],["GRL","Greenland"],["GRD","Grenada"],["GLP","Guadeloupe"],["GUM","Guam"],["GTM","Guatemala"],["GGY","Guernsey"],["GIN","Guinea"],["GNB","Guinea-Bissau"],["GUY","Guyana"],["HTI","Haiti"],["HMD","Heard and McDonald Islands"],["VAT","Holy See (Vatican City State)"],["HND","Honduras"],["HKG","Hong Kong"],["HRV","Hrvatska (Croatia)"],["HUN","Hungary"],["ISL","Iceland"],["IND","India"],["IDN","Indonesia"],["IRN","Iran"],["IRQ","Iraq"],["IRL","Ireland"],["IMN","Isle of Man, The"],["ISR","Israel"],["ITA","Italy"],["CIV","Ivory Coast (Cote D'Ivoire)"],["JAM","Jamaica"],["JPN","Japan"],["JEY","Jersey"],["JOR","Jordan"],["KAZ","Kazakhstan"],["KEN","Kenya"],["KIR","Kiribati"],["PRK","Korea, Democratic People's Republic of (North Korea)"],["KOR","Korea, Republic of (South Korea)"],["KWT","Kuwait"],["KGZ","Kyrgyzstan"],["LAO","Laos"],["LVA","Latvia"],["LBN","Lebanon"],["LSO","Lesotho"],["LBR","Liberia"],["LBY","Libya"],["LIE","Liechtenstein"],["LTU","Lithuania"],["LUX","Luxembourg"],["MAC","Macau"],["MKD","North Macedonia, Republic of"],["MDG","Madagascar"],["MWI","Malawi"],["MYS","Malaysia"],["MDV","Maldives"],["MLI","Mali"],["MLT","Malta"],["MHL","Marshall Islands"],["MTQ","Martinique"],["MRT","Mauritania"],["MUS","Mauritius"],["MYT","Mayotte"],["MEX","Mexico"],["FSM","Micronesia, Federated States of"],["MDA","Moldova"],["MCO","Monaco"],["MNG","Mongolia"],["MNE","Montenegro"],["MSR","Montserrat"],["MAR","Morocco"],["MOZ","Mozambique"],["MMR","Myanmar (was Burma)"],["NAM","Namibia"],["NRU","Nauru"],["NPL","Nepal"],["NLD","Netherlands"],["NCL","New Caledonia"],["NZL","New Zealand"],["NIC","Nicaragua"],["NER","Niger"],["NGA","Nigeria"],["NIU","Niue"],["NFK","Norfolk Island"],["MNP","Northern Mariana Islands"],["PRK","North Korea (Korea, Democratic People's Republic of)"],["NOR","Norway"],["OMN","Oman"],["PAK","Pakistan"],["PLW","Palau"],["PSE","Palestinian Territories"],["PAN","Panama"],["PNG","Papua New Guinea"],["PRY","Paraguay"],["PER","Peru"],["PHL","Philippines"],["PCN","Pitcairn Island"],["POL","Poland"],["PRT","Portugal"],["PRI","Puerto Rico"],["QAT","Qatar"],["REU","Reunion"],["ROU","Romania"],["RUS","Russian Federation"],["RWA","Rwanda"],["BLM","Saint Barthelemy"],["SHN","Saint Helena"],["KNA","Saint Kitts and Nevis"],["LCA","Saint Lucia"],["SXM","Saint Maarten (Dutch part)"],["MAF","Saint Martin (French part)"],["SPM","Saint Pierre and Miquelon"],["VCT","Saint Vincent and the Grenadines"],["WSM","Samoa"],["SMR","San Marino"],["STP","Sao Tome and Principe"],["SAU","Saudi Arabia"],["SEN","Senegal"],["SRB","Serbia"],["SYC","Seychelles"],["SLE","Sierra Leone"],["SGP","Singapore"],["SVK","Slovakia (Slovak Republic)"],["SVN","Slovenia"],["SLB","Solomon Islands"],["SOM","Somalia"],["ZAF","South Africa"],["SGS","South Georgia and the South Sandwich Islands"],["KOR","South Korea (Korea, Republic of)"],["SSD","South Sudan"],["ESP","Spain"],["LKA","Sri Lanka"],["SDN","Sudan"],["SUR","Suriname"],["SJM","Svalbard and Jan Mayen Islands"],["SWE","Sweden"],["CHE","Switzerland"],["SYR","Syria"],["TWN","Taiwan"],["TJK","Tajikistan"],["TZA","Tanzania"],["THA","Thailand"],["TLS","Timor-Leste"],["TGO","Togo"],["TKL","Tokelau"],["TON","Tonga"],["TTO","Trinidad and Tobago"],["TUN","Tunisia"],["TUR","Turkey"],["TKM","Turkmenistan"],["TCA","Turks and Caicos Islands"],["TUV","Tuvalu"],["UGA","Uganda"],["UKR","Ukraine"],["ARE","United Arab Emirates"],["GBR","United Kingdom"],["USA","United States"],["UMI","United States Minor Outlying Islands"],["VIR","United States Virgin Islands"],["URY","Uruguay"],["UZB","Uzbekistan"],["VUT","Vanuatu"],["VAT","Vatican City State (Holy See)"],["VEN","Venezuela"],["VNM","Vietnam"],["WLF","Wallis and Futuna"],["ESH","Western Sahara"],["YEM","Yemen"],["ZMB","Zambia"],["ZWE","Zimbabwe"]]);class Ws extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HELP","VETStudentLoan","FinancialSupplement","StudentStartUpLoan","TradeSupportLoan"]}}class Ys extends Gt{constructor(e,t){super(),this.Code=e,this.Name=t}}function qs(e){return wr((e=>new Ys(e.Code,e.Name)),function(e){const t=function(e){return cn((t=>new js(e,t)),Uo(e,zs))}(e);return jr(Yt(zt("Country code:%A is not accepted"))(e),t)}(e))}class Ks extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}const Zs=new Ks(2,{HomeCountry:void 0});function Js(e){return new Ks(2,{HomeCountry:e})}class Xs extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["FullTime","PartTime","LabourHire","SuperIncomeStream","Casual"]}}class Qs extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn"]}}class eu extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Under18AndBelowTaxThreshold","Pending","Pensioner"]}}class tu extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PreviousSurname"]}}function nu(e){return new tu(0,e)}function ru(e){return e.fields[0]}function ou(e){return Jr(0,(()=>gr((e=>{const t=e;return Xr(0,function(e,t){return function(e){if(We(e))return 0===e.length;if(e instanceof gn)return kn(e);{const t=kr(e);try{return!t["System.Collections.IEnumerator.MoveNext"]()}finally{qe(t)}}}(t)?new mr(1,e):new mr(0,void 0)}("TFN must not contain all zeros",(n={Equals:(e,t)=>e===t,GetHashCode:ot},function(e){return e instanceof gn?Nn(e):Array.from(e)}(function(e,t,n){return Ir((()=>{const r=new Fs(e,n);return Br((e=>Ds(e,r)),t)}))}(["0"],t.split(""),n)))),(()=>t));var n}),function(e){return Jr(0,(()=>{const t=en(Rs,e);return gr((()=>gr((()=>Xr(0,zr(0,"TFN is not valid",function(e,t){let n=t.GetZero();for(let r=0;r<=e.length-1;r++)n=t.Add(n,e[r]);return n}(function(e,t,n,r){if(t.length!==n.length)throw new Error("Arrays had different lengths");const o=dn(r,t.length);for(let r=0;r<=t.length-1;r++)o[r]=e(t[r],n[r]);return o}(((e,t)=>e*t),pn((e=>fi(e,511,!1,32)),t.split(""),Int32Array),new Int32Array([1,4,3,7,5,8,6,9,10]),Int32Array),{GetZero:()=>0,Add:(e,t)=>e+t})%11),(()=>t))),zr(9,"TFN must be 9 digits",t.length))),zr(e,"TFN must contain digits only",t))}))()}(e))))()}class iu extends Gt{constructor(e,t){super(),this.Code=e,this.Name=t}}new class extends Gt{constructor(e){super(),this.Unused=e}}(void 0);class au extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}function su(e){switch(e.tag){case 1:return new mr(0,new Ks(1));case 2:return ln(cn((e=>wr(Js,qs(e.Code))),e.fields[0].HomeCountry),new mr(0,Zs));default:return new mr(0,new Ks(0))}}function uu(e){switch(e.tag){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}}function lu(e){switch(e){case 0:return new mr(0,new Ws(0));case 1:return new mr(0,new Ws(1));case 2:return new mr(0,new Ws(2));case 3:return new mr(0,new Ws(3));case 4:return new mr(0,new Ws(4));default:return new mr(1,"Invalid DebtSupport")}}function cu(e){switch(e.tag){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}}const fu=e=>{return function(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(kn(i))return wr(Mn,r);{const a=Jr(0,(()=>gr((e=>Xr(0,r,(t=>Tn(e,t)))),o(In(i)))))();if(1===a.tag)return a;e=a,t=o,n=An(i);continue e}}}(new mr(0,Cn()),e,t)}(lu,(t={Equals:(e,t)=>e===t,GetHashCode:it},Mr(function(e,t){return Ir((()=>{const n=new Fs([],t);return Br((e=>Ds(e,n)),e)}))}(e,t))));var t};function du(e){switch(e.tag){case 1:return 1;case 2:return 2;default:return 0}}class $u extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}function pu(){return $a("Dto.Dto.ProvidedTfnInformationDto",[],$u,(()=>[[["Item",ga]],[["Item",ma("Dto.Dto.ExemptionReasonDto",ba,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]]]))}class hu extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","Exempted"]}}class mu extends Gt{constructor(e,t,n,r,o,i,a){super(),this.TfnInformation=e,this.PreviousSurname=t,this.ResidencyStatus=0|n,this.ResidencyStatusV2=r,this.EmploymentBasis=0|o,this.IsTaxFreeThresholdClaimed=i,this.HasDebtSupport=a}}class wu extends Gt{constructor(e,t){super(),this.Meta=e,this.Data=t}}class gu extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}function yu(){return $a("Dto.Commands.ResidencyStatusV2Dto",[],gu,(()=>[[],[],[["Item",fa("Dto.Commands.WorkingHolidayPayload",[],bu,(()=>[["HomeCountry",fa("Dto.Commands.CountryCode",[],vu,(()=>[["Code",ga]]))]]))]]]))}class bu extends Gt{constructor(e){super(),this.HomeCountry=e}}class vu extends Gt{constructor(e){super(),this.Code=e}}function xu(e){switch(e.tag){case 1:return new mr(0,new gu(1));case 2:return wr((e=>new gu(2,new bu(new vu(e.Code)))),jr("Home country should be specified for WorkingHolidayMaker",e.fields[0].HomeCountry));default:return new mr(0,new gu(0))}}class _u extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Create","CreateV2","ChangeTfnInformation","ChangePreviousSurname","ChangeResidencyStatus","ChangeResidencyStatusV2","ChangeEmploymentBasis","ChangeTaxFreeThresholdClaimed","ChangeDebtSupport"]}}function Su(e){return e}function Cu(e){return Array.from(e)}function Tu(e){return St(e,"O")}function Eu(e){return function(e,t="c",n){if(-1===["c","g","G"].indexOf(t))throw new Error("Custom formats are not supported");const r=Math.abs(function(e){return na(e/864e5)}(e)),o=Math.abs(function(e){return na(e%864e5/36e5)}(e)),i=Math.abs(function(e){return na(e%36e5/6e4)}(e)),a=Math.abs(function(e){return na(e%6e4/1e3)}(e)),s=Math.abs(function(e){return na(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==t&&"g"!==t?"c"===t?r+".":r+":":""}${"g"===t?o:et(o,2)}:${et(i,2)}:${et(a,2)}${0!==s||"c"!==t&&"g"!==t?"g"===t?"."+et(s,3):"."+function(e,t,n){let r=e.toString(10);for(;r.length<3;)r="0"+r;for(;r.length<7;)r+="0";return r}(s):""}`}(e)}function ku(){return null}function Iu(e){return St(e,"O")}function Au(e,t,n,r){const o=new Lt(null),i=Ho(xa(r),o,e);let a;if(Da(r)){const e=pn((e=>{const r=oi(t,va(e)),o=Nu(i,t,n,e[1]);return t=>i=>{const a=function(e,t){return e[t[0]]}(t,e);return(!n||n&&null!=a)&&(i[r]=o(a)),i}}),Ra(r));a=t=>Gr(((e,n)=>n(t)(e)),{},e)}else{if(!Oa(r)){let e;const t=xa(r);throw e=Yt(zt("Cannot generate auto encoder for %s. Please pass an extra encoder."))(t),new Error(e)}a=e=>{const o=function(e,t){const n=Na(t)[e.tag];if(null==n)throw new Error(`Cannot find case ${e.name} in union type`);return[n,e.fields]}(e,r),a=o[0],s=o[1],u=0|s.length;if(0===u)return va(a);{const e=0|u,r=Fa(a),o=$n(new Array(e+1),0,e+1,null);o[0]=va(a);for(let a=1;a<=e;a++){const e=Nu(i,t,n,r[a-1][1]);o[a]=e(s[a-1])}return o}}}return o.contents=a,a}function Nu(e,t,n,r){const o=xa(r),i=Uo(o,e);if(null==i){if(_a(r)){const o=Nu(e,t,n,Sa(r));return e=>Cu(Vr(o,e))}if(Ta(r)){const e=xa(ka(r));if("System.SByte"===e)return e=>e;if("System.Byte"===e)return e=>e;if("System.Int16"===e)return e=>e;if("System.UInt16"===e)return e=>e;if("System.Int32"===e)return e=>e;if("System.UInt32"===e)return e=>e;{const e=xa(r);return qt(zt("Cannot generate auto encoder for %s.\nThoth.Json.Net only support the folluwing enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra encoder.\n "))(e)}}if(Ca(r)){if(Pa(r)){const o=pn((r=>Nu(e,t,n,r)),Ma(r));return e=>{return Cu((t=(e,t)=>o[e](t),n=e,Dr((()=>kr(n)),((e,n)=>n["System.Collections.IEnumerator.MoveNext"]()?rn(t(e,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{qe(e)}))));var t,n}}{const o=xa(Ea(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new Qe((()=>{return o=Nu(e,t,n,ua(r)[0]),e=>{return null!=(t=cn(o,e))?on(t):null;var t};var o}));return e=>null==e?null:o.Value(e)}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===o||"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===o){const o=Nu(e,t,n,ua(r)[0]);return e=>Cu(Vr(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=ua(r)[0],i=Nu(e,t,n,ua(r)[1]);if("System.String"===xa(o)||"System.Guid"===xa(o))return e=>Gr(((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e}),{},e);{let r;const a=Nu(e,t,n,o);return r=a,e=>Cu(Vr((e=>{const t=e;return[r(t[0]),i(t[1])]}),e))}}return Au(e,t,n,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?ku:"System.String"===o?e=>e:"System.SByte"===o?e=>e:"System.Byte"===o?e=>e:"System.Int16"===o?e=>e:"System.UInt16"===o?e=>e:"System.Int32"===o?e=>e:"System.UInt32"===o?e=>e:"System.Double"===o?e=>e:"System.Single"===o?e=>e:"System.DateTime"===o?Iu:"System.DateTimeOffset"===o?Tu:"System.TimeSpan"===o?Eu:"System.Guid"===o?Su:"System.Object"===o?e=>e:Au(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function Ru(e){return Yt(zt("%s/tfn-declaration/backend"))(e)}function Mu(e,t){return eo(0,(()=>{const n=Jo(function(e){return new no(0,"Authorization",e)}(Yt(zt("Bearer %s"))(e)),t);let r;const o=Xo(n);return r=sr.Bind(o,(e=>sr.Return(new mr(0,e)))),sr.Delay((()=>sr.Bind(r,(e=>{let t,r;const o=e;return 1===o.tag?sr.Return(new mr(1,o.fields[0])):sr.ReturnFrom((t=o.fields[0],429===t.statusCode||t.statusCode>=500?(r=Xo(n),sr.Bind(r,(e=>sr.Return(new mr(0,e))))):Qr(0,t)))}))))}))}const Ou=e=>function(e,t){try{return $s("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new mr(1,"Given an invalid JSON: "+e.message);throw e}}(gt(2,function(e,t,n){const r=ln(t,new ei(0));return As(function(e){return null!=e?jo(((e,t)=>new Lt(t[1])),e.Coders):Wo()}(void 0),r,!1,e)}(fa("Dto.BackendApiModels.Read.TfnDeclarationDetailsWithMeta",[],wu,(()=>[["Meta",da(["AccountId",ga])],["Data",pa(fa("Dto.BackendApiModels.Read.TfnDeclarationDetails",[],mu,(()=>[["TfnInformation",$a("Dto.BackendApiModels.Read.TfnInformation",[],hu,(()=>[[["Item",ga]],[["Item",ma("Dto.Dto.ExemptionReasonDto",ba,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]]]))],["PreviousSurname",pa(ga)],["ResidencyStatus",ma("Dto.Dto.ResidencyStatusDto",ba,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])],["ResidencyStatusV2",$a("Dto.Dto.ResidencyStatusV2Dto",[],au,(()=>[[],[],[["Item",da(["HomeCountry",pa(fa("Dto.Dto.CountryDto",[],iu,(()=>[["Code",ga],["Name",ga]])))])]]]))],["EmploymentBasis",ma("Dto.Dto.EmploymentBasisDto",ba,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["IsTaxFreeThresholdClaimed",ya],["HasDebtSupport",ha(ma("Dto.Dto.DebtSupportDto",ba,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]])))]])),new ei(1))),e);function Du(e,t){return eo(0,(()=>{const n=Mu(e,Zo(new to(0),Ko(Ru(t))));return sr.Delay((()=>sr.Bind(n,(e=>{let t,n;const r=e;return 1===r.tag?sr.Return(new mr(1,r.fields[0])):sr.ReturnFrom((t=r.fields[0],200===t.statusCode?(n=Ou(t.responseText),sr.Return(n)):sr.Return(new mr(1,"Unexpected response from backend"))))}))))}))}function Pu(e,t,n){return eo(0,(()=>{let r;const o=e.PreExistingTfnDec;let i,a;switch(2===o.tag&&0===o.fields[0].tag?(i=0,a=o.fields[0].fields[0]):i=1,i){case 0:r=eo(0,(()=>Qr(0,a)));break;case 1:r=Du(t,n)}return sr.Delay((()=>sr.Bind(r,(r=>{let o,i,a;const s=r;return 1===s.tag?sr.Return(new mr(1,s.fields[0])):sr.ReturnFrom((o=s.fields[0],a=function(e,t){return Jr(0,(()=>gr((n=>{const r=n,o=cn(ru,e.PreviousSurname.Value);return gr((n=>{const i=n;return gr((n=>{const a=0|n;return gr((n=>{const s=n,u=(e=>Bn(cu,e))(e.DebtSupportCheckboxGroup),l=t.Data;if(null!=l){const e=l;let t;if(0===r.tag)t=Cn();else if(1===r.fields[0].tag){const n=0|du(r.fields[0].fields[0]),o=e.TfnInformation;let i;switch(i=1===o.tag&&o.fields[0]===n?0:1,i){case 0:t=Cn();break;case 1:t=En(new _u(2,new $u(1,n)))}}else t=En(new _u(2,new $u(0,r.fields[0].fields[0].fields[0])));return Xr(0,su(e.ResidencyStatusV2),(n=>{const r=xu(n),l=1===r.tag?new _u(5,i):ct(i,r.fields[0])?void 0:new _u(5,i);return Fn(t,Mr(Ir((()=>Pr(ct(o,e.PreviousSurname)?Nr():Rr(new _u(3,o)),Ir((()=>Pr(Pn(un(l)),Ir((()=>Pr(a!==e.EmploymentBasis?Rr(new _u(6,a)):Nr(),Ir((()=>Pr(s!==e.IsTaxFreeThresholdClaimed?Rr(new _u(7,s)):Nr(),Ir((()=>ct(Gn(u,{Compare:dt}),Gn(e.HasDebtSupport,{Compare:dt}))?Nr():Rr(new _u(8,u))))))))))))))))))}))}return Xr(0,0===r.tag?new mr(1,"New TFN declaration cannot have a truncated TFN"):1===r.fields[0].tag?new mr(0,new $u(1,du(r.fields[0].fields[0]))):new mr(0,new $u(0,r.fields[0].fields[0].fields[0])),(e=>En(new _u(1,{AccountId:t.Meta.AccountId,EmploymentBasis:a,HasDebtSupport:u,IsTaxFreeThresholdClaimed:s,PreviousSurname:o,ResidencyStatus:i,TfnInformation:e}))))}),jr("missing is tax-free threshold claimed",cn((e=>1!==e.tag),e.ClaimTaxFreeThreshold.Selected)))}),jr("missing employment basis",cn(uu,e.EmploymentBasisRadioButtonGroup.Value)))}),jr("missing residency status",fn((e=>{const t=xu(e);return 1===t.tag?void 0:t.fields[0]}),e.ResidencyStatus.Value)))}),jr("missing TFN info",e.TfnInformation.Value))))()}(e,o),i=sr.Return(a),sr.Delay((()=>sr.Bind(i,(e=>{let r,i,a;const s=e;return 1===s.tag?sr.Return(new mr(1,s.fields[0])):sr.ReturnFrom((r=s.fields[0],kn(r)?Qr(0,o):(i=Mu(t,(u=new ro(1,function(e,t){return JSON.stringify(t,gt(2,null),rn(e))}(0,function(e,t,n,r){const o=ln(t,new ei(0)),i=ln(void 0,!0);return Nu(function(e){return null!=e?jo(((e,t)=>new Lt(t[0])),e.Coders):Wo()}(void 0),o,i,e)}(ha($a("Dto.Commands.TfnDeclarationCommandDto",[],_u,(()=>[[["Item",da(["AccountId",ga],["EmploymentBasis",ma("Dto.Dto.EmploymentBasisDto",ba,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["HasDebtSupport",ha(ma("Dto.Dto.DebtSupportDto",ba,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))],["IsTaxFreeThresholdClaimed",ya],["PreviousSurname",pa(ga)],["ResidencyStatus",ma("Dto.Dto.ResidencyStatusDto",ba,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])],["TfnInformation",pu()])]],[["Item",da(["AccountId",ga],["EmploymentBasis",ma("Dto.Dto.EmploymentBasisDto",ba,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["HasDebtSupport",ha(ma("Dto.Dto.DebtSupportDto",ba,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))],["IsTaxFreeThresholdClaimed",ya],["PreviousSurname",pa(ga)],["ResidencyStatus",yu()],["TfnInformation",pu()])]],[["Item",pu()]],[["Item",pa(ga)]],[["Item",ma("Dto.Dto.ResidencyStatusDto",ba,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])]],[["Item",yu()]],[["Item",ma("Dto.Dto.EmploymentBasisDto",ba,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])]],[["Item",ya]],[["Item",ha(ma("Dto.Dto.DebtSupportDto",ba,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]]]))),new ei(1))(r))),l=Zo(new to(2),Ko(Ru(n))),a=new oo(l.url,l.method,l.headers,l.withCredentials,l.overridenMimeType,l.overridenResponseType,l.timeout,u),Jo(new no(0,"Content-Type","application/json"),a))),sr.Delay((()=>sr.Bind(i,(e=>{let t,n;const r=e;return 1===r.tag?sr.Return(new mr(1,r.fields[0])):sr.ReturnFrom((t=r.fields[0],200===t.statusCode?(n=Ou(t.responseText),sr.Return(n)):sr.Return(new mr(1,"Unexpected response from backend"))))})))))));var u,l}))))))}))))}))}function Fu(e,t,n){On((n=>{try{n(t)}catch(t){e(t)}}),n)}function Bu(){return Cn()}function Gu(e){return En((t=>{t(e)}))}function Lu(e,t,n,r,o){const i=function(e,t,n,r){const o=0|pt(e,n);if(0===o)throw new Error("The step of a range cannot be zero");const i=o>0;return n=>{const o=0|pt(n,t);return i&&o<=0||!i&&o>=0?[n,r(n,e)]:void 0}}(t,n,r,o);return Ir((()=>{return t=i,n=e,Er((()=>function(e,t){let n,r=t;return Cr((()=>{if(null!=n){const e=n[0];return n[1],e}return vr()}),(()=>{if(n=e(r),null!=n){n[0];const e=n[1];return r=e,!0}return!1}),(()=>{}))}(t,n)));var t,n}))}class Vu extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class Hu{constructor(e){this.state=new Vu(0,$n(new Array(ht(dt,e,10)),0,ht(dt,e,10),null),0)}}function Uu(e){const t=e.state;if(1===t.tag){const n=0|t.fields[1],r=0|t.fields[2],o=t.fields[0],i=(r+1)%o.length|0;return e.state=i===n?new Vu(0,o,n):new Vu(1,o,n,i),rn(o[r])}}class ju extends Gt{constructor(e,t,n,r,o,i,a){super(),this.init=e,this.update=t,this.subscribe=n,this.view=r,this.setState=o,this.onError=i,this.syncDispatch=a}}function zu(e,t){const n=t.init(e),r=n[0],o=new Hu(10);let i=!1,a=r;const s=bt(1,t.syncDispatch,[e=>{if(i)!function(e,t){const n=e.state;if(1===n.tag){const i=0|n.fields[1],a=0|n.fields[2],s=n.fields[0];s[i]=t;const u=(i+1)%s.length|0;e.state=u===a?new Vu(1,(r=a,o=s,Array.from(Ir((()=>Pr(Hr(r,o),Ir((()=>{return Pr((e=r,t=o,Dr((()=>kr(t)),((t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return rn(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(br+"\\nParameter name: source")}}),(e=>{qe(e)}))),Ir((()=>Ur((e=>Rr(null)),Lu(0,1,o.length,0,((e,t)=>e+t))))));var e,t}))))))),s.length,0):new Vu(1,s,u,a)}else{const r=0|n.fields[1],o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new Vu(1,o,i,r)}var r,o}(o,e);else{i=!0;let n=rn(e);for(;null!=n;){const e=on(n);try{const n=t.update(e,a),r=n[0];t.setState(r,s),Fu((n=>{t.onError([Yt(zt("Error in command while handling: %A"))(e),n])}),s,n[1]),a=r}catch(n){t.onError([Yt(zt("Unable to process the message: %A"))(e),n])}n=Uu(o)}i=!1}}]);t.setState(r,s),Fu((e=>{t.onError(["Error intitializing:",e])}),s,function(e){const t=bn();let n=t;const r=e=>{n=Rn(((e,t)=>{const n=new gn(t,void 0);return e.tail=n,n}),n,e)};if(We(e))e.forEach(r);else if(e instanceof gn)On(r,e);else{const t=Je(e);try{for(;t["System.Collections.IEnumerator.MoveNext"]();)r(t["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{qe(t)}}const o=n,i=bn();return o.tail=i,Sn(t)}(Pn([(()=>{try{return t.subscribe(r)}catch(e){return t.onError(["Unable to subscribe:",e]),Bu()}})(),n[1]])))}class Wu{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function Yu(){return new Wu}function qu(e,t,n,r){zu(t,function(e,t){return new ju(t.init,t.update,t.subscribe,t.view,((e,t)=>{!function(e,t,n){e.state=rn(t),e.dispatcher=n;const r=e.listener;null!=r&&r(t)}(n,e,t)}),t.onError,t.syncDispatch)}(0,e()));const o=function(e){return e.state}(n);if(null!=o)return on(o);throw new Error("Elmish program has not initialized")}function Ku(e,t){return function(e,t,n){const r=Jn(Yu)[0],o=Jn((()=>qu(e,t,r))),i=o[1];return Xn((()=>(function(e){return e.hasDisposedOnce}(r)&&i(qu(e,t,r)),Zn((()=>{!function(e){const t=e.state;if(null!=t){const e=on(t);Ye(e)&&qe(e)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}(r)})))),ln(n,[])),function(e,t){null==e.listener&&(e.listener=t)}(r,i),[o[0],e=>{!function(e,t){const n=e.dispatcher;null!=n&&n(t)}(r,e)}]}(e,void 0,t)}function Zu(e,t,n){return Ku((()=>function(e,t,n){return new ju(e,t,(e=>Bu()),n,gt(2,(e=>{const t=bt(1,n,[e]);return e=>{t(e)}})),(e=>{var t,n;t=e[0],n=e[1],console.error(rn(t),n)}),gt(2,(e=>e)))}((()=>e),t,((e,t)=>{}))),n)}class Ju extends Gt{constructor(e,t){super(),this.Value=e,this.Meta=t}}function Xu(){return new Ju(void 0,{Valid:!1})}function Qu(e){return new Ju(e,{Valid:!0})}function el(e){return new Ju(e,{Valid:!1})}function tl(e){switch(e){case"Under18AndBelowTaxThreshold":return new eu(0);case"Pending":return new eu(1);case"Pensioner":return new eu(2);default:return}}function nl(e){switch(e){case"AustralianResidentForTaxPurposes":return new Ks(0);case"ForeignResidentForTaxPurposes":return new Ks(1);case"WorkingHolidayMaker":return Zs;default:return}}function rl(e){switch(e.tag){case 1:return"ForeignResidentForTaxPurposes";case 2:return"WorkingHolidayMaker";default:return"AustralianResidentForTaxPurposes"}}function ol(e){switch(e){case"HELP":return new Ws(0);case"VETStudentLoan":return new Ws(1);case"FinancialSupplement":return new Ws(2);case"StudentStartUpLoan":return new Ws(3);case"TradeSupportLoan":return new Ws(4);default:return}}function il(e){switch(e){case"FullTime":return new Xs(0);case"PartTime":return new Xs(1);case"LabourHire":return new Xs(2);case"SuperIncomeStream":return new Xs(3);case"Casual":return new Xs(4);default:return}}function al(e){return p("p",{className:Jt(" ",["block","text-sm","font-medium","text-gray-700","leading-5"]),children:e})}class sl extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Yes","No"]}}class ul extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select","SelectInternal"]}}class ll extends Gt{constructor(e,t){super(),this.Selected=e,this.Meta=t}}function cl(e){return new ll(e,{Touched:!1})}function fl(e,t){return 1===e.tag?e.fields[1]||!t.Meta.Touched?new ll(e.fields[0],t.Meta):t:new ll(e.fields[0],{Touched:!0})}function dl(e){const t=ct(e.Parent.State.Selected,e.Selection)?Pn(["bg-white","border-gray-200","shadow-sm","text-gray-900"]):Pn(["shadow-none","text-gray-700"]);return p("button",{className:Jt(" ",Fn(Pn(["relative","w-1/2","border-gray-200","rounded-md","shadow-sm","py-2","text-sm","font-medium","whitespace-nowrap","focus:outline-none","focus:ring-inset","focus:ring-1","focus:ring-primary-focus","focus:z-10","w-auto","px-8"]),t)),type:"button",name:"yesNoButtonGroup",onClick:t=>{e.Parent.Dispatch(new ul(0,e.Selection))},disabled:ct(e.Parent.Disable,e.Selection),children:Ft(e.Selection)})}function $l(e){let t;return p("div",mt(Pn([["className",Jt(" ",["relative","self-start","bg-gray-100","rounded-lg","p-0.5","flex","mt-2","space-x-0.5"])],(t=[dl({Parent:e,Selection:new sl(0)}),dl({Parent:e,Selection:new sl(1)})],["children",Ln.Children.toArray(Array.from(t))])])))}class pl extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class hl extends Gt{constructor(e){super(),this.Selected=e}}function ml(e){let t;const n=Zu((r=e.InitialValue,[new hl(r),Bu()]),((t,n)=>function(e,t,n){const r=function(e,t){return new hl(e.fields[0])}(t);return e(new Ju(r.Selected,{Valid:null!=r.Selected})),[r,Bu()]}(e.OnUpdate,t)));var r;return p("div",mt(Pn([["className",Jt(" ",["space-y-2","mt-2"])],(t=Mr(Ir((()=>Ur((t=>{let r,o;const i=t[0];return Rr(p("label",mt(Pn([["className",Jt(" ",["flex","items-start"])],(r=[p("input",{className:Jt(" ",["focus:ring-primary-focus","block","mt-0.5","mb-0.5","h-4","w-4","text-primary-base","border-gray-300"]),type:"radio",name:e.Name,id:i,checked:sn(n[0].Selected)===i,onChange:e=>{e.target.checked,n[1](new pl(0,i))}}),p("label",mt(Pn([["className",Jt(" ",["ml-3","block","text-sm"])],["for",i],(o=Mr(Ir((()=>Pr(Rr(p("span",{className:Jt(" ",["block","text-gray-900"]),children:t[1]})),Ir((()=>{const e=t[2];if(null==e)return Rr(null);{const t=e;return Rr(p("span",{className:Jt(" ",["block","text-gray-500"]),children:t}))}})))))),["children",Ln.Children.toArray(Array.from(o))])])))],["children",Ln.Children.toArray(Array.from(r))])]))))}),e.ValueLabelPairs)))),["children",Ln.Children.toArray(Array.from(t))])])))}class wl extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetTfnInput","SetTfnTouched","SetTfnExemptionReason","SwitchEditingState","HideAlert"]}}class gl extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}class yl extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","TfnValue"]}}class bl extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Truncated","Editing"]}}class vl extends Gt{constructor(e,t,n,r,o){super(),this.YesNoButtonGroup=e,this.TruncatedTfn=t,this.CurrentAlert=n,this.EditingState=r,this.TfnInputTouched=o}}function xl(e){const t=e.EditingState;if(1===t.tag){const e=t.fields[0];return new Ju(cn((e=>new yl(1,e)),e.Value),e.Meta)}return new Ju(new yl(0,sn(e.TruncatedTfn)),{Valid:!0})}const _l=e=>function(e){return 1!==e.tag}(ou(e));function Sl(e){const t=e.EditingState;if(1===t.tag){const n=t.fields[0],r=n.Value;if(null==r)return new vl(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new bl(1,new Ju(n.Value,{Valid:!1})),e.TfnInputTouched);if(1===r.tag)return new vl(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new bl(1,new Ju(n.Value,{Valid:!0})),e.TfnInputTouched);{const t=r.fields[0].fields[0];return new vl(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new bl(1,new Ju(n.Value,{Valid:_l(t)})),e.TfnInputTouched)}}return e}function Cl(e){const t=e.EditingState;if(1!==t.tag)return"";{const e=t.fields[0].Value;let n,r;switch(null!=e&&0===e.tag?(n=0,r=e.fields[0]):n=1,n){case 0:return r.fields[0];case 1:return""}}}function Tl(e){if(e.TfnInputTouched){const t=e.EditingState;return 1===t.tag&&!t.fields[0].Meta.Valid}return!1}function El(e){let t,n,r,o;const i=Zu(function(e){let t,n,r;return[Sl(new vl(cl(null!=e&&1===e.tag&&1===e.fields[0].tag?new sl(1):new sl(0)),(t=e,null!=t&&0===t.tag?(n=t.fields[0],n):void 0),void 0,null==e?new bl(1,Xu()):1===e.tag?(r=e.fields[0],new bl(1,new Ju(r,{Valid:!1}))):new bl(0),!1)),Bu()]}(e.InitialValue),((t,n)=>function(e,t,n){const r=function(e,t){switch(e.tag){case 2:return new vl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,t.EditingState,!0);case 1:{const n=e.fields[0],r=new gl(0,new Qs(0,n)),o=_l(n);return t.EditingState.tag,new vl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new bl(1,new Ju(r,{Valid:o})),t.TfnInputTouched)}case 3:{const n=e.fields[0],r=cn((e=>new gl(1,e)),fn(tl,n.Value));return t.EditingState.tag,new vl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new bl(1,new Ju(r,n.Meta)),t.TfnInputTouched)}case 4:return 1===t.EditingState.tag?new vl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new bl(0),t.TfnInputTouched):new vl(t.YesNoButtonGroup,t.TruncatedTfn,new Wr(2,"Please click the continue button at the end of\n this form to save the changes to your TFN."),new bl(1,Xu()),!1);case 5:return Sl(new vl(t.YesNoButtonGroup,t.TruncatedTfn,void 0,t.EditingState,t.TfnInputTouched));default:{const n=e.fields[0];let r,o,i;switch(n.tag,o=0,i=n.fields[0],o){case 0:{const e=[i,t.EditingState];if(1===e[0].tag)if(1===e[1].tag){const n=e[1].fields[0].Value;let o;switch(o=null!=n&&1===n.tag?0:1,o){case 0:r=t.EditingState;break;case 1:r=new bl(1,Xu())}}else r=new bl(1,Xu());else if(1===e[1].tag){const n=[e[1].fields[0].Value,t.TruncatedTfn];let o;switch(o=null!=n[0]&&0===n[0].tag?0:null!=n[1]?1:2,o){case 0:r=t.EditingState;break;case 1:r=new bl(0);break;case 2:r=new bl(1,Xu())}}else r=new bl(0);break}}return new vl(fl(n,t.YesNoButtonGroup),t.TruncatedTfn,t.CurrentAlert,r,t.TfnInputTouched)}}}(t,n);return e(xl(r)),[r,Bu()]}(e.OnUpdate,t,n))),a=i[0],s=i[1],u=null==a.TruncatedTfn?null:p("div",mt(En((t=[p("button",mt(Pn([["className",Jt(" ",["relative","inline-flex","items-center","space-x-2","px-3","sm:py-2","py-3","border","border-gray-300","text-sm","font-medium","rounded-r-md","text-gray-700","bg-gray-50","hover:bg-gray-100","focus:outline-none","focus:ring-1","focus:ring-primary-focus","focus:border-primary-focus","focus:z-20","-ml-px"])],["type","button"],(n=Mr(Ir((()=>ct(a.EditingState,new bl(0))?Pr(Rr(Hn),Ir((()=>Rr(p("span",{children:["Edit"]}))))):Pr(Rr(Un),Ir((()=>Rr(p("span",{children:["Cancel"]})))))))),["children",Ln.Children.toArray(Array.from(n))]),["onClick",e=>{s(new wl(4))}]])))],["children",Ln.Children.toArray(Array.from(t))]))));return p("div",mt(Pn([["className",Jt(" ",qn)],(r=[al("Do you have your Tax File Number (TFN)?"),p($l,{Disable:void 0,Dispatch:e=>{s(new wl(0,e))},State:a.YesNoButtonGroup}),p("div",mt(Pn([["className",Jt(" ",["mt-4"])],(o=Mr(Ir((()=>{let e,t,n,r,o,i;return Pr((e=a.YesNoButtonGroup.Selected,null!=e?1===e.tag?Rr(p(ml,(t=Bn((e=>[Ft(e[0]),e[1],e[2]]),Pn([[new eu(1),"My TFN is pending",void 0],[new eu(0),"I'm under 18 and don't have a TFN",void 0],[new eu(2),"I have an exemption from quoting a TFN","E.g. receiving a social security or service pension"]])),{InitialValue:(n=xl(a).Value,null!=n&&1===n.tag&&1===n.fields[0].tag?(r=n.fields[0].fields[0],Ft(r)):void 0),Name:"TfnExemption",OnUpdate:e=>{s(new wl(3,e))},ValueLabelPairs:t}))):(o=[a.TruncatedTfn,a.EditingState],null!=o[0]&&0===o[1].tag?(i=o[0],Pr(Rr(al("Enter your TFN")),Ir((()=>{let e,t,n;return Rr(p("div",mt(Pn([["className",Jt(" ",["mt-1","flex","rounded-md","shadow-sm"])],(e=[p("div",mt(Pn([["className","relative flex items-stretch flex-grow"],(t=[p("input",mt(Pn([["className",Jt(" ",["focus:ring-primary-focus","focus:border-primary-focus","bg-gray-50","focus:z-20","relative","block","w-full","rounded-none","rounded-l-md","pl-3","sm:text-sm","text-base","border","border-gray-300","text-gray-500"])],["disabled",!0],(n=`*** *** *${i}`,["ref",e=>{null==e||ct(e.value,n)||(e.value=n)}])])))],["children",Ln.Children.toArray(Array.from(t))])]))),u],["children",Ln.Children.toArray(Array.from(e))])]))))})))):Pr(Rr(al("Enter your TFN")),Ir((()=>{let e;return Rr(p("div",mt(Pn([["className",Jt(" ",["mt-1"])],(e=Mr(Ir((()=>{let e,t;return Pr(Rr(p("div",mt(Pn([["className",Jt(" ",["relative","flex","items-stretch","flex-grow"])],(e=[p("input",mt(Pn([["className",Jt(" ",Mr(Ir((()=>Pr(Rr("block"),Ir((()=>Pr(Rr("w-full"),Ir((()=>Pr(Rr("focus:outline-none"),Ir((()=>Pr(Rr("text-base"),Ir((()=>Pr(Rr("focus:z-20"),Ir((()=>Pr(Rr("relative"),Ir((()=>Pr(Rr("sm:text-sm"),Ir((()=>Pr(Rr("rounded-md"),Ir((()=>Pr(Rr("border-gray-300"),Ir((()=>Pr(Rr("focus:ring-primary-focus"),Ir((()=>Pr(Rr("focus:border-primary-focus"),Ir((()=>Pr(Rr("block"),Ir((()=>Pr(Rr("w-full"),Ir((()=>Pr(null==a.TruncatedTfn?Rr("rounded-md"):Rr("rounded-none rounded-l-md"),Ir((()=>Tl(a)?["border-red-300","text-red-900","placeholder-red-300","focus:ring-red-500","focus:border-red-500"]:Nr()))))))))))))))))))))))))))))))))))))))))))))))],["type","text"],["onChange",e=>{s(new wl(1,en(Rs,e.target.value)))}],(t=Cl(a),["ref",e=>{null==e||ct(e.value,t)||(e.value=t)}]),["onBlur",e=>{s(new wl(2))}],["inputMode","numeric"],["data-testid","tfn-input"]]))),u],["children",Ln.Children.toArray(Array.from(e))])])))),Ir((()=>Tl(a)?Rr(p("div",{className:Jt(" ",["mt-1","text-sm","text-red-600"]),children:"That isn’t a valid Tax File Number"})):Nr())))}))),["children",Ln.Children.toArray(Array.from(e))])]))))})))):Rr(null)),Ir((()=>{let e;return Rr((e=Mr(Ir((()=>{const e=a.CurrentAlert;return Rr(null==e?null:p(Zr,{alert:e,hideAlert:()=>{s(new wl(5))}}))}))),p("div",{children:Ln.Children.toArray(Array.from(e))})))})))}))),["children",Ln.Children.toArray(Array.from(o))])])))],["children",Ln.Children.toArray(Array.from(r))])])))}let kl="undefined"!=typeof window?ne:te;function Il(e){let t=re(e);return kl((()=>{t.current=e}),[e]),t}function Al(e,t){let[n,r]=Q(e),o=Il(e);return kl((()=>r(o.current)),[o,r,...t]),n}function Nl(){let e=[],t=[],n={enqueue(e){t.push(e)},addEventListener:(e,t,r,o)=>(e.addEventListener(t,r,o),n.add((()=>e.removeEventListener(t,r,o)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>n.requestAnimationFrame((()=>n.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return n.add((()=>clearTimeout(t)))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0){let[t]=e.splice(n,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return n}function Rl(){let[e]=Q(Nl);return te((()=>()=>e.dispose()),[e]),e}let Ml=function(e){let t=Il(e);return ze.useCallback(((...e)=>t.current(...e)),[t])},Ol={serverHandoffComplete:!1};var Dl;let Pl=0;function Fl(){return++Pl}let Bl=null!=(Dl=ze.useId)?Dl:function(){let e=function(){let[e,t]=Q(Ol.serverHandoffComplete);return te((()=>{!0!==e&&t(!0)}),[e]),te((()=>{!1===Ol.serverHandoffComplete&&(Ol.serverHandoffComplete=!0)}),[]),e}(),[t,n]=ze.useState(e?Fl:null);return kl((()=>{null===t&&n(Fl())}),[t]),null!=t?""+t:void 0};function Gl(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Gl),r}function Ll(e){return"undefined"==typeof window?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Vl=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var Hl=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Hl||{}),Ul=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ul||{}),jl=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(jl||{}),zl=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(zl||{});function Wl(e,t,n){let r=Il(t);te((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}function Yl(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function ql(e,t){let[n,r]=Q((()=>Yl(e)));return kl((()=>{r(Yl(e))}),[e.type,e.as]),kl((()=>{n||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}["textarea","input"].join(",");let Kl=Symbol();function Zl(...e){let t=re(e);te((()=>{t.current=e}),[e]);let n=Ml((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[Kl])))?void 0:n}var Jl=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Jl||{});var Xl=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Xl||{}),Ql=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Ql||{});function ec({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a}){let s=nc(t,e);if(i)return tc(s,n,r,a);let u=null!=o?o:0;if(2&u){let{static:e=!1,...t}=s;if(e)return tc(t,n,r,a)}if(1&u){let{unmount:e=!0,...t}=s;return Gl(e?0:1,{0:()=>null,1:()=>tc({...t,hidden:!0,style:{display:"none"}},n,r,a)})}return tc(s,n,r,a)}function tc(e,t={},n,r){let{as:o=n,children:i,refName:a="ref",...s}=ic(e,["unmount","static"]),u=void 0!==e.ref?{[a]:e.ref}:{},l="function"==typeof i?i(t):i;s.className&&"function"==typeof s.className&&(s.className=s.className(t));let c={};if(o===m&&Object.keys(oc(s)).length>0){if(!He(l)||Array.isArray(l)&&l.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));return Ue(l,Object.assign({},nc(l.props,oc(ic(s,["ref"]))),c,u))}return p(o,Object.assign({},ic(s,["ref"]),o!==m&&u,o!==m&&c),l)}function nc(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if(t.defaultPrevented)return;e(t,...r)}}});return t}function rc(e){var t;return Object.assign(ge(e),{displayName:null!=(t=e.displayName)?t:e.name})}function oc(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function ic(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function ac(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))uc(n,sc(t,r),o);return n}function sc(e,t){return e?e+"["+t+"]":t}function uc(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())uc(e,sc(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):ac(n,t,e)}var lc=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(lc||{});let cc=rc((function(e,t){let{features:n=1,...r}=e;return ec({ourProps:{ref:t,"aria-hidden":2==(2&n)||void 0,style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&n)&&2!=(2&n)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})})),fc=G(null);fc.displayName="OpenClosedContext";var dc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(dc||{});function $c({value:e,children:t}){return ze.createElement(fc.Provider,{value:e},t)}var pc=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(pc||{}),hc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(hc||{}),mc=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(mc||{}),wc=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(wc||{}),gc=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e))(gc||{});function yc(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=function(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),o=n?r.indexOf(n):null;return-1===o&&(o=null),{options:r,activeOptionIndex:o}}let bc={1:e=>e.dataRef.current.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1},0(e){if(e.dataRef.current.disabled||0===e.comboboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,comboboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||e.dataRef.current.optionsRef.current&&!e.dataRef.current.optionsPropsRef.current.static&&1===e.comboboxState)return e;let r=yc(e);if(null===r.activeOptionIndex){let e=r.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(r.activeOptionIndex=e)}let o=function(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1,i=(()=>{switch(e.focus){case 0:return n.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=n.slice().reverse().findIndex(((e,n,r)=>!(-1!==o&&r.length-n-1>=o||t.resolveDisabled(e))));return-1===e?e:n.length-1-e}case 2:return n.findIndex(((e,n)=>!(n<=o||t.resolveDisabled(e))));case 3:{let e=n.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:n.length-1-e}case 4:return n.findIndex((n=>t.resolveId(n)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===i?r:i}(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,activeOptionIndex:o,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=yc(e,(e=>[...e,n]));null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n));let o={...e,...r,activationTrigger:1};return e.dataRef.current.__demoMode&&void 0===e.dataRef.current.value&&(o.activeOptionIndex=0),o},4:(e,t)=>{let n=yc(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}}},vc=G(null);function xc(e){let t=ae(vc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,xc),t}return t}vc.displayName="ComboboxActionsContext";let _c=G(null);function Sc(e){let t=ae(_c);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Sc),t}return t}function Cc(e,t){return Gl(t.type,bc,e,t)}_c.displayName="ComboboxDataContext";let Tc=m,Ec=rc((function(e,t){let{name:n,value:r,onChange:o,disabled:i=!1,__demoMode:a=!1,nullable:s=!1,multiple:u=!1,...l}=e,[c,f]=ee(Cc,{dataRef:{current:null},comboboxState:a?0:1,options:[],activeOptionIndex:null,activationTrigger:1}),d=re(!1),$=re({static:!1,hold:!1}),p=re({displayValue:void 0}),h=re(null),m=re(null),w=re(null),g=re(null),y=Ml(((e,t)=>e===t)),b=ie((e=>Gl(v.mode,{1:()=>r.some((t=>y(t,e))),0:()=>y(r,e)})),[r]),v=oe((()=>({...c,optionsPropsRef:$,inputPropsRef:p,labelRef:h,inputRef:m,buttonRef:w,optionsRef:g,value:r,disabled:i,mode:u?1:0,get activeOptionIndex(){if(d.current&&null===c.activeOptionIndex&&c.options.length>0){let e=c.options.findIndex((e=>!e.dataRef.current.disabled));if(-1!==e)return e}return c.activeOptionIndex},compare:y,isSelected:b,nullable:s,__demoMode:a})),[r,i,u,s,a,c]);kl((()=>{c.dataRef.current=v}),[v]),function(e,t,n=!0){let r=re(!1);function o(n,o){if(!r.current||n.defaultPrevented)return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),a=o(n);if(null!==a&&a.ownerDocument.documentElement.contains(a)){for(let e of i){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(a))return}return!function(e,t=0){var n;return e!==(null==(n=Ll(e))?void 0:n.body)&&Gl(t,{0:()=>e.matches(Vl),1(){let t=e;for(;null!==t;){if(t.matches(Vl))return!0;t=t.parentElement}return!1}})}(a,zl.Loose)&&-1!==a.tabIndex&&n.preventDefault(),t(n,a)}}te((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]),Wl("click",(e=>o(e,(e=>e.target))),!0),Wl("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}([v.buttonRef,v.inputRef,v.optionsRef],(()=>f({type:1})),0===v.comboboxState);let x=oe((()=>({open:0===v.comboboxState,disabled:i,activeIndex:v.activeOptionIndex,activeOption:null===v.activeOptionIndex?null:v.options[v.activeOptionIndex].dataRef.current.value})),[v,i]),_=ie((()=>{var e;if(!v.inputRef.current)return;let t=p.current.displayValue;v.inputRef.current.value="function"==typeof t?null!=(e=t(r))?e:"":"string"==typeof r?r:""}),[r,v.inputRef,p]),S=Ml((e=>{let t=v.options.find((t=>t.id===e));!t||(A(t.dataRef.current.value),_())})),C=Ml((()=>{if(null!==v.activeOptionIndex){let{dataRef:e,id:t}=v.options[v.activeOptionIndex];A(e.current.value),_(),f({type:2,focus:Jl.Specific,id:t})}})),T=Ml((()=>{f({type:0}),d.current=!0})),E=Ml((()=>{f({type:1}),d.current=!1})),k=Ml(((e,t,n)=>(d.current=!1,e===Jl.Specific?f({type:2,focus:Jl.Specific,id:t,trigger:n}):f({type:2,focus:e,trigger:n})))),I=Ml(((e,t)=>(f({type:3,id:e,dataRef:t}),()=>f({type:4,id:e})))),A=Ml((e=>Gl(v.mode,{0:()=>o(e),1(){let t=v.value.slice(),n=t.indexOf(e);return-1===n?t.push(e):t.splice(n,1),o(t)}}))),N=oe((()=>({onChange:A,registerOption:I,goToOption:k,closeCombobox:E,openCombobox:T,selectActiveOption:C,selectOption:S})),[]);kl((()=>{1===v.comboboxState&&_()}),[_,v.comboboxState]),kl(_,[_]);let R=null===t?{}:{ref:t};return ze.createElement(vc.Provider,{value:N},ze.createElement(_c.Provider,{value:v},ze.createElement($c,{value:Gl(v.comboboxState,{0:dc.Open,1:dc.Closed})},null!=n&&null!=r&&ac({[n]:r}).map((([e,t])=>ze.createElement(cc,{features:lc.Hidden,...oc({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),ec({ourProps:R,theirProps:l,slot:x,defaultTag:Tc,name:"Combobox"}))))})),kc=rc((function(e,t){var n,r;let{value:o,onChange:i,displayValue:a,type:s="text",...u}=e,l=Sc("Combobox.Input"),c=xc("Combobox.Input"),f=Zl(l.inputRef,t),d=l.inputPropsRef,$=`headlessui-combobox-input-${Bl()}`,p=Rl();kl((()=>{d.current.displayValue=a}),[a,d]);let h=Ml((e=>{switch(e.key){case pc.Backspace:case pc.Delete:if(0!==l.mode||!l.nullable)return;let t=e.currentTarget;p.requestAnimationFrame((()=>{""===t.value&&(c.onChange(null),l.optionsRef.current&&(l.optionsRef.current.scrollTop=0),c.goToOption(Jl.Nothing))}));break;case pc.Enter:if(0!==l.comboboxState)return;if(e.preventDefault(),e.stopPropagation(),null===l.activeOptionIndex)return void c.closeCombobox();c.selectActiveOption(),0===l.mode&&c.closeCombobox();break;case pc.ArrowDown:return e.preventDefault(),e.stopPropagation(),Gl(l.comboboxState,{0:()=>{c.goToOption(Jl.Next)},1:()=>{c.openCombobox()}});case pc.ArrowUp:return e.preventDefault(),e.stopPropagation(),Gl(l.comboboxState,{0:()=>{c.goToOption(Jl.Previous)},1:()=>{c.openCombobox(),p.nextFrame((()=>{l.value||c.goToOption(Jl.Last)}))}});case pc.Home:case pc.PageUp:return e.preventDefault(),e.stopPropagation(),c.goToOption(Jl.First);case pc.End:case pc.PageDown:return e.preventDefault(),e.stopPropagation(),c.goToOption(Jl.Last);case pc.Escape:return 0!==l.comboboxState?void 0:(e.preventDefault(),l.optionsRef.current&&!l.optionsPropsRef.current.static&&e.stopPropagation(),c.closeCombobox());case pc.Tab:if(0!==l.comboboxState)return;c.selectActiveOption(),c.closeCombobox()}})),m=Ml((e=>{c.openCombobox(),null==i||i(e)})),w=Al((()=>{if(l.labelRef.current)return[l.labelRef.current.id].join(" ")}),[l.labelRef.current]),g=oe((()=>({open:0===l.comboboxState,disabled:l.disabled})),[l]);return ec({ourProps:{ref:f,id:$,role:"combobox",type:s,"aria-controls":null==(n=l.optionsRef.current)?void 0:n.id,"aria-expanded":l.disabled?void 0:0===l.comboboxState,"aria-activedescendant":null===l.activeOptionIndex||null==(r=l.options[l.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===l.mode||void 0,"aria-labelledby":w,disabled:l.disabled,onKeyDown:h,onChange:m},theirProps:u,slot:g,defaultTag:"input",name:"Combobox.Input"})})),Ic=rc((function(e,t){var n;let r=Sc("Combobox.Button"),o=xc("Combobox.Button"),i=Zl(r.buttonRef,t),a=`headlessui-combobox-button-${Bl()}`,s=Rl(),u=Ml((e=>{switch(e.key){case pc.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&o.openCombobox(),s.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case pc.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(o.openCombobox(),s.nextFrame((()=>{r.value||o.goToOption(Jl.Last)}))),s.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case pc.Escape:return 0!==r.comboboxState?void 0:(e.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&e.stopPropagation(),o.closeCombobox(),s.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})})));default:return}})),l=Ml((e=>{if(function(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}(e.currentTarget))return e.preventDefault();0===r.comboboxState?o.closeCombobox():(e.preventDefault(),o.openCombobox()),s.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}))})),c=Al((()=>{if(r.labelRef.current)return[r.labelRef.current.id,a].join(" ")}),[r.labelRef.current,a]),f=oe((()=>({open:0===r.comboboxState,disabled:r.disabled})),[r]),d=e;return ec({ourProps:{ref:i,id:a,type:ql(e,r.buttonRef),tabIndex:-1,"aria-haspopup":!0,"aria-controls":null==(n=r.optionsRef.current)?void 0:n.id,"aria-expanded":r.disabled?void 0:0===r.comboboxState,"aria-labelledby":c,disabled:r.disabled,onClick:l,onKeyDown:u},theirProps:d,slot:f,defaultTag:"button",name:"Combobox.Button"})})),Ac=rc((function(e,t){let n=Sc("Combobox.Label"),r=`headlessui-combobox-label-${Bl()}`;return ec({ourProps:{ref:Zl(n.labelRef,t),id:r,onClick:Ml((()=>{var e;return null==(e=n.inputRef.current)?void 0:e.focus({preventScroll:!0})}))},theirProps:e,slot:oe((()=>({open:0===n.comboboxState,disabled:n.disabled})),[n]),defaultTag:"label",name:"Combobox.Label"})})),Nc=Xl.RenderStrategy|Xl.Static,Rc=rc((function(e,t){var n;let{hold:r=!1,...o}=e,i=Sc("Combobox.Options"),a=Zl(i.optionsRef,t),s=`headlessui-combobox-options-${Bl()}`,u=ae(fc),l=null!==u?u===dc.Open:0===i.comboboxState;kl((()=>{var t;i.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[i.optionsPropsRef,e.static]),kl((()=>{i.optionsPropsRef.current.hold=r}),[i.optionsPropsRef,r]),function({container:e,accept:t,walk:n,enabled:r=!0}){let o=re(t),i=re(n);te((()=>{o.current=t,i.current=n}),[t,n]),kl((()=>{if(!e||!r)return;let t=Ll(e);if(!t)return;let n=o.current,a=i.current,s=Object.assign((e=>n(e)),{acceptNode:n}),u=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,s,!1);for(;u.nextNode();)a(u.currentNode)}),[e,r,o,i])}({container:i.optionsRef.current,enabled:0===i.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let c=Al((()=>{var e,t,n;return null!=(n=null==(e=i.labelRef.current)?void 0:e.id)?n:null==(t=i.buttonRef.current)?void 0:t.id}),[i.labelRef.current,i.buttonRef.current]),f=oe((()=>({open:0===i.comboboxState})),[i]);return ec({ourProps:{"aria-activedescendant":null===i.activeOptionIndex||null==(n=i.options[i.activeOptionIndex])?void 0:n.id,"aria-labelledby":c,role:"listbox",id:s,ref:a},theirProps:o,slot:f,defaultTag:"ul",features:Nc,visible:l,name:"Combobox.Options"})})),Mc=rc((function(e,t){var n,r;let{disabled:o=!1,value:i,...a}=e,s=Sc("Combobox.Option"),u=xc("Combobox.Option"),l=`headlessui-combobox-option-${Bl()}`,c=null!==s.activeOptionIndex&&s.options[s.activeOptionIndex].id===l,f=s.isSelected(i),d=re(null),$=Il({disabled:o,value:i,domRef:d,textValue:null==(r=null==(n=d.current)?void 0:n.textContent)?void 0:r.toLowerCase()}),p=Zl(t,d),h=Ml((()=>u.selectOption(l)));kl((()=>u.registerOption(l,$)),[$,l]);let m=re(!s.__demoMode);kl((()=>{if(!s.__demoMode)return;let e=Nl();return e.requestAnimationFrame((()=>{m.current=!0})),e.dispose}),[]),kl((()=>{if(0!==s.comboboxState||!c||!m.current||0===s.activationTrigger)return;let e=Nl();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=d.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[d,c,s.comboboxState,s.activationTrigger,s.activeOptionIndex]);let w=Ml((e=>{var t;if(o)return e.preventDefault();h(),0===s.mode&&(u.closeCombobox(),null==(t=s.inputRef.current)||t.focus({preventScroll:!0}))})),g=Ml((()=>{if(o)return u.goToOption(Jl.Nothing);u.goToOption(Jl.Specific,l)})),y=Ml((()=>{o||c||u.goToOption(Jl.Specific,l,0)})),b=Ml((()=>{o||!c||s.optionsPropsRef.current.hold||u.goToOption(Jl.Nothing)})),v=oe((()=>({active:c,selected:f,disabled:o})),[c,f,o]);return ec({ourProps:{id:l,ref:p,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":!0===f||void 0,disabled:void 0,onClick:w,onFocus:g,onPointerMove:y,onMouseMove:y,onPointerLeave:b,onMouseLeave:b},theirProps:a,slot:v,defaultTag:"li",name:"Combobox.Option"})})),Oc=Object.assign(Ec,{Input:kc,Button:Ic,Label:Ac,Options:Rc,Option:Mc});class Dc extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Value","OnChange","Children"]}}class Pc extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["DisplayValue","OnChange","ClassName","AutoComplete"]}}function Fc(e){const t=Os(e,1);return p(Oc.Input,t)}class Bc extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ClassName"]}}function Gc(e,t){const n=Os(e,1);return p(Oc.Options,n,...t)}class Lc extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ClassName","Children"]}}function Vc(e){const t=Os(e,1);return p(Oc.Button,t)}class Hc extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Key","Value","ClassName","Children"]}}class Uc extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetResidencyStatusRadioBox","SetCountry"]}}class jc extends Gt{constructor(e){super(),this.ResidencyStatus=e}}function zc(e){return function(e){let t,n;switch(null==e?t=2:1===e.tag?t=0:2===e.tag?(t=1,n=e.fields[0]):t=0,t){case 0:return!0;case 1:return null!=n.HomeCountry;case 2:return!1}}(e)?Qu(e):el(e)}function Wc(e){return new jc(zc(e.ResidencyStatus.Value))}function Yc(e,t,n){let r,o;const i=nr(""),a=e=>{let t;return ln(cn((e=>e.Name),(t=qs(e),1===t.tag?void 0:t.fields[0])),"")};let s;const u=an(i[0]);let l,c;switch(null!=u?""===u?l=0:(l=1,c=u):l=0,l){case 0:s=t;break;case 1:f=(e,t)=>{const n=e=>{return(t=e,t.replace(new RegExp(Dt(" "),"g"),"")).toLocaleLowerCase();var t},r=n(t),o=n(c);return r.indexOf(o)>=0},s=function(e,t){return Fo(e.comparer,Co(e.comparer,t,e.tree))}(t,f)}var f;return function(e){const t=Os(e,1);return p(Oc,t)}(Pn([new Dc(0,a(e)),new Dc(1,n),new Dc(2,[p("div",mt(Pn([["className","relative mt-1"],(r=[p("div",mt(Pn([["className","relative w-full cursor-default overflow-hidden focus:outline-none focus:border-primary-focus"],(o=[Fc(Pn([new Pc(0,a(e)),new Pc(2,"block w-full pr-10 focus:outline-none text-base sm:text-sm rounded-md border-gray-300 focus:border-primary-focus shadow-none focus:ring-0"),new Pc(1,(e=>{i[1](e.target.value)})),new Pc(3,"off")])),Vc(Pn([new Lc(0,"absolute inset-y-0 right-0 flex items-center pr-2"),new Lc(1,[Yn])]))],["children",Ln.Children.toArray(Array.from(o))])]))),Gc(En(new Bc(0,"absolute mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-sm shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm z-50")),Mr(Ir((()=>Pr(0===Lo(s)?Rr(p("div",{className:"relative cursor-default select-none py-2 px-4 text-gray-700",children:Ln.Children.toArray(["Nothing found"])})):Nr(),Ir((()=>Ur((e=>{const t=e,n=t[0];return Rr(function(e){const t=Os(e,1);return p(Oc.Option,t)}(Pn([new Hc(0,n),new Hc(1,n),new Hc(2,"relative cursor-default select-none"),new Hc(3,(e=>{let n;const r=[e.active,e.selected];let o;switch(o=r[0]||r[1]?1:0,o){case 0:n="bg-white text-black";break;case 1:n="bg-primary-base"}return[p("span",{className:"py-2 pl-2 pr-4 block truncate "+n,children:t[1]})]}))])))}),s))))))))],["children",Ln.Children.toArray(Array.from(r))])])))])]))}function qc(e){let t;const n=Zu((r=e.InitialValue,[Wc(new jc(el(r))),Bu()]),((t,n)=>function(e,t,n){const r=function(e,t){if(1===e.tag){let t;const n=qs(ln(e.fields[0].Value,""));return t=1===n.tag?void 0:n.fields[0],Wc(new jc(el(null==t?Zs:Js(t))))}return Wc(new jc(el(fn(nl,e.fields[0].Value))))}(t);return e(r.ResidencyStatus),[r,Bu()]}(e.OnUpdate,t)));var r;const o=n[0],i=n[1];return p("div",mt(En((t=Mr(Ir((()=>Pr(Rr(al("Are you an Australian resident for tax purposes or a working holiday maker?")),Ir((()=>{let e;return Pr(Rr(p(ml,(e=Bn((e=>[rl(e[0]),e[1],e[2]]),Pn([[new Ks(0),"Australian resident for tax purposes",void 0],[new Ks(1),"Foreign resident",void 0],[new Ks(2,{HomeCountry:void 0}),"Working holiday maker",void 0]])),{InitialValue:cn(rl,o.ResidencyStatus.Value),Name:"ResidencyStatus",OnUpdate:e=>{i(new Uc(0,e))},ValueLabelPairs:e}))),Ir((()=>{let e;const t=o.ResidencyStatus.Value;let n,r;switch(null!=t&&2===t.tag?(n=0,r=t.fields[0]):n=1,n){case 0:return Rr(p("div",mt(Pn([["className",Jt(" ",["mt-4"])],(e=[al("Your home country where your visa was issued"),Yc(ln(cn((e=>e.Code),r.HomeCountry),""),zs,(e=>{i(new Uc(1,Qu(e)))}))],["children",Ln.Children.toArray(Array.from(e))])]))));case 1:return Rr(null)}})))})))))),["children",Ln.Children.toArray(Array.from(t))]))))}class Kc extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetTfnInformation","SetPreviousSurname","SetResidencyStatus","SetClaimTaxFreeThreshold","SetDebtSupport","SetEmploymentBasis","GetData","ShowAlert","HideAlert","Saved","AppReady"]}}class Zc extends Gt{constructor(e,t,n,r,o,i,a,s){super(),this.PreExistingTfnDec=e,this.CurrentAlert=t,this.TfnInformation=n,this.PreviousSurname=r,this.ResidencyStatus=o,this.ClaimTaxFreeThreshold=i,this.DebtSupportCheckboxGroup=a,this.EmploymentBasisRadioButtonGroup=s}}class Jc extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Web","ReactNative","WebComponent"]}}function Xc(){const e=Qt(document.URL,["/"],null,0),t=hn("web",e,{Equals:(e,t)=>e===t,GetHashCode:ot}),n=hn("react-native",e,{Equals:(e,t)=>e===t,GetHashCode:ot}),r=[an(document.querySelector("tax-component")),t,n];let o;switch(o=null==r[0]?r[1]?r[2]?3:1:r[2]?2:3:0,o){case 0:return new mr(0,new Jc(2,r[0]));case 1:return new mr(0,new Jc(0));case 2:return new mr(0,new Jc(1));case 3:return new mr(1,"Could not determine the embed mode")}}class Qc extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SuccessRedirectionUrl"]}}function ef(){let e;const t=Xc();var n;0===t.tag&&(0===t.fields[0].tag?Lr((e=>{window.parent.location.href=e}),un((n=new Qc(0),an(sessionStorage.getItem(function(e){return Ft(e)}(n)))))):1===t.fields[0].tag?Lr((e=>{let t;t=JSON.stringify({stepStatus:"completed"}),e.postMessage(t)}),un(window.ReactNativeWebView)):(e=new CustomEvent("step-completion",{bubbles:!0,detail:"tax"}),t.fields[0].fields[0].dispatchEvent(e)))}function tf(e,t){let n;switch(e.tag){case 1:return[new Zc(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,e.fields[0],t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Bu()];case 2:{const r=e.fields[0];return[new Zc(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,r,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),(n=r.Value,null==n?Bu():1===n.tag?Gu(new Kc(3,new ul(1,new sl(1),!1))):2===n.tag?Gu(new Kc(3,new ul(1,new sl(1),!0))):Gu(new Kc(3,new ul(1,new sl(0),!1))))]}case 3:return[new Zc(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,fl(e.fields[0],t.ClaimTaxFreeThreshold),t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Bu()];case 4:return[new Zc(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,e.fields[0],t.EmploymentBasisRadioButtonGroup),Bu()];case 5:{const n=fn(il,e.fields[0].Value);return[new Zc(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,new Ju(n,{Valid:null!=n})),Bu()]}case 6:{const n=e.fields[0],r=new Zc(n,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),o=Gu(new Kc(7,new Wr(1,"There was an error loading your tax declaration. Please try refreshing this page.")));!function(){let e,t;const n=an(document.getElementById("external-loading-page-container"));Lr((t=document.body,e=e=>t.removeChild(e),t=>{e(t)}),un(n))}();const i=Gu(new Kc(10));if(2===n.tag){if(1===n.fields[0].tag)return[r,o];{const e=cn((e=>function(e,t){return Jr(0,(()=>{let n;return gr((n=>gr((r=>{const o=t.IsTaxFreeThresholdClaimed?new sl(0):new sl(1);return gr((i=>Xr(0,function(e){switch(e){case 0:return new mr(0,new Xs(0));case 1:return new mr(0,new Xs(1));case 2:return new mr(0,new Xs(2));case 3:return new mr(0,new Xs(3));case 4:return new mr(0,new Xs(4));default:return new mr(1,"Invalid EmploymentBasis")}}(t.EmploymentBasis),(a=>new Zc(e.PreExistingTfnDec,e.CurrentAlert,Qu(n),Qu(cn(nu,t.PreviousSurname)),zc(r),cl(o),i,Qu(a))))),fu(t.HasDebtSupport))}),su(t.ResidencyStatusV2))),(n=t.TfnInformation,1===n.tag?wr((e=>new yl(1,new gl(1,e))),function(e){switch(e){case 0:return new mr(0,new eu(0));case 1:return new mr(0,new eu(1));case 2:return new mr(0,new eu(2));default:return new mr(1,"Invalid ExemptionReason")}}(n.fields[0])):new mr(0,new yl(0,n.fields[0]))))}))()}(r,e)),n.fields[0].fields[0].Data);if(null==e)return[r,i];{const t=e;return 0===t.tag?[t.fields[0],i]:[r,o]}}}return 3===n.tag?[r,o]:[r,i]}case 7:return[new Zc(t.PreExistingTfnDec,e.fields[0],t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Bu()];case 8:return[new Zc(t.PreExistingTfnDec,void 0,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Bu()];case 9:return[new Zc(new pr(2,new mr(0,e.fields[0])),t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Bu()];case 10:return function(){const e=Xc();let t;t=0!==e.tag||0!==e.fields[0].tag&&1!==e.fields[0].tag?1:0,0===t&&window.parent.postMessage({sender:"flare",type:"appReady"},"*",rn(Cn()))}(),[t,Bu()];default:return[new Zc(t.PreExistingTfnDec,t.CurrentAlert,e.fields[0],t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Bu()]}}class nf extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetText","SetTouched"]}}class rf extends Gt{constructor(e,t){super(),this.Text=e,this.Meta=t}}class of extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Number","Text"]}}function af(e){let t;const n=Zu(function(e,t){const n=ln(e,"");return[new rf(n,{Touched:!1,Valid:t(n)}),Bu()]}(e.InitialValue,e.Validator),((t,n)=>function(e,t,n,r){const o=function(e,t,n){if(1===t.tag)return new rf(n.Text,{Touched:!0,Valid:n.Meta.Valid});{const r=t.fields[0];return new rf(r,{Touched:n.Meta.Touched,Valid:e(r)})}}(t,n,r);return e(new Ju(o.Text,{Valid:o.Meta.Valid})),[o,Bu()]}(e.OnUpdate,e.Validator,t,n))),r=n[0],o=n[1];return p("div",mt(Pn([["className",Jt(" ",Fn(e.AdditionalWrapperClasses,En("z-10")))],(t=Mr(Ir((()=>Pr(Rr(p("input",mt(Mr(Ir((()=>Pr(Rr(["className",Jt(" ",Fn(e.AdditionalInputClasses,Fn(Pn(["block","w-full","pr-10","focus:outline-none","text-base","sm:text-sm","rounded-md","border-gray-300"]),Mr(Ir((()=>!r.Meta.Valid&&r.Meta.Touched?["border-red-300","text-red-900","placeholder-red-300","focus:ring-red-500","focus:border-red-500"]:Nr()))))))]),Ir((()=>Pr(Rr(["type","text"]),Ir((()=>Pr(Rr(["onChange",t=>{const n=t.target.value;o(new nf(0,1===e.InputType.tag?n:en(Rs,n)))}]),Ir((()=>{let t;return Pr(Rr((t=r.Text,["ref",e=>{null==e||ct(e.value,t)||(e.value=t)}])),Ir((()=>Pr(Rr(["onBlur",e=>{o(new nf(1))}]),Ir((()=>Pr(ct(e.InputType,new of(0))?Rr(["inputMode","numeric"]):Nr(),Ir((()=>Rr(["data-testid",e.TestId]))))))))))}))))))))))))))),Ir((()=>!r.Meta.Valid&&r.Meta.Touched?Rr(p("div",{className:Jt(" ",["mt-1","text-sm","text-red-600"]),children:e.InvalidFeedback})):Nr())))))),["children",Ln.Children.toArray(Array.from(t))])])))}class sf extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetPreviousSurname"]}}class uf extends Gt{constructor(e,t){super(),this.YesNoButtonGroup=e,this.Data=t}}function lf(e){return!("string"!=typeof(t=e)||/^\s*$/.test(t));var t}function cf(e){const t=e.YesNoButtonGroup.Selected;return null==t?new uf(e.YesNoButtonGroup,new Ju(e.Data.Value,{Valid:!1})):1===t.tag?new uf(e.YesNoButtonGroup,new Ju(e.Data.Value,{Valid:!0})):new uf(e.YesNoButtonGroup,new Ju(e.Data.Value,{Valid:ln(cn((e=>lf(e.fields[0])),e.Data.Value),!1)}))}function ff(e){let t;const n=Zu((r=e.InitialValue,[cf(new uf(cl(new sl(null==r?1:0)),new Ju(r,{Valid:!1}))),Bu()]),((t,n)=>function(e,t,n){const r=function(e,t){let n,r,o;return cf(1===e.tag?(n=e.fields[0],new uf(t.YesNoButtonGroup,new Ju(cn((e=>new tu(0,e)),n.Value),{Valid:n.Meta.Valid}))):(r=e.fields[0],r.tag,o=1===r.fields[0].tag?new Ju(void 0,t.Data.Meta):t.Data,new uf(fl(r,t.YesNoButtonGroup),o)))}(t,n);return e(r.Data),[r,Bu()]}(e.OnUpdate,t,n)));var r;const o=n[0],i=n[1];return p("div",mt(Pn([["className",Jt(" ",qn)],(t=Mr(Ir((()=>Pr(Rr(al("Have you changed your surname since you last dealt with the Australian Tax Office (ATO)?")),Ir((()=>Pr(Rr(p($l,{Disable:void 0,Dispatch:e=>{i(new sf(0,e))},State:o.YesNoButtonGroup})),Ir((()=>{let e;const t=o.YesNoButtonGroup.Selected;let n;switch(n=null!=t&&0===t.tag?0:1,n){case 0:return Rr(p("div",mt(Pn([["className",Jt(" ",["mt-4"])],(e=[al("Enter your previous surname"),p(af,{AdditionalInputClasses:Pn(["focus:ring-primary-focus","focus:border-primary-focus"]),AdditionalWrapperClasses:En("mt-1"),InitialValue:cn(ru,o.Data.Value),InputType:new of(1),InvalidFeedback:"Please enter your previous surname",OnUpdate:e=>{i(new sf(1,e))},TestId:"surname-input",Validator:lf})],["children",Ln.Children.toArray(Array.from(e))])]))));case 1:return Rr(null)}}))))))))),["children",Ln.Children.toArray(Array.from(t))])])))}const df=Pn(["mt-7","bg-white","px-4","border","border-gray-200","rounded-lg","shadow-sm"]),$f=Pn(["group","relative","w-full","my-3","focus-visible:outline-primary-hover","flex","justify-between","items-center","text-left"]),pf=Pn(["text-sm","text-primary-base","leading-3","font-medium"]),hf=Pn(["ml-6","flex","items-center"]),mf=Pn(["pt-1","pb-3","prose","prose-sm","text-gray-500","text-sm"]);function wf(e){let t,n,r,o;const i=e.content,a=e.title,s=nr(!0),u=s[0];return p("div",mt(Pn([["className",Jt(" ",df)],(t=[(n=En(p("button",mt(Pn([["type","button"],["className",Jt(" ",$f)],["aria-expanded",u],["onClick",e=>{s[1](!u)}],(r=[p("span",{className:Jt(" ",pf),children:a}),p("span",mt(Pn([["className",Jt(" ",hf)],(o=Mr(Ir((()=>Rr(u?zn:jn)))),["children",Ln.Children.toArray(Array.from(o))])])))],["children",Ln.Children.toArray(Array.from(r))])])))),p("h3",{children:Ln.Children.toArray(Array.from(n))})),p("div",{className:Jt(" ",Fn(mf,Mr(Ir((()=>u?Rr("hidden"):Nr()))))),children:Ln.Children.toArray([i])})],["children",Ln.Children.toArray(Array.from(t))])])))}class gf extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class yf extends Gt{constructor(e){super(),this.Selected=e}}function bf(e,t){return null!=function(e,t){return((t,n)=>{for(;;){const r=t,o=n;if(xn(o))return;if(e(_n(o)))return r;t=r+1,n=Sn(o)}})(0,t)}((t=>e===t),t.Selected)}function vf(e,t,n){const r=function(e,t){const n=e.fields[0];return bf(n,t)?new yf(function(e,t){const n=bn(),r=Rn(((t,n)=>{if(e(n)){const e=new gn(n,void 0);return t.tail=e,e}return t}),n,t),o=bn();return r.tail=o,Sn(n)}((e=>n!==e),t.Selected)):new yf(Fn(En(n),t.Selected))}(t,n);return e(r.Selected),[r,Bu()]}function xf(e){let t;const n=Zu((r=e.InitialValue,[new yf(r),Bu()]),((t,n)=>vf(e.OnUpdate,t,n)));var r;return p("fieldset",mt(Pn([["className",Jt(" ",["space-y-2","mt-2"])],(t=Mr(Ir((()=>Ur((e=>{let t,r,o;const i=e[0];return Rr(p("div",mt(Pn([["className",Jt(" ",["relative","flex","items-start"])],["onChange",e=>{e.target.checked,n[1](new gf(0,i))}],(t=[p("div",mt(Pn([["className",Jt(" ",["flex","items-center","h-5"])],(r=[p("input",{className:Jt(" ",["focus:ring-primary-focus","h-4","w-4","text-primary-base","border-gray-300","rounded"]),type:"checkbox",id:i,checked:bf(i,n[0])})],["children",Ln.Children.toArray(Array.from(r))])]))),p("div",mt(Pn([["className",Jt(" ",["ml-3","text-sm"])],(o=[p("label",{className:Jt(" ",["font-normal","text-gray-700"]),for:i,children:e[1]})],["children",Ln.Children.toArray(Array.from(o))])])))],["children",Ln.Children.toArray(Array.from(t))])]))))}),e.ValueLabelPairs)))),["children",Ln.Children.toArray(Array.from(t))])])))}function _f(e,t){return!!(e.TfnInformation.Meta.Valid&&e.PreviousSurname.Meta.Valid&&e.ResidencyStatus.Meta.Valid&&null!=e.ClaimTaxFreeThreshold.Selected&&e.EmploymentBasisRadioButtonGroup.Meta.Valid)&&!ct(t,new pr(1))}function Sf(){return p("hr",{className:Jt(" ",["my-8"])})}const Cf=p("div",mt(Pn([["className",Jt(" ",["space-y-2"])],(()=>{const e=[p("p",{children:["You are considered to be an Australian resident for tax purposes if you live here permanently, or studying for a period in excess of 6 months."]}),p("p",{children:["Select working holiday maker if you are in Australia on a working holiday visa (subclass 417) or a work and holiday visa (subclass 462). Special rates of tax apply for working holiday makers."]}),p("p",{children:["If none of the above applies, select foreign resident unless you are in receipt of an Australian Government pension or allowance. Foreign resident tax rates are different."]})];return["children",Ln.Children.toArray(Array.from(e))]})()]))),Tf=p("div",mt(Pn([["className",Jt(" ",["space-y-2"])],(()=>{const e=[p("p",{children:["Answer yes if you are an Australian resident for tax purposes and this is your main job. It will mean that you pay no tax on the first $18,200 of your income. This is called the tax-free threshold."]}),p("p",{children:["Answer yes if you are a foreign resident in receipt of an Australian Government pension or allowance."]}),p("p",{children:["Answer no if none of the above applies or you are a working holiday maker."]})];return["children",Ln.Children.toArray(Array.from(e))]})()])));function Ef(e){const t=e.backendUrl,n=e.accessToken,r=Zu([new Zc(new pr(0),void 0,Xu(),Qu(void 0),Qu(new Ks(0)),cl(new sl(0)),Cn(),Qu(new Xs(0))),Bu()],tf),o=r[0],i=r[1];Qn(hr((()=>Du(n,t)),(e=>{i(new Kc(6,e))})),[]);const a=nr(new pr(0)),s=a[0],u=hr((()=>function(e,t,n,r){return function(e,t){return sr.Bind(t,(t=>{const n=function(e,t){return function(e,t,n){if(1===n.tag){t(n.fields[0])}return n}(0,e,t)}(e,t);return sr.Return(n)}))}((e=>{r(new Wr(1,"There was an error saving your tax declaration. Please try saving again."))}),function(e,t){return sr.Bind(t,(t=>{const n=function(e,t){return function(e,t,n){if(1===n.tag);else{t(n.fields[0])}return n}(0,e,t)}(e,t);return sr.Return(n)}))}((e=>{r(new Wr(0,"Your tax declaration has been saved."))}),Pu(e,t,n)))}(o,n,t,(e=>{i(new Kc(7,e))}))),(e=>{let t,n;a[1](e),2===e.tag&&0===e.fields[0].tag?(t=0,n=e.fields[0].fields[0]):t=1,0===t&&($r(sr.Delay((()=>sr.Bind(dr(400),(()=>(ef(),sr.Zero())))))),i(new Kc(9,n)))}));switch(o.PreExistingTfnDec.tag){case 0:case 1:return p("div",{children:["Please wait..."]});default:{const e=Mr(Ir((()=>{let e,t;return Pr((e=o.CurrentAlert,null==e?Rr(null):(t=e,Rr(p(Zr,{alert:t,hideAlert:()=>{i(new Kc(8))}})))),Ir((()=>Pr(Rr(p("h3",{className:Jt(" ",["text-3xl","font-bold","text-center","mb-8","sm:mb-12"]),children:"Tax Declaration"})),Ir((()=>Pr(Rr(p(El,{InitialValue:o.TfnInformation.Value,OnUpdate:e=>{i(new Kc(0,e))}})),Ir((()=>Pr(Rr(Sf()),Ir((()=>Pr(Rr(p(ff,{InitialValue:o.PreviousSurname.Value,OnUpdate:e=>{i(new Kc(1,e))}})),Ir((()=>Pr(Rr(Sf()),Ir((()=>Pr(Rr(p(qc,{InitialValue:o.ResidencyStatus.Value,OnUpdate:e=>{i(new Kc(2,e))}})),Ir((()=>Pr(Rr(p(wf,{title:"About residency",content:Cf})),Ir((()=>Pr(Rr(Sf()),Ir((()=>{let e,t;return Pr(Rr(p("div",mt(Pn([["className",Jt(" ",qn)],(e=[al("Would you like to claim the tax-free threshold from this employer?"),p($l,{Disable:(t=o.ResidencyStatus.Value,null!=t&&2===t.tag?new sl(0):void 0),Dispatch:e=>{i(new Kc(3,e))},State:o.ClaimTaxFreeThreshold})],["children",Ln.Children.toArray(Array.from(e))])])))),Ir((()=>Pr(Rr(p(wf,{title:"About the tax-free threshold",content:Tf})),Ir((()=>Pr(Rr(Sf()),Ir((()=>Pr(Rr(al("Do you have any of the following outstanding debts or loans?")),Ir((()=>{let e;return Pr(Rr(p(xf,(e=Bn((e=>[Ft(e[0]),e[1]]),Pn([[new Ws(0),"Higher Education Loan Program (HELP)"],[new Ws(1),"VET Student Loan (VSL)"],[new Ws(2),"Financial Supplement (FS)"],[new Ws(3),"Student Start-up Loan (SSL)"],[new Ws(4),"Trade Support Loan (TSL)"]])),{InitialValue:Bn(Ft,o.DebtSupportCheckboxGroup),OnUpdate:e=>{i(new Kc(4,function(e,t){const n=bn(),r=Rn(((t,n)=>{const r=e(n);if(null==r)return t;{const e=new gn(on(r),void 0);return t.tail=e,e}}),n,t),o=bn();return r.tail=o,Sn(n)}(ol,e)))},ValueLabelPairs:e}))),Ir((()=>Pr(Rr(Sf()),Ir((()=>Pr(Rr(al("On what basis are you paid?")),Ir((()=>{let e;return Pr(Rr(p(ml,(e=Bn((e=>[Ft(e[0]),e[1],e[2]]),Pn([[new Xs(0),"Full-time",void 0],[new Xs(1),"Part-time",void 0],[new Xs(2),"Labour Hire",void 0],[new Xs(3),"Superannuation or annuity income stream",void 0],[new Xs(4),"Casual",void 0]])),{InitialValue:cn(Ft,o.EmploymentBasisRadioButtonGroup.Value),Name:"EmploymentBasis",OnUpdate:e=>{i(new Kc(5,e))},ValueLabelPairs:e}))),Ir((()=>Pr(Rr(Sf()),Ir((()=>{let e;return Rr(p("div",mt(Pn([["className",Jt(" ",["text-center"])],(e=[p("button",{className:Jt(" ",["w-full","max-w-320","px-10","py-2","mb-10","border","border-transparent","text-sm","font-medium","rounded-md","shadow-sm","text-white","bg-primary-base","hover:bg-primary-hover","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-primary-focus","disabled:bg-gray-100","disabled:text-gray-400","disabled:border-gray-300","disabled:cursor-not-allowed"]),type:"button",disabled:!_f(o,s),onClick:e=>{_f(o,s)&&u()},children:"Continue","data-testid":"continue-button"})],["children",Ln.Children.toArray(Array.from(e))])]))))}))))))})))))))))}))))))))))))})))))))))))))))))))))))))))})));return p("form",{children:Ln.Children.toArray(Array.from(e))})}}}function kf(){return(kf=Object.assign||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)}function If(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,["context","children"]);return B(t,n)}function Af(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=p(If,kf({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},i=0,a=t.attributes,s=t.childNodes;for(i=a.length;i--;)"slot"!==a[i].name&&(o[a[i].name]=a[i].value,o[Nf(a[i].name)]=a[i].value);for(i=s.length;i--;){var u=e(s[i],null),l=s[i].slot;l?o[l]=p(Of,{name:l},u):r[i]=u}var c=n?p(Of,null,r):r;return p(n||t.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?F:P)(this._vdom,this._root)}function Nf(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function Rf(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[Nf(e)]=n,this._vdom=B(this._vdom,r),P(this._vdom,this._root)}}function Mf(){P(this._vdom=null,this._root)}function Of(e,t){var n=this;return p("slot",kf({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function Df(e){let t;return p("div",mt(Pn([["className",Jt(" ",["font-inter","max-w-560","mx-auto"])],(t=[p("style",{children:[Vn]}),p(Ef,{accessToken:e.accessToken,backendUrl:e.backendUrl})],["children",Ln.Children.toArray(Array.from(t))])])))}!function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=Af,o.prototype.attributeChangedCallback=Rf,o.prototype.disconnectedCallback=Mf,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define("tax-component",o)}((e=>p(Df,e)),0,void 0,{shadow:!0})},184:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg viewBox=%270 0 16 16%27 fill=%27%23fff%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Ccircle cx=%278%27 cy=%278%27 r=%273%27/%3E%3C/svg%3E"},254:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg viewBox=%270 0 16 16%27 fill=%27%23fff%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z%27/%3E%3C/svg%3E"},421:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 16 16%27%3E%3Cpath stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27M4 8h8%27/%3E%3C/svg%3E"},578:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 20 20%27%3E%3Cpath stroke=%27%236b7280%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%271.5%27 d=%27m6 8 4 4 4-4%27/%3E%3C/svg%3E"}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return e[r](i,i.exports,n),i.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.b=document.baseURI||self.location.href,n(495),n(118)})();
1
+ (()=>{"use strict";var e={118:(e,t,n)=>{n.d(t,{Z:()=>w});var r=n(81),o=n.n(r),i=n(645),a=n.n(i),s=n(667),u=n.n(s),l=new URL(n(578),n.b),c=new URL(n(254),n.b),f=new URL(n(184),n.b),d=new URL(n(421),n.b),$=a()(o()),p=u()(l),h=u()(c),m=u()(f),g=u()(d);$.push([e.id,'/*! tailwindcss v3.1.6 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}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,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;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{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-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,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,select:focus,textarea:focus{--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);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}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}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{color-adjust:exact;background-image:url('+p+");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]{color-adjust:unset;background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{color-adjust:exact;--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--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);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("+h+")}[type=radio]:checked{background-image:url("+m+")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("+g+");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:after,:before{--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-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:rgba(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: }::-webkit-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-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:rgba(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: }::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-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:rgba(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: }.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}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-y-0{bottom:0;top:0}.right-0{right:0}.z-50{z-index:50}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.my-8{margin-bottom:2rem;margin-top:2rem}.my-4{margin-bottom:1rem;margin-top:1rem}.-mx-1\\.5{margin-left:-.375rem;margin-right:-.375rem}.-my-1\\.5{margin-bottom:-.375rem;margin-top:-.375rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-my-1{margin-bottom:-.25rem;margin-top:-.25rem}.my-3{margin-bottom:.75rem;margin-top:.75rem}.mt-5{margin-top:1.25rem}.mt-4{margin-top:1rem}.mb-8{margin-bottom:2rem}.mb-10{margin-bottom:2.5rem}.ml-auto{margin-left:auto}.mt-2{margin-top:.5rem}.ml-3{margin-left:.75rem}.mt-7{margin-top:1.75rem}.ml-6{margin-left:1.5rem}.mt-1{margin-top:.25rem}.mt-0\\.5{margin-top:.125rem}.mt-0{margin-top:0}.mb-0\\.5{margin-bottom:.125rem}.mb-0{margin-bottom:0}.-ml-px{margin-left:-1px}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-4{height:1rem}.max-h-60{max-height:15rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.w-4{width:1rem}.w-1\\/2{width:50%}.w-auto{width:auto}.max-w-560{max-width:560px}.max-w-320{max-width:320px}.flex-none{flex:none}.flex-grow{flex-grow:1}.cursor-default{cursor:default}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-0\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.125rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.125rem*var(--tw-space-x-reverse))}.space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(0px*(1 - var(--tw-space-x-reverse)));margin-right:calc(0px*var(--tw-space-x-reverse))}.self-start{align-self:flex-start}.overflow-auto{overflow:auto}.overflow-hidden,.truncate{overflow:hidden}.truncate{text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.rounded-md{border-radius:.375rem}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-none{border-radius:0}.rounded-r-md{border-bottom-right-radius:.375rem;border-top-right-radius:.375rem}.rounded-l-md{border-bottom-left-radius:.375rem;border-top-left-radius:.375rem}.border{border-width:1px}.border-transparent{border-color:transparent}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 251 235/var(--tw-bg-opacity))}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.p-4{padding:1rem}.p-1\\.5{padding:.375rem}.p-1{padding:.25rem}.p-0\\.5{padding:.125rem}.p-0{padding:0}.px-10{padding-left:2.5rem;padding-right:2.5rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.px-8{padding-left:2rem;padding-right:2rem}.pr-2{padding-right:.5rem}.pt-1{padding-top:.25rem}.pb-3{padding-bottom:.75rem}.pr-10{padding-right:2.5rem}.pl-2{padding-left:.5rem}.pr-4{padding-right:1rem}.pl-3{padding-left:.75rem}.text-left{text-align:left}.text-center{text-align:center}.font-inter{font-family:Inter,sans-serif}.text-sm{font-size:.875rem;line-height:1.25rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-bold{font-weight:700}.leading-5{line-height:1.25rem}.leading-3{line-height:.75rem}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-amber-400{--tw-text-opacity:1;color:rgb(251 191 36/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-amber-700{--tw-text-opacity:1;color:rgb(180 83 9/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-primary-base{color:var(--fl-color-primary)}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.placeholder-red-300::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity))}.placeholder-red-300::placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity))}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.shadow-lg,.shadow-none{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.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-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity:0.05}.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)}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.hover\\:bg-red-100:hover{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.hover\\:bg-green-100:hover{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.hover\\:bg-blue-100:hover{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.focus\\:z-20:focus{z-index:20}.focus\\:z-10:focus{z-index:10}.focus\\:border-primary-focus:focus{border-color:var(--fl-color-primary-focus)}.focus\\:border-red-500:focus{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-0:focus,.focus\\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(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)}.focus\\:ring-inset:focus{--tw-ring-inset:inset}.focus\\:ring-primary-focus:focus{--tw-ring-color:var(--fl-color-primary-focus)}.focus\\:ring-red-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(220 38 38/var(--tw-ring-opacity))}.focus\\:ring-green-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.focus\\:ring-blue-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity))}.focus\\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus\\:ring-offset-red-50:focus{--tw-ring-offset-color:#fef2f2}.focus\\:ring-offset-green-50:focus{--tw-ring-offset-color:#f0fdf4}.focus\\:ring-offset-blue-50:focus{--tw-ring-offset-color:#eff6ff}.focus-visible\\:outline-primary-hover:focus-visible{outline-color:var(--fl-color-primary-hover)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-gray-300:disabled{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.disabled\\:text-gray-400:disabled{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.group:hover .group-hover\\:text-primary-hover{color:var(--fl-color-primary-hover)}@media (min-width:640px){.sm\\:mb-12{margin-bottom:3rem}.sm\\:py-2{padding-bottom:.5rem;padding-top:.5rem}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}",""]);const w=$},645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var u=this[s][0];null!=u&&(a[u]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);r&&a[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},667:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},81:e=>{e.exports=function(e){return e[1]}},274:(e,t,n)=>{var r,o,i,a,s,u,l={},c=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(e,t){for(var n in t)e[n]=t[n];return e}function $(e){var t=e.parentNode;t&&t.removeChild(e)}function p(e,t,n){var o,i,a,s={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return h(e,s,o,i,null)}function h(e,t,n,r,a){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++i:a};return null==a&&null!=o.vnode&&o.vnode(s),s}function m(e){return e.children}function g(e,t){this.props=e,this.context=t}function w(e,t){if(null==t)return e.__?w(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?w(e):null}function y(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return y(e)}}function b(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!v.__r++||s!==o.debounceRendering)&&((s=o.debounceRendering)||setTimeout)(v)}function v(){for(var e;v.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=d({},o)).__v=o.__v+1,A(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?w(o):i,o.__h),N(n,o),o.__e!=i&&y(o)))}))}function x(e,t,n,r,o,i,a,s,u,f){var d,$,p,g,y,b,v,x=r&&r.__k||c,S=x.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(g=n.__k[d]=null==(g=t[d])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?h(null,g,null,null,g):Array.isArray(g)?h(m,{children:g},null,null,null):g.__b>0?h(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(p=x[d])||p&&g.key==p.key&&g.type===p.type)x[d]=void 0;else for($=0;$<S;$++){if((p=x[$])&&g.key==p.key&&g.type===p.type){x[$]=void 0;break}p=null}A(e,g,p=p||l,o,i,a,s,u,f),y=g.__e,($=g.ref)&&p.ref!=$&&(v||(v=[]),p.ref&&v.push(p.ref,null,g),v.push($,g.__c||y,g)),null!=y?(null==b&&(b=y),"function"==typeof g.type&&g.__k===p.__k?g.__d=u=_(g,u,e):u=C(e,g,p,x,y,u),"function"==typeof n.type&&(n.__d=u)):u&&p.__e==u&&u.parentNode!=e&&(u=w(p))}for(n.__e=b,d=S;d--;)null!=x[d]&&("function"==typeof n.type&&null!=x[d].__e&&x[d].__e==n.__d&&(n.__d=w(r,d+1)),D(x[d],x[d]));if(v)for(d=0;d<v.length;d++)M(v[d],v[++d],v[++d])}function _(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?_(r,t,n):C(n,r,r,o,r.__e,t));return t}function S(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){S(e,t)})):t.push(e)),t}function C(e,t,n,r,o,i){var a,s,u;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(s=i,u=0;(s=s.nextSibling)&&u<r.length;u+=2)if(s==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function T(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||f.test(t)?n:n+"px"}function E(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||T(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||T(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?I:k,i):e.removeEventListener(t,i?I:k,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function k(e){this.l[e.type+!1](o.event?o.event(e):e)}function I(e){this.l[e.type+!0](o.event?o.event(e):e)}function A(e,t,n,r,i,a,s,u,l){var c,f,$,p,h,w,y,b,v,_,S,C,T,E=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,u=t.__e=n.__e,t.__h=null,a=[u]),(c=o.__b)&&c(t);try{e:if("function"==typeof E){if(b=t.props,v=(c=E.contextType)&&r[c.__c],_=c?v?v.props.value:c.__:r,n.__c?y=(f=t.__c=n.__c).__=f.__E:("prototype"in E&&E.prototype.render?t.__c=f=new E(b,_):(t.__c=f=new g(b,_),f.constructor=E,f.render=O),v&&v.sub(f),f.props=b,f.state||(f.state={}),f.context=_,f.__n=r,$=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=E.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=d({},f.__s)),d(f.__s,E.getDerivedStateFromProps(b,f.__s))),p=f.props,h=f.state,$)null==E.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==E.getDerivedStateFromProps&&b!==p&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(b,_),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(b,f.__s,_)||t.__v===n.__v){f.props=b,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&s.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(b,f.__s,_),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(p,h,w)}))}if(f.context=_,f.props=b,f.__v=t,f.__P=e,S=o.__r,C=0,"prototype"in E&&E.prototype.render)f.state=f.__s,f.__d=!1,S&&S(t),c=f.render(f.props,f.state,f.context);else do{f.__d=!1,S&&S(t),c=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++C<25);f.state=f.__s,null!=f.getChildContext&&(r=d(d({},r),f.getChildContext())),$||null==f.getSnapshotBeforeUpdate||(w=f.getSnapshotBeforeUpdate(p,h)),T=null!=c&&c.type===m&&null==c.key?c.props.children:c,x(e,Array.isArray(T)?T:[T],t,n,r,i,a,s,u,l),f.base=t.__e,t.__h=null,f.__h.length&&s.push(f),y&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=R(n.__e,t,n,r,i,a,s,l);(c=o.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=u,t.__h=!!l,a[a.indexOf(u)]=null),o.__e(e,t,n)}}function N(e,t){o.__c&&o.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function R(e,t,n,o,i,a,s,u){var c,f,d,p=n.props,h=t.props,m=t.type,g=0;if("svg"===m&&(i=!0),null!=a)for(;g<a.length;g++)if((c=a[g])&&"setAttribute"in c==!!m&&(m?c.localName===m:3===c.nodeType)){e=c,a[g]=null;break}if(null==e){if(null===m)return document.createTextNode(h);e=i?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,h.is&&h),a=null,u=!1}if(null===m)p===h||u&&e.data===h||(e.data=h);else{if(a=a&&r.call(e.childNodes),f=(p=n.props||l).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,!u){if(null!=a)for(p={},g=0;g<e.attributes.length;g++)p[e.attributes[g].name]=e.attributes[g].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||E(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||E(e,i,t[i],n[i],r)}(e,h,p,i,u),d)t.__k=[];else if(g=t.props.children,x(e,Array.isArray(g)?g:[g],t,n,o,i&&"foreignObject"!==m,a,s,a?a[0]:n.__k&&w(n,0),u),null!=a)for(g=a.length;g--;)null!=a[g]&&$(a[g]);u||("value"in h&&void 0!==(g=h.value)&&(g!==e.value||"progress"===m&&!g||"option"===m&&g!==p.value)&&E(e,"value",g,p.value,!1),"checked"in h&&void 0!==(g=h.checked)&&g!==e.checked&&E(e,"checked",g,p.checked,!1))}return e}function M(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function D(e,t,n){var r,i;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||M(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&D(r[i],t,"function"!=typeof e.type);n||null==e.__e||$(e.__e),e.__e=e.__d=void 0}function O(e,t,n){return this.constructor(e,n)}function P(e,t,n){var i,a,s;o.__&&o.__(e,t),a=(i="function"==typeof n)?null:n&&n.__k||t.__k,s=[],A(t,e=(!i&&n||t).__k=p(m,null,[e]),a||l,l,void 0!==t.ownerSVGElement,!i&&n?[n]:a?null:t.firstChild?r.call(t.childNodes):null,s,!i&&n?n:a?a.__e:t.firstChild,i),N(s,e)}function G(e,t){P(e,t,G)}function B(e,t,n){var o,i,a,s=d({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:s[a]=t[a];return arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),h(e.type,s,o||e.key,i||e.ref,null)}function F(e,t){var n={__c:t="__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(b)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=c.slice,o={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},i=0,g.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof e&&(e=e(d({},n),this.props)),e&&d(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),b(this))},g.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),b(this))},g.prototype.render=m,a=[],v.__r=0,u=0;var L,V,H,U,j=0,z=[],W=[],Y=o.__b,K=o.__r,q=o.diffed,Z=o.__c,J=o.unmount;function X(e,t){o.__h&&o.__h(V,e,j||t),j=0;var n=V.__H||(V.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:W}),n.__[e]}function Q(e){return j=1,ee(de,e)}function ee(e,t,n){var r=X(L++,2);return r.t=e,r.__c||(r.__=[n?n(t):de(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=V),r.__}function te(e,t){var n=X(L++,3);!o.__s&&fe(n.__H,t)&&(n.__=e,n.u=t,V.__H.__h.push(n))}function ne(e,t){var n=X(L++,4);!o.__s&&fe(n.__H,t)&&(n.__=e,n.u=t,V.__h.push(n))}function re(e){return j=5,oe((function(){return{current:e}}),[])}function oe(e,t){var n=X(L++,7);return fe(n.__H,t)?(n.__V=e(),n.u=t,n.__h=e,n.__V):n.__}function ie(e,t){return j=8,oe((function(){return e}),t)}function ae(e){var t=V.context[e.__c],n=X(L++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(V)),t.props.value):e.__}function se(){for(var e;e=z.shift();)if(e.__P)try{e.__H.__h.forEach(le),e.__H.__h.forEach(ce),e.__H.__h=[]}catch(t){e.__H.__h=[],o.__e(t,e.__v)}}o.__b=function(e){V=null,Y&&Y(e)},o.__r=function(e){K&&K(e),L=0;var t=(V=e.__c).__H;t&&(H===V?(t.__h=[],V.__h=[],t.__.forEach((function(e){e.__V=W,e.u=void 0}))):(t.__h.forEach(le),t.__h.forEach(ce),t.__h=[])),H=V},o.diffed=function(e){q&&q(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==z.push(t)&&U===o.requestAnimationFrame||((U=o.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),ue&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ue&&(t=requestAnimationFrame(n))})(se)),t.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.__V!==W&&(e.__=e.__V),e.u=void 0,e.__V=W}))),H=V=null},o.__c=function(e,t){t.some((function(e){try{e.__h.forEach(le),e.__h=e.__h.filter((function(e){return!e.__||ce(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],o.__e(n,e.__v)}})),Z&&Z(e,t)},o.unmount=function(e){J&&J(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{le(e)}catch(e){t=e}})),t&&o.__e(t,n.__v))};var ue="function"==typeof requestAnimationFrame;function le(e){var t=V,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),V=t}function ce(e){var t=V;e.__c=e.__(),V=t}function fe(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function de(e,t){return"function"==typeof t?t(e):t}function $e(e,t){for(var n in t)e[n]=t[n];return e}function pe(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function he(e){this.props=e}(he.prototype=new g).isPureReactComponent=!0,he.prototype.shouldComponentUpdate=function(e,t){return pe(this.props,e)||pe(this.state,t)};var me=o.__b;o.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),me&&me(e)};var ge="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function we(e){function t(t){var n=$e({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=ge,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ye=function(e,t){return null==e?null:S(S(e).map(t))},be={map:ye,forEach:ye,count:function(e){return e?S(e).length:0},only:function(e){var t=S(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:S},ve=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 null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);ve(e,t,n,r)};var xe=o.unmount;function _e(){this.__u=0,this.t=null,this.__b=null}function Se(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ce(){this.u=null,this.o=null}o.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),xe&&xe(e)},(_e.prototype=new g).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=Se(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},u=!0===t.__h;r.__u++||u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},_e.prototype.componentWillUnmount=function(){this.t=[]},_e.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]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=$e({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&p(m,null,e.fallback);return o&&(o.__h=null),[p(m,null,t.__a?null:e.children),o]};var Te=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!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 Ee(e){return this.getChildContext=function(){return e.context},e.children}function ke(e){var t=this,n=e.i;t.componentWillUnmount=function(){P(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),P(p(Ee,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(Ce.prototype=new g).__a=function(e){var t=this,n=Se(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Te(t,e,r)):o()};n?n(i):i()}},Ce.prototype.render=function(e){this.u=null,this.o=new Map;var t=S(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Ce.prototype.componentDidUpdate=Ce.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Te(e,n,t)}))};var Ie="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ae=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|shape|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ne="undefined"!=typeof document,Re=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};g.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(g.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Me=o.event;function De(){}function Oe(){return this.cancelBubble}function Pe(){return this.defaultPrevented}o.event=function(e){return Me&&(e=Me(e)),e.persist=De,e.isPropagationStopped=Oe,e.isDefaultPrevented=Pe,e.nativeEvent=e};var Ge,Be={configurable:!0,get:function(){return this.class}},Fe=o.vnode;o.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in r={},n){var a=n[i];Ne&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in n&&null==a||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===a?a="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!Re(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&Ae.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===a&&(a=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=a)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=S(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=S(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(Be.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Be))}e.$$typeof=Ie,Fe&&Fe(e)};var Le=o.__r;o.__r=function(e){Le&&Le(e),Ge=e.__c};var Ve={ReactCurrentDispatcher:{current:{readContext:function(e){return Ge.__n[e.__c].props.value}}}};function He(e){return!!e&&e.$$typeof===Ie}function Ue(e){return He(e)?B.apply(null,arguments):e}function je(e){e()}const ze={useState:Q,useReducer:ee,useEffect:te,useLayoutEffect:ne,useInsertionEffect:ne,useTransition:function(){return[!1,je]},useDeferredValue:function(e){return e},useSyncExternalStore:function(e,t){var n=Q(t),r=n[0],o=n[1];return te((function(){return e((function(){o(t())}))}),[e,t]),r},startTransition:je,useRef:re,useImperativeHandle:function(e,t,n){j=6,ne((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))},useMemo:oe,useCallback:ie,useContext:ae,useDebugValue:function(e,t){o.useDebugValue&&o.useDebugValue(t?t(e):e)},version:"17.0.2",Children:be,render:function(e,t,n){return null==t.__k&&(t.textContent=""),P(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return G(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(P(null,e),!0)},createPortal:function(e,t){var n=p(ke,{__v:e,i:t});return n.containerInfo=t,n},createElement:p,createContext:F,createFactory:function(e){return p.bind(null,e)},cloneElement:Ue,createRef:function(){return{current:null}},Fragment:m,isValidElement:He,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:g,PureComponent:he,memo:function(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:pe(this.props,e)}function r(t){return this.shouldComponentUpdate=n,p(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:we,flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:m,Suspense:_e,SuspenseList:Ce,lazy:function(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return p(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ve};function We(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Ye(e){return null!=e&&"function"==typeof e.Dispose}function Ke(e){Ye(e)&&e.Dispose()}function qe(e,t){var n,r;return(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===(null===(r=Object.getPrototypeOf(t))||void 0===r?void 0:r.constructor)}class Ze{constructor(e){this.iter=e}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this.iter.next();return this.current=e.value,!e.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function Je(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new Ze(e[Symbol.iterator]())}function Xe(e){return{[Symbol.iterator](){return this},next(){const t=e["System.Collections.IEnumerator.MoveNext"]();return{done:!t,value:t?e["System.Collections.IEnumerator.get_Current"]():void 0}}}}class Qe{constructor(e){this.factory=e,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function et(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function tt(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function nt(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class rt{static id(e){return rt.idMap.has(e)||rt.idMap.set(e,++rt.count),rt.idMap.get(e)}}function ot(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function it(e){return 2654435761*e|0}function at(e){return 0===e.length?0:e.reduce(((e,t)=>(e<<5)+e^t))}function st(e){var t;if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return it(e);case"string":return ot(e);default:if(function(e){return"function"==typeof e.GetHashCode}(e))return e.GetHashCode();if(We(e))return function(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=st(e[r]);return at(n)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if((null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===Object){const t=Object.values(e).map((e=>st(e)));return at(t)}return it(rt.id(e))}}function ut(e,t,n){if(null==e)return null==t;if(null==t)return!1;if(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 lt(e,t){return ut(e,t,ct)}function ct(e,t){var n;return e===t||(null==e?null==t:null!=t&&"object"==typeof e&&(function(e){return"function"==typeof e.Equals}(e)?e.Equals(t):We(e)?We(t)&&lt(e,t):e instanceof Date?t instanceof Date&&0===ft(e,t):(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===Object&&function(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]||!ct(e[n[o]],t[r[o]]))return!1;return!0}(e,t)))}function ft(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+tt(e),r=t.getTime()+tt(t)),n===r?0:n<r?-1:1}function dt(e,t){return e===t?0:e<t?-1:1}function $t(e,t){return function(e,t,n){if(null==e)return null==t?0:1;if(null==t)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]),0!==o)return o;return 0}(e,t,pt)}function pt(e,t){var n;return e===t?0:null==e?null==t?0:-1:null==t?1:"object"!=typeof e?e<t?-1:1:function(e){return"function"==typeof e.CompareTo}(e)?e.CompareTo(t):We(e)?We(t)?$t(e,t):-1:e instanceof Date?t instanceof Date?ft(e,t):-1:(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===Object?function(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 a=n[o];if(a!==r[o])return a<r[o]?-1:1;if(i=pt(e[a],t[a]),0!==i)return i}return 0}(e,t):-1}function ht(e,t,n){return e(t,n)>0?t:n}function mt(e){const t={};for(const n of e)t[n[0]]=n[1];return t}rt.idMap=new WeakMap,rt.count=0;const gt=Symbol("curried");function wt(e,t){if(null==t||t.length>1)return t;const n=(...n)=>{let r=t;for(let t=0;t<e;t++)r=r(n[t]);return r};return n[gt]=t,n}function yt(e,t,n){return r=>1===t?n(...e.concat([r])):yt(e.concat([r]),t-1,n)}function bt(e,t,n){if(null!=t){if(gt in t){t=t[gt];for(let e=0;e<n.length;e++)t=t(n[e]);return t}return yt(n,e,t)}}function vt(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+et(~~(e/36e5),2)+":"+et(n,2)}function xt(e,t){const n=e.toISOString();return"first"===t?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function _t(e,t,n){return t.replace(/(\w)\1*/g,(t=>{let r=Number.NaN;switch(t.substring(0,1)){case"y":const o=n?e.getUTCFullYear():e.getFullYear();r=t.length<4?o%100:o;break;case"M":r=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":r=n?e.getUTCDate():e.getDate();break;case"H":r=n?e.getUTCHours():e.getHours();break;case"h":const i=n?e.getUTCHours():e.getHours();r=i>12?i%12:i;break;case"m":r=n?e.getUTCMinutes():e.getMinutes();break;case"s":r=n?e.getUTCSeconds():e.getSeconds();break;case"f":r=n?e.getUTCMilliseconds():e.getMilliseconds()}return Number.isNaN(r)?t:r<10&&t.length>1?"0"+r:""+r}))}function St(e,t,n){return null!=e.offset?function(e,t){var n,r,o;const i=new Date(e.getTime()+(null!==(n=e.offset)&&void 0!==n?n:0));if("string"!=typeof t)return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+vt(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return _t(i,t,!0);switch(t){case"D":case"d":return xt(i,"first");case"T":case"t":return xt(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+vt(t)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}(e,t):function(e,t){const n=1===e.kind;if("string"!=typeof t)return n?e.toUTCString():e.toLocaleString();if(1!==t.length)return _t(e,t,n);switch(t){case"D":case"d":return n?xt(e,"first"):e.toLocaleDateString();case"T":case"t":return n?xt(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,t){if(t)return e.toISOString();{const t=null==e.kind||2===e.kind;return et(e.getFullYear(),4)+"-"+et(e.getMonth()+1,2)+"-"+et(e.getDate(),2)+"T"+et(e.getHours(),2)+":"+et(e.getMinutes(),2)+":"+et(e.getSeconds(),2)+"."+et(e.getMilliseconds(),3)+(t?vt(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}(e,t)}function Ct(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function Tt(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}null!=e&&""!==e.trim()||t(),10===e.length&&"-"===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(null!=o){let e,t=0;if(null!=o[2]){const e=o[2].split(":");t=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=o[3]&&"PM"===o[3].toUpperCase()&&(t+=720)}if(null!=o[4]){if(null!=o[1])e=new Date(o[1]+" UTC");else{const t=new Date;e=new Date(t.getUTCFullYear()+"/"+(t.getUTCMonth()+1)+"/"+t.getUTCDate())}if("Z"===o[4])r="Z";else{let e=60*parseInt(o[5],10)+parseInt(o[6]||"0",10);"-"===o[4][0]&&(e*=-1),r=e,t-=60*e}}else if(null!=o[1])e=new Date(o[1]);else{const t=new Date;e=new Date(t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate())}n=new Date(e.getTime()+1e3*t),n=new Date(n.getTime()+6e4*(n.getTimezoneOffset()-e.getTimezoneOffset()))}else t();isNaN(n.getTime())&&t()}return[n,r]}function Et(e,t){try{return t.contents=function(e,t=!1){const[n,r]=Tt(e),o=null!=r?t&&"Z"===r?1:2:0;return Ct(n.getTime(),o)}(e),!0}catch(e){return!1}}const kt=Symbol("numeric");function It(e){return"number"==typeof e||(null==e?void 0:e[kt])}function At(e,t){return"number"==typeof e?e*t:e[kt]().multiply(t)}function Nt(e,t){return"number"==typeof e?e.toFixed(t):e[kt]().toFixed(t)}function Rt(e,t){return"number"==typeof e?e.toPrecision(t):e[kt]().toPrecision(t)}function Mt(e,t){return"number"==typeof e?e.toExponential(t):e[kt]().toExponential(t)}function Dt(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[kt]().toHex()}function Ot(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Pt(e,t,n=0){if(null==t)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(;null!=(o=e.exec(t));)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}function Gt(e,t=0){var n,r;if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return function(e){let t=0,n="[";for(const r of e){if(0===t)n+=Gt(r);else{if(100===t){n+="; ...";break}n+="; "+Gt(r)}t++}return n+"]"}(e);{const o=null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor;return o===Object&&t<10?"{ "+Object.entries(e).map((([e,n])=>e+" = "+Gt(n,t+1))).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class Bt{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){return function(e,t){if(0===t.length)return e;{let n="",r=!0;return 1===t.length?(n=Gt(t[0]),r=n.indexOf(" ")>=0):n=t.map((e=>Gt(e))).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>st(e)));return e.splice(0,0,it(this.tag)),at(e)}Equals(e){return this===e||!!qe(this,e)&&this.tag===e.tag&&lt(this.fields,e.fields)}CompareTo(e){return this===e?0:qe(this,e)?this.tag===e.tag?$t(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class Ft{toJSON(){return function(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}(this)}toString(){return function(e){return"{ "+Object.entries(e).map((([e,t])=>e+" = "+Gt(t))).join("\n ")+" }"}(this)}GetHashCode(){return function(e){const t=Object.values(e).map((e=>st(e)));return at(t)}(this)}Equals(e){return function(e,t){if(e===t)return!0;if(qe(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!ct(e[n[r]],t[n[r]]))return!1;return!0}return!1}(this,e)}CompareTo(e){return function(e,t){if(e===t)return 0;if(qe(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=pt(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class Lt{constructor(e,t){"function"==typeof t?(this.getter=e,this.setter=t):(this.getter=()=>e,this.setter=t=>{e=t})}get contents(){return this.getter()}set contents(e){this.setter(e)}}class Vt{constructor(e){this.message=e}}function Ht(e){return function(e){return e instanceof Vt||e instanceof Error}(e)?e:new Error(String(e))}const Ut=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,jt=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function zt(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function Wt(e){return{input:e,cont:(t=e,e=>{Ut.lastIndex=0;const n=[],r=[];let o=0,i=Ut.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=Ut.lastIndex,Ut.lastIndex-=1,i=Ut.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),Jt(e,n,r))})};var t}function Yt(e,t){return"string"==typeof t?e(t):t.cont(e)}function Kt(e){return Yt((e=>e),e)}function qt(e){return Yt((e=>{throw new Error(e)}),e)}function Zt(e,t,n,r,o){let i="";if(t=t||"",o=o||"",It(e))switch("x"!==o.toLowerCase()&&(zt(e,0)?(e=At(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=Nt(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?Rt(e,r):Rt(e);break;case"e":case"E":e=null!=r?Mt(e,r):Mt(e);break;case"x":e=Dt(e);break;case"X":e=Dt(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?St(e):Gt(e);if(n="number"==typeof n?n:parseInt(n,10),isNaN(n))e=i+e;else{const r=t.indexOf("0")>=0,o=t.indexOf("-")>=0,a=o||!r?" ":"0";e="0"===a?i+(e=Qt(e,n-i.length,a,o)):Qt(i+e,n,a,o)}return e}function Jt(e,t,n,r="",o=-1){return(...i)=>{let a=r;const s=t.slice(),u=n.slice();for(const e of i){const[,,t,n,r,i]=u[0];let l=n;if(o>=0)l=o,o=-1;else if("*"===l){if(e<0)throw new Error("Non-negative number required");o=e;continue}a+=s[0],a+=Zt(e,t,l,r,i),s.splice(0,1),u.splice(0,1)}return 0===u.length?(a+=s[0],e(a)):Jt(e,s,u,a,o)}}function Xt(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Qt(e,t,n,r){n=n||" ",t-=e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function en(e,t,n){return Qt(e,t,n)}function tn(e,t,n,r){if(r="number"==typeof r?r:0,(n="number"==typeof n?n:void 0)&&n<0)throw new Error("Count cannot be less than zero");if(0===n)return[];const o=1==(1&r),i=2==(2&r);t=(t=t||[]).filter((e=>e)).map(Ot),t=t.length>0?t:["\\s"];const a=[],s=new RegExp(t.join("|"),"g");let u=!0,l=0;do{const t=s.exec(e);if(null===t){const t=i?e.substring(l).trim():e.substring(l);(!o||t.length>0)&&a.push(t),u=!1}else{const r=i?e.substring(l,t.index).trim():e.substring(l,t.index);(!o||r.length>0)&&(null!=n&&a.length+1===n?(a.push(i?e.substring(l).trim():e.substring(l)),u=!1):a.push(r)),l=s.lastIndex}}while(u);return a}function nn(e,t){return t.split("").filter((t=>e(t))).join("")}var rn=n(118);const on="Collection was empty.";class an{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return st(this.value)}Equals(e){return null!=e&&ct(this.value,e instanceof an?e.value:e)}CompareTo(e){return null==e?1:pt(this.value,e instanceof an?e.value:e)}}function sn(e){return null==e||e instanceof an?new an(e):e}function un(e){if(null==e)throw new Error("Option has no value");return e instanceof an?e.value:e}function ln(e){return null==e?void 0:e}function cn(e){return null==e?null:un(e)}function fn(e){return null==e?[]:[un(e)]}function dn(e,t){return null!=e?un(e):t}function $n(e,t){return null!=t?sn(e(un(t))):void 0}function pn(e,t){return null!=t?e(un(t)):void 0}function hn(e,t){return"function"==typeof e?new e(t):new Array(t)}function mn(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function gn(e,t,n){const r=0|t.length,o=hn(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function wn(e,t,n){return function(e,t,n,r,o){const i=0|dn(n,0),a=0|dn($n((e=>i+e),r),e.length);return 0|(n=>{for(;;){const r=n;if(r>=a)return-1;if(o.Equals(t,e[r]))return 0|r;n=r+1}})(i)}(t,e,void 0,void 0,n)>=0}function yn(e,t,n){return n.reduce(e,t)}function bn(e,t,n,r){return function(e,t,n,r){let o=r;t.length!==n.length&&function(){throw new Error("Arrays had different lengths")}();const i=0|t.length;for(let r=1;r<=i;r++)o=e(0,t[i-r],n[i-r],o);return o}(((t,n,r,o)=>e(n,r,o)),t,n,r)}class vn extends Ft{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+Xt("; ",this)+"]"}Equals(e){return this===e||((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],a=o[1];if(ct(n.head,r.head)){e=i,t=a;continue e}return!1}return!1}return null==o[1]}})(this,e)}GetHashCode(){return 0|((e,t,n)=>{for(;;){const r=e,o=t,i=n,a=i.tail;if(null==a)return 0|o;{const s=a;if(r>18)return 0|o;e=r+1,t=(o<<1)+st(i.head)+631*r,n=s}}})(0,0,this)}toJSON(e){return Array.from(this)}CompareTo(e){return 0|((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],a=o[1],s=0|pt(n.head,r.head);if(0===s){e=i,t=a;continue e}return 0|s}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return new xn(this)}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Je(this)}}class xn{constructor(e){this.xs=e,this.it=this.xs,this.current=null}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this,t=e.it.tail;if(null!=t){const n=t;return e.current=e.it.head,e.it=n,!0}return!1}"System.Collections.IEnumerator.Reset"(){const e=this;e.it=e.xs,e.current=null}Dispose(){}}function _n(){return new vn(null,void 0)}function Sn(e,t){return new vn(e,t)}function Cn(e){return null==e.tail}function Tn(e){return 0|((e,t)=>{for(;;){const n=e,r=t.tail;if(null==r)return 0|n;e=n+1,t=r}})(0,e)}function En(e){if(null!=e.tail)return e.head;throw new Error(on+"\\nParameter name: list")}function kn(e){const t=e.tail;if(null!=t)return t;throw new Error(on+"\\nParameter name: list")}function In(){return _n()}function An(e,t){return Sn(e,t)}function Nn(e){return Sn(e,_n())}function Rn(e){return Cn(e)}function Mn(e){return En(e)}function Dn(e){return kn(e)}function On(e){const t=0|Tn(e),n=mn(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(Cn(o))break;n[r]=En(o),e=r+1,t=kn(o)}})(0,e),n}function Pn(e,t,n){let r=t,o=n;for(;!Cn(o);)r=e(r,En(o)),o=kn(o);return r}function Gn(e){return Pn(((e,t)=>Sn(t,e)),_n(),e)}function Bn(e,t){Pn(((t,n)=>{e(n)}),void 0,t)}function Fn(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=Sn(e[t],n);return n}function Ln(e){return Fn(e,_n())}function Vn(e,t){return Pn(((e,t)=>Sn(t,e)),t,Gn(e))}function Hn(e,t){const n=_n(),r=Pn(((t,n)=>{const r=new vn(e(n),void 0);return t.tail=r,r}),n,t),o=_n();return r.tail=o,kn(n)}function Un(e,t){return function(e,t){const n=On(t);return n.sort(e),Ln(n)}(((e,n)=>t.Compare(e,n)),e)}const jn=ze,zn=Gt(rn.Z),Wn=p("svg",mt(Ln([["className",Xt(" ",["h-5","w-5","text-gray-400"])],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],["fill","currentColor"],(()=>{const e=Nn(p("path",{d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"}));return["children",jn.Children.toArray(Array.from(e))]})()]))),Yn=p("svg",mt(Ln([["className",Xt(" ",["h-5","w-5","text-gray-400"])],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],["fill","currentColor"],(()=>{const e=Nn(p("path",{d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","fill-rule":"evenodd",clipRule:"evenodd"}));return["children",jn.Children.toArray(Array.from(e))]})()]))),Kn=p("svg",mt(Ln([["className",Xt(" ",["h-6","w-6","text-gray-400","group-hover:text-primary-hover"])],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],["fill","none"],["stroke","currentColor"],["strokeWidth",2],(()=>{const e=Nn(p("path",{d:"M18 12H6",strokeLinejoin:"round",strokeLinecap:"round"}));return["children",jn.Children.toArray(Array.from(e))]})()]))),qn=p("svg",mt(Ln([["className",Xt(" ",["h-6","w-6","text-gray-400","group-hover:text-primary-hover"])],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],["fill","none"],["stroke","currentColor"],["strokeWidth",2],(()=>{const e=Nn(p("path",{d:"M12 6v6m0 0v6m0-6h6m-6 0H6",strokeLinejoin:"round",strokeLinecap:"round"}));return["children",jn.Children.toArray(Array.from(e))]})()]))),Zn=p("svg",mt(Ln([["className",Xt(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=Nn(p("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}));return["children",jn.Children.toArray(Array.from(e))]})()]))),Jn=p("svg",mt(Ln([["className",Xt(" ",["h-5","w-5","text-gray-400"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=Nn(p("path",{"fill-rule":"evenodd",d:"M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z",clipRule:"evenodd"}));return["children",jn.Children.toArray(Array.from(e))]})()]))),Xn=p("svg",mt(Ln([["className",Xt(" ",["h-5","w-5","text-amber-400","flex-none"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=Nn(p("path",{"fill-rule":"evenodd",d:"M8.25706 3.09858C9.02167 1.73928 10.9788 1.73928 11.7434 3.09858L17.3237 13.0191C18.0736 14.3523 17.1102 15.9996 15.5805 15.9996H4.4199C2.89025 15.9996 1.92682 14.3523 2.67675 13.0191L8.25706 3.09858ZM11.0001 12.9998C11.0001 13.552 10.5524 13.9998 10.0001 13.9998C9.44784 13.9998 9.00012 13.552 9.00012 12.9998C9.00012 12.4475 9.44784 11.9998 10.0001 11.9998C10.5524 11.9998 11.0001 12.4475 11.0001 12.9998ZM10.0001 4.99976C9.44784 4.99976 9.00012 5.44747 9.00012 5.99976V8.99976C9.00012 9.55204 9.44784 9.99976 10.0001 9.99976C10.5524 9.99976 11.0001 9.55204 11.0001 8.99976V5.99976C11.0001 5.44747 10.5524 4.99976 10.0001 4.99976Z",clipRule:"evenodd"}));return["children",jn.Children.toArray(Array.from(e))]})()]))),Qn=Ln(["flex","flex-col","align-center"]),er=(e,t)=>{te((()=>{const t=e();return()=>{t.Dispose()}}),t)},tr=e=>{ne((()=>{const t=e();return()=>{t.Dispose()}}))};function nr(e){return{Dispose(){e()}}}function rr(e){return jn.useState(e)}function or(e,t){er(e,t)}function ir(e,t){er((t=>(e(),nr((()=>{})))),t)}function ar(e){return jn.useRef(e)}function sr(e){const t=ar(e),n=function(e,n){const r=dn([],[]);return jn.useCallback((e=>t.current(e)),r)}();var r;return r=()=>{t.current=e},tr((e=>(r(),nr((()=>{}))))),n}function ur(e){return jn.useState(e)}class lr{constructor(e=!1){this._id=0,this._cancelled=e,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,e]of this._listeners)e()}}addListener(e){const t=this._id;return this._listeners.set(this._id++,e),t}removeListener(e){return this._listeners.delete(e)}register(e,t){const n=this,r=this.addListener(null==t?e:()=>e(t));return{Dispose(){n.removeListener(r)}}}Dispose(){}}class cr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,cr.prototype)}}class fr{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>fr.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function dr(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new cr);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack((()=>{try{e(t)}catch(e){t.onError(Ht(e))}}));else try{e(t)}catch(e){t.onError(Ht(e))}}}const $r=new class{Bind(e,t){return function(e,t){return dr((n=>{e({onSuccess:e=>{try{t(e)(n)}catch(e){n.onError(Ht(e))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})}))}(e,t)}Combine(e,t){return this.Bind(e,(()=>t))}Delay(e){return dr((t=>e()(t)))}For(e,t){const n=e[Symbol.iterator]();let r=n.next();return this.While((()=>!r.done),this.Delay((()=>{const e=t(r.value);return r=n.next(),e})))}Return(e){return function(e){return dr((t=>t.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,t){return dr((n=>{e({onSuccess:e=>{t(),n.onSuccess(e)},onError:e=>{t(),n.onError(e)},onCancel:e=>{t(),n.onCancel(e)},cancelToken:n.cancelToken,trampoline:n.trampoline})}))}TryWith(e,t){return dr((n=>{e({onSuccess:n.onSuccess,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline,onError:e=>{try{t(e)(n)}catch(e){n.onError(Ht(e))}}})}))}Using(e,t){return this.TryFinally(t(e),(()=>e.Dispose()))}While(e,t){return e()?this.Bind(t,(()=>this.While(e,t))):this.Return(void 0)}Zero(){return dr((e=>e.onSuccess(void 0)))}};function pr(e){}function hr(e){const t=new lr("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout((()=>{t.cancel()}),e),t}function mr(e){e.cancel()}const gr=new lr;function wr(e){return dr((t=>{let n;const r=setTimeout((()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)}),e);n=t.cancelToken.addListener((()=>{clearTimeout(r),t.onCancel(new cr)}))}))}function yr(e,t){return function(e,t){return function(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new fr;e({onSuccess:t||pr,onError:n||pr,onCancel:r||pr,cancelToken:o||gr,trampoline:i})}(e,t)}(e,t)}class br extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function vr(e,t){const n=ar(hr());return or((()=>nr((()=>{mr(n.current)}))),[]),sr((r=>{var o;null!=(o=n.current)&&o.isCancelled||yr($r.Delay((()=>$r.TryWith($r.Delay((()=>(t(new br(1)),$r.Bind(e(r),(e=>(t(new br(2,e)),$r.Zero())))))),(e=>(t(new br(3,e)),$r.Zero()))))),n.current)}))}class xr extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function _r(e,t){return 0===t.tag?new xr(0,e(t.fields[0])):new xr(1,t.fields[0])}function Sr(e,t){return 0===t.tag?e(t.fields[0]):new xr(1,t.fields[0])}function Cr(){return e=pt,{Compare:(t,n)=>e(t,n)};var e}const Tr="Enumeration already finished.",Er="Enumeration has not started. Call MoveNext.",kr="The input sequence has an insufficient number of elements.";function Ir(){throw new Error(Er)}function Ar(){throw new Error(Tr)}class Nr{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=Je(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=Gt(n["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(t+="; ..."),t+"]"}finally{Ke(n)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class Rr{constructor(e,t,n){this.current=e,this.next=t,this.dispose=n}"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"(){!function(){throw new Error("Reset is not supported on this enumerator.")}()}Dispose(){this.dispose()}}function Mr(e,t,n){return new Rr(e,t,n)}function Dr(e,t,n){let r,o=!1,i=sn(e());const a=()=>{if(null!=i){const e=un(i);try{n(e)}finally{i=void 0}}},s=()=>{try{a()}finally{r=void 0}};return Mr((()=>(o||Ir(),null!=r?un(r):Ar())),(()=>{if(o||(o=!0),null!=i){const e=un(i);let n;try{n=t(e)}catch(e){throw s(),e}return null!=n?(r=n,!0):(s(),!1)}return!1}),a)}function Or(e){return function(e){return new Nr(e)}(e)}function Pr(e){return t="source",null==e&&function(e){throw new Error(e)}(t),Je(e);var t}function Gr(e){return Or((()=>Je(e())))}function Br(e){return Or((()=>function(e){let t,n,r,o=!1,i=!1;const a=()=>{if(i=!0,null!=n){const e=n;try{Ke(e)}finally{n=void 0}}if(null!=t){const e=t;try{Ke(e)}finally{t=void 0}}};return Mr((()=>(o?i&&Ar():Ir(),null!=r?un(r):Ar())),(()=>{let s;if(o||(o=!0),i)return!1;{let o;for(;null==o;){const i=[t,n];if(null!=i[0])if(null!=i[1]){const e=i[1];if(e["System.Collections.IEnumerator.MoveNext"]())r=sn(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{Ke(e)}finally{n=void 0}}else{const e=i[0];e["System.Collections.IEnumerator.MoveNext"]()?(s=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=Je(s)):(a(),o=!1)}else t=Je(e)}return un(o)}}),(()=>{i||a()}))}(e)))}function Fr(){return Gr((()=>new Array(0)))}function Lr(e){return Gr((()=>function(e,t){const n=hn(void 0,1);return n[0]=e,n}(e)))}function Vr(e){return We(e)?Ln(e):e instanceof vn?e:function(e){let t,n;if(We(e))return Ln(e);if(e instanceof vn)return e;{const r=_n();let o=r;const i=Je(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();t=o,n=new vn(e,void 0),t.tail=n,o=n}}finally{Ke(i)}const a=o,s=_n();return a.tail=s,kn(r)}}(e)}function Hr(e,t,n){return Or((()=>Dr(e,t,n)))}function Ur(e,t,n){return Or((()=>{let r=-1;return Dr(e,(e=>(r=r+1|0,t(r,e))),n)}))}function jr(e,t){return Br([e,t])}function zr(e,t,n){const r=Pr(t);try{let t=!1;for(;!t&&r["System.Collections.IEnumerator.MoveNext"]();)t=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}finally{Ke(r)}}function Wr(e,t){return function(e,t){return Hr((()=>Pr(t)),(t=>{let n;for(;null==n&&t["System.Collections.IEnumerator.MoveNext"]();)n=e(t["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}),(e=>{Ke(e)}))}((t=>e(t)?sn(t):void 0),t)}function Yr(e,t,n){const r=Pr(n);try{let n=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)n=e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}finally{Ke(r)}}function Kr(e,t){Yr(((t,n)=>{e(n)}),void 0,t)}function qr(e,t){return Hr((()=>Pr(t)),(t=>t["System.Collections.IEnumerator.MoveNext"]()?sn(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{Ke(e)}))}class Zr{constructor(e,t){this.cleanup=e,this.res=t}Dispose(){this.cleanup()}GetEnumerator(){return getEnumerator(this.res)}[Symbol.iterator](){return toIterator(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return getEnumerator(this.res)}}function Jr(e,t){return Or((()=>{const n=Pr(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(kr+"\\nParameter name: source");return function(e,t){return Mr((()=>t["System.Collections.Generic.IEnumerator`1.get_Current"]()),(()=>t["System.Collections.IEnumerator.MoveNext"]()),(()=>{try{Ke(t)}finally{e()}}))}((()=>{}),n)}catch(e){throw Ke(n),e}}))}function Xr(e,t){return Gr((()=>Br(qr(e,t))))}function Qr(e,t){return null==t?new xr(1,e):new xr(0,un(t))}function eo(e,t,n){return ct(n,e)?new xr(0,void 0):new xr(1,t)}class to extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Success","Failure","Info"]}}function no(e){switch(e.tag){case 0:return"text-green-700";case 2:return"text-blue-700";default:return"text-red-700"}}function ro(e){switch(e.tag){case 0:return"bg-green-50";case 2:return"bg-blue-50";default:return"bg-red-50"}}function oo(e){return e.tag,e.fields[0]}function io(e){let t,n,r,o;const i=e.hideAlert,a=e.alert,s=hr();var u;return u=()=>{!function(e,t){yr($r.Delay((()=>$r.Bind(wr(5e3),(()=>(e(),$r.Zero()))))),t)}(i,s)},ir(u,[]),p("div",mt(Ln([["className",Xt(" ",["rounded-md","p-4","my-4",ro(a)])],["data-testid","alert"],(t=[p("div",mt(Ln([["className",Xt(" ",["flex"])],(n=[p("p",{className:Xt(" ",["text-sm","pr-2",no(a)]),children:oo(a)}),p("div",mt(Ln([["className",Xt(" ",["ml-auto"])],(r=[p("div",mt(Ln([["className",Xt(" ",["-mx-1.5","-my-1.5"])],(o=[p("button",{type:"button",className:Xt(" ",Vr(Gr((()=>jr(Lr("inline-flex"),Gr((()=>jr(Lr("rounded-md"),Gr((()=>jr(Lr("p-1.5"),Gr((()=>jr(Lr("focus:outline-none"),Gr((()=>jr(Lr("focus:ring-2"),Gr((()=>jr(Lr("focus:ring-offset-2"),Gr((()=>function(e){switch(e.tag){case 0:return Ln(["bg-green-50","text-green-500","hover:bg-green-100","focus:ring-offset-green-50","focus:ring-green-600"]);case 2:return Ln(["bg-blue-50","text-blue-500","hover:bg-blue-100","focus:ring-offset-blue-50","focus:ring-blue-600"]);default:return Ln(["bg-red-50","text-red-500","hover:bg-red-100","focus:ring-offset-red-50","focus:ring-red-600"])}}(a))))))))))))))))))))))),children:jn.Children.toArray([Zn]),onClick:e=>{mr(s),i()}})],["children",jn.Children.toArray(Array.from(o))])])))],["children",jn.Children.toArray(Array.from(r))])])))],["children",jn.Children.toArray(Array.from(n))])])))],["children",jn.Children.toArray(Array.from(t))])])))}function ao(e,t){return t}function so(e,t,n){return _r(n,t)}new class{constructor(){}};function uo(e,t){const n=function(e,t){return new xr(0,t)}(0,t);return $r.Return(n)}function lo(e,t){return $r.Delay(t)}new class{constructor(){}};class co extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class fo extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class $o extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class po extends Ft{constructor(e,t,n,r,o,i,a,s){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=a,this.content=s}}class ho extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class mo extends Ft{constructor(e,t,n,r,o){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseHeaders=r,this.content=o}}class go{constructor(e,t){this.k=e,this.v=t}}function wo(e,t){return new go(e,t)}function yo(e){return e.k}function bo(e){return e.v}class vo extends go{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function xo(e,t,n,r,o){return new vo(e,t,n,r,o)}function _o(e){return e.left}function So(e){return e.right}function Co(e){return e.h}function To(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof vo){e=To(n+1,_o(r)),t=So(r);continue e}return n+1|0}return 0|n}}function Eo(e){return To(0,e)}function ko(e,t,n,r){let o,i;o=null!=e?e instanceof vo?Co(e):1:0,i=null!=r?r instanceof vo?Co(r):1:0;const a=0|(o<i?i:o);return 0===a?wo(t,n):xo(t,n,e,r,a+1)}function Io(e,t,n,r){let o,i,a,s,u,l;if(u=null!=e?e instanceof vo?Co(e):1:0,l=null!=r?r instanceof vo?Co(r):1:0,l>u+2){const a=un(r);if(a instanceof vo){if(o=_o(a),(null!=o?(i=o,i instanceof vo?Co(i):1):0)>u+1){const r=un(_o(a));if(r instanceof vo)return ko(ko(e,t,n,_o(r)),yo(r),bo(r),ko(So(r),yo(a),bo(a),So(a)));throw new Error("internal error: Map.rebalance")}return ko(ko(e,t,n,_o(a)),yo(a),bo(a),So(a))}throw new Error("internal error: Map.rebalance")}if(u>l+2){const o=un(e);if(o instanceof vo){if(a=So(o),(null!=a?(s=a,s instanceof vo?Co(s):1):0)>l+1){const e=un(So(o));if(e instanceof vo)return ko(ko(_o(o),yo(o),bo(o),_o(e)),yo(e),bo(e),ko(So(e),t,n,r));throw new Error("internal error: Map.rebalance")}return ko(_o(o),yo(o),bo(o),ko(So(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return ko(e,t,n,r)}function Ao(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,yo(o));return o instanceof vo?i<0?Io(Ao(e,t,n,_o(o)),yo(o),bo(o),So(o)):0===i?xo(t,n,_o(o),So(o),Co(o)):Io(_o(o),yo(o),bo(o),Ao(e,t,n,So(o))):i<0?xo(t,n,void 0,r,2):0===i?wo(t,n):xo(t,n,r,void 0,2)}return wo(t,n)}function No(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=n,a=0|r.Compare(o,yo(i));if(0===a)return sn(bo(i));if(i instanceof vo){e=r,t=o,n=a<0?_o(i):So(i);continue e}return}return}}function Ro(e,t,n,r,o){return t(n,r)?Ao(e,n,r,o):o}function Mo(e,t,n,r){e:for(;;){const o=e,i=t,a=r;if(null!=n){const s=n;if(s instanceof vo){const u=Mo(o,i,_o(s),a),l=Ro(o,i,yo(s),bo(s),u);e=o,t=i,n=So(s),r=l;continue e}return Ro(o,i,yo(s),bo(s),a)}return a}}function Do(e,t,n){return Mo(e,t,n,void 0)}function Oo(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof vo){Oo(n,_o(r)),n(yo(r),bo(r)),e=n,t=So(r);continue e}n(yo(r),bo(r))}break}}function Po(e,t){Oo(e,t)}function Go(e,t){if(null!=t){const n=t;if(n instanceof vo){const t=Go(e,_o(n)),r=e(yo(n),bo(n)),o=Go(e,So(n));return xo(yo(n),r,t,o,Co(n))}return wo(yo(n),e(yo(n),bo(n)))}}function Bo(e,t){return Go(e,t)}function Fo(e,t){let n;for(let r=0;r<=t.length-1;r++){const o=t[r];n=Ao(e,o[0],o[1],n)}return n}class Lo extends Ft{constructor(e,t){super(),this.stack=e,this.started=t}}function Vo(e){e:for(;;){const t=e;if(Rn(t))return In();{const n=Dn(t),r=Mn(t);if(null!=r){const o=r;if(o instanceof vo){e=Fn([_o(o),wo(yo(o),bo(o)),So(o)],n);continue e}return t}e=n;continue e}}}function Ho(e){return new Lo(Vo(Nn(e)),!1)}function Uo(e){if(e.started){const t=e.stack;if(Rn(t))return function(){throw new Error("enumeration already finished")}();if(null!=Mn(t)){const e=Mn(t);if(e instanceof vo)throw new Error("Please report error: Map iterator, unexpected stack for current");return[yo(e),bo(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function jo(e){let t=Ho(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Uo(t),"System.Collections.IEnumerator.get_Current":()=>Uo(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Rn(t))return!1;if(null!=Mn(t)){if(Mn(t)instanceof vo)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Vo(Dn(t)),!Rn(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!Rn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Ho(e)},Dispose(){}}}class zo{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){const t=(e,t)=>(e<<1)+t+631;let n=0;const r=Je(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|t(n,st(e[0])),n=0|t(n,st(e[1]))}}finally{Ke(r)}return 0|n}(this)}Equals(e){if(!(e instanceof zo))return!1;{const t=Je(this);try{const n=Je(e);try{const e=()=>{const r=t["System.Collections.IEnumerator.MoveNext"]();if(r===n["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=t["System.Collections.Generic.IEnumerator`1.get_Current"](),o=n["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!ct(r[0],o[0])||!ct(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{Ke(n)}}finally{Ke(t)}}}toString(){return"map ["+Xt("; ",qr((e=>function(e,...t){return"object"==typeof e&&t.length>0&&(e=t[0],t.shift()),e.replace(jt,((e,n,r,o,i,a)=>{if(n<0||n>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let s=t[n];if(It(s))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":s=Nt(s,i=null!=i?i:2);break;case"g":case"G":s=null!=i?Rt(s,i):Rt(s);break;case"e":case"E":s=null!=i?Mt(s,i):Mt(s);break;case"p":case"P":i=null!=i?i:2,s=Nt(At(s,100),i)+" %";break;case"d":case"D":s=null!=i?en(String(s),i,"0"):String(s);break;case"x":case"X":s=null!=i?en(Dt(s),i,"0"):Dt(s),"X"===o&&(s=s.toUpperCase());break;default:if(a){let e="";s=a.replace(/([0#,]+)(\.[0#]+)?/,((t,n,r)=>{zt(s,0)&&(s=At(s,-1),e="-"),r=null==r?"":r.substring(1),s=Nt(s,Math.max(r.length,0));let[o,i]=s.split(".");i||(i=""),o=en(o,n.replace(/,/g,"").replace(/^#+/,"").length,"0");const a=r.replace(/#+$/,"").length;if(a>i.length?i=function(e,t,n){return Qt(e,t,"0",!0)}(i,a):a<i.length&&(i=i.substring(0,a)+i.substring(a).replace(/0+$/,"")),n.indexOf(",")>0){const e=o.length%3,t=Math.floor(o.length/3);let n=e>0?o.substr(0,e)+(t>0?",":""):"";for(let r=0;r<t;r++)n+=o.substr(e+3*r,3)+(r<t-1?",":"");o=n}return i.length>0?o+"."+i:o})),s=e+s}}else s=s instanceof Date?St(s,a||o):Gt(s);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(s=Qt(String(s),Math.abs(r)," ",r<0)),s}))}("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return jo(this.tree)}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return jo(this.tree)}CompareTo(e){const t=this;if(e instanceof zo)return 0|function(e,t,n){const r=Pr(t);try{const t=Pr(n);try{let n=0,o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]();for(;0===n&&o&&i;)n=0|e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),t["System.Collections.Generic.IEnumerator`1.get_Current"]()),0===n&&(o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]());return 0|(0!==n?n:o?1:i?-1:0)}finally{Ke(t)}}finally{Ke(r)}}(((e,n)=>{const r=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==r?r:pt(e[1],n[1]))}),t,e);throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(e){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"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Zo(this,e[0])&&ct(Ko(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){!function(e,t,n){let r=n;Po(((e,n)=>{t[r]=[e,n],r=r+1|0}),e)}(this.tree,e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|qo(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|qo(this)}get size(){return 0|qo(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return qr((e=>[e[0],e[1]]),this)}get(e){return Ko(this,e)}has(e){return Zo(this,e)}keys(){return qr((e=>e[0]),this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return qr((e=>e[1]),this)}forEach(e,t){const n=this;Kr((t=>{e(t[1],t[0],n)}),n)}}function Wo(e,t){return new zo(e,t)}function Yo(e){const t=Cr();return Wo(t,function(e,t){if(We(t))return Fo(e,t);if(t instanceof vn)return function(e,t){return Pn(((t,n)=>Ao(e,n[0],n[1],t)),void 0,t)}(e,t);{const n=Je(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const a=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=Ao(r,a[0],a[1],o),n=i}}}(e,void 0,n)}finally{Ke(n)}}}(t,e))}function Ko(e,t){return function(e,t,n){const r=No(e,t,n);if(null==r)throw new Error;return un(r)}(e.comparer,t,e.tree)}function qo(e){return Eo(e.tree)}function Zo(e,t){return function(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=n,a=0|r.Compare(o,yo(i));if(i instanceof vo){if(a<0){e=r,t=o,n=_o(i);continue e}if(0===a)return!0;e=r,t=o,n=So(i);continue e}return 0===a}return!1}}(e.comparer,t,e.tree)}function Jo(e,t,n){return function(e,t,n){return Wo(e.comparer,Ao(e.comparer,t,n,e.tree))}(n,e,t)}function Xo(e,t){return function(e,t){return No(e.comparer,t,e.tree)}(t,e)}function Qo(e,t){return function(e,t){return Wo(e.comparer,Bo(t,e.tree))}(t,e)}function ei(e){return Yo(e)}function ti(){return zo.empty}zo.empty=Wo(Cr(),void 0);const ni=new po("",new co(0),In(),!1,void 0,void 0,void 0,new $o(0));function ri(e,t){return"string"!=typeof(n=t)||0===n.length?[t]:tn(t,[e],null,0);var n}function oi(e){return new po(e,ni.method,ni.headers,ni.withCredentials,ni.overridenMimeType,ni.overridenResponseType,ni.timeout,ni.content)}function ii(e,t){return new po(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function ai(e,t){return new po(t.url,t.method,Vn(t.headers,Nn(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function si(e){return function(e){return dr((t=>e([t.onSuccess,t.onError,t.onCancel])))}((t=>{const n=new XMLHttpRequest;n.open(function(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"}}(e.method),e.url),n.onreadystatechange=()=>{let e,r,o,i,a,s;4===n.readyState&&t[0]((r=n.responseType,e=""===r||"text"===r?n.responseText:"",o=0|n.status,i=n.responseType,s=n.responseType,a=""===s||"text"===s?new ho(0,n.responseText):new ho("arraybuffer"===s?2:"blob"===s?1:3,n.response),new mo(o,e,i,function(e){const t=Cr();return Wo(t,Fo(t,e))}(function(e,t,n){const r=[];for(let n=0;n<=t.length-1;n++){const o=e(t[n]);if(null!=o){const e=un(o);r.push(e)}}return r}((e=>{const t=Ln(ri(":",e));return Rn(t)?void 0:[Mn(t).toLocaleLowerCase(),Xt(":",Dn(t)).trim()]}),ri("\r\n",n.getAllResponseHeaders()))),a)))};const r=Je(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(e.fields[0],e.fields[1])}}finally{Ke(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(null==o);else{const e=o;n.overrideMimeType(e)}const i=e.overridenResponseType;null==i||(1===i.tag?n.responseType="blob":2===i.tag?n.responseType="arraybuffer":n.responseType="text");const a=e.timeout;if(null==a);else{const e=0|a;n.timeout=0|e}const s=[e.method,e.content];0===s[0].tag?n.send(sn(void 0)):1===s[1].tag||3===s[1].tag||2===s[1].tag?n.send(sn(s[1].fields[0])):n.send(sn(void 0))}))}new mo(0,"","",ti(),new ho(0,""));class ui extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class li extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class ci{constructor(){this.cache=new Map([])}}function fi(){return new ci}function di(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function $i(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=function(e,t=0){if(0!=(-284&t))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=1&t?"i":"",n+=2&t?"m":"",n+=16&t?"s":"",new RegExp(e,n)}(t,null!=r?r:0),t=n,r=void 0}if("function"==typeof n)return r=null==r?-1:r,t.substring(0,o)+t.substring(o).replace(e,(function(){let e=arguments[0];if(r){r--;const t=[],o=arguments.length,i="string"!=typeof arguments[o-1];let a=i?o-3:o-2;for(let e=0;e<a;e++)t.push(arguments[e]);t.index=arguments[a++],t.input=arguments[a++],i&&(t.groups=arguments[a]),e=n(t)}return e}));if(n=n.replace(/\$0/g,(e=>"$&")).replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const a=t.substring(o),s=Pt(e,a),u=Pt.length>r?(i=s[r-1],a.substring(0,i.index+i[0].length)):a;return t.substring(0,o)+u.replace(e,n)+t.substring(o+u.length)}return t.replace(e,n)}(di(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return di(t)}}fi(),fi();const pi=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,hi=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,mi=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function gi(e,t){try{return t.contents=function(e){function t(e){return e.replace(hi,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(pi.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+Ot(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(hi.test(n))return t(n);if(mi.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}(e),!0}catch(e){return!1}}var wi;function yi(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 bi(e,t,n,r,o){const i=function(e,t,n){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;n=n||function(e,t){if(t&wi.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}}(e,t);const i=function(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.")}}(n);if(!i.test(o))return function(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}(r,n)}return null}(e,t,o);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[t,o]=yi(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[a,s]=yi(n,r);if(e>=a&&e<=s)return e}}throw new Error("Input string was not in a correct format.")}function vi(e,t,n,r,o){try{return o.contents=bi(e,t,n,r),!0}catch(e){return!1}}function xi(e,t){!function(e){if(null!=e&&0!==e){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.")}}(t);const n=new Date(e);return n.offset=null!=t?t:-6e4*(new Date).getTimezoneOffset(),n}function _i(e,t){try{return t.contents=function(e){const[t,n]=Tt(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n?0:6e4*n;return xi(t.getTime(),r)}(e),!0}catch(e){return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(wi||(wi={}));var Si=null;try{Si=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(c){}function Ci(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function Ti(e){return!0===(e&&e.__isLong__)}Ci.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},Ci.prototype.Equals=function(e){return Qi(this,e)},Ci.prototype.CompareTo=function(e){return ra(this,e)},Ci.prototype.toString=function(e){return qi(this,e)},Ci.prototype.toJSON=function(){return qi(this)},Ci.prototype[kt]=function(){const e=this;return{multiply:t=>sa(e,t),toPrecision:t=>String(e)+(0).toPrecision(t).substr(1),toExponential:t=>String(e)+(0).toExponential(t).substr(1),toFixed:t=>String(e)+(0).toFixed(t).substr(1),toHex:()=>{return qi(e.unsigned?e:function(e,t,n){return n?function(e,t){return new Ci(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)}(e,t):function(e,t){return new Ci(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}(e,t)}((t=e,n?function(e){var t=e.high,n=e.low;return[255&n,n>>>8&255,n>>>16&255,n>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]}(t):function(e){var t=e.high,n=e.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,n>>>24,n>>>16&255,n>>>8&255,255&n]}(t)),!0),16);var t,n}}},Ci.prototype.__isLong__,Object.defineProperty(Ci.prototype,"__isLong__",{value:!0});var Ei={},ki={};function Ii(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=ki[e])?r:(n=Ni(e,(0|e)<0?-1:0,!0),o&&(ki[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=Ei[e])?r:(n=Ni(e,e<0?-1:0,!1),o&&(Ei[e]=n),n)}function Ai(e,t){if(isNaN(e))return t?Li:Fi;if(t){if(e<0)return Li;if(e>=Pi)return zi}else{if(e<=-Gi)return Wi;if(e+1>=Gi)return ji}return e<0?oa(Ai(-e,t)):Ni(e%Oi|0,e/Oi|0,t)}function Ni(e,t,n){return new Ci(e,t,n)}var Ri=Math.pow;function Mi(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Fi;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||36<n)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(0===r)return oa(Mi(e.substring(1),t,n));for(var o=Ai(Ri(n,8)),i=Fi,a=0;a<e.length;a+=8){var s=Math.min(8,e.length-a),u=parseInt(e.substring(a,a+s),n);i=ia(s<8?sa(i,Ai(Ri(n,s))):i=sa(i,o),Ai(u))}return i.unsigned=t,i}function Di(e,t){return"number"==typeof e?Ai(e,t):"string"==typeof e?Mi(e,t):Ni(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var Oi=4294967296,Pi=Oi*Oi,Gi=Pi/2,Bi=Ii(1<<24),Fi=Ii(0),Li=Ii(0,!0),Vi=Ii(1),Hi=Ii(1,!0),Ui=Ii(-1),ji=Ni(-1,2147483647,!1),zi=Ni(-1,-1,!0),Wi=Ni(0,-2147483648,!1);function Yi(e){return e.unsigned?e.low>>>0:e.low}function Ki(e){return e.unsigned?(e.high>>>0)*Oi+(e.low>>>0):e.high*Oi+(e.low>>>0)}function qi(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(Zi(e))return"0";if(Ji(e)){if(Qi(e,Wi)){var n=Ai(t),r=ua(e,n),o=aa(sa(r,n),e);return qi(r,t)+Yi(o).toString(t)}return"-"+qi(oa(e),t)}for(var i=Ai(Ri(t,6),e.unsigned),a=e,s="";;){var u=ua(a,i),l=(Yi(aa(a,sa(u,i)))>>>0).toString(t);if(Zi(a=u))return l+s;for(;l.length<6;)l="0"+l;s=""+l+s}}function Zi(e){return 0===e.high&&0===e.low}function Ji(e){return!e.unsigned&&e.high<0}function Xi(e){return 1==(1&e.low)}function Qi(e,t){return Ti(t)||(t=Di(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&e.high===t.high&&e.low===t.low}function ea(e,t){return ra(e,t)<0}function ta(e,t){return ra(e,t)>0}function na(e,t){return ra(e,t)>=0}function ra(e,t){if(Ti(t)||(t=Di(t)),Qi(e,t))return 0;var n=Ji(e),r=Ji(t);return n&&!r?-1:!n&&r?1:e.unsigned?t.high>>>0>e.high>>>0||t.high===e.high&&t.low>>>0>e.low>>>0?-1:1:Ji(aa(e,t))?-1:1}function oa(e){return!e.unsigned&&Qi(e,Wi)?Wi:ia(function(e){return Ni(~e.low,~e.high,e.unsigned)}(e),Vi)}function ia(e,t){Ti(t)||(t=Di(t));var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,a=t.high>>>16,s=65535&t.high,u=t.low>>>16,l=0,c=0,f=0,d=0;return f+=(d+=i+(65535&t.low))>>>16,c+=(f+=o+u)>>>16,l+=(c+=r+s)>>>16,l+=n+a,Ni((f&=65535)<<16|(d&=65535),(l&=65535)<<16|(c&=65535),e.unsigned)}function aa(e,t){return Ti(t)||(t=Di(t)),ia(e,oa(t))}function sa(e,t){if(Zi(e))return e.unsigned?Li:Fi;if(Ti(t)||(t=Di(t)),Si)return Ni(Si.mul(e.low,e.high,t.low,t.high),Si.get_high(),e.unsigned);if(Zi(t))return e.unsigned?Li:Fi;if(Qi(e,Wi))return Xi(t)?Wi:Fi;if(Qi(t,Wi))return Xi(e)?Wi:Fi;if(Ji(e))return Ji(t)?sa(oa(e),oa(t)):oa(sa(oa(e),t));if(Ji(t))return oa(sa(e,oa(t)));if(ea(e,Bi)&&ea(t,Bi))return Ai(Ki(e)*Ki(t),e.unsigned);var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,a=t.high>>>16,s=65535&t.high,u=t.low>>>16,l=65535&t.low,c=0,f=0,d=0,$=0;return d+=($+=i*l)>>>16,f+=(d+=o*l)>>>16,d&=65535,f+=(d+=i*u)>>>16,c+=(f+=r*l)>>>16,f&=65535,c+=(f+=o*u)>>>16,f&=65535,c+=(f+=i*s)>>>16,c+=n*l+r*u+o*s+i*a,Ni((d&=65535)<<16|($&=65535),(c&=65535)<<16|(f&=65535),e.unsigned)}function ua(e,t){if(Ti(t)||(t=Di(t)),Zi(t))throw Error("division by zero");var n,r,o;if(Si)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?Ni((e.unsigned?Si.div_u:Si.div_s)(e.low,e.high,t.low,t.high),Si.get_high(),e.unsigned):e;if(Zi(e))return e.unsigned?Li:Fi;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:Ni(e.low,e.high,!0)}(t)),ta(t,e))return Li;if(ta(t,function(e,t){if(Ti(t)&&(t=Yi(t)),0==(t&=63))return e;var n=e.high;return t<32?Ni(e.low>>>t|n<<32-t,n>>>t,e.unsigned):Ni(32===t?n:n>>>t-32,0,e.unsigned)}(e,1)))return Hi;o=Li}else{if(Qi(e,Wi))return Qi(t,Vi)||Qi(t,Ui)?Wi:Qi(t,Wi)?Vi:Qi(n=function(e,t){return Ti(t)&&(t=Yi(t)),0==(t&=63)?e:t<32?Ni(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):Ni(0,e.low<<t-32,e.unsigned)}(ua(function(e,t){return Ti(t)&&(t=Yi(t)),0==(t&=63)?e:t<32?Ni(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):Ni(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}(e,1),t),1),Fi)?Ji(t)?Vi:Ui:o=ia(n,ua(r=aa(e,sa(t,n)),t));if(Qi(t,Wi))return e.unsigned?Li:Fi;if(Ji(e))return Ji(t)?ua(oa(e),oa(t)):oa(ua(oa(e),t));if(Ji(t))return oa(ua(e,oa(t)));o=Fi}for(r=e;na(r,t);){n=Math.max(1,Math.floor(Ki(r)/Ki(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),a=i<=48?1:Ri(2,i-48),s=Ai(n),u=sa(s,t);Ji(u)||ta(u,r);)u=sa(s=Ai(n-=a,e.unsigned),t);Zi(s)&&(s=Vi),o=ia(o,s),r=aa(r,u)}return o}const la=ua,ca=Ki;function fa(e){return e<0?Math.ceil(e):Math.floor(e)}function da(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return ca(la(arguments[0],1e4));case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0}return 864e5*e+36e5*t+6e4*n+1e3*r+o}function $a(e,t){try{return t.contents=function(e){const t=e.search("\\."),n=e.search("\\:");if(-1===t&&-1===n){const t=parseInt(e,0);if(isNaN(t))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return da(t,0,0,0,0)}if(n>0){const t=/^(-?)((\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(null!=t&&null!=t[4]&&null!=t[5]){let n=0,r=0,o=0;const i=null!=t[1]&&"-"===t[1]?-1:1,a=+t[4],s=+t[5];if(null!=t[3]&&(n=+t[3]),null!=t[7]&&(o=+t[7]),null!=t[8])switch(t[8].length){case 1:r=100*+t[8];break;case 2:r=10*+t[8];break;case 3:r=+t[8];break;case 4:r=+t[8]/10;break;case 5:r=+t[8]/100;break;case 6:r=+t[8]/1e3;break;case 7:r=+t[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return i*da(n,a,s,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class pa{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class ha{constructor(e,t,n,r,o,i,a){this.fullname=e,this.generics=t,this.construct=n,this.parent=r,this.fields=o,this.cases=i,this.enumCases=a}toString(){return Aa(this)}GetHashCode(){return ga(this)}Equals(e){return wa(this,e)}}function ma(e){return null!=e.generics?e.generics:[]}function ga(e){return at([ot(e.fullname),...ma(e).map(ga)])}function wa(e,t){return""===e.fullname?""===t.fullname&&ut(La(e),La(t),(([e,t],[n,r])=>e===n&&wa(t,r))):e.fullname===t.fullname&&ut(ma(e),ma(t),wa)}function ya(e,t,n,r){return new ha(e,t,n,void 0,r)}function ba(...e){return new ha("",void 0,void 0,void 0,(()=>e))}function va(e,t,n,r){const o=new ha(e,t,n,void 0,void 0,(()=>{const e=n.prototype.cases();return r().map(((t,n)=>new pa(o,n,e[n],t)))}));return o}function xa(e){return new ha("Microsoft.FSharp.Core.FSharpOption`1",[e])}function _a(e){return new ha("Microsoft.FSharp.Collections.FSharpList`1",[e])}function Sa(e,t,n){return new ha(e,[t],void 0,void 0,void 0,void 0,n)}const Ca=new ha("System.Object"),Ta=(new ha("Microsoft.FSharp.Core.Unit"),new ha("System.Char"),new ha("System.String")),Ea=new ha("System.Boolean"),ka=(new ha("System.SByte"),new ha("System.Byte"),new ha("System.Int16"),new ha("System.UInt16"),new ha("System.Int32"));function Ia(e){if(Array.isArray(e))return e[0];if(e instanceof ha){const t=Ra(e);if(null!=t)return Ia(t)+"[]";{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}return e.name}function Aa(e){const t=Ra(e);return null!=t?Aa(t)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>Aa(e))).join(",")+"]"}function Na(e){return null!=Ra(e)}function Ra(e){var t;return"[]"===e.fullname&&1===(null===(t=e.generics)||void 0===t?void 0:t.length)?e.generics[0]:void 0}function Ma(e){return null!=e.generics&&e.generics.length>0}function Da(e){return null!=e.enumCases&&e.enumCases.length>0}function Oa(e){return null==e.generics?e:new ha(e.fullname,e.generics.map((()=>Ca)))}function Pa(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function Ga(e){if(Da(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function Ba(e,t){const n=parseInt(t,10);return function(e,t){if(null!=e.enumCases){if("string"==typeof t){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}throw new Error(`${e.fullname} is not an enum type`)}(e,isNaN(n)?t:n)[1]}function Fa(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function La(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Va(e){if(ja(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Ha(e){return e instanceof ha?null!=e.cases:e instanceof Bt}function Ua(e){return e instanceof ha?null!=e.fields:e instanceof Ft}function ja(e){return e.fullname.startsWith("System.Tuple")}function za(e){return null==e.fields?[]:e.fields}function Wa(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);return null!=e.declaringType.construct?new e.declaringType.construct(e.tag,...t):{}}new ha("System.UInt32"),new ha("System.Single"),new ha("System.Double"),new ha("System.Decimal");class Ya{constructor(e){this.k=e}}function Ka(e){return new Ya(e)}function qa(e){return e.k}class Za extends Ya{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function Ja(e,t,n,r){return new Za(e,t,n,r)}function Xa(e){return e.left}function Qa(e){return e.right}function es(e){return e.h}function ts(e,t){e:for(;;){const n=t;if(null!=e){const r=e;if(r instanceof Za){e=Xa(r),t=ts(Qa(r),n+1);continue e}return n+1|0}return 0|n}}function ns(e){return ts(e,0)}function rs(e,t,n){let r,o;r=null!=e?e instanceof Za?es(e):1:0,o=null!=n?n instanceof Za?es(n):1:0;const i=0|(r<o?o:r);return 0===i?Ka(t):Ja(t,e,n,i+1)}function os(e,t,n){let r,o,i,a,s,u;if(s=null!=e?e instanceof Za?es(e):1:0,u=null!=n?n instanceof Za?es(n):1:0,u>s+2){const i=un(n);if(i instanceof Za){if(r=Xa(i),(null!=r?(o=r,o instanceof Za?es(o):1):0)>s+1){const n=un(Xa(i));if(n instanceof Za)return rs(rs(e,t,Xa(n)),qa(n),rs(Qa(n),qa(i),Qa(i)));throw new Error("internal error: Set.rebalance")}return rs(rs(e,t,Xa(i)),qa(i),Qa(i))}throw new Error("internal error: Set.rebalance")}if(s>u+2){const r=un(e);if(r instanceof Za){if(i=Qa(r),(null!=i?(a=i,a instanceof Za?es(a):1):0)>u+1){const e=un(Qa(r));if(e instanceof Za)return rs(rs(Xa(r),qa(r),Xa(e)),qa(e),rs(Qa(e),t,n));throw new Error("internal error: Set.rebalance")}return rs(Xa(r),qa(r),rs(Qa(r),t,n))}throw new Error("internal error: Set.rebalance")}return rs(e,t,n)}function is(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,qa(r));if(r instanceof Za)return o<0?os(is(e,t,Xa(r)),qa(r),Qa(r)):0===o?n:os(Xa(r),qa(r),is(e,t,Qa(r)));{const o=0|e.Compare(t,qa(r));return o<0?Ja(t,void 0,n,2):0===o?n:Ja(t,n,void 0,2)}}return Ka(t)}function as(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=n,a=0|r.Compare(o,qa(i));if(i instanceof Za){if(a<0){e=r,t=o,n=Xa(i);continue e}if(0===a)return!0;e=r,t=o,n=Qa(i);continue e}return 0===a}return!1}}function ss(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof Za){ss(n,Xa(r)),n(qa(r)),e=n,t=Qa(r);continue e}n(qa(r))}break}}class us extends Ft{constructor(e,t){super(),this.stack=e,this.started=t}}function ls(e){e:for(;;){const t=e;if(Rn(t))return In();{const n=Mn(t),r=Dn(t);if(null!=n){const o=n;if(o instanceof Za){e=Fn([Xa(o),Ka(qa(o)),Qa(o)],r);continue e}return t}e=r;continue e}}}function cs(e){return new us(ls(Nn(e)),!1)}function fs(e){if(e.started){const t=e.stack;if(Rn(t))return function(){throw new Error("Enumeration already started")}();if(null!=Mn(t))return qa(Mn(t));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function ds(e){let t=cs(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>fs(t),"System.Collections.IEnumerator.get_Current":()=>fs(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Rn(t))return!1;if(null!=Mn(t)){if(Mn(t)instanceof Za)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=ls(Dn(t)),!Rn(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!Rn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=cs(e)},Dispose(){}}}function $s(e,t,n){return null==t?null==n?0:-1:null==n?1:0|function(e,t,n){e:for(;;){const r=e,o=t,i=n,a=[o,i];if(Rn(a[0]))return Rn(a[1])?0:-1;if(Rn(a[1]))return 1;if(null!=Mn(a[1]))if(null!=Mn(a[0])){const s=Mn(a[0]),u=Mn(a[1]);if(s instanceof Za)if(null==Xa(s)){if(!(u instanceof Za)){const o=0|r.Compare(qa(s),qa(u));if(0!==o)return 0|o;e=r,t=An(Qa(s),Dn(a[0])),n=An(void 0,Dn(a[1]));continue e}if(null==Xa(u)){const o=0|r.Compare(qa(s),qa(u));if(0!==o)return 0|o;e=r,t=An(Qa(s),Dn(a[0])),n=An(Qa(u),Dn(a[1]));continue e}{const a=[o,i];let s,u,l,c,f;switch(Rn(a[0])?Rn(a[1])?s=2:null!=Mn(a[1])?(s=1,c=Dn(a[1]),f=Mn(a[1])):s=2:null!=Mn(a[0])?(s=0,u=Dn(a[0]),l=Mn(a[0])):Rn(a[1])?s=2:null!=Mn(a[1])?(s=1,c=Dn(a[1]),f=Mn(a[1])):s=2,s){case 0:if(l instanceof Za){e=r,t=Fn([Xa(l),Ja(qa(l),void 0,Qa(l),0)],u),n=i;continue e}e=r,t=Fn([void 0,Ka(qa(l))],u),n=i;continue e;case 1:if(f instanceof Za){e=r,t=o,n=Fn([Xa(f),Ja(qa(f),void 0,Qa(f),0)],c);continue e}e=r,t=o,n=Fn([void 0,Ka(qa(f))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const a=[o,i];let s,u,l,c,f;switch(Rn(a[0])?Rn(a[1])?s=2:null!=Mn(a[1])?(s=1,c=Dn(a[1]),f=Mn(a[1])):s=2:null!=Mn(a[0])?(s=0,u=Dn(a[0]),l=Mn(a[0])):Rn(a[1])?s=2:null!=Mn(a[1])?(s=1,c=Dn(a[1]),f=Mn(a[1])):s=2,s){case 0:if(l instanceof Za){e=r,t=Fn([Xa(l),Ja(qa(l),void 0,Qa(l),0)],u),n=i;continue e}e=r,t=Fn([void 0,Ka(qa(l))],u),n=i;continue e;case 1:if(f instanceof Za){e=r,t=o,n=Fn([Xa(f),Ja(qa(f),void 0,Qa(f),0)],c);continue e}e=r,t=o,n=Fn([void 0,Ka(qa(f))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(u instanceof Za)){const o=0|r.Compare(qa(s),qa(u));if(0!==o)return 0|o;e=r,t=Dn(a[0]),n=Dn(a[1]);continue e}if(null==Xa(u)){const o=0|r.Compare(qa(s),qa(u));if(0!==o)return 0|o;e=r,t=An(void 0,Dn(a[0])),n=An(Qa(u),Dn(a[1]));continue e}{const a=[o,i];let s,u,l,c,f;switch(Rn(a[0])?Rn(a[1])?s=2:null!=Mn(a[1])?(s=1,c=Dn(a[1]),f=Mn(a[1])):s=2:null!=Mn(a[0])?(s=0,u=Dn(a[0]),l=Mn(a[0])):Rn(a[1])?s=2:null!=Mn(a[1])?(s=1,c=Dn(a[1]),f=Mn(a[1])):s=2,s){case 0:if(l instanceof Za){e=r,t=Fn([Xa(l),Ja(qa(l),void 0,Qa(l),0)],u),n=i;continue e}e=r,t=Fn([void 0,Ka(qa(l))],u),n=i;continue e;case 1:if(f instanceof Za){e=r,t=o,n=Fn([Xa(f),Ja(qa(f),void 0,Qa(f),0)],c);continue e}e=r,t=o,n=Fn([void 0,Ka(qa(f))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{Mn(a[1]);const s=[o,i];let u,l,c,f,d;switch(Rn(s[0])?Rn(s[1])?u=2:null!=Mn(s[1])?(u=1,f=Dn(s[1]),d=Mn(s[1])):u=2:null!=Mn(s[0])?(u=0,l=Dn(s[0]),c=Mn(s[0])):Rn(s[1])?u=2:null!=Mn(s[1])?(u=1,f=Dn(s[1]),d=Mn(s[1])):u=2,u){case 0:if(c instanceof Za){e=r,t=Fn([Xa(c),Ja(qa(c),void 0,Qa(c),0)],l),n=i;continue e}e=r,t=Fn([void 0,Ka(qa(c))],l),n=i;continue e;case 1:if(d instanceof Za){e=r,t=o,n=Fn([Xa(d),Ja(qa(d),void 0,Qa(d),0)],f);continue e}e=r,t=o,n=Fn([void 0,Ka(qa(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==Mn(a[0])){e=r,t=Dn(a[0]),n=Dn(a[1]);continue e}{Mn(a[0]);const s=[o,i];let u,l,c,f,d;switch(Rn(s[0])?Rn(s[1])?u=2:null!=Mn(s[1])?(u=1,f=Dn(s[1]),d=Mn(s[1])):u=2:null!=Mn(s[0])?(u=0,l=Dn(s[0]),c=Mn(s[0])):Rn(s[1])?u=2:null!=Mn(s[1])?(u=1,f=Dn(s[1]),d=Mn(s[1])):u=2,u){case 0:if(c instanceof Za){e=r,t=Fn([Xa(c),Ja(qa(c),void 0,Qa(c),0)],l),n=i;continue e}e=r,t=Fn([void 0,Ka(qa(c))],l),n=i;continue e;case 1:if(d instanceof Za){e=r,t=o,n=Fn([Xa(d),Ja(qa(d),void 0,Qa(d),0)],f);continue e}e=r,t=o,n=Fn([void 0,Ka(qa(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,Nn(t),Nn(n))}function ps(e,t,n){let r=n;ss((e=>{t[r]=e,r=r+1|0}),e)}function hs(e,t){if(We(t))return function(e,t){return yn(((t,n)=>is(e,n,t)),void 0,t)}(e,t);if(t instanceof vn)return function(e,t){return Pn(((t,n)=>is(e,n,t)),void 0,t)}(e,t);{const n=Je(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;e=r,t=is(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{Ke(n)}}}class ms{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t,n=0;const r=Je(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();)n=0|(t=0|st(r["System.Collections.Generic.IEnumerator`1.get_Current"]()),(n<<1)+t+631)}finally{Ke(r)}return 0|Math.abs(n)}(this)}Equals(e){return e instanceof ms&&0===$s(gs(this),ws(this),ws(e))}toString(){return"set ["+Xt("; ",qr((e=>Gt(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|$s(gs(this),ws(this),ws(e))}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return as(gs(this),e,ws(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){ps(ws(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|ys(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|ys(this)}GetEnumerator(){return ds(ws(this))}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return ds(ws(this))}get size(){return 0|ys(this)}add(e){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(e){throw new Error("Set cannot be mutated")}has(e){return function(e,t){return as(gs(e),t,ws(e))}(this,e)}keys(){return qr((e=>e),this)}values(){return qr((e=>e),this)}entries(){return qr((e=>[e,e]),this)}forEach(e,t){const n=this;Kr((t=>{e(t,t,n)}),n)}}function gs(e){return e.comparer}function ws(e){return e.tree}function ys(e){return ns(ws(e))}function bs(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?"\n":" ")+JSON.stringify(t,null,4)}catch(t){return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?"\n":" ")}}function vs(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new xr(1,function(e,t){const n=2===t.tag?bs(t.fields[0],t.fields[1],!0):1===t.tag?bs(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?bs(t.fields[0],t.fields[1],!0):4===t.tag?bs(t.fields[0],t.fields[1],!0)+"\nNode `"+t.fields[2]+"` is unkown.":5===t.tag?"Expecting "+t.fields[0]+".\n"+JSON.stringify(t.fields[1],null,4):7===t.tag?"The following errors were found:\n\n"+Xt("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:bs(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}(e[0],e[1]))}return new xr(0,r.fields[0])}const xs=e=>t=>{const n="a sbyte",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new xr(0,(e+128&255)-128):new xr(1,[r,new ui(1,n,e,"Value was either too large or too small for "+n)]):new xr(1,[r,new ui(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[vi(o,511,!1,8,new Lt((()=>t),(e=>{t=0|e}))),t],e[0]?new xr(0,e[1]):new xr(1,[r,new ui(0,n,o)])}return new xr(1,[r,new ui(0,n,o)])},_s=e=>t=>{const n="a byte",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new xr(0,255&e):new xr(1,[r,new ui(1,n,e,"Value was either too large or too small for "+n)]):new xr(1,[r,new ui(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[vi(o,511,!0,8,new Lt((()=>t),(e=>{t=e}))),t],e[0]?new xr(0,e[1]):new xr(1,[r,new ui(0,n,o)])}return new xr(1,[r,new ui(0,n,o)])},Ss=e=>t=>{const n="an int16",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-32768<=e&&e<=32767?new xr(0,(e+32768&65535)-32768):new xr(1,[r,new ui(1,n,e,"Value was either too large or too small for "+n)]):new xr(1,[r,new ui(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[vi(o,511,!1,16,new Lt((()=>t),(e=>{t=0|e}))),t],e[0]?new xr(0,e[1]):new xr(1,[r,new ui(0,n,o)])}return new xr(1,[r,new ui(0,n,o)])},Cs=e=>t=>{const n="an uint16",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=65535?new xr(0,65535&e):new xr(1,[r,new ui(1,n,e,"Value was either too large or too small for "+n)]):new xr(1,[r,new ui(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[vi(o,511,!0,16,new Lt((()=>t),(e=>{t=e}))),t],e[0]?new xr(0,e[1]):new xr(1,[r,new ui(0,n,o)])}return new xr(1,[r,new ui(0,n,o)])},Ts=e=>t=>{const n="an int",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new xr(0,~~e):new xr(1,[r,new ui(1,n,e,"Value was either too large or too small for "+n)]):new xr(1,[r,new ui(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[vi(o,511,!1,32,new Lt((()=>t),(e=>{t=0|e}))),t],e[0]?new xr(0,e[1]):new xr(1,[r,new ui(0,n,o)])}return new xr(1,[r,new ui(0,n,o)])},Es=e=>t=>{const n="an uint32",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=4294967295?new xr(0,e>>>0):new xr(1,[r,new ui(1,n,e,"Value was either too large or too small for "+n)]):new xr(1,[r,new ui(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[vi(o,511,!0,32,new Lt((()=>t),(e=>{t=e}))),t],e[0]?new xr(0,e[1]):new xr(1,[r,new ui(0,n,o)])}return new xr(1,[r,new ui(0,n,o)])};function ks(e,t,n,r){let o;const i=n+".["+nt(e)+"]";if(Array.isArray(r)){const n=r;return e<n.length?t(i,n[e]):new xr(1,[i,new ui(5,"a longer array. Need index `"+nt(e)+"` but there are only `"+(o=n.length,nt(o)+"` entries"),r)])}return new xr(1,[i,new ui(0,"an array",r)])}function Is(e,t,n){if(Array.isArray(n)){let r=-1;return _r(Gn,yn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+nt(r)+"]",o);return 0===i.tag?new xr(0,An(i.fields[0],n.fields[0])):new xr(1,i.fields[0])}return n}),new xr(0,In()),n))}return new xr(1,[t,new ui(0,"a list",n)])}function As(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return yn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=n.fields[0],a=e(t+".["+nt(r)+"]",o);return 0===a.tag?(i[r]=a.fields[0],new xr(0,i)):new xr(1,a.fields[0])}return n}),new xr(0,mn(new Array(o.length),0,o.length,null)),o)}return new xr(1,[t,new ui(0,"an array",n)])}function Ns(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new xr(1,o.fields[0])}function Rs(e,t){let n;const r=e;return n=e=>t=>ks(0,r,e,t),e=>r=>Ns(wt(3,(e=>{let n;const r=t;return n=e=>t=>ks(1,r,e,t),t=>r=>Ns(((t,n,r)=>new xr(0,[e,t])),wt(2,n),t,r)})),wt(2,n),e,r)}function Ms(e){return ei(e)}function Ds(e){return function(e,t){return new ms(e,t)}(t={Compare:pt},hs(t,e));var t}function Os(e,t,n,r){let o,i;return t.length!==r.length?new xr(1,[n,new ui(6,(o=0|r.length,i=0|t.length,Kt(Wt("Expected %i %s but got %i"))(i)(e)(o)))]):bn(((e,t,r)=>0===r.tag?_r((e=>An(e,r.fields[0])),t(n)(e)):r),r,t,new xr(0,In()))}function Ps(e,t,n,r,o,i){const a=function(e,t){return t.find((e=>Ia(e)===r))}(0,Fa(n));if(null!=a){const n=a;return 0===i.length?new xr(0,Wa(n,[])):_r((e=>Wa(n,On(e))),Os("union fields",gn((n=>Bs(e,t,!1,n[1])),za(n)),o,i))}return new xr(1,[o,new ui(6,"Cannot find case "+r+" in "+Aa(n))])}function Gs(e,t,n,r){const o=new Lt(null),i=Jo(Aa(r),o,e);let a;if(Ua(r)){const e=gn((e=>[$i(t,Ia(e)),Bs(i,t,!1,e[1])]),La(r));a=t=>n=>_r((e=>function(e,t){const n=La(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return null!=e.construct?new e.construct(...t):n.reduce(((e,[n,r],o)=>(e[n]=t[o],e)),{})}(r,On(e))),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new xr(1,[t,new ui(0,"an object",n)]):function(e,t,n){return t.reduceRight(((t,n)=>e(n,t)),n)}(wt(2,(e=>{const r=e[0];return o=>0===o.tag?_r((e=>An(e,o.fields[0])),e[1](t+"."+r)(n[r])):o})),e,new xr(0,In()))}(e,t,n))}else if(Ha(r))a=e=>n=>{if("string"==typeof n)return Ps(i,t,r,n,e,[]);if(Array.isArray(n)){const o=n;return Ps(i,t,r,o[0],e,o.slice(1,o.length))}return new xr(1,[e,new ui(0,"a string or array",n)])};else{if(!n){let e;const t=Aa(r);throw e=Kt(Wt("Cannot generate auto decoder for %s. Please pass an extra decoder."))(t),new Error(e)}a=e=>t=>new xr(1,[e,new ui(2,"an extra coder for "+Aa(r),t)])}return o.contents=a,a}function Bs(e,t,n,r){let o,i,a;const s=Aa(r),u=Xo(s,e);if(null==u){if(Na(r)){const n=Bs(e,t,!1,Ra(r));return e=>t=>As(wt(2,n),e,t)}if(Da(r)){const e=Aa(Pa(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,a=xs(o)(i);if(1===a.tag)return new xr(1,a.fields[0]);{const e=a.fields[0];return zr(e,Ga(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new xr(0,Ba(n,e.toString())):new xr(1,[o,new ui(1,Aa(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,a=_s(o)(i);if(1===a.tag)return new xr(1,a.fields[0]);{const e=a.fields[0];return zr(e,Ga(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new xr(0,Ba(n,e.toString())):new xr(1,[o,new ui(1,Aa(n),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,a=Ss(o)(i);if(1===a.tag)return new xr(1,a.fields[0]);{const e=a.fields[0];return zr(e,Ga(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new xr(0,Ba(n,e.toString(s))):new xr(1,[o,new ui(1,Aa(n),i,"Unkown value provided for the enum")])}var s};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,a=Cs(o)(i);if(1===a.tag)return new xr(1,a.fields[0]);{const e=a.fields[0];return zr(e,Ga(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new xr(0,Ba(n,e.toString())):new xr(1,[o,new ui(1,Aa(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,a=Ts(o)(i);if(1===a.tag)return new xr(1,a.fields[0]);{const e=a.fields[0];return zr(e,Ga(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new xr(0,Ba(n,nt(e))):new xr(1,[o,new ui(1,Aa(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,a=Es(o)(i);if(1===a.tag)return new xr(1,a.fields[0]);{const e=a.fields[0];return zr(e,Ga(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new xr(0,Ba(n,e.toString())):new xr(1,[o,new ui(1,Aa(n),i,"Unkown value provided for the enum")])}};{const e=Aa(r),t=qt(Wt("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the folluwing enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra decoder.\n "))(e);return e=>t(e)}}if(Ma(r)){if(ja(r)){const n=gn((n=>Bs(e,t,!1,n)),Va(r));return e=>t=>Array.isArray(t)?_r((e=>On(e)),Os("tuple elements",n,e,t)):new xr(1,[e,new ui(0,"an array",t)])}{const s=Aa(Oa(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===s)return o=Bs(e,t,!0,ma(r)[0]),e=>t=>{return n=wt(2,o),r=e,null==(i=t)?new xr(0,void 0):_r(sn,n(r,i));var n,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===s)return i=Bs(e,t,!1,ma(r)[0]),e=>t=>Is(wt(2,i),e,t);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===s){const n=Bs(e,t,!1,ma(r)[0]),o=Bs(e,t,!1,ma(r)[1]);let i;const s=Ln([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new xr(1,[n,new ui(0,"an object",r)]):Yr(((o,i)=>{if(0===o.tag){const a=e(n,i);if(0===a.tag){const e=t(n+"."+i,r[i]);return 0===e.tag?new xr(0,An([a.fields[0],e.fields[0]],o.fields[0])):new xr(1,e.fields[0])}return new xr(1,a.fields[0])}return o}),new xr(0,In()),Object.keys(r))}(wt(2,n),wt(2,o),e,t),(a=Rs(wt(2,n),wt(2,o)),e=>t=>Is(wt(2,a),e,t))]);return i=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(Rn(o))return new xr(1,[n,new ui(7,i)]);{const a=vs(n,wt(2,Mn(o)),r);if(1===a.tag){e=Dn(o),t=Vn(i,Nn(a.fields[0]));continue e}return new xr(0,a.fields[0])}}})(s,In());var n,r},e=>t=>function(e,t,n,r){const o=t(n,r);return 1===o.tag?new xr(1,o.fields[0]):new xr(0,e(o.fields[0]))}(Ms,wt(2,i),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===s){const n=Bs(e,t,!1,ma(r)[0]);return e=>t=>{const r=As(wt(2,n),e,t);return 0===r.tag?new xr(0,Ds(r.fields[0])):new xr(1,r.fields[0])}}return Gs(e,t,n,r)}}return"System.Boolean"===s?e=>t=>{return n=e,"boolean"==typeof(r=t)?new xr(0,r):new xr(1,[n,new ui(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===s?e=>t=>{return n=e,null==(r=t)?new xr(0,void 0):new xr(1,[n,new ui(0,"null",r)]);var n,r}:"System.String"===s?e=>t=>{return n=e,"string"==typeof(r=t)?new xr(0,r):new xr(1,[n,new ui(0,"a string",r)]);var n,r}:"System.SByte"===s?xs:"System.Byte"===s?_s:"System.Int16"===s?Ss:"System.UInt16"===s?Cs:"System.Int32"===s?Ts:"System.UInt32"===s?Es:"System.Double"===s?e=>t=>{return n=e,"number"==typeof(r=t)?new xr(0,r):new xr(1,[n,new ui(0,"a float",r)]);var n,r}:"System.Single"===s?e=>t=>{return n=e,"number"==typeof(r=t)?new xr(0,r):new xr(1,[n,new ui(0,"a float32",r)]);var n,r}:"System.DateTime"===s?e=>t=>function(e,t){if("string"==typeof t){let r,o=Ct(-621355968e5,0);return r=[Et(t,new Lt((()=>o),(e=>{o=e}))),o],r[0]?new xr(0,1===(n=r[1]).kind?n:Ct(n.getTime(),1)):new xr(1,[e,new ui(0,"a datetime",t)])}var n;return new xr(1,[e,new ui(0,"a datetime",t)])}(e,t):"System.DateTimeOffset"===s?e=>t=>function(e,t){if("string"==typeof t){let n,r=xi(-621355968e5,0);return n=[_i(t,new Lt((()=>r),(e=>{r=e}))),r],n[0]?new xr(0,n[1]):new xr(1,[e,new ui(0,"a datetimeoffset",t)])}return new xr(1,[e,new ui(0,"a datetime",t)])}(e,t):"System.TimeSpan"===s?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[$a(t,new Lt((()=>r),(e=>{r=e}))),r],n[0]?new xr(0,n[1]):new xr(1,[e,new ui(0,"a timespan",t)])}return new xr(1,[e,new ui(0,"a timespan",t)])}(e,t):"System.Guid"===s?e=>t=>function(e,t){if("string"==typeof t){let n,r="00000000-0000-0000-0000-000000000000";return n=[gi(t,new Lt((()=>r),(e=>{r=e}))),r],n[0]?new xr(0,n[1]):new xr(1,[e,new ui(0,"a guid",t)])}return new xr(1,[e,new ui(0,"a guid",t)])}(e,t):"System.Object"===s?e=>e=>new xr(0,e):Gs(e,t,n,r)}{const e=u;return t=>n=>e.contents(t)(n)}}const Fs=function(){const e=[..."#C$&$&$$$$$$%-%&%=$$$$$$=$$$$D$$'$$$$$$$$$$$$%$$%$$$$&$:$*;$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$&%$$$%$&%'$%$&&%$%$$$$$%$$%$$%$&$$$%%$$&'$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$%$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*%$%%$$'$$$$$$$$h$>5'/1(*$$$4“$$$$$$$$%$&$$'%$$&$$$%$4$,F$%&&$$$$$$$$$$$$$$$$$$$$$$$($$$$$%%VS$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$(%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$I%$)L$$%%$$P$$$%$%$$+>''%.)&%$%%.$$$%C$-8-'%$†$$*$$)%%$'%-&%$1$$$$A>%|.$1-D,%$&$%$%9'$,$&$(%2$<&%$$.X8$5.2$C$Y$$$$&+'$%$*-%%-$$2$%$+%%%9$*$$&'%$$&'%%%%$$+$'%$&%%-%%)$$$$$%%$$)'%%9$*$%$%$%%$$&%'%%&&$*'$$*-%&$$-%$$,$&$9$*$%$(%$$&($%$$%$%$2%%%-$$*$)$$%$+%%%9$*$%$(%$$$$$'%%%%$*%$'%$&%%-$$)-$$$)&&$'&%$$$%&%&&&/'%$%&&$&$%$)$1-&)$$($&$+$&$:$3&$&'$&$'*%$&(%%%-*$*$$$%$+$&$:$-$(%$$$$($$%$%%*%*$$%%%-$%0%%,$&$L%$&'$&$&$$$'&$*&%%-,$)$$%$5&;$,$$%*&$'&&$$$+)-%%$/S$%*'$)$+$-%H%$$$($;$$$-$%,$%($$$)%-%'C$&2$$&%)--$$$$$$$$$$%+$G'1$($%(.$G$+$)$%('%HN%'$)$%%%$-))%%'&$&%*&'0$%%)$$$-&$%I$$($%N$$&Ŭ$'%*$$$'%L$'%D$'%*$$$'%2$\\$'%f%&,7&3-)y%)%$ʏ$$4$=$$&n&&+*0$'&.5&%,5%/0$&$%/W%$*+$%.&$&$$$%-)-))$'&$$-)F$X*(%E$$(i-B$&'%&'%$)&'$&%-A%(.O'=)-$&E:%%$%%X$$$*$$$$%+)-%$-)-)*$)%1$%b'$R$$($$($%*'-*-,,&%$A$'%%$&%-O$$%&$$&%+'G++%%&(-&&-A)%,*N%&++&$0$*'$)$%$%$(Ob0$EH]$($$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,+)%)%++++)%)%+$$$$$$$$++1%++++++($%'$$$&&$%'$&'%%'$&+(&%&$%'$%$.()%$$$%$$$+$$($,$$'%&$$$.$$$-$($-$$%)&$$$-&$$$0&C30'$&/2%$'$%$&%&$$$%$()$$$$$$'$$'$'$%%%($'$$%$$3F$$'$%'((%'$%$%$*$B%%$$$Bį+$$$$7%*$$t$A<K)h<.8_q9Ú$,$Y+’$ě$$$$$$$$$$$$$$AO($$B$$$$$$$$$$3ģ¦$$$$$$$$$$$$$$$$$$$$$$b$$$$C$$ĥS8%)J%C$ŒR$R$$$&%$$$$$$'$$%$)%&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%)$$$$&$$('$%I$$($%[*$$1$:,*$*$*$*$*$*$*$*$C%$$$$&$$$$$,$%$$$$%$$$$$$$$$$($-%'$$$0%$P=$|/ù=/'$&$$$$$$$$$$$$$$%$$$$$$$$$$%$,'%$(%&$$$%$y%%%%$$}$&$(N$$%'-CG/3B$-A+$2C-J2ţ᧣c删&8$Қ&Z,K)%į$&3-%7$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$&$-$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%%i-%)+:,%$$$$$$$$$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$+$$$$%$$$$$$$$$$%$$$$$$$$&$$$$$$$$$$$$$$$$$$$$($($$$$$$$$$$$%$$'$$$M$$$%$*$&$'$:%%$'$&)%$$)W'+%U3%+%-)5)&$$%$-?+%:.%.$@&&$R$%'%%&0$$-'%($$,-($L)%%%%,&$+$$%-%'3$)&$$$$U$$&%%(%$$$;%$%.$%%%$%$$-)%)%),*$*$N$',$%'sF%$%$%$$$%-)⯇/:'T'ࠣᤣƑ%I*/(($$-$0$($$$%$%$34Ǝ$$3c%YK/$$%3*$$$)3$%%$$$$$$$$$$$$$$$$%$$'&&$'$$$$$$$&$$&$$$%'($ª%$$&$&$$$$$$%-%&%=$$$$$$=$$$$$$$$$%-$P%B&)%)%)%&&%$$$%$$'%-&%%/$=$6$%$2%1Ež(&'P&,X'4%&$0&$RP$¥@&T2$>'C',7$+$(I((A$$G'+$(MKKq%-)G'G'K+W.$³Ś,9-+»)%$$O$%&$%:$$+:%*B+,S6$%((9)&$=($c['%%3%Q$&$%(''$&$@%&'$,*,*@%$@&C+$?%'(*,Y&*9%+6(+5*'/*slZV0V*)G'+-ʼnB$M$%$%%q@-$+9.'(y8*7:,$$$X2*'7-2&$P&'%%%$'.$%<*-)&G($+$-'$%$+F$%$,%$S&,%'''$$$-$$$&$7.5$<&&%$$%)$d*$$$'$2$-$)R$&+(-)%%$+%%%9$*$%$($%$%$'%%%&%$)$((%%*&(®X&+%&$$'(-%$$$&AS&)$$'%$%%$$+-ÉR&'%'%$%:'%ES&+%$$%&$.-)06N$$$%)$$$*-Y>%&%'$('-%&$ãO&,$%$‡CC-,/+%$%+$%$;)$%%%$$$$$$$&,-i+%J&'%%'$$$$$>$-K)$$'+$+$)%&Q0$%&$(@\\Ī,$H$*$)$$$(--6&%A%9$$*$%$%l*$%$I)&$$%$*$$+-))$%$C($%$%$$$$*-ř6%%%Ú$28+'40$ν‰’$(.ç૟ђ$,࿪ɪ⇜ɜ*B$-'%ƒA%($-S*(''$$--$*$8(6˓CC:'ˆn'$$Z*'0c%$$$.%1᠛+ӹM,⌚łT&4'+ƯधŽ(0&,*-%$%$'፿ę-J%_%&&)++%*A'^:e&$½7/z,<ª===*$5==$$%%$%%%'$+'$$$*$.==%$'%+$*$=%$'$($$&*$============?%<$<$)<$<$)<$<$)<$<$)<$<$)$$%UȣZ'U+$1$%(2($2ճ*$4%*$%$(øP&**%-'$$ƓO'-($ԣè%,*LEE*$'-'%̴^$&$'oP$2å'$>$%$$%$$-$'$$$$)$'$$$$$$&$%$$%$$$$$$$$$$%$$%'$*$'$'$$$-$4(&$($4W%ıO'‡/2%2$2$H-0Ä[@0O',*%1)½Ğ(˻+0&0&—/|*/7/'[+-)K+A%%qœ$u$ª/1%(&&(*,<**,&0*L¶$ZH-Щ꜁Eၘ.ā%ᚥ1ᵔూɁ؅፮򮳙$Aƒ£ē︳𐀡%𐀡"].map((e=>{var t;return(null!==(t=e.codePointAt(0))&&void 0!==t?t:0)-35})),t=[..."1.;=;78;<;6;+;<;#7;8>5>$7<8<1.;=?;>?'9<2?>?<->$;>-':-;#<#$<$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'#$'#%$#%$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'$&>&>&>&>&>(#$#$&>#$@&$;#@>#;#@#@#$#@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$<#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?(*#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@&;$;6@?=@(6(;(;(;(@'@';@2<;=;?(;2@;'&'(+;'(';'(2?(&(?('+'?';@2'('(@'('@+'(&?;&@(='(&(&(&(@;@'(@;@'@'@'@(2()'()(')()()'('(;+;&'()@'@'@'@'@'@'@(')(@)@)('@)@'@'(@+'=-?=';(@()@'@'@'@'@'@'@'@(@)(@(@(@(@'@'@+('(;@()@'@'@'@'@'@'@(')(@()@)(@'@'(@+;=@'(@()@'@'@'@'@'@'@(')()(@)@)(@()@'@'(@+?'-@('@'@'@'@'@'@'@'@'@'@)()@)@)(@'@)@+-?=?@()('@'@'@'@'()@(@(@(@'@'(@+@;-?'();'@'@'@'@'@(')()@()@)(@)@'@'(@+@'@()'@'@'(')(@)@)('?@')-'(@+-?'@()@'@'@'@'@'@(@)(@(@)@+@);@'('(@='&(;+;@'@'@'@'@'@'('('@'@&@(@+@'@'?;?;?(?+-?(?(?(7878)'@'@()(;('(@(@?(?@?;?;@')()()()('+;')('(')')'('()()(')+)(?#@#@#@$;&$'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@(;-@'?@#@$@6'?;'.'78@';,'@'@'(@'(;@'(@'@'@(@'()()()(;&;='(@+@-@;6;(2@+@'&'@'('('@'@'@()()@)()(@?@;+'@'@'@'@+-@?'()(@;')()(@()()()(@(+@+@;&;@(*(@()'()()()()'@+;?(?@()')()()('+'()()()()@;')()(@;+@'+'&;$@#@#;@(;()('('(')('@$&$&$&(@(#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@$#$#$@#@$@#@#@#@#$#$@$%$%$%$@$#%>$>$@$#%>$@$#@>$#>@$@$#%>@.26;9:79:79;/02.;9:;5;<78;<;5;.2@2-&@-<78&-<78@&@=@(*(*(@?#?#?$#$#$?#?<#?#?#?#?#?$#$'$?$#<#$?<?$?-,#$,-?@<?<?<?<?<?<?<?<?<?<?7878?<?78?<?<?<?@?@-?-?<?<?<?<?78787878787878-?<78<7878787878<?<7878787878787878787878<7878<78<?<?<?@?@?#@$@#$#$#$#$#$#$#$#$&#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?#$#$(#$@;-;$@$@$@'@&;@('@'@'@'@'@'@'@'@'@(;9:9:;9:;9:;6;6;9:;9:78787878;&;6;6;7;?;@?@?@?@?@.;?&',7878787878?78787878678?,()6&?,&';?@'@(>&'6';&'@'@'@?-?'?@'?@-?-?-?-?-?'?'@'&'@?@'&;'&;'+'@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'(*;(;&#$#$#$#$#$#$#$#$#$#$#$#$#$#$&(',(;@>&>#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$&$#$#$#$#$#$#$#$&>#$#$'#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#$#$#$@#$'&$'('('(')()?(@-?=?@';@)')(@;+@(';';'(+'(;'()@;'@()'()()();@&+@;'(&'+'@'()()(@'('()@+@;'&'?')()'('('('('('@'&;')();'&)(@'@'@'@'@'@$>&$&>@$')()();)(@+@'@'@'@34'@'@$@$@'('<'@'@'@'@'@'>@'87@'@'@'=?@(;78;@(;657878787878787878;78;5;@;6787878;<6<@;=;@'@'@2@;=;78;<;6;+;<;#7;8>5>$7<8<78;78;'&'&'@'@'@'@'@=<>?=@?<?@2?@'@'@'@'@'@'@'@;@-@?,-?-?@?@?@?(@'@'@(-@'-@',',@'(@'@;'@';,@#$'@+@#@$@'@'@;@'@'@'@'@'@'@'@'@'@;-'?-'@-@'@'@-'-@;'@;@'@-'-@-'(@(@('@'@'@(@(-@;@'-;'-@'?'(@-;@'@;'@-'@-'@;@-@'@#@$@-'(@+@-@'@(6@'@'-'@'(-;@'-@'@)()'(;@-+@()')()(;2;@2@'@+@('()(@+;')'@'(;'@()')()';(;)(+';';@-@'@')()()(;(@'@'@'@'@';@'()(@+@()@'@'@'@'@'@'@(')()@)@)@'@)@')@(@(@')()()(';+;@;('@')()()()(';'@+@')(@)()(;'(@')()()(;'@+@;@'()()()('@+@'@()()(@+-;?@')()(;@#$+-@'@'@'@'@')@)@()(')')(;@+@'@')(@()(';')@'('()'(;(@'()('()(;';@'@'@')(@()(';@+-@;'@(@)()()(@'@'@'(@(@(@('(@+@'@'@')@(@)()('@+@'();@'@-?=?@;'@,@;@'@'@2@'@'@'@+@;@'@(;@'(;?&;?@+@-@'@'@#$-;@'@(')@(&@&;&(@)@'@'@'@'@'@'@'@'@'@'@'@?(;2@?@?@?)(?)2(?(?(?@?(?@-@?@-@#$#$@$#$#@#@#@#@#@#$@$@$@$#$#@#@#@#@$#@#@#@#@#@$#$#$#$#$#$#$@#<$<$#<$<$#<$<$#<$<$#<$<$#$@+?(?(?(?(?;@(@(@(@(@(@(@(@'@(&@+@'?@'(+@=@'@-(@#$(&@+@;@-?-=-@-?-@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@<@?@?@?@?@?@?@-?@?@?@?@?@?@?>?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@+@'@'@'@'@'@'@'@2@2@(@4@4@"].map((e=>{var t;return(null!==(t=e.codePointAt(0))&&void 0!==t?t:0)-35})),n=new Uint32Array(e),r=new Uint8Array(t);for(let e=1;e<n.length;++e)n[e]+=n[e-1];return e=>{let t=n.length,o=0;for(;t-o>1;){const r=Math.floor((t+o)/2),i=n[r];if(e<i)t=r;else{if(e===i){t=o=r;break}i<e&&(o=r)}}return r[o]}}();const Ls=e=>function(e,t){const n=1<<function(e,t){const n=function(e,t){if(t>=0&&t<e.length)return e.charCodeAt(t);throw new Error("Index out of range.")}(e,t);return Fs(n)}(e,0);return 0!=(256&n)}(e);const Vs={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Hs(e,t){return e.replace(/[a-z]?[A-Z]/g,(e=>1===e.length?e.toLowerCase():e.charAt(0)+t+e.charAt(1).toLowerCase()))}function Us(e,t=Vs.None){const n={},r=t;function o(e){throw new Error("Cannot infer key and value of "+String(e))}function i(e,t,r){e=function(e,t){switch(t){case Vs.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Vs.SnakeCase:return Hs(e,"_");case Vs.SnakeCaseAllCaps:return Hs(e,"_").toUpperCase();case Vs.KebabCase:return Hs(e,"-");case Vs.None:default:return e}}(e,t),n[e]=r}for(let t of e){let e=Vs.None;if(null==t&&o(t),t instanceof Bt){const n=t.cases()[t.tag];t=0===t.fields.length?n:[n].concat(t.fields),e=r}if(Array.isArray(t))switch(t.length){case 0:o(t);break;case 1:i(t[0],e,!0);break;case 2:const n=t[1];i(t[0],e,n);break;default:i(t[0],e,t.slice(1))}else"string"==typeof t?i(t,e,!0):o(t)}return n}function js(e,t){return!t.has(e)&&(t.add(e),!0)}function zs(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class Ws{constructor(e,t){const n=new Lt(null);this.comparer=t,n.contents=this,this.hashMap=new Map([]),this["init@8-2"]=1;const r=Je(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();Zs(n.contents,e)}}finally{Ke(r)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(e){return Array.from(this)}"System.Collections.IEnumerable.GetEnumerator"(){return Je(this)}GetEnumerator(){return Je(Br(this.hashMap.values()))}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){Zs(this,e)}"System.Collections.Generic.ICollection`1.Clear"(){Ks(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Js(this,e)}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){var n;n=(n,r)=>{e[t+n]=r},Yr(((e,t)=>(n(e,t),e+1|0)),0,this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|qs(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){return Xs(this,e)}get size(){return 0|qs(this)}add(e){return Zs(this,e),this}clear(){Ks(this)}delete(e){return Xs(this,e)}has(e){return Js(this,e)}keys(){return qr((e=>e),this)}values(){return qr((e=>e),this)}entries(){return qr((e=>[e,e]),this)}forEach(e,t){const n=this;Kr((t=>{e(t,t,n)}),n)}}function Ys(e,t){const n=0|e.comparer.GetHashCode(t);let r,o=null;return r=[(i=e.hashMap,a=n,s=new Lt((()=>o),(e=>{o=e})),!!i.has(a)&&(s.contents=i.get(a),!0)),o],r[0]?[!0,n,r[1].findIndex((n=>e.comparer.Equals(t,n)))]:[!1,n,-1];var i,a,s}function Ks(e){e.hashMap.clear()}function qs(e){let t=0,n=Je(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();)t=t+n["System.Collections.Generic.IEnumerator`1.get_Current"]().length|0}finally{Ke(n)}return 0|t}function Zs(e,t){const n=Ys(e,t);return n[0]?!(n[2]>-1)&&(zs(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function Js(e,t){const n=Ys(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!0;case 1:return!1}}function Xs(e,t){const n=Ys(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return zs(e.hashMap,n[1]).splice(n[2],1),!0;case 1:return!1}}class Qs extends Ft{constructor(e,t){super(),this.Code=e,this.Name=t}}const eu=ei([["AFG","Afghanistan"],["ALA","Aland Islands"],["ALB","Albania"],["DZA","Algeria"],["ASM","American Samoa"],["AND","Andorra"],["AGO","Angola"],["AIA","Anguilla"],["ATA","Antarctica"],["ATG","Antigua and Barbuda"],["ARG","Argentina"],["ARM","Armenia"],["ABW","Aruba"],["AUT","Austria"],["AZE","Azerbaijan"],["BHS","Bahamas"],["BHR","Bahrain"],["BGD","Bangladesh"],["BRB","Barbados"],["BLR","Belarus"],["BEL","Belgium"],["BLZ","Belize"],["BEN","Benin"],["BMU","Bermuda"],["BTN","Bhutan"],["BOL","Bolivia"],["BES","Bonaire Saint Eustatius, and Saba Islands"],["BIH","Bosnia and Herzegovina"],["BWA","Botswana"],["BVT","Bouvet Island"],["BRA","Brazil"],["IOT","British Indian Ocean Territory"],["VGB","British Virgin Islands"],["BRN","Brunei Darussalam"],["BGR","Bulgaria"],["BFA","Burkina Faso"],["BDI","Burundi"],["KHM","Cambodia"],["CMR","Cameroon"],["CAN","Canada"],["CPV","Cabo Verde"],["CYM","Cayman Islands"],["CAF","Central African Republic"],["TCD","Chad"],["CHL","Chile"],["CHN","China"],["CXR","Christmas Island"],["CCK","Cocos (Keeling) Islands"],["COL","Colombia"],["COM","Comoros"],["COD","Congo, Democratic Republic of (was Zaire)"],["COG","Congo, Republic of"],["COK","Cook Islands"],["CRI","Costa Rica"],["CIV","Cote D'Ivoire (Ivory Coast)"],["HRV","Croatia (Hrvatska)"],["CUB","Cuba"],["CUW","Curacao"],["CYP","Cyprus"],["CZE","Czech Republic"],["DNK","Denmark"],["DJI","Djibouti"],["DMA","Dominica"],["DOM","Dominican Republic"],["ECU","Ecuador"],["EGY","Egypt"],["SLV","El Salvador"],["GNQ","Equatorial Guinea"],["ERI","Eritrea"],["EST","Estonia"],["SWZ","eSwatini"],["ETH","Ethiopia"],["FLK","Falkland Islands (Malvinas)"],["FRO","Faroe Islands"],["FJI","Fiji"],["FIN","Finland"],["FRA","France"],["GUF","French Guiana"],["PYF","French Polynesia"],["ATF","French Southern Territories"],["GAB","Gabon"],["GMB","Gambia"],["GEO","Georgia"],["DEU","Germany"],["GHA","Ghana"],["GIB","Gibraltar"],["GRC","Greece"],["GRL","Greenland"],["GRD","Grenada"],["GLP","Guadeloupe"],["GUM","Guam"],["GTM","Guatemala"],["GGY","Guernsey"],["GIN","Guinea"],["GNB","Guinea-Bissau"],["GUY","Guyana"],["HTI","Haiti"],["HMD","Heard and McDonald Islands"],["VAT","Holy See (Vatican City State)"],["HND","Honduras"],["HKG","Hong Kong"],["HRV","Hrvatska (Croatia)"],["HUN","Hungary"],["ISL","Iceland"],["IND","India"],["IDN","Indonesia"],["IRN","Iran"],["IRQ","Iraq"],["IRL","Ireland"],["IMN","Isle of Man, The"],["ISR","Israel"],["ITA","Italy"],["CIV","Ivory Coast (Cote D'Ivoire)"],["JAM","Jamaica"],["JPN","Japan"],["JEY","Jersey"],["JOR","Jordan"],["KAZ","Kazakhstan"],["KEN","Kenya"],["KIR","Kiribati"],["PRK","Korea, Democratic People's Republic of (North Korea)"],["KOR","Korea, Republic of (South Korea)"],["KWT","Kuwait"],["KGZ","Kyrgyzstan"],["LAO","Laos"],["LVA","Latvia"],["LBN","Lebanon"],["LSO","Lesotho"],["LBR","Liberia"],["LBY","Libya"],["LIE","Liechtenstein"],["LTU","Lithuania"],["LUX","Luxembourg"],["MAC","Macau"],["MKD","North Macedonia, Republic of"],["MDG","Madagascar"],["MWI","Malawi"],["MYS","Malaysia"],["MDV","Maldives"],["MLI","Mali"],["MLT","Malta"],["MHL","Marshall Islands"],["MTQ","Martinique"],["MRT","Mauritania"],["MUS","Mauritius"],["MYT","Mayotte"],["MEX","Mexico"],["FSM","Micronesia, Federated States of"],["MDA","Moldova"],["MCO","Monaco"],["MNG","Mongolia"],["MNE","Montenegro"],["MSR","Montserrat"],["MAR","Morocco"],["MOZ","Mozambique"],["MMR","Myanmar (was Burma)"],["NAM","Namibia"],["NRU","Nauru"],["NPL","Nepal"],["NLD","Netherlands"],["NCL","New Caledonia"],["NZL","New Zealand"],["NIC","Nicaragua"],["NER","Niger"],["NGA","Nigeria"],["NIU","Niue"],["NFK","Norfolk Island"],["MNP","Northern Mariana Islands"],["PRK","North Korea (Korea, Democratic People's Republic of)"],["NOR","Norway"],["OMN","Oman"],["PAK","Pakistan"],["PLW","Palau"],["PSE","Palestinian Territories"],["PAN","Panama"],["PNG","Papua New Guinea"],["PRY","Paraguay"],["PER","Peru"],["PHL","Philippines"],["PCN","Pitcairn Island"],["POL","Poland"],["PRT","Portugal"],["PRI","Puerto Rico"],["QAT","Qatar"],["REU","Reunion"],["ROU","Romania"],["RUS","Russian Federation"],["RWA","Rwanda"],["BLM","Saint Barthelemy"],["SHN","Saint Helena"],["KNA","Saint Kitts and Nevis"],["LCA","Saint Lucia"],["SXM","Saint Maarten (Dutch part)"],["MAF","Saint Martin (French part)"],["SPM","Saint Pierre and Miquelon"],["VCT","Saint Vincent and the Grenadines"],["WSM","Samoa"],["SMR","San Marino"],["STP","Sao Tome and Principe"],["SAU","Saudi Arabia"],["SEN","Senegal"],["SRB","Serbia"],["SYC","Seychelles"],["SLE","Sierra Leone"],["SGP","Singapore"],["SVK","Slovakia (Slovak Republic)"],["SVN","Slovenia"],["SLB","Solomon Islands"],["SOM","Somalia"],["ZAF","South Africa"],["SGS","South Georgia and the South Sandwich Islands"],["KOR","South Korea (Korea, Republic of)"],["SSD","South Sudan"],["ESP","Spain"],["LKA","Sri Lanka"],["SDN","Sudan"],["SUR","Suriname"],["SJM","Svalbard and Jan Mayen Islands"],["SWE","Sweden"],["CHE","Switzerland"],["SYR","Syria"],["TWN","Taiwan"],["TJK","Tajikistan"],["TZA","Tanzania"],["THA","Thailand"],["TLS","Timor-Leste"],["TGO","Togo"],["TKL","Tokelau"],["TON","Tonga"],["TTO","Trinidad and Tobago"],["TUN","Tunisia"],["TUR","Turkey"],["TKM","Turkmenistan"],["TCA","Turks and Caicos Islands"],["TUV","Tuvalu"],["UGA","Uganda"],["UKR","Ukraine"],["ARE","United Arab Emirates"],["GBR","United Kingdom"],["USA","United States"],["UMI","United States Minor Outlying Islands"],["VIR","United States Virgin Islands"],["URY","Uruguay"],["UZB","Uzbekistan"],["VUT","Vanuatu"],["VAT","Vatican City State (Holy See)"],["VEN","Venezuela"],["VNM","Vietnam"],["WLF","Wallis and Futuna"],["ESH","Western Sahara"],["YEM","Yemen"],["ZMB","Zambia"],["ZWE","Zimbabwe"]]);class tu extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HELP","VETStudentLoan","FinancialSupplement","StudentStartUpLoan","TradeSupportLoan"]}}class nu extends Ft{constructor(e,t){super(),this.Code=e,this.Name=t}}function ru(e){return _r((e=>new nu(e.Code,e.Name)),function(e){const t=function(e){return $n((t=>new Qs(e,t)),Xo(e,eu))}(e);return Qr(Kt(Wt("Country code:%A is not accepted"))(e),t)}(e))}class ou extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}const iu=new ou(2,{HomeCountry:void 0});function au(e){return new ou(2,{HomeCountry:e})}class su extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["FullTime","PartTime","LabourHire","SuperIncomeStream","Casual"]}}class uu extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn"]}}class lu extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Under18AndBelowTaxThreshold","Pending","Pensioner"]}}class cu extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PreviousSurname"]}}function fu(e){return new cu(0,e)}function du(e){return e.fields[0]}function $u(e){return ao(0,(()=>Sr((e=>{const t=e;return so(0,function(e,t){return function(e){if(We(e))return 0===e.length;if(e instanceof vn)return Rn(e);{const t=Pr(e);try{return!t["System.Collections.IEnumerator.MoveNext"]()}finally{Ke(t)}}}(t)?new xr(1,e):new xr(0,void 0)}("TFN must not contain all zeros",(n={Equals:(e,t)=>e===t,GetHashCode:ot},function(e){return e instanceof vn?On(e):Array.from(e)}(function(e,t,n){return Gr((()=>{const r=new Ws(e,n);return Wr((e=>js(e,r)),t)}))}(["0"],t.split(""),n)))),(()=>t));var n}),function(e){return ao(0,(()=>{const t=nn(Ls,e);return Sr((()=>Sr((()=>so(0,eo(0,"TFN is not valid",function(e,t){let n=t.GetZero();for(let r=0;r<=e.length-1;r++)n=t.Add(n,e[r]);return n}(function(e,t,n,r){if(t.length!==n.length)throw new Error("Arrays had different lengths");const o=hn(r,t.length);for(let r=0;r<=t.length-1;r++)o[r]=e(t[r],n[r]);return o}(((e,t)=>e*t),gn((e=>bi(e,511,!1,32)),t.split(""),Int32Array),new Int32Array([1,4,3,7,5,8,6,9,10]),Int32Array),{GetZero:()=>0,Add:(e,t)=>e+t})%11),(()=>t))),eo(9,"TFN must be 9 digits",t.length))),eo(e,"TFN must contain digits only",t))}))()}(e))))()}class pu extends Ft{constructor(e,t){super(),this.Code=e,this.Name=t}}new class extends Ft{constructor(e){super(),this.Unused=e}}(void 0);class hu extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}function mu(e){switch(e.tag){case 1:return new xr(0,new ou(1));case 2:return dn($n((e=>_r(au,ru(e.Code))),e.fields[0].HomeCountry),new xr(0,iu));default:return new xr(0,new ou(0))}}function gu(e){switch(e.tag){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}}function wu(e){switch(e){case 0:return new xr(0,new tu(0));case 1:return new xr(0,new tu(1));case 2:return new xr(0,new tu(2));case 3:return new xr(0,new tu(3));case 4:return new xr(0,new tu(4));default:return new xr(1,"Invalid DebtSupport")}}function yu(e){switch(e.tag){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}}const bu=e=>{return function(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(Rn(i))return _r(Gn,r);{const a=ao(0,(()=>Sr((e=>so(0,r,(t=>An(e,t)))),o(Mn(i)))))();if(1===a.tag)return a;e=a,t=o,n=Dn(i);continue e}}}(new xr(0,In()),e,t)}(wu,(t={Equals:(e,t)=>e===t,GetHashCode:it},Vr(function(e,t){return Gr((()=>{const n=new Ws([],t);return Wr((e=>js(e,n)),e)}))}(e,t))));var t},vu=e=>Hn(yu,e);function xu(e){switch(e.tag){case 1:return 1;case 2:return 2;default:return 0}}class _u extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}function Su(){return va("Dto.Dto.ProvidedTfnInformationDto",[],_u,(()=>[[["Item",Ta]],[["Item",Sa("Dto.Dto.ExemptionReasonDto",ka,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]]]))}class Cu extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","Exempted"]}}class Tu extends Ft{constructor(e,t,n,r,o,i,a){super(),this.TfnInformation=e,this.PreviousSurname=t,this.ResidencyStatus=0|n,this.ResidencyStatusV2=r,this.EmploymentBasis=0|o,this.IsTaxFreeThresholdClaimed=i,this.HasDebtSupport=a}}class Eu extends Ft{constructor(e,t){super(),this.Meta=e,this.Data=t}}class ku extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}function Iu(){return va("Dto.Commands.ResidencyStatusV2Dto",[],ku,(()=>[[],[],[["Item",ya("Dto.Commands.WorkingHolidayPayload",[],Au,(()=>[["HomeCountry",ya("Dto.Commands.CountryCode",[],Nu,(()=>[["Code",Ta]]))]]))]]]))}class Au extends Ft{constructor(e){super(),this.HomeCountry=e}}class Nu extends Ft{constructor(e){super(),this.Code=e}}function Ru(e){switch(e.tag){case 1:return new xr(0,new ku(1));case 2:return _r((e=>new ku(2,new Au(new Nu(e.Code)))),Qr("Home country should be specified for WorkingHolidayMaker",e.fields[0].HomeCountry));default:return new xr(0,new ku(0))}}class Mu extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Create","CreateV2","ChangeTfnInformation","ChangePreviousSurname","ChangeResidencyStatus","ChangeResidencyStatusV2","ChangeEmploymentBasis","ChangeTaxFreeThresholdClaimed","ChangeDebtSupport"]}}function Du(e){return e}const Ou=null;function Pu(e){return Array.from(e)}function Gu(e){return St(e,"O")}function Bu(e){return function(e,t="c",n){if(-1===["c","g","G"].indexOf(t))throw new Error("Custom formats are not supported");const r=Math.abs(function(e){return fa(e/864e5)}(e)),o=Math.abs(function(e){return fa(e%864e5/36e5)}(e)),i=Math.abs(function(e){return fa(e%36e5/6e4)}(e)),a=Math.abs(function(e){return fa(e%6e4/1e3)}(e)),s=Math.abs(function(e){return fa(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==t&&"g"!==t?"c"===t?r+".":r+":":""}${"g"===t?o:et(o,2)}:${et(i,2)}:${et(a,2)}${0!==s||"c"!==t&&"g"!==t?"g"===t?"."+et(s,3):"."+function(e,t,n){let r=e.toString(10);for(;r.length<3;)r="0"+r;for(;r.length<7;)r+="0";return r}(s):""}`}(e)}function Fu(){return null}function Lu(e){return St(e,"O")}function Vu(e,t,n,r){const o=new Lt(null),i=Jo(Aa(r),o,e);let a;if(Ua(r)){const e=gn((e=>{const r=$i(t,Ia(e)),o=Hu(i,t,n,e[1]);return t=>i=>{const a=function(e,t){return e[t[0]]}(t,e);return(!n||n&&null!=a)&&(i[r]=o(a)),i}}),La(r));a=t=>Yr(((e,n)=>n(t)(e)),{},e)}else{if(!Ha(r)){let e;const t=Aa(r);throw e=Kt(Wt("Cannot generate auto encoder for %s. Please pass an extra encoder."))(t),new Error(e)}a=e=>{const o=function(e,t){const n=Fa(t)[e.tag];if(null==n)throw new Error(`Cannot find case ${e.name} in union type`);return[n,e.fields]}(e,r),a=o[0],s=o[1],u=0|s.length;if(0===u)return Ia(a);{const e=0|u,r=za(a),o=mn(new Array(e+1),0,e+1,null);o[0]=Ia(a);for(let a=1;a<=e;a++){const e=Hu(i,t,n,r[a-1][1]);o[a]=e(s[a-1])}return o}}}return o.contents=a,a}function Hu(e,t,n,r){const o=Aa(r),i=Xo(o,e);if(null==i){if(Na(r)){const o=Hu(e,t,n,Ra(r));return e=>Pu(qr(o,e))}if(Da(r)){const e=Aa(Pa(r));if("System.SByte"===e)return e=>e;if("System.Byte"===e)return e=>e;if("System.Int16"===e)return e=>e;if("System.UInt16"===e)return e=>e;if("System.Int32"===e)return e=>e;if("System.UInt32"===e)return e=>e;{const e=Aa(r);return qt(Wt("Cannot generate auto encoder for %s.\nThoth.Json.Net only support the folluwing enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra encoder.\n "))(e)}}if(Ma(r)){if(ja(r)){const o=gn((r=>Hu(e,t,n,r)),Va(r));return e=>{return Pu((t=(e,t)=>o[e](t),n=e,Ur((()=>Pr(n)),((e,n)=>n["System.Collections.IEnumerator.MoveNext"]()?sn(t(e,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{Ke(e)}))));var t,n}}{const o=Aa(Oa(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new Qe((()=>{return o=Hu(e,t,n,ma(r)[0]),e=>{return n=()=>Ou,null!=(t=$n(o,e))?un(t):n();var t,n};var o}));return e=>null==e?Ou:o.Value(e)}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===o||"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===o){const o=Hu(e,t,n,ma(r)[0]);return e=>Pu(qr(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=ma(r)[0],i=Hu(e,t,n,ma(r)[1]);if("System.String"===Aa(o)||"System.Guid"===Aa(o))return e=>Yr(((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e}),{},e);{let r;const a=Hu(e,t,n,o);return r=a,e=>Pu(qr((e=>{const t=e;return[r(t[0]),i(t[1])]}),e))}}return Vu(e,t,n,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?Fu:"System.String"===o?e=>e:"System.SByte"===o?e=>e:"System.Byte"===o?e=>e:"System.Int16"===o?e=>e:"System.UInt16"===o?e=>e:"System.Int32"===o?e=>e:"System.UInt32"===o?e=>e:"System.Double"===o?e=>e:"System.Single"===o?e=>e:"System.DateTime"===o?Lu:"System.DateTimeOffset"===o?Gu:"System.TimeSpan"===o?Bu:"System.Guid"===o?Du:"System.Object"===o?e=>e:Vu(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function Uu(e){return Kt(Wt("%s/tfn-declaration/backend"))(e)}function ju(e,t){return lo(0,(()=>{const n=ai(function(e){return new fo(0,"Authorization",e)}(Kt(Wt("Bearer %s"))(e)),t);let r;const o=si(n);return r=$r.Bind(o,(e=>$r.Return(new xr(0,e)))),$r.Delay((()=>$r.Bind(r,(e=>{let t,r;const o=e;return 1===o.tag?$r.Return(new xr(1,o.fields[0])):$r.ReturnFrom((t=o.fields[0],429===t.statusCode||t.statusCode>=500?(r=si(n),$r.Bind(r,(e=>$r.Return(new xr(0,e))))):uo(0,t)))}))))}))}const zu=e=>function(e,t){try{return vs("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new xr(1,"Given an invalid JSON: "+e.message);throw e}}(wt(2,function(e,t,n){const r=dn(t,new li(0));return Bs(function(e){return null!=e?Qo(((e,t)=>new Lt(t[1])),e.Coders):ti()}(void 0),r,!1,e)}(ya("Dto.BackendApiModels.Read.TfnDeclarationDetailsWithMeta",[],Eu,(()=>[["Meta",ba(["AccountId",Ta])],["Data",xa(ya("Dto.BackendApiModels.Read.TfnDeclarationDetails",[],Tu,(()=>[["TfnInformation",va("Dto.BackendApiModels.Read.TfnInformation",[],Cu,(()=>[[["Item",Ta]],[["Item",Sa("Dto.Dto.ExemptionReasonDto",ka,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]]]))],["PreviousSurname",xa(Ta)],["ResidencyStatus",Sa("Dto.Dto.ResidencyStatusDto",ka,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])],["ResidencyStatusV2",va("Dto.Dto.ResidencyStatusV2Dto",[],hu,(()=>[[],[],[["Item",ba(["HomeCountry",xa(ya("Dto.Dto.CountryDto",[],pu,(()=>[["Code",Ta],["Name",Ta]])))])]]]))],["EmploymentBasis",Sa("Dto.Dto.EmploymentBasisDto",ka,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["IsTaxFreeThresholdClaimed",Ea],["HasDebtSupport",_a(Sa("Dto.Dto.DebtSupportDto",ka,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]])))]])),new li(1))),e);function Wu(e,t){return lo(0,(()=>{const n=ju(e,ii(new co(0),oi(Uu(t))));return $r.Delay((()=>$r.Bind(n,(e=>{let t,n;const r=e;return 1===r.tag?$r.Return(new xr(1,r.fields[0])):$r.ReturnFrom((t=r.fields[0],200===t.statusCode?(n=zu(t.responseText),$r.Return(n)):$r.Return(new xr(1,"Unexpected response from backend"))))}))))}))}function Yu(e,t,n){return lo(0,(()=>{let r;const o=e.PreExistingTfnDec;let i,a;switch(2===o.tag&&0===o.fields[0].tag?(i=0,a=o.fields[0].fields[0]):i=1,i){case 0:r=lo(0,(()=>uo(0,a)));break;case 1:r=Wu(t,n)}return $r.Delay((()=>$r.Bind(r,(r=>{let o,i,a;const s=r;return 1===s.tag?$r.Return(new xr(1,s.fields[0])):$r.ReturnFrom((o=s.fields[0],a=function(e,t){return ao(0,(()=>Sr((n=>{const r=n,o=$n(du,e.PreviousSurname.Value);return Sr((n=>{const i=n;return Sr((n=>{const a=0|n;return Sr((n=>{const s=n,u=dn($n(vu,e.DebtSupportCheckboxGroup.Value),In()),l=t.Data;if(null!=l){const e=l;let t;if(0===r.tag)t=In();else if(1===r.fields[0].tag){const n=0|xu(r.fields[0].fields[0]),o=e.TfnInformation;let i;switch(i=1===o.tag&&o.fields[0]===n?0:1,i){case 0:t=In();break;case 1:t=Nn(new Mu(2,new _u(1,n)))}}else t=Nn(new Mu(2,new _u(0,r.fields[0].fields[0].fields[0])));return so(0,mu(e.ResidencyStatusV2),(n=>{const r=Ru(n),l=1===r.tag?new Mu(5,i):ct(i,r.fields[0])?void 0:new Mu(5,i);return Vn(t,Vr(Gr((()=>jr(ct(o,e.PreviousSurname)?Fr():Lr(new Mu(3,o)),Gr((()=>jr(Ln(fn(l)),Gr((()=>jr(a!==e.EmploymentBasis?Lr(new Mu(6,a)):Fr(),Gr((()=>jr(s!==e.IsTaxFreeThresholdClaimed?Lr(new Mu(7,s)):Fr(),Gr((()=>ct(Un(u,{Compare:dt}),Un(e.HasDebtSupport,{Compare:dt}))?Fr():Lr(new Mu(8,u))))))))))))))))))}))}return so(0,0===r.tag?new xr(1,"New TFN declaration cannot have a truncated TFN"):1===r.fields[0].tag?new xr(0,new _u(1,xu(r.fields[0].fields[0]))):new xr(0,new _u(0,r.fields[0].fields[0].fields[0])),(e=>Nn(new Mu(1,{AccountId:t.Meta.AccountId,EmploymentBasis:a,HasDebtSupport:u,IsTaxFreeThresholdClaimed:s,PreviousSurname:o,ResidencyStatus:i,TfnInformation:e}))))}),Qr("missing is tax-free threshold claimed",$n((e=>1!==e.tag),e.ClaimTaxFreeThreshold.Selected)))}),Qr("missing employment basis",$n(gu,e.EmploymentBasisRadioButtonGroup.Value)))}),Qr("missing residency status",pn((e=>{const t=Ru(e);return 1===t.tag?void 0:t.fields[0]}),e.ResidencyStatus.Value)))}),Qr("missing TFN info",e.TfnInformation.Value))))()}(e,o),i=$r.Return(a),$r.Delay((()=>$r.Bind(i,(e=>{let r,i,a;const s=e;return 1===s.tag?$r.Return(new xr(1,s.fields[0])):$r.ReturnFrom((r=s.fields[0],Rn(r)?uo(0,o):(i=ju(t,(u=new $o(1,function(e,t){return JSON.stringify(t,wt(2,null),sn(e))}(0,function(e,t,n,r){const o=dn(t,new li(0)),i=dn(void 0,!0);return Hu(function(e){return null!=e?Qo(((e,t)=>new Lt(t[0])),e.Coders):ti()}(void 0),o,i,e)}(_a(va("Dto.Commands.TfnDeclarationCommandDto",[],Mu,(()=>[[["Item",ba(["AccountId",Ta],["EmploymentBasis",Sa("Dto.Dto.EmploymentBasisDto",ka,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["HasDebtSupport",_a(Sa("Dto.Dto.DebtSupportDto",ka,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))],["IsTaxFreeThresholdClaimed",Ea],["PreviousSurname",xa(Ta)],["ResidencyStatus",Sa("Dto.Dto.ResidencyStatusDto",ka,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])],["TfnInformation",Su()])]],[["Item",ba(["AccountId",Ta],["EmploymentBasis",Sa("Dto.Dto.EmploymentBasisDto",ka,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["HasDebtSupport",_a(Sa("Dto.Dto.DebtSupportDto",ka,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))],["IsTaxFreeThresholdClaimed",Ea],["PreviousSurname",xa(Ta)],["ResidencyStatus",Iu()],["TfnInformation",Su()])]],[["Item",Su()]],[["Item",xa(Ta)]],[["Item",Sa("Dto.Dto.ResidencyStatusDto",ka,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])]],[["Item",Iu()]],[["Item",Sa("Dto.Dto.EmploymentBasisDto",ka,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])]],[["Item",Ea]],[["Item",_a(Sa("Dto.Dto.DebtSupportDto",ka,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]]]))),new li(1))(r))),l=ii(new co(2),oi(Uu(n))),a=new po(l.url,l.method,l.headers,l.withCredentials,l.overridenMimeType,l.overridenResponseType,l.timeout,u),ai(new fo(0,"Content-Type","application/json"),a))),$r.Delay((()=>$r.Bind(i,(e=>{let t,n;const r=e;return 1===r.tag?$r.Return(new xr(1,r.fields[0])):$r.ReturnFrom((t=r.fields[0],200===t.statusCode?(n=zu(t.responseText),$r.Return(n)):$r.Return(new xr(1,"Unexpected response from backend"))))})))))));var u,l}))))))}))))}))}function Ku(e,t,n){Bn((n=>{try{n(t)}catch(t){e(t)}}),n)}function qu(){return In()}function Zu(e){return Nn((t=>{t(e)}))}function Ju(e,t,n,r,o){const i=function(e,t,n,r){const o=0|pt(e,n);if(0===o)throw new Error("The step of a range cannot be zero");const i=o>0;return n=>{const o=0|pt(n,t);return i&&o<=0||!i&&o>=0?[n,r(n,e)]:void 0}}(t,n,r,o);return Gr((()=>{return t=i,n=e,Or((()=>function(e,t){let n,r=t;return Mr((()=>{if(null!=n){const e=n[0];return n[1],e}return Ir()}),(()=>{if(n=e(r),null!=n){n[0];const e=n[1];return r=e,!0}return!1}),(()=>{}))}(t,n)));var t,n}))}class Xu extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class Qu{constructor(e){this.state=new Xu(0,mn(new Array(ht(dt,e,10)),0,ht(dt,e,10),null),0)}}function el(e){const t=e.state;if(1===t.tag){const n=0|t.fields[1],r=0|t.fields[2],o=t.fields[0],i=(r+1)%o.length|0;return e.state=i===n?new Xu(0,o,n):new Xu(1,o,n,i),sn(o[r])}}class tl extends Ft{constructor(e,t,n,r,o,i,a){super(),this.init=e,this.update=t,this.subscribe=n,this.view=r,this.setState=o,this.onError=i,this.syncDispatch=a}}function nl(e,t){const n=t.init(e),r=n[0],o=new Qu(10);let i=!1,a=r;const s=bt(1,t.syncDispatch,[e=>{if(i)!function(e,t){const n=e.state;if(1===n.tag){const i=0|n.fields[1],a=0|n.fields[2],s=n.fields[0];s[i]=t;const u=(i+1)%s.length|0;e.state=u===a?new Xu(1,(r=a,o=s,Array.from(Gr((()=>jr(Jr(r,o),Gr((()=>{return jr((e=r,t=o,Ur((()=>Pr(t)),((t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return sn(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(kr+"\\nParameter name: source")}}),(e=>{Ke(e)}))),Gr((()=>Xr((e=>Lr(null)),Ju(0,1,o.length,0,((e,t)=>e+t))))));var e,t}))))))),s.length,0):new Xu(1,s,u,a)}else{const r=0|n.fields[1],o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new Xu(1,o,i,r)}var r,o}(o,e);else{i=!0;let n=sn(e);for(;null!=n;){const e=un(n);try{const n=t.update(e,a),r=n[0];t.setState(r,s),Ku((n=>{t.onError([Kt(Wt("Error in command while handling: %A"))(e),n])}),s,n[1]),a=r}catch(n){t.onError([Kt(Wt("Unable to process the message: %A"))(e),n])}n=el(o)}i=!1}}]);t.setState(r,s),Ku((e=>{t.onError(["Error intitializing:",e])}),s,function(e){const t=_n();let n=t;const r=e=>{n=Pn(((e,t)=>{const n=new vn(t,void 0);return e.tail=n,n}),n,e)};if(We(e))e.forEach(r);else if(e instanceof vn)Bn(r,e);else{const t=Je(e);try{for(;t["System.Collections.IEnumerator.MoveNext"]();)r(t["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{Ke(t)}}const o=n,i=_n();return o.tail=i,kn(t)}(Ln([(()=>{try{return t.subscribe(r)}catch(e){return t.onError(["Unable to subscribe:",e]),qu()}})(),n[1]])))}class rl{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function ol(){return new rl}function il(e,t,n,r){nl(t,function(e,t){return new tl(t.init,t.update,t.subscribe,t.view,((e,t)=>{!function(e,t,n){e.state=sn(t),e.dispatcher=n;const r=e.listener;null!=r&&r(t)}(n,e,t)}),t.onError,t.syncDispatch)}(0,e()));const o=function(e){return e.state}(n);if(null!=o)return un(o);throw new Error("Elmish program has not initialized")}function al(e,t){return function(e,t,n){const r=rr(ol)[0],o=rr((()=>il(e,t,r))),i=o[1];return or((()=>(function(e){return e.hasDisposedOnce}(r)&&i(il(e,t,r)),nr((()=>{!function(e){const t=e.state;if(null!=t){const e=un(t);Ye(e)&&Ke(e)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}(r)})))),dn(n,[])),function(e,t){null==e.listener&&(e.listener=t)}(r,i),[o[0],e=>{!function(e,t){const n=e.dispatcher;null!=n&&n(t)}(r,e)}]}(e,void 0,t)}function sl(e,t,n){return al((()=>function(e,t,n){return new tl(e,t,(e=>qu()),n,wt(2,(e=>{const t=bt(1,n,[e]);return e=>{t(e)}})),(e=>{var t,n;t=e[0],n=e[1],console.error(sn(t),n)}),wt(2,(e=>e)))}((()=>e),t,((e,t)=>{}))),n)}class ul extends Ft{constructor(e,t){super(),this.Value=e,this.Meta=t}}function ll(){return new ul(void 0,{Valid:!1})}function cl(e){return new ul(e,{Valid:!0})}function fl(e){return new ul(e,{Valid:!1})}function dl(e){switch(e){case"Under18AndBelowTaxThreshold":return new lu(0);case"Pending":return new lu(1);case"Pensioner":return new lu(2);default:return}}function $l(e){switch(e){case"AustralianResidentForTaxPurposes":return new ou(0);case"ForeignResidentForTaxPurposes":return new ou(1);case"WorkingHolidayMaker":return iu;default:return}}function pl(e){switch(e.tag){case 1:return"ForeignResidentForTaxPurposes";case 2:return"WorkingHolidayMaker";default:return"AustralianResidentForTaxPurposes"}}function hl(e){switch(e){case"HELP":return new tu(0);case"VETStudentLoan":return new tu(1);case"FinancialSupplement":return new tu(2);case"StudentStartUpLoan":return new tu(3);case"TradeSupportLoan":return new tu(4);default:return}}function ml(e){switch(e){case"FullTime":return new su(0);case"PartTime":return new su(1);case"LabourHire":return new su(2);case"SuperIncomeStream":return new su(3);case"Casual":return new su(4);default:return}}function gl(e){return p("p",{className:Xt(" ",["block","text-sm","font-medium","text-gray-700","leading-5"]),children:e})}function wl(e){let t;return p("div",mt(Ln([["className","flex items-start p-4 space-x-3 bg-amber-50 rounded-md mt-4"],(t=[Xn,p("span",{className:"text-sm leading-5 font-normal text-amber-700",children:e})],["children",jn.Children.toArray(Array.from(t))])])))}class yl extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Yes","No"]}}class bl extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select","SelectInternal"]}}class vl extends Ft{constructor(e,t){super(),this.Selected=e,this.Meta=t}}function xl(e){return new vl(e,{Touched:!1})}function _l(e,t){return 1===e.tag?e.fields[1]||!t.Meta.Touched?new vl(e.fields[0],t.Meta):t:new vl(e.fields[0],{Touched:!0})}function Sl(e){const t=ct(e.Parent.State.Selected,e.Selection)?Vr(Gr((()=>jr(null!=e.Parent.Disable?Lr("bg-gray-50"):Lr("bg-white"),Gr((()=>jr(Lr("border-gray-200"),Gr((()=>jr(Lr("shadow-sm"),Gr((()=>null!=e.Parent.Disable?Lr("text-gray-400"):Lr("text-gray-900"))))))))))))):Vr(Gr((()=>jr(Lr("shadow-none"),Gr((()=>null!=e.Parent.Disable?Lr("text-gray-400"):Lr("text-gray-700")))))));return p("button",{className:Xt(" ",Vr(Gr((()=>jr(Lr("relative"),Gr((()=>jr(Lr("w-1/2"),Gr((()=>jr(Lr("border-gray-200"),Gr((()=>jr(Lr("rounded-md"),Gr((()=>jr(Lr("shadow-sm"),Gr((()=>jr(Lr("py-2"),Gr((()=>jr(Lr("text-sm"),Gr((()=>jr(Lr("font-medium"),Gr((()=>jr(Lr("whitespace-nowrap"),Gr((()=>jr(Lr("focus:outline-none"),Gr((()=>jr(Lr("focus:ring-inset"),Gr((()=>jr(Lr("focus:ring-1"),Gr((()=>jr(Lr("focus:ring-primary-focus"),Gr((()=>jr(Lr("focus:z-10"),Gr((()=>jr(Lr("w-auto"),Gr((()=>jr(Lr("px-8"),Gr((()=>jr(ct(e.Parent.Disable,e.Selection)?Lr("disabled:cursor-not-allowed"):Fr(),Gr((()=>t))))))))))))))))))))))))))))))))))))))))))))))))))))))),type:"button",name:"yesNoButtonGroup",onClick:t=>{e.Parent.Dispatch(new bl(0,e.Selection))},disabled:ct(e.Parent.Disable,e.Selection),children:Gt(e.Selection)})}function Cl(e){let t;return p("div",mt(Ln([["className",Xt(" ",["relative","self-start","bg-gray-100","rounded-lg","p-0.5","flex","mt-2","space-x-0.5"])],(t=[Sl({Parent:e,Selection:new yl(0)}),Sl({Parent:e,Selection:new yl(1)})],["children",jn.Children.toArray(Array.from(t))])])))}class Tl extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class El extends Ft{constructor(e){super(),this.Selected=e}}function kl(e){let t;const n=sl((r=e.InitialValue,[new El(r),qu()]),((t,n)=>function(e,t,n){const r=function(e,t){return new El(e.fields[0])}(t);return e(new ul(r.Selected,{Valid:null!=r.Selected})),[r,qu()]}(e.OnUpdate,t)));var r;return p("div",mt(Ln([["className",Xt(" ",["space-y-2","mt-2"])],(t=Vr(Gr((()=>Xr((t=>{let r,o;const i=t[0];return Lr(p("label",mt(Ln([["className",Xt(" ",["flex","items-start"])],(r=[p("input",{className:Xt(" ",["focus:ring-primary-focus","block","mt-0.5","mb-0.5","h-4","w-4","text-primary-base","border-gray-300"]),type:"radio",name:e.Name,id:i,checked:cn(n[0].Selected)===i,onChange:e=>{e.target.checked,n[1](new Tl(0,i))}}),p("label",mt(Ln([["className",Xt(" ",["ml-3","block","text-sm"])],["for",i],(o=Vr(Gr((()=>jr(Lr(p("span",{className:Xt(" ",["block","text-gray-900"]),children:t[1]})),Gr((()=>{const e=t[2];if(null==e)return Lr(null);{const t=e;return Lr(p("span",{className:Xt(" ",["block","text-gray-500"]),children:t}))}})))))),["children",jn.Children.toArray(Array.from(o))])])))],["children",jn.Children.toArray(Array.from(r))])]))))}),e.ValueLabelPairs)))),["children",jn.Children.toArray(Array.from(t))])])))}class Il extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetTfnInput","SetTfnTouched","SetTfnExemptionReason","SwitchEditingState","HideAlert"]}}class Al extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}class Nl extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","TfnValue"]}}class Rl extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Truncated","Editing"]}}class Ml extends Ft{constructor(e,t,n,r,o){super(),this.YesNoButtonGroup=e,this.TruncatedTfn=t,this.CurrentAlert=n,this.EditingState=r,this.TfnInputTouched=o}}function Dl(e){const t=e.EditingState;if(1===t.tag){const e=t.fields[0];return new ul($n((e=>new Nl(1,e)),e.Value),e.Meta)}return new ul(new Nl(0,cn(e.TruncatedTfn)),{Valid:!0})}const Ol=e=>function(e){return 1!==e.tag}($u(e));function Pl(e){const t=e.EditingState;if(1===t.tag){const n=t.fields[0],r=n.Value;if(null==r)return new Ml(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new Rl(1,new ul(n.Value,{Valid:!1})),e.TfnInputTouched);if(1===r.tag)return new Ml(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new Rl(1,new ul(n.Value,{Valid:!0})),e.TfnInputTouched);{const t=r.fields[0].fields[0];return new Ml(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new Rl(1,new ul(n.Value,{Valid:Ol(t)})),e.TfnInputTouched)}}return e}function Gl(e){const t=e.EditingState;if(1!==t.tag)return"";{const e=t.fields[0].Value;let n,r;switch(null!=e&&0===e.tag?(n=0,r=e.fields[0]):n=1,n){case 0:return r.fields[0];case 1:return""}}}function Bl(e){if(e.TfnInputTouched){const t=e.EditingState;return 1===t.tag&&!t.fields[0].Meta.Valid}return!1}function Fl(e){let t,n,r,o;const i=sl(function(e){let t,n,r;return[Pl(new Ml(xl(null!=e&&1===e.tag&&1===e.fields[0].tag?new yl(1):new yl(0)),(t=e,null!=t&&0===t.tag?(n=t.fields[0],n):void 0),void 0,null==e?new Rl(1,ll()):1===e.tag?(r=e.fields[0],new Rl(1,new ul(r,{Valid:!1}))):new Rl(0),!1)),qu()]}(e.InitialValue),((t,n)=>function(e,t,n){const r=function(e,t){switch(e.tag){case 2:return new Ml(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,t.EditingState,!0);case 1:{const n=e.fields[0],r=new Al(0,new uu(0,n)),o=Ol(n);return t.EditingState.tag,new Ml(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new Rl(1,new ul(r,{Valid:o})),t.TfnInputTouched)}case 3:{const n=e.fields[0],r=$n((e=>new Al(1,e)),pn(dl,n.Value));return t.EditingState.tag,new Ml(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new Rl(1,new ul(r,n.Meta)),t.TfnInputTouched)}case 4:return 1===t.EditingState.tag?new Ml(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new Rl(0),t.TfnInputTouched):new Ml(t.YesNoButtonGroup,t.TruncatedTfn,new to(2,"Please click the continue button at the end of\n this form to save the changes to your TFN."),new Rl(1,ll()),!1);case 5:return Pl(new Ml(t.YesNoButtonGroup,t.TruncatedTfn,void 0,t.EditingState,t.TfnInputTouched));default:{const n=e.fields[0];let r,o,i;switch(n.tag,o=0,i=n.fields[0],o){case 0:{const e=[i,t.EditingState];if(1===e[0].tag)if(1===e[1].tag){const n=e[1].fields[0].Value;let o;switch(o=null!=n&&1===n.tag?0:1,o){case 0:r=t.EditingState;break;case 1:r=new Rl(1,ll())}}else r=new Rl(1,ll());else if(1===e[1].tag){const n=[e[1].fields[0].Value,t.TruncatedTfn];let o;switch(o=null!=n[0]&&0===n[0].tag?0:null!=n[1]?1:2,o){case 0:r=t.EditingState;break;case 1:r=new Rl(0);break;case 2:r=new Rl(1,ll())}}else r=new Rl(0);break}}return new Ml(_l(n,t.YesNoButtonGroup),t.TruncatedTfn,t.CurrentAlert,r,t.TfnInputTouched)}}}(t,n);return e(Dl(r)),[r,qu()]}(e.OnUpdate,t,n))),a=i[0],s=i[1],u=null==a.TruncatedTfn?null:p("div",mt(Nn((t=[p("button",mt(Ln([["className",Xt(" ",["relative","inline-flex","items-center","space-x-2","px-3","sm:py-2","py-3","border","border-gray-300","text-sm","font-medium","rounded-r-md","text-gray-700","bg-gray-50","hover:bg-gray-100","focus:outline-none","focus:ring-1","focus:ring-primary-focus","focus:border-primary-focus","focus:z-20","-ml-px"])],["type","button"],(n=Vr(Gr((()=>ct(a.EditingState,new Rl(0))?jr(Lr(Wn),Gr((()=>Lr(p("span",{children:["Edit"]}))))):jr(Lr(Yn),Gr((()=>Lr(p("span",{children:["Cancel"]})))))))),["children",jn.Children.toArray(Array.from(n))]),["onClick",e=>{s(new Il(4))}]])))],["children",jn.Children.toArray(Array.from(t))]))));return p("div",mt(Ln([["className",Xt(" ",Qn)],(r=[gl("Do you have your Tax File Number (TFN)?"),p(Cl,{Disable:void 0,Dispatch:e=>{s(new Il(0,e))},State:a.YesNoButtonGroup}),p("div",mt(Ln([["className",Xt(" ",["mt-4"])],(o=Vr(Gr((()=>{let e,t,n,r,o,i;return jr((e=a.YesNoButtonGroup.Selected,null!=e?1===e.tag?Lr(p(kl,(t=Hn((e=>[Gt(e[0]),e[1],e[2]]),Ln([[new lu(1),"My TFN is pending",void 0],[new lu(0),"I'm under 18 and don't have a TFN",void 0],[new lu(2),"I have an exemption from quoting a TFN","E.g. receiving a social security or service pension"]])),{InitialValue:(n=Dl(a).Value,null!=n&&1===n.tag&&1===n.fields[0].tag?(r=n.fields[0].fields[0],Gt(r)):void 0),Name:"TfnExemption",OnUpdate:e=>{s(new Il(3,e))},ValueLabelPairs:t}))):(o=[a.TruncatedTfn,a.EditingState],null!=o[0]&&0===o[1].tag?(i=o[0],jr(Lr(gl("Enter your TFN")),Gr((()=>{let e,t,n;return Lr(p("div",mt(Ln([["className",Xt(" ",["mt-1","flex","rounded-md","shadow-sm"])],(e=[p("div",mt(Ln([["className","relative flex items-stretch flex-grow"],(t=[p("input",mt(Ln([["className",Xt(" ",["focus:ring-primary-focus","focus:border-primary-focus","bg-gray-50","focus:z-20","relative","block","w-full","rounded-none","rounded-l-md","pl-3","sm:text-sm","text-base","border","border-gray-300","text-gray-500"])],["disabled",!0],(n=`*** *** *${i}`,["ref",e=>{null==e||ct(e.value,n)||(e.value=n)}])])))],["children",jn.Children.toArray(Array.from(t))])]))),u],["children",jn.Children.toArray(Array.from(e))])]))))})))):jr(Lr(gl("Enter your TFN")),Gr((()=>{let e;return Lr(p("div",mt(Ln([["className",Xt(" ",["mt-1"])],(e=Vr(Gr((()=>{let e,t;return jr(Lr(p("div",mt(Ln([["className",Xt(" ",["relative","flex","items-stretch","flex-grow"])],(e=[p("input",mt(Ln([["className",Xt(" ",Vr(Gr((()=>jr(Lr("block"),Gr((()=>jr(Lr("w-full"),Gr((()=>jr(Lr("focus:outline-none"),Gr((()=>jr(Lr("text-base"),Gr((()=>jr(Lr("focus:z-20"),Gr((()=>jr(Lr("relative"),Gr((()=>jr(Lr("sm:text-sm"),Gr((()=>jr(Lr("rounded-md"),Gr((()=>jr(Lr("border-gray-300"),Gr((()=>jr(Lr("focus:ring-primary-focus"),Gr((()=>jr(Lr("focus:border-primary-focus"),Gr((()=>jr(Lr("block"),Gr((()=>jr(Lr("w-full"),Gr((()=>jr(null==a.TruncatedTfn?Lr("rounded-md"):Lr("rounded-none rounded-l-md"),Gr((()=>Bl(a)?["border-red-300","text-red-900","placeholder-red-300","focus:ring-red-500","focus:border-red-500"]:Fr()))))))))))))))))))))))))))))))))))))))))))))))],["type","text"],["onChange",e=>{s(new Il(1,nn(Ls,e.target.value)))}],(t=Gl(a),["ref",e=>{null==e||ct(e.value,t)||(e.value=t)}]),["onBlur",e=>{s(new Il(2))}],["inputMode","numeric"],["data-testid","tfn-input"]]))),u],["children",jn.Children.toArray(Array.from(e))])])))),Gr((()=>Bl(a)?Lr(p("div",{className:Xt(" ",["mt-1","text-sm","text-red-600"]),children:"That isn’t a valid Tax File Number"})):Fr())))}))),["children",jn.Children.toArray(Array.from(e))])]))))})))):Lr(null)),Gr((()=>{let e;return Lr((e=Vr(Gr((()=>{const e=a.CurrentAlert;return Lr(null==e?null:p(io,{alert:e,hideAlert:()=>{s(new Il(5))}}))}))),p("div",{children:jn.Children.toArray(Array.from(e))})))})))}))),["children",jn.Children.toArray(Array.from(o))])])))],["children",jn.Children.toArray(Array.from(r))])])))}let Ll="undefined"!=typeof window?ne:te;function Vl(e){let t=re(e);return Ll((()=>{t.current=e}),[e]),t}function Hl(e,t){let[n,r]=Q(e),o=Vl(e);return Ll((()=>r(o.current)),[o,r,...t]),n}function Ul(){let e=[],t=[],n={enqueue(e){t.push(e)},addEventListener:(e,t,r,o)=>(e.addEventListener(t,r,o),n.add((()=>e.removeEventListener(t,r,o)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>n.requestAnimationFrame((()=>n.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return n.add((()=>clearTimeout(t)))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0){let[t]=e.splice(n,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return n}function jl(){let[e]=Q(Ul);return te((()=>()=>e.dispose()),[e]),e}let zl=function(e){let t=Vl(e);return ze.useCallback(((...e)=>t.current(...e)),[t])},Wl={serverHandoffComplete:!1};var Yl;let Kl=0;function ql(){return++Kl}let Zl=null!=(Yl=ze.useId)?Yl:function(){let e=function(){let[e,t]=Q(Wl.serverHandoffComplete);return te((()=>{!0!==e&&t(!0)}),[e]),te((()=>{!1===Wl.serverHandoffComplete&&(Wl.serverHandoffComplete=!0)}),[]),e}(),[t,n]=ze.useState(e?ql:null);return Ll((()=>{null===t&&n(ql())}),[t]),null!=t?""+t:void 0};function Jl(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Jl),r}function Xl(e){return"undefined"==typeof window?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Ql=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var ec=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(ec||{}),tc=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(tc||{}),nc=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(nc||{}),rc=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(rc||{});function oc(e,t,n){let r=Vl(t);te((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}function ic(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function ac(e,t){let[n,r]=Q((()=>ic(e)));return Ll((()=>{r(ic(e))}),[e.type,e.as]),Ll((()=>{n||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}["textarea","input"].join(",");let sc=Symbol();function uc(...e){let t=re(e);te((()=>{t.current=e}),[e]);let n=zl((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[sc])))?void 0:n}var lc=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(lc||{});var cc=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(cc||{}),fc=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(fc||{});function dc({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a}){let s=pc(t,e);if(i)return $c(s,n,r,a);let u=null!=o?o:0;if(2&u){let{static:e=!1,...t}=s;if(e)return $c(t,n,r,a)}if(1&u){let{unmount:e=!0,...t}=s;return Jl(e?0:1,{0:()=>null,1:()=>$c({...t,hidden:!0,style:{display:"none"}},n,r,a)})}return $c(s,n,r,a)}function $c(e,t={},n,r){let{as:o=n,children:i,refName:a="ref",...s}=gc(e,["unmount","static"]),u=void 0!==e.ref?{[a]:e.ref}:{},l="function"==typeof i?i(t):i;s.className&&"function"==typeof s.className&&(s.className=s.className(t));let c={};if(o===m&&Object.keys(mc(s)).length>0){if(!He(l)||Array.isArray(l)&&l.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));return Ue(l,Object.assign({},pc(l.props,mc(gc(s,["ref"]))),c,u))}return p(o,Object.assign({},gc(s,["ref"]),o!==m&&u,o!==m&&c),l)}function pc(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if(t.defaultPrevented)return;e(t,...r)}}});return t}function hc(e){var t;return Object.assign(we(e),{displayName:null!=(t=e.displayName)?t:e.name})}function mc(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function gc(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function wc(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))bc(n,yc(t,r),o);return n}function yc(e,t){return e?e+"["+t+"]":t}function bc(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())bc(e,yc(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):wc(n,t,e)}var vc=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(vc||{});let xc=hc((function(e,t){let{features:n=1,...r}=e;return dc({ourProps:{ref:t,"aria-hidden":2==(2&n)||void 0,style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&n)&&2!=(2&n)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})})),_c=F(null);_c.displayName="OpenClosedContext";var Sc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Sc||{});function Cc({value:e,children:t}){return ze.createElement(_c.Provider,{value:e},t)}var Tc=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Tc||{}),Ec=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ec||{}),kc=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(kc||{}),Ic=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Ic||{}),Ac=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e))(Ac||{});function Nc(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=function(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),o=n?r.indexOf(n):null;return-1===o&&(o=null),{options:r,activeOptionIndex:o}}let Rc={1:e=>e.dataRef.current.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1},0(e){if(e.dataRef.current.disabled||0===e.comboboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,comboboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||e.dataRef.current.optionsRef.current&&!e.dataRef.current.optionsPropsRef.current.static&&1===e.comboboxState)return e;let r=Nc(e);if(null===r.activeOptionIndex){let e=r.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(r.activeOptionIndex=e)}let o=function(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1,i=(()=>{switch(e.focus){case 0:return n.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=n.slice().reverse().findIndex(((e,n,r)=>!(-1!==o&&r.length-n-1>=o||t.resolveDisabled(e))));return-1===e?e:n.length-1-e}case 2:return n.findIndex(((e,n)=>!(n<=o||t.resolveDisabled(e))));case 3:{let e=n.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:n.length-1-e}case 4:return n.findIndex((n=>t.resolveId(n)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===i?r:i}(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,activeOptionIndex:o,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=Nc(e,(e=>[...e,n]));null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n));let o={...e,...r,activationTrigger:1};return e.dataRef.current.__demoMode&&void 0===e.dataRef.current.value&&(o.activeOptionIndex=0),o},4:(e,t)=>{let n=Nc(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}}},Mc=F(null);function Dc(e){let t=ae(Mc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Dc),t}return t}Mc.displayName="ComboboxActionsContext";let Oc=F(null);function Pc(e){let t=ae(Oc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Pc),t}return t}function Gc(e,t){return Jl(t.type,Rc,e,t)}Oc.displayName="ComboboxDataContext";let Bc=m,Fc=hc((function(e,t){let{name:n,value:r,onChange:o,disabled:i=!1,__demoMode:a=!1,nullable:s=!1,multiple:u=!1,...l}=e,[c,f]=ee(Gc,{dataRef:{current:null},comboboxState:a?0:1,options:[],activeOptionIndex:null,activationTrigger:1}),d=re(!1),$=re({static:!1,hold:!1}),p=re({displayValue:void 0}),h=re(null),m=re(null),g=re(null),w=re(null),y=zl(((e,t)=>e===t)),b=ie((e=>Jl(v.mode,{1:()=>r.some((t=>y(t,e))),0:()=>y(r,e)})),[r]),v=oe((()=>({...c,optionsPropsRef:$,inputPropsRef:p,labelRef:h,inputRef:m,buttonRef:g,optionsRef:w,value:r,disabled:i,mode:u?1:0,get activeOptionIndex(){if(d.current&&null===c.activeOptionIndex&&c.options.length>0){let e=c.options.findIndex((e=>!e.dataRef.current.disabled));if(-1!==e)return e}return c.activeOptionIndex},compare:y,isSelected:b,nullable:s,__demoMode:a})),[r,i,u,s,a,c]);Ll((()=>{c.dataRef.current=v}),[v]),function(e,t,n=!0){let r=re(!1);function o(n,o){if(!r.current||n.defaultPrevented)return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),a=o(n);if(null!==a&&a.ownerDocument.documentElement.contains(a)){for(let e of i){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(a))return}return!function(e,t=0){var n;return e!==(null==(n=Xl(e))?void 0:n.body)&&Jl(t,{0:()=>e.matches(Ql),1(){let t=e;for(;null!==t;){if(t.matches(Ql))return!0;t=t.parentElement}return!1}})}(a,rc.Loose)&&-1!==a.tabIndex&&n.preventDefault(),t(n,a)}}te((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]),oc("click",(e=>o(e,(e=>e.target))),!0),oc("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}([v.buttonRef,v.inputRef,v.optionsRef],(()=>f({type:1})),0===v.comboboxState);let x=oe((()=>({open:0===v.comboboxState,disabled:i,activeIndex:v.activeOptionIndex,activeOption:null===v.activeOptionIndex?null:v.options[v.activeOptionIndex].dataRef.current.value})),[v,i]),_=ie((()=>{var e;if(!v.inputRef.current)return;let t=p.current.displayValue;v.inputRef.current.value="function"==typeof t?null!=(e=t(r))?e:"":"string"==typeof r?r:""}),[r,v.inputRef,p]),S=zl((e=>{let t=v.options.find((t=>t.id===e));!t||(A(t.dataRef.current.value),_())})),C=zl((()=>{if(null!==v.activeOptionIndex){let{dataRef:e,id:t}=v.options[v.activeOptionIndex];A(e.current.value),_(),f({type:2,focus:lc.Specific,id:t})}})),T=zl((()=>{f({type:0}),d.current=!0})),E=zl((()=>{f({type:1}),d.current=!1})),k=zl(((e,t,n)=>(d.current=!1,e===lc.Specific?f({type:2,focus:lc.Specific,id:t,trigger:n}):f({type:2,focus:e,trigger:n})))),I=zl(((e,t)=>(f({type:3,id:e,dataRef:t}),()=>f({type:4,id:e})))),A=zl((e=>Jl(v.mode,{0:()=>o(e),1(){let t=v.value.slice(),n=t.indexOf(e);return-1===n?t.push(e):t.splice(n,1),o(t)}}))),N=oe((()=>({onChange:A,registerOption:I,goToOption:k,closeCombobox:E,openCombobox:T,selectActiveOption:C,selectOption:S})),[]);Ll((()=>{1===v.comboboxState&&_()}),[_,v.comboboxState]),Ll(_,[_]);let R=null===t?{}:{ref:t};return ze.createElement(Mc.Provider,{value:N},ze.createElement(Oc.Provider,{value:v},ze.createElement(Cc,{value:Jl(v.comboboxState,{0:Sc.Open,1:Sc.Closed})},null!=n&&null!=r&&wc({[n]:r}).map((([e,t])=>ze.createElement(xc,{features:vc.Hidden,...mc({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),dc({ourProps:R,theirProps:l,slot:x,defaultTag:Bc,name:"Combobox"}))))})),Lc=hc((function(e,t){var n,r;let{value:o,onChange:i,displayValue:a,type:s="text",...u}=e,l=Pc("Combobox.Input"),c=Dc("Combobox.Input"),f=uc(l.inputRef,t),d=l.inputPropsRef,$=`headlessui-combobox-input-${Zl()}`,p=jl();Ll((()=>{d.current.displayValue=a}),[a,d]);let h=zl((e=>{switch(e.key){case Tc.Backspace:case Tc.Delete:if(0!==l.mode||!l.nullable)return;let t=e.currentTarget;p.requestAnimationFrame((()=>{""===t.value&&(c.onChange(null),l.optionsRef.current&&(l.optionsRef.current.scrollTop=0),c.goToOption(lc.Nothing))}));break;case Tc.Enter:if(0!==l.comboboxState)return;if(e.preventDefault(),e.stopPropagation(),null===l.activeOptionIndex)return void c.closeCombobox();c.selectActiveOption(),0===l.mode&&c.closeCombobox();break;case Tc.ArrowDown:return e.preventDefault(),e.stopPropagation(),Jl(l.comboboxState,{0:()=>{c.goToOption(lc.Next)},1:()=>{c.openCombobox()}});case Tc.ArrowUp:return e.preventDefault(),e.stopPropagation(),Jl(l.comboboxState,{0:()=>{c.goToOption(lc.Previous)},1:()=>{c.openCombobox(),p.nextFrame((()=>{l.value||c.goToOption(lc.Last)}))}});case Tc.Home:case Tc.PageUp:return e.preventDefault(),e.stopPropagation(),c.goToOption(lc.First);case Tc.End:case Tc.PageDown:return e.preventDefault(),e.stopPropagation(),c.goToOption(lc.Last);case Tc.Escape:return 0!==l.comboboxState?void 0:(e.preventDefault(),l.optionsRef.current&&!l.optionsPropsRef.current.static&&e.stopPropagation(),c.closeCombobox());case Tc.Tab:if(0!==l.comboboxState)return;c.selectActiveOption(),c.closeCombobox()}})),m=zl((e=>{c.openCombobox(),null==i||i(e)})),g=Hl((()=>{if(l.labelRef.current)return[l.labelRef.current.id].join(" ")}),[l.labelRef.current]),w=oe((()=>({open:0===l.comboboxState,disabled:l.disabled})),[l]);return dc({ourProps:{ref:f,id:$,role:"combobox",type:s,"aria-controls":null==(n=l.optionsRef.current)?void 0:n.id,"aria-expanded":l.disabled?void 0:0===l.comboboxState,"aria-activedescendant":null===l.activeOptionIndex||null==(r=l.options[l.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===l.mode||void 0,"aria-labelledby":g,disabled:l.disabled,onKeyDown:h,onChange:m},theirProps:u,slot:w,defaultTag:"input",name:"Combobox.Input"})})),Vc=hc((function(e,t){var n;let r=Pc("Combobox.Button"),o=Dc("Combobox.Button"),i=uc(r.buttonRef,t),a=`headlessui-combobox-button-${Zl()}`,s=jl(),u=zl((e=>{switch(e.key){case Tc.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&o.openCombobox(),s.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Tc.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(o.openCombobox(),s.nextFrame((()=>{r.value||o.goToOption(lc.Last)}))),s.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Tc.Escape:return 0!==r.comboboxState?void 0:(e.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&e.stopPropagation(),o.closeCombobox(),s.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})})));default:return}})),l=zl((e=>{if(function(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}(e.currentTarget))return e.preventDefault();0===r.comboboxState?o.closeCombobox():(e.preventDefault(),o.openCombobox()),s.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}))})),c=Hl((()=>{if(r.labelRef.current)return[r.labelRef.current.id,a].join(" ")}),[r.labelRef.current,a]),f=oe((()=>({open:0===r.comboboxState,disabled:r.disabled})),[r]),d=e;return dc({ourProps:{ref:i,id:a,type:ac(e,r.buttonRef),tabIndex:-1,"aria-haspopup":!0,"aria-controls":null==(n=r.optionsRef.current)?void 0:n.id,"aria-expanded":r.disabled?void 0:0===r.comboboxState,"aria-labelledby":c,disabled:r.disabled,onClick:l,onKeyDown:u},theirProps:d,slot:f,defaultTag:"button",name:"Combobox.Button"})})),Hc=hc((function(e,t){let n=Pc("Combobox.Label"),r=`headlessui-combobox-label-${Zl()}`;return dc({ourProps:{ref:uc(n.labelRef,t),id:r,onClick:zl((()=>{var e;return null==(e=n.inputRef.current)?void 0:e.focus({preventScroll:!0})}))},theirProps:e,slot:oe((()=>({open:0===n.comboboxState,disabled:n.disabled})),[n]),defaultTag:"label",name:"Combobox.Label"})})),Uc=cc.RenderStrategy|cc.Static,jc=hc((function(e,t){var n;let{hold:r=!1,...o}=e,i=Pc("Combobox.Options"),a=uc(i.optionsRef,t),s=`headlessui-combobox-options-${Zl()}`,u=ae(_c),l=null!==u?u===Sc.Open:0===i.comboboxState;Ll((()=>{var t;i.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[i.optionsPropsRef,e.static]),Ll((()=>{i.optionsPropsRef.current.hold=r}),[i.optionsPropsRef,r]),function({container:e,accept:t,walk:n,enabled:r=!0}){let o=re(t),i=re(n);te((()=>{o.current=t,i.current=n}),[t,n]),Ll((()=>{if(!e||!r)return;let t=Xl(e);if(!t)return;let n=o.current,a=i.current,s=Object.assign((e=>n(e)),{acceptNode:n}),u=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,s,!1);for(;u.nextNode();)a(u.currentNode)}),[e,r,o,i])}({container:i.optionsRef.current,enabled:0===i.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let c=Hl((()=>{var e,t,n;return null!=(n=null==(e=i.labelRef.current)?void 0:e.id)?n:null==(t=i.buttonRef.current)?void 0:t.id}),[i.labelRef.current,i.buttonRef.current]),f=oe((()=>({open:0===i.comboboxState})),[i]);return dc({ourProps:{"aria-activedescendant":null===i.activeOptionIndex||null==(n=i.options[i.activeOptionIndex])?void 0:n.id,"aria-labelledby":c,role:"listbox",id:s,ref:a},theirProps:o,slot:f,defaultTag:"ul",features:Uc,visible:l,name:"Combobox.Options"})})),zc=hc((function(e,t){var n,r;let{disabled:o=!1,value:i,...a}=e,s=Pc("Combobox.Option"),u=Dc("Combobox.Option"),l=`headlessui-combobox-option-${Zl()}`,c=null!==s.activeOptionIndex&&s.options[s.activeOptionIndex].id===l,f=s.isSelected(i),d=re(null),$=Vl({disabled:o,value:i,domRef:d,textValue:null==(r=null==(n=d.current)?void 0:n.textContent)?void 0:r.toLowerCase()}),p=uc(t,d),h=zl((()=>u.selectOption(l)));Ll((()=>u.registerOption(l,$)),[$,l]);let m=re(!s.__demoMode);Ll((()=>{if(!s.__demoMode)return;let e=Ul();return e.requestAnimationFrame((()=>{m.current=!0})),e.dispose}),[]),Ll((()=>{if(0!==s.comboboxState||!c||!m.current||0===s.activationTrigger)return;let e=Ul();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=d.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[d,c,s.comboboxState,s.activationTrigger,s.activeOptionIndex]);let g=zl((e=>{var t;if(o)return e.preventDefault();h(),0===s.mode&&(u.closeCombobox(),null==(t=s.inputRef.current)||t.focus({preventScroll:!0}))})),w=zl((()=>{if(o)return u.goToOption(lc.Nothing);u.goToOption(lc.Specific,l)})),y=zl((()=>{o||c||u.goToOption(lc.Specific,l,0)})),b=zl((()=>{o||!c||s.optionsPropsRef.current.hold||u.goToOption(lc.Nothing)})),v=oe((()=>({active:c,selected:f,disabled:o})),[c,f,o]);return dc({ourProps:{id:l,ref:p,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":!0===f||void 0,disabled:void 0,onClick:g,onFocus:w,onPointerMove:y,onMouseMove:y,onPointerLeave:b,onMouseLeave:b},theirProps:a,slot:v,defaultTag:"li",name:"Combobox.Option"})})),Wc=Object.assign(Fc,{Input:Lc,Button:Vc,Label:Hc,Options:jc,Option:zc});class Yc extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Value","OnChange","Children"]}}class Kc extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["DisplayValue","OnChange","ClassName","AutoComplete"]}}function qc(e){const t=Us(e,1);return p(Wc.Input,t)}class Zc extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ClassName"]}}function Jc(e,t){const n=Us(e,1);return p(Wc.Options,n,...t)}class Xc extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ClassName","Children"]}}function Qc(e){const t=Us(e,1);return p(Wc.Button,t)}class ef extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Key","Value","ClassName","Children"]}}class tf extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetResidencyStatusRadioBox","SetCountry"]}}class nf extends Ft{constructor(e){super(),this.ResidencyStatus=e}}function rf(e){return function(e){let t,n;switch(null==e?t=2:1===e.tag?t=0:2===e.tag?(t=1,n=e.fields[0]):t=0,t){case 0:return!0;case 1:return null!=n.HomeCountry;case 2:return!1}}(e)?cl(e):fl(e)}function of(e){return new nf(rf(e.ResidencyStatus.Value))}function af(e,t,n){let r,o;const i=ur(""),a=e=>{let t;return dn($n((e=>e.Name),(t=ru(e),1===t.tag?void 0:t.fields[0])),"")};let s;const u=ln(i[0]);let l,c;switch(null!=u?""===u?l=0:(l=1,c=u):l=0,l){case 0:s=t;break;case 1:f=(e,t)=>{const n=e=>{return(t=e,t.replace(new RegExp(Ot(" "),"g"),"")).toLocaleLowerCase();var t},r=n(t),o=n(c);return r.indexOf(o)>=0},s=function(e,t){return Wo(e.comparer,Do(e.comparer,t,e.tree))}(t,f)}var f;return function(e){const t=Us(e,1);return p(Wc,t)}(Ln([new Yc(0,a(e)),new Yc(1,n),new Yc(2,[p("div",mt(Ln([["className","relative mt-1"],(r=[p("div",mt(Ln([["className","relative w-full cursor-default overflow-hidden focus:outline-none focus:border-primary-focus"],(o=[qc(Ln([new Kc(0,a(e)),new Kc(2,"block w-full pr-10 focus:outline-none text-base sm:text-sm rounded-md border-gray-300 focus:border-primary-focus shadow-none focus:ring-0"),new Kc(1,(e=>{i[1](e.target.value)})),new Kc(3,"off")])),Qc(Ln([new Xc(0,"absolute inset-y-0 right-0 flex items-center pr-2"),new Xc(1,[Jn])]))],["children",jn.Children.toArray(Array.from(o))])]))),Jc(Nn(new Zc(0,"absolute mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-sm shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm z-50")),Vr(Gr((()=>jr(0===qo(s)?Lr(p("div",{className:"relative cursor-default select-none py-2 px-4 text-gray-700",children:jn.Children.toArray(["Nothing found"])})):Fr(),Gr((()=>Xr((e=>{const t=e,n=t[0];return Lr(function(e){const t=Us(e,1);return p(Wc.Option,t)}(Ln([new ef(0,n),new ef(1,n),new ef(2,"relative cursor-default select-none"),new ef(3,(e=>{let n;const r=[e.active,e.selected];let o;switch(o=r[0]||r[1]?1:0,o){case 0:n="bg-white text-black";break;case 1:n="bg-primary-base"}return[p("span",{className:"py-2 pl-2 pr-4 block truncate "+n,children:t[1]})]}))])))}),s))))))))],["children",jn.Children.toArray(Array.from(r))])])))])]))}function sf(e){let t;const n=sl((r=e.InitialValue,[of(new nf(fl(r))),qu()]),((t,n)=>function(e,t,n){const r=function(e,t){if(1===e.tag){let t;const n=ru(dn(e.fields[0].Value,""));return t=1===n.tag?void 0:n.fields[0],of(new nf(fl(null==t?iu:au(t))))}return of(new nf(fl(pn($l,e.fields[0].Value))))}(t);return e(r.ResidencyStatus),[r,qu()]}(e.OnUpdate,t)));var r;const o=n[0],i=n[1];return p("div",mt(Nn((t=Vr(Gr((()=>jr(Lr(gl("Are you an Australian resident for tax purposes or a working holiday maker?")),Gr((()=>{let e;return jr(Lr(p(kl,(e=Hn((e=>[pl(e[0]),e[1],e[2]]),Ln([[new ou(0),"Australian resident for tax purposes",void 0],[new ou(1),"Foreign resident",void 0],[new ou(2,{HomeCountry:void 0}),"Working holiday maker",void 0]])),{InitialValue:$n(pl,o.ResidencyStatus.Value),Name:"ResidencyStatus",OnUpdate:e=>{i(new tf(0,e))},ValueLabelPairs:e}))),Gr((()=>{let e;const t=o.ResidencyStatus.Value;let n,r;switch(null!=t&&2===t.tag?(n=0,r=t.fields[0]):n=1,n){case 0:return Lr(p("div",mt(Ln([["className",Xt(" ",["mt-4"])],(e=[gl("Your home country where your visa was issued"),af(dn($n((e=>e.Code),r.HomeCountry),""),eu,(e=>{i(new tf(1,cl(e)))}))],["children",jn.Children.toArray(Array.from(e))])]))));case 1:return Lr(null)}})))})))))),["children",jn.Children.toArray(Array.from(t))]))))}class uf extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetTfnInformation","SetPreviousSurname","SetResidencyStatus","SetClaimTaxFreeThreshold","SetDebtSupport","SetEmploymentBasis","GetData","ShowAlert","HideAlert","Saved","AppReady"]}}class lf extends Ft{constructor(e,t,n,r,o,i,a,s){super(),this.PreExistingTfnDec=e,this.CurrentAlert=t,this.TfnInformation=n,this.PreviousSurname=r,this.ResidencyStatus=o,this.ClaimTaxFreeThreshold=i,this.DebtSupportCheckboxGroup=a,this.EmploymentBasisRadioButtonGroup=s}}class cf extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Web","ReactNative","WebComponent"]}}function ff(){const e=tn(document.URL,["/"],null,0),t=wn("web",e,{Equals:(e,t)=>e===t,GetHashCode:ot}),n=wn("react-native",e,{Equals:(e,t)=>e===t,GetHashCode:ot}),r=[ln(document.querySelector("tax-component")),t,n];let o;switch(o=null==r[0]?r[1]?r[2]?3:1:r[2]?2:3:0,o){case 0:return new xr(0,new cf(2,r[0]));case 1:return new xr(0,new cf(0));case 2:return new xr(0,new cf(1));case 3:return new xr(1,"Could not determine the embed mode")}}class df extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SuccessRedirectionUrl"]}}function $f(){let e;const t=ff();var n;0===t.tag&&(0===t.fields[0].tag?Kr((e=>{window.parent.location.href=e}),fn((n=new df(0),ln(sessionStorage.getItem(function(e){return Gt(e)}(n)))))):1===t.fields[0].tag?Kr((e=>{let t;t=JSON.stringify({stepStatus:"completed"}),e.postMessage(t)}),fn(window.ReactNativeWebView)):(e=new CustomEvent("step-completion",{bubbles:!0,detail:"tax"}),t.fields[0].fields[0].dispatchEvent(e)))}function pf(e,t){let n;switch(e.tag){case 1:return[new lf(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,e.fields[0],t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),qu()];case 2:{const r=e.fields[0];return[new lf(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,r,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),(n=r.Value,null==n?qu():1===n.tag?Zu(new uf(3,new bl(1,new yl(1),!1))):2===n.tag?Zu(new uf(3,new bl(1,new yl(1),!0))):Zu(new uf(3,new bl(1,new yl(0),!1))))]}case 3:return[new lf(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,_l(e.fields[0],t.ClaimTaxFreeThreshold),t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),qu()];case 4:return[new lf(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,e.fields[0],t.EmploymentBasisRadioButtonGroup),qu()];case 5:{const n=pn(ml,e.fields[0].Value);return[new lf(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,new ul(n,{Valid:null!=n})),qu()]}case 6:{const n=e.fields[0],r=new lf(n,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),o=Zu(new uf(7,new to(1,"There was an error loading your tax declaration. Please try refreshing this page.")));!function(){let e,t;const n=ln(document.getElementById("external-loading-page-container"));Kr((t=document.body,e=e=>t.removeChild(e),t=>{e(t)}),fn(n))}();const i=Zu(new uf(10));if(2===n.tag){if(1===n.fields[0].tag)return[r,o];{const e=$n((e=>function(e,t){return ao(0,(()=>{let n;return Sr((n=>Sr((r=>{const o=r,i=1===o.tag||2===o.tag?new yl(1):t.IsTaxFreeThresholdClaimed?new yl(0):new yl(1);return Sr((r=>{const a=r;return so(0,function(e){switch(e){case 0:return new xr(0,new su(0));case 1:return new xr(0,new su(1));case 2:return new xr(0,new su(2));case 3:return new xr(0,new su(3));case 4:return new xr(0,new su(4));default:return new xr(1,"Invalid EmploymentBasis")}}(t.EmploymentBasis),(r=>{const s=r,u=1===s.tag||2===s.tag||4===s.tag?cl(s):3===s.tag?ll():cl(s);return new lf(e.PreExistingTfnDec,e.CurrentAlert,cl(n),cl($n(fu,t.PreviousSurname)),rf(o),xl(i),Rn(a)?cl(void 0):cl(a),u)}))}),bu(t.HasDebtSupport))}),mu(t.ResidencyStatusV2))),(n=t.TfnInformation,1===n.tag?_r((e=>new Nl(1,new Al(1,e))),function(e){switch(e){case 0:return new xr(0,new lu(0));case 1:return new xr(0,new lu(1));case 2:return new xr(0,new lu(2));default:return new xr(1,"Invalid ExemptionReason")}}(n.fields[0])):new xr(0,new Nl(0,n.fields[0]))))}))()}(r,e)),n.fields[0].fields[0].Data);if(null==e)return[r,i];{const t=e;return 0===t.tag?[t.fields[0],i]:[r,o]}}}return 3===n.tag?[r,o]:[r,i]}case 7:return[new lf(t.PreExistingTfnDec,e.fields[0],t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),qu()];case 8:return[new lf(t.PreExistingTfnDec,void 0,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),qu()];case 9:return[new lf(new br(2,new xr(0,e.fields[0])),t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),qu()];case 10:return function(){const e=ff();let t;t=0!==e.tag||0!==e.fields[0].tag&&1!==e.fields[0].tag?1:0,0===t&&window.parent.postMessage({sender:"flare",type:"appReady"},"*",sn(In()))}(),[t,qu()];default:return[new lf(t.PreExistingTfnDec,t.CurrentAlert,e.fields[0],t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),qu()]}}class hf extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetText","SetTouched"]}}class mf extends Ft{constructor(e,t){super(),this.Text=e,this.Meta=t}}class gf extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Number","Text"]}}function wf(e){let t;const n=sl(function(e,t){const n=dn(e,"");return[new mf(n,{Touched:!1,Valid:t(n)}),qu()]}(e.InitialValue,e.Validator),((t,n)=>function(e,t,n,r){const o=function(e,t,n){if(1===t.tag)return new mf(n.Text,{Touched:!0,Valid:n.Meta.Valid});{const r=t.fields[0];return new mf(r,{Touched:n.Meta.Touched,Valid:e(r)})}}(t,n,r);return e(new ul(o.Text,{Valid:o.Meta.Valid})),[o,qu()]}(e.OnUpdate,e.Validator,t,n))),r=n[0],o=n[1];return p("div",mt(Ln([["className",Xt(" ",Vn(e.AdditionalWrapperClasses,Nn("z-10")))],(t=Vr(Gr((()=>jr(Lr(p("input",mt(Vr(Gr((()=>jr(Lr(["className",Xt(" ",Vn(e.AdditionalInputClasses,Vn(Ln(["block","w-full","pr-10","focus:outline-none","text-base","sm:text-sm","rounded-md","border-gray-300"]),Vr(Gr((()=>!r.Meta.Valid&&r.Meta.Touched?["border-red-300","text-red-900","placeholder-red-300","focus:ring-red-500","focus:border-red-500"]:Fr()))))))]),Gr((()=>jr(Lr(["type","text"]),Gr((()=>jr(Lr(["onChange",t=>{const n=t.target.value;o(new hf(0,1===e.InputType.tag?n:nn(Ls,n)))}]),Gr((()=>{let t;return jr(Lr((t=r.Text,["ref",e=>{null==e||ct(e.value,t)||(e.value=t)}])),Gr((()=>jr(Lr(["onBlur",e=>{o(new hf(1))}]),Gr((()=>jr(ct(e.InputType,new gf(0))?Lr(["inputMode","numeric"]):Fr(),Gr((()=>Lr(["data-testid",e.TestId]))))))))))}))))))))))))))),Gr((()=>!r.Meta.Valid&&r.Meta.Touched?Lr(p("div",{className:Xt(" ",["mt-1","text-sm","text-red-600"]),children:e.InvalidFeedback})):Fr())))))),["children",jn.Children.toArray(Array.from(t))])])))}class yf extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetPreviousSurname"]}}class bf extends Ft{constructor(e,t){super(),this.YesNoButtonGroup=e,this.Data=t}}function vf(e){return!("string"!=typeof(t=e)||/^\s*$/.test(t));var t}function xf(e){const t=e.YesNoButtonGroup.Selected;return null==t?new bf(e.YesNoButtonGroup,new ul(e.Data.Value,{Valid:!1})):1===t.tag?new bf(e.YesNoButtonGroup,new ul(e.Data.Value,{Valid:!0})):new bf(e.YesNoButtonGroup,new ul(e.Data.Value,{Valid:dn($n((e=>vf(e.fields[0])),e.Data.Value),!1)}))}function _f(e){let t;const n=sl((r=e.InitialValue,[xf(new bf(xl(new yl(null==r?1:0)),new ul(r,{Valid:!1}))),qu()]),((t,n)=>function(e,t,n){const r=function(e,t){let n,r,o;return xf(1===e.tag?(n=e.fields[0],new bf(t.YesNoButtonGroup,new ul($n((e=>new cu(0,e)),n.Value),{Valid:n.Meta.Valid}))):(r=e.fields[0],r.tag,o=1===r.fields[0].tag?new ul(void 0,t.Data.Meta):t.Data,new bf(_l(r,t.YesNoButtonGroup),o)))}(t,n);return e(r.Data),[r,qu()]}(e.OnUpdate,t,n)));var r;const o=n[0],i=n[1];return p("div",mt(Ln([["className",Xt(" ",Qn)],(t=Vr(Gr((()=>jr(Lr(gl("Have you changed your surname since you last dealt with the Australian Tax Office (ATO)?")),Gr((()=>jr(Lr(p(Cl,{Disable:void 0,Dispatch:e=>{i(new yf(0,e))},State:o.YesNoButtonGroup})),Gr((()=>{let e;const t=o.YesNoButtonGroup.Selected;let n;switch(n=null!=t&&0===t.tag?0:1,n){case 0:return Lr(p("div",mt(Ln([["className",Xt(" ",["mt-4"])],(e=[gl("Enter your previous surname"),p(wf,{AdditionalInputClasses:Ln(["focus:ring-primary-focus","focus:border-primary-focus"]),AdditionalWrapperClasses:Nn("mt-1"),InitialValue:$n(du,o.Data.Value),InputType:new gf(1),InvalidFeedback:"Please enter your previous surname",OnUpdate:e=>{i(new yf(1,e))},TestId:"surname-input",Validator:vf})],["children",jn.Children.toArray(Array.from(e))])]))));case 1:return Lr(null)}}))))))))),["children",jn.Children.toArray(Array.from(t))])])))}const Sf=Ln(["mt-7","bg-white","px-4","border","border-gray-200","rounded-lg","shadow-sm"]),Cf=Ln(["group","relative","w-full","my-3","focus-visible:outline-primary-hover","flex","justify-between","items-center","text-left"]),Tf=Ln(["text-sm","text-primary-base","leading-3","font-medium"]),Ef=Ln(["ml-6","flex","items-center"]),kf=Ln(["pt-1","pb-3","prose","prose-sm","text-gray-500","text-sm"]);function If(e){let t,n,r,o;const i=e.content,a=e.title,s=ur(!0),u=s[0];return p("div",mt(Ln([["className",Xt(" ",Sf)],(t=[(n=Nn(p("button",mt(Ln([["type","button"],["className",Xt(" ",Cf)],["aria-expanded",u],["onClick",e=>{s[1](!u)}],(r=[p("span",{className:Xt(" ",Tf),children:a}),p("span",mt(Ln([["className",Xt(" ",Ef)],(o=Vr(Gr((()=>Lr(u?qn:Kn)))),["children",jn.Children.toArray(Array.from(o))])])))],["children",jn.Children.toArray(Array.from(r))])])))),p("h3",{children:jn.Children.toArray(Array.from(n))})),p("div",{className:Xt(" ",Vn(kf,Vr(Gr((()=>u?Lr("hidden"):Fr()))))),children:jn.Children.toArray([i])})],["children",jn.Children.toArray(Array.from(t))])])))}class Af extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class Nf extends Ft{constructor(e){super(),this.Selected=e}}function Rf(e,t){return null!=function(e,t){return((t,n)=>{for(;;){const r=t,o=n;if(Cn(o))return;if(e(En(o)))return r;t=r+1,n=kn(o)}})(0,t)}((t=>e===t),t.Selected)}function Mf(e,t,n){const r=function(e,t){const n=e.fields[0];return Rf(n,t)?new Nf(function(e,t){const n=_n(),r=Pn(((t,n)=>{if(e(n)){const e=new vn(n,void 0);return t.tail=e,e}return t}),n,t),o=_n();return r.tail=o,kn(n)}((e=>n!==e),t.Selected)):new Nf(Vn(Nn(n),t.Selected))}(t,n);return e(r.Selected),[r,qu()]}function Df(e){let t;const n=sl((r=e.InitialValue,[new Nf(r),qu()]),((t,n)=>Mf(e.OnUpdate,t,n)));var r;return p("fieldset",mt(Ln([["className",Xt(" ",["space-y-2","mt-2"])],(t=Vr(Gr((()=>Xr((e=>{let t,r,o;const i=e[0];return Lr(p("div",mt(Ln([["className",Xt(" ",["relative","flex","items-start"])],["onChange",e=>{e.target.checked,n[1](new Af(0,i))}],(t=[p("div",mt(Ln([["className",Xt(" ",["flex","items-center","h-5"])],(r=[p("input",{className:Xt(" ",["focus:ring-primary-focus","h-4","w-4","text-primary-base","border-gray-300","rounded"]),type:"checkbox",id:i,checked:Rf(i,n[0])})],["children",jn.Children.toArray(Array.from(r))])]))),p("div",mt(Ln([["className",Xt(" ",["ml-3","text-sm"])],(o=[p("label",{className:Xt(" ",["font-normal","text-gray-700"]),for:i,children:e[1]})],["children",jn.Children.toArray(Array.from(o))])])))],["children",jn.Children.toArray(Array.from(t))])]))))}),e.ValueLabelPairs)))),["children",jn.Children.toArray(Array.from(t))])])))}class Of extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetDebtSupport"]}}class Pf extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ForeignResident","WorkingHolidayMaker"]}}class Gf extends Ft{constructor(e,t,n){super(),this.YesNoButtonGroup=e,this.Data=t,this.DisableReason=n}}function Bf(e){let t,n;const r=e.YesNoButtonGroup.Selected;return null==r?new Gf(e.YesNoButtonGroup,new ul(e.Data.Value,{Valid:!1}),e.DisableReason):1===r.tag?new Gf(e.YesNoButtonGroup,new ul(e.Data.Value,{Valid:!0}),e.DisableReason):new Gf(e.YesNoButtonGroup,new ul(e.Data.Value,{Valid:(t=e.Data.Value,null!=t&&(o=t,Tn(o)>0&&(n=t,!0)))}),e.DisableReason);var o}function Ff(e){let t;const n=sl(function(e,t,n){let r;const o=e.Value;let i,a;switch(i=null==o||Rn(o)?0:1,i){case 0:r=new yl(1);break;case 1:r=new yl(0)}const s=[t,n];let u;switch(u=null!=s[0]?null!=s[1]?1===s[1].tag?function(e){let t;switch(t=1===e.tag&&1===e.fields[0].tag?1:0,t){case 0:return!0;case 1:return!1}}(s[0])?3:1:2===s[1].tag?2:3:3:null!=s[1]?1===s[1].tag?0:2===s[1].tag?2:3:3,u){case 0:case 1:a=new Pf(0);break;case 2:a=new Pf(1);break;case 3:a=void 0}const l=null==a?qu():Zu(new Of(0,new bl(1,new yl(1),!0)));return[Bf(new Gf(xl(r),e,a)),l]}(e.InitialValue,e.TfnInfo,e.ResidencyStatus),((t,n)=>function(e,t,n){const r=function(e,t){let n,r;return Bf(1===e.tag?new Gf(t.YesNoButtonGroup,cl(e.fields[0]),t.DisableReason):(n=e.fields[0],n.tag,r=1===n.fields[0].tag?cl(void 0):t.Data,new Gf(_l(n,t.YesNoButtonGroup),r,t.DisableReason)))}(t,n);return e(r.Data),[r,qu()]}(e.OnUpdate,t,n)),[e.TfnInfo,e.ResidencyStatus]),r=n[0],o=n[1];return p("div",mt(Ln([["className",Xt(" ",Qn)],(t=Vr(Gr((()=>jr(Lr(gl("Do you have any outstanding study and training support loans?")),Gr((()=>jr(Lr(p(Cl,{Disable:$n((e=>new yl(0)),r.DisableReason),Dispatch:e=>{o(new Of(0,e))},State:r.YesNoButtonGroup})),Gr((()=>{let t;return jr((t=r.DisableReason,null!=t?1===t.tag?Lr(wl("Working holiday makers are ineligible for study and training support loans.")):Lr(wl("You must provide your TFN to declare any outstanding study and training support loans.")):Lr(null)),Gr((()=>{let t,n;const i=r.YesNoButtonGroup.Selected;let a;switch(a=null!=i&&0===i.tag?0:1,a){case 0:return Lr(p("div",mt(Ln([["className",Xt(" ",["mt-4"])],(t=[p(Df,(n=Hn((e=>[Gt(e[0]),e[1]]),Ln([[new tu(0),"Higher Education Loan Program (HELP)"],[new tu(1),"VET Student Loan (VSL)"],[new tu(2),"Financial Supplement (FS)"],[new tu(3),"Student Start-up Loan (SSL)"],[new tu(4),"Trade Support Loan (TSL)"]])),{InitialValue:dn($n((e=>Hn(Gt,e)),e.InitialValue.Value),In()),OnUpdate:e=>{o(new Of(1,function(e,t){const n=_n(),r=Pn(((t,n)=>{const r=e(n);if(null==r)return t;{const e=new vn(un(r),void 0);return t.tail=e,e}}),n,t),o=_n();return r.tail=o,kn(n)}(hl,e)))},ValueLabelPairs:n}))],["children",jn.Children.toArray(Array.from(t))])]))));case 1:return Lr(null)}})))}))))))))),["children",jn.Children.toArray(Array.from(t))])])))}function Lf(e,t){return!!(e.TfnInformation.Meta.Valid&&e.PreviousSurname.Meta.Valid&&e.ResidencyStatus.Meta.Valid&&null!=e.ClaimTaxFreeThreshold.Selected&&e.EmploymentBasisRadioButtonGroup.Meta.Valid&&e.DebtSupportCheckboxGroup.Meta.Valid)&&!ct(t,new br(1))}function Vf(){return p("hr",{className:Xt(" ",["my-8"])})}const Hf=p("div",mt(Ln([["className",Xt(" ",["space-y-2"])],(()=>{const e=[p("p",{children:["You are considered to be an Australian resident for tax purposes if you live here permanently, or studying for a period in excess of 6 months."]}),p("p",{children:["Select working holiday maker if you are in Australia on a working holiday visa (subclass 417) or a work and holiday visa (subclass 462). Special rates of tax apply for working holiday makers."]}),p("p",{children:["If none of the above applies, select foreign resident unless you are in receipt of an Australian Government pension or allowance. Foreign resident tax rates are different."]})];return["children",jn.Children.toArray(Array.from(e))]})()]))),Uf=p("div",mt(Ln([["className",Xt(" ",["space-y-2"])],(()=>{const e=[p("p",{children:["If you are an Australian resident for tax purposes and this is your main job, you can claim the tax-free threshold. This means that you pay no tax on the first $18,200 of your income."]}),p("p",{children:["You are also eligible to claim the threshold if you are a foreign resident in receipt of an Australian Government pension or allowance. This is classified as an Australian resident for tax purposes."]}),p("p",{children:["Foreign residents and working holiday makers are ineligible to claim the threshold."]})];return["children",jn.Children.toArray(Array.from(e))]})()])));function jf(e){const t=e.backendUrl,n=e.accessToken,r=sl([new lf(new br(0),void 0,ll(),cl(void 0),cl(new ou(0)),xl(new yl(0)),cl(void 0),cl(new su(0))),qu()],pf),o=r[0],i=r[1];ir(vr((()=>Wu(n,t)),(e=>{i(new uf(6,e))})),[]);const a=ur(new br(0)),s=a[0],u=vr((()=>function(e,t,n,r){return function(e,t){return $r.Bind(t,(t=>{const n=function(e,t){return function(e,t,n){if(1===n.tag){t(n.fields[0])}return n}(0,e,t)}(e,t);return $r.Return(n)}))}((e=>{r(new to(1,"There was an error saving your tax declaration. Please try saving again."))}),function(e,t){return $r.Bind(t,(t=>{const n=function(e,t){return function(e,t,n){if(1===n.tag);else{t(n.fields[0])}return n}(0,e,t)}(e,t);return $r.Return(n)}))}((e=>{r(new to(0,"Your tax declaration has been saved."))}),Yu(e,t,n)))}(o,n,t,(e=>{i(new uf(7,e))}))),(e=>{let t,n;a[1](e),2===e.tag&&0===e.fields[0].tag?(t=0,n=e.fields[0].fields[0]):t=1,0===t&&(yr($r.Delay((()=>$r.Bind(wr(400),(()=>($f(),$r.Zero())))))),i(new uf(9,n)))}));switch(o.PreExistingTfnDec.tag){case 0:case 1:return p("div",{children:["Please wait..."]});default:{const e=Vr(Gr((()=>{let e,t;return jr((e=o.CurrentAlert,null==e?Lr(null):(t=e,Lr(p(io,{alert:t,hideAlert:()=>{i(new uf(8))}})))),Gr((()=>jr(Lr(p("h3",{className:Xt(" ",["text-3xl","font-bold","text-center","mb-8","sm:mb-12"]),children:"Tax Declaration"})),Gr((()=>jr(Lr(p(Fl,{InitialValue:o.TfnInformation.Value,OnUpdate:e=>{i(new uf(0,e))}})),Gr((()=>jr(Lr(Vf()),Gr((()=>jr(Lr(p(_f,{InitialValue:o.PreviousSurname.Value,OnUpdate:e=>{i(new uf(1,e))}})),Gr((()=>jr(Lr(Vf()),Gr((()=>jr(Lr(p(sf,{InitialValue:o.ResidencyStatus.Value,OnUpdate:e=>{i(new uf(2,e))}})),Gr((()=>jr(Lr(p(If,{title:"About residency",content:Hf})),Gr((()=>jr(Lr(Vf()),Gr((()=>{let e,t;return jr(Lr(p("div",mt(Ln([["className",Xt(" ",Qn)],(e=[gl("Would you like to claim the tax-free threshold from this employer?"),p(Cl,{Disable:(t=o.ResidencyStatus.Value,null==t||2!==t.tag&&1!==t.tag?void 0:new yl(0)),Dispatch:e=>{i(new uf(3,e))},State:o.ClaimTaxFreeThreshold})],["children",jn.Children.toArray(Array.from(e))])])))),Gr((()=>{let e;return jr((e=o.ResidencyStatus.Value,null!=e?2===e.tag?Lr(wl("Working holiday makers are ineligible to claim the tax-free threshold.")):1===e.tag?Lr(wl("Foreign residents are ineligible to claim the tax-free threshold.")):Lr(null):Lr(null)),Gr((()=>jr(Lr(p(If,{title:"About the tax-free threshold",content:Uf})),Gr((()=>jr(Lr(Vf()),Gr((()=>jr(Lr(p(Ff,{InitialValue:o.DebtSupportCheckboxGroup,OnUpdate:e=>{i(new uf(4,e))},ResidencyStatus:o.ResidencyStatus.Value,TfnInfo:o.TfnInformation.Value})),Gr((()=>jr(Lr(Vf()),Gr((()=>jr(Lr(gl("On what basis are you paid?")),Gr((()=>jr(Lr(p("p",{className:"text-sm leading-5 font-normal text-gray-500",children:"Check with your employer if you’re unsure."})),Gr((()=>{let e;return jr(Lr(p(kl,(e=Hn((e=>[Gt(e[0]),e[1],e[2]]),Ln([[new su(0),"Full-time",void 0],[new su(1),"Part-time",void 0],[new su(2),"Labour Hire",void 0],[new su(4),"Casual",void 0]])),{InitialValue:$n(Gt,o.EmploymentBasisRadioButtonGroup.Value),Name:"EmploymentBasis",OnUpdate:e=>{i(new uf(5,e))},ValueLabelPairs:e}))),Gr((()=>jr(Lr(Vf()),Gr((()=>{let e;return Lr(p("div",mt(Ln([["className",Xt(" ",["text-center"])],(e=[p("button",{className:Xt(" ",["w-full","max-w-320","px-10","py-2","mb-10","border","border-transparent","text-sm","font-medium","rounded-md","shadow-sm","text-white","bg-primary-base","hover:bg-primary-hover","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-primary-focus","disabled:bg-gray-100","disabled:text-gray-400","disabled:border-gray-300","disabled:cursor-not-allowed"]),type:"button",disabled:!Lf(o,s),onClick:e=>{Lf(o,s)&&u()},children:"Continue","data-testid":"continue-button"})],["children",jn.Children.toArray(Array.from(e))])]))))}))))))})))))))))))))))))))))})))})))))))))))))))))))))))))))})));return p("form",{children:jn.Children.toArray(Array.from(e))})}}}function zf(){return(zf=Object.assign||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)}function Wf(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,["context","children"]);return B(t,n)}function Yf(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=p(Wf,zf({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},i=0,a=t.attributes,s=t.childNodes;for(i=a.length;i--;)"slot"!==a[i].name&&(o[a[i].name]=a[i].value,o[Kf(a[i].name)]=a[i].value);for(i=s.length;i--;){var u=e(s[i],null),l=s[i].slot;l?o[l]=p(Jf,{name:l},u):r[i]=u}var c=n?p(Jf,null,r):r;return p(n||t.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?G:P)(this._vdom,this._root)}function Kf(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function qf(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[Kf(e)]=n,this._vdom=B(this._vdom,r),P(this._vdom,this._root)}}function Zf(){P(this._vdom=null,this._root)}function Jf(e,t){var n=this;return p("slot",zf({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function Xf(e){let t;return p("div",mt(Ln([["className",Xt(" ",["font-inter","max-w-560","mx-auto"])],(t=[p("style",{children:[zn]}),p(jf,{accessToken:e.accessToken,backendUrl:e.backendUrl})],["children",jn.Children.toArray(Array.from(t))])])))}!function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=Yf,o.prototype.attributeChangedCallback=qf,o.prototype.disconnectedCallback=Zf,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define("tax-component",o)}((e=>p(Xf,e)),0,void 0,{shadow:!0})},184:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg viewBox=%270 0 16 16%27 fill=%27%23fff%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Ccircle cx=%278%27 cy=%278%27 r=%273%27/%3E%3C/svg%3E"},254:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg viewBox=%270 0 16 16%27 fill=%27%23fff%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z%27/%3E%3C/svg%3E"},421:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 16 16%27%3E%3Cpath stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27M4 8h8%27/%3E%3C/svg%3E"},578:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 20 20%27%3E%3Cpath stroke=%27%236b7280%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%271.5%27 d=%27m6 8 4 4 4-4%27/%3E%3C/svg%3E"}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return e[r](i,i.exports,n),i.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.b=document.baseURI||self.location.href,n(274),n(118)})();