@flarehr/apollo-personal-details-app 4.5.102 → 4.6.103

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENCE CHANGED
@@ -1 +1 @@
1
- Flare HR Pty Ltd © 2015-2021
1
+ Flare HR Pty Ltd © 2015-2024
@@ -1 +1,45 @@
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),s=n.n(i),u=n(667),a=n.n(u),l=new URL(n(578),n.b),c=new URL(n(254),n.b),$=new URL(n(184),n.b),f=new URL(n(421),n.b),d=s()(o()),h=a()(l),m=a()(c),p=a()($),w=a()(f);d.push([e.id,'/*! tailwindcss v3.0.23 | 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%;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:-ms-input-placeholder,textarea:-ms-input-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%}[hidden]{display:none}[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:-ms-input-placeholder,textarea:-ms-input-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('+h+");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-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}[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;-webkit-user-select:none;-moz-user-select:none;-ms-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("+m+")}[type=radio]:checked{background-image:url("+p+")}[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 auto -webkit-focus-ring-color}*,:after,:before{--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: }.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.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}.ml-auto{margin-left:auto}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.-ml-1{margin-left:-.25rem}.mr-3{margin-right:.75rem}.mt-4{margin-top:1rem}.mb-2{margin-bottom:.5rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-5{height:1.25rem}.w-5{width:1.25rem}.w-full{width:100%}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-row-reverse{flex-direction:row-reverse}.items-center{align-items:center}.gap-1{gap:.25rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-y-4{row-gap:1rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-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-primary-base{background-color:var(--fl-color-primary)}.bg-primary-disabled{background-color:var(--fl-color-primary-disabled)}.p-4{padding:1rem}.p-1\\.5{padding:.375rem}.p-1{padding:.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.pl-3{padding-left:.75rem}.pr-10{padding-right:2.5rem}.font-sans{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}.text-sm{font-size:.875rem;line-height:1.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.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-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-primary-text{color:var(--fl-color-primary-text)}.placeholder-red-300::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity))}.placeholder-red-300:-ms-input-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))}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.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)}.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-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-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.focus\\:border-red-500:focus{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity))}.focus\\:border-primary-focus:focus{border-color:var(--fl-color-primary-focus)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-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-primary-focus:focus{--tw-ring-color:var(--fl-color-primary-focus)}.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}@media (min-width:640px){.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}",""]);const g=d},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 s={};if(r)for(var u=0;u<this.length;u++){var a=this[u][0];null!=a&&(s[a]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);r&&s[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]}},515:(e,t,n)=>{function r(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function o(e){return"function"==typeof e.GetHashCode}function i(e){return null!=e&&"function"==typeof e.Dispose}function s(e){i(e)&&e.Dispose()}function u(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 a{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 l(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new a(e[Symbol.iterator]())}function c(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 ${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 f(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function d(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function h(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class m{static id(e){return m.idMap.has(e)||m.idMap.set(e,++m.count),m.idMap.get(e)}}function p(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function w(e){return 2654435761*e|0}function g(e){return 0===e.length?0:e.reduce(((e,t)=>(e<<5)+e^t))}function y(e){var t;if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return w(e);case"string":return p(e);default:if(o(e))return e.GetHashCode();if(r(e))return function(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=y(e[r]);return g(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=>y(e)));return g(t)}return w(m.id(e))}}function _(e){return null==e?0:o(e)?e.GetHashCode():w(m.id(e))}function v(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 b(e,t){return v(e,t,C)}function C(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):r(e)?r(t)&&b(e,t):e instanceof Date?t instanceof Date&&0===S(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]||!C(e[n[o]],t[r[o]]))return!1;return!0}(e,t)))}function S(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+d(e),r=t.getTime()+d(t)),n===r?0:n<r?-1:1}function x(e,t){return e===t?0:e<t?-1:1}function E(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,k)}function k(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):r(e)?r(t)?E(e,t):-1:e instanceof Date?t instanceof Date?S(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 s=n[o];if(s!==r[o])return s<r[o]?-1:1;if(i=k(e[s],t[s]),0!==i)return i}return 0}(e,t):-1}function N(e,t,n){return e(t,n)>0?t:n}function A(e){const t={};for(const n of e)t[n[0]]=n[1];return t}m.idMap=new WeakMap,m.count=0;const M=Symbol("curried");function T(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[M]=t,n}function I(e,t,n){return r=>1===t?n(...e.concat([r])):I(e.concat([r]),t-1,n)}function O(e,t,n){if(null!=t){if(M in t){t=t[M];for(let e=0;e<n.length;e++)t=t(n[e]);return t}return I(n,e,t)}}class P{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return y(this.value)}Equals(e){return null!=e&&C(this.value,e instanceof P?e.value:e)}CompareTo(e){return null==e?1:k(this.value,e instanceof P?e.value:e)}}function D(e){return null==e||e instanceof P?new P(e):e}function F(e){if(null==e)throw new Error("Option has no value");return e instanceof P?e.value:e}function R(e){return null==e?void 0:e}function G(e){return null==e?[]:[F(e)]}function U(e,t){return null!=e?F(e):t}function L(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+=L(r);else{if(100===t){n+="; ...";break}n+="; "+L(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+" = "+L(n,t+1))).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class B{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=L(t[0]),r=n.indexOf(" ")>=0):n=t.map((e=>L(e))).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>y(e)));return e.splice(0,0,w(this.tag)),g(e)}Equals(e){return this===e||!!u(this,e)&&this.tag===e.tag&&b(this.fields,e.fields)}CompareTo(e){return this===e?0:u(this,e)?this.tag===e.tag?E(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class H{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+" = "+L(t))).join("\n ")+" }"}(this)}GetHashCode(){return function(e){const t=Object.values(e).map((e=>y(e)));return g(t)}(this)}Equals(e){return function(e,t){if(e===t)return!0;if(u(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!C(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(u(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=k(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class j{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 z(e){return function(e){return e instanceof class{constructor(e){this.message=e}}||e instanceof Error}(e)?e:new Error(String(e))}function q(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+f(~~(e/36e5),2)+":"+f(n,2)}function W(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 V(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 Z(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," ")+q(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return V(i,t,!0);switch(t){case"D":case"d":return W(i,"first");case"T":case"t":return W(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+q(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 V(e,t,n);switch(t){case"D":case"d":return n?W(e,"first"):e.toLocaleDateString();case"T":case"t":return n?W(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 f(e.getFullYear(),4)+"-"+f(e.getMonth()+1,2)+"-"+f(e.getDate(),2)+"T"+f(e.getHours(),2)+":"+f(e.getMinutes(),2)+":"+f(e.getSeconds(),2)+"."+f(e.getMilliseconds(),3)+(t?q(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}(e,t)}function Y(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function J(){return Y(-621355968e5,0)}function X(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 K(e,t){try{return t.contents=function(e,t=!1){const[n,r]=X(e),o=null!=r?t&&"Z"===r?1:2:0;return Y(n.getTime(),o)}(e),!0}catch(e){return!1}}function Q(e,t,n,r=0,o=0,i=0,s=0,u){const a=1===u?Date.UTC(e,t-1,n,r,o,i,s):new Date(e,t-1,n,r,o,i,s).getTime();if(isNaN(a))throw new Error("The parameters describe an unrepresentable Date.");const l=Y(a,u);return e<=99&&l.setFullYear(e,t-1,n),l}function ee(){return ne(Y(Date.now(),2))}function te(e){return e%4==0&&e%100!=0||e%400==0}function ne(e){return Q(ie(e),oe(e),re(e),0,0,0,0,e.kind)}function re(e){return 1===e.kind?e.getUTCDate():e.getDate()}function oe(e){return(1===e.kind?e.getUTCMonth():e.getMonth())+1}function ie(e){return 1===e.kind?e.getUTCFullYear():e.getFullYear()}const se=S,ue=Symbol("numeric");function ae(e){return"number"==typeof e||(null==e?void 0:e[ue])}function le(e,t){return"number"==typeof e?e*t:e[ue]().multiply(t)}function ce(e,t){return"number"==typeof e?e.toFixed(t):e[ue]().toFixed(t)}function $e(e,t){return"number"==typeof e?e.toPrecision(t):e[ue]().toPrecision(t)}function fe(e,t){return"number"==typeof e?e.toExponential(t):e[ue]().toExponential(t)}function de(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[ue]().toHex()}function he(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)}function me(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function pe(e,t,n=0){return e.lastIndex=n,e.exec(t)}function we(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}const ge=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,ye=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function _e(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function ve(e,t,n){function r(e){return!0===e||1===e||3===e||5===e}return null==e?null==t?0:-1:null==t?1:4===(o=n)||5===o?(r(n)&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t?0:e<t?-1:1):(r(n)&&(e=e.toLocaleLowerCase(),t=t.toLocaleLowerCase()),e.localeCompare(t));var o}function be(e){return{input:e,cont:(t=e,e=>{ge.lastIndex=0;const n=[],r=[];let o=0,i=ge.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=ge.lastIndex,ge.lastIndex-=1,i=ge.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),ke(e,n,r))})};var t}function Ce(e,t){return"string"==typeof t?e(t):t.cont(e)}function Se(e){return Ce((e=>e),e)}function xe(e){return Ce((e=>{throw new Error(e)}),e)}function Ee(e,t,n,r,o){let i="";if(t=t||"",o=o||"",ae(e))switch("x"!==o.toLowerCase()&&(_e(e,0)?(e=le(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=ce(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?$e(e,r):$e(e);break;case"e":case"E":e=null!=r?fe(e,r):fe(e);break;case"x":e=de(e);break;case"X":e=de(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?Z(e):L(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,s=o||!r?" ":"0";e="0"===s?i+(e=Te(e,n-i.length,s,o)):Te(i+e,n,s,o)}return e}function ke(e,t,n,r="",o=-1){return(...i)=>{let s=r;const u=t.slice(),a=n.slice();for(const e of i){const[,,t,n,r,i]=a[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}s+=u[0],s+=Ee(e,t,l,r,i),u.splice(0,1),a.splice(0,1)}return 0===a.length?(s+=u[0],e(s)):ke(e,u,a,s,o)}}function Ne(e,...t){return"object"==typeof e&&t.length>0&&(e=t[0],t.shift()),e.replace(ye,((e,n,r,o,i,s)=>{if(n<0||n>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[n];if(ae(u))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":u=ce(u,i=null!=i?i:2);break;case"g":case"G":u=null!=i?$e(u,i):$e(u);break;case"e":case"E":u=null!=i?fe(u,i):fe(u);break;case"p":case"P":i=null!=i?i:2,u=ce(le(u,100),i)+" %";break;case"d":case"D":u=null!=i?Ie(String(u),i,"0"):String(u);break;case"x":case"X":u=null!=i?Ie(de(u),i,"0"):de(u),"X"===o&&(u=u.toUpperCase());break;default:if(s){let e="";u=s.replace(/([0#,]+)(\.[0#]+)?/,((t,n,r)=>{_e(u,0)&&(u=le(u,-1),e="-"),r=null==r?"":r.substring(1),u=ce(u,Math.max(r.length,0));let[o,i]=u.split(".");i||(i=""),o=Ie(o,n.replace(/,/g,"").replace(/^#+/,"").length,"0");const s=r.replace(/#+$/,"").length;if(s>i.length?i=function(e,t,n){return Te(e,t,"0",!0)}(i,s):s<i.length&&(i=i.substring(0,s)+i.substring(s).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})),u=e+u}}else u=u instanceof Date?Z(u,s||o):L(u);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(u=Te(String(u),Math.abs(r)," ",r<0)),u}))}function Ae(e){return"string"!=typeof e||/^\s*$/.test(e)}function Me(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Te(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 Ie(e,t,n){return Te(e,t,n)}function Oe(e,t,n){return e.replace(new RegExp(me(t),"g"),n)}function Pe(e,t){return t.split("").filter((t=>e(t))).join("")}function De(e,t,n){if(t+(n||0)>e.length)throw new Error("Invalid startIndex and/or length");return null!=n?e.substr(t,n):e.substr(t)}function Fe(e,t){return"function"==typeof e?new e(t):new Array(t)}function Re(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function Ge(e,t,n){const r=0|t.length,o=Fe(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function Ue(e,t,n){return n.reduce(e,t)}class Le extends H{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+Me("; ",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],s=o[1];if(C(n.head,r.head)){e=i,t=s;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,s=i.tail;if(null==s)return 0|o;{const u=s;if(r>18)return 0|o;e=r+1,t=(o<<1)+y(i.head)+631*r,n=u}}})(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],s=o[1],u=0|k(n.head,r.head);if(0===u){e=i,t=s;continue e}return 0|u}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return new Be(this)}[Symbol.iterator](){return c(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return l(this)}}class Be{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 He(){return new Le(null,void 0)}function je(e,t){return new Le(e,t)}function ze(e){return null==e.tail}function qe(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 We(e){if(null!=e.tail)return e.head;throw new Error("Collection was empty.\\nParameter name: list")}function Ve(e){const t=e.tail;if(null!=t)return t;throw new Error("Collection was empty.\\nParameter name: list")}function Ze(){return He()}function Ye(e,t){return je(e,t)}function Je(e){return je(e,He())}function Xe(e){return ze(e)}function Ke(e){return qe(e)}function Qe(e){return We(e)}function et(e){return Ve(e)}function tt(e){const t=0|qe(e),n=Re(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(ze(o))break;n[r]=We(o),e=r+1,t=Ve(o)}})(0,e),n}function nt(e,t,n){let r=t,o=n;for(;!ze(o);)r=e(r,We(o)),o=Ve(o);return r}function rt(e){return nt(((e,t)=>je(t,e)),He(),e)}function ot(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=je(e[t],n);return n}function it(e){return ot(e,He())}function st(e){let t,n;if(r(e))return it(e);if(e instanceof Le)return e;{const r=He();let o=r;const i=l(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();t=o,n=new Le(e,void 0),t.tail=n,o=n}}finally{s(i)}const u=o,a=He();return u.tail=a,Ve(r)}}function ut(e,t){return nt(((e,t)=>je(t,e)),t,rt(e))}function at(e,t){const n=He(),r=nt(((t,n)=>{const r=new Le(e(n),void 0);return t.tail=r,r}),n,t),o=He();return r.tail=o,Ve(n)}function lt(e,t){return(t=>{e:for(;;){const n=t;if(ze(n))return;{const r=e(We(n));if(null==r){t=Ve(n);continue e}return r}}})(t)}function ct(e,t){return((t,n)=>{for(;;){const r=t,o=n;if(ze(o))return;if(e(We(o)))return r;t=r+1,n=Ve(o)}})(0,t)}function $t(e,t){return null!=ct(e,t)}class ft{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 dt extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,dt.prototype)}}class ht{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>ht.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function mt(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new dt);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack((()=>{try{e(t)}catch(e){t.onError(z(e))}}));else try{e(t)}catch(e){t.onError(z(e))}}}const pt=new class{Bind(e,t){return function(e,t){return mt((n=>{e({onSuccess:e=>{try{t(e)(n)}catch(e){n.onError(z(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 mt((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 mt((t=>t.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,t){return mt((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 mt((n=>{e({onSuccess:n.onSuccess,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline,onError:e=>{try{t(e)(n)}catch(e){n.onError(z(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 mt((e=>e.onSuccess(void 0)))}};class wt extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function gt(e,t){return 0===t.tag?new wt(0,e(t.fields[0])):new wt(1,t.fields[0])}function yt(e,t){return 0===t.tag?e(t.fields[0]):new wt(1,t.fields[0])}class _t extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Choice1Of2","Choice2Of2"]}}function vt(e){}function bt(e){const t=new ft("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout((()=>{t.cancel()}),e),t}function Ct(e){e.cancel()}const St=new ft;function xt(e,t){return function(e,t){return function(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new ht;e({onSuccess:t||vt,onError:n||vt,onCancel:r||vt,cancelToken:o||St,trampoline:i})}(e,t)}(e,t)}const Et=class{constructor(){this.delegates=[]}Add(e){this._addHandler(e)}get Publish(){return this}Trigger(e,t){let n,r;void 0===t?(n=null,r=e):(n=e,r=t),this.delegates.forEach((e=>1===e.length?e(r):e(n,r)))}AddHandler(e){this._addHandler(e)}RemoveHandler(e){this._removeHandler(e)}Subscribe(e){const t="function"==typeof e?e:e.OnNext;return this._addHandler(t),{Dispose:()=>{this._removeHandler(t)}}}_addHandler(e){this.delegates.push(e)}_removeHandler(e){const t=this.delegates.indexOf(e);t>-1&&this.delegates.splice(t,1)}};class kt{constructor(e,t,n){this.OnNext=e,this.OnError=t||(e=>{}),this.OnCompleted=n||(()=>{})}}function Nt(e,t){let n,r=new class{constructor(e){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=e&&e>0?e:100,this.AutoReset=!0,this._elapsed=new Et}Elapsed(){return this._elapsed}get Enabled(){return this._enabled}set Enabled(e){this._isDisposed||this._enabled===e||(this._enabled=e,this._enabled?this.AutoReset?this._intervalId=setInterval((()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)}),this.Interval):this._timeoutId=setTimeout((()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)}),this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}(e);r.AutoReset=!1,n=r,function(e,t){t.Subscribe(new kt(e))}(t,n.Elapsed()),n.Enabled=!0,n.Start()}function At(e,t){var n;n=t=>{t(e)},nt(((e,t)=>{n(t)}),void 0,t)}function Mt(){return Ze()}function Tt(e){return Je((t=>{t(e)}))}function It(e,t,n,r,o){return Je((i=>{e(pt.Delay((()=>{return pt.Bind((e=t(n),mt((t=>{e({onSuccess:e=>t.onSuccess(function(e){return new _t(0,e)}(e)),onError:e=>t.onSuccess(function(e){return new _t(1,e)}(e)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})}))),(e=>{const t=e;return i(1===t.tag?o(t.fields[0]):r(t.fields[0])),pt.Zero()}));var e})))}))}function Ot(e){Nt(0,(t=>{xt(e)}))}function Pt(){return e=k,{Compare:(t,n)=>e(t,n)};var e}const Dt="The input sequence has an insufficient number of elements.";function Ft(){throw new Error("Enumeration has not started. Call MoveNext.")}function Rt(){throw new Error("Enumeration already finished.")}class Gt{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=l(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=L(n["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(t+="; ..."),t+"]"}finally{s(n)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return c(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class Ut{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 Lt(e,t,n){return new Ut(e,t,n)}function Bt(e,t,n){let r,o=!1,i=D(e());const s=()=>{if(null!=i){const e=F(i);try{n(e)}finally{i=void 0}}},u=()=>{try{s()}finally{r=void 0}};return Lt((()=>(o||Ft(),null!=r?F(r):Rt())),(()=>{if(o||(o=!0),null!=i){const e=F(i);let n;try{n=t(e)}catch(e){throw u(),e}return null!=n?(r=n,!0):(u(),!1)}return!1}),s)}function Ht(e){return function(e){return new Gt(e)}(e)}function jt(e){return t="source",null==e&&function(e){throw new Error(e)}(t),l(e);var t}function zt(e){return Ht((()=>l(e())))}function qt(e){return Ht((()=>function(e){let t,n,r,o=!1,i=!1;const u=()=>{if(i=!0,null!=n){const e=n;try{s(e)}finally{n=void 0}}if(null!=t){const e=t;try{s(e)}finally{t=void 0}}};return Lt((()=>(o?i&&Rt():Ft(),null!=r?F(r):Rt())),(()=>{let a;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=D(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{s(e)}finally{n=void 0}}else{const e=i[0];e["System.Collections.IEnumerator.MoveNext"]()?(a=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=l(a)):(u(),o=!1)}else t=l(e)}return F(o)}}),(()=>{i||u()}))}(e)))}function Wt(){return zt((()=>new Array(0)))}function Vt(e){return zt((()=>function(e,t){const n=Fe(void 0,1);return n[0]=e,n}(e)))}function Zt(e){return r(e)?it(e):e instanceof Le?e:st(e)}function Yt(e,t,n){return Ht((()=>Bt(e,t,n)))}function Jt(e,t,n){return Ht((()=>{let r=-1;return Bt(e,(e=>(r=r+1|0,t(r,e))),n)}))}function Xt(e,t){return qt([e,t])}function Kt(e,t,n){const r=jt(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{s(r)}}function Qt(e,t,n){const r=jt(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{s(r)}}function en(e,t){Qt(((t,n)=>{e(n)}),void 0,t)}function tn(e,t){return Yt((()=>jt(t)),(t=>t["System.Collections.IEnumerator.MoveNext"]()?D(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{s(e)}))}function nn(e){return zt((()=>function(e){return e.slice().reverse()}(function(e){return e instanceof Le?tt(e):Array.from(e)}(e))))}function rn(e,t){return Ht((()=>{const n=jt(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Dt+"\\nParameter name: source");return function(e,t){return Lt((()=>t["System.Collections.Generic.IEnumerator`1.get_Current"]()),(()=>t["System.Collections.IEnumerator.MoveNext"]()),(()=>{try{s(t)}finally{e()}}))}((()=>{}),n)}catch(e){throw s(n),e}}))}function on(e,t){return zt((()=>qt(tn(e,t))))}function sn(e,t,n,r,o){const i=function(e,t,n,r){const o=0|k(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|k(n,t);return i&&o<=0||!i&&o>=0?[n,r(n,e)]:void 0}}(t,n,r,o);return zt((()=>{return t=i,n=e,Ht((()=>function(e,t){let n,r=t;return Lt((()=>{if(null!=n){const e=n[0];return n[1],e}return Ft()}),(()=>{if(n=e(r),null!=n){n[0];const e=n[1];return r=e,!0}return!1}),(()=>{}))}(t,n)));var t,n}))}Symbol.iterator;class un extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class an{constructor(e){this.state=new un(0,Re(new Array(N(x,e,10)),0,N(x,e,10),null),0)}}function ln(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 un(0,o,n):new un(1,o,n,i),D(o[r])}}class cn extends H{constructor(e,t,n,r,o,i,s){super(),this.init=e,this.update=t,this.subscribe=n,this.view=r,this.setState=o,this.onError=i,this.syncDispatch=s}}function $n(e,t){const n=t.init(e),r=n[0],o=new an(10);let i=!1,u=r;const a=O(1,t.syncDispatch,[e=>{if(i)!function(e,t){const n=e.state;if(1===n.tag){const i=0|n.fields[1],u=0|n.fields[2],a=n.fields[0];a[i]=t;const l=(i+1)%a.length|0;e.state=l===u?new un(1,(r=u,o=a,Array.from(zt((()=>Xt(rn(r,o),zt((()=>{return Xt((e=r,t=o,Jt((()=>jt(t)),((t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return D(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Dt+"\\nParameter name: source")}}),(e=>{s(e)}))),zt((()=>on((e=>Vt(null)),sn(0,1,o.length,0,((e,t)=>e+t))))));var e,t}))))))),a.length,0):new un(1,a,l,u)}else{const r=0|n.fields[1],o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new un(1,o,i,r)}var r,o}(o,e);else{i=!0;let n=D(e);for(;null!=n;){const e=F(n);try{const n=t.update(e,u),r=n[0];t.setState(r,a),At(a,n[1]),u=r}catch(n){t.onError([Se(be("Unable to process the message: %A"))(e),n])}n=ln(o)}i=!1}}]);t.setState(r,a),At(a,ut((()=>{try{return t.subscribe(r)}catch(e){return t.onError(["Unable to subscribe:",e]),Mt()}})(),n[1]))}var fn,dn,hn,mn,pn,wn,gn,yn={},_n=[],vn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function bn(e,t){for(var n in t)e[n]=t[n];return e}function Cn(e){var t=e.parentNode;t&&t.removeChild(e)}function Sn(e,t,n){var r,o,i,s={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?fn.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return xn(e,s,r,o,null)}function xn(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++hn:o};return null!=dn.vnode&&dn.vnode(i),i}function En(e){return e.children}function kn(e,t){this.props=e,this.context=t}function Nn(e,t){if(null==t)return e.__?Nn(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?Nn(e):null}function An(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 An(e)}}function Mn(e){(!e.__d&&(e.__d=!0)&&mn.push(e)&&!Tn.__r++||wn!==dn.debounceRendering)&&((wn=dn.debounceRendering)||pn)(Tn)}function Tn(){for(var e;Tn.__r=mn.length;)e=mn.sort((function(e,t){return e.__v.__b-t.__v.__b})),mn=[],e.some((function(e){var t,n,r,o,i,s;e.__d&&(i=(o=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=bn({},o)).__v=o.__v+1,Ln(s,o,r,t.__n,void 0!==s.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?Nn(o):i,o.__h),Bn(n,o),o.__e!=i&&An(o)))}))}function In(e,t,n,r,o,i,s,u,a,l){var c,$,f,d,h,m,p,w=r&&r.__k||_n,g=w.length;for(n.__k=[],c=0;c<t.length;c++)if(null!=(d=n.__k[c]=null==(d=t[c])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?xn(null,d,null,null,d):Array.isArray(d)?xn(En,{children:d},null,null,null):d.__b>0?xn(d.type,d.props,d.key,null,d.__v):d)){if(d.__=n,d.__b=n.__b+1,null===(f=w[c])||f&&d.key==f.key&&d.type===f.type)w[c]=void 0;else for($=0;$<g;$++){if((f=w[$])&&d.key==f.key&&d.type===f.type){w[$]=void 0;break}f=null}Ln(e,d,f=f||yn,o,i,s,u,a,l),h=d.__e,($=d.ref)&&f.ref!=$&&(p||(p=[]),f.ref&&p.push(f.ref,null,d),p.push($,d.__c||h,d)),null!=h?(null==m&&(m=h),"function"==typeof d.type&&null!=d.__k&&d.__k===f.__k?d.__d=a=On(d,a,e):a=Dn(e,d,f,w,h,a),l||"option"!==n.type?"function"==typeof n.type&&(n.__d=a):e.value=""):a&&f.__e==a&&a.parentNode!=e&&(a=Nn(f))}for(n.__e=m,c=g;c--;)null!=w[c]&&("function"==typeof n.type&&null!=w[c].__e&&w[c].__e==n.__d&&(n.__d=Nn(r,c+1)),zn(w[c],w[c]));if(p)for(c=0;c<p.length;c++)jn(p[c],p[++c],p[++c])}function On(e,t,n){var r,o;for(r=0;r<e.__k.length;r++)(o=e.__k[r])&&(o.__=e,t="function"==typeof o.type?On(o,t,n):Dn(n,o,o,e.__k,o.__e,t));return t}function Pn(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){Pn(e,t)})):t.push(e)),t}function Dn(e,t,n,r,o,i){var s,u,a;if(void 0!==t.__d)s=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),s=null;else{for(u=i,a=0;(u=u.nextSibling)&&a<r.length;a+=2)if(u==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function Fn(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||vn.test(t)?n:n+"px"}function Rn(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||Fn(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Fn(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?Un:Gn,i):e.removeEventListener(t,i?Un:Gn,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 Gn(e){this.l[e.type+!1](dn.event?dn.event(e):e)}function Un(e){this.l[e.type+!0](dn.event?dn.event(e):e)}function Ln(e,t,n,r,o,i,s,u,a){var l,c,$,f,d,h,m,p,w,g,y,_=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(a=n.__h,u=t.__e=n.__e,t.__h=null,i=[u]),(l=dn.__b)&&l(t);try{e:if("function"==typeof _){if(p=t.props,w=(l=_.contextType)&&r[l.__c],g=l?w?w.props.value:l.__:r,n.__c?m=(c=t.__c=n.__c).__=c.__E:("prototype"in _&&_.prototype.render?t.__c=c=new _(p,g):(t.__c=c=new kn(p,g),c.constructor=_,c.render=qn),w&&w.sub(c),c.props=p,c.state||(c.state={}),c.context=g,c.__n=r,$=c.__d=!0,c.__h=[]),null==c.__s&&(c.__s=c.state),null!=_.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=bn({},c.__s)),bn(c.__s,_.getDerivedStateFromProps(p,c.__s))),f=c.props,d=c.state,$)null==_.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==_.getDerivedStateFromProps&&p!==f&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(p,g),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(p,c.__s,g)||t.__v===n.__v){c.props=p,c.state=c.__s,t.__v!==n.__v&&(c.__d=!1),c.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),c.__h.length&&s.push(c);break e}null!=c.componentWillUpdate&&c.componentWillUpdate(p,c.__s,g),null!=c.componentDidUpdate&&c.__h.push((function(){c.componentDidUpdate(f,d,h)}))}c.context=g,c.props=p,c.state=c.__s,(l=dn.__r)&&l(t),c.__d=!1,c.__v=t,c.__P=e,l=c.render(c.props,c.state,c.context),c.state=c.__s,null!=c.getChildContext&&(r=bn(bn({},r),c.getChildContext())),$||null==c.getSnapshotBeforeUpdate||(h=c.getSnapshotBeforeUpdate(f,d)),y=null!=l&&l.type===En&&null==l.key?l.props.children:l,In(e,Array.isArray(y)?y:[y],t,n,r,o,i,s,u,a),c.base=t.__e,t.__h=null,c.__h.length&&s.push(c),m&&(c.__E=c.__=null),c.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Hn(n.__e,t,n,r,o,i,s,a);(l=dn.diffed)&&l(t)}catch(e){t.__v=null,(a||null!=i)&&(t.__e=u,t.__h=!!a,i[i.indexOf(u)]=null),dn.__e(e,t,n)}}function Bn(e,t){dn.__c&&dn.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){dn.__e(e,t.__v)}}))}function Hn(e,t,n,r,o,i,s,u){var a,l,c,$=n.props,f=t.props,d=t.type,h=0;if("svg"===d&&(o=!0),null!=i)for(;h<i.length;h++)if((a=i[h])&&(a===e||(d?a.localName==d:3==a.nodeType))){e=a,i[h]=null;break}if(null==e){if(null===d)return document.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,f.is&&f),i=null,u=!1}if(null===d)$===f||u&&e.data===f||(e.data=f);else{if(i=i&&fn.call(e.childNodes),l=($=n.props||yn).dangerouslySetInnerHTML,c=f.dangerouslySetInnerHTML,!u){if(null!=i)for($={},h=0;h<e.attributes.length;h++)$[e.attributes[h].name]=e.attributes[h].value;(c||l)&&(c&&(l&&c.__html==l.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||Rn(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]||Rn(e,i,t[i],n[i],r)}(e,f,$,o,u),c)t.__k=[];else if(h=t.props.children,In(e,Array.isArray(h)?h:[h],t,n,r,o&&"foreignObject"!==d,i,s,i?i[0]:n.__k&&Nn(n,0),u),null!=i)for(h=i.length;h--;)null!=i[h]&&Cn(i[h]);u||("value"in f&&void 0!==(h=f.value)&&(h!==e.value||"progress"===d&&!h)&&Rn(e,"value",h,$.value,!1),"checked"in f&&void 0!==(h=f.checked)&&h!==e.checked&&Rn(e,"checked",h,$.checked,!1))}return e}function jn(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){dn.__e(e,n)}}function zn(e,t,n){var r,o;if(dn.unmount&&dn.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||jn(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){dn.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&zn(r[o],t,"function"!=typeof e.type);n||null==e.__e||Cn(e.__e),e.__e=e.__d=void 0}function qn(e,t,n){return this.constructor(e,n)}function Wn(e,t,n){var r,o,i;dn.__&&dn.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],Ln(t,e=(!r&&n||t).__k=Sn(En,null,[e]),o||yn,yn,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?fn.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),Bn(i,e)}function Vn(e,t){Wn(e,t,Vn)}function Zn(e,t,n){var r,o,i,s=bn({},e.props);for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];return arguments.length>2&&(s.children=arguments.length>3?fn.call(arguments,2):n),xn(e.type,s,r||e.key,o||e.ref,null)}fn=_n.slice,dn={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},hn=0,kn.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=bn({},this.state),"function"==typeof e&&(e=e(bn({},n),this.props)),e&&bn(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),Mn(this))},kn.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Mn(this))},kn.prototype.render=En,mn=[],pn="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Tn.__r=0,gn=0;var Yn,Jn,Xn,Kn=0,Qn=[],er=dn.__b,tr=dn.__r,nr=dn.diffed,rr=dn.__c,or=dn.unmount;function ir(e,t){dn.__h&&dn.__h(Jn,e,Kn||t),Kn=0;var n=Jn.__H||(Jn.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function sr(e){return Kn=1,ur(wr,e)}function ur(e,t,n){var r=ir(Yn++,2);return r.t=e,r.__c||(r.__=[n?n(t):wr(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=Jn),r.__}function ar(e,t){var n=ir(Yn++,3);!dn.__s&&pr(n.__H,t)&&(n.__=e,n.__H=t,Jn.__H.__h.push(n))}function lr(e,t){var n=ir(Yn++,4);!dn.__s&&pr(n.__H,t)&&(n.__=e,n.__H=t,Jn.__h.push(n))}function cr(e){return Kn=5,$r((function(){return{current:e}}),[])}function $r(e,t){var n=ir(Yn++,7);return pr(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function fr(){Qn.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(hr),e.__H.__h.forEach(mr),e.__H.__h=[]}catch(t){e.__H.__h=[],dn.__e(t,e.__v)}})),Qn=[]}dn.__b=function(e){Jn=null,er&&er(e)},dn.__r=function(e){tr&&tr(e),Yn=0;var t=(Jn=e.__c).__H;t&&(t.__h.forEach(hr),t.__h.forEach(mr),t.__h=[])},dn.diffed=function(e){nr&&nr(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==Qn.push(t)&&Xn===dn.requestAnimationFrame||((Xn=dn.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),dr&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);dr&&(t=requestAnimationFrame(n))})(fr)),Jn=void 0},dn.__c=function(e,t){t.some((function(e){try{e.__h.forEach(hr),e.__h=e.__h.filter((function(e){return!e.__||mr(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],dn.__e(n,e.__v)}})),rr&&rr(e,t)},dn.unmount=function(e){or&&or(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(hr)}catch(e){dn.__e(e,t.__v)}};var dr="function"==typeof requestAnimationFrame;function hr(e){var t=Jn;"function"==typeof e.__c&&e.__c(),Jn=t}function mr(e){var t=Jn;e.__c=e.__(),Jn=t}function pr(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function wr(e,t){return"function"==typeof t?t(e):t}function gr(e,t){for(var n in t)e[n]=t[n];return e}function yr(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 _r(e){this.props=e}(_r.prototype=new kn).isPureReactComponent=!0,_r.prototype.shouldComponentUpdate=function(e,t){return yr(this.props,e)||yr(this.state,t)};var vr=dn.__b;dn.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),vr&&vr(e)};var br="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,Cr=function(e,t){return null==e?null:Pn(Pn(e).map(t))},Sr={map:Cr,forEach:Cr,count:function(e){return e?Pn(e).length:0},only:function(e){var t=Pn(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:Pn},xr=dn.__e;dn.__e=function(e,t,n){if(e.then)for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);xr(e,t,n)};var Er=dn.unmount;function kr(){this.__u=0,this.t=null,this.__b=null}function Nr(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function Ar(){this.u=null,this.o=null}dn.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Er&&Er(e)},(kr.prototype=new kn).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=Nr(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(u):u())};n.__R=s;var u=function(){if(!--r.__u){if(r.state.__e){var e=r.state.__e;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({__e:r.__b=null});t=r.t.pop();)t.forceUpdate()}},a=!0===t.__h;r.__u++||a||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(s,s)},kr.prototype.componentWillUnmount=function(){this.t=[]},kr.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=gr({},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.__e&&Sn(En,null,e.fallback);return o&&(o.__h=null),[Sn(En,null,t.__e?null:e.children),o]};var Mr=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 Tr(e){return this.getChildContext=function(){return e.context},e.children}function Ir(e){var t=this,n=e.i;t.componentWillUnmount=function(){Wn(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)}}),Wn(Sn(Tr,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(Ar.prototype=new kn).__e=function(e){var t=this,n=Nr(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Mr(t,e,r)):o()};n?n(i):i()}},Ar.prototype.render=function(e){this.u=null,this.o=new Map;var t=Pn(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},Ar.prototype.componentDidUpdate=Ar.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Mr(e,n,t)}))};var Or="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Pr=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Dr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};kn.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(kn.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Fr=dn.event;function Rr(){}function Gr(){return this.cancelBubble}function Ur(){return this.defaultPrevented}dn.event=function(e){return Fr&&(e=Fr(e)),e.persist=Rr,e.isPropagationStopped=Gr,e.isDefaultPrevented=Ur,e.nativeEvent=e};var Lr,Br={configurable:!0,get:function(){return this.class}},Hr=dn.vnode;dn.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){for(var o in r={},n){var i=n[o];"value"===o&&"defaultValue"in n&&null==i||("defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===i?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!Dr(n.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():Pr.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),r[o]=i)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=Pn(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=Pn(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}t&&n.class!=n.className&&(Br.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Br)),e.$$typeof=Or,Hr&&Hr(e)};var jr=dn.__r;dn.__r=function(e){jr&&jr(e),Lr=e.__c};var zr={ReactCurrentDispatcher:{current:{readContext:function(e){return Lr.__n[e.__c].props.value}}}};function qr(e){return!!e&&e.$$typeof===Or}const Wr={useState:sr,useReducer:ur,useEffect:ar,useLayoutEffect:lr,useRef:cr,useImperativeHandle:function(e,t,n){Kn=6,lr((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))},useMemo:$r,useCallback:function(e,t){return Kn=8,$r((function(){return e}),t)},useContext:function(e){var t=Jn.context[e.__c],n=ir(Yn++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(Jn)),t.props.value):e.__},useDebugValue:function(e,t){dn.useDebugValue&&dn.useDebugValue(t?t(e):e)},version:"17.0.2",Children:Sr,render:function(e,t,n){return null==t.__k&&(t.textContent=""),Wn(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return Vn(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(Wn(null,e),!0)},createPortal:function(e,t){return Sn(Ir,{__v:e,i:t})},createElement:Sn,createContext:function(e,t){var n={__c:t="__cC"+gn++,__: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(Mn)},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},createFactory:function(e){return Sn.bind(null,e)},cloneElement:function(e){return qr(e)?Zn.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:En,isValidElement:qr,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:kn,PureComponent:_r,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:yr(this.props,e)}function r(t){return this.shouldComponentUpdate=n,Sn(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function t(t,n){var r=gr({},t);return delete r.ref,e(r,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=br,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:En,Suspense:kr,SuspenseList:Ar,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 Sn(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:zr},Vr=Wr,Zr=(e,t)=>{ar((()=>{const t=e();return()=>{t.Dispose()}}),t)};function Yr(e){return{Dispose(){e()}}}function Jr(e){return Vr.useState(e)}function Xr(e,t){Zr(e,t)}function Kr(e){!function(e,t){Zr((t=>(e(),Yr((()=>{})))),[])}(e)}function Qr(e){return Vr.useRef(e)}function eo(e){const t=Qr(e),n=function(e,n){const r=U([],[]);return Vr.useCallback((e=>t.current(e)),r)}();var r,o;return r=()=>{t.current=e},o=e=>(r(),Yr((()=>{}))),lr((()=>{const e=o();return()=>{e.Dispose()}})),n}class to{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function no(){return new to}function ro(e,t,n,r){$n(t,function(e,t){return new cn(t.init,t.update,t.subscribe,t.view,((e,t)=>{!function(e,t,n){e.state=D(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 F(o);throw new Error("Elmish program has not initialized")}function oo(e,t){return function(e,t,n){const r=Jr(no)[0],o=Jr((()=>ro(e,t,r))),u=o[1];return Xr((()=>(function(e){return e.hasDisposedOnce}(r)&&u(ro(e,t,r)),Yr((()=>{!function(e){const t=e.state;if(null!=t){const e=F(t);i(e)&&s(e)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}(r)})))),U(n,[])),function(e,t){null==e.listener&&(e.listener=t)}(r,u),[o[0],e=>{!function(e,t){const n=e.dispatcher;null!=n&&n(t)}(r,e)}]}(e,void 0,t)}function io(e,t,n){return oo((()=>function(e,t,n){return new cn(e,t,(e=>Mt()),n,T(2,(e=>{const t=O(1,n,[e]);return e=>{t(e)}})),(e=>{var t,n;t=e[0],n=e[1],console.error(D(t),n)}),T(2,(e=>e)))}((()=>e),t,((e,t)=>{}))),n)}function so(){return(so=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 uo(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 Zn(t,n)}function ao(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=Sn(uo,so({},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,s=t.attributes,u=t.childNodes;for(i=s.length;i--;)"slot"!==s[i].name&&(o[s[i].name]=s[i].value,o[lo(s[i].name)]=s[i].value);for(i=u.length;i--;){var a=e(u[i],null),l=u[i].slot;l?o[l]=Sn(fo,{name:l},a):r[i]=a}var c=n?Sn(fo,null,r):r;return Sn(n||t.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Vn:Wn)(this._vdom,this._root)}function lo(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function co(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[lo(e)]=n,this._vdom=Zn(this._vdom,r),Wn(this._vdom,this._root)}}function $o(){Wn(this._vdom=null,this._root)}function fo(e,t){var n=this;return Sn("slot",so({},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)}}))}class ho extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class mo extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class po extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class wo extends H{constructor(e,t,n,r,o,i,s,u){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=s,this.content=u}}class go extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class yo extends H{constructor(e,t,n,r,o){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseHeaders=r,this.content=o}}class _o{constructor(e,t){this.k=e,this.v=t}}function vo(e,t){return new _o(e,t)}function bo(e){return e.k}function Co(e){return e.v}class So extends _o{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 So(e,t,n,r,o)}function Eo(e){return e.left}function ko(e){return e.right}function No(e){return e.h}function Ao(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof So){e=Ao(n+1,Eo(o)),t=ko(o);continue e}return n+1|0}return 0|n}}function Mo(e){return Ao(0,e)}function To(e,t,n,r){let o,i;if(null!=e){const t=e;o=t instanceof So?No(t):1}else o=0;if(null!=r){const e=r;i=e instanceof So?No(e):1}else i=0;const s=0|(o<i?i:o);return 0===s?vo(t,n):xo(t,n,e,r,s+1)}function Io(e,t,n,r){let o,i,s,u,a,l;if(null!=e){const t=e;a=t instanceof So?No(t):1}else a=0;if(null!=r){const e=r;l=e instanceof So?No(e):1}else l=0;if(l>a+2){const s=F(r);if(s instanceof So){if(o=Eo(s),(null!=o?(i=o,i instanceof So?No(i):1):0)>a+1){const r=F(Eo(s));if(r instanceof So)return To(To(e,t,n,Eo(r)),bo(r),Co(r),To(ko(r),bo(s),Co(s),ko(s)));throw new Error("internal error: Map.rebalance")}return To(To(e,t,n,Eo(s)),bo(s),Co(s),ko(s))}throw new Error("internal error: Map.rebalance")}if(a>l+2){const o=F(e);if(o instanceof So){if(s=ko(o),(null!=s?(u=s,u instanceof So?No(u):1):0)>l+1){const e=F(ko(o));if(e instanceof So)return To(To(Eo(o),bo(o),Co(o),Eo(e)),bo(e),Co(e),To(ko(e),t,n,r));throw new Error("internal error: Map.rebalance")}return To(Eo(o),bo(o),Co(o),To(ko(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return To(e,t,n,r)}function Oo(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,bo(o));return o instanceof So?i<0?Io(Oo(e,t,n,Eo(o)),bo(o),Co(o),ko(o)):0===i?xo(t,n,Eo(o),ko(o),No(o)):Io(Eo(o),bo(o),Co(o),Oo(e,t,n,ko(o))):i<0?xo(t,n,void 0,r,2):0===i?vo(t,n):xo(t,n,r,void 0,2)}return vo(t,n)}function Po(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,u=0|r.Compare(o,bo(s));if(0===u)return D(Co(s));if(s instanceof So){e=r,t=o,n=u<0?Eo(s):ko(s);continue e}return}return}}function Do(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof So){Do(n,Eo(o)),n(bo(o),Co(o)),e=n,t=ko(o);continue e}n(bo(o),Co(o))}break}}function Fo(e,t){Do(e,t)}function Ro(e,t){if(null!=t){const n=t;if(n instanceof So){const t=Ro(e,Eo(n)),r=e(bo(n),Co(n)),o=Ro(e,ko(n));return xo(bo(n),r,t,o,No(n))}return vo(bo(n),e(bo(n),Co(n)))}}function Go(e,t){return Ro(e,t)}function Uo(e,t){let n;for(let r=0;r<=t.length-1;r++){const o=t[r];n=Oo(e,o[0],o[1],n)}return n}class Lo extends H{constructor(e,t){super(),this.stack=e,this.started=t}}function Bo(e){e:for(;;){const t=e;if(Xe(t))return Ze();{const n=et(t),r=Qe(t);if(null!=r){const o=r;if(o instanceof So){e=ot([Eo(o),vo(bo(o),Co(o)),ko(o)],n);continue e}return t}e=n;continue e}}}function Ho(e){return new Lo(Bo(Je(e)),!1)}function jo(e){if(e.started){const t=e.stack;if(Xe(t))return function(){throw new Error("enumeration already finished")}();if(null!=Qe(t)){const e=Qe(t);if(e instanceof So)throw new Error("Please report error: Map iterator, unexpected stack for current");return[bo(e),Co(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function zo(e){let t=Ho(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>jo(t),"System.Collections.IEnumerator.get_Current":()=>jo(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Xe(t))return!1;if(null!=Qe(t)){if(Qe(t)instanceof So)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Bo(et(t)),!Xe(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!Xe(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Ho(e)},Dispose(){}}}class qo{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=l(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|t(n,y(e[0])),n=0|t(n,y(e[1]))}}finally{s(r)}return 0|n}(this)}Equals(e){if(!(e instanceof qo))return!1;{const t=l(this);try{const n=l(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!(!C(r[0],o[0])||!C(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{s(n)}}finally{s(t)}}}toString(){return"map ["+Me("; ",tn((e=>Ne("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return zo(this.tree)}[Symbol.iterator](){return c(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return zo(this.tree)}CompareTo(e){const t=this;if(e instanceof qo)return 0|function(e,t,n){const r=jt(t);try{const t=jt(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{s(t)}}finally{s(r)}}(((e,n)=>{const r=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==r?r:k(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 Jo(this,e[0])&&C(Zo(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){!function(e,t,n){let r=n;Fo(((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|Yo(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Yo(this)}get size(){return 0|Yo(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return tn((e=>[e[0],e[1]]),this)}get(e){return Zo(this,e)}has(e){return Jo(this,e)}keys(){return tn((e=>e[0]),this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return tn((e=>e[1]),this)}forEach(e,t){const n=this;en((t=>{e(t[1],t[0],n)}),n)}}function Wo(e,t){return new qo(e,t)}function Vo(e){const t=Pt();return Wo(t,function(e,t){if(r(t))return Uo(e,t);if(t instanceof Le)return function(e,t){return nt(((t,n)=>Oo(e,n[0],n[1],t)),void 0,t)}(e,t);{const n=l(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=Oo(r,s[0],s[1],o),n=i}}}(e,void 0,n)}finally{s(n)}}}(t,e))}function Zo(e,t){return function(e,t,n){const r=Po(e,t,n);if(null==r)throw new Error;return F(r)}(e.comparer,t,e.tree)}function Yo(e){return Mo(e.tree)}function Jo(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,u=0|r.Compare(o,bo(s));if(s instanceof So){if(u<0){e=r,t=o,n=Eo(s);continue e}if(0===u)return!0;e=r,t=o,n=ko(s);continue e}return 0===u}return!1}}(e.comparer,t,e.tree)}function Xo(e,t,n){return function(e,t,n){return Wo(e.comparer,Oo(e.comparer,t,n,e.tree))}(n,e,t)}function Ko(e,t){return function(e,t){return Po(e.comparer,t,e.tree)}(t,e)}function Qo(e,t){return function(e,t){return Wo(e.comparer,Go(t,e.tree))}(t,e)}function ei(){return qo.empty}function ti(e){return new mo(0,"Content-Type",e)}qo.empty=Wo(Pt(),void 0);const ni=new wo("",new ho(0),Ze(),!1,void 0,void 0,void 0,new po(0));function ri(e,t){return"string"!=typeof(n=t)||0===n.length?[t]:function(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(me),t=t.length>0?t:["\\s"];const s=[],u=new RegExp(t.join("|"),"g");let a=!0,l=0;do{const t=u.exec(e);if(null===t){const t=i?e.substring(l).trim():e.substring(l);(!o||t.length>0)&&s.push(t),a=!1}else{const r=i?e.substring(l,t.index).trim():e.substring(l,t.index);(!o||r.length>0)&&(null!=n&&s.length+1===n?(s.push(i?e.substring(l).trim():e.substring(l)),a=!1):s.push(r)),l=u.lastIndex}}while(a);return s}(t,[e],null,0);var n}function oi(e){return new wo(e,ni.method,ni.headers,ni.withCredentials,ni.overridenMimeType,ni.overridenResponseType,ni.timeout,ni.content)}function ii(e,t){return new wo(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function si(e,t){return new wo(t.url,t.method,ut(t.headers,Je(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function ui(e,t){return new wo(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function ai(e){return function(e){return mt((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,s,u;4===n.readyState&&t[0]((r=n.responseType,e=""===r||"text"===r?n.responseText:"",o=0|n.status,i=n.responseType,u=n.responseType,s=""===u||"text"===u?new go(0,n.responseText):new go("arraybuffer"===u?2:"blob"===u?1:3,n.response),new yo(o,e,i,function(e){const t=Pt();return Wo(t,Uo(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=F(o);r.push(e)}}return r}((e=>{const t=it(ri(":",e));return Xe(t)?void 0:[Qe(t).toLocaleLowerCase(),Me(":",et(t)).trim()]}),ri("\r\n",n.getAllResponseHeaders()))),s)))};const r=l(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{s(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 u=e.timeout;if(null==u);else{const e=0|u;n.timeout=0|e}const a=[e.method,e.content];0===a[0].tag?n.send(D(void 0)):1===a[1].tag||3===a[1].tag||2===a[1].tag?n.send(D(a[1].fields[0])):n.send(D(void 0))}))}function li(e){return Ae(e)?void 0:e}function ci(e){let t,n=J();return t=[K(e,new j((()=>n),(e=>{n=e}))),n],t[0]?t[1]:void 0}function $i(e,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=ao,o.prototype.attributeChangedCallback=co,o.prototype.disconnectedCallback=$o,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(t||e.tagName||e.displayName||e.name,o)}(e,t,void 0,{shadow:!0})}function fi(e,t){return pt.Delay((()=>{const n=si((r=Se(be("Bearer %s"))(e),new mo(0,"Authorization",r)),t);var r;let o;const i=ai(n);return o=pt.Bind(i,(e=>pt.Return(new wt(0,e)))),pt.Bind(o,(e=>{const t=e;if(1===t.tag)return pt.Return(new wt(1,t.fields[0]));{const e=t.fields[0];if(429===e.statusCode||e.statusCode>=500){const e=ai(n);return pt.Bind(e,(e=>pt.Return(new wt(0,e))))}return pt.Return(new wt(0,e))}}))}))}function di(e,t,n){return lt((n=>0===n.indexOf(e)?Oe(n,e,t):void 0),n)}function hi(e){return Oe(e,"’","'")}new yo(0,"","",ei(),new go(0,""));class mi{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class pi{constructor(e,t,n,r,o,i,s){this.fullname=e,this.generics=t,this.construct=n,this.parent=r,this.fields=o,this.cases=i,this.enumCases=s}toString(){return ki(this)}GetHashCode(){return gi(this)}Equals(e){return yi(this,e)}}function wi(e){return null!=e.generics?e.generics:[]}function gi(e){return g([p(e.fullname),...wi(e).map(gi)])}function yi(e,t){return""===e.fullname?""===t.fullname&&v(Ri(e),Ri(t),(([e,t],[n,r])=>e===n&&yi(t,r))):e.fullname===t.fullname&&v(wi(e),wi(t),yi)}function _i(e,t,n,r){return new pi(e,t,n,void 0,r)}function vi(e,t,n,r){const o=new pi(e,t,n,void 0,void 0,(()=>{const e=n.prototype.cases();return r().map(((t,n)=>new mi(o,n,e[n],t)))}));return o}function bi(e){return new pi("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Ci(e){return new pi("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Si=new pi("System.Object"),xi=(new pi("Microsoft.FSharp.Core.Unit"),new pi("System.Char"),new pi("System.String"));function Ei(e){if(Array.isArray(e))return e[0];if(e instanceof pi){const t=Ai(e);if(null!=t)return Ei(t)+"[]";{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}return e.name}function ki(e){const t=Ai(e);return null!=t?ki(t)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>ki(e))).join(",")+"]"}function Ni(e){return null!=Ai(e)}function Ai(e){var t;return"[]"===e.fullname&&1===(null===(t=e.generics)||void 0===t?void 0:t.length)?e.generics[0]:void 0}function Mi(e){return null!=e.generics&&e.generics.length>0}function Ti(e){return null!=e.enumCases&&e.enumCases.length>0}function Ii(e){return null==e.generics?e:new pi(e.fullname,e.generics.map((()=>Si)))}function Oi(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function Pi(e){if(Ti(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function Di(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 Fi(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Ri(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Gi(e){if(Bi(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Ui(e){return e instanceof pi?null!=e.cases:e instanceof B}function Li(e){return e instanceof pi?null!=e.fields:e instanceof H}function Bi(e){return e.fullname.startsWith("System.Tuple")}function Hi(e){return null==e.fields?[]:e.fields}function ji(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 pi("System.Boolean"),new pi("System.SByte"),new pi("System.Byte"),new pi("System.Int16"),new pi("System.UInt16"),new pi("System.Int32"),new pi("System.UInt32"),new pi("System.Single"),new pi("System.Double"),new pi("System.Decimal");class zi extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Male","Female","Intersex","Transgender","PreferNotToAnswer","Other","NotSet"]}}class qi extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Spouse","Parent","Child","Sibling","Partner","Sister","Husband","Father","Mother","Daughter","Defacto","Fiance","Boyfriend","Brother","Wife","Son","Engaged","Friend","Girlfriend","Other"]}}class Wi extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["NSW","QLD","WA","SA","NT","VIC","TAS","ACT"]}}class Vi extends H{constructor(e,t,n){super(),this.FirstName=e,this.MiddleName=t,this.LastName=n}}function Zi(){return _i("Dto.Primitives.Name",[],Vi,(()=>[["FirstName",xi],["MiddleName",bi(xi)],["LastName",xi]]))}class Yi extends H{constructor(e,t,n,r,o,i){super(),this.AddressLine1=e,this.AddressLine2=t,this.City=n,this.State=r,this.Postcode=o,this.CountryCode=i}}function Ji(){return _i("Dto.Primitives.Address",[],Yi,(()=>[["AddressLine1",xi],["AddressLine2",bi(xi)],["City",xi],["State",xi],["Postcode",xi],["CountryCode",xi]]))}class Xi extends H{constructor(e,t,n,r,o){super(),this.FullName=e,this.Relationship=t,this.MobilePhone=n,this.Email=r,this.Address=o}}function Ki(){return _i("Dto.Primitives.EmergencyContactDto",[],Xi,(()=>[["FullName",xi],["Relationship",xi],["MobilePhone",xi],["Email",bi(xi)],["Address",bi(Ji())]]))}new class extends H{constructor(e){super(),this.Unused=e}}(void 0);const Qi=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 es=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 Qi(n)}(e,0)&256)}(e);class ts extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Saving","Loading"]}}function ns(e){return 1===e.tag?"We ran an into an issue loading your details. Please try refreshing the page.":"We ran an into an issue saving your details. Please try saving again by clicking on the Submit button."}function rs(e){return L(e)}function os(){return at((e=>[e,rs(e)]),st(tn((e=>ji(e,[])),Fi(vi("DomainPrimitives.AuState",[],Wi,(()=>[[],[],[],[],[],[],[],[]]))))))}function is(e){return lt((t=>t[1]===e?t[0]:void 0),os())}function ss(e){return 0===e.indexOf("04")?`+61${De(e,1)}`:function(e){return 0===e.indexOf("+")?e:`+${e}`}(e)}const us=ss;function as(e){return ss(Pe(es,e))}var ls;function cs(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 $s(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&ls.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]=cs(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[s,u]=cs(n,r);if(e>=s&&e<=u)return e}}throw new Error("Input string was not in a correct format.")}function fs(e,t,n,r,o){try{return o.contents=$s(e,t,n,r),!0}catch(e){return!1}}function ds(e){let t,n=0;return t=[fs(e,511,!1,32,new j((()=>n),(e=>{n=0|e}))),n],t[0]?t[1]:void 0}function hs(e,t,n){return n>=e&&n<=t?D(void 0):void 0}function ms(e){return te(e)}function ps(e,t,n){const r=function(e,t){const n=function(e,t){const n=pe(he(e),t);return null!=n?et(Zt(zt((()=>tn((e=>e||""),n))))):void 0}("^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$",t);if(null==n)return new wt(1,e);{const t=n;let r,o,i,s;switch(Xe(t)||Xe(et(t))||Xe(et(et(t)))?r=1:Xe(et(et(et(t))))?(r=0,o=Qe(et(et(t))),i=Qe(et(t)),s=Qe(t)):r=1,r){case 0:{const t=[s,i,o],n=[t[0],t[1],t[2]];let r,u,a,l;const c=ds(n[0]);if(null!=c){const e=ds(n[1]);if(null!=e){const t=ds(n[2]);null!=t?(r=0,u=t,a=e,l=c):r=1}else r=1}else r=1;switch(r){case 0:return new wt(0,[l,a,u]);case 1:return new wt(1,e)}}case 1:return new wt(1,e)}}}(e,n);if(1===r.tag)return new wt(1,r.fields[0]);{const n=r.fields[0],o=0|n[0],i=0|n[1],s=0|n[2];if(o<=0)return new wt(1,e);{const n=[i,s];let r;switch(r=2===n[0]&&null!=hs(1,29,n[1])&&ms(o)?0:1,r){case 0:return new wt(0,t(o,i,s));case 1:{let r;switch(r=2===n[0]&&null!=hs(1,28,n[1])?ms(o)?1:0:1,r){case 0:return new wt(0,t(o,i,s));case 1:{let r;switch(r=1===n[0]||3===n[0]||5===n[0]||7===n[0]||8===n[0]||10===n[0]?null!=hs(1,31,n[1])?0:1:12===n[0]&&null!=hs(1,31,n[1])?0:1,r){case 0:return new wt(0,t(o,i,s));case 1:{let r;switch(r=4===n[0]||6===n[0]||9===n[0]?null!=hs(1,30,n[1])?0:1:11===n[0]&&null!=hs(1,30,n[1])?0:1,r){case 0:return new wt(0,t(o,i,s));case 1:return new wt(1,e)}}}}}}}}}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(ls||(ls={}));class ws extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Required","MaxLen","MinLen","Regex","NumbersOnly","DuSelection","Email","Date","DateOfBirth","PhoneNumber","NotStartWith"]}}class gs extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Over100","Under13"]}}function ys(e){return Ae(e)?new wt(1,new ws(0)):new wt(0,void 0)}function _s(e){return Pe(es,e)===e?new wt(0,void 0):new wt(1,new ws(4))}function vs(e,t){return t.length>e?new wt(1,new ws(1,e)):new wt(0,void 0)}function bs(e,t){const n=function(e,t){return function(e,t){const n=Y(e.getTime()+t,e.kind);if(2===e.kind){const t=e.getTimezoneOffset(),r=n.getTimezoneOffset();return t!==r?Y(n.getTime()+6e4*(r-t),e.kind):n}return n}(e,864e5)}(e);let r;const o=ie(n)-ie(t)|0;r=se(ne(t),function(e,t){const n=oe(e),r=ie(e)+t,o=function(e,t){return 2===t?te(e)?29:28:t>=8?t%2==0?31:30:t%2==0?30:31}(r,n);return Q(r,n,Math.min(o,re(e)),function(e){return 1===e.kind?e.getUTCHours():e.getHours()}(e),function(e){return 1===e.kind?e.getUTCMinutes():e.getMinutes()}(e),function(e){return 1===e.kind?e.getUTCSeconds():e.getSeconds()}(e),function(e){return 1===e.kind?e.getUTCMilliseconds():e.getMilliseconds()}(e),e.kind)}(n,function(e){return-2147483648===e?e:-e}(o)))>0?o-1:o;const i=r>=13?new wt(0,void 0):new wt(1,new ws(8,new gs(1)));if(1===i.tag)return new wt(1,i.fields[0]);{const e=r<100?new wt(0,void 0):new wt(1,new ws(8,new gs(0)));return 1===e.tag?new wt(1,e.fields[0]):new wt(0,void 0)}}function Cs(e,t){return null!=pe(he(e),t)?new wt(0,void 0):new wt(1,new ws(3))}function Ss(e){return!(e.length<=320)||e.indexOf("..")>=0||e.indexOf(".@")>=0||null==pe(/^[A-Z0-9][A-Z0-9._%+'-]{0,63}@(?:[A-Z0-9-]{1,63}\.){1,125}[A-Z]{2,63}$/giu,e)?new wt(1,new ws(6)):new wt(0,void 0)}function xs(e,t){return 0===t.indexOf(e)?new wt(1,new ws(10,e)):new wt(0,void 0)}function Es(e,t){const n=function(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(Xe(i)){const e=r;return 1===e.tag?new wt(1,e.fields[0]):new wt(0,rt(e.fields[0]))}{let s;const u=o(Qe(i));if(1===u.tag)s=new wt(1,u.fields[0]);else{const e=r;s=1===e.tag?new wt(1,e.fields[0]):new wt(0,Ye(u.fields[0],e.fields[0]))}if(1===s.tag)return s;e=s,t=o,n=et(i);continue e}}}(new wt(0,Ze()),e,t)}((e=>e(t)),e);return 1===n.tag?new wt(1,n.fields[0]):new wt(0,void 0)}const ks=e=>Es(it([ys,e=>vs(60,e),e=>xs("-",e),e=>xs("'",e),e=>Cs("(^[A-Za-zÀ-ÖØ-öø-ÿĀ-ž])[A-Za-zÀ-ÖØ-öø-ÿĀ-ž\\- ']{0,59}$",e)]),e),Ns=e=>Es(it([ys,e=>vs(60,e),e=>Cs("(^[0-9A-Za-z])[0-9A-Za-z\\- '\\/,\\.]{0,59}$",e)]),e),As=e=>Es(it([ys,Ss]),e);const Ms=e=>Es(it([ys,e=>vs(60,e),e=>Cs("(^[A-Za-z])[A-Za-z\\- ]{0,59}$",e)]),e),Ts=e=>Es(it([ys,e=>vs(4,e),_s]),e);new class{constructor(){}};var Is=null;try{Is=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(yn){}function Os(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function Ps(e){return!0===(e&&e.__isLong__)}Os.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},Os.prototype.Equals=function(e){return uu(this,e)},Os.prototype.CompareTo=function(e){return $u(this,e)},Os.prototype.toString=function(e){return ru(this,e)},Os.prototype.toJSON=function(){return ru(this)},Os.prototype[ue]=function(){const e=this;return{multiply:t=>mu(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 ru(e.unsigned?e:function(e,t,n){return n?function(e,t){return new Os(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 Os(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}}},Os.prototype.__isLong__,Object.defineProperty(Os.prototype,"__isLong__",{value:!0});var Ds={},Fs={};function Rs(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=Fs[e])?r:(n=Us(e,(0|e)<0?-1:0,!0),o&&(Fs[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=Ds[e])?r:(n=Us(e,e<0?-1:0,!1),o&&(Ds[e]=n),n)}function Gs(e,t){if(isNaN(e))return t?Zs:Vs;if(t){if(e<0)return Zs;if(e>=zs)return Qs}else{if(e<=-qs)return eu;if(e+1>=qs)return Ks}return e<0?fu(Gs(-e,t)):Us(e%js|0,e/js|0,t)}function Us(e,t,n){return new Os(e,t,n)}var Ls=Math.pow;function Bs(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Vs;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 fu(Bs(e.substring(1),t,n));for(var o=Gs(Ls(n,8)),i=Vs,s=0;s<e.length;s+=8){var u=Math.min(8,e.length-s),a=parseInt(e.substring(s,s+u),n);i=du(u<8?mu(i,Gs(Ls(n,u))):i=mu(i,o),Gs(a))}return i.unsigned=t,i}function Hs(e,t){return"number"==typeof e?Gs(e,t):"string"==typeof e?Bs(e,t):Us(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var js=4294967296,zs=js*js,qs=zs/2,Ws=Rs(1<<24),Vs=Rs(0),Zs=Rs(0,!0),Ys=Rs(1),Js=Rs(1,!0),Xs=Rs(-1),Ks=Us(-1,2147483647,!1),Qs=Us(-1,-1,!0),eu=Us(0,-2147483648,!1);function tu(e){return e.unsigned?e.low>>>0:e.low}function nu(e){return e.unsigned?(e.high>>>0)*js+(e.low>>>0):e.high*js+(e.low>>>0)}function ru(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(ou(e))return"0";if(iu(e)){if(uu(e,eu)){var n=Gs(t),r=pu(e,n),o=hu(mu(r,n),e);return ru(r,t)+tu(o).toString(t)}return"-"+ru(fu(e),t)}for(var i=Gs(Ls(t,6),e.unsigned),s=e,u="";;){var a=pu(s,i),l=(tu(hu(s,mu(a,i)))>>>0).toString(t);if(ou(s=a))return l+u;for(;l.length<6;)l="0"+l;u=""+l+u}}function ou(e){return 0===e.high&&0===e.low}function iu(e){return!e.unsigned&&e.high<0}function su(e){return 1==(1&e.low)}function uu(e,t){return Ps(t)||(t=Hs(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&e.high===t.high&&e.low===t.low}function au(e,t){return $u(e,t)<0}function lu(e,t){return $u(e,t)>0}function cu(e,t){return $u(e,t)>=0}function $u(e,t){if(Ps(t)||(t=Hs(t)),uu(e,t))return 0;var n=iu(e),r=iu(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:iu(hu(e,t))?-1:1}function fu(e){return!e.unsigned&&uu(e,eu)?eu:du(function(e){return Us(~e.low,~e.high,e.unsigned)}(e),Ys)}function du(e,t){Ps(t)||(t=Hs(t));var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,u=65535&t.high,a=t.low>>>16,l=0,c=0,$=0,f=0;return $+=(f+=i+(65535&t.low))>>>16,c+=($+=o+a)>>>16,l+=(c+=r+u)>>>16,l+=n+s,Us(($&=65535)<<16|(f&=65535),(l&=65535)<<16|(c&=65535),e.unsigned)}function hu(e,t){return Ps(t)||(t=Hs(t)),du(e,fu(t))}function mu(e,t){if(ou(e))return e.unsigned?Zs:Vs;if(Ps(t)||(t=Hs(t)),Is)return Us(Is.mul(e.low,e.high,t.low,t.high),Is.get_high(),e.unsigned);if(ou(t))return e.unsigned?Zs:Vs;if(uu(e,eu))return su(t)?eu:Vs;if(uu(t,eu))return su(e)?eu:Vs;if(iu(e))return iu(t)?mu(fu(e),fu(t)):fu(mu(fu(e),t));if(iu(t))return fu(mu(e,fu(t)));if(au(e,Ws)&&au(t,Ws))return Gs(nu(e)*nu(t),e.unsigned);var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,u=65535&t.high,a=t.low>>>16,l=65535&t.low,c=0,$=0,f=0,d=0;return f+=(d+=i*l)>>>16,$+=(f+=o*l)>>>16,f&=65535,$+=(f+=i*a)>>>16,c+=($+=r*l)>>>16,$&=65535,c+=($+=o*a)>>>16,$&=65535,c+=($+=i*u)>>>16,c+=n*l+r*a+o*u+i*s,Us((f&=65535)<<16|(d&=65535),(c&=65535)<<16|($&=65535),e.unsigned)}function pu(e,t){if(Ps(t)||(t=Hs(t)),ou(t))throw Error("division by zero");var n,r,o;if(Is)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?Us((e.unsigned?Is.div_u:Is.div_s)(e.low,e.high,t.low,t.high),Is.get_high(),e.unsigned):e;if(ou(e))return e.unsigned?Zs:Vs;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:Us(e.low,e.high,!0)}(t)),lu(t,e))return Zs;if(lu(t,function(e,t){if(Ps(t)&&(t=tu(t)),0==(t&=63))return e;var n=e.high;return t<32?Us(e.low>>>t|n<<32-t,n>>>t,e.unsigned):Us(32===t?n:n>>>t-32,0,e.unsigned)}(e,1)))return Js;o=Zs}else{if(uu(e,eu))return uu(t,Ys)||uu(t,Xs)?eu:uu(t,eu)?Ys:uu(n=function(e,t){return Ps(t)&&(t=tu(t)),0==(t&=63)?e:t<32?Us(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):Us(0,e.low<<t-32,e.unsigned)}(pu(function(e,t){return Ps(t)&&(t=tu(t)),0==(t&=63)?e:t<32?Us(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):Us(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}(e,1),t),1),Vs)?iu(t)?Ys:Xs:o=du(n,pu(r=hu(e,mu(t,n)),t));if(uu(t,eu))return e.unsigned?Zs:Vs;if(iu(e))return iu(t)?pu(fu(e),fu(t)):fu(pu(fu(e),t));if(iu(t))return fu(pu(e,fu(t)));o=Vs}for(r=e;cu(r,t);){n=Math.max(1,Math.floor(nu(r)/nu(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),s=i<=48?1:Ls(2,i-48),u=Gs(n),a=mu(u,t);iu(a)||lu(a,r);)a=mu(u=Gs(n-=s,e.unsigned),t);ou(u)&&(u=Ys),o=du(o,u),r=hu(r,a)}return o}const wu=pu,gu=nu;function yu(e){return e<0?Math.ceil(e):Math.floor(e)}function _u(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return vu(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 vu(e){return gu(wu(e,1e4))}function bu(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 _u(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,s=+t[4],u=+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*_u(n,s,u,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class Cu extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Su extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class xu{constructor(){this.cache=new Map([])}}function Eu(){return new xu}function ku(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Nu(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=he(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 s=i?o-3:o-2;for(let e=0;e<s;e++)t.push(arguments[e]);t.index=arguments[s++],t.input=arguments[s++],i&&(t.groups=arguments[s]),e=n(t)}return e}));if(n=n.replace(/\$0/g,(e=>"$&")).replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const s=t.substring(o),u=we(e,s),a=we.length>r?(i=u[r-1],s.substring(0,i.index+i[0].length)):s;return t.substring(0,o)+a.replace(e,n)+t.substring(o+a.length)}return t.replace(e,n)}(ku(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return ku(t)}}function Au(e){return e}function Mu(e){return Array.from(e)}function Tu(e){return Z(e,"O")}function Iu(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 yu(e/864e5)}(e)),o=Math.abs(function(e){return yu(e%864e5/36e5)}(e)),i=Math.abs(function(e){return yu(e%36e5/6e4)}(e)),s=Math.abs(function(e){return yu(e%6e4/1e3)}(e)),u=Math.abs(function(e){return yu(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==t&&"g"!==t?"c"===t?r+".":r+":":""}${"g"===t?o:f(o,2)}:${f(i,2)}:${f(s,2)}${0!==u||"c"!==t&&"g"!==t?"g"===t?"."+f(u,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}(u):""}`}(e)}function Ou(){return null}function Pu(e){return Z(e,"O")}function Du(e,t){return JSON.stringify(t,T(2,void 0),D(e))}function Fu(e,t,n,r){const o=new j(null);let i;const s=ki(r);let u;if(i=""===s?e:Xo(s,o,e),Li(r)){const e=Ge((e=>{const r=Nu(t,Ei(e)),o=Ru(i,t,n,e[1]);return t=>i=>{const s=function(e,t){return e[t[0]]}(t,e);return(!n||n&&null!=s)&&(i[r]=o(s)),i}}),Ri(r));u=t=>Qt(((e,n)=>n(t)(e)),{},e)}else{if(!Ui(r)){let e;const t=ki(r);throw e=Se(be("Cannot generate auto encoder for %s. Please pass an extra encoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders"))(t),new Error(e)}u=e=>{const o=function(e,t){const n=Fi(t)[e.tag];if(null==n)throw new Error(`Cannot find case ${e.name} in union type`);return[n,e.fields]}(e,r),s=o[0],u=o[1],a=0|u.length;if(0===a)return Ei(s);{const e=0|a,r=Hi(s),o=Re(new Array(e+1),0,e+1,null);o[0]=Ei(s);for(let s=1;s<=e;s++){const e=Ru(i,t,n,r[s-1][1]);o[s]=e(u[s-1])}return o}}}return o.contents=u,u}function Ru(e,t,n,r){const o=ki(r),i=Ko(o,e);if(null==i){if(Ni(r)){const o=Ru(e,t,n,Ai(r));return e=>Mu(tn(o,e))}if(Ti(r)){const e=ki(Oi(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=ki(r);return xe(be("Cannot generate auto encoder for %s.\nThoth.Json.Net only support the following enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\n\nIf you can't use one of these types, please pass an extra encoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders\n "))(e)}}if(Mi(r)){if(Bi(r)){const o=Ge((r=>Ru(e,t,n,r)),Gi(r));return e=>{return Mu((t=(e,t)=>o[e](t),n=e,Jt((()=>jt(n)),((e,n)=>n["System.Collections.IEnumerator.MoveNext"]()?D(t(e,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{s(e)}))));var t,n}}{const o=ki(Ii(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new $((()=>{return o=Ru(e,t,n,wi(r)[0]),e=>{return function(e,t){return null!=e?F(e):null}(null!=(t=e)?D(o(F(t))):void 0);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||"System.Collections.Generic.IEnumerable`1[System.Object]"===o){const o=Ru(e,t,n,wi(r)[0]);return e=>Mu(tn(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=wi(r)[0],i=Ru(e,t,n,wi(r)[1]);if("System.String"===ki(o)||"System.Guid"===ki(o))return e=>Qt(((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e}),{},e);{let r;const s=Ru(e,t,n,o);return r=s,e=>Mu(tn((e=>{const t=e;return[r(t[0]),i(t[1])]}),e))}}return Fu(e,t,n,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?Ou:"System.String"===o?e=>e:"System.Char"===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?Pu:"System.DateTimeOffset"===o?Tu:"System.TimeSpan"===o?Iu:"System.Guid"===o?Au:"System.Object"===o?e=>e:Fu(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function Gu(e,t,n,r){const o=U(t,new Su(0)),i=U(r,!0);return Ru(function(e){return null!=e?Qo(((e,t)=>new j(t[0])),e.Coders):ei()}(n),o,i,e)}Eu(),Eu();const Uu=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Lu=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Bu=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Hu(e,t){try{return t.contents=function(e){function t(e){return e.replace(Lu,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Uu.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+me(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(Lu.test(n))return t(n);if(Bu.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}}function ju(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 zu(e,t){try{return t.contents=function(e){const[t,n]=X(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n?0:6e4*n;return ju(t.getTime(),r)}(e),!0}catch(e){return!1}}class qu{constructor(e){this.k=e}}function Wu(e){return new qu(e)}function Vu(e){return e.k}class Zu extends qu{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function Yu(e,t,n,r){return new Zu(e,t,n,r)}function Ju(e){return e.left}function Xu(e){return e.right}function Ku(e){return e.h}function Qu(e,t){e:for(;;){const n=e,r=t;if(null!=n){const o=n;if(o instanceof Zu){e=Ju(o),t=Qu(Xu(o),r+1);continue e}return r+1|0}return 0|r}}function ea(e){return Qu(e,0)}function ta(e,t,n){let r,o;if(null!=e){const t=e;r=t instanceof Zu?Ku(t):1}else r=0;if(null!=n){const e=n;o=e instanceof Zu?Ku(e):1}else o=0;const i=0|(r<o?o:r);return 0===i?Wu(t):Yu(t,e,n,i+1)}function na(e,t,n){let r,o,i,s,u,a;if(null!=e){const t=e;u=t instanceof Zu?Ku(t):1}else u=0;if(null!=n){const e=n;a=e instanceof Zu?Ku(e):1}else a=0;if(a>u+2){const i=F(n);if(i instanceof Zu){if(r=Ju(i),(null!=r?(o=r,o instanceof Zu?Ku(o):1):0)>u+1){const n=F(Ju(i));if(n instanceof Zu)return ta(ta(e,t,Ju(n)),Vu(n),ta(Xu(n),Vu(i),Xu(i)));throw new Error("internal error: Set.rebalance")}return ta(ta(e,t,Ju(i)),Vu(i),Xu(i))}throw new Error("internal error: Set.rebalance")}if(u>a+2){const r=F(e);if(r instanceof Zu){if(i=Xu(r),(null!=i?(s=i,s instanceof Zu?Ku(s):1):0)>a+1){const e=F(Xu(r));if(e instanceof Zu)return ta(ta(Ju(r),Vu(r),Ju(e)),Vu(e),ta(Xu(e),t,n));throw new Error("internal error: Set.rebalance")}return ta(Ju(r),Vu(r),ta(Xu(r),t,n))}throw new Error("internal error: Set.rebalance")}return ta(e,t,n)}function ra(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,Vu(r));if(r instanceof Zu)return o<0?na(ra(e,t,Ju(r)),Vu(r),Xu(r)):0===o?n:na(Ju(r),Vu(r),ra(e,t,Xu(r)));{const o=0|e.Compare(t,Vu(r));return o<0?Yu(t,void 0,n,2):0===o?n:Yu(t,n,void 0,2)}}return Wu(t)}function oa(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,u=0|r.Compare(o,Vu(s));if(s instanceof Zu){if(u<0){e=r,t=o,n=Ju(s);continue e}if(0===u)return!0;e=r,t=o,n=Xu(s);continue e}return 0===u}return!1}}function ia(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof Zu){ia(n,Ju(o)),n(Vu(o)),e=n,t=Xu(o);continue e}n(Vu(o))}break}}class sa extends H{constructor(e,t){super(),this.stack=e,this.started=t}}function ua(e){e:for(;;){const t=e;if(Xe(t))return Ze();{const n=Qe(t),r=et(t);if(null!=n){const o=n;if(o instanceof Zu){e=ot([Ju(o),Wu(Vu(o)),Xu(o)],r);continue e}return t}e=r;continue e}}}function aa(e){return new sa(ua(Je(e)),!1)}function la(e){if(e.started){const t=e.stack;if(Xe(t))return function(){throw new Error("Enumeration already started")}();if(null!=Qe(t))return Vu(Qe(t));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function ca(e){let t=aa(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>la(t),"System.Collections.IEnumerator.get_Current":()=>la(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Xe(t))return!1;if(null!=Qe(t)){if(Qe(t)instanceof Zu)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=ua(et(t)),!Xe(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!Xe(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=aa(e)},Dispose(){}}}function $a(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,s=[o,i];if(Xe(s[0]))return Xe(s[1])?0:-1;if(Xe(s[1]))return 1;if(null!=Qe(s[1]))if(null!=Qe(s[0])){const u=Qe(s[0]),a=Qe(s[1]);if(u instanceof Zu)if(null==Ju(u)){if(!(a instanceof Zu)){const o=0|r.Compare(Vu(u),Vu(a));if(0!==o)return 0|o;e=r,t=Ye(Xu(u),et(s[0])),n=Ye(void 0,et(s[1]));continue e}if(null==Ju(a)){const o=0|r.Compare(Vu(u),Vu(a));if(0!==o)return 0|o;e=r,t=Ye(Xu(u),et(s[0])),n=Ye(Xu(a),et(s[1]));continue e}{const s=[o,i];let u,a,l,c,$;switch(Xe(s[0])?Xe(s[1])?u=2:null!=Qe(s[1])?(u=1,c=et(s[1]),$=Qe(s[1])):u=2:null!=Qe(s[0])?(u=0,a=et(s[0]),l=Qe(s[0])):Xe(s[1])?u=2:null!=Qe(s[1])?(u=1,c=et(s[1]),$=Qe(s[1])):u=2,u){case 0:if(l instanceof Zu){e=r,t=ot([Ju(l),Yu(Vu(l),void 0,Xu(l),0)],a),n=i;continue e}e=r,t=ot([void 0,Wu(Vu(l))],a),n=i;continue e;case 1:if($ instanceof Zu){e=r,t=o,n=ot([Ju($),Yu(Vu($),void 0,Xu($),0)],c);continue e}e=r,t=o,n=ot([void 0,Wu(Vu($))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const s=[o,i];let u,a,l,c,$;switch(Xe(s[0])?Xe(s[1])?u=2:null!=Qe(s[1])?(u=1,c=et(s[1]),$=Qe(s[1])):u=2:null!=Qe(s[0])?(u=0,a=et(s[0]),l=Qe(s[0])):Xe(s[1])?u=2:null!=Qe(s[1])?(u=1,c=et(s[1]),$=Qe(s[1])):u=2,u){case 0:if(l instanceof Zu){e=r,t=ot([Ju(l),Yu(Vu(l),void 0,Xu(l),0)],a),n=i;continue e}e=r,t=ot([void 0,Wu(Vu(l))],a),n=i;continue e;case 1:if($ instanceof Zu){e=r,t=o,n=ot([Ju($),Yu(Vu($),void 0,Xu($),0)],c);continue e}e=r,t=o,n=ot([void 0,Wu(Vu($))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(a instanceof Zu)){const o=0|r.Compare(Vu(u),Vu(a));if(0!==o)return 0|o;e=r,t=et(s[0]),n=et(s[1]);continue e}if(null==Ju(a)){const o=0|r.Compare(Vu(u),Vu(a));if(0!==o)return 0|o;e=r,t=Ye(void 0,et(s[0])),n=Ye(Xu(a),et(s[1]));continue e}{const s=[o,i];let u,a,l,c,$;switch(Xe(s[0])?Xe(s[1])?u=2:null!=Qe(s[1])?(u=1,c=et(s[1]),$=Qe(s[1])):u=2:null!=Qe(s[0])?(u=0,a=et(s[0]),l=Qe(s[0])):Xe(s[1])?u=2:null!=Qe(s[1])?(u=1,c=et(s[1]),$=Qe(s[1])):u=2,u){case 0:if(l instanceof Zu){e=r,t=ot([Ju(l),Yu(Vu(l),void 0,Xu(l),0)],a),n=i;continue e}e=r,t=ot([void 0,Wu(Vu(l))],a),n=i;continue e;case 1:if($ instanceof Zu){e=r,t=o,n=ot([Ju($),Yu(Vu($),void 0,Xu($),0)],c);continue e}e=r,t=o,n=ot([void 0,Wu(Vu($))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{Qe(s[1]);const u=[o,i];let a,l,c,$,f;switch(Xe(u[0])?Xe(u[1])?a=2:null!=Qe(u[1])?(a=1,$=et(u[1]),f=Qe(u[1])):a=2:null!=Qe(u[0])?(a=0,l=et(u[0]),c=Qe(u[0])):Xe(u[1])?a=2:null!=Qe(u[1])?(a=1,$=et(u[1]),f=Qe(u[1])):a=2,a){case 0:if(c instanceof Zu){e=r,t=ot([Ju(c),Yu(Vu(c),void 0,Xu(c),0)],l),n=i;continue e}e=r,t=ot([void 0,Wu(Vu(c))],l),n=i;continue e;case 1:if(f instanceof Zu){e=r,t=o,n=ot([Ju(f),Yu(Vu(f),void 0,Xu(f),0)],$);continue e}e=r,t=o,n=ot([void 0,Wu(Vu(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==Qe(s[0])){e=r,t=et(s[0]),n=et(s[1]);continue e}{Qe(s[0]);const u=[o,i];let a,l,c,$,f;switch(Xe(u[0])?Xe(u[1])?a=2:null!=Qe(u[1])?(a=1,$=et(u[1]),f=Qe(u[1])):a=2:null!=Qe(u[0])?(a=0,l=et(u[0]),c=Qe(u[0])):Xe(u[1])?a=2:null!=Qe(u[1])?(a=1,$=et(u[1]),f=Qe(u[1])):a=2,a){case 0:if(c instanceof Zu){e=r,t=ot([Ju(c),Yu(Vu(c),void 0,Xu(c),0)],l),n=i;continue e}e=r,t=ot([void 0,Wu(Vu(c))],l),n=i;continue e;case 1:if(f instanceof Zu){e=r,t=o,n=ot([Ju(f),Yu(Vu(f),void 0,Xu(f),0)],$);continue e}e=r,t=o,n=ot([void 0,Wu(Vu(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,Je(t),Je(n))}function fa(e,t,n){let r=n;ia((e=>{t[r]=e,r=r+1|0}),e)}function da(e,t){if(r(t))return function(e,t){return Ue(((t,n)=>ra(e,n,t)),void 0,t)}(e,t);if(t instanceof Le)return function(e,t){return nt(((t,n)=>ra(e,n,t)),void 0,t)}(e,t);{const n=l(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=ra(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{s(n)}}}class ha{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t,n=0;const r=l(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();)n=0|(t=0|y(r["System.Collections.Generic.IEnumerator`1.get_Current"]()),(n<<1)+t+631)}finally{s(r)}return 0|Math.abs(n)}(this)}Equals(e){return e instanceof ha&&0===$a(ma(this),pa(this),pa(e))}toString(){return"set ["+Me("; ",tn((e=>L(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|$a(ma(this),pa(this),pa(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 oa(ma(this),e,pa(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){fa(pa(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|wa(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|wa(this)}GetEnumerator(){return ca(pa(this))}[Symbol.iterator](){return c(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return ca(pa(this))}get size(){return 0|wa(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 oa(ma(e),t,pa(e))}(this,e)}keys(){return tn((e=>e),this)}values(){return tn((e=>e),this)}entries(){return tn((e=>[e,e]),this)}forEach(e,t){const n=this;en((t=>{e(t,t,n)}),n)}}function ma(e){return e.comparer}function pa(e){return e.tree}function wa(e){return ea(pa(e))}function ga(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 ya(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new wt(1,function(e,t){const n=2===t.tag?ga(t.fields[0],t.fields[1],!0):1===t.tag?ga(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?ga(t.fields[0],t.fields[1],!0):4===t.tag?ga(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"+Me("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:ga(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}(e[0],e[1]))}return new wt(0,r.fields[0])}function _a(e,t){try{return ya("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new wt(1,"Given an invalid JSON: "+e.message);throw e}}function va(e,t){return"string"==typeof t?new wt(0,t):new wt(1,[e,new Cu(0,"a string",t)])}const ba=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 wt(0,(e+128&255)-128):new wt(1,[r,new Cu(1,n,e,"Value was either too large or too small for a sbyte")]):new wt(1,[r,new Cu(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[fs(o,511,!1,8,new j((()=>t),(e=>{t=0|e}))),t],e[0]?new wt(0,e[1]):new wt(1,[r,new Cu(0,n,o)])}return new wt(1,[r,new Cu(0,n,o)])},Ca=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 wt(0,255&e):new wt(1,[r,new Cu(1,n,e,"Value was either too large or too small for a byte")]):new wt(1,[r,new Cu(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[fs(o,511,!0,8,new j((()=>t),(e=>{t=e}))),t],e[0]?new wt(0,e[1]):new wt(1,[r,new Cu(0,n,o)])}return new wt(1,[r,new Cu(0,n,o)])},Sa=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 wt(0,(e+32768&65535)-32768):new wt(1,[r,new Cu(1,n,e,"Value was either too large or too small for "+n)]):new wt(1,[r,new Cu(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[fs(o,511,!1,16,new j((()=>t),(e=>{t=0|e}))),t],e[0]?new wt(0,e[1]):new wt(1,[r,new Cu(0,n,o)])}return new wt(1,[r,new Cu(0,n,o)])},xa=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 wt(0,65535&e):new wt(1,[r,new Cu(1,n,e,"Value was either too large or too small for "+n)]):new wt(1,[r,new Cu(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[fs(o,511,!0,16,new j((()=>t),(e=>{t=e}))),t],e[0]?new wt(0,e[1]):new wt(1,[r,new Cu(0,n,o)])}return new wt(1,[r,new Cu(0,n,o)])},Ea=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 wt(0,~~e):new wt(1,[r,new Cu(1,n,e,"Value was either too large or too small for an int")]):new wt(1,[r,new Cu(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[fs(o,511,!1,32,new j((()=>t),(e=>{t=0|e}))),t],e[0]?new wt(0,e[1]):new wt(1,[r,new Cu(0,n,o)])}return new wt(1,[r,new Cu(0,n,o)])},ka=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 wt(0,e>>>0):new wt(1,[r,new Cu(1,n,e,"Value was either too large or too small for "+n)]):new wt(1,[r,new Cu(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[fs(o,511,!0,32,new j((()=>t),(e=>{t=e}))),t],e[0]?new wt(0,e[1]):new wt(1,[r,new Cu(0,n,o)])}return new wt(1,[r,new Cu(0,n,o)])};function Na(e,t,n,r){let o;const i=n+".["+h(e)+"]";if(Array.isArray(r)){const n=r;return e<n.length?t(i,n[e]):new wt(1,[i,new Cu(5,"a longer array. Need index `"+h(e)+"` but there are only `"+(o=n.length,h(o)+"` entries"),r)])}return new wt(1,[i,new Cu(0,"an array",r)])}function Aa(e,t,n){if(Array.isArray(n)){let r=-1;return gt(rt,Ue(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+h(r)+"]",o);return 0===i.tag?new wt(0,Ye(i.fields[0],n.fields[0])):new wt(1,i.fields[0])}return n}),new wt(0,Ze()),n))}return new wt(1,[t,new Cu(0,"a list",n)])}function Ma(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Ue(((n,o)=>{if(r=r+1|0,0===n.tag){const i=n.fields[0],s=e(t+".["+h(r)+"]",o);return 0===s.tag?(i[r]=s.fields[0],new wt(0,i)):new wt(1,s.fields[0])}return n}),new wt(0,Re(new Array(o.length),0,o.length,null)),o)}return new wt(1,[t,new Cu(0,"an array",n)])}function Ta(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new wt(1,o.fields[0])}function Ia(e,t){let n;const r=e;return n=e=>t=>Na(0,r,e,t),e=>r=>Ta(T(3,(e=>{let n;const r=t;return n=e=>t=>Na(1,r,e,t),t=>r=>Ta(((t,n,r)=>new wt(0,[e,t])),T(2,n),t,r)})),T(2,n),e,r)}function Oa(e){return Vo(e)}function Pa(e){return function(e,t){return new ha(e,t)}(t={Compare:k},da(t,e));var t}function Da(e,t,n,r){let o;const i=t.length+e|0;if(i!==r.length)return new wt(1,[n,new Cu(6,(o=0|r.length,Se(be("Expected array of length %i but got %i"))(i)(o)))]);{let o=new wt(0,Ze());for(let i=e;i<=r.length-1;i++)if(0===o.tag){const s=o.fields[0],u=Se(be("%s[%i]"))(n)(i),a=t[i-e],l=r[i];o=gt((e=>Ye(e,s)),a(u)(l))}return gt(rt,o)}}function Fa(e,t,n,r,o,i){const s=function(e,t){return t.find((e=>Ei(e)===r))}(0,Fi(n));if(null!=s){const n=s,r=Ge((n=>Ga(e,t,!1,n[1])),Hi(n));return gt((e=>ji(n,tt(e))),0===r.length&&i.length<=1?new wt(0,Ze()):Da(1,r,o,i))}return new wt(1,[o,new Cu(6,"Cannot find case "+r+" in "+ki(n))])}function Ra(e,t,n,r){const o=new j(null);let i;const s=ki(r);let u;if(i=""===s?e:Xo(s,o,e),Li(r)){const e=Ge((e=>[Nu(t,Ei(e)),Ga(i,t,!1,e[1])]),Ri(r));u=t=>n=>gt((e=>function(e,t){const n=Ri(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,tt(e))),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new wt(1,[t,new Cu(0,"an object",n)]):function(e,t,n){return t.reduceRight(((t,n)=>e(n,t)),n)}(T(2,(e=>{const r=e[0];return o=>0===o.tag?gt((e=>Ye(e,o.fields[0])),e[1](t+"."+r)(n[r])):o})),e,new wt(0,Ze()))}(e,t,n))}else if(Ui(r))u=e=>n=>{if("string"==typeof n)return Fa(i,t,r,n,e,[]);if(Array.isArray(n)){const o=n;return yt((n=>Fa(i,t,r,n,e,o)),va(e+"[0]",o[0]))}return new wt(1,[e,new Cu(0,"a string or array",n)])};else{if(!n){let e;const t=ki(r);throw e=Se(be("Cannot generate auto decoder for %s. Please pass an extra decoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders"))(t),new Error(e)}u=e=>t=>new wt(1,[e,new Cu(2,"an extra coder for "+ki(r),t)])}return o.contents=u,u}function Ga(e,t,n,r){let o,i,s,u;const a=ki(r),l=Ko(a,e);if(null==l){if(Ni(r)){const n=Ga(e,t,!1,Ai(r));return e=>t=>Ma(T(2,n),e,t)}if(Ti(r)){const e=ki(Oi(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,s=ba(o)(i);if(1===s.tag)return new wt(1,s.fields[0]);{const e=s.fields[0];return Kt(e,Pi(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new wt(0,Di(n,e.toString())):new wt(1,[o,new Cu(1,ki(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,s=Ca(o)(i);if(1===s.tag)return new wt(1,s.fields[0]);{const e=s.fields[0];return Kt(e,Pi(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new wt(0,Di(n,e.toString())):new wt(1,[o,new Cu(1,ki(n),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,s=Sa(o)(i);if(1===s.tag)return new wt(1,s.fields[0]);{const e=s.fields[0];return Kt(e,Pi(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new wt(0,Di(n,e.toString(u))):new wt(1,[o,new Cu(1,ki(n),i,"Unkown value provided for the enum")])}var u};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,s=xa(o)(i);if(1===s.tag)return new wt(1,s.fields[0]);{const e=s.fields[0];return Kt(e,Pi(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new wt(0,Di(n,e.toString())):new wt(1,[o,new Cu(1,ki(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,s=Ea(o)(i);if(1===s.tag)return new wt(1,s.fields[0]);{const e=s.fields[0];return Kt(e,Pi(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new wt(0,Di(n,h(e))):new wt(1,[o,new Cu(1,ki(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,s=ka(o)(i);if(1===s.tag)return new wt(1,s.fields[0]);{const e=s.fields[0];return Kt(e,Pi(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new wt(0,Di(n,e.toString())):new wt(1,[o,new Cu(1,ki(n),i,"Unkown value provided for the enum")])}};{const e=ki(r),t=xe(be("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the following 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(Mi(r)){if(Bi(r)){const n=Ge((n=>Ga(e,t,!1,n)),Gi(r));return e=>t=>Array.isArray(t)?gt((e=>tt(e)),Da(0,n,e,t)):new wt(1,[e,new Cu(0,"an array",t)])}{const a=ki(Ii(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===a)return o=Ga(e,t,!0,wi(r)[0]),e=>t=>{return n=T(2,o),r=e,null==(i=t)?new wt(0,void 0):gt(D,n(r,i));var n,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===a)return i=Ga(e,t,!1,wi(r)[0]),e=>t=>Aa(T(2,i),e,t);if("System.Collections.Generic.IEnumerable`1[System.Object]"===a)return s=Ga(e,t,!1,wi(r)[0]),e=>t=>function(e,t,n){if(Array.isArray(n)){let r=-1;return gt(nn,Ue(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+h(r)+"]",o);return 0===i.tag?new wt(0,Xt([i.fields[0]],n.fields[0])):new wt(1,i.fields[0])}return n}),new wt(0,[]),n))}return new wt(1,[t,new Cu(0,"a seq",n)])}(T(2,s),e,t);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===a){const n=Ga(e,t,!1,wi(r)[0]),o=Ga(e,t,!1,wi(r)[1]);let i;const s=it([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new wt(1,[n,new Cu(0,"an object",r)]):Qt(((o,i)=>{if(0===o.tag){const s=e(n,i);if(0===s.tag){const e=t(n+"."+i,r[i]);return 0===e.tag?new wt(0,Ye([s.fields[0],e.fields[0]],o.fields[0])):new wt(1,e.fields[0])}return new wt(1,s.fields[0])}return o}),new wt(0,Ze()),Object.keys(r))}(T(2,n),T(2,o),e,t),(u=Ia(T(2,n),T(2,o)),e=>t=>Aa(T(2,u),e,t))]);return i=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(Xe(o))return new wt(1,[n,new Cu(7,i)]);{const s=ya(n,T(2,Qe(o)),r);if(1===s.tag){e=et(o),t=ut(i,Je(s.fields[0]));continue e}return new wt(0,s.fields[0])}}})(s,Ze());var n,r},e=>t=>function(e,t,n,r){const o=t(n,r);return 1===o.tag?new wt(1,o.fields[0]):new wt(0,e(o.fields[0]))}(Oa,T(2,i),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===a){const n=Ga(e,t,!1,wi(r)[0]);return e=>t=>{const r=Ma(T(2,n),e,t);return 0===r.tag?new wt(0,Pa(r.fields[0])):new wt(1,r.fields[0])}}return Ra(e,t,n,r)}}return"System.Boolean"===a?e=>t=>{return n=e,"boolean"==typeof(r=t)?new wt(0,r):new wt(1,[n,new Cu(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===a?e=>t=>{return n=e,null==(r=t)?new wt(0,void 0):new wt(1,[n,new Cu(0,"null",r)]);var n,r}:"System.String"===a?e=>t=>va(e,t):"System.Char"===a?e=>t=>function(e,t){if("string"==typeof t){const n=t;return 1===n.length?new wt(0,n[0]):new wt(1,[e,new Cu(0,"a single character string",t)])}return new wt(1,[e,new Cu(0,"a char",t)])}(e,t):"System.SByte"===a?ba:"System.Byte"===a?Ca:"System.Int16"===a?Sa:"System.UInt16"===a?xa:"System.Int32"===a?Ea:"System.UInt32"===a?ka:"System.Double"===a?e=>t=>{return n=e,"number"==typeof(r=t)?new wt(0,r):new wt(1,[n,new Cu(0,"a float",r)]);var n,r}:"System.Single"===a?e=>t=>{return n=e,"number"==typeof(r=t)?new wt(0,r):new wt(1,[n,new Cu(0,"a float32",r)]);var n,r}:"System.DateTime"===a?e=>t=>function(e,t){if("string"==typeof t){let n,r=J();return n=[K(t,new j((()=>r),(e=>{r=e}))),r],n[0]?new wt(0,function(e){return 1===e.kind?e:Y(e.getTime(),1)}(n[1])):new wt(1,[e,new Cu(0,"a datetime",t)])}return new wt(1,[e,new Cu(0,"a datetime",t)])}(e,t):"System.DateTimeOffset"===a?e=>t=>function(e,t){if("string"==typeof t){let n,r=ju(-621355968e5,0);return n=[zu(t,new j((()=>r),(e=>{r=e}))),r],n[0]?new wt(0,n[1]):new wt(1,[e,new Cu(0,"a datetimeoffset",t)])}return new wt(1,[e,new Cu(0,"a datetime",t)])}(e,t):"System.TimeSpan"===a?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[bu(t,new j((()=>r),(e=>{r=e}))),r],n[0]?new wt(0,n[1]):new wt(1,[e,new Cu(0,"a timespan",t)])}return new wt(1,[e,new Cu(0,"a timespan",t)])}(e,t):"System.Guid"===a?e=>t=>function(e,t){if("string"==typeof t){let n,r="00000000-0000-0000-0000-000000000000";return n=[Hu(t,new j((()=>r),(e=>{r=e}))),r],n[0]?new wt(0,n[1]):new wt(1,[e,new Cu(0,"a guid",t)])}return new wt(1,[e,new Cu(0,"a guid",t)])}(e,t):"System.Object"===a?e=>e=>new wt(0,e):Ra(e,t,n,r)}{const e=l;return t=>n=>e.contents(t)(n)}}function Ua(e,t,n){const r=U(t,new Su(0));return Ga(function(e){return null!=e?Qo(((e,t)=>new j(t[1])),e.Coders):ei()}(n),r,!1,e)}class La extends H{constructor(e,t,n,r,o,i,s){super(),this.Name=e,this.Title=t,this.Gender=n,this.Email=r,this.MobilePhone=o,this.DateOfBirth=i,this.Address=s}}function Ba(){return _i("Dto.Api.Backend.Common.FullProfileDto",[],La,(()=>[["Name",Zi()],["Title",xi],["Gender",xi],["Email",xi],["MobilePhone",xi],["DateOfBirth",xi],["Address",Ji()]]))}class Ha extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Success","Failure","Info"]}}function ja(e){switch(e.tag){case 0:return"text-green-700";case 2:return"text-blue-700";default:return"text-red-700"}}function za(e){switch(e.tag){case 0:return"bg-green-50";case 2:return"bg-blue-50";default:return"bg-red-50"}}function qa(e){return e.tag,e.fields[0]}function Wa(e){let t,n,r,o,i;const s=e.hideAlert,u=e.alert,a=bt();Kr((()=>{!function(e,t){xt(pt.Delay((()=>pt.Bind(mt((e=>{let t;const n=setTimeout((()=>{e.cancelToken.removeListener(t),e.onSuccess(void 0)}),5e3);t=e.cancelToken.addListener((()=>{clearTimeout(n),e.onCancel(new dt)}))})),(()=>(e(),pt.Zero()))))),t)}(s,a)}));const l=Sn("svg",A(it([["className",Me(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(t=Je(Sn("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"})),["children",Vr.Children.toArray(Array.from(t))])])));return Sn("div",A(it([["className",Me(" ",["rounded-md","p-4","my-4",za(u)])],(n=[Sn("div",A(it([["className",Me(" ",["flex"])],(r=[Sn("p",{className:Me(" ",["text-sm",ja(u)]),children:qa(u)}),Sn("div",A(it([["className",Me(" ",["ml-auto"])],(o=[Sn("div",A(it([["className",Me(" ",["-mx-1.5","-my-1.5"])],(i=[Sn("button",{type:"button",className:Me(" ",Zt(zt((()=>Xt(Vt("inline-flex"),zt((()=>Xt(Vt("rounded-md"),zt((()=>Xt(Vt("p-1.5"),zt((()=>Xt(Vt("focus:outline-none"),zt((()=>Xt(Vt("focus:ring-2"),zt((()=>Xt(Vt("focus:ring-offset-2"),zt((()=>function(e){switch(e.tag){case 0:return it(["bg-green-50","text-green-500","hover:bg-green-100","focus:ring-offset-green-50","focus:ring-green-600"]);case 2:return it(["bg-blue-50","text-blue-500","hover:bg-blue-100","focus:ring-offset-blue-50","focus:ring-blue-600"]);default:return it(["bg-red-50","text-red-500","hover:bg-red-100","focus:ring-offset-red-50","focus:ring-red-600"])}}(u))))))))))))))))))))))),children:Vr.Children.toArray([l]),onClick:e=>{Ct(a),s()}})],["children",Vr.Children.toArray(Array.from(i))])])))],["children",Vr.Children.toArray(Array.from(o))])])))],["children",Vr.Children.toArray(Array.from(r))])])))],["children",Vr.Children.toArray(Array.from(n))])])))}class Va extends H{constructor(e,t,n,r,o,i,s){super(),this.Name=e,this.Email=t,this.MobilePhone=n,this.Title=r,this.Gender=o,this.DateOfBirth=i,this.Address=s}}class Za extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Full","Partial"]}}class Ya extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Success","EmailNotUnique"]}}class Ja extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function Xa(e,t){const n=Qr(bt());return Xr((()=>Yr((()=>{Ct(n.current)}))),[]),eo((r=>{var o;null!=(o=n.current)&&o.isCancelled||xt(pt.Delay((()=>pt.TryWith(pt.Delay((()=>(t(new Ja(1)),pt.Bind(e(r),(e=>(t(new Ja(2,e)),pt.Zero())))))),(e=>(t(new Ja(3,e)),pt.Zero()))))),n.current)}))}function Ka(e){return ci(e)}function Qa(){return it([[new zi(0),"Male"],[new zi(1),"Female"],[new zi(2),"Intersex"],[new zi(3),"Transgender"],[new zi(4),"Prefer not to answer"],[new zi(5),"Other"]])}function el(e){return lt((t=>t[1]===e?t[0]:void 0),Qa())}class tl extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Mr","Miss","Mrs","Ms","Mx","Dr","Prof"]}}function nl(){return it([[new tl(0),"Mr"],[new tl(1),"Miss"],[new tl(2),"Mrs"],[new tl(3),"Ms"],[new tl(4),"Mx"],[new tl(5),"Dr"],[new tl(6),"Prof"]])}function rl(e){return lt((t=>t[1]===e?t[0]:void 0),nl())}class ol extends H{constructor(e,t,n,r,o,i){super(),this.FirstName=e,this.MiddleName=t,this.LastName=n,this.Title=r,this.DateOfBirth=o,this.Gender=i}}const il=new ol("","","",void 0,void 0,void 0);class sl extends H{constructor(e,t,n,r,o,i,s){super(),this.Email=e,this.MobileNumber=t,this.StreetAddress=n,this.Suburb=r,this.State=o,this.Postcode=i,this.NonUniqueEmails=s}}const ul=new sl("","","","",void 0,"",Ze());class al extends H{constructor(e,t){super(),this.Identification=e,this.ContactDetails=t}}const ll=new al(il,ul);function cl(e){let t,n,r,o,i,s,u;if(1===e.tag){const a=e.fields[0];return new al(new ol(a.Name.FirstName,U(a.Name.MiddleName,""),a.Name.LastName,(t=a.Title,null==t?void 0:rl(t)),(n=a.DateOfBirth,null==n?void 0:Ka(n)),(r=a.Gender,null==r?void 0:el(r))),new sl(a.Email,as(U(a.MobilePhone,"")),U((o=a.Address,null==o?void 0:o.AddressLine1),""),U((i=a.Address,null==i?void 0:i.City),""),(s=a.Address,null==s?void 0:is(s.State)),U((u=a.Address,null==u?void 0:u.Postcode),""),Ze()))}{const t=e.fields[0];return new al(new ol(t.Name.FirstName,U(t.Name.MiddleName,""),t.Name.LastName,rl(t.Title),Ka(t.DateOfBirth),el(t.Gender)),new sl(t.Email,as(t.MobilePhone),t.Address.AddressLine1,t.Address.City,is(t.Address.State),t.Address.Postcode,Ze()))}}class $l extends H{constructor(e,t,n,r){super(),this.FormModel=e,this.CurrentAlert=t,this.ExistingProfile=n,this.SaveStatus=r}}class fl extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetIdentification","SetContactDetails","GetProfileCallback","SaveStarted","SaveFinished","ShowAlert","HideAlert"]}}function dl(e){return`${e}/profiles/backend/profiles`}function hl(e,t){const n=pt.Delay((()=>{const n=fi(t,ii(new ho(0),oi(dl(e))));return pt.Bind(n,(e=>{const t=e;if(1===t.tag)return pt.Return(new wt(1,t.fields[0]));{const e=t.fields[0];if(200===e.statusCode){const t=(n=e.responseText,_a(T(2,Ua(vi("Dto.Api.Backend.Read.ProfileDto",[],Za,(()=>[[["Item",Ba()]],[["Item",_i("Dto.Api.Backend.Read.PartialProfileDto",[],Va,(()=>[["Name",Zi()],["Email",xi],["MobilePhone",bi(xi)],["Title",bi(xi)],["Gender",bi(xi)],["DateOfBirth",bi(xi)],["Address",bi(Ji())]]))]]])),new Su(1),void 0)),n));return pt.Return(t)}return pt.Return(new wt(1,""))}var n}))}));return pt.Bind(n,(e=>{let t;const n=e;return t=1===n.tag?new wt(1,new ts(1)):new wt(0,n.fields[0]),pt.Return(t)}))}function ml(e,t,n){const r=pt.Delay((()=>{let r;const o=fi(t,(r=ui(new po(1,function(e){return Du(0,Gu(Ba(),new Su(1),void 0,void 0)(e))}(n)),ii(new ho(2),oi(dl(e)))),si(ti("application/json"),r)));return pt.Bind(o,(e=>{const t=e;if(1===t.tag)return pt.Return(new wt(1,t.fields[0]));{const e=t.fields[0];if(200===e.statusCode){const t=(n=e.responseText,_a(T(2,Ua(vi("Dto.Api.Backend.Read.ProfileUpdateStatus",[],Ya,(()=>[[],[]])),new Su(1),void 0)),n));return pt.Return(t)}return pt.Return(new wt(1,""))}var n}))}));return pt.Bind(r,(e=>{let t;const n=e;return t=1===n.tag?new wt(1,new ts(0)):new wt(0,n.fields[0]),pt.Return(t)}))}function pl(e,t){if(1===e.tag)return[new $l(new al(t.FormModel.Identification,e.fields[0](t.FormModel.ContactDetails)),t.CurrentAlert,t.ExistingProfile,t.SaveStatus),Mt()];if(2!==e.tag){if(3===e.tag){const n=new $l(t.FormModel,t.CurrentAlert,t.ExistingProfile,new Ja(1)),r=function(e){let t,n;const r=e.Identification.Gender;if(n=null==r?new wt(1,"Gender missing"):new wt(0,r),t=1===n.tag?new wt(1,n.fields[0]):new wt(0,function(e){switch(e.tag){case 1:return"Female";case 2:return"Intersex";case 3:return"Transgender";case 4:return"PreferNotToAnswer";case 5:return"Other";case 6:return"NotSet";default:return"Male"}}(n.fields[0])),1===t.tag)return new wt(1,t.fields[0]);{let n,r;const o=e.ContactDetails.State;if(r=null==o?new wt(1,"State missing"):new wt(0,o),n=1===r.tag?new wt(1,r.fields[0]):new wt(0,rs(r.fields[0])),1===n.tag)return new wt(1,n.fields[0]);{let r,o;const i=e.Identification.Title;if(o=null==i?new wt(1,"Title missing"):new wt(0,i),r=1===o.tag?new wt(1,o.fields[0]):new wt(0,function(e){return L(e)}(o.fields[0])),1===r.tag)return new wt(1,r.fields[0]);{let o,i;const s=e.Identification.DateOfBirth;return i=null==s?new wt(1,"DateOfBirth missing"):new wt(0,s),o=1===i.tag?new wt(1,i.fields[0]):new wt(0,function(e){return Z(e,"yyyy-MM-dd")}(i.fields[0])),1===o.tag?new wt(1,o.fields[0]):new wt(0,new La(new Vi(e.Identification.FirstName.trim(),li(e.Identification.MiddleName.trim()),e.Identification.LastName.trim()),r.fields[0],t.fields[0],e.ContactDetails.Email.trim(),us(e.ContactDetails.MobileNumber),o.fields[0],new Yi(e.ContactDetails.StreetAddress.trim(),void 0,e.ContactDetails.Suburb.trim(),n.fields[0],e.ContactDetails.Postcode.trim(),"AU")))}}}}(t.FormModel);return 1===r.tag?[n,Tt(new fl(4,new wt(1,new ts(0))))]:[n,It((e=>{Ot(e)}),(t=>ml(e.fields[0],e.fields[1],t)),r.fields[0],(t=>new fl(4,gt((t=>[t,e.fields[2]]),t))),(e=>new fl(4,new wt(1,new ts(0)))))]}return 4===e.tag?1===e.fields[0].tag?[new $l(t.FormModel,t.CurrentAlert,t.ExistingProfile,new Ja(3,new Error(ns(e.fields[0].fields[0])))),Tt(new fl(5,new Ha(1,ns(e.fields[0].fields[0]))))]:1===e.fields[0].fields[0][0].tag?[new $l(t.FormModel,t.CurrentAlert,t.ExistingProfile,new Ja(2,void 0)),Tt(new fl(1,(e=>new sl(e.Email,e.MobileNumber,e.StreetAddress,e.Suburb,e.State,e.Postcode,ut(e.NonUniqueEmails,Je(t.FormModel.ContactDetails.Email))))))]:(e.fields[0].fields[0][1](),[new $l(t.FormModel,t.CurrentAlert,t.ExistingProfile,new Ja(2,void 0)),Mt()]):5===e.tag?[new $l(t.FormModel,e.fields[0],t.ExistingProfile,t.SaveStatus),Mt()]:6===e.tag?[new $l(t.FormModel,void 0,t.ExistingProfile,t.SaveStatus),Mt()]:[new $l(new al(e.fields[0](t.FormModel.Identification),t.FormModel.ContactDetails),t.CurrentAlert,t.ExistingProfile,t.SaveStatus),Mt()]}{let n,r;switch(3===e.fields[0].tag?n=1:0===e.fields[0].tag?n=2:1===e.fields[0].tag?n=3:1===e.fields[0].fields[0].tag?n=1:(n=0,r=e.fields[0].fields[0].fields[0]),n){case 0:return[new $l(cl(r),t.CurrentAlert,new Ja(2,r),t.SaveStatus),Mt()];case 1:return[new $l(t.FormModel,t.CurrentAlert,new Ja(3,new Error(ns(new ts(1)))),t.SaveStatus),Mt()];case 2:return[new $l(t.FormModel,t.CurrentAlert,new Ja(0),t.SaveStatus),Mt()];case 3:return[new $l(t.FormModel,t.CurrentAlert,new Ja(1),t.SaveStatus),Mt()]}}}function wl(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class gl{constructor(e,t){const n=new j(null);this.comparer=t,n.contents=this,this.hashMap=new Map([]),this["init@8-2"]=1;const r=l(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();bl(n.contents,e)}}finally{s(r)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(e){return Array.from(this)}"System.Collections.IEnumerable.GetEnumerator"(){return l(this)}GetEnumerator(){return l(qt(this.hashMap.values()))}[Symbol.iterator](){return c(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){bl(this,e)}"System.Collections.Generic.ICollection`1.Clear"(){_l(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Cl(this,e)}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){var n;n=(n,r)=>{e[t+n]=r},Qt(((e,t)=>(n(e,t),e+1|0)),0,this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|vl(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){return Sl(this,e)}get size(){return 0|vl(this)}add(e){return bl(this,e),this}clear(){_l(this)}delete(e){return Sl(this,e)}has(e){return Cl(this,e)}keys(){return tn((e=>e),this)}values(){return tn((e=>e),this)}entries(){return tn((e=>[e,e]),this)}forEach(e,t){const n=this;en((t=>{e(t,t,n)}),n)}}function yl(e,t){const n=0|e.comparer.GetHashCode(t);let r,o=null;return r=[(i=e.hashMap,s=n,u=new j((()=>o),(e=>{o=e})),!!i.has(s)&&(u.contents=i.get(s),!0)),o],r[0]?[!0,n,r[1].findIndex((n=>e.comparer.Equals(t,n)))]:[!1,n,-1];var i,s,u}function _l(e){e.hashMap.clear()}function vl(e){let t=0,n=l(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();)t=t+n["System.Collections.Generic.IEnumerator`1.get_Current"]().length|0}finally{s(n)}return 0|t}function bl(e,t){const n=yl(e,t);return n[0]?!(n[2]>-1)&&(wl(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function Cl(e,t){const n=yl(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!0;case 1:return!1}}function Sl(e,t){const n=yl(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return wl(e.hashMap,n[1]).splice(n[2],1),!0;case 1:return!1}}function xl(e,t){return zt((()=>{const n=new gl([],t);return function(e,t){return function(e,t){return Yt((()=>jt(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=>{s(e)}))}((t=>e(t)?D(t):void 0),t)}((e=>function(e,t){return!t.has(e)&&(t.add(e),!0)}(e,n)),e)}))}function El(e){const t=sr(e);return[t[0],e=>{t[1](e)}]}class kl extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Required","MaxLen","MinLen","Regex","CustomRule"]}}function Nl(e){const t=e.values();return n=Zt(zt((()=>on((e=>{const t=e[0],n=at((t=>Ne(t,e[1])),function(e,t){const n=He(),r=nt(((e,t)=>{const n=1===(r=t).tag?r.fields[0]:void 0;var r;if(null==n)return e;{const t=new Le(F(n),void 0);return e.tail=t,t}}),n,t),o=He();return r.tail=o,Ve(n)}(0,at((e=>{switch(e.tag){case 1:return function(e,t){return t.length>e?new wt(1,Se(be("{0} exceeds the max length of %i"))(e)):new wt(0,void 0)}(e.fields[0],t.value);case 2:return n=e.fields[0],t.value.length<n?new wt(1,Se(be("{0} must be at least %i characters"))(n)):new wt(0,void 0);case 3:return function(e,t,n){return null!=pe(he(e),n)?new wt(0,void 0):new wt(1,Se(be("{0} is not a valid %s"))(t))}(e.fields[0],e.fields[1],t.value);case 4:return e.fields[0];default:return function(e){return Ae(e)?new wt(1,"{0} is required"):new wt(0,void 0)}(t.value)}var n}),e[2])));return Xt(Ke(n)>0?(t.classList.add("error"),t.setAttribute("title",function(e,t){return function(e,t){return((e,n)=>{for(;;){const r=e,o=n,i=o.tail;if(null==i)throw new Error("The index was outside the range of elements in the collection.\\nParameter name: index");if(r===t)return o.head;e=r+1,n=i}})(0,e)}(t,e)}(0,n)),Wt()):(t.classList.remove("error"),t.removeAttribute("title"),Wt()),zt((()=>n)))}),t)))),r={Equals:(e,t)=>e===t,GetHashCode:p},Zt(xl(n,r));var n,r}function Al(e){let t=l(e.values());try{for(;t["System.Collections.IEnumerator.MoveNext"]();){const e=t["System.Collections.Generic.IEnumerator`1.get_Current"]()[0];e.classList.remove("error"),e.removeAttribute("title")}}finally{s(t)}}function Ml(){const e=cr(new Map([])).current,t=El(Ze()),n=t[1],r=t[0],o=El(!1),i=o[1];return ar((()=>{if(o[0]){const t=Nl(e);C(t,r)||(n(t),Al(e))}})),[cr((t=>n=>r=>{if(!C(r,null)){let o;o=r.hasAttribute("data-vkey")?r.getAttribute("data-vkey"):h(_(r)),e.set(o,[r,t,n])}})).current,()=>{i(!0);const t=Nl(e);return n(t),0===Ke(t)},()=>{i(!1),Al(e),n(Ze())},r]}const Tl=L(n(118).Z),Il=it(["grid","grid-cols-1","sm:grid-cols-3","gap-x-6","gap-y-4","mt-4"]);class Ol extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Your","EmergencyContact"]}}function Pl(e){return 1===e.tag?"emergency contact":"your"}class Dl extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TestId"]}}function Fl(e){return e.fields[0]}function Rl(e,t){return e+(n=t,r=new kl(0),o={Equals:C,GetHashCode:_},null!=ct((e=>o.Equals(r,e)),n)?" *":"");var n,r,o}function Gl(e,t,n,r,o){const i=Zt(zt((()=>Xt(Vt(Sn("label",{className:Me(" ",["block","text-sm","font-medium","text-gray-700"]),children:Rl(e,t)})),zt((()=>Xt(Vt(Sn("div",{className:Me(" ",["mt-1"]),children:Vr.Children.toArray([o])})),zt((()=>{if(null!=n){const e=n;return Vt(Sn("p",{className:Me(" ",["mt-2","text-sm","text-red-600"]),children:e,"data-testid":`${Fl(r)}-error`}))}return Vt(null)})))))))));return Sn("div",{children:Vr.Children.toArray(Array.from(i))})}const Ul=it(["border-red-300","text-red-900","placeholder-red-300","focus:outline-none","focus:ring-red-500","focus:border-red-500"]);function Ll(e){return Zt(zt((()=>Xt(Vt("block"),zt((()=>Xt(Vt("shadow-sm"),zt((()=>Xt(Vt("w-full"),zt((()=>Xt(Vt("sm:text-sm"),zt((()=>Xt(Vt("rounded-md"),zt((()=>e?Ul:Xt(Vt("border-gray-300"),zt((()=>Xt(Vt("focus:ring-primary-focus"),zt((()=>Vt("focus:border-primary-focus")))))))))))))))))))))))))}function Bl(e,t,n,r,o,i,s,u,a){return Gl(e,r,o,u,Sn("input",A(Zt(zt((()=>Xt(Vt(["className",Me(" ",Ll(null!=o))]),zt((()=>Xt(Vt(["value",t]),zt((()=>Xt(Vt(["ref",O(1,n,[r])]),zt((()=>Xt(Vt(["type","text"]),zt((()=>Xt(Vt(["onChange",e=>{i(e.target.value)}]),zt((()=>Xt(Vt(["placeholder",`Enter ${Pl(s)} ${e.toLocaleLowerCase()}`]),zt((()=>Xt(Vt(["data-testid",Fl(u)]),zt((()=>a)))))))))))))))))))))))))))}class Hl extends H{constructor(e,t,n){super(),this.Day=e,this.Month=t,this.Year=n}}const jl=new Hl("","","");function zl(e){return 1===e.length?`0${e}`:e}function ql(e){const t=function(e){return`${e.Year}-${zl(e.Month)}-${zl(e.Day)}`}(e),n=(r=t,ps(new ws(7),((e,t,n)=>{}),r));var r;let o;switch(o=1===n.tag&&7===n.fields[0].tag?0:1,o){case 0:return new wt(1,void 0);case 1:return new wt(0,t)}}function Wl(e){let t,n,r,o,i;const s=e.onChangeHandler,u=e.testId,a=e.error,l=e.validationRules,c=e.rulesForFieldName,$=e.value,f=e.fieldName,d=(m=null==$?jl:function(e){return new Hl(zl(h(re(e))),zl(h(oe(e))),h(ie(e)))}($),Vr.useState(m));var m;const p=d[0],w=e=>{let t;d[1](e),s((t=ql(e),1===t.tag?void 0:ci(t.fields[0])))},g=(e,t,n,r)=>{const o=Pe(es,r);return 0==(0|o.length)?o:$s(o,511,!1,32)<=t?De(o,0,function(e,t,n){return e(t,n)<0?t:n}(x,e,o.length)):n},y=Fl(u);return Gl(f,l,a,u,Sn("div",A(it([["className",Me(" ",["grid","grid-cols-4","gap-1"])],(t=[Sn("div",A(it([["className",Me(" ",["col-span-1"])],(n=[Sn("input",{className:Me(" ",Ll(null!=a)),type:"text",value:p.Day,placeholder:"dd",onChange:e=>{const t=e.target.value;w(new Hl(g(2,31,p.Day,t),p.Month,p.Year))},onBlur:e=>{w(new Hl(zl(p.Day),p.Month,p.Year))},inputMode:"numeric",autoComplete:"bday-day","data-testid":`${y}-day`})],["children",Vr.Children.toArray(Array.from(n))])]))),Sn("div",A(it([["className",Me(" ",["col-span-1"])],(r=[Sn("input",{className:Me(" ",Ll(null!=a)),type:"text",value:p.Month,placeholder:"mm",onChange:e=>{const t=e.target.value;w(new Hl(p.Day,g(2,12,p.Month,t),p.Year))},onBlur:e=>{w(new Hl(p.Day,zl(p.Month),p.Year))},inputMode:"numeric",autoComplete:"bday-month","data-testid":`${y}-month`})],["children",Vr.Children.toArray(Array.from(r))])]))),Sn("div",A(it([["className",Me(" ",["col-span-2"])],(o=[Sn("input",{className:Me(" ",Ll(null!=a)),type:"text",value:p.Year,placeholder:"yyyy",onChange:e=>{let t;const n=e.target.value;w(new Hl(p.Day,p.Month,g(4,(t=ee(),ie(t)),p.Year,n)))},inputMode:"numeric",autoComplete:"bday-year","data-testid":`${y}-year`})],["children",Vr.Children.toArray(Array.from(o))])]))),Sn("input",{type:"hidden",ref:c(l),value:(i=ql(p),1===i.tag?"":i.fields[0])})],["children",Vr.Children.toArray(Array.from(t))])]))))}function Vl(e,t,n,r,o,i,s,u,a){let l;return Gl(e,o,i,a,Sn("select",A(it([["className",Me(" ",Zt(zt((()=>Xt(Vt("mt-1"),zt((()=>Xt(Vt("block"),zt((()=>Xt(Vt("w-full"),zt((()=>Xt(Vt("pl-3"),zt((()=>Xt(Vt("pr-10"),zt((()=>Xt(Vt("py-2"),zt((()=>Xt(Vt("text-base"),zt((()=>Xt(Vt("sm:text-sm"),zt((()=>Xt(Vt("rounded-md"),zt((()=>null==i?Xt(Vt("border-gray-300"),zt((()=>Xt(Vt("focus:outline-none"),zt((()=>Xt(Vt("focus:ring-primary-focus"),zt((()=>Vt("focus:border-primary-focus")))))))))):Ul)))))))))))))))))))))))))))))))],["ref",O(1,r,[o])],(l=Zt(zt((()=>Xt(Vt(Sn("option",{selected:null==t,disabled:!0,value:"",children:`Select ${Pl(u)} ${e.toLocaleLowerCase()}`})),zt((()=>on((e=>{const n=e[1];return Vt(Sn("option",{selected:Kt(e[0],G(t),{Equals:C,GetHashCode:y}),value:n,children:n,className:Me(" ",["text-black"])}))}),n))))))),["children",Vr.Children.toArray(Array.from(l))]),["onChange",e=>{s(e.target.value)}],["data-testid",Fl(a)]]))))}function Zl(e,t,n,r,o,i,s,u){return Gl(e,r,o,u,Sn("input",{className:Me(" ",Ll(null!=o)),type:"tel",value:t,ref:O(1,n,[r]),onChange:e=>{let t;const n=e.target.value;i((t=Pe(es,n),0===n.indexOf("+")?`+${t}`:t))},placeholder:`Enter ${Pl(s)} ${e.toLocaleLowerCase()}`,inputMode:"tel",autoComplete:"tel-national","data-testid":Fl(u)}))}function Yl(e,t,n){let r,o,i,s;const u=n&&!C(t,new Ja(1)),a=Sn("svg",A(it([["className",Me(" ",["animate-spin","-ml-1","mr-3","h-5","w-5","text-white"])],["fill","none"],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(r=it([Sn("circle",{className:Me(" ",["opacity-25"]),cx:12,cy:12,r:10,stroke:"currentColor",strokeWidth:4}),Sn("path",{className:Me(" ",["opacity-75"]),fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]),["children",Vr.Children.toArray(Array.from(r))])])));return Sn("div",A(it([["className",Me(" ",["flex","flex-row-reverse"])],(o=[(i=Je(Sn("button",A(it([["className",Me(" ",Zt(zt((()=>Xt(Vt("inline-flex"),zt((()=>Xt(Vt("items-center"),zt((()=>Xt(Vt("px-4"),zt((()=>Xt(Vt("py-2"),zt((()=>Xt(Vt("border"),zt((()=>Xt(Vt("border-transparent"),zt((()=>Xt(Vt("shadow-sm"),zt((()=>Xt(Vt("text-sm"),zt((()=>Xt(Vt("font-medium"),zt((()=>Xt(Vt("rounded-md"),zt((()=>Xt(Vt("text-primary-text"),zt((()=>Xt(Vt("focus:outline-none"),zt((()=>Xt(Vt("focus:ring-2"),zt((()=>Xt(Vt("focus:ring-offset-2"),zt((()=>Xt(Vt("focus:ring-primary-focus"),zt((()=>{const e=[u,t];let n;switch(n=e[0]||1===e[1].tag?0:1,n){case 0:return Xt(Vt("bg-primary-base"),zt((()=>Vt("hover:bg-primary-hover"))));case 1:return Vt("bg-primary-disabled")}})))))))))))))))))))))))))))))))))))))))))))))))))],["type","button"],["disabled",!u],["onClick",t=>{u&&e()}],(s=Zt(zt((()=>Xt(1===t.tag?Vt(a):Vt(null),zt((()=>Vt(Sn("span",{children:["Save and continue"]})))))))),["children",Vr.Children.toArray(Array.from(s))]),["data-testid","save"]])))),Sn("div",{children:Vr.Children.toArray(Array.from(i))}))],["children",Vr.Children.toArray(Array.from(o))])])))}function Jl(e){return(0===e.indexOf("04")?10===e.length:0===e.indexOf("614")?11===e.length:0===e.indexOf("+614")&&12===e.length)?new wt(0,void 0):new wt(1,new ws(9))}function Xl(e){let t;return new kl(4,(t=function(e){let t;const n=e;return 1===n.tag?new wt(1,(t=n.fields[0],1===t.tag?`{0} exceeds the character limit of ${t.fields[0]}`:2===t.tag?`{0} must be at least ${t.fields[0]} characters`:4===t.tag?"{0} must only have numbers":5===t.tag?"{0} is not valid":3===t.tag?"{0} has invalid characters":6===t.tag?"{0} is not valid":9===t.tag?"{0} is not a valid Australian mobile number":7===t.tag?"{0} is not valid":8===t.tag?0===t.fields[0].tag?"{0} must be under 100 years of age":"{0} must be at least 13 years of age":10===t.tag?"{0} must start with a letter":"{0} is required")):new wt(0,n.fields[0])}(e),1===t.tag?new wt(1,t.fields[0]):new wt(0,void 0)))}function Kl(e,t){let n;n=new CustomEvent("step-completion",{bubbles:!0,detail:e}),t.dispatchEvent(n)}function Ql(e){let t;const n=io([new $l(ll,void 0,new Ja(0),new Ja(0)),Mt()],pl),r=n[0],o=n[1],i=Ml(),s=i[0],u=i[3];Kr(Xa((()=>hl(e.backendUrl,e.accessToken)),(e=>{o(new fl(2,e))})));const a=Sn("h3",{className:Me(" ",["text-2xl","font-medium"]),children:"Personal Details"});return Sn("div",A(it([["className",Me(" ",["font-sans"])],(t=Zt(zt((()=>Xt(Vt(Sn("style",{children:[Tl]})),zt((()=>{const t=r.ExistingProfile;switch(t.tag){case 1:default:return Vt(Sn("div",{children:["Please wait..."]}));case 2:return Xt(Vt(a),zt((()=>Xt(Vt(function(e,t,n,r){let o;return Sn("div",A(it([["className",Me(" ",["py-3","mb-2"])],(o=Zt(zt((()=>Xt(Vt(Sn("h6",{className:Me(" ",["text-lg","font-semibold"]),children:"Identification"})),zt((()=>{let o;const i="Identification";return Vt(Sn("div",A(it([["className",Me(" ",Il)],(o=Zt(zt((()=>{const o="Legal first name",s=`${i}.${o}`;return Xt(Vt(Bl(o,e.FirstName,T(2,O(2,t,[s])),it([new kl(0),Xl(ks(e.FirstName))]),di(s,o,n),(e=>{r(new fl(0,(t=>new ol(hi(e),t.MiddleName,t.LastName,t.Title,t.DateOfBirth,t.Gender))))}),new Ol(0),new Dl(0,"first-name"),[["autoComplete","given-name"]])),zt((()=>{const o="Middle name",s=`${i}.Middle name`;return Xt(Vt(Bl(o,e.MiddleName,T(2,O(2,t,[s])),Je(Xl(function(e){return null!=e?Es(it([e=>vs(60,e),e=>xs("-",e),e=>xs("'",e),e=>Cs("(^[A-Za-zÀ-ÖØ-öø-ÿĀ-ž])[A-Za-zÀ-ÖØ-öø-ÿĀ-ž\\- ']{0,59}$",e)]),e):new wt(0,void 0)}(li(e.MiddleName)))),di(s,o,n),(e=>{r(new fl(0,(t=>new ol(t.FirstName,hi(e),t.LastName,t.Title,t.DateOfBirth,t.Gender))))}),new Ol(0),new Dl(0,"middle-name"),[["autoComplete","additional-name"]])),zt((()=>{const o="Last name",s=`${i}.Last name`;return Xt(Vt(Bl(o,e.LastName,T(2,O(2,t,[s])),it([new kl(0),Xl(ks(e.LastName))]),di(s,o,n),(e=>{r(new fl(0,(t=>new ol(t.FirstName,t.MiddleName,hi(e),t.Title,t.DateOfBirth,t.Gender))))}),new Ol(0),new Dl(0,"last-name"),[["autoComplete","family-name"]])),zt((()=>{let o;const s="Title",u=`${i}.Title`;return Xt(Vt(Vl(s,e.Title,nl(),T(2,O(2,t,[u])),it([new kl(0),Xl((o=e.Title,null==o?new wt(1,new ws(0)):new wt(0,o)))]),di(u,s,n),(e=>{r(new fl(0,(t=>new ol(t.FirstName,t.MiddleName,t.LastName,rl(e),t.DateOfBirth,t.Gender))))}),new Ol(0),new Dl(0,"title"))),zt((()=>{let o;const s="Date of birth",u=`${i}.Date of birth`;return Xt(Vt(Sn(Wl,{fieldName:s,value:e.DateOfBirth,rulesForFieldName:O(2,t,[u]),validationRules:it([new kl(0),Xl((o=e.DateOfBirth,null==o?new wt(1,new ws(0)):(a=o,function(e){return t=>Es(Je((t=>bs(e,t))),t)}(Y(Date.now(),1))(a))))]),error:di(u,s,n),testId:new Dl(0,"dob"),onChangeHandler:e=>{r(new fl(0,(t=>new ol(t.FirstName,t.MiddleName,t.LastName,t.Title,e,t.Gender))))}})),zt((()=>{let o;const s="Gender",u=`${i}.Gender`;return Vt(Vl(s,e.Gender,Qa(),T(2,O(2,t,[u])),it([new kl(0),Xl((o=e.Gender,null==o?new wt(1,new ws(0)):new wt(0,o)))]),di(u,s,n),(e=>{r(new fl(0,(t=>new ol(t.FirstName,t.MiddleName,t.LastName,t.Title,t.DateOfBirth,el(e)))))}),new Ol(0),new Dl(0,"gender")))})));var a})))})))})))})))}))),["children",Vr.Children.toArray(Array.from(o))])]))))})))))),["children",Vr.Children.toArray(Array.from(o))])])))}(r.FormModel.Identification,T(3,s),u,o)),zt((()=>Xt(Vt(function(e,t,n,r){let o;return Sn("div",A(it([["className",Me(" ",["py-3","mb-2"])],(o=Zt(zt((()=>Xt(Vt(Sn("h6",{className:Me(" ",["text-lg","font-semibold"]),children:"Contact details"})),zt((()=>{let o;const i="ContactDetails";return Xt(Vt(Sn("div",A(it([["className",Me(" ",Il)],(o=Zt(zt((()=>{const o="Email",s=`${i}.Email`;return Xt(Vt(Bl(o,e.Email,T(2,O(2,t,[s])),it([new kl(0),Xl(As(e.Email)),new kl(4,$t((t=>0===function(...e){switch(e.length){case 2:return ve(e[0],e[1],!1);case 3:return ve(e[0],e[1],e[2]);case 4:return ve(e[0],e[1],!0===e[2]);case 5:return ve(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),!1);case 6:return ve(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),e[5]);case 7:return ve(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),!0===e[5]);default:throw new Error("String.compare: Unsupported number of parameters")}}(t,e.Email,5)),e.NonUniqueEmails)?new wt(1,"{0} is already taken"):new wt(0,void 0))]),di(s,o,n),(e=>{r(new fl(1,(t=>new sl(e,t.MobileNumber,t.StreetAddress,t.Suburb,t.State,t.Postcode,t.NonUniqueEmails))))}),new Ol(0),new Dl(0,"email"),[["autoComplete","email"]])),zt((()=>{const o="Mobile number",s=`${i}.Mobile number`;return Vt(Zl(o,e.MobileNumber,T(2,O(2,t,[s])),it([new kl(0),Xl(Jl(e.MobileNumber))]),di(s,o,n),(e=>{r(new fl(1,(t=>new sl(t.Email,e,t.StreetAddress,t.Suburb,t.State,t.Postcode,t.NonUniqueEmails))))}),new Ol(0),new Dl(0,"mobile")))})))}))),["children",Vr.Children.toArray(Array.from(o))])])))),zt((()=>{let o;return Vt(Sn("div",A(it([["className",Me(" ",Il)],(o=Zt(zt((()=>{const o="Street address",s=`${i}.Street address`;return Xt(Vt(Bl(o,e.StreetAddress,T(2,O(2,t,[s])),it([new kl(0),Xl(Ns(e.StreetAddress))]),di(s,o,n),(e=>{r(new fl(1,(t=>new sl(t.Email,t.MobileNumber,hi(e),t.Suburb,t.State,t.Postcode,t.NonUniqueEmails))))}),new Ol(0),new Dl(0,"street-address"),[["autoComplete","street-address"]])),zt((()=>{const o="Town/Suburb",s=`${i}.Town/Suburb`;return Xt(Vt(Bl(o,e.Suburb,T(2,O(2,t,[s])),it([new kl(0),Xl(Ms(e.Suburb))]),di(s,o,n),(e=>{r(new fl(1,(t=>new sl(t.Email,t.MobileNumber,t.StreetAddress,hi(e),t.State,t.Postcode,t.NonUniqueEmails))))}),new Ol(0),new Dl(0,"town"),[["autoComplete","address-level2"]])),zt((()=>{let o;const s="State",u=`${i}.State`;return Xt(Vt(Vl(s,e.State,os(),T(2,O(2,t,[u])),it([new kl(0),Xl((o=e.State,null==o?new wt(1,new ws(0)):new wt(0,o)))]),di(u,s,n),(e=>{r(new fl(1,(t=>new sl(t.Email,t.MobileNumber,t.StreetAddress,t.Suburb,is(e),t.Postcode,t.NonUniqueEmails))))}),new Ol(0),new Dl(0,"state"))),zt((()=>{const o="Postcode",s=`${i}.Postcode`;return Vt(Bl(o,e.Postcode,T(2,O(2,t,[s])),it([new kl(0),Xl(Ts(e.Postcode))]),di(s,o,n),(e=>{r(new fl(1,(t=>new sl(t.Email,t.MobileNumber,t.StreetAddress,t.Suburb,t.State,e,t.NonUniqueEmails))))}),new Ol(0),new Dl(0,"postcode"),[["inputMode","numeric"],["autoComplete","postal-code"]]))})))})))})))}))),["children",Vr.Children.toArray(Array.from(o))])]))))})))})))))),["children",Vr.Children.toArray(Array.from(o))])])))}(r.FormModel.ContactDetails,T(3,s),u,o)),zt((()=>Xt(null!=r.CurrentAlert?Vt(Sn(Wa,{alert:F(r.CurrentAlert),hideAlert:()=>{o(new fl(6))}})):Wt(),zt((()=>Vt(Yl((()=>{i[1]()?o(new fl(3,e.backendUrl,e.accessToken,(()=>{en((e=>{Kl("personal-details",e)}),G(R(document.querySelector("apollo-personal-details-app"))))}))):o(new fl(5,new Ha(1,"There are some errors on the form, please correct them.")))}),r.SaveStatus,Xe(u)))))))))))))));case 3:return Xt(Vt(a),zt((()=>{let e;return Vt((e=t.fields[0].message,Sn("p",{children:[e]})))})))}})))))),["children",Vr.Children.toArray(Array.from(t))])])))}function ec(e){return L(e)}function tc(){return at((e=>[e,ec(e)]),st(tn((e=>ji(e,[])),Fi(vi("DomainPrimitives.Relationship",[],qi,(()=>[[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]]))))))}function nc(e){return lt((t=>t[1]===e?t[0]:void 0),tc())}class rc extends H{constructor(e,t,n,r,o,i,s,u){super(),this.FullName=e,this.Relationship=t,this.PhoneNumber=n,this.Email=r,this.StreetAddress=o,this.Suburb=i,this.State=s,this.Postcode=u}}const oc=new rc("",void 0,"","","","",void 0,"");function ic(e,t){let n;const r=function(e){let t,n;const r=e.Relationship;if(n=null==r?new wt(1,"Relationship missing"):new wt(0,r),t=1===n.tag?new wt(1,n.fields[0]):new wt(0,function(e){switch(e.tag){case 1:return"Parent";case 2:return"Child";case 3:return"Sibling";case 4:return"Partner";case 5:return"Sister";case 6:return"Husband";case 7:return"Father";case 8:return"Mother";case 9:return"Daughter";case 10:return"Defacto";case 11:return"Fiance";case 12:return"Boyfriend";case 13:return"Brother";case 14:return"Wife";case 15:return"Son";case 16:return"Engaged";case 17:return"Friend";case 18:return"Girlfriend";case 19:return"Other";default:return"Spouse"}}(n.fields[0])),1===t.tag)return new wt(1,t.fields[0]);{let n,r;const o=e.State;return r=null==o?new wt(1,"State missing"):new wt(0,o),n=1===r.tag?new wt(1,r.fields[0]):new wt(0,rs(r.fields[0])),1===n.tag?new wt(1,n.fields[0]):new wt(0,new Xi(e.FullName.trim(),t.fields[0],us(e.PhoneNumber),li(e.Email),new Yi(e.StreetAddress.trim(),void 0,e.Suburb.trim(),n.fields[0],e.Postcode.trim(),"AU")))}}(e);return 1===r.tag?new wt(1,r.fields[0]):new wt(0,(n=r.fields[0],Xe(t)?Je(n):function(e,t){const n=He(),r=function(e,t,n){return((t,n,r)=>{for(;;){const o=t,i=n,s=r;if(ze(s))return i;t=o+1,n=e(o,i,We(s)),r=Ve(s)}})(0,t,n)}(((t,n,r)=>{const o=new Le(e(t,r),void 0);return n.tail=o,o}),n,t),o=He();return r.tail=o,Ve(n)}(((e,t)=>0===e?n:t),t)))}function sc(e){let t,n,r,o;return new rc(e.FullName,nc(e.Relationship),as(e.MobilePhone),U(e.Email,""),U((t=e.Address,null==t?void 0:t.AddressLine1),""),U((n=e.Address,null==n?void 0:n.City),""),(r=e.Address,null==r?void 0:is(r.State)),U((o=e.Address,null==o?void 0:o.Postcode),""))}class uc extends H{constructor(e,t,n,r){super(),this.FormModel=e,this.CurrentAlert=t,this.SaveStatus=n,this.ExistingEmergencyContacts=r}}class ac extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetEmergencyContact","GetEmergencyContactsCallback","SaveStarted","SaveFinished","ShowAlert","HideAlert"]}}function lc(e){return`${e}/profiles/backend/emergency-contacts`}function cc(e,t){let n,r;if(1!==e.tag){if(2===e.tag){const n=new uc(t.FormModel,t.CurrentAlert,new Ja(1),t.ExistingEmergencyContacts),o=yt((e=>ic(t.FormModel,e)),(r=t.ExistingEmergencyContacts,2===r.tag?new wt(0,r.fields[0]):new wt(1,"Existing ec has not been loaded")));return 1===o.tag?[n,Tt(new ac(3,new wt(1,new ts(0))))]:[n,It((e=>{Ot(e)}),(t=>function(e,t,n){return pt.Delay((()=>{let r;const o=fi(t,(r=ui(new po(1,(i=n,Du(0,Gu(Ci(Ki()),new Su(1),void 0,void 0)(i)))),ii(new ho(2),oi(lc(e)))),si(ti("application/json"),r)));var i;return pt.Bind(o,(e=>{const t=e;return 1===t.tag?pt.Return(new wt(1,t.fields[0])):200===t.fields[0].statusCode?pt.Return(new wt(0,void 0)):pt.Return(new wt(1,new ts(0)))}))}))}(e.fields[0],e.fields[1],t)),o.fields[0],(t=>new ac(3,gt((t=>e.fields[2]),t))),(e=>new ac(3,new wt(1,new ts(0)))))]}return 3===e.tag?1===e.fields[0].tag?[new uc(t.FormModel,t.CurrentAlert,new Ja(3,new Error(ns(e.fields[0].fields[0]))),t.ExistingEmergencyContacts),Tt(new ac(4,new Ha(1,ns(e.fields[0].fields[0]))))]:(e.fields[0].fields[0](),[new uc(t.FormModel,t.CurrentAlert,new Ja(2,void 0),t.ExistingEmergencyContacts),Mt()]):4===e.tag?[new uc(t.FormModel,e.fields[0],t.SaveStatus,t.ExistingEmergencyContacts),Mt()]:5===e.tag?[new uc(t.FormModel,void 0,t.SaveStatus,t.ExistingEmergencyContacts),Mt()]:[new uc(e.fields[0](t.FormModel),t.CurrentAlert,t.SaveStatus,t.ExistingEmergencyContacts),Mt()]}{let r,i;switch(3===e.fields[0].tag?r=1:0===e.fields[0].tag?r=2:1===e.fields[0].tag?r=3:1===e.fields[0].fields[0].tag?r=1:(r=0,i=e.fields[0].fields[0].fields[0]),r){case 0:return[new uc((o=i,n=ze(o)?void 0:D(We(o)),null==n?t.FormModel:sc(n)),t.CurrentAlert,t.SaveStatus,new Ja(2,i)),Mt()];case 1:return[new uc(t.FormModel,t.CurrentAlert,t.SaveStatus,new Ja(3,new Error(ns(new ts(1))))),Mt()];case 2:return[new uc(t.FormModel,t.CurrentAlert,t.SaveStatus,new Ja(0)),Mt()];case 3:return[new uc(t.FormModel,t.CurrentAlert,t.SaveStatus,new Ja(1)),Mt()]}}var o}function $c(e){let t;const n=io([new uc(oc,void 0,new Ja(0),new Ja(0)),Mt()],cc),r=n[0],o=n[1],i=Ml(),s=i[3];Kr(Xa((()=>function(e,t){const n=pt.Delay((()=>{const n=fi(t,ii(new ho(0),oi(lc(e))));return pt.Bind(n,(e=>{const t=e;if(1===t.tag)return pt.Return(new wt(1,t.fields[0]));{const e=t.fields[0];if(200===e.statusCode){const t=(n=e.responseText,_a(T(2,Ua(Ci(Ki()),new Su(1),void 0)),n));return pt.Return(t)}return pt.Return(new wt(1,""))}var n}))}));return pt.Bind(n,(e=>{let t;const n=e;return t=1===n.tag?new wt(1,new ts(1)):new wt(0,n.fields[0]),pt.Return(t)}))}(e.backendUrl,e.accessToken)),(e=>{o(new ac(1,e))})));const u=Sn("h3",{className:Me(" ",["text-2xl","font-medium"]),children:"Emergency contact"});return Sn("div",A(it([["className",Me(" ",["font-sans"])],(t=Zt(zt((()=>Xt(Vt(Sn("style",{children:[Tl]})),zt((()=>{const t=r.ExistingEmergencyContacts;switch(t.tag){case 1:default:return Vt(Sn("div",{children:["Please wait..."]}));case 2:return Xt(Vt(u),zt((()=>Xt(Vt(function(e,t,n,r){let o;return Sn("div",A(it([["className",Me(" ",["py-3","mb-2"])],(o=Zt(zt((()=>{let o;const i="EmergencyContact";return Xt(Vt(Sn("div",A(it([["className",Me(" ",Il)],(o=Zt(zt((()=>{const o="Full name",s=`${i}.Full name`;return Xt(Vt(Bl(o,e.FullName,T(2,O(2,t,[s])),it([new kl(0),Xl(ks(e.FullName))]),di(s,o,n),(e=>{r(new ac(0,(t=>new rc(hi(e),t.Relationship,t.PhoneNumber,t.Email,t.StreetAddress,t.Suburb,t.State,t.Postcode))))}),new Ol(1),new Dl(0,"full-name"),[])),zt((()=>{let o;const s="Relationship",u=`${i}.Relationship`;return Vt(Vl(s,e.Relationship,tc(),T(2,O(2,t,[u])),it([new kl(0),Xl((o=e.Relationship,null==o?new wt(1,new ws(0)):new wt(0,o)))]),di(u,s,n),(e=>{r(new ac(0,(t=>new rc(t.FullName,nc(e),t.PhoneNumber,t.Email,t.StreetAddress,t.Suburb,t.State,t.Postcode))))}),new Ol(1),new Dl(0,"relationship")))})))}))),["children",Vr.Children.toArray(Array.from(o))])])))),zt((()=>{let o;return Xt(Vt(Sn("div",A(it([["className",Me(" ",Il)],(o=Zt(zt((()=>{const o="Phone number",s=`${i}.Phone number`;return Xt(Vt(Zl(o,e.PhoneNumber,T(2,O(2,t,[s])),it([new kl(0),Xl(Jl(e.PhoneNumber))]),di(s,o,n),(e=>{r(new ac(0,(t=>new rc(t.FullName,t.Relationship,e,t.Email,t.StreetAddress,t.Suburb,t.State,t.Postcode))))}),new Ol(1),new Dl(0,"phone"))),zt((()=>{const o="Email",s=`${i}.Email`;return Vt(Bl(o,e.Email,T(2,O(2,t,[s])),Je(Xl(function(e){return null!=e?Es(Je(As),e):new wt(0,void 0)}(li(e.Email)))),di(s,o,n),(e=>{r(new ac(0,(t=>new rc(t.FullName,t.Relationship,t.PhoneNumber,e,t.StreetAddress,t.Suburb,t.State,t.Postcode))))}),new Ol(1),new Dl(0,"email"),[]))})))}))),["children",Vr.Children.toArray(Array.from(o))])])))),zt((()=>{let o;return Vt(Sn("div",A(it([["className",Me(" ",Il)],(o=Zt(zt((()=>{const o="Street address",s=`${i}.Street address`;return Xt(Vt(Bl(o,e.StreetAddress,T(2,O(2,t,[s])),it([new kl(0),Xl(Ns(e.StreetAddress))]),di(s,o,n),(e=>{r(new ac(0,(t=>new rc(t.FullName,t.Relationship,t.PhoneNumber,t.Email,hi(e),t.Suburb,t.State,t.Postcode))))}),new Ol(1),new Dl(0,"street-address"),[["autoComplete","street-address"]])),zt((()=>{const o="Town/Suburb",s=`${i}.Town/Suburb`;return Xt(Vt(Bl(o,e.Suburb,T(2,O(2,t,[s])),it([new kl(0),Xl(Ms(e.Suburb))]),di(s,o,n),(e=>{r(new ac(0,(t=>new rc(t.FullName,t.Relationship,t.PhoneNumber,t.Email,t.StreetAddress,hi(e),t.State,t.Postcode))))}),new Ol(1),new Dl(0,"town"),[["autoComplete","address-level2"]])),zt((()=>{let o;const s="State",u=`${i}.State`;return Xt(Vt(Vl(s,e.State,os(),T(2,O(2,t,[u])),it([new kl(0),Xl((o=e.State,null==o?new wt(1,new ws(0)):new wt(0,o)))]),di(u,s,n),(e=>{r(new ac(0,(t=>new rc(t.FullName,t.Relationship,t.PhoneNumber,t.Email,t.StreetAddress,t.Suburb,is(e),t.Postcode))))}),new Ol(1),new Dl(0,"state"))),zt((()=>{const o="Postcode",s=`${i}.Postcode`;return Vt(Bl(o,e.Postcode,T(2,O(2,t,[s])),it([new kl(0),Xl(Ts(e.Postcode))]),di(s,o,n),(e=>{r(new ac(0,(t=>new rc(t.FullName,t.Relationship,t.PhoneNumber,t.Email,t.StreetAddress,t.Suburb,t.State,e))))}),new Ol(1),new Dl(0,"postcode"),[["inputMode","numeric"],["autoComplete","postal-code"]]))})))})))})))}))),["children",Vr.Children.toArray(Array.from(o))])]))))})))})))}))),["children",Vr.Children.toArray(Array.from(o))])])))}(r.FormModel,T(3,i[0]),s,o)),zt((()=>Xt(null!=r.CurrentAlert?Vt(Sn(Wa,{alert:F(r.CurrentAlert),hideAlert:()=>{o(new ac(5))}})):Wt(),zt((()=>Vt(Yl((()=>{i[1]()?o(new ac(2,e.backendUrl,e.accessToken,(()=>{en((e=>{Kl("emergency-contacts",e)}),G(R(document.querySelector("apollo-emergency-contacts-app"))))}))):o(new ac(4,new Ha(1,"There are some errors on the form, please correct them.")))}),r.SaveStatus,Xe(s))))))))))));case 3:return Xt(Vt(u),zt((()=>{let e;return Vt((e=t.fields[0].message,Sn("p",{children:[e]})))})))}})))))),["children",Vr.Children.toArray(Array.from(t))])])))}$i((e=>Sn(Ql,e)),"apollo-personal-details-app"),$i((e=>Sn($c,e)),"apollo-emergency-contacts-app")},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(515),n(118)})();
1
+ (function(){"use strict";var ln,D,rs,bt,os,ss,Or,Pr,Rr,Vr,is,cn={},us=[],hl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,zn=Array.isArray;function it(e,t){for(var n in t)e[n]=t[n];return e}function as(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function C(e,t,n){var r,o,s,i={};for(s in t)s=="key"?r=t[s]:s=="ref"?o=t[s]:i[s]=t[s];if(arguments.length>2&&(i.children=arguments.length>3?ln.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)i[s]===void 0&&(i[s]=e.defaultProps[s]);return fn(e,i,r,o,null)}function fn(e,t,n,r,o){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++rs,__i:-1,__u:0};return o==null&&D.vnode!=null&&D.vnode(s),s}function ls(){return{current:null}}function Ye(e){return e.children}function He(e,t){this.props=e,this.context=t}function Rt(e,t){if(t==null)return e.__?Rt(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Rt(e):null}function cs(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return cs(e)}}function Lr(e){(!e.__d&&(e.__d=!0)&&bt.push(e)&&!Wn.__r++||os!==D.debounceRendering)&&((os=D.debounceRendering)||ss)(Wn)}function Wn(){var e,t,n,r,o,s,i,u;for(bt.sort(Or);e=bt.shift();)e.__d&&(t=bt.length,r=void 0,s=(o=(n=e).__v).__e,i=[],u=[],n.__P&&((r=it({},o)).__v=o.__v+1,D.vnode&&D.vnode(r),Hr(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[s]:null,i,s??Rt(o),!!(32&o.__u),u),r.__v=o.__v,r.__.__k[r.__i]=r,ps(i,r,u),r.__e!=s&&cs(r)),bt.length>t&&bt.sort(Or));Wn.__r=0}function fs(e,t,n,r,o,s,i,u,a,l,f){var c,h,d,p,m,_=r&&r.__k||us,y=t.length;for(n.__d=a,pl(n,t,_),a=n.__d,c=0;c<y;c++)(d=n.__k[c])!=null&&(h=d.__i===-1?cn:_[d.__i]||cn,d.__i=c,Hr(e,d,h,o,s,i,u,a,l,f),p=d.__e,d.ref&&h.ref!=d.ref&&(h.ref&&Br(h.ref,null,d),f.push(d.ref,d.__c||p,d)),m==null&&p!=null&&(m=p),65536&d.__u||h.__k===d.__k?a=$s(d,a,e):typeof d.type=="function"&&d.__d!==void 0?a=d.__d:p&&(a=p.nextSibling),d.__d=void 0,d.__u&=-196609);n.__d=a,n.__e=m}function pl(e,t,n){var r,o,s,i,u,a=t.length,l=n.length,f=l,c=0;for(e.__k=[],r=0;r<a;r++)(o=t[r])!=null&&typeof o!="boolean"&&typeof o!="function"?(i=r+c,(o=e.__k[r]=typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?fn(null,o,null,null,null):zn(o)?fn(Ye,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?fn(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,s=null,(u=o.__i=ml(o,n,i,f))!==-1&&(f--,(s=n[u])&&(s.__u|=131072)),s==null||s.__v===null?(u==-1&&c--,typeof o.type!="function"&&(o.__u|=65536)):u!==i&&(u==i-1?c--:u==i+1?c++:(u>i?c--:c++,o.__u|=65536))):o=e.__k[r]=null;if(f)for(r=0;r<l;r++)(s=n[r])!=null&&!(131072&s.__u)&&(s.__e==e.__d&&(e.__d=Rt(s)),ms(s,s))}function $s(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=$s(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Rt(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function ut(e,t){return t=t||[],e==null||typeof e=="boolean"||(zn(e)?e.some(function(n){ut(n,t)}):t.push(e)),t}function ml(e,t,n,r){var o=e.key,s=e.type,i=n-1,u=n+1,a=t[n];if(a===null||a&&o==a.key&&s===a.type&&!(131072&a.__u))return n;if(r>(a!=null&&!(131072&a.__u)?1:0))for(;i>=0||u<t.length;){if(i>=0){if((a=t[i])&&!(131072&a.__u)&&o==a.key&&s===a.type)return i;i--}if(u<t.length){if((a=t[u])&&!(131072&a.__u)&&o==a.key&&s===a.type)return u;u++}}return-1}function ds(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||hl.test(t)?n:n+"px"}function qn(e,t,n,r,o){var s;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||ds(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||ds(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")s=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=Pr,e.addEventListener(t,s?Vr:Rr,s)):e.removeEventListener(t,s?Vr:Rr,s);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function hs(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Pr++;else if(t.t<n.u)return;return n(D.event?D.event(t):t)}}}function Hr(e,t,n,r,o,s,i,u,a,l){var f,c,h,d,p,m,_,y,v,T,U,Oe,mt,yt,jn,ns,st=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(a=!!(32&n.__u),s=[u=t.__e=n.__e]),(f=D.__b)&&f(t);e:if(typeof st=="function")try{if(y=t.props,v="prototype"in st&&st.prototype.render,T=(f=st.contextType)&&r[f.__c],U=f?T?T.props.value:f.__:r,n.__c?_=(c=t.__c=n.__c).__=c.__E:(v?t.__c=c=new st(y,U):(t.__c=c=new He(y,U),c.constructor=st,c.render=wl),T&&T.sub(c),c.props=y,c.state||(c.state={}),c.context=U,c.__n=r,h=c.__d=!0,c.__h=[],c._sb=[]),v&&c.__s==null&&(c.__s=c.state),v&&st.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=it({},c.__s)),it(c.__s,st.getDerivedStateFromProps(y,c.__s))),d=c.props,p=c.state,c.__v=t,h)v&&st.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),v&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(v&&st.getDerivedStateFromProps==null&&y!==d&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(y,U),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(y,c.__s,U)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=y,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(Dr){Dr&&(Dr.__=t)}),Oe=0;Oe<c._sb.length;Oe++)c.__h.push(c._sb[Oe]);c._sb=[],c.__h.length&&i.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(y,c.__s,U),v&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(d,p,m)})}if(c.context=U,c.props=y,c.__P=e,c.__e=!1,mt=D.__r,yt=0,v){for(c.state=c.__s,c.__d=!1,mt&&mt(t),f=c.render(c.props,c.state,c.context),jn=0;jn<c._sb.length;jn++)c.__h.push(c._sb[jn]);c._sb=[]}else do c.__d=!1,mt&&mt(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++yt<25);c.state=c.__s,c.getChildContext!=null&&(r=it(it({},r),c.getChildContext())),v&&!h&&c.getSnapshotBeforeUpdate!=null&&(m=c.getSnapshotBeforeUpdate(d,p)),fs(e,zn(ns=f!=null&&f.type===Ye&&f.key==null?f.props.children:f)?ns:[ns],t,n,r,o,s,i,u,a,l),c.base=t.__e,t.__u&=-161,c.__h.length&&i.push(c),_&&(c.__E=c.__=null)}catch(Dr){if(t.__v=null,a||s!=null){for(t.__u|=a?160:32;u&&u.nodeType===8&&u.nextSibling;)u=u.nextSibling;s[s.indexOf(u)]=null,t.__e=u}else t.__e=n.__e,t.__k=n.__k;D.__e(Dr,t,n)}else s==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=_l(n.__e,t,n,r,o,s,i,a,l);(f=D.diffed)&&f(t)}function ps(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Br(n[r],n[++r],n[++r]);D.__c&&D.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(s){s.call(o)})}catch(s){D.__e(s,o.__v)}})}function _l(e,t,n,r,o,s,i,u,a){var l,f,c,h,d,p,m,_=n.props,y=t.props,v=t.type;if(v==="svg"?o="http://www.w3.org/2000/svg":v==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),s!=null){for(l=0;l<s.length;l++)if((d=s[l])&&"setAttribute"in d==!!v&&(v?d.localName===v:d.nodeType===3)){e=d,s[l]=null;break}}if(e==null){if(v===null)return document.createTextNode(y);e=document.createElementNS(o,v,y.is&&y),u&&(D.__m&&D.__m(t,s),u=!1),s=null}if(v===null)_===y||u&&e.data===y||(e.data=y);else{if(s=s&&ln.call(e.childNodes),_=n.props||cn,!u&&s!=null)for(_={},l=0;l<e.attributes.length;l++)_[(d=e.attributes[l]).name]=d.value;for(l in _)if(d=_[l],l!="children"){if(l=="dangerouslySetInnerHTML")c=d;else if(!(l in y)){if(l=="value"&&"defaultValue"in y||l=="checked"&&"defaultChecked"in y)continue;qn(e,l,null,d,o)}}for(l in y)d=y[l],l=="children"?h=d:l=="dangerouslySetInnerHTML"?f=d:l=="value"?p=d:l=="checked"?m=d:u&&typeof d!="function"||_[l]===d||qn(e,l,d,_[l],o);if(f)u||c&&(f.__html===c.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),fs(e,zn(h)?h:[h],t,n,r,v==="foreignObject"?"http://www.w3.org/1999/xhtml":o,s,i,s?s[0]:n.__k&&Rt(n,0),u,a),s!=null)for(l=s.length;l--;)as(s[l]);u||(l="value",v==="progress"&&p==null?e.removeAttribute("value"):p!==void 0&&(p!==e[l]||v==="progress"&&!p||v==="option"&&p!==_[l])&&qn(e,l,p,_[l],o),l="checked",m!==void 0&&m!==e[l]&&qn(e,l,m,_[l],o))}return e}function Br(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){D.__e(o,n)}}function ms(e,t,n){var r,o;if(D.unmount&&D.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Br(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){D.__e(s,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&ms(r[o],t,n||typeof e.type!="function");n||as(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function wl(e,t,n){return this.constructor(e,n)}function _t(e,t,n){var r,o,s,i;D.__&&D.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,s=[],i=[],Hr(t,e=(!r&&n||t).__k=C(Ye,null,[e]),o||cn,cn,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?ln.call(t.childNodes):null,s,!r&&n?n:o?o.__e:t.firstChild,r,i),ps(s,e,i)}function Gr(e,t){_t(e,t,Gr)}function Ur(e,t,n){var r,o,s,i,u=it({},e.props);for(s in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)s=="key"?r=t[s]:s=="ref"?o=t[s]:u[s]=t[s]===void 0&&i!==void 0?i[s]:t[s];return arguments.length>2&&(u.children=arguments.length>3?ln.call(arguments,2):n),fn(e.type,u,r||e.key,o||e.ref,null)}function _s(e,t){var n={__c:t="__cC"+is++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,s;return this.getChildContext||(o=[],(s={})[t]=this,this.getChildContext=function(){return s},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&o.some(function(u){u.__e=!0,Lr(u)})},this.sub=function(i){o.push(i);var u=i.componentWillUnmount;i.componentWillUnmount=function(){o&&o.splice(o.indexOf(i),1),u&&u.call(i)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}ln=us.slice,D={__e:function(e,t,n,r){for(var o,s,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((s=o.constructor)&&s.getDerivedStateFromError!=null&&(o.setState(s.getDerivedStateFromError(e)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(u){e=u}throw e}},rs=0,He.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=it({},this.state),typeof e=="function"&&(e=e(it({},n),this.props)),e&&it(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Lr(this))},He.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Lr(this))},He.prototype.render=Ye,bt=[],ss=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Or=function(e,t){return e.__v.__b-t.__v.__b},Wn.__r=0,Pr=0,Rr=hs(!1),Vr=hs(!0),is=0;var at,H,jr,ws,Vt=0,gs=[],Z=D,ys=Z.__b,bs=Z.__r,Ss=Z.diffed,Cs=Z.__c,vs=Z.unmount,Es=Z.__;function St(e,t){Z.__h&&Z.__h(H,e,Vt||t),Vt=0;var n=H.__H||(H.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Ct(e){return Vt=1,Zn(ks,e)}function Zn(e,t,n){var r=St(at++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ks(void 0,t),function(u){var a=r.__N?r.__N[0]:r.__[0],l=r.t(a,u);a!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=H,!H.u)){var o=function(u,a,l){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(h){return!!h.__c});if(f.every(function(h){return!h.__N}))return!s||s.call(this,u,a,l);var c=!1;return f.forEach(function(h){if(h.__N){var d=h.__[0];h.__=h.__N,h.__N=void 0,d!==h.__[0]&&(c=!0)}}),!(!c&&r.__c.props===u)&&(!s||s.call(this,u,a,l))};H.u=!0;var s=H.shouldComponentUpdate,i=H.componentWillUpdate;H.componentWillUpdate=function(u,a,l){if(this.__e){var f=s;s=void 0,o(u,a,l),s=f}i&&i.call(this,u,a,l)},H.shouldComponentUpdate=o}return r.__N||r.__}function vt(e,t){var n=St(at++,3);!Z.__s&&Kr(n.__H,t)&&(n.__=e,n.i=t,H.__H.__h.push(n))}function Et(e,t){var n=St(at++,4);!Z.__s&&Kr(n.__H,t)&&(n.__=e,n.i=t,H.__h.push(n))}function $n(e){return Vt=5,dn(function(){return{current:e}},[])}function zr(e,t,n){Vt=6,Et(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function dn(e,t){var n=St(at++,7);return Kr(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Wr(e,t){return Vt=8,dn(function(){return e},t)}function qr(e){var t=H.context[e.__c],n=St(at++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(H)),t.props.value):e.__}function Zr(e,t){Z.useDebugValue&&Z.useDebugValue(t?t(e):e)}function gl(e){var t=St(at++,10),n=Ct();return t.__=e,H.componentDidCatch||(H.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Jr(){var e=St(at++,11);if(!e.__){for(var t=H.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function yl(){for(var e;e=gs.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Jn),e.__H.__h.forEach(Yr),e.__H.__h=[]}catch(t){e.__H.__h=[],Z.__e(t,e.__v)}}Z.__b=function(e){H=null,ys&&ys(e)},Z.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Es&&Es(e,t)},Z.__r=function(e){bs&&bs(e),at=0;var t=(H=e.__c).__H;t&&(jr===H?(t.__h=[],H.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Jn),t.__h.forEach(Yr),t.__h=[],at=0)),jr=H},Z.diffed=function(e){Ss&&Ss(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(gs.push(t)!==1&&ws===Z.requestAnimationFrame||((ws=Z.requestAnimationFrame)||bl)(yl)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),jr=H=null},Z.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Jn),n.__h=n.__h.filter(function(r){return!r.__||Yr(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],Z.__e(r,n.__v)}}),Cs&&Cs(e,t)},Z.unmount=function(e){vs&&vs(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Jn(r)}catch(o){t=o}}),n.__H=void 0,t&&Z.__e(t,n.__v))};var xs=typeof requestAnimationFrame=="function";function bl(e){var t,n=function(){clearTimeout(r),xs&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);xs&&(t=requestAnimationFrame(n))}function Jn(e){var t=H,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),H=t}function Yr(e){var t=H;e.__c=e.__(),H=t}function Kr(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function ks(e,t){return typeof t=="function"?t(e):t}function Ms(e,t){for(var n in t)e[n]=t[n];return e}function Xr(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function Yn(e,t){this.props=e,this.context=t}function Ts(e,t){function n(o){var s=this.props.ref,i=s==o.ref;return!i&&s&&(s.call?s(null):s.current=null),t?!t(this.props,o)||!i:Xr(this.props,o)}function r(o){return this.shouldComponentUpdate=n,C(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Yn.prototype=new He).isPureReactComponent=!0,Yn.prototype.shouldComponentUpdate=function(e,t){return Xr(this.props,e)||Xr(this.state,t)};var Ns=D.__b;D.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ns&&Ns(e)};var Sl=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function As(e){function t(n){var r=Ms({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Sl,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Is=function(e,t){return e==null?null:ut(ut(e).map(t))},Fs={map:Is,forEach:Is,count:function(e){return e?ut(e).length:0},only:function(e){var t=ut(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ut},Cl=D.__e;D.__e=function(e,t,n,r){if(e.then){for(var o,s=t;s=s.__;)if((o=s.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}Cl(e,t,n,r)};var Ds=D.unmount;function Os(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Ms({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Os(r,t,n)})),e}function Ps(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Ps(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function hn(){this.__u=0,this.t=null,this.__b=null}function Rs(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Vs(e){var t,n,r;function o(s){if(t||(t=e()).then(function(i){n=i.default||i},function(i){r=i}),r)throw r;if(!n)throw t;return C(n,s)}return o.displayName="Lazy",o.__f=!0,o}function Lt(){this.u=null,this.o=null}D.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ds&&Ds(e)},(hn.prototype=new He).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Rs(r.__v),s=!1,i=function(){s||(s=!0,n.__R=null,o?o(u):u())};n.__R=i;var u=function(){if(!--r.__u){if(r.state.__a){var a=r.state.__a;r.__v.__k[0]=Ps(a,a.__c.__P,a.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.t.pop();)l.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},hn.prototype.componentWillUnmount=function(){this.t=[]},hn.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Os(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&C(Ye,null,e.fallback);return o&&(o.__u&=-33),[C(Ye,null,t.__a?null:e.children),o]};var Ls=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function vl(e){return this.getChildContext=function(){return e.context},e.children}function El(e){var t=this,n=e.i;t.componentWillUnmount=function(){_t(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),_t(C(vl,{context:t.context},e.__v),t.l)}function Hs(e,t){var n=C(El,{__v:e,i:t});return n.containerInfo=t,n}(Lt.prototype=new He).__a=function(e){var t=this,n=Rs(t.__v),r=t.o.get(e);return r[0]++,function(o){var s=function(){t.props.revealOrder?(r.push(o),Ls(t,e,r)):o()};n?n(s):s()}},Lt.prototype.render=function(e){this.u=null,this.o=new Map;var t=ut(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Lt.prototype.componentDidUpdate=Lt.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Ls(e,n,t)})};var Bs=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,xl=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,kl=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ml=/[A-Z0-9]/g,Tl=typeof document<"u",Nl=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Gs(e,t,n){return t.__k==null&&(t.textContent=""),_t(e,t),typeof n=="function"&&n(),e?e.__c:null}function Us(e,t,n){return Gr(e,t),typeof n=="function"&&n(),e?e.__c:null}He.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(He.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var js=D.event;function Al(){}function Il(){return this.cancelBubble}function Fl(){return this.defaultPrevented}D.event=function(e){return js&&(e=js(e)),e.persist=Al,e.isPropagationStopped=Il,e.isDefaultPrevented=Fl,e.nativeEvent=e};var Qr,Dl={enumerable:!1,configurable:!0,get:function(){return this.class}},zs=D.vnode;D.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},s=r.indexOf("-")===-1;for(var i in n){var u=n[i];if(!(i==="value"&&"defaultValue"in n&&u==null||Tl&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var a=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&u===!0?u="":a==="translate"&&u==="no"?u=!1:a[0]==="o"&&a[1]==="n"?a==="ondoubleclick"?i="ondblclick":a!=="onchange"||r!=="input"&&r!=="textarea"||Nl(n.type)?a==="onfocus"?i="onfocusin":a==="onblur"?i="onfocusout":kl.test(i)&&(i=a):a=i="oninput":s&&xl.test(i)?i=i.replace(Ml,"-$&").toLowerCase():u===null&&(u=void 0),a==="oninput"&&o[i=a]&&(i="oninputCapture"),o[i]=u}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=ut(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=ut(n.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",Dl)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Bs,zs&&zs(e)};var Ws=D.__r;D.__r=function(e){Ws&&Ws(e),Qr=e.__c};var qs=D.diffed;D.diffed=function(e){qs&&qs(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Qr=null};var Zs={ReactCurrentDispatcher:{current:{readContext:function(e){return Qr.__n[e.__c].props.value},useCallback:Wr,useContext:qr,useDebugValue:Zr,useDeferredValue:to,useEffect:vt,useId:Jr,useImperativeHandle:zr,useInsertionEffect:ro,useLayoutEffect:Et,useMemo:dn,useReducer:Zn,useRef:$n,useState:Ct,useSyncExternalStore:oo,useTransition:no}}},Ol="18.3.1";function Js(e){return C.bind(null,e)}function pn(e){return!!e&&e.$$typeof===Bs}function Ys(e){return pn(e)&&e.type===Ye}function Ks(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Xs(e){return pn(e)?Ur.apply(null,arguments):e}function Qs(e){return!!e.__k&&(_t(null,e),!0)}function ei(e){return e&&(e.base||e.nodeType===1&&e)||null}var ti=function(e,t){return e(t)},ni=function(e,t){return e(t)},ri=Ye;function eo(e){e()}function to(e){return e}function no(){return[!1,eo]}var ro=Et,oi=pn;function oo(e,t){var n=t(),r=Ct({h:{__:n,v:t}}),o=r[0].h,s=r[1];return Et(function(){o.__=n,o.v=t,so(o)&&s({h:o})},[e,n,t]),vt(function(){return so(o)&&s({h:o}),e(function(){so(o)&&s({h:o})})},[e]),n}function so(e){var t,n,r=e.v,o=e.__;try{var s=r();return!((t=o)===(n=s)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var si={useState:Ct,useId:Jr,useReducer:Zn,useEffect:vt,useLayoutEffect:Et,useInsertionEffect:ro,useTransition:no,useDeferredValue:to,useSyncExternalStore:oo,startTransition:eo,useRef:$n,useImperativeHandle:zr,useMemo:dn,useCallback:Wr,useContext:qr,useDebugValue:Zr,version:"18.3.1",Children:Fs,render:Gs,hydrate:Us,unmountComponentAtNode:Qs,createPortal:Hs,createElement:C,createContext:_s,createFactory:Js,cloneElement:Xs,createRef:ls,Fragment:Ye,isValidElement:pn,isElement:oi,isFragment:Ys,isMemo:Ks,findDOMNode:ei,Component:He,PureComponent:Yn,memo:Ts,forwardRef:As,flushSync:ni,unstable_batchedUpdates:ti,StrictMode:ri,Suspense:hn,SuspenseList:Lt,lazy:Vs,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Zs};const Pl=Object.freeze(Object.defineProperty({__proto__:null,Children:Fs,Component:He,Fragment:Ye,PureComponent:Yn,StrictMode:ri,Suspense:hn,SuspenseList:Lt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Zs,cloneElement:Xs,createContext:_s,createElement:C,createFactory:Js,createPortal:Hs,createRef:ls,default:si,findDOMNode:ei,flushSync:ni,forwardRef:As,hydrate:Us,isElement:oi,isFragment:Ys,isMemo:Ks,isValidElement:pn,lazy:Vs,memo:Ts,render:Gs,startTransition:eo,unmountComponentAtNode:Qs,unstable_batchedUpdates:ti,useCallback:Wr,useContext:qr,useDebugValue:Zr,useDeferredValue:to,useEffect:vt,useErrorBoundary:gl,useId:Jr,useImperativeHandle:zr,useInsertionEffect:ro,useLayoutEffect:Et,useMemo:dn,useReducer:Zn,useRef:$n,useState:Ct,useSyncExternalStore:oo,useTransition:no,version:Ol},Symbol.toStringTag,{value:"Module"})),Ht=Symbol("numeric");function ii(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[Ht])}function Rl(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function io(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Ht]().multiply(t)}function Kn(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Ht]().toFixed(t)}function Xn(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Ht]().toPrecision(t)}function Qn(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Ht]().toExponential(t)}function er(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Ht]().toHex()}function Ke(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Vl(e){return e!=null&&typeof e.GetEnumerator=="function"}function Ll(e){return e!=null&&typeof e.CompareTo=="function"}function Hl(e){return e!=null&&typeof e.Equals=="function"}function ui(e){return e!=null&&typeof e.GetHashCode=="function"}function uo(e){return e!=null&&typeof e.Dispose=="function"}function L(e){uo(e)&&e.Dispose()}function ge(){return null}function tr(e,t){var n,r;return((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===((r=Object.getPrototypeOf(t))==null?void 0:r.constructor)}class Bl{constructor(t){this.iter=t,this.current=ge()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function q(e){return Vl(e)?e.GetEnumerator():new Bl(e[Symbol.iterator]())}function mn(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}class Gl{constructor(t){this.factory=t,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function V(e,t){return e.toString(10).padStart(t,"0")}function Ul(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function ai(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function jl(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function Be(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class lt{static id(t){return lt.idMap.has(t)||lt.idMap.set(t,++lt.count),lt.idMap.get(t)}}lt.idMap=new WeakMap,lt.count=0;function _n(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Ge(e){return e*2654435761|0}function li(e){return _n(e.toString(32))}function wn(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const o=e[r];t=(t<<5)+t^o}return t}function zl(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Ge(e);case"bigint":return li(e);case"string":return _n(e);default:return Ge(lt.id(e))}}function Wl(e){return ui(e)?e.GetHashCode():zl(e)}function ql(e){return e.getTime()}function Zl(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Xe(e[r]);return wn(n)}function Xe(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Ge(e);case"bigint":return li(e);case"string":return _n(e);default:{if(ui(e))return e.GetHashCode();if(Ke(e))return Zl(e);if(e instanceof Date)return ql(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Xe(r));return wn(n)}else return Ge(lt.id(e))}}}function ci(e){return Wl(e)}function ao(e,t,n){if(e==null)return t==null;if(t==null||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function fi(e,t){return ao(e,t,pe)}function Jl(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]||!pe(e[n[o]],t[r[o]]))return!1;return!0}function pe(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:Hl(e)?e.Equals(t):Ke(e)?Ke(t)&&fi(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&lo(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&Jl(e,t)}function lo(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+ai(e),r=t.getTime()+ai(t)),n===r?0:n<r?-1:1}function nr(e,t){return e===t?0:e<t?-1:1}function Yl(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=n(e[r],t[r]),o!==0)return o;return 0}function $i(e,t){return Yl(e,t,Pe)}function Kl(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,s=0;o<n.length;o++){const i=n[o];if(i!==r[o])return i<r[o]?-1:1;if(s=Pe(e[i],t[i]),s!==0)return s}return 0}function Pe(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:Ll(e)?e.CompareTo(t):Ke(e)?Ke(t)?$i(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?lo(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?Kl(e,t):-1}function B(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function Xl(e){Ke(e)?e.splice(0):e.clear()}const rr=new WeakMap;function A(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return rr.set(t,e),t}function Re(e){return rr.get(e)??(t=>n=>e(t,n))}function Bt(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return rr.set(t,e),t}function J(e){return rr.get(e)??(t=>n=>r=>e(t,n,r))}function Ql(e){let t=0,n="[";for(const r of e){if(t===0)n+=ve(r);else if(t===100){n+="; ...";break}else n+="; "+ve(r);t++}return n+"]"}function ve(e,t=0){var n;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return Ql(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([o,s])=>o+" = "+ve(s,t+1)).join(`
2
+ `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function ec(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=ve(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>ve(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class j{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return ec(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>Xe(n));return t.splice(0,0,Ge(this.tag)),wn(t)}Equals(t){return this===t?!0:tr(this,t)&&this.tag===t.tag?fi(this.fields,t.fields):!1}CompareTo(t){return this===t?0:tr(this,t)?this.tag===t.tag?$i(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function tc(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function nc(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+ve(n)).join(`
3
+ `)+" }"}function rc(e){const t=Object.values(e).map(n=>Xe(n));return wn(t)}function oc(e,t){if(e===t)return!0;if(tr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!pe(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function sc(e,t){if(e===t)return 0;if(tr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=Pe(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class ne{toJSON(){return tc(this)}toString(){return nc(this)}GetHashCode(){return rc(this)}Equals(t){return oc(this,t)}CompareTo(t){return sc(this,t)}}class me{get contents(){return this.getter()}set contents(t){this.setter(t)}constructor(t,n){typeof n=="function"?(this.getter=t,this.setter=n):(this.getter=()=>t,this.setter=r=>{t=r})}}class ic{constructor(t){this.message=t}}function uc(e){return e instanceof ic||e instanceof Error}function ac(e){return e instanceof Promise}function or(e){return uc(e)||ac(e)?e:new Error(String(e))}const lc=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],cc=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],fc=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],$c=["January","February","March","April","May","June","July","August","September","October","November","December"];function xe(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function di(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function dc(e,t){let n=t;const r=e[t];let o="",s=!1;for(;t<e.length;){t++;const i=e[t];if(i===r){s=!0;break}else if(i==="\\")if(t<e.length)t++,o+=e[t];else throw new Error("Invalid string format");else o+=i}if(!s)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[o,t-n+1]}function co(e,t,n){let r=0,o=0,s="";const i=n?Qe(e.getTime(),1):e;for(;r<t.length;){const u=t[r];switch(u){case"d":switch(o=xe(t,r,"d"),r+=o,o){case 1:s+=yn(i);break;case 2:s+=V(yn(i),2);break;case 3:s+=lc[bi(i)];break;case 4:s+=cc[bi(i)];break}break;case"f":if(o=xe(t,r,"f"),r+=o,o<=3){const _=10**(3-o);s+=V(Math.floor(Sn(i)/_),o)}else o<=7&&(s+=(""+Sn(i)).padEnd(o,"0"));break;case"F":if(o=xe(t,r,"F"),r+=o,o<=3){const _=10**(3-o),y=Math.floor(Sn(i)/_);y!=0&&(s+=V(y,o))}else if(o<=7){const _=Sn(i);_!=0&&(s+=V(_,3))}break;case"g":o=xe(t,r,"g"),r+=o,o<=2&&(s+="A.D.");break;case"h":switch(o=xe(t,r,"h"),r+=o,o){case 1:s+=bn(i)%12;break;case 2:s+=V(bn(i)%12,2);break}break;case"H":switch(o=xe(t,r,"H"),r+=o,o){case 1:s+=bn(i);break;case 2:s+=V(bn(i),2);break}break;case"K":switch(o=xe(t,r,"K"),r+=o,o){case 1:switch(hi(i)){case 1:s+="Z";break;case 2:s+=Gt(i.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=xe(t,r,"m"),r+=o,o){case 1:s+=fo(i);break;case 2:s+=V(fo(i),2);break}break;case"M":switch(o=xe(t,r,"M"),r+=o,o){case 1:s+=xt(i);break;case 2:s+=V(xt(i),2);break;case 3:s+=fc[xt(i)-1];break;case 4:s+=$c[xt(i)-1];break}break;case"s":switch(o=xe(t,r,"s"),r+=o,o){case 1:s+=$o(i);break;case 2:s+=V($o(i),2);break}break;case"t":switch(o=xe(t,r,"t"),r+=o,o){case 1:s+=i.getHours()<12?"A":"P";break;case 2:s+=i.getHours()<12?"AM":"PM";break}break;case"y":switch(o=xe(t,r,"y"),r+=o,o){case 1:s+=i.getFullYear()%100;break;case 2:s+=V(i.getFullYear()%100,2);break;case 3:s+=V(i.getFullYear(),3);break;case 4:s+=V(i.getFullYear(),4);break;case 5:s+=V(i.getFullYear(),5);break}break;case"z":o=xe(t,r,"z"),r+=o;let a="";switch(hi(i)){case 1:a="+00:00";break;case 2:a=Gt(i.getTimezoneOffset()*-6e4);break;case 0:a=Gt(vc(i).getTimezoneOffset()*-6e4);break}const l=a[0]==="-"?"-":"+",f=parseInt(a.substring(1,3),10),c=parseInt(a.substring(4,6),10);switch(o){case 1:s+=`${l}${f}`;break;case 2:s+=`${l}${V(f,2)}`;break;default:s+=`${l}${V(f,2)}:${V(c,2)}`;break}break;case":":s+=":",r++;break;case"/":s+="/",r++;break;case"'":case'"':const[h,d]=dc(t,r);s+=h,r+=d;break;case"%":const p=di(t,r);if(p>=0&&p!==37)r+=2,s+=co(i,String.fromCharCode(p),n);else throw new Error("Invalid format string");break;case"\\":const m=di(t,r);if(m>=0)r+=2,s+=String.fromCharCode(m);else throw new Error("Invalid format string");break;default:r++,s+=u;break}}return s}function hi(e){return e.kind||0}function Gt(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+V(n,2)+":"+V(r,2)}function sr(e,t){const n=e.toISOString();return t==="first"?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function hc(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return V(e.getFullYear(),4)+"-"+V(e.getMonth()+1,2)+"-"+V(e.getDate(),2)+"T"+V(e.getHours(),2)+":"+V(e.getMinutes(),2)+":"+V(e.getSeconds(),2)+"."+V(e.getMilliseconds(),3)+(n?Gt(e.getTimezoneOffset()*-6e4):"")}}function pc(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+Gt(t)}function mc(e,t){const n=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+Gt(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return sr(n,"first");case"T":case"t":return sr(n,"second");case"O":case"o":return pc(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return co(n,t,!0)}function _c(e,t){const n=e.kind===1;if(typeof t!="string")return n?e.toUTCString():e.toLocaleString();if(t.length===1)switch(t){case"D":case"d":return n?sr(e,"first"):e.toLocaleDateString();case"T":case"t":return n?sr(e,"second"):e.toLocaleTimeString();case"O":case"o":return hc(e,n);default:throw new Error("Unrecognized Date print format")}else return co(e,t,n)}function gn(e,t,n){return e.offset!=null?mc(e,t):_c(e,t)}function Qe(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function pi(){return Qe(-621355968e5,1)}function mi(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(o!=null){let s,i=0;if(o[2]!=null){const u=o[2].split(":"),a=parseInt(u[0],10);i=a*3600+parseInt(u[1]||"0",10)*60+parseFloat(u[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&a<12&&(i+=720)}if(o[4]!=null){if(o[1]!=null)s=new Date(o[1]+" UTC");else{const u=new Date;s=new Date(u.getUTCFullYear()+"/"+(u.getUTCMonth()+1)+"/"+u.getUTCDate())}if(o[4]==="Z")r="Z";else{let u=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(u*=-1),r=u,i-=u*60}}else if(o[1]!=null)s=new Date(o[1]);else{const u=new Date;s=new Date(u.getFullYear()+"/"+(u.getMonth()+1)+"/"+u.getDate())}n=new Date(s.getTime()+i*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-s.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function wc(e,t=!1){const[n,r]=mi(e),o=r!=null?t&&r==="Z"?1:2:0;return Qe(n.getTime(),o)}function _i(e,t){try{return t.contents=wc(e),!0}catch{return!1}}function wi(e,t,n,r=0,o=0,s=0,i=0,u){const a=u===1?new Date(Date.UTC(e,t-1,n,r,o,s,i)):new Date(e,t-1,n,r,o,s,i);e<=99&&(u===1?a.setUTCFullYear(e,t-1,n):a.setFullYear(e,t-1,n));const l=a.getTime();if(isNaN(l))throw new Error("The parameters describe an unrepresentable Date.");return Qe(l,u)}function gc(){return Qe(Date.now(),2)}function yc(){return Qe(Date.now(),1)}function bc(){return yi(gc())}function gi(e){return e%4===0&&e%100!==0||e%400===0}function Sc(e,t){return t===2?gi(e)?29:28:t>=8?t%2===0?31:30:t%2===0?30:31}function Cc(e){return e.kind===1?e:Qe(e.getTime(),1)}function vc(e){return e.kind===2?e:Qe(e.getTime(),2)}function yi(e){return wi(Ut(e),xt(e),yn(e),0,0,0,0,e.kind)}function yn(e){return e.kind===1?e.getUTCDate():e.getDate()}function bn(e){return e.kind===1?e.getUTCHours():e.getHours()}function Sn(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function fo(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function xt(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function $o(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Ut(e){return e.kind===1?e.getUTCFullYear():e.getFullYear()}function bi(e){return e.kind===1?e.getUTCDay():e.getDay()}function Ec(e,t){const n=Qe(e.getTime()+t,e.kind);if(e.kind!==1){const r=e.getTimezoneOffset(),o=n.getTimezoneOffset();return r!==o?Qe(n.getTime()+(o-r)*6e4,e.kind):n}else return n}function xc(e,t){return Ec(e,t*864e5)}function kc(e,t){const n=xt(e),r=Ut(e)+t,o=Sc(r,n),s=Math.min(o,yn(e));return wi(r,n,s,bn(e),fo(e),$o(e),Sn(e),e.kind)}const Mc=lo;function ir(e,t=0){if(t&-284)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=t&1?"i":"",n+=t&2?"m":"",n+=t&16?"s":"",new RegExp(e,n)}function ho(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function ur(e,t,n=0){return e.lastIndex=n,e.exec(t)}function Si(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let o,s=-1;for(;(o=e.exec(t))!=null;)o.index===s?e.lastIndex++:(s=o.index,r.push(o));return r}function Tc(e,t,n,r,o=0){function s(){let i=arguments[0];if(r){r--;const u=[],a=arguments.length,l=typeof arguments[a-1]!="string";let f=l?a-3:a-2;for(let c=0;c<f;c++)u.push(arguments[c]);u.index=arguments[f++],u.input=arguments[f++],l&&(u.groups=arguments[f]),i=n(u)}return i}if(typeof e=="string"){const i=e;e=ir(t,r??0),t=i,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,o)+t.substring(o).replace(e,s);if(n=n.replace(/\$0/g,i=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let i;const u=t.substring(o),a=Si(e,u),l=Si.length>r?(i=a[r-1],u.substring(0,i.index+i[0].length)):u;return t.substring(0,o)+l.replace(e,n)+t.substring(o+l.length)}else return t.replace(e,n)}const Cn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Nc=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Ci(e,t){return Rl(e,t)<0}function jt(e,t,n){function r(s){return s===!0||s===1||s===3||s===5}function o(s){return s===4||s===5}return e==null?t==null?0:-1:t==null?1:o(n)?(r(n)&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t?0:e<t?-1:1):(r(n)&&(e=e.toLocaleLowerCase(),t=t.toLocaleLowerCase()),e.localeCompare(t))}function Ac(...e){switch(e.length){case 2:return jt(e[0],e[1],!1);case 3:return jt(e[0],e[1],e[2]);case 4:return jt(e[0],e[1],e[2]===!0);case 5:return jt(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),!1);case 6:return jt(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),e[5]);case 7:return jt(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),e[5]===!0);default:throw new Error("String.compare: Unsupported number of parameters")}}function Ve(e){return{input:e,cont:Fc(e)}}function vi(e,t){return typeof t=="string"?e(t):t.cont(e)}function et(e){return vi(t=>t,e)}function Ei(e){return vi(t=>{throw new Error(t)},e)}function Ic(e,t,n,r,o){let s="";if(t=t||"",o=o||"",ii(e))switch(o.toLowerCase()!=="x"&&(Ci(e,0)?(e=io(e,-1),s="-"):t.indexOf(" ")>=0?s=" ":t.indexOf("+")>=0&&(s="+")),r=r==null?null:parseInt(r,10),o){case"f":case"F":r=r??6,e=Kn(e,r);break;case"g":case"G":e=r!=null?Xn(e,r):Xn(e);break;case"e":case"E":e=r!=null?Qn(e,r):Qn(e);break;case"x":e=er(e);break;case"X":e=er(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=gn(e):e=ve(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=s+e;else{const i=t.indexOf("0")>=0,u=t.indexOf("-")>=0,a=u||!i?" ":"0";a==="0"?(e=vn(e,n-s.length,a,u),e=s+e):e=vn(s+e,n,a,u)}return e}function xi(e,t,n,r="",o=-1){return(...s)=>{let i=r;const u=t.slice(),a=n.slice();for(const l of s){const[,,f,c,h,d]=a[0];let p=c;if(o>=0)p=o,o=-1;else if(p==="*"){if(l<0)throw new Error("Non-negative number required");o=l;continue}i+=u[0],i+=Ic(l,f,p,h,d),u.splice(0,1),a.splice(0,1)}return a.length===0?(i+=u[0],e(i)):xi(e,u,a,i,o)}}function Fc(e){return t=>{Cn.lastIndex=0;const n=[],r=[];let o=0,s=Cn.exec(e);for(;s;){const i=s.index+(s[1]||"").length;n.push(e.substring(o,i).replace(/%%/g,"%")),r.push(s),o=Cn.lastIndex,Cn.lastIndex-=1,s=Cn.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),xi(t,n,r))}}function ki(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(Nc,(r,o,s,i,u,a)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let l=t[o];if(ii(l))switch(u=u==null?null:parseInt(u,10),i){case"f":case"F":u=u??2,l=Kn(l,u);break;case"g":case"G":l=u!=null?Xn(l,u):Xn(l);break;case"e":case"E":l=u!=null?Qn(l,u):Qn(l);break;case"p":case"P":u=u??2,l=Kn(io(l,100),u)+" %";break;case"d":case"D":l=u!=null?mo(String(l),u,"0"):String(l);break;case"x":case"X":l=u!=null?mo(er(l),u,"0"):er(l),i==="X"&&(l=l.toUpperCase());break;default:if(a){let f="";l=a.replace(/([0#,]+)(\.[0#]+)?/,(c,h,d)=>{Ci(l,0)&&(l=io(l,-1),f="-"),d=d==null?"":d.substring(1),l=Kn(l,Math.max(d.length,0));let[p,m]=l.split(".");m||(m="");const _=h.replace(/,/g,"").replace(/^#+/,"").length;p=mo(p,_,"0");const y=d.replace(/#+$/,"").length;if(y>m.length?m=Oc(m,y,"0"):y<m.length&&(m=m.substring(0,y)+m.substring(y).replace(/0+$/,"")),h.indexOf(",")>0){const v=p.length%3,T=Math.floor(p.length/3);let U=v>0?p.substr(0,v)+(T>0?",":""):"";for(let Oe=0;Oe<T;Oe++)U+=p.substr(v+Oe*3,3)+(Oe<T-1?",":"");p=U}return m.length>0?p+"."+m:p}),l=f+l}}else l instanceof Date?l=gn(l,a||i):l=ve(l);return s=parseInt((s||" ").substring(1),10),isNaN(s)||(l=vn(String(l),Math.abs(s)," ",s<0)),l})}function Dc(e){return typeof e!="string"||e.length===0}function po(e){return typeof e!="string"||/^\s*$/.test(e)}function M(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function vn(e,t,n,r){n=n||" ",t=t-e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function mo(e,t,n){return vn(e,t,n)}function Oc(e,t,n){return vn(e,t,n,!0)}function Mi(e,t,n){return e.replace(new RegExp(ho(t),"g"),n)}function Pc(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const o=(r&1)===1,s=(r&2)===2;t=t||[],t=t.filter(f=>f).map(ho),t=t.length>0?t:["\\s"];const i=[],u=new RegExp(t.join("|"),"g");let a=!0,l=0;do{const f=u.exec(e);if(f===null){const c=s?e.substring(l).trim():e.substring(l);(!o||c.length>0)&&i.push(c),a=!1}else{const c=s?e.substring(l,f.index).trim():e.substring(l,f.index);(!o||c.length>0)&&(n!=null&&i.length+1===n?(i.push(s?e.substring(l).trim():e.substring(l)),a=!1):i.push(c)),l=u.lastIndex}}while(a);return i}function Rc(e,...t){if(t.length===0)return e.trim();const n="["+ho(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function ar(e,t){return t.split("").filter(n=>e(n)).join("")}function Ti(e,t,n){if(t+(n||0)>e.length)throw new Error("Invalid startIndex and/or length");return n!=null?e.substr(t,n):e.substr(t)}function _o(){return(_o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Vc=["context","children"];function Lc(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var s,i,u={},a=Object.keys(r);for(i=0;i<a.length;i++)o.indexOf(s=a[i])>=0||(u[s]=r[s]);return u}(e,Vc);return Ur(t,n)}function Hc(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=C(Lc,_o({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],s={},i=0,u=n.attributes,a=n.childNodes;for(i=u.length;i--;)u[i].name!=="slot"&&(s[u[i].name]=u[i].value,s[Ni(u[i].name)]=u[i].value);for(i=a.length;i--;){var l=t(a[i],null),f=a[i].slot;f?s[f]=C(Ai,{name:f},l):o[i]=l}var c=r?C(Ai,null,o):o;return C(r||n.nodeName.toLowerCase(),s,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Gr:_t)(this._vdom,this._root)}function Ni(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function Bc(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Ni(e)]=n,this._vdom=Ur(this._vdom,r),_t(this._vdom,this._root)}}function Gc(){_t(this._vdom=null,this._root)}function Ai(e,t){var n=this;return C("slot",_o({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function Uc(e,t,n,r){function o(){var s=Reflect.construct(HTMLElement,[],o);return s._vdomComponent=e,s._root=r&&r.shadow?s.attachShadow({mode:r.mode||"open"}):s,s}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=Hc,o.prototype.attributeChangedCallback=Bc,o.prototype.disconnectedCallback=Gc,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(s){Object.defineProperty(o.prototype,s,{get:function(){return this._vdom.props[s]},set:function(i){this._vdom?this.attributeChangedCallback(s,null,i):(this._props||(this._props={}),this._props[s]=i,this.connectedCallback());var u=typeof i;i!=null&&u!=="string"&&u!=="boolean"&&u!=="number"||this.setAttribute(s,i)}})}),customElements.define(t||e.tagName||e.displayName||e.name,o)}class Ii{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,o=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(o)}}}Dispose(){}}class lr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,lr.prototype)}}class wo{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>wo.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function ct(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new lr);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(or(n))}});else try{e(t)}catch(n){t.onError(or(n))}}}function jc(e,t){return ct(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(or(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function zc(e){return ct(t=>t.onSuccess(e))}class Wc{Bind(t,n){return jc(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return ct(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let o=r.next();return this.While(()=>!o.done,this.Delay(()=>{const s=n(o.value);return o=r.next(),s}))}Return(t){return zc(t)}ReturnFrom(t){return t}TryFinally(t,n){return ct(r=>{t({onSuccess:o=>{n(),r.onSuccess(o)},onError:o=>{n(),r.onError(o)},onCancel:o=>{n(),r.onCancel(o)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return ct(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(s){r.onError(or(s))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return ct(t=>t.onSuccess(void 0))}}const N=new Wc;class qc{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class tt{constructor(t,n,r,o,s,i,u){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=s,this.cases=i,this.enumCases=u}toString(){return W(this)}GetHashCode(){return Fi(this)}Equals(t){return go(this,t)}}function ke(e){return e.generics!=null?e.generics:[]}function Fi(e){const t=_n(e.fullname),n=ke(e).map(Fi);return wn([t,...n])}function go(e,t){return e.fullname===""?t.fullname===""&&ao(kn(e),kn(t),([n,r],[o,s])=>n===o&&go(r,s)):e.fullname===t.fullname&&ao(ke(e),ke(t),go)}function En(e,t,n,r){return new tt(e,t,n,void 0,r)}function cr(e,t,n,r){const o=new tt(e,t,n,void 0,void 0,()=>{const s=n.prototype.cases();return r().map((i,u)=>new qc(o,u,s[u],i))});return o}function ft(e){return new tt("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Di(e){return new tt("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Zc=new tt("System.Object"),Y=new tt("System.String");function zt(e){if(Array.isArray(e))return e[0];if(e instanceof tt){const t=xn(e);if(t!=null)return zt(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function W(e){const t=xn(e);return t!=null?W(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>W(n)).join(",")+"]"}function Oi(e){return xn(e)!=null}function xn(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Pi(e){return e.generics!=null&&e.generics.length>0}function yo(e){return e.enumCases!=null&&e.enumCases.length>0}function Ri(e){return e.generics==null?e:new tt(e.fullname,e.generics.map(()=>Zc))}function Vi(e){var t;return(t=e.generics)==null?void 0:t[0]}function Wt(e){if(yo(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Jc(e,t){if(e.enumCases!=null)if(typeof t=="string"){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}else{for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}else throw new Error(`${e.fullname} is not an enum type`)}function qt(e,t){const n=parseInt(t,10);return Jc(e,isNaN(n)?t:n)[1]}function fr(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function kn(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Li(e){if(bo(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Hi(e){return e instanceof tt?e.cases!=null:e instanceof j}function Bi(e){return e instanceof tt?e.fields!=null:e instanceof ne}function bo(e){return e.fullname.startsWith("System.Tuple")}function Yc(e,t){const r=fr(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function Gi(e){return e.fields==null?[]:e.fields}function Kc(e,t){return e[t[0]]}function pp(e){return e}function So(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);const r=e.declaringType.construct;return r==null?{}:(e.declaringType.cases?e.declaringType.cases().length==1:!1)?new r(...t):new r(e.tag,t)}function Xc(e,t){const n=kn(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[o,s],i)=>(r[o]=t[i],r),{})}function Qc(e,t){return e}class kt{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Xe(this.value)}Equals(t){return t==null?!1:pe(this.value,t instanceof kt?t.value:t)}CompareTo(t){return t==null?1:Pe(this.value,t instanceof kt?t.value:t)}}function S(e){if(e==null)throw new Error("Option has no value");return e instanceof kt?e.value:e}function Ui(e){return e instanceof kt?e.value:e}function $e(e){return e==null||e instanceof kt?new kt(e):e}function ji(e){return e??void 0}function $r(e){return e==null?[]:[S(e)]}function ye(e,t){return e!=null?S(e):t}function ef(e,t){return e!=null?S(e):t()}function zi(e,t){return t!=null?$e(e(S(t))):void 0}function tf(e){return new Wi(0,[e])}function nf(e){return new Wi(1,[e])}class Wi extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function rf(e){return tf(e)}function of(e){return nf(e)}function Co(e){}function qi(e){return new Ii(!1)}function Zi(e){e.cancel()}function sf(e){return e!=null&&e.isCancelled}const uf=new Ii;function af(e){return ct(t=>{e({onSuccess:n=>t.onSuccess(rf(n)),onError:n=>t.onSuccess(of(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function lf(e){return ct(t=>e([t.onSuccess,t.onError,t.onCancel]))}function cf(e){return ct(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new lr)})})}function ff(e,t){return $f(e,t)}function vo(e,t){return ff(e,t)}function $f(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const s=new wo;e({onSuccess:t||Co,onError:Co,onCancel:Co,cancelToken:o||uf,trampoline:s})}class Mn extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Ji extends j{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class Eo extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Tn extends ne{constructor(t,n,r,o,s,i,u,a){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=s,this.overridenResponseType=i,this.timeout=u,this.content=a}}class Zt extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Yi extends ne{constructor(t,n,r,o,s,i){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=o,this.responseHeaders=s,this.content=i}}const df="The index was outside the range of elements in the collection.",Ki="Collection was empty.";function Xi(e,t){return new Array(t)}function Qi(e,t){return e>t?e:t}function hf(e,t){return e<t?e:t}function dr(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function Jt(e,t,n){const r=t.length|0,o=Xi(n,r);for(let s=0;s<=r-1;s++)Ue(o,s,e(ee(s,t)));return o}function pf(e,t){const n=Xi(t,1);return Ue(n,0,e),n}function mf(e){return e.slice().reverse()}function _f(e,t){return t.find(e)}function wf(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const s=e(ee(o,t));if(s!=null){const i=S(s);r.push(i)}}return pe(n,ge())?r:Jt(o=>o,r,n)}function hr(e,t,n){const r=e;return n.reduce(r,t)}function ee(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function Ue(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function eu(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class Ee extends ne{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+M("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,s)=>{e:for(;;){const i=o,u=s,a=i.tail,l=u.tail;if(a!=null)if(l!=null){const f=S(a),c=S(l);if(pe(i.head,u.head)){o=f,s=c;continue e}else return!1}else return!1;else return l==null}})(n,t)}GetHashCode(){return((r,o,s)=>{e:for(;;){const i=r,u=o,a=s,l=a.tail;if(l!=null){const f=S(l);if(i>18)return u|0;r=i+1,o=(u<<1)+Xe(a.head)+631*i,s=f;continue e}else return u|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,s)=>{e:for(;;){const i=o,u=s,a=i.tail,l=u.tail;if(a!=null)if(l!=null){const f=S(a),c=S(l),h=Pe(i.head,u.head)|0;if(h===0){o=f,s=c;continue e}else return h|0}else return 1;else return l!=null?-1:0}})(this,t)|0}GetEnumerator(){return yf(this)}[Symbol.iterator](){return mn(q(this))}"System.Collections.IEnumerable.GetEnumerator"(){return q(this)}}class gf{constructor(t){this.xs=t,this.it=this.xs,this.current=ge()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=S(n);return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=ge()}Dispose(){}}function yf(e){return new gf(e)}function de(){return new Ee(ge(),void 0)}function Nn(e,t){return new Ee(e,t)}function Mt(e){return e.tail==null}function tu(e){return((n,r)=>{e:for(;;){const o=n,i=r.tail;if(i!=null){n=o+1,r=S(i);continue e}else return o|0}})(0,e)|0}function Yt(e){if(e.tail!=null)return e.head;throw new Error(Ki+"\\nParameter name: list")}function Me(e){const t=e.tail;if(t!=null)return S(t);throw new Error(Ki+"\\nParameter name: list")}function bf(e,t){return((r,o)=>{for(;;){const s=o;if(s.tail!=null)return s.head;throw new Error(df+"\\nParameter name: index")}})(0,e)}function K(){return de()}function Te(e,t){return Nn(e,t)}function se(e){return Nn(e,de())}function O(e){return Mt(e)}function nu(e){return tu(e)}function k(e){return Yt(e)}function Sf(e){if(!Mt(e))return $e(Yt(e))}function F(e){return Me(e)}function An(e){const t=tu(e)|0,n=dr(new Array(t),0,t,null);return((o,s)=>{e:for(;;){const i=o,u=s;if(!Mt(u)){Ue(n,i,Yt(u)),o=i+1,s=Me(u);continue e}break}})(0,e),n}function $t(e,t,n){let r=t,o=n;for(;!Mt(o);)r=e(r,k(o)),o=Me(o);return r}function pr(e){return $t((t,n)=>Nn(n,t),de(),e)}function Cf(e,t,n){return eu(e,An(t),n)}function vf(e,t,n){return((o,s,i)=>{e:for(;;){const u=o,a=s,l=i;if(Mt(l))return a;o=u+1,s=e(u,a,Yt(l)),i=Me(l);continue e}})(0,t,n)}function mr(e,t){$t((n,r)=>{e(r)},void 0,t)}function X(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Nn(ee(r,e),n);return n}function E(e){return X(e,de())}function xo(e){let t,n;if(Ke(e))return E(e);if(e instanceof Ee)return e;{const r=de();let o=r;const s=q(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();){const a=s["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new Ee(a,void 0),t.tail=n,n)}}finally{L(s)}const i=o,u=de();return i.tail=u,Me(r)}}function _r(e,t){return $t((n,r)=>Nn(r,n),t,pr(e))}function Ef(e,t){const n=de(),r=vf((s,i,u)=>{const a=new Ee(e(s,u),void 0);return i.tail=a,a},n,t),o=de();return r.tail=o,Me(n)}function In(e,t){const n=de(),r=$t((s,i)=>{const u=new Ee(e(i),void 0);return s.tail=u,u},n,t),o=de();return r.tail=o,Me(n)}function Fn(e,t){return(r=>{e:for(;;){const o=r;if(Mt(o))return;{const s=e(Yt(o));if(s==null){r=Me(o);continue e}else return s}}})(t)}function ru(e,t){return((r,o)=>{e:for(;;){const s=r,i=o;if(Mt(i))return;if(e(Yt(i)))return s;r=s+1,o=Me(i);continue e}})(0,t)}function xf(e,t){return bf(t)}function kf(e,t){const n=de(),r=$t((s,i)=>{if(e(i)){const u=new Ee(i,void 0);return s.tail=u,u}else return s},n,t),o=de();return r.tail=o,Me(n)}function Mf(e,t){const n=de(),r=de(),o=n,s=$t((a,l)=>{let f,c;const h=a[0],d=a[1];return e(l)?[(f=new Ee(l,void 0),h.tail=f,f),d]:[h,(c=new Ee(l,void 0),d.tail=c,c)]},[o,r],t),i=de();s[0].tail=i;const u=de();return s[1].tail=u,[Me(o),Me(r)]}function ou(e,t){const n=de(),r=$t((s,i)=>{const u=e(i);if(u==null)return s;{const a=new Ee(S(u),void 0);return s.tail=a,a}},n,t),o=de();return r.tail=o,Me(n)}function Tf(e,t,n){return ru(r=>n.Equals(e,r),t)!=null}function Nf(e,t){return ru(e,t)!=null}function Af(e){throw new Error(e)}const If="Enumeration already finished.",Ff="Enumeration has not started. Call MoveNext.",su="The input sequence has an insufficient number of elements.",Df="Reset is not supported on this enumerator.";function Of(){throw new Error(Df)}function ko(){throw new Error(Ff)}function Mo(){throw new Error(If)}class Pf{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=q(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+ve(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{L(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return mn(q(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Rf(e){return new Pf(e)}class Vf{constructor(t,n,r){this.current=t,this.next=n,this.dispose=r}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){Of()}Dispose(){this.dispose()}}function wr(e,t,n){return new Vf(e,t,n)}function Lf(e){let t,n,r=!1,o=!1,s;const i=()=>{if(o=!0,n!=null){const u=S(n);try{L(u)}finally{n=void 0}}if(t!=null){const u=S(t);try{L(u)}finally{t=void 0}}};return wr(()=>(r?o&&Mo():ko(),s!=null?S(s):Mo()),()=>{let u;if(r||(r=!0),o)return!1;{let a;for(;a==null;){const l=t,f=n;if(l!=null)if(f!=null){const c=S(f);if(c["System.Collections.IEnumerator.MoveNext"]())s=$e(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),a=!0;else try{L(c)}finally{n=void 0}}else{const c=S(l);c["System.Collections.IEnumerator.MoveNext"]()?n=(u=c["System.Collections.Generic.IEnumerator`1.get_Current"](),q(u)):(i(),a=!1)}else t=q(e)}return S(a)}},()=>{o||i()})}function Hf(e,t){return wr(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{L(t)}finally{}})}function iu(e,t,n){let r=!1,o,s=$e(e());const i=()=>{if(s!=null){const a=S(s);try{n(a)}finally{s=void 0}}},u=()=>{try{i()}finally{o=void 0}};return wr(()=>(r||ko(),o!=null?S(o):Mo()),()=>{if(r||(r=!0),s!=null){const a=S(s);let l;try{l=t(a)}catch(f){throw u(),f}return l!=null?(o=l,!0):(u(),!1)}else return!1},i)}function Bf(e,t){let n,r=t;return wr(()=>{if(n!=null){const o=S(n)[0];return S(n)[1],o}else return ko()},()=>(n=e(r),n!=null?(S(n)[0],r=S(n)[1],!0):!1),()=>{})}function Gf(e,t){t==null&&Af(e)}function Kt(e){return Rf(e)}function dt(e){return Gf("source",e),q(e)}function w(e){return Kt(()=>q(e()))}function To(e){return Kt(()=>Lf(e))}function Uf(e,t){return Kt(()=>Bf(e,t))}function uu(){return w(()=>new Array(0))}function g(e){return w(()=>pf(e))}function mp(e){return e}function jf(e){return e instanceof Ee?An(e):Array.from(e)}function te(e){return Ke(e)?E(e):e instanceof Ee?e:xo(e)}function au(e,t,n){return Kt(()=>iu(e,t,n))}function lu(e,t,n){return Kt(()=>{let r=-1;return iu(e,o=>(r=r+1|0,t(r,o)),n)})}function b(e,t){return To([e,t])}function zf(e,t){return au(()=>dt(t),n=>{let r;for(;r==null&&n["System.Collections.IEnumerator.MoveNext"]();)r=e(n["System.Collections.Generic.IEnumerator`1.get_Current"]());return r},n=>{L(n)})}function Wf(e,t,n){const r=dt(t);try{const o=dt(n);try{let s=0,i=r["System.Collections.IEnumerator.MoveNext"](),u=o["System.Collections.IEnumerator.MoveNext"]();for(;s===0&&i&&u;)s=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,s===0&&(i=r["System.Collections.IEnumerator.MoveNext"](),u=o["System.Collections.IEnumerator.MoveNext"]());return(s!==0?s:i?1:u?-1:0)|0}finally{L(o)}}finally{L(r)}}function Tt(e,t,n){const r=dt(t);try{let o=!1;for(;!o&&r["System.Collections.IEnumerator.MoveNext"]();)o=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{L(r)}}function qf(e,t){return zf(n=>{if(e(n))return $e(n)},t)}function Dn(e,t,n){const r=dt(n);try{let o=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)o=e(o,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{L(r)}}function Nt(e,t){Dn((n,r)=>{e(r)},void 0,t)}function Zf(e,t){Dn((n,r)=>(e(n,r),n+1|0),0,t)}function he(e,t){return au(()=>dt(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?$e(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{L(n)})}function Jf(e,t){return lu(()=>dt(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?$e(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{L(n)})}function Yf(e){return w(()=>mf(jf(e)))}function Kf(e,t){return Kt(()=>{const n=dt(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(su+"\\nParameter name: source");return Hf(()=>{},n)}catch(r){throw L(n),r}})}function Xf(e,t){return lu(()=>dt(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return $e(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(su+"\\nParameter name: source")}else return},n=>{L(n)})}function No(e,t){return w(()=>To(he(e,t)))}class cu{constructor(t,n){this.k=t,this.v=n}}function gr(e,t){return new cu(e,t)}function be(e){return e.k}function Ne(e){return e.v}class ce extends cu{constructor(t,n,r,o,s){super(t,n),this.left=r,this.right=o,this.h=s|0}}function yr(e,t,n,r,o){return new ce(e,t,n,r,o)}function Se(e){return e.left}function Ce(e){return e.right}function At(e){return e.h}function _p(){}function fu(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=S(r);if(o instanceof ce){const s=o;e=fu(n+1,Se(s)),t=Ce(s);continue e}else return n+1|0}else return n|0}}function Qf(e){return fu(0,e)}function je(e,t,n,r){let o,s,i;const u=e;if(u!=null){const c=S(u);i=c instanceof ce?(o=c,At(o)):1}else i=0;let a;const l=r;if(l!=null){const c=S(l);a=c instanceof ce?(s=c,At(s)):1}else a=0;const f=(i<a?a:i)|0;return f===0?gr(t,n):yr(t,n,e,r,f+1)}function $u(e,t,n,r){let o,s,i,u,a,l,f,c,h;const d=e;if(d!=null){const _=S(d);h=_ instanceof ce?(o=_,At(o)):1}else h=0;let p;const m=r;if(m!=null){const _=S(m);p=_ instanceof ce?(s=_,At(s)):1}else p=0;if(p>h+2){const _=S(r);if(_ instanceof ce){const y=_;if(i=Se(y),(i!=null?(u=S(i),u instanceof ce?(a=u,At(a)):1):0)>h+1){const v=S(Se(y));if(v instanceof ce){const T=v;return je(je(e,t,n,Se(T)),be(T),Ne(T),je(Ce(T),be(y),Ne(y),Ce(y)))}else throw new Error("internal error: Map.rebalance")}else return je(je(e,t,n,Se(y)),be(y),Ne(y),Ce(y))}else throw new Error("internal error: Map.rebalance")}else if(h>p+2){const _=S(e);if(_ instanceof ce){const y=_;if(l=Ce(y),(l!=null?(f=S(l),f instanceof ce?(c=f,At(c)):1):0)>p+1){const v=S(Ce(y));if(v instanceof ce){const T=v;return je(je(Se(y),be(y),Ne(y),Se(T)),be(T),Ne(T),je(Ce(T),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return je(Se(y),be(y),Ne(y),je(Ce(y),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return je(e,t,n,r)}function Xt(e,t,n,r){if(r!=null){const o=S(r),s=e.Compare(t,be(o))|0;if(o instanceof ce){const i=o;return s<0?$u(Xt(e,t,n,Se(i)),be(i),Ne(i),Ce(i)):s===0?yr(t,n,Se(i),Ce(i),At(i)):$u(Se(i),be(i),Ne(i),Xt(e,t,n,Ce(i)))}else return s<0?yr(t,n,void 0,r,2):s===0?gr(t,n):yr(t,n,r,void 0,2)}else return gr(t,n)}function du(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=S(s),u=r.Compare(o,be(i))|0;if(u===0)return $e(Ne(i));if(i instanceof ce){const a=i;e=r,t=o,n=u<0?Se(a):Ce(a);continue e}else return}else return}}function e$(e,t,n){const r=du(e,t,n);if(r==null)throw new Error;return S(r)}function t$(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=S(s),u=r.Compare(o,be(i))|0;if(i instanceof ce){const a=i;if(u<0){e=r,t=o,n=Se(a);continue e}else{if(u===0)return!0;e=r,t=o,n=Ce(a);continue e}}else return u===0}else return!1}}function hu(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=S(r);if(o instanceof ce){const s=o;hu(n,Se(s)),n(be(s),Ne(s)),e=n,t=Ce(s);continue e}else n(be(o),Ne(o))}break}}function n$(e,t){hu(e,t)}function r$(e,t,n){let r=n;n$((o,s)=>{Ue(t,r,[o,s]),r=r+1|0},e)}function o$(e,t){return $t((n,r)=>Xt(e,r[0],r[1],n),void 0,t)}function s$(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){const i=s["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=Xt(r,i[0],i[1],o),n=s;continue e}else return o}}function i$(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=ee(r,t);n=Xt(e,o[0],o[1],n)}return n}function pu(e,t){if(Ke(t))return i$(e,t);if(t instanceof Ee)return o$(e,t);{const n=q(t);try{return s$(e,void 0,n)}finally{L(n)}}}class u$ extends ne{constructor(t,n){super(),this.stack=t,this.started=n}}function mu(e){e:for(;;){const t=e;if(O(t))return K();{const n=F(t),r=k(t);if(r!=null){const o=S(r);if(o instanceof ce){const s=o;e=X([Se(s),gr(be(s),Ne(s)),Ce(s)],n);continue e}else return t}else{e=n;continue e}}}}function _u(e){return new u$(mu(se(e)),!1)}function a$(){throw new Error("enumeration not started")}function l$(){throw new Error("enumeration already finished")}function wu(e){if(e.started){const t=e.stack;if(O(t))return l$();if(k(t)!=null){const n=S(k(t));if(n instanceof ce)throw new Error("Please report error: Map iterator, unexpected stack for current");return[be(n),Ne(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return a$()}function c$(e){if(e.started){const t=e.stack;if(O(t))return!1;if(k(t)!=null){if(S(k(t))instanceof ce)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=mu(F(t)),!O(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!O(e.stack)}function gu(e){let t=_u(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return wu(t)},"System.Collections.IEnumerator.get_Current"(){return wu(t)},"System.Collections.IEnumerator.MoveNext"(){return c$(t)},"System.Collections.IEnumerator.Reset"(){t=_u(e)},Dispose(){}}}class br{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return h$(this)|0}Equals(t){const n=this;if(t instanceof br){const r=t,o=q(n);try{const s=q(r);try{const i=()=>{const u=o["System.Collections.IEnumerator.MoveNext"]();if(u===s["System.Collections.IEnumerator.MoveNext"]())if(u){const a=o["System.Collections.Generic.IEnumerator`1.get_Current"](),l=s["System.Collections.Generic.IEnumerator`1.get_Current"]();return pe(a[0],l[0])&&pe(a[1],l[1])?i():!1}else return!0;else return!1};return i()}finally{L(s)}}finally{L(o)}}else return!1}toString(){return"map ["+M("; ",he(n=>ki("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return gu(this.tree)}[Symbol.iterator](){return mn(q(this))}"System.Collections.IEnumerable.GetEnumerator"(){return gu(this.tree)}CompareTo(t){const n=this;if(t instanceof br)return Wf((o,s)=>{const i=n.comparer.Compare(o[0],s[0])|0;return(i!==0?i:Pe(o[1],s[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return bu(n,t[0])&&pe(yu(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){r$(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Ao(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Ao(this)|0}get size(){return Ao(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return he(n=>[n[0],n[1]],this)}get(t){return yu(this,t)}has(t){return bu(this,t)}keys(){return he(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return he(n=>n[1],this)}forEach(t,n){const r=this;Nt(o=>{t(o[1],o[0],r)},r)}}function Sr(e,t){return new br(e,t)}function f$(e){return Sr(e,void 0)}function $$(e,t,n){return Sr(e.comparer,Xt(e.comparer,t,n,e.tree))}function yu(e,t){return e$(e.comparer,t,e.tree)}function Ao(e){return Qf(e.tree)}function bu(e,t){return t$(e.comparer,t,e.tree)}function d$(e,t){return du(e.comparer,t,e.tree)}function h$(e){const t=(o,s)=>(o<<1)+s+631;let n=0;const r=q(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Xe(o[0]))|0,n=t(n,Xe(o[1]))|0}}finally{L(r)}return n|0}function Su(e,t,n){return $$(n,e,t)}function Cu(e,t){return d$(t,e)}function p$(e,t){return Sr(t,pu(t,e))}function m$(e,t){return Sr(t,pu(t,e))}function Io(e){return f$(e)}function vu(e){return new Ji("Content-Type",e)}function _$(e){return new Ji("Authorization",e)}const It=new Tn("",new Mn(0,[]),K(),!1,void 0,void 0,void 0,new Eo(0,[]));new Yi(0,"","","",Io({Compare:nr}),new Zt(0,[""]));function Eu(e,t){return Dc(t)?new Array(0):Pc(t,[e],void 0,0)}function w$(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}function Cr(e){return new Tn(e,It.method,It.headers,It.withCredentials,It.overridenMimeType,It.overridenResponseType,It.timeout,It.content)}function vr(e,t){return new Tn(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Fo(e,t){return new Tn(t.url,t.method,_r(t.headers,se(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function xu(e,t){return new Tn(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function ku(e){return lf(t=>{const n=new XMLHttpRequest;n.open(w$(e.method),e.url),n.onreadystatechange=()=>{let a,l,f,c,h,d,p;n.readyState===4&&t[0]((a=(l=n.responseType,l===""||l==="text"?n.responseText:""),f=n.status|0,c=n.responseType,h=(d=n.responseType,d===""?new Zt(0,[n.responseText]):d==="text"?new Zt(0,[n.responseText]):d==="arraybuffer"?new Zt(2,[n.response]):d==="blob"?new Zt(1,[n.response]):new Zt(3,[n.response])),p=m$(wf(m=>{const _=E(Eu(":",m));if(!O(_))return[k(_).toLocaleLowerCase(),M(":",F(_)).trim()]},Eu(`\r
4
+ `,n.getAllResponseHeaders())),{Compare:nr}),new Yi(f,a,c,n.responseURL,p,h)))};const r=q(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const a=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(a.fields[0],a.fields[1])}}finally{L(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const a=o;n.overrideMimeType(a)}const s=e.overridenResponseType;if(s!=null)switch(s.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const i=e.timeout;if(i!=null){const a=i|0;n.timeout=a|0}const u=e.content;switch(u.tag){case 1:{n.send($e(u.fields[0]));break}case 3:{n.send($e(u.fields[0]));break}case 2:{n.send($e(u.fields[0]));break}default:n.send()}})}function g$(e){return new $(0,[e])}function Mu(e){return new $(1,[e])}class $ extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function ze(e,t){return t.tag===0?g$(e(t.fields[0])):Mu(t.fields[0])}function Tu(e,t){return t.tag===0?e(t.fields[0]):Mu(t.fields[0])}function Er(e){if(!po(e))return e}function Nu(e){let t,n=pi();if(t=[_i(e,new me(()=>n,r=>{n=r})),n],t[0])return t[1]}function Au(e,t){Uc(e,t,void 0,{shadow:!0})}function xr(e,t){return N.Delay(()=>{const n=Fo(_$(et(Ve("Bearer %s"))(e)),t);let r;const o=ku(n);return r=N.Bind(o,s=>N.Return(new $(0,[s]))),N.Bind(r,s=>{const i=s;if(i.tag===1)return N.Return(new $(1,[i.fields[0]]));{const u=i.fields[0];if(u.statusCode===429||u.statusCode>=500){const a=ku(n);return N.Bind(a,l=>N.Return(new $(0,[l])))}else return N.Return(new $(0,[u]))}})})}function ie(e,t,n){return Fn(r=>{if(r.indexOf(e)===0)return Mi(r,e,t)},n)}function wt(e){return Mi(e,"’","'")}var Do;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Do||(Do={}));function y$(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function Iu(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 b$(e){switch(e){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}function S$(e,t){if(t&Do.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}function C$(e,t,n){const o=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(o!=null){const[,,s,i]=o;if(n=n||S$(s,t),!b$(n).test(i))return y$(o,n)}return null}function Fu(e,t,n,r,o){const s=C$(e,t,o);if(s!=null){let i=Number.parseInt(s.sign+s.digits,s.radix);if(!Number.isNaN(i)){const[u,a]=Iu(!0,r);!n&&s.radix!==10&&i>=u&&i<=a&&(i=i<<32-r>>32-r);const[l,f]=Iu(n,r);if(i>=l&&i<=f)return i}}throw new Error(`The input string ${e} was not in a correct format.`)}function Ft(e,t,n,r,o){try{return o.contents=Fu(e,t,n,r),!0}catch{return!1}}function v$(e){return e===-2147483648?e:-e}function E$(e,t){const n=ur(ir(e),t);if(n!=null)return F(te(w(()=>he(r=>r||"",n))))}function Oo(e){let t,n=0;if(t=[Ft(e,511,!1,32,new me(()=>n,r=>{n=r|0})),n],t[0])return t[1]}function Ae(e,t,n){if(n>=e&&n<=t)return $e(void 0)}function Du(e){return gi(e)}function x$(e,t){const n=E$("^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$",t);if(n!=null){const r=n;let o,s,i,u;switch(O(r)||O(F(r))||O(F(F(r)))?o=1:O(F(F(F(r))))?(o=0,s=k(F(F(r))),i=k(F(r)),u=k(r)):o=1,o){case 0:{const a=[u,i,s];let l,f,c,h;const d=Oo(a[0]);if(d!=null){const p=Oo(a[1]);if(p!=null){const m=Oo(a[2]);m!=null?(l=0,f=m,c=p,h=d):l=1}else l=1}else l=1;switch(l){case 0:return new $(0,[[h,c,f]]);default:return new $(1,[e])}}default:return new $(1,[e])}}else return new $(1,[e])}function k$(e,t,n){const r=x$(e,n);if(r.tag===1)return new $(1,[r.fields[0]]);{const o=r.fields[0],s=o[0]|0,i=o[1]|0,u=o[2]|0;if(s<=0)return new $(1,[e]);{let a;switch(i===2&&Ae(1,29,u)!=null&&Du(s)?a=0:a=1,a){case 0:return new $(0,[t(s,i,u)]);default:{let l;switch(i===2&&Ae(1,28,u)!=null?Du(s)?l=1:l=0:l=1,l){case 0:return new $(0,[t(s,i,u)]);default:{let f;switch(i){case 1:{Ae(1,31,u)!=null?f=0:f=1;break}case 3:{Ae(1,31,u)!=null?f=0:f=1;break}case 5:{Ae(1,31,u)!=null?f=0:f=1;break}case 7:{Ae(1,31,u)!=null?f=0:f=1;break}case 8:{Ae(1,31,u)!=null?f=0:f=1;break}case 10:{Ae(1,31,u)!=null?f=0:f=1;break}case 12:{Ae(1,31,u)!=null?f=0:f=1;break}default:f=1}switch(f){case 0:return new $(0,[t(s,i,u)]);default:{let c;switch(i){case 4:{Ae(1,30,u)!=null?c=0:c=1;break}case 6:{Ae(1,30,u)!=null?c=0:c=1;break}case 9:{Ae(1,30,u)!=null?c=0:c=1;break}case 11:{Ae(1,30,u)!=null?c=0:c=1;break}default:c=1}switch(c){case 0:return new $(0,[t(s,i,u)]);default:return new $(1,[e])}}}}}}}}}}function M$(e,t){return k$(e,(n,r,o)=>{},t)}class Qt extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Male","Female","Intersex","Transgender","PreferNotToAnswer","Other","NotSet"]}}class T$ extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Spouse","Parent","Child","Sibling","Partner","Sister","Husband","Father","Mother","Daughter","Defacto","Fiance","Boyfriend","Brother","Wife","Son","Engaged","Friend","Girlfriend","Other"]}}function N$(){return cr("DomainPrimitives.Relationship",[],T$,()=>[[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]])}function A$(e){switch(e.tag){case 1:return"Parent";case 2:return"Child";case 3:return"Sibling";case 4:return"Partner";case 5:return"Sister";case 6:return"Husband";case 7:return"Father";case 8:return"Mother";case 9:return"Daughter";case 10:return"Defacto";case 11:return"Fiance";case 12:return"Boyfriend";case 13:return"Brother";case 14:return"Wife";case 15:return"Son";case 16:return"Engaged";case 17:return"Friend";case 18:return"Girlfriend";case 19:return"Other";default:return"Spouse"}}class I$ extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NSW","QLD","WA","SA","NT","VIC","TAS","ACT"]}}function F$(){return cr("DomainPrimitives.AuState",[],I$,()=>[[],[],[],[],[],[],[],[]])}const D$=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Ou=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,O$=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function P$(e){function t(r){return r.replace(Ou,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(D$.test(n))return Rc(n,"{","}","(",")");if(Ou.test(n))return t(n);if(O$.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function R$(e,t){try{return t.contents=P$(e),!0}catch{return!1}}class Pu extends ne{constructor(t,n,r){super(),this.FirstName=t,this.MiddleName=n,this.LastName=r}}function Ru(){return En("Dto.Primitives.Name",[],Pu,()=>[["FirstName",Y],["MiddleName",ft(Y)],["LastName",Y]])}function V$(e){switch(e.tag){case 1:return"Female";case 2:return"Intersex";case 3:return"Transgender";case 4:return"PreferNotToAnswer";case 5:return"Other";case 6:return"NotSet";default:return"Male"}}class Po extends ne{constructor(t,n,r,o,s,i){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.State=o,this.Postcode=s,this.CountryCode=i}}function Ro(){return En("Dto.Primitives.Address",[],Po,()=>[["AddressLine1",Y],["AddressLine2",ft(Y)],["City",Y],["State",Y],["Postcode",Y],["CountryCode",Y]])}class Vu extends ne{constructor(t,n,r,o,s){super(),this.FullName=t,this.Relationship=n,this.MobilePhone=r,this.Email=o,this.Address=s}}function Lu(){return En("Dto.Primitives.EmergencyContactDto",[],Vu,()=>[["FullName",Y],["Relationship",Y],["MobilePhone",Y],["Email",ft(Y)],["Address",ft(Ro())]])}class L$ extends ne{constructor(t){super(),this.Unused=t}}new L$(void 0);const H$="#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ƒ£ē︳𐀡%𐀡",B$="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@";function G$(){const t=[...H$].map(s=>(s.codePointAt(0)??0)-35),n=[...B$].map(s=>(s.codePointAt(0)??0)-35),r=new Uint32Array(t),o=new Uint8Array(n);for(let s=1;s<r.length;++s)r[s]+=r[s-1];return s=>{let i=r.length,u=0;for(;i-u>1;){const a=Math.floor((i+u)/2),l=r[a];if(s<l)i=a;else if(s===l){i=u=a;break}else l<s&&(u=a)}return o[u]}}const U$=256,j$=G$();function z$(e,t){if(t<e.length)return e.charCodeAt(t);throw new Error("Index out of range.")}const kr=e=>q$(e,0);function W$(e,t){const n=z$(e,t);return j$(n)}function q$(e,t){return(1<<W$(e,t)&U$)!==0}class nt extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Saving","Loading"]}}function en(e){return e.tag===1?"We ran an into an issue loading your details. Please try refreshing the page.":"We ran an into an issue saving your details. Please try saving again by clicking on the Submit button."}function Vo(e){return ve(e)}function Lo(){return In(e=>[e,Vo(e)],xo(he(e=>So(e,[]),fr(F$()))))}function On(e){return Fn(t=>{if(t[1]===e)return t[0]},Lo())}function Z$(e){return e.indexOf("+")===0?e:`+${e}`}function Hu(e){return e.indexOf("04")===0?`+61${Ti(e,1)}`:Z$(e)}const Bu=Hu;function Ho(e){return Hu(ar(kr,e))}function J$(e,t,n){e:for(;;){const r=e,o=t,s=n;if(O(s)){const i=r;return i.tag===1?new $(1,[i.fields[0]]):new $(0,[pr(i.fields[0])])}else{let i;const u=o(k(s));if(u.tag===1)i=new $(1,[u.fields[0]]);else{const a=r;i=a.tag===1?new $(1,[a.fields[0]]):new $(0,[Te(u.fields[0],a.fields[0])])}if(i.tag===1)return i;e=i,t=o,n=F(s);continue e}}}function Y$(e,t){return J$(new $(0,[K()]),e,t)}class _e extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Required","MaxLen","MinLen","Regex","NumbersOnly","DuSelection","Email","Date","DateOfBirth","PhoneNumber","NotStartWith"]}}class Gu extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Over100","Under13"]}}function Pn(e){return po(e)?new $(1,[new _e(0,[])]):new $(0,[void 0])}function K$(e){return ar(kr,e)===e?new $(0,[void 0]):new $(1,[new _e(4,[])])}function Rn(e,t){return t.length>e?new $(1,[new _e(1,[e])]):new $(0,[void 0])}function X$(e,t){const n=xc(e,1);let r;const o=Ut(n)-Ut(t)|0;r=Mc(yi(t),kc(n,v$(o)))>0?o-1:o;const s=r>=13?new $(0,[void 0]):new $(1,[new _e(8,[new Gu(1,[])])]);if(s.tag===1)return new $(1,[s.fields[0]]);{const i=r<100?new $(0,[void 0]):new $(1,[new _e(8,[new Gu(0,[])])]);return i.tag===1?new $(1,[i.fields[0]]):new $(0,[void 0])}}function Mr(e,t){return ur(ir(e),t)!=null?new $(0,[void 0]):new $(1,[new _e(3,[])])}function Q$(e){return M$(new _e(7,[]),e)}function ed(e){return e.length<=320&&!(e.indexOf("..")>=0)&&!(e.indexOf(".@")>=0)&&ur(/^[A-Z0-9][A-Z0-9._%+'-]{0,63}@(?:[A-Z0-9-]{1,63}\.){1,125}[A-Z]{2,63}$/gui,e)!=null?new $(0,[void 0]):new $(1,[new _e(6,[])])}function Tr(e,t){return t.indexOf(e)===0?new $(1,[new _e(10,[e])]):new $(0,[void 0])}function gt(e,t){const n=Y$(r=>r(t),e);return n.tag===1?new $(1,[n.fields[0]]):new $(0,[void 0])}const Bo=e=>gt(E([Pn,t=>Rn(60,t),t=>Tr("-",t),t=>Tr("'",t),t=>Mr("(^[A-Za-zÀ-ÖØ-öø-ÿĀ-ž])[A-Za-zÀ-ÖØ-öø-ÿĀ-ž\\- ']{0,59}$",t)]),e);function td(e){return e!=null?gt(E([t=>Rn(60,t),t=>Tr("-",t),t=>Tr("'",t),t=>Mr("(^[A-Za-zÀ-ÖØ-öø-ÿĀ-ž])[A-Za-zÀ-ÖØ-öø-ÿĀ-ž\\- ']{0,59}$",t)]),e):new $(0,[void 0])}const Uu=e=>gt(E([Pn,t=>Rn(60,t),t=>Mr("(^[0-9A-Za-z])[0-9A-Za-z\\- '\\/,\\.]{0,59}$",t)]),e),ju=e=>gt(E([Pn,ed]),e);function nd(e){return e!=null?gt(se(ju),e):new $(0,[void 0])}function rd(e){return t=>gt(se(n=>X$(e,n)),t)}function od(e){return rd(yc())(e)}const zu=e=>gt(E([Pn,t=>Rn(60,t),t=>Mr("(^[A-Za-z])[A-Za-z\\- ]{0,59}$",t)]),e),Wu=e=>gt(E([Pn,t=>Rn(4,t),K$]),e);function Vn(e){return e<0?Math.ceil(e):Math.floor(e)}function qu(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return sd(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+o}function sd(e){return Number(BigInt(e)/10000n)}function id(e){return Vn(e/864e5)}function ud(e){return Vn(e%864e5/36e5)}function ad(e){return Vn(e%36e5/6e4)}function ld(e){return Vn(e%6e4/1e3)}function cd(e){return Vn(e%1e3)}function fd(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(id(e)),o=Math.abs(ud(e)),s=Math.abs(ad(e)),i=Math.abs(ld(e)),u=Math.abs(cd(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?o:V(o,2)}:${V(s,2)}:${V(i,2)}${u===0&&(t==="c"||t==="g")?"":t==="g"?"."+V(u,3):"."+Ul(u,3,7)}`}function $d(e){const t=e.search("\\."),n=e.search("\\:");if(t===-1&&n===-1){const r=parseInt(e,0);if(isNaN(r))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return qu(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let o=0,s=0,i=0;const u=r[1]!=null&&r[1]==="-"?-1:1,a=+r[4],l=+r[5];if(r[3]!=null&&(o=+r[3]),r[7]!=null&&(i=+r[7]),r[8]!=null)switch(r[8].length){case 1:s=+r[8]*100;break;case 2:s=+r[8]*10;break;case 3:s=+r[8];break;case 4:s=+r[8]/10;break;case 5:s=+r[8]/100;break;case 6:s=+r[8]/1e3;break;case 7:s=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return u*qu(o,a,l,i,s)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function dd(e,t){try{return t.contents=$d(e),!0}catch{return!1}}function hd(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function pd(e,t){return t.has(e)?!1:(t.add(e),!0)}function Zu(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class x extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Dt extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Ju(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Yu(e,t){switch(e.tag){case 2:return Tc(Ju(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Ju(t)}}function md(e){return e}const Ku=ge();function Nr(e){return Array.from(e)}function _d(e){return gn(e,"O")}function wd(e){return fd(e)}function gd(){return ge()}function yd(e){return gn(e,"O")}function Xu(e,t){return JSON.stringify(t,void 0,$e(e))}function bd(e){return t=>ef(zi(e,t),()=>Ku)}function Qu(e,t,n,r){let o;const s=new me(ge());let i;const u=W(r);i=u===""?e:Su(u,s,e);let a;if(Bi(r)){const l=Jt(f=>{const c=Yu(t,zt(f)),h=ht(i,t,n,f[1]);return d=>p=>{const m=Kc(d,f);return(!n||n&&m!=null)&&(p[c]=h(m)),p}},kn(r));a=f=>Dn((c,h)=>h(f)(c),{},l)}else if(Hi(r))a=l=>{const f=Yc(l,r),c=f[0],h=f[1],d=h.length|0;if(d===0)return zt(c);{const p=d|0,m=Gi(c),_=dr(new Array(p+1),0,p+1,null);Ue(_,0,zt(c));for(let y=1;y<=p;y++){const v=ht(i,t,n,ee(y-1,m)[1]);Ue(_,y,v(ee(y-1,h)))}return _}};else throw new Error((o=W(r),et(Ve(`Cannot generate auto encoder for %s. Please pass an extra encoder.
5
+
6
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return s.contents=a,a}function ht(e,t,n,r){const o=W(r),s=Cu(o,e);if(s==null)if(Oi(r)){const i=ht(e,t,n,xn(r));return u=>Nr(he(i,u))}else if(yo(r))switch(W(Vi(r))){case"System.SByte":return u=>u;case"System.Byte":return u=>u;case"System.Int16":return u=>u;case"System.UInt16":return u=>u;case"System.Int32":return u=>u;case"System.UInt32":return u=>u;default:{const u=W(r);return Ei(Ve(`Cannot generate auto encoder for %s.
7
+ Thoth.Json.Net only support the following enum types:
8
+ - sbyte
9
+ - byte
10
+ - int16
11
+ - uint16
12
+ - int
13
+ - uint32
14
+
15
+ If you can't use one of these types, please pass an extra encoder.
16
+
17
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders
18
+ `))(u)}}else if(Pi(r))if(bo(r)){const i=Jt(u=>ht(e,t,n,u),Li(r));return u=>Nr(Jf((a,l)=>ee(a,i)(l),u))}else{const i=W(Ri(r));if(i==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const u=new Gl(()=>bd(ht(e,t,n,ee(0,ke(r)))));return a=>a==null?Ku:u.Value(a)}else if(i==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||i==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||i==="System.Collections.Generic.IEnumerable`1[System.Object]"){const u=ht(e,t,n,ee(0,ke(r)));return a=>Nr(he(u,a))}else if(i==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const u=ee(0,ke(r)),a=ht(e,t,n,ee(1,ke(r)));if(W(u)==="System.String"||W(u)==="System.Guid")return l=>Dn((f,c)=>{const h=c;return f[h[0]]=a(h[1]),f},{},l);{let l;return l=ht(e,t,n,u),c=>Nr(he(h=>{const d=h;return[l(d[0]),a(d[1])]},c))}}else return Qu(e,t,n,r)}else switch(o){case"System.Boolean":return i=>i;case"Microsoft.FSharp.Core.Unit":return gd;case"System.String":return i=>i;case"System.Char":return i=>i;case"System.SByte":return i=>i;case"System.Byte":return i=>i;case"System.Int16":return i=>i;case"System.UInt16":return i=>i;case"System.Int32":return i=>i;case"System.UInt32":return i=>i;case"System.Double":return i=>i;case"System.Single":return i=>i;case"System.DateTime":return yd;case"System.DateTimeOffset":return _d;case"System.TimeSpan":return wd;case"System.Guid":return md;case"System.Object":return i=>i;default:return Qu(e,t,n,r)}else{const i=s;return u=>i.contents(u)}}function Sd(e){return Io({Compare:nr})}function ea(e,t,n,r){const o=ye(t,new Dt(0,[])),s=ye(r,!0);return ht(Sd(),o,s,e)}function ta(e,t){Cd(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Cd(e){if(e!=null&&e!==0){if(e%6e4!==0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}function vd(){return ta(-621355968e5,0)}function Ed(e){const[t,n]=mi(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return ta(t.getTime(),r)}function xd(e,t){try{return t.contents=Ed(e),!0}catch{return!1}}class kd{constructor(t,n){const r=new me(ge());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const o=q(t);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"]();Uo(r.contents,s)}}finally{L(o)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return q(this)}GetEnumerator(){return q(To(this.hashMap.values()))}[Symbol.iterator](){return mn(q(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){Uo(this,t)}"System.Collections.Generic.ICollection`1.Clear"(){na(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){return oa(this,t)}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Zf((o,s)=>{Ue(t,n+o,s)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return ra(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){return sa(this,t)}get size(){return ra(this)|0}add(t){const n=this;return Uo(n,t),n}clear(){na(this)}delete(t){return sa(this,t)}has(t){return oa(this,t)}keys(){return he(n=>n,this)}values(){return he(n=>n,this)}entries(){return he(n=>[n,n],this)}forEach(t,n){const r=this;Nt(o=>{t(o,o,r)},r)}}function Go(e,t){const n=e.comparer.GetHashCode(t)|0;let r,o=ge();return r=[hd(e.hashMap,n,new me(()=>o,s=>{o=s})),o],r[0]?[!0,n,r[1].findIndex(s=>e.comparer.Equals(t,s))]:[!1,n,-1]}function na(e){e.hashMap.clear()}function ra(e){let t=0,n=q(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=t+r.length|0}}finally{L(n)}return t|0}function Uo(e,t){const n=Go(e,t);return n[0]?n[2]>-1?!1:(Zu(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function oa(e,t){const n=Go(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function sa(e,t){const n=Go(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Zu(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}class ia{constructor(t){this.k=t}}function Ie(e){return new ia(e)}function I(e){return e.k}class R extends ia{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function Fe(e,t,n,r){return new R(e,t,n,r)}function z(e){return e.left}function G(e){return e.right}function tn(e){return e.h}function wp(){}function ua(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=S(n);if(o instanceof R){const s=o;e=z(s),t=ua(G(s),r+1);continue e}else return r+1|0}else return r|0}}function Md(e){return ua(e,0)}function We(e,t,n){let r,o,s;const i=e;if(i!=null){const f=S(i);s=f instanceof R?(r=f,tn(r)):1}else s=0;let u;const a=n;if(a!=null){const f=S(a);u=f instanceof R?(o=f,tn(o)):1}else u=0;const l=(s<u?u:s)|0;return l===0?Ie(t):Fe(t,e,n,l+1)}function aa(e,t,n){let r,o,s,i,u,a,l,f,c;const h=e;if(h!=null){const m=S(h);c=m instanceof R?(r=m,tn(r)):1}else c=0;let d;const p=n;if(p!=null){const m=S(p);d=m instanceof R?(o=m,tn(o)):1}else d=0;if(d>c+2){const m=S(n);if(m instanceof R){const _=m;if(s=z(_),(s!=null?(i=S(s),i instanceof R?(u=i,tn(u)):1):0)>c+1){const y=S(z(_));if(y instanceof R){const v=y;return We(We(e,t,z(v)),I(v),We(G(v),I(_),G(_)))}else throw new Error("internal error: Set.rebalance")}else return We(We(e,t,z(_)),I(_),G(_))}else throw new Error("internal error: Set.rebalance")}else if(c>d+2){const m=S(e);if(m instanceof R){const _=m;if(a=G(_),(a!=null?(l=S(a),l instanceof R?(f=l,tn(f)):1):0)>d+1){const y=S(G(_));if(y instanceof R){const v=y;return We(We(z(_),I(_),z(v)),I(v),We(G(v),t,n))}else throw new Error("internal error: Set.rebalance")}else return We(z(_),I(_),We(G(_),t,n))}else throw new Error("internal error: Set.rebalance")}else return We(e,t,n)}function nn(e,t,n){if(n!=null){const r=S(n),o=e.Compare(t,I(r))|0;if(r instanceof R){const s=r;return o<0?aa(nn(e,t,z(s)),I(s),G(s)):o===0?n:aa(z(s),I(s),nn(e,t,G(s)))}else{const s=e.Compare(t,I(r))|0;return s<0?Fe(t,void 0,n,2):s===0?n:Fe(t,n,void 0,2)}}else return Ie(t)}function la(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=S(s),u=r.Compare(o,I(i))|0;if(i instanceof R){const a=i;if(u<0){e=r,t=o,n=z(a);continue e}else{if(u===0)return!0;e=r,t=o,n=G(a);continue e}}else return u===0}else return!1}}function ca(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=S(r);if(o instanceof R){const s=o;ca(n,z(s)),n(I(s)),e=n,t=G(s);continue e}else n(I(o))}break}}class Td extends ne{constructor(t,n){super(),this.stack=t,this.started=n}}function fa(e){e:for(;;){const t=e;if(O(t))return K();{const n=k(t),r=F(t);if(n!=null){const o=S(n);if(o instanceof R){const s=o;e=X([z(s),Ie(I(s)),G(s)],r);continue e}else return t}else{e=r;continue e}}}}function $a(e){return new Td(fa(se(e)),!1)}function Nd(){throw new Error("Enumeration not started")}function Ad(){throw new Error("Enumeration already started")}function da(e){if(e.started){const t=e.stack;if(O(t))return Ad();if(k(t)!=null){const n=S(k(t));return I(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Nd()}function Id(e){if(e.started){const t=e.stack;if(O(t))return!1;if(k(t)!=null){if(S(k(t))instanceof R)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=fa(F(t)),!O(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!O(e.stack)}function ha(e){let t=$a(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return da(t)},"System.Collections.IEnumerator.get_Current"(){return da(t)},"System.Collections.IEnumerator.MoveNext"(){return Id(t)},"System.Collections.IEnumerator.Reset"(){t=$a(e)},Dispose(){}}}function Fd(e,t,n){e:for(;;){const r=e,o=t,s=n;if(O(o))return O(s)?0:-1;if(O(s))return 1;if(k(s)!=null)if(k(o)!=null){const i=S(k(o)),u=S(k(s));if(i instanceof R){const a=i;if(z(a)==null)if(u instanceof R){const l=u;if(z(l)==null){const f=r.Compare(I(a),I(l))|0;if(f!==0)return f|0;e=r,t=Te(G(a),F(o)),n=Te(G(l),F(s));continue e}else{let f,c,h,d,p;switch(O(o)?O(s)?f=2:k(s)!=null?(f=1,d=F(s),p=S(k(s))):f=2:k(o)!=null?(f=0,c=F(o),h=S(k(o))):O(s)?f=2:k(s)!=null?(f=1,d=F(s),p=S(k(s))):f=2,f){case 0:if(h instanceof R){const m=h;e=r,t=X([z(m),Fe(I(m),void 0,G(m),0)],c),n=s;continue e}else{e=r,t=X([void 0,Ie(I(h))],c),n=s;continue e}case 1:if(p instanceof R){const m=p;e=r,t=o,n=X([z(m),Fe(I(m),void 0,G(m),0)],d);continue e}else{e=r,t=o,n=X([void 0,Ie(I(p))],d);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(I(a),I(u))|0;if(l!==0)return l|0;e=r,t=Te(G(a),F(o)),n=Te(void 0,F(s));continue e}else{let l,f,c,h,d;switch(O(o)?O(s)?l=2:k(s)!=null?(l=1,h=F(s),d=S(k(s))):l=2:k(o)!=null?(l=0,f=F(o),c=S(k(o))):O(s)?l=2:k(s)!=null?(l=1,h=F(s),d=S(k(s))):l=2,l){case 0:if(c instanceof R){const p=c;e=r,t=X([z(p),Fe(I(p),void 0,G(p),0)],f),n=s;continue e}else{e=r,t=X([void 0,Ie(I(c))],f),n=s;continue e}case 1:if(d instanceof R){const p=d;e=r,t=o,n=X([z(p),Fe(I(p),void 0,G(p),0)],h);continue e}else{e=r,t=o,n=X([void 0,Ie(I(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(u instanceof R){const a=u;if(z(a)==null){const l=r.Compare(I(i),I(a))|0;if(l!==0)return l|0;e=r,t=Te(void 0,F(o)),n=Te(G(a),F(s));continue e}else{let l,f,c,h,d;switch(O(o)?O(s)?l=2:k(s)!=null?(l=1,h=F(s),d=S(k(s))):l=2:k(o)!=null?(l=0,f=F(o),c=S(k(o))):O(s)?l=2:k(s)!=null?(l=1,h=F(s),d=S(k(s))):l=2,l){case 0:if(c instanceof R){const p=c;e=r,t=X([z(p),Fe(I(p),void 0,G(p),0)],f),n=s;continue e}else{e=r,t=X([void 0,Ie(I(c))],f),n=s;continue e}case 1:if(d instanceof R){const p=d;e=r,t=o,n=X([z(p),Fe(I(p),void 0,G(p),0)],h);continue e}else{e=r,t=o,n=X([void 0,Ie(I(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const a=r.Compare(I(i),I(u))|0;if(a!==0)return a|0;e=r,t=F(o),n=F(s);continue e}}else{S(k(s));let i,u,a,l,f;switch(O(o)?O(s)?i=2:k(s)!=null?(i=1,l=F(s),f=S(k(s))):i=2:k(o)!=null?(i=0,u=F(o),a=S(k(o))):O(s)?i=2:k(s)!=null?(i=1,l=F(s),f=S(k(s))):i=2,i){case 0:if(a instanceof R){const c=a;e=r,t=X([z(c),Fe(I(c),void 0,G(c),0)],u),n=s;continue e}else{e=r,t=X([void 0,Ie(I(a))],u),n=s;continue e}case 1:if(f instanceof R){const c=f;e=r,t=o,n=X([z(c),Fe(I(c),void 0,G(c),0)],l);continue e}else{e=r,t=o,n=X([void 0,Ie(I(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(k(o)!=null){S(k(o));let i,u,a,l,f;switch(O(o)?O(s)?i=2:k(s)!=null?(i=1,l=F(s),f=S(k(s))):i=2:k(o)!=null?(i=0,u=F(o),a=S(k(o))):O(s)?i=2:k(s)!=null?(i=1,l=F(s),f=S(k(s))):i=2,i){case 0:if(a instanceof R){const c=a;e=r,t=X([z(c),Fe(I(c),void 0,G(c),0)],u),n=s;continue e}else{e=r,t=X([void 0,Ie(I(a))],u),n=s;continue e}case 1:if(f instanceof R){const c=f;e=r,t=o,n=X([z(c),Fe(I(c),void 0,G(c),0)],l);continue e}else{e=r,t=o,n=X([void 0,Ie(I(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=F(o),n=F(s);continue e}}}function pa(e,t,n){return t==null?n==null?0:-1:n==null?1:Fd(e,se(t),se(n))|0}function Dd(e,t,n){let r=n;ca(o=>{Ue(t,r,o),r=r+1|0},e)}function Od(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){e=r,t=nn(r,s["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=s;continue e}else return o}}function Pd(e,t){return hr((n,r)=>nn(e,r,n),void 0,t)}function Rd(e,t){return $t((n,r)=>nn(e,r,n),void 0,t)}function ma(e,t){if(Ke(t))return Pd(e,t);if(t instanceof Ee)return Rd(e,t);{const n=q(t);try{return Od(e,void 0,n)}finally{L(n)}}}class jo{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Hd(this)|0}Equals(t){let n;const r=this;return t instanceof jo&&(n=t,pa(rn(r),qe(r),qe(n))===0)}toString(){return"set ["+M("; ",he(n=>ve(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return pa(rn(n),qe(n),qe(t))|0}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return la(rn(n),t,qe(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Dd(qe(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return zo(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return zo(this)|0}GetEnumerator(){return ha(qe(this))}[Symbol.iterator](){return mn(q(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ha(qe(this))}get size(){return zo(this)|0}add(t){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(t){throw new Error("Set cannot be mutated")}has(t){return _a(this,t)}keys(){return he(n=>n,this)}values(){return he(n=>n,this)}entries(){return he(n=>[n,n],this)}forEach(t,n){const r=this;Nt(o=>{t(o,o,r)},r)}}function Ar(e,t){return new jo(e,t)}function rn(e){return e.comparer}function qe(e){return e.tree}function Vd(e){return Ar(e,void 0)}function Ld(e,t){return Ar(rn(e),nn(rn(e),t,qe(e)))}function zo(e){return Md(qe(e))}function _a(e,t){return la(rn(e),t,qe(e))}function Hd(e){let t=0;const n=q(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+Xe(r)+631|0}}finally{L(n)}return Math.abs(t)|0}function Wo(e,t){return _a(t,e)}function Bd(e,t){return Ld(t,e)}function Gd(e){return Vd(e)}function Ud(e,t){return Ar(t,ma(t,e))}function jd(e,t){return Ar(t,ma(t,e))}function Ln(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
19
+ `:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
20
+ `:" ")}}function zd(e,t){const n=t.tag===2?Ln(t.fields[0],t.fields[1],!0):t.tag===1?Ln(t.fields[0],t.fields[1],!1)+`
21
+ Reason: `+t.fields[2]:t.tag===3?Ln(t.fields[0],t.fields[1],!0):t.tag===4?Ln(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
22
+ `+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
23
+
24
+ `+M(`
25
+
26
+ `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Ln(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function wa(e,t,n){const r=t(e,n);if(r.tag===1){const o=r.fields[0];return new $(1,[zd(o[0],o[1])])}else return new $(0,[r.fields[0]])}function qo(e,t){try{return wa("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new $(1,["Given an invalid JSON: "+n.message]);throw n}}function ga(e,t){return typeof t=="string"?new $(0,[t]):new $(1,[[e,new x(0,["a string",t])]])}function Wd(e,t){if(typeof t=="string"){const n=t;return n.length===1?new $(0,[n[0]]):new $(1,[[e,new x(0,["a single character string",t])]])}else return new $(1,[[e,new x(0,["a char",t])]])}function qd(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[R$(t,new me(()=>r,o=>{r=o})),r],n[0]?new $(0,[n[1]]):new $(1,[[e,new x(0,["a guid",t])]])}else return new $(1,[[e,new x(0,["a guid",t])]])}function Zd(e,t){return t==null?new $(0,[void 0]):new $(1,[[e,new x(0,["null",t])]])}const ya=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-128<=o&&o<=127?new $(0,[(o+128&255)-128]):new $(1,[[n,new x(1,["a sbyte",o,"Value was either too large or too small for a sbyte"])]]):new $(1,[[n,new x(1,["a sbyte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Ft(r,511,!1,8,new me(()=>s,i=>{s=i|0})),s],o[0]?new $(0,[o[1]]):new $(1,[[n,new x(0,["a sbyte",r])]])}else return new $(1,[[n,new x(0,["a sbyte",r])]])},ba=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=255?new $(0,[o&255]):new $(1,[[n,new x(1,["a byte",o,"Value was either too large or too small for a byte"])]]):new $(1,[[n,new x(1,["a byte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Ft(r,511,!0,8,new me(()=>s,i=>{s=i})),s],o[0]?new $(0,[o[1]]):new $(1,[[n,new x(0,["a byte",r])]])}else return new $(1,[[n,new x(0,["a byte",r])]])},Sa=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-32768<=o&&o<=32767?new $(0,[(o+32768&65535)-32768]):new $(1,[[n,new x(1,["an int16",o,"Value was either too large or too small for an int16"])]]):new $(1,[[n,new x(1,["an int16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Ft(r,511,!1,16,new me(()=>s,i=>{s=i|0})),s],o[0]?new $(0,[o[1]]):new $(1,[[n,new x(0,["an int16",r])]])}else return new $(1,[[n,new x(0,["an int16",r])]])},Ca=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=65535?new $(0,[o&65535]):new $(1,[[n,new x(1,["an uint16",o,"Value was either too large or too small for an uint16"])]]):new $(1,[[n,new x(1,["an uint16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Ft(r,511,!0,16,new me(()=>s,i=>{s=i})),s],o[0]?new $(0,[o[1]]):new $(1,[[n,new x(0,["an uint16",r])]])}else return new $(1,[[n,new x(0,["an uint16",r])]])},va=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-2147483648<=o&&o<=2147483647?new $(0,[~~o]):new $(1,[[n,new x(1,["an int",o,"Value was either too large or too small for an int"])]]):new $(1,[[n,new x(1,["an int",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Ft(r,511,!1,32,new me(()=>s,i=>{s=i|0})),s],o[0]?new $(0,[o[1]]):new $(1,[[n,new x(0,["an int",r])]])}else return new $(1,[[n,new x(0,["an int",r])]])},Ea=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=4294967295?new $(0,[o>>>0]):new $(1,[[n,new x(1,["an uint32",o,"Value was either too large or too small for an uint32"])]]):new $(1,[[n,new x(1,["an uint32",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Ft(r,511,!0,32,new me(()=>s,i=>{s=i})),s],o[0]?new $(0,[o[1]]):new $(1,[[n,new x(0,["an uint32",r])]])}else return new $(1,[[n,new x(0,["an uint32",r])]])};function Jd(e,t){return typeof t=="boolean"?new $(0,[t]):new $(1,[[e,new x(0,["a boolean",t])]])}function Yd(e,t){return typeof t=="number"?new $(0,[t]):new $(1,[[e,new x(0,["a float",t])]])}function Kd(e,t){return typeof t=="number"?new $(0,[t]):new $(1,[[e,new x(0,["a float32",t])]])}function Xd(e,t){if(typeof t=="string"){let n,r=pi();return n=[_i(t,new me(()=>r,o=>{r=o})),r],n[0]?new $(0,[Cc(n[1])]):new $(1,[[e,new x(0,["a datetime",t])]])}else return new $(1,[[e,new x(0,["a datetime",t])]])}function Qd(e,t){if(typeof t=="string"){let n,r=vd();return n=[xd(t,new me(()=>r,o=>{r=o})),r],n[0]?new $(0,[n[1]]):new $(1,[[e,new x(0,["a datetimeoffset",t])]])}else return new $(1,[[e,new x(0,["a datetime",t])]])}function eh(e,t){if(typeof t=="string"){let n,r=0;return n=[dd(t,new me(()=>r,o=>{r=o})),r],n[0]?new $(0,[n[1]]):new $(1,[[e,new x(0,["a timespan",t])]])}else return new $(1,[[e,new x(0,["a timespan",t])]])}function xa(e,t,n,r){let o;const s=n+".["+Be(e)+"]";if(Array.isArray(r)){const i=r;return e<i.length?t(s,ee(e,i)):new $(1,[[s,new x(5,["a longer array. Need index `"+Be(e)+"` but there are only `"+(o=i.length,Be(o))+"` entries",r])]])}else return new $(1,[[s,new x(0,["an array",r])]])}function th(e,t,n){return n==null?new $(0,[void 0]):ze($e,e(t,n))}function ka(e,t,n){if(Array.isArray(n)){let r=-1;return ze(pr,hr((o,s)=>{if(r=r+1|0,o.tag===0){const i=e(t+".["+Be(r)+"]",s);return i.tag===0?new $(0,[Te(i.fields[0],o.fields[0])]):new $(1,[i.fields[0]])}else return o},new $(0,[K()]),n))}else return new $(1,[[t,new x(0,["a list",n])]])}function nh(e,t,n){if(Array.isArray(n)){let r=-1;return ze(Yf,hr((o,s)=>{if(r=r+1|0,o.tag===0){const i=e(t+".["+Be(r)+"]",s);return i.tag===0?new $(0,[b([i.fields[0]],o.fields[0])]):new $(1,[i.fields[0]])}else return o},new $(0,[[]]),n))}else return new $(1,[[t,new x(0,["a seq",n])]])}function Ma(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return hr((s,i)=>{if(r=r+1|0,s.tag===0){const u=s.fields[0],a=e(t+".["+Be(r)+"]",i);return a.tag===0?(Ue(u,r,a.fields[0]),new $(0,[u])):new $(1,[a.fields[0]])}else return s},new $(0,[dr(new Array(o.length),0,o.length,null)]),o)}else return new $(1,[[t,new x(0,["an array",n])]])}function rh(e,t,n){return((o,s)=>{e:for(;;){const i=o,u=s;if(O(i))return new $(1,[[t,new x(7,[u])]]);{const a=wa(t,A(k(i)),n);if(a.tag===1){o=F(i),s=_r(u,se(a.fields[0]));continue e}else return new $(0,[a.fields[0]])}}})(e,K())}function oh(e,t,n){return new $(0,[e])}function Ta(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new $(1,[o.fields[0]])}function sh(e,t,n,r){const o=t(n,r);return o.tag===1?new $(1,[o.fields[0]]):new $(0,[e(o.fields[0])])}function ih(e,t){let n;const r=e;return n=o=>s=>xa(0,r,o,s),o=>s=>Ta(Bt(i=>{let u;const a=t;return u=l=>f=>xa(1,a,l,f),l=>f=>Ta((c,h,d)=>oh([i,c]),A(u),l,f)}),A(n),o,s)}function uh(e){return p$(e,{Compare:Pe})}function ah(e){return jd(e,{Compare:Pe})}function lh(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?eu((r,o)=>{const s=r[0];return o.tag===0?ze(i=>Te(i,o.fields[0]),r[1](t+"."+s)(n[s])):o},e,new $(0,[K()])):new $(1,[[t,new x(0,["an object",n])]])}function ch(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Dn((o,s)=>{if(o.tag===0){const i=e(n,s);if(i.tag===0){const u=t(n+"."+s,r[s]);return u.tag===0?new $(0,[Te([i.fields[0],u.fields[0]],o.fields[0])]):new $(1,[u.fields[0]])}else return new $(1,[i.fields[0]])}else return o},new $(0,[K()]),Object.keys(r)):new $(1,[[n,new x(0,["an object",r])]])}function Na(e,t,n,r){let o;const s=t.length+e|0;if(s!==r.length)return new $(1,[[n,new x(6,[(o=r.length|0,et(Ve("Expected array of length %i but got %i"))(s)(o))])]]);{let i=new $(0,[K()]);for(let u=e;u<=r.length-1;u++)if(i.tag===0){const a=i.fields[0],l=et(Ve("%s[%i]"))(n)(u),f=ee(u-e,t),c=ee(u,r);i=ze(h=>Te(h,a),f(l)(c))}return ze(pr,i)}}function Aa(e,t,n,r,o,s){const i=_f(u=>zt(u)===r,fr(n));if(i!=null){const u=i,a=Jt(l=>Ze(e,t,!1,l[1]),Gi(u));return ze(l=>So(u,An(l)),a.length===0&&s.length<=1?new $(0,[K()]):Na(1,a,o,s))}else return new $(1,[[o,new x(6,["Cannot find case "+r+" in "+W(n)])]])}function Ia(e,t,n,r){let o;const s=new me(ge());let i;const u=W(r);i=u===""?e:Su(u,s,e);let a;if(Bi(r)){const l=Jt(f=>[Yu(t,zt(f)),Ze(i,t,!1,f[1])],kn(r));a=f=>c=>ze(h=>Xc(r,An(h)),lh(l,f,c))}else if(Hi(r))a=l=>f=>{if(typeof f=="string")return Aa(i,t,r,f,l,[]);if(Array.isArray(f)){const c=f;return Tu(h=>Aa(i,t,r,h,l,c),ga(l+"[0]",ee(0,c)))}else return new $(1,[[l,new x(0,["a string or array",f])]])};else if(n)a=l=>f=>new $(1,[[l,new x(2,["an extra coder for "+W(r),f])]]);else throw new Error((o=W(r),et(Ve(`Cannot generate auto decoder for %s. Please pass an extra decoder.
27
+
28
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return s.contents=a,a}function Ze(e,t,n,r){let o,s,i,u;const a=W(r),l=Cu(a,e);if(l==null)if(Oi(r)){const f=Ze(e,t,!1,xn(r));return c=>h=>Ma(A(f),c,h)}else if(yo(r))switch(W(Vi(r))){case"System.SByte":return c=>h=>{const d=r,p=c,m=h,_=ya(p)(m);if(_.tag===1)return new $(1,[_.fields[0]]);{const y=_.fields[0]|0;return Tt(y,Wt(d),{Equals:(v,T)=>v===T,GetHashCode:Ge})?new $(0,[qt(d,y.toString())]):new $(1,[[p,new x(1,[W(d),m,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>h=>{const d=r,p=c,m=h,_=ba(p)(m);if(_.tag===1)return new $(1,[_.fields[0]]);{const y=_.fields[0];return Tt(y,Wt(d),{Equals:(v,T)=>v===T,GetHashCode:Ge})?new $(0,[qt(d,y.toString())]):new $(1,[[p,new x(1,[W(d),m,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>h=>{const d=r,p=c,m=h,_=Sa(p)(m);if(_.tag===1)return new $(1,[_.fields[0]]);{const y=_.fields[0]|0;return Tt(y,Wt(d),{Equals:(v,T)=>v===T,GetHashCode:Ge})?new $(0,[qt(d,jl(y))]):new $(1,[[p,new x(1,[W(d),m,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>h=>{const d=r,p=c,m=h,_=Ca(p)(m);if(_.tag===1)return new $(1,[_.fields[0]]);{const y=_.fields[0];return Tt(y,Wt(d),{Equals:(v,T)=>v===T,GetHashCode:Ge})?new $(0,[qt(d,y.toString())]):new $(1,[[p,new x(1,[W(d),m,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>h=>{const d=r,p=c,m=h,_=va(p)(m);if(_.tag===1)return new $(1,[_.fields[0]]);{const y=_.fields[0]|0;return Tt(y,Wt(d),{Equals:(v,T)=>v===T,GetHashCode:Ge})?new $(0,[qt(d,Be(y))]):new $(1,[[p,new x(1,[W(d),m,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>h=>{const d=r,p=c,m=h,_=Ea(p)(m);if(_.tag===1)return new $(1,[_.fields[0]]);{const y=_.fields[0];return Tt(y,Wt(d),{Equals:(v,T)=>v===T,GetHashCode:Ge})?new $(0,[qt(d,y.toString())]):new $(1,[[p,new x(1,[W(d),m,"Unkown value provided for the enum"])]])}};default:{const c=W(r),h=Ei(Ve(`Cannot generate auto decoder for %s.
29
+ Thoth.Json.Net only support the following enum types:
30
+ - sbyte
31
+ - byte
32
+ - int16
33
+ - uint16
34
+ - int
35
+ - uint32
36
+ If you can't use one of these types, please pass an extra decoder.
37
+ `))(c);return d=>h(d)}}else if(Pi(r))if(bo(r)){const f=Jt(c=>Ze(e,t,!1,c),Li(r));return c=>h=>Array.isArray(h)?ze(d=>Qc(An(d)),Na(0,f,c,h)):new $(1,[[c,new x(0,["an array",h])]])}else switch(W(Ri(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=Ze(e,t,!0,ee(0,ke(r))),c=>h=>th(A(o),c,h);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return s=Ze(e,t,!1,ee(0,ke(r))),c=>h=>ka(A(s),c,h);case"System.Collections.Generic.IEnumerable`1[System.Object]":return i=Ze(e,t,!1,ee(0,ke(r))),c=>h=>nh(A(i),c,h);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=Ze(e,t,!1,ee(0,ke(r))),h=Ze(e,t,!1,ee(1,ke(r)));let d;const p=E([m=>_=>ch(A(c),A(h),m,_),(u=ih(A(c),A(h)),m=>_=>ka(A(u),m,_))]);return d=m=>_=>rh(p,m,_),m=>_=>sh(uh,A(d),m,_)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=Ze(e,t,!1,ee(0,ke(r)));return h=>d=>{const p=Ma(A(c),h,d);return p.tag===0?new $(0,[ah(p.fields[0])]):new $(1,[p.fields[0]])}}default:return Ia(e,t,n,r)}else switch(a){case"System.Boolean":return f=>c=>Jd(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>Zd(f,c);case"System.String":return f=>c=>ga(f,c);case"System.Char":return f=>c=>Wd(f,c);case"System.SByte":return ya;case"System.Byte":return ba;case"System.Int16":return Sa;case"System.UInt16":return Ca;case"System.Int32":return va;case"System.UInt32":return Ea;case"System.Double":return f=>c=>Yd(f,c);case"System.Single":return f=>c=>Kd(f,c);case"System.DateTime":return f=>c=>Xd(f,c);case"System.DateTimeOffset":return f=>c=>Qd(f,c);case"System.TimeSpan":return f=>c=>eh(f,c);case"System.Guid":return f=>c=>qd(f,c);case"System.Object":return f=>c=>new $(0,[c]);default:return Ia(e,t,n,r)}else{const f=l;return c=>h=>f.contents(c)(h)}}function fh(e){return Io({Compare:nr})}function Zo(e,t,n){const r=ye(t,new Dt(0,[]));return Ze(fh(),r,!1,e)}class Fa extends ne{constructor(t,n,r,o,s,i,u){super(),this.Name=t,this.Title=n,this.Gender=r,this.Email=o,this.MobilePhone=s,this.DateOfBirth=i,this.Address=u}}function Da(){return En("Dto.Api.Backend.Common.FullProfileDto",[],Fa,()=>[["Name",Ru()],["Title",Y],["Gender",Y],["Email",Y],["MobilePhone",Y],["DateOfBirth",Y],["Address",Ro()]])}function $h(e){return Xu(0,ea(Di(Lu()),new Dt(1,[]),void 0,void 0)(e))}function dh(e){return qo(A(Zo(Di(Lu()),new Dt(1,[]))),e)}const P=si,hh=(e,t)=>{vt(()=>{const n=e();return()=>{n.Dispose()}},t)},ph=e=>{Et(()=>{const t=e();return()=>{t.Dispose()}})};function mh(e){return{Dispose(){Nt(t=>{L(t)},$r(e))}}}function Oa(e){return{Dispose(){e()}}}function Jo(e){const t=P.useRef(!1);P.useEffect(()=>{t.current||(t.current=!0,e())},[])}function _h(e){const t=P.useRef(void 0),n=P.useRef(!1),r=P.useRef(!1);n.current&&(r.current=!0),hh(()=>mh(n.current?void 0:(n.current=!0,t.current=$e(e()),r.current?t.current:void 0)),[])}function wh(e){const t=P.useRef(e),n=P.useCallback(r=>t.current(r),[]);return ph(r=>(t.current=e,Oa(()=>{}))),n}class Ir extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","Failure","Info"]}}function gh(e){switch(e.tag){case 0:return"text-green-700";case 2:return"text-blue-700";default:return"text-red-700"}}function yh(e){switch(e.tag){case 0:return"bg-green-50";case 2:return"bg-blue-50";default:return"bg-red-50"}}function bh(e){switch(e.tag){case 0:return E(["bg-green-50","text-green-500","hover:bg-green-100","focus:ring-offset-green-50","focus:ring-green-600"]);case 2:return E(["bg-blue-50","text-blue-500","hover:bg-blue-100","focus:ring-offset-blue-50","focus:ring-blue-600"]);default:return E(["bg-red-50","text-red-500","hover:bg-red-100","focus:ring-offset-red-50","focus:ring-red-600"])}}function Sh(e){switch(e.tag){case 0:return e.fields[0];case 2:return e.fields[0];default:return e.fields[0]}}function Ch(e,t){vo(N.Delay(()=>N.Bind(cf(5e3),()=>(e(),N.Zero()))),t)}function Pa(e){let t,n,r,o,s,i;const u=e.hideAlert,a=e.alert,l=qi();Jo(()=>{Ch(u,l)});const f=C("svg",B(E([["className",M(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(t=se(C("path",B(E([["fill-rule","evenodd"],(n="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",["d",n]),["clipRule","evenodd"]])))),["children",P.Children.toArray(Array.from(t))])])));return C("div",B(E([["className",M(" ",["rounded-md","p-4","my-4",yh(a)])],(r=[C("div",B(E([["className",M(" ",["flex"])],(o=[C("p",{className:M(" ",["text-sm",gh(a)]),children:Sh(a)}),C("div",B(E([["className",M(" ",["ml-auto"])],(s=[C("div",B(E([["className",M(" ",["-mx-1.5 -my-1.5"])],(i=[C("button",{type:"button",className:M(" ",te(w(()=>b(g("inline-flex"),w(()=>b(g("rounded-md"),w(()=>b(g("p-1.5"),w(()=>b(g("focus:outline-none"),w(()=>b(g("focus:ring-2"),w(()=>b(g("focus:ring-offset-2"),w(()=>bh(a)))))))))))))))),children:P.Children.toArray([f]),onClick:c=>{Zi(l),u()}})],["children",P.Children.toArray(Array.from(i))])])))],["children",P.Children.toArray(Array.from(s))])])))],["children",P.Children.toArray(Array.from(o))])])))],["children",P.Children.toArray(Array.from(r))])])))}class vh extends ne{constructor(t,n,r,o,s,i,u){super(),this.Name=t,this.Email=n,this.MobilePhone=r,this.Title=o,this.Gender=s,this.DateOfBirth=i,this.Address=u}}function Eh(){return En("Dto.Api.Backend.Read.PartialProfileDto",[],vh,()=>[["Name",Ru()],["Email",Y],["MobilePhone",ft(Y)],["Title",ft(Y)],["Gender",ft(Y)],["DateOfBirth",ft(Y)],["Address",ft(Ro())]])}class xh extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Full","Partial"]}}function kh(){return cr("Dto.Api.Backend.Read.ProfileDto",[],xh,()=>[[["Item",Da()]],[["Item",Eh()]]])}function Mh(e){return qo(A(Zo(kh(),new Dt(1,[]))),e)}class Th extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","EmailNotUnique"]}}function Nh(){return cr("Dto.Api.Backend.Read.ProfileUpdateStatus",[],Th,()=>[[],[]])}function Ah(e){return qo(A(Zo(Nh(),new Dt(1,[]))),e)}class Q extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function Ra(e,t){let n;const r=qi();return n=P.useRef(r),_h(()=>Oa(()=>{Zi(n.current)})),wh(o=>{sf(n.current)||vo(N.Delay(()=>N.TryWith(N.Delay(()=>(t(new Q(1,[])),N.Bind(e(o),s=>(t(new Q(2,[s])),N.Zero())))),s=>(t(new Q(3,[s])),N.Zero()))),n.current)})}function Va(e){return Nu(e)}function Ih(e){return gn(e,"yyyy-MM-dd")}function La(){return E([[new Qt(0,[]),"Male"],[new Qt(1,[]),"Female"],[new Qt(2,[]),"Intersex"],[new Qt(3,[]),"Transgender"],[new Qt(4,[]),"Prefer not to answer"],[new Qt(5,[]),"Other"]])}function Yo(e){return Fn(t=>{if(t[1]===e)return t[0]},La())}class Ot extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Mr","Miss","Mrs","Ms","Mx","Dr","Prof"]}}function Fh(e){return ve(e)}function Ha(){return E([[new Ot(0,[]),"Mr"],[new Ot(1,[]),"Miss"],[new Ot(2,[]),"Mrs"],[new Ot(3,[]),"Ms"],[new Ot(4,[]),"Mx"],[new Ot(5,[]),"Dr"],[new Ot(6,[]),"Prof"]])}function Ko(e){return Fn(t=>{if(t[1]===e)return t[0]},Ha())}class pt extends ne{constructor(t,n,r,o,s,i){super(),this.FirstName=t,this.MiddleName=n,this.LastName=r,this.Title=o,this.DateOfBirth=s,this.Gender=i}}const Dh=new pt("","","",void 0,void 0,void 0);class rt extends ne{constructor(t,n,r,o,s,i,u){super(),this.Email=t,this.MobileNumber=n,this.StreetAddress=r,this.Suburb=o,this.State=s,this.Postcode=i,this.NonUniqueEmails=u}}const Oh=new rt("","","","",void 0,"",K());class Hn extends ne{constructor(t,n){super(),this.Identification=t,this.ContactDetails=n}}const Ph=new Hn(Dh,Oh);function Rh(e){let t,n;const r=e.Identification.Gender;if(n=r==null?new $(1,["Gender missing"]):new $(0,[r]),t=n.tag===1?new $(1,[n.fields[0]]):new $(0,[V$(n.fields[0])]),t.tag===1)return new $(1,[t.fields[0]]);{let o,s;const i=e.ContactDetails.State;if(s=i==null?new $(1,["State missing"]):new $(0,[i]),o=s.tag===1?new $(1,[s.fields[0]]):new $(0,[Vo(s.fields[0])]),o.tag===1)return new $(1,[o.fields[0]]);{let u,a;const l=e.Identification.Title;if(a=l==null?new $(1,["Title missing"]):new $(0,[l]),u=a.tag===1?new $(1,[a.fields[0]]):new $(0,[Fh(a.fields[0])]),u.tag===1)return new $(1,[u.fields[0]]);{let f,c;const h=e.Identification.DateOfBirth;return c=h==null?new $(1,["DateOfBirth missing"]):new $(0,[h]),f=c.tag===1?new $(1,[c.fields[0]]):new $(0,[Ih(c.fields[0])]),f.tag===1?new $(1,[f.fields[0]]):new $(0,[new Fa(new Pu(e.Identification.FirstName.trim(),Er(e.Identification.MiddleName.trim()),e.Identification.LastName.trim()),u.fields[0],t.fields[0],e.ContactDetails.Email.trim(),Bu(e.ContactDetails.MobileNumber),f.fields[0],new Po(e.ContactDetails.StreetAddress.trim(),void 0,e.ContactDetails.Suburb.trim(),o.fields[0],e.ContactDetails.Postcode.trim(),"AU"))])}}}}function Vh(e){let t,n,r,o,s,i,u;if(e.tag===1){const a=e.fields[0];return new Hn(new pt(a.Name.FirstName,ye(a.Name.MiddleName,""),a.Name.LastName,(t=a.Title,t==null?void 0:Ko(t)),(n=a.DateOfBirth,n==null?void 0:Va(n)),(r=a.Gender,r==null?void 0:Yo(r))),new rt(a.Email,Ho(ye(a.MobilePhone,"")),ye((o=a.Address,o==null?void 0:o.AddressLine1),""),ye((s=a.Address,s==null?void 0:s.City),""),(i=a.Address,i==null?void 0:On(i.State)),ye((u=a.Address,u==null?void 0:u.Postcode),""),K()))}else{const a=e.fields[0];return new Hn(new pt(a.Name.FirstName,ye(a.Name.MiddleName,""),a.Name.LastName,Ko(a.Title),Va(a.DateOfBirth),Yo(a.Gender)),new rt(a.Email,Ho(a.MobilePhone),a.Address.AddressLine1,a.Address.City,On(a.Address.State),a.Address.Postcode,K()))}}let De=class extends ne{constructor(t,n,r,o){super(),this.FormModel=t,this.CurrentAlert=n,this.ExistingProfile=r,this.SaveStatus=o}},re=class extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetIdentification","SetContactDetails","GetProfileCallback","SaveStarted","SaveFinished","ShowAlert","HideAlert"]}};class Lh{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function Hh(e,t){t.Subscribe(new Lh(e))}class Bh{constructor(){this.delegates=[]}_add(t){this.delegates.push(t)}_remove(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}get Publish(){return Uh(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const o=n===void 0?t:(r=t,n);this.delegates.forEach(s=>{s(r,o)})}}class Gh extends Bh{}function Uh(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(o,s)=>n.OnNext(s);return e(r),{Dispose(){t(r)}}}}}class jh{constructor(t){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=t&&t>0?t:100,this.AutoReset=!0,this._elapsed=new Gh}Elapsed(){return this._elapsed.Publish}get Enabled(){return this._enabled}set Enabled(t){!this._isDisposed&&this._enabled!==t&&(this._enabled=t,this._enabled?this.AutoReset?this._intervalId=setInterval(()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)},this.Interval):this._timeoutId=setTimeout(()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)},this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}function zh(e,t){console.error($e(e),t)}function Wh(e,t){let n,r=new jh(e);r.AutoReset=!1,n=r,Hh(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Ba(e,t,n){mr(r=>{try{r(t)}catch(o){e(o)}},n)}function ue(){return K()}function Ga(e,t,n,r,o){return se(s=>{e(N.Delay(()=>N.Bind(af(t(n)),i=>{const u=i;return s(u.tag===1?o(u.fields[0]):r(u.fields[0])),N.Zero()})))})}function Ua(e){Wh(1,t=>{vo(e)})}function qh(e){return Xu(0,ea(Da(),new Dt(1,[]),void 0,void 0)(e))}function ja(e){return`${e}/profiles/backend/profiles`}function Zh(e,t){const n=N.Delay(()=>{const r=xr(t,vr(new Mn(0,[]),Cr(ja(e))));return N.Bind(r,o=>{const s=o;if(s.tag===1)return N.Return(new $(1,[s.fields[0]]));{const i=s.fields[0];if(i.statusCode===200){const u=Mh(i.responseText);return N.Return(u)}else return N.Return(new $(1,[""]))}})});return N.Bind(n,r=>{let o;const s=r;return o=s.tag===1?new $(1,[new nt(1,[])]):new $(0,[s.fields[0]]),N.Return(o)})}function Jh(e,t,n){const r=N.Delay(()=>{let o;const s=xr(t,(o=xu(new Eo(1,[qh(n)]),vr(new Mn(2,[]),Cr(ja(e)))),Fo(vu("application/json"),o)));return N.Bind(s,i=>{const u=i;if(u.tag===1)return N.Return(new $(1,[u.fields[0]]));{const a=u.fields[0];if(a.statusCode===200){const l=Ah(a.responseText);return N.Return(l)}else return N.Return(new $(1,[""]))}})});return N.Bind(r,o=>{let s;const i=o;return s=i.tag===1?new $(1,[new nt(0,[])]):new $(0,[i.fields[0]]),N.Return(s)})}function Yh(){return[new De(Ph,void 0,new Q(0,[]),new Q(0,[])),ue()]}function Kh(e,t){let n;switch(e.tag){case 1:return[new De(new Hn(t.FormModel.Identification,e.fields[0](t.FormModel.ContactDetails)),t.CurrentAlert,t.ExistingProfile,t.SaveStatus),ue()];case 2:{let r,o;switch(e.fields[0].tag){case 3:{r=1;break}case 0:{r=2;break}case 1:{r=3;break}default:e.fields[0].fields[0].tag===1?r=1:(r=0,o=e.fields[0].fields[0].fields[0])}switch(r){case 0:return[new De(Vh(o),t.CurrentAlert,new Q(2,[o]),t.SaveStatus),ue()];case 1:return[new De(t.FormModel,t.CurrentAlert,new Q(3,[new Error(en(new nt(1,[])))]),t.SaveStatus),ue()];case 2:return[new De(t.FormModel,t.CurrentAlert,new Q(0,[]),t.SaveStatus),ue()];default:return[new De(t.FormModel,t.CurrentAlert,new Q(1,[]),t.SaveStatus),ue()]}}case 3:{const r=new De(t.FormModel,t.CurrentAlert,t.ExistingProfile,new Q(1,[])),o=Rh(t.FormModel);return o.tag===1?[r,se(s=>{s(new re(4,[new $(1,[new nt(0,[])])]))})]:[r,Ga(s=>{Ua(s)},s=>Jh(e.fields[0],e.fields[1],s),o.fields[0],s=>new re(4,[ze(i=>[i,e.fields[2]],s)]),s=>new re(4,[new $(1,[new nt(0,[])])]))]}case 4:return e.fields[0].tag===1?[new De(t.FormModel,t.CurrentAlert,t.ExistingProfile,new Q(3,[new Error(en(e.fields[0].fields[0]))])),(n=new re(5,[new Ir(1,[en(e.fields[0].fields[0])])]),se(r=>{r(n)}))]:e.fields[0].fields[0][0].tag===1?[new De(t.FormModel,t.CurrentAlert,t.ExistingProfile,new Q(2,[void 0])),se(r=>{r(new re(1,[o=>new rt(o.Email,o.MobileNumber,o.StreetAddress,o.Suburb,o.State,o.Postcode,_r(o.NonUniqueEmails,se(t.FormModel.ContactDetails.Email)))]))})]:(e.fields[0].fields[0][1](),[new De(t.FormModel,t.CurrentAlert,t.ExistingProfile,new Q(2,[void 0])),ue()]);case 5:return[new De(t.FormModel,e.fields[0],t.ExistingProfile,t.SaveStatus),ue()];case 6:return[new De(t.FormModel,void 0,t.ExistingProfile,t.SaveStatus),ue()];default:return[new De(new Hn(e.fields[0](t.FormModel.Identification),t.FormModel.ContactDetails),t.CurrentAlert,t.ExistingProfile,t.SaveStatus),ue()]}}function Xh(){return K()}function Xo(e){return M("/",e)}function Qh(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Xo(t),n])}function za(e,t,n){try{L(n)}catch(r){e(["Error stopping subscription: "+Xo(t),r])}}function e0(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+Xo(n),o]);return}}function t0(e,t){mr(n=>{za(e,n[0],n[1])},t)}function Wa(e,t,n,r,o,s){return mr(i=>{Qh(e,i)},n),mr(i=>{za(e,i[0],i[1])},r),_r(o,ou(i=>e0(e,t,i[0],i[1]),s))}function n0(){return[K(),Gd({Compare:Pe}),K()]}function r0(e,t,n,r,o){return Wo(e,r)?[Te(e,n),r,o]:[n,Bd(e,r),Te([e,t],o)]}function o0(e){return Cf((t,n)=>r0(t[0],t[1],n[0],n[1],n[2]),e,n0())}const s0=K();function qa(e,t){const n=Ud(In(i=>i[0],e),{Compare:Pe}),r=o0(t),o=r[1],s=r[0];if(n.Equals(o))return[s,K(),e,K()];{const i=Mf(u=>Wo(u[0],o),e);return[s,i[1],i[0],kf(u=>!Wo(u[0],n),r[2])]}}function i0(e,t,n,r){const o=Pe(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const s=o>0;return i=>{const u=Pe(i,t)|0;return s&&u<=0||!s&&u>=0?[i,r(i,e)]:void 0}}function u0(e,t,n,r,o){const s=i0(t,n,r,o);return w(()=>Uf(s,e))}function a0(e,t,n){return u0(e,t,n,0,(r,o)=>r+o)}class on extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class l0{constructor(t){this.state=new on(0,[dr(new Array(Qi(t,10)),0,Qi(t,10),null),0])}}function c0(e){return new l0(e)}function Za(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,o=t.fields[0],s=(r+1)%o.length|0;return s===n?e.state=new on(0,[o,n]):e.state=new on(1,[o,n,s]),$e(ee(r,o))}else return}function f0(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,o=n.fields[2]|0,s=n.fields[0];Ue(s,r,t);const i=(r+1)%s.length|0;i===o?e.state=new on(1,[$0(e,o,s),s.length,0]):e.state=new on(1,[s,i,o])}else{const r=n.fields[1]|0,o=n.fields[0];Ue(o,r,t);const s=(r+1)%o.length|0;e.state=new on(1,[o,s,r])}}function $0(e,t,n){return Array.from(w(()=>b(Kf(t,n),w(()=>b(Xf(t,n),w(()=>No(r=>g(ge()),a0(0,1,n.length))))))))}class Qo extends ne{constructor(t,n,r,o,s,i,u){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=s,this.onError=i,this.termination=u}}function Ja(e,t,n){return new Qo(e,t,r=>Xh(),n,A(r=>{const o=Re(n)(r);return s=>{o(s)}}),r=>{zh(r[0],r[1])},[r=>!1,r=>{}])}function d0(e,t){return new Qo(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function h0(e){return e.init}function p0(e,t,n,r,o,s,i){const u=Re(e)(i.init),a=J(t)(Re(i.update)),l=J(n)(Re(i.view)),f=J(r)(Re(i.setState));return new Qo(u,A(a),Re(o)(i.subscribe),A(l),A(f),i.onError,s(i.termination))}function m0(e,t,n){let r;const o=n.init(t),s=o[0],i=n.subscribe(s),u=n.termination,a=c0(10);let l=!1,f=s,c=s0,h=!1;const d=_=>{h||(f0(a,_),l||(l=!0,m(),l=!1))},p=Re(e)(d),m=()=>{let _,y=Za(a);for(;!h&&y!=null;){const v=S(y);if(u[0](v))t0(n.onError,c),u[1](f),h=!0;else{const T=n.update(v,f),U=T[0],Oe=n.subscribe(U);n.setState(U,p),Ba(mt=>{n.onError([et(Ve("Error handling the message: %A"))(v),mt])},p,T[1]),f=U,c=(_=qa(c,Oe),Wa(n.onError,p,_[0],_[1],_[2],_[3])),y=Za(a)}}};l=!0,n.setState(s,p),Ba(_=>{n.onError([et(Ve("Error intitializing:")),_])},p,o[1]),c=(r=qa(c,i),Wa(n.onError,p,r[0],r[1],r[2],r[3])),m(),l=!1}function _0(e,t){m0(A(n=>n),e,t)}function w0(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Ya={exports:{}},Ka={};const g0=w0(Pl);/**
38
+ * @license React
39
+ * use-sync-external-store-shim.production.min.js
40
+ *
41
+ * Copyright (c) Facebook, Inc. and its affiliates.
42
+ *
43
+ * This source code is licensed under the MIT license found in the
44
+ * LICENSE file in the root directory of this source tree.
45
+ */var sn=g0;function y0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var b0=typeof Object.is=="function"?Object.is:y0,S0=sn.useState,C0=sn.useEffect,v0=sn.useLayoutEffect,E0=sn.useDebugValue;function x0(e,t){var n=t(),r=S0({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return v0(function(){o.value=n,o.getSnapshot=t,es(o)&&s({inst:o})},[e,n,t]),C0(function(){return es(o)&&s({inst:o}),e(function(){es(o)&&s({inst:o})})},[e]),E0(n),n}function es(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!b0(e,n)}catch{return!0}}function k0(e,t){return t()}var M0=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?k0:x0;Ka.useSyncExternalStore=sn.useSyncExternalStore!==void 0?sn.useSyncExternalStore:M0,Ya.exports=Ka;var T0=Ya.exports;class N0{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),s=[];this.finalDispatch=void 0;let i;const u=h0(o)(this.arg);let a=u[0],l=u[1];i=[[a,f=>{const c=this.finalDispatch;c==null?s.push(f):c(f)},!1,s],l],this.state=i[0],this.cmd=i[1],this.subscribe=f=>{let c=!1;const h=uo(this.state[0]);return _0(this.arg,d0((d,p)=>{const m=this.state;this.finalDispatch=p,this.state=[d,m[1],!0,s],d!==m[0]&&f()},p0((d,p)=>{const m=this.cmd;return this.cmd=ue(),[this.state[0],m]},(d,p,m)=>d(p)(this.state[0]),Bt(d=>d),Bt(d=>d),A(d=>d),d=>[p=>d[0](p)?!0:h&&c,p=>{const m=p;uo(m)?L(m):d[1](p)}],o))),()=>{c=!0}}}}function Xa(e,t,n){return new N0(e,t,n)}function A0(e){return e.state}function I0(e){return e.subscribe}function F0(e,t,n){return pe(e.arg,t)?!pe(e.dependencies,n):!0}function Qa(e,t,n){const r=Ct(()=>Xa(e,t,n)),o=r[0];F0(o,t,n)&&r[1](Xa(e,t,n));const s=T0.useSyncExternalStore(I0(o),()=>A0(o)),i=s[2],u=s[3],a=s[1];return vt(()=>{if(i&&u.length>0){let l=q(u);try{for(;l["System.Collections.IEnumerator.MoveNext"]();){const f=l["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{a(f)})}}finally{L(l)}Xl(u)}},[i,u]),[s[0],a]}function D0(e,t){return w(()=>{const n=new kd([],t);return qf(r=>pd(r,n),e)})}function O0(e,t){return te(D0(e,t))}function el(e){const t=Ct(e);return[t[0],n=>{t[1](n)}]}class oe extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Required","MaxLen","MinLen","Regex","CustomRule"]}}function P0(e){return po(e)?new $(1,["{0} is required"]):new $(0,[void 0])}function R0(e,t){return t.length<e?new $(1,[et(Ve("{0} must be at least %i characters"))(e)]):new $(0,[void 0])}function V0(e,t){return t.length>e?new $(1,[et(Ve("{0} exceeds the max length of %i"))(e)]):new $(0,[void 0])}function L0(e,t,n){return ur(ir(e),n)!=null?new $(0,[void 0]):new $(1,[et(Ve("{0} is not a valid %s"))(t)])}function tl(e,t,n){const r=n.values();return O0(te(w(()=>No(o=>{const s=o[0],i=In(u=>ki(u,o[1]),ou(u=>{if(u.tag===1)return u.fields[0]},In(u=>{switch(u.tag){case 1:return V0(u.fields[0],e(s));case 2:return R0(u.fields[0],e(s));case 3:return L0(u.fields[0],u.fields[1],e(s));case 4:return u.fields[0];default:return P0(e(s))}},o[2])));return t(s,i),i},r))),{Equals:(o,s)=>o===s,GetHashCode:_n})}class H0 extends ne{constructor(t,n){super(),this.GetValue=t,this.SetStyle=n}}function nl(e,t){nu(t)>0?(e.classList.add("error"),e.setAttribute("title",xf(0,t))):(e.classList.remove("error"),e.removeAttribute("title"))}function B0(e){return e.value}function G0(e){const n=$n(new Map([])).current,r=el(K()),o=r[1],s=r[0],i=el(!1),u=i[1],a=ye(e.GetValue,B0),l=ye(zi(Re,e.SetStyle),c=>h=>{nl(c,h)});return vt(()=>{if(i[0]){const c=tl(a,A(l),n);pe(c,s)||(o(c),n.clear())}}),[$n(c=>h=>d=>{if(!pe(d,ge())){let p;if(d.hasAttribute("data-vkey"))p=d.getAttribute("data-vkey");else{let m=ci(d);p=Be(m)}n.set(p,[d,c,h])}}).current,()=>{u(!0);const c=tl(a,A(l),n);return o(c),nu(c)===0},()=>{Nt(c=>{nl(c[1][0],K())},n),n.clear(),o(K()),u(!1)},s]}function rl(){return G0(new H0(void 0,void 0))}const U0=`*,: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-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color: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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color: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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.12 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}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-feature-settings:normal;font-size:1em;font-variation-settings:normal}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-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,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}dialog{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%}[hidden]{display:none}[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],input:where(:not([type])),select,textarea{-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;--tw-shadow:0 0 #0000}[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,input:where(:not([type])):focus,select:focus,textarea:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-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{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image: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]{-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;--tw-shadow:0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M12.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 0'/%3E%3C/svg%3E")}@media (forced-colors:active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}@media (forced-colors:active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked: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("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}@media (forced-colors:active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[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}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.-mx-1\\.5{margin-left:-.375rem;margin-right:-.375rem}.-my-1\\.5{margin-bottom:-.375rem;margin-top:-.375rem}.my-4{margin-bottom:1rem;margin-top:1rem}.-ml-1{margin-left:-.25rem}.mb-2{margin-bottom:.5rem}.ml-auto{margin-left:auto}.mr-3{margin-right:.75rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-5{height:1.25rem}.w-5{width:1.25rem}.w-full{width:100%}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-row-reverse{flex-direction:row-reverse}.items-center{align-items:center}.gap-1{gap:.25rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-y-4{row-gap:1rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-primary-disabled{background-color:var(--fl-color-primary-disabled)}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.p-1\\.5{padding:.375rem}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.pl-3{padding-left:.75rem}.pr-10{padding-right:2.5rem}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}.text-primary-text{color:var(--fl-color-primary-text)}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/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))}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.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,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.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-blue-100:hover{--tw-bg-opacity:1;background-color:rgb(219 234 254/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-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))}.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);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-blue-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/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-primary-focus:focus{--tw-ring-color:var(--fl-color-primary-focus)}.focus\\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity))}.focus\\:ring-red-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(220 38 38/var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus\\:ring-offset-blue-50:focus{--tw-ring-offset-color:#eff6ff}.focus\\:ring-offset-green-50:focus{--tw-ring-offset-color:#f0fdf4}.focus\\:ring-offset-red-50:focus{--tw-ring-offset-color:#fef2f2}@media (min-width:640px){.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}`,ol=ve(U0),un=E(["grid","grid-cols-1","sm:grid-cols-3","gap-x-6","gap-y-4","mt-4"]);class fe extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Your","EmergencyContact"]}}function ts(e){return e.tag===1?"emergency contact":"your"}class ae extends j{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["TestId"]}}function Bn(e){return e.fields[0]}function j0(e){return Tf(new oe(0,[]),e,{Equals:pe,GetHashCode:ci})}function z0(e,t){return e+(j0(t)?" *":"")}function Fr(e,t,n,r,o){const s=te(w(()=>b(g(C("label",{className:M(" ",["block","text-sm","font-medium","text-gray-700"]),children:z0(e,t)})),w(()=>b(g(C("div",{className:M(" ",["mt-1"]),children:P.Children.toArray([o])})),w(()=>{const i=n;if(i!=null){const u=i;return g(C("p",{className:M(" ",["mt-2","text-sm","text-red-600"]),children:u,"data-testid":`${Bn(r)}-error`}))}else return g(ge())}))))));return C("div",{children:P.Children.toArray(Array.from(s))})}const sl=E(["border-red-300","text-red-900","placeholder-red-300","focus:outline-none","focus:ring-red-500","focus:border-red-500"]);function Gn(e){return te(w(()=>b(g("block"),w(()=>b(g("shadow-sm"),w(()=>b(g("w-full"),w(()=>b(g("sm:text-sm"),w(()=>b(g("rounded-md"),w(()=>e?sl:b(g("border-gray-300"),w(()=>b(g("focus:ring-primary-focus"),w(()=>g("focus:border-primary-focus")))))))))))))))))}function Le(e,t,n,r,o,s,i,u,a){return Fr(e,r,o,u,C("input",B(te(w(()=>b(g(["className",M(" ",Gn(o!=null))]),w(()=>b(g(["value",t]),w(()=>b(g(["ref",Re(n)(r)]),w(()=>b(g(["type","text"]),w(()=>b(g(["onChange",l=>{s(l.target.value)}]),w(()=>b(g(["placeholder",`Enter ${ts(i)} ${e.toLocaleLowerCase()}`]),w(()=>b(g(["data-testid",Bn(u)]),w(()=>a)))))))))))))))))))}class Pt extends ne{constructor(t,n,r){super(),this.Day=t,this.Month=n,this.Year=r}}const W0=new Pt("","","");function an(e){return e.length===1?`0${e}`:e}function q0(e){return`${e.Year}-${an(e.Month)}-${an(e.Day)}`}function Z0(e){return new Pt(an(Be(yn(e))),an(Be(xt(e))),Be(Ut(e)))}function il(e){const t=q0(e),n=Q$(t);let r;switch(n.tag===1&&n.fields[0].tag===7?r=0:r=1,r){case 0:return new $(1,[void 0]);default:return new $(0,[t])}}function J0(e){let t,n,r,o,s;const i=e.onChangeHandler,u=e.testId,a=e.error,l=e.validationRules,f=e.rulesForFieldName,c=e.value,h=e.fieldName;let d;const p=c==null?W0:Z0(c);d=P.useState(p);const m=d[0],_=T=>{let U;d[1](T),i((U=il(T),U.tag===1?void 0:Nu(U.fields[0])))},y=(T,U,Oe,mt)=>{const yt=ar(kr,mt);return(yt.length|0)===0?yt:Fu(yt,511,!1,32)<=U?Ti(yt,0,hf(T,yt.length)):Oe},v=Bn(u);return Fr(h,l,a,u,C("div",B(E([["className",M(" ",["grid","grid-cols-4","gap-1"])],(t=[C("div",B(E([["className",M(" ",["col-span-1"])],(n=[C("input",{className:M(" ",Gn(a!=null)),type:"text",value:m.Day,placeholder:"dd",onChange:T=>{const U=T.target.value;_(new Pt(y(2,31,m.Day,U),m.Month,m.Year))},onBlur:T=>{_(new Pt(an(m.Day),m.Month,m.Year))},inputMode:"numeric",autoComplete:"bday-day","data-testid":`${v}-day`})],["children",P.Children.toArray(Array.from(n))])]))),C("div",B(E([["className",M(" ",["col-span-1"])],(r=[C("input",{className:M(" ",Gn(a!=null)),type:"text",value:m.Month,placeholder:"mm",onChange:T=>{const U=T.target.value;_(new Pt(m.Day,y(2,12,m.Month,U),m.Year))},onBlur:T=>{_(new Pt(m.Day,an(m.Month),m.Year))},inputMode:"numeric",autoComplete:"bday-month","data-testid":`${v}-month`})],["children",P.Children.toArray(Array.from(r))])]))),C("div",B(E([["className",M(" ",["col-span-2"])],(o=[C("input",{className:M(" ",Gn(a!=null)),type:"text",value:m.Year,placeholder:"yyyy",onChange:T=>{const U=T.target.value;_(new Pt(m.Day,m.Month,y(4,Ut(bc()),m.Year,U)))},inputMode:"numeric",autoComplete:"bday-year","data-testid":`${v}-year`})],["children",P.Children.toArray(Array.from(o))])]))),C("input",{type:"hidden",ref:Re(f)(l),value:(s=il(m),s.tag===1?"":s.fields[0])})],["children",P.Children.toArray(Array.from(t))])]))))}function Un(e,t,n,r,o,s,i,u,a){let l;return Fr(e,o,s,a,C("select",B(E([["className",M(" ",te(w(()=>b(g("mt-1"),w(()=>b(g("block"),w(()=>b(g("w-full"),w(()=>b(g("pl-3"),w(()=>b(g("pr-10"),w(()=>b(g("py-2"),w(()=>b(g("text-base"),w(()=>b(g("sm:text-sm"),w(()=>b(g("rounded-md"),w(()=>s==null?b(g("border-gray-300"),w(()=>b(g("focus:outline-none"),w(()=>b(g("focus:ring-primary-focus"),w(()=>g("focus:border-primary-focus"))))))):sl)))))))))))))))))))))],["ref",Re(r)(o)],(l=te(w(()=>b(g(C("option",{selected:t==null,disabled:!0,value:"",children:`Select ${ts(u)} ${e.toLocaleLowerCase()}`})),w(()=>No(f=>{const c=f[1];return g(C("option",{selected:Tt(f[0],$r(t),{Equals:pe,GetHashCode:Xe}),value:c,children:c,className:M(" ",["text-black"])}))},n))))),["children",P.Children.toArray(Array.from(l))]),["onChange",f=>{i(f.target.value)}],["data-testid",Bn(a)]]))))}function ul(e,t,n,r,o,s,i,u){return Fr(e,r,o,u,C("input",{className:M(" ",Gn(o!=null)),type:"tel",value:t,ref:Re(n)(r),onChange:a=>{let l;const f=a.target.value;s((l=ar(kr,f),f.indexOf("+")===0?`+${l}`:l))},placeholder:`Enter ${ts(i)} ${e.toLocaleLowerCase()}`,inputMode:"tel",autoComplete:"tel-national","data-testid":Bn(u)}))}function al(e,t,n){let r,o,s,i,u;const a=n&&!pe(t,new Q(1,[])),l=C("svg",B(E([["className",M(" ",["animate-spin","-ml-1","mr-3","h-5","w-5","text-white"])],["fill","none"],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(r=E([C("circle",{className:M(" ",["opacity-25"]),cx:12,cy:12,r:10,stroke:"currentColor",strokeWidth:4}),C("path",B(E([["className",M(" ",["opacity-75"])],["fill","currentColor"],(o="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",["d",o])])))]),["children",P.Children.toArray(Array.from(r))])])));return C("div",B(E([["className",M(" ",["flex","flex-row-reverse"])],(s=[(i=se(C("button",B(E([["className",M(" ",te(w(()=>b(g("inline-flex"),w(()=>b(g("items-center"),w(()=>b(g("px-4"),w(()=>b(g("py-2"),w(()=>b(g("border"),w(()=>b(g("border-transparent"),w(()=>b(g("shadow-sm"),w(()=>b(g("text-sm"),w(()=>b(g("font-medium"),w(()=>b(g("rounded-md"),w(()=>b(g("text-primary-text"),w(()=>b(g("focus:outline-none"),w(()=>b(g("focus:ring-2"),w(()=>b(g("focus:ring-offset-2"),w(()=>b(g("focus:ring-primary-focus"),w(()=>a?b(g("bg-primary-base"),w(()=>g("hover:bg-primary-hover"))):t.tag===1?b(g("bg-primary-base"),w(()=>g("hover:bg-primary-hover"))):g("bg-primary-disabled"))))))))))))))))))))))))))))))))))],["type","button"],["disabled",!a],["onClick",f=>{a&&e()}],(u=te(w(()=>b(t.tag===1?g(l):g(ge()),w(()=>g(C("span",{children:["Save and continue"]})))))),["children",P.Children.toArray(Array.from(u))]),["data-testid","save"]])))),C("div",{children:P.Children.toArray(Array.from(i))}))],["children",P.Children.toArray(Array.from(s))])])))}function ll(e){return(e.indexOf("04")===0?e.length===10:e.indexOf("614")===0?e.length===11:e.indexOf("+614")===0&&e.length===12)?new $(0,[void 0]):new $(1,[new _e(9,[])])}function Y0(e){let t;const n=e;return n.tag===1?new $(1,[(t=n.fields[0],t.tag===1?`{0} exceeds the character limit of ${t.fields[0]}`:t.tag===2?`{0} must be at least ${t.fields[0]} characters`:t.tag===4?"{0} must only have numbers":t.tag===5?"{0} is not valid":t.tag===3?"{0} has invalid characters":t.tag===6?"{0} is not valid":t.tag===9?"{0} is not a valid Australian mobile number":t.tag===7?"{0} is not valid":t.tag===8?t.fields[0].tag===0?"{0} must be under 100 years of age":"{0} must be at least 13 years of age":t.tag===10?"{0} must start with a letter":"{0} is required")]):new $(0,[n.fields[0]])}function le(e){let t;return new oe(4,[(t=Y0(e),t.tag===1?new $(1,[t.fields[0]]):new $(0,[void 0]))])}function K0(e,t,n,r){let o;return C("div",B(E([["className",M(" ",["py-3","mb-2"])],(o=te(w(()=>b(g(C("h6",{className:M(" ",["text-lg","font-semibold"]),children:"Identification"})),w(()=>{let s;return g(C("div",B(E([["className",M(" ",un)],(s=te(w(()=>{const i="Identification.Legal first name";return b(g(Le("Legal first name",e.FirstName,A(J(t)(i)),E([new oe(0,[]),le(Bo(e.FirstName))]),ie(i,"Legal first name",n),u=>{r(new re(0,[a=>new pt(wt(u),a.MiddleName,a.LastName,a.Title,a.DateOfBirth,a.Gender)]))},new fe(0,[]),new ae("first-name"),[["autoComplete","given-name"]])),w(()=>{const u="Identification.Middle name";return b(g(Le("Middle name",e.MiddleName,A(J(t)(u)),se(le(td(Er(e.MiddleName)))),ie(u,"Middle name",n),a=>{r(new re(0,[l=>new pt(l.FirstName,wt(a),l.LastName,l.Title,l.DateOfBirth,l.Gender)]))},new fe(0,[]),new ae("middle-name"),[["autoComplete","additional-name"]])),w(()=>{const a="Identification.Last name";return b(g(Le("Last name",e.LastName,A(J(t)(a)),E([new oe(0,[]),le(Bo(e.LastName))]),ie(a,"Last name",n),l=>{r(new re(0,[f=>new pt(f.FirstName,f.MiddleName,wt(l),f.Title,f.DateOfBirth,f.Gender)]))},new fe(0,[]),new ae("last-name"),[["autoComplete","family-name"]])),w(()=>{let l;const f="Identification.Title";return b(g(Un("Title",e.Title,Ha(),A(J(t)(f)),E([new oe(0,[]),le((l=e.Title,l==null?new $(1,[new _e(0,[])]):new $(0,[l])))]),ie(f,"Title",n),c=>{r(new re(0,[h=>new pt(h.FirstName,h.MiddleName,h.LastName,Ko(c),h.DateOfBirth,h.Gender)]))},new fe(0,[]),new ae("title"))),w(()=>{let c;const h="Identification.Date of birth";return b(g(C(J0,{fieldName:"Date of birth",value:Ui(e.DateOfBirth),rulesForFieldName:A(J(t)(h)),validationRules:E([new oe(0,[]),le((c=e.DateOfBirth,c==null?new $(1,[new _e(0,[])]):od(c)))]),error:Ui(ie(h,"Date of birth",n)),testId:new ae("dob"),onChangeHandler:d=>{r(new re(0,[p=>new pt(p.FirstName,p.MiddleName,p.LastName,p.Title,d,p.Gender)]))}})),w(()=>{let d;const p="Identification.Gender";return g(Un("Gender",e.Gender,La(),A(J(t)(p)),E([new oe(0,[]),le((d=e.Gender,d==null?new $(1,[new _e(0,[])]):new $(0,[d])))]),ie(p,"Gender",n),m=>{r(new re(0,[_=>new pt(_.FirstName,_.MiddleName,_.LastName,_.Title,_.DateOfBirth,Yo(m))]))},new fe(0,[]),new ae("gender")))}))}))}))}))}))})),["children",P.Children.toArray(Array.from(s))])]))))})))),["children",P.Children.toArray(Array.from(o))])])))}function X0(e,t,n,r){let o;return C("div",B(E([["className",M(" ",["py-3","mb-2"])],(o=te(w(()=>b(g(C("h6",{className:M(" ",["text-lg","font-semibold"]),children:"Contact details"})),w(()=>{let s;return b(g(C("div",B(E([["className",M(" ",un)],(s=te(w(()=>{const i="ContactDetails.Email";return b(g(Le("Email",e.Email,A(J(t)(i)),E([new oe(0,[]),le(ju(e.Email)),new oe(4,[Nf(u=>Ac(u,e.Email,5)===0,e.NonUniqueEmails)?new $(1,["{0} is already taken"]):new $(0,[void 0])])]),ie(i,"Email",n),u=>{r(new re(1,[a=>new rt(u,a.MobileNumber,a.StreetAddress,a.Suburb,a.State,a.Postcode,a.NonUniqueEmails)]))},new fe(0,[]),new ae("email"),[["autoComplete","email"]])),w(()=>{const u="ContactDetails.Mobile number";return g(ul("Mobile number",e.MobileNumber,A(J(t)(u)),E([new oe(0,[]),le(ll(e.MobileNumber))]),ie(u,"Mobile number",n),a=>{r(new re(1,[l=>new rt(l.Email,a,l.StreetAddress,l.Suburb,l.State,l.Postcode,l.NonUniqueEmails)]))},new fe(0,[]),new ae("mobile")))}))})),["children",P.Children.toArray(Array.from(s))])])))),w(()=>{let i;return g(C("div",B(E([["className",M(" ",un)],(i=te(w(()=>{const u="ContactDetails.Street address";return b(g(Le("Street address",e.StreetAddress,A(J(t)(u)),E([new oe(0,[]),le(Uu(e.StreetAddress))]),ie(u,"Street address",n),a=>{r(new re(1,[l=>new rt(l.Email,l.MobileNumber,wt(a),l.Suburb,l.State,l.Postcode,l.NonUniqueEmails)]))},new fe(0,[]),new ae("street-address"),[["autoComplete","street-address"]])),w(()=>{const a="ContactDetails.Town/Suburb";return b(g(Le("Town/Suburb",e.Suburb,A(J(t)(a)),E([new oe(0,[]),le(zu(e.Suburb))]),ie(a,"Town/Suburb",n),l=>{r(new re(1,[f=>new rt(f.Email,f.MobileNumber,f.StreetAddress,wt(l),f.State,f.Postcode,f.NonUniqueEmails)]))},new fe(0,[]),new ae("town"),[["autoComplete","address-level2"]])),w(()=>{let l;const f="ContactDetails.State";return b(g(Un("State",e.State,Lo(),A(J(t)(f)),E([new oe(0,[]),le((l=e.State,l==null?new $(1,[new _e(0,[])]):new $(0,[l])))]),ie(f,"State",n),c=>{r(new re(1,[h=>new rt(h.Email,h.MobileNumber,h.StreetAddress,h.Suburb,On(c),h.Postcode,h.NonUniqueEmails)]))},new fe(0,[]),new ae("state"))),w(()=>{const c="ContactDetails.Postcode";return g(Le("Postcode",e.Postcode,A(J(t)(c)),E([new oe(0,[]),le(Wu(e.Postcode))]),ie(c,"Postcode",n),h=>{r(new re(1,[d=>new rt(d.Email,d.MobileNumber,d.StreetAddress,d.Suburb,d.State,h,d.NonUniqueEmails)]))},new fe(0,[]),new ae("postcode"),[["inputMode","numeric"],["autoComplete","postal-code"]]))}))}))}))})),["children",P.Children.toArray(Array.from(i))])]))))}))})))),["children",P.Children.toArray(Array.from(o))])])))}function cl(e,t){let n;n=new CustomEvent("step-completion",{bubbles:!0,detail:e}),t.dispatchEvent(n)}function Q0(e){cl("personal-details",e)}function ep(e){cl("emergency-contacts",e)}function tp(e){let t,n;const r=Yh();n=Qa(()=>Ja(()=>r,Kh,(f,c)=>{}),void 0,void 0);const o=n[0],s=n[1],i=rl(),u=i[0],a=i[3];Jo(Ra(()=>Zh(e.backendUrl,e.accessToken),f=>{s(new re(2,[f]))}));const l=C("h3",{className:M(" ",["text-2xl","font-medium"]),children:"Personal Details"});return C("div",B(E([["className",M(" ",["font-sans"])],(t=te(w(()=>b(g(C("style",{children:[ol]})),w(()=>{const f=o.ExistingProfile;switch(f.tag){case 2:return b(g(l),w(()=>b(g(K0(o.FormModel.Identification,Bt(u),a,s)),w(()=>b(g(X0(o.FormModel.ContactDetails,Bt(u),a,s)),w(()=>b(o.CurrentAlert!=null?g(C(Pa,{alert:S(o.CurrentAlert),hideAlert:()=>{s(new re(6,[]))}})):uu(),w(()=>g(al(()=>{i[1]()?s(new re(3,[e.backendUrl,e.accessToken,()=>{Nt(c=>{Q0(c)},$r(ji(document.querySelector("apollo-personal-details-app"))))}])):s(new re(5,[new Ir(1,["There are some errors on the form, please correct them."])]))},o.SaveStatus,O(a)))))))))));case 3:return b(g(l),w(()=>g(C("p",{children:[f.fields[0].message]}))));default:return g(C("div",{children:["Please wait..."]}))}})))),["children",P.Children.toArray(Array.from(t))])])))}function np(){Au(e=>C(tp,e),"apollo-personal-details-app")}function rp(e){return ve(e)}function fl(){return In(e=>[e,rp(e)],xo(he(e=>So(e,[]),fr(N$()))))}function $l(e){return Fn(t=>{if(t[1]===e)return t[0]},fl())}class ot extends ne{constructor(t,n,r,o,s,i,u,a){super(),this.FullName=t,this.Relationship=n,this.PhoneNumber=r,this.Email=o,this.StreetAddress=s,this.Suburb=i,this.State=u,this.Postcode=a}}const op=new ot("",void 0,"","","","",void 0,"");function sp(e){let t,n;const r=e.Relationship;if(n=r==null?new $(1,["Relationship missing"]):new $(0,[r]),t=n.tag===1?new $(1,[n.fields[0]]):new $(0,[A$(n.fields[0])]),t.tag===1)return new $(1,[t.fields[0]]);{let o,s;const i=e.State;return s=i==null?new $(1,["State missing"]):new $(0,[i]),o=s.tag===1?new $(1,[s.fields[0]]):new $(0,[Vo(s.fields[0])]),o.tag===1?new $(1,[o.fields[0]]):new $(0,[new Vu(e.FullName.trim(),t.fields[0],Bu(e.PhoneNumber),Er(e.Email),new Po(e.StreetAddress.trim(),void 0,e.Suburb.trim(),o.fields[0],e.Postcode.trim(),"AU"))])}}function ip(e,t){let n;const r=sp(e);return r.tag===1?new $(1,[r.fields[0]]):new $(0,[(n=r.fields[0],O(t)?se(n):Ef((o,s)=>o===0?n:s,t))])}function up(e){let t,n,r,o;return new ot(e.FullName,$l(e.Relationship),Ho(e.MobilePhone),ye(e.Email,""),ye((t=e.Address,t==null?void 0:t.AddressLine1),""),ye((n=e.Address,n==null?void 0:n.City),""),(r=e.Address,r==null?void 0:On(r.State)),ye((o=e.Address,o==null?void 0:o.Postcode),""))}class Je extends ne{constructor(t,n,r,o){super(),this.FormModel=t,this.CurrentAlert=n,this.SaveStatus=r,this.ExistingEmergencyContacts=o}}class we extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetEmergencyContact","GetEmergencyContactsCallback","SaveStarted","SaveFinished","ShowAlert","HideAlert"]}}function dl(e){return`${e}/profiles/backend/emergency-contacts`}function ap(e,t){const n=N.Delay(()=>{const r=xr(t,vr(new Mn(0,[]),Cr(dl(e))));return N.Bind(r,o=>{const s=o;if(s.tag===1)return N.Return(new $(1,[s.fields[0]]));{const i=s.fields[0];if(i.statusCode===200){const u=dh(i.responseText);return N.Return(u)}else return N.Return(new $(1,[""]))}})});return N.Bind(n,r=>{let o;const s=r;return o=s.tag===1?new $(1,[new nt(1,[])]):new $(0,[s.fields[0]]),N.Return(o)})}function lp(e,t,n){return N.Delay(()=>{let r;const o=xr(t,(r=xu(new Eo(1,[$h(n)]),vr(new Mn(2,[]),Cr(dl(e)))),Fo(vu("application/json"),r)));return N.Bind(o,s=>{const i=s;return i.tag===1?N.Return(new $(1,[i.fields[0]])):i.fields[0].statusCode===200?N.Return(new $(0,[void 0])):N.Return(new $(1,[new nt(0,[])]))})})}function cp(){return[new Je(op,void 0,new Q(0,[]),new Q(0,[])),ue()]}function fp(e,t){let n,r,o;switch(e.tag){case 1:{let s,i;switch(e.fields[0].tag){case 3:{s=1;break}case 0:{s=2;break}case 1:{s=3;break}default:e.fields[0].fields[0].tag===1?s=1:(s=0,i=e.fields[0].fields[0].fields[0])}switch(s){case 0:return[new Je((n=Sf(i),n==null?t.FormModel:up(n)),t.CurrentAlert,t.SaveStatus,new Q(2,[i])),ue()];case 1:return[new Je(t.FormModel,t.CurrentAlert,t.SaveStatus,new Q(3,[new Error(en(new nt(1,[])))])),ue()];case 2:return[new Je(t.FormModel,t.CurrentAlert,t.SaveStatus,new Q(0,[])),ue()];default:return[new Je(t.FormModel,t.CurrentAlert,t.SaveStatus,new Q(1,[])),ue()]}}case 2:{const s=new Je(t.FormModel,t.CurrentAlert,new Q(1,[]),t.ExistingEmergencyContacts),i=Tu(u=>ip(t.FormModel,u),(r=t.ExistingEmergencyContacts,r.tag===2?new $(0,[r.fields[0]]):new $(1,["Existing ec has not been loaded"])));return i.tag===1?[s,se(u=>{u(new we(3,[new $(1,[new nt(0,[])])]))})]:[s,Ga(u=>{Ua(u)},u=>lp(e.fields[0],e.fields[1],u),i.fields[0],u=>new we(3,[ze(()=>e.fields[2],u)]),u=>new we(3,[new $(1,[new nt(0,[])])]))]}case 3:return e.fields[0].tag===1?[new Je(t.FormModel,t.CurrentAlert,new Q(3,[new Error(en(e.fields[0].fields[0]))]),t.ExistingEmergencyContacts),(o=new we(4,[new Ir(1,[en(e.fields[0].fields[0])])]),se(s=>{s(o)}))]:(e.fields[0].fields[0](),[new Je(t.FormModel,t.CurrentAlert,new Q(2,[void 0]),t.ExistingEmergencyContacts),ue()]);case 4:return[new Je(t.FormModel,e.fields[0],t.SaveStatus,t.ExistingEmergencyContacts),ue()];case 5:return[new Je(t.FormModel,void 0,t.SaveStatus,t.ExistingEmergencyContacts),ue()];default:return[new Je(e.fields[0](t.FormModel),t.CurrentAlert,t.SaveStatus,t.ExistingEmergencyContacts),ue()]}}function $p(e,t,n,r){let o;return C("div",B(E([["className",M(" ",["py-3","mb-2"])],(o=te(w(()=>{let s;return b(g(C("div",B(E([["className",M(" ",un)],(s=te(w(()=>{const i="EmergencyContact.Full name";return b(g(Le("Full name",e.FullName,A(J(t)(i)),E([new oe(0,[]),le(Bo(e.FullName))]),ie(i,"Full name",n),u=>{r(new we(0,[a=>new ot(wt(u),a.Relationship,a.PhoneNumber,a.Email,a.StreetAddress,a.Suburb,a.State,a.Postcode)]))},new fe(1,[]),new ae("full-name"),[])),w(()=>{let u;const a="EmergencyContact.Relationship";return g(Un("Relationship",e.Relationship,fl(),A(J(t)(a)),E([new oe(0,[]),le((u=e.Relationship,u==null?new $(1,[new _e(0,[])]):new $(0,[u])))]),ie(a,"Relationship",n),l=>{r(new we(0,[f=>new ot(f.FullName,$l(l),f.PhoneNumber,f.Email,f.StreetAddress,f.Suburb,f.State,f.Postcode)]))},new fe(1,[]),new ae("relationship")))}))})),["children",P.Children.toArray(Array.from(s))])])))),w(()=>{let i;return b(g(C("div",B(E([["className",M(" ",un)],(i=te(w(()=>{const u="EmergencyContact.Phone number";return b(g(ul("Phone number",e.PhoneNumber,A(J(t)(u)),E([new oe(0,[]),le(ll(e.PhoneNumber))]),ie(u,"Phone number",n),a=>{r(new we(0,[l=>new ot(l.FullName,l.Relationship,a,l.Email,l.StreetAddress,l.Suburb,l.State,l.Postcode)]))},new fe(1,[]),new ae("phone"))),w(()=>{const a="EmergencyContact.Email";return g(Le("Email",e.Email,A(J(t)(a)),se(le(nd(Er(e.Email)))),ie(a,"Email",n),l=>{r(new we(0,[f=>new ot(f.FullName,f.Relationship,f.PhoneNumber,l,f.StreetAddress,f.Suburb,f.State,f.Postcode)]))},new fe(1,[]),new ae("email"),[]))}))})),["children",P.Children.toArray(Array.from(i))])])))),w(()=>{let u;return g(C("div",B(E([["className",M(" ",un)],(u=te(w(()=>{const a="EmergencyContact.Street address";return b(g(Le("Street address",e.StreetAddress,A(J(t)(a)),E([new oe(0,[]),le(Uu(e.StreetAddress))]),ie(a,"Street address",n),l=>{r(new we(0,[f=>new ot(f.FullName,f.Relationship,f.PhoneNumber,f.Email,wt(l),f.Suburb,f.State,f.Postcode)]))},new fe(1,[]),new ae("street-address"),[["autoComplete","street-address"]])),w(()=>{const l="EmergencyContact.Town/Suburb";return b(g(Le("Town/Suburb",e.Suburb,A(J(t)(l)),E([new oe(0,[]),le(zu(e.Suburb))]),ie(l,"Town/Suburb",n),f=>{r(new we(0,[c=>new ot(c.FullName,c.Relationship,c.PhoneNumber,c.Email,c.StreetAddress,wt(f),c.State,c.Postcode)]))},new fe(1,[]),new ae("town"),[["autoComplete","address-level2"]])),w(()=>{let f;const c="EmergencyContact.State";return b(g(Un("State",e.State,Lo(),A(J(t)(c)),E([new oe(0,[]),le((f=e.State,f==null?new $(1,[new _e(0,[])]):new $(0,[f])))]),ie(c,"State",n),h=>{r(new we(0,[d=>new ot(d.FullName,d.Relationship,d.PhoneNumber,d.Email,d.StreetAddress,d.Suburb,On(h),d.Postcode)]))},new fe(1,[]),new ae("state"))),w(()=>{const h="EmergencyContact.Postcode";return g(Le("Postcode",e.Postcode,A(J(t)(h)),E([new oe(0,[]),le(Wu(e.Postcode))]),ie(h,"Postcode",n),d=>{r(new we(0,[p=>new ot(p.FullName,p.Relationship,p.PhoneNumber,p.Email,p.StreetAddress,p.Suburb,p.State,d)]))},new fe(1,[]),new ae("postcode"),[["inputMode","numeric"],["autoComplete","postal-code"]]))}))}))}))})),["children",P.Children.toArray(Array.from(u))])]))))}))}))})),["children",P.Children.toArray(Array.from(o))])])))}function dp(e){let t,n;const r=cp();n=Qa(()=>Ja(()=>r,fp,(l,f)=>{}),void 0,void 0);const o=n[0],s=n[1],i=rl(),u=i[3];Jo(Ra(()=>ap(e.backendUrl,e.accessToken),l=>{s(new we(1,[l]))}));const a=C("h3",{className:M(" ",["text-2xl","font-medium"]),children:"Emergency contact"});return C("div",B(E([["className",M(" ",["font-sans"])],(t=te(w(()=>b(g(C("style",{children:[ol]})),w(()=>{const l=o.ExistingEmergencyContacts;switch(l.tag){case 2:return b(g(a),w(()=>b(g($p(o.FormModel,Bt(i[0]),u,s)),w(()=>b(o.CurrentAlert!=null?g(C(Pa,{alert:S(o.CurrentAlert),hideAlert:()=>{s(new we(5,[]))}})):uu(),w(()=>g(al(()=>{i[1]()?s(new we(2,[e.backendUrl,e.accessToken,()=>{Nt(f=>{ep(f)},$r(ji(document.querySelector("apollo-emergency-contacts-app"))))}])):s(new we(4,[new Ir(1,["There are some errors on the form, please correct them."])]))},o.SaveStatus,O(u)))))))));case 3:return b(g(a),w(()=>g(C("p",{children:[l.fields[0].message]}))));default:return g(C("div",{children:["Please wait..."]}))}})))),["children",P.Children.toArray(Array.from(t))])])))}function hp(){Au(e=>C(dp,e),"apollo-emergency-contacts-app")}np(),hp()})();
package/package.json CHANGED
@@ -1,30 +1,31 @@
1
1
  {
2
2
  "name": "@flarehr/apollo-personal-details-app",
3
- "version": "4.5.102",
3
+ "version": "4.6.103",
4
4
  "description": "Flare Personal Details Component",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "files": [
7
7
  "dist/"
8
8
  ],
9
9
  "scripts": {
10
- "start": "dotnet fable watch ./ --run webpack serve --mode development",
11
- "build": "dotnet fable ./ && webpack --mode production --node-env production"
10
+ "postinstall": "dotnet tool restore",
11
+ "start": "dotnet fable watch . -s --run vite",
12
+ "build": "dotnet fable . -s --run vite build --emptyOutDir"
12
13
  },
13
14
  "dependencies": {
14
- "preact": "^10.5.12",
15
- "preact-custom-element": "^4.2.1"
15
+ "preact": "^10.23.2",
16
+ "preact-custom-element": "^4.3.0",
17
+ "use-sync-external-store": "^1.2.2"
16
18
  },
17
19
  "devDependencies": {
18
- "@tailwindcss/forms": "^0.5.0",
19
- "autoprefixer": "^10.4.4",
20
- "css-loader": "^6.7.1",
21
- "cssnano": "^5.1.7",
22
- "html-webpack-plugin": "^5.5.0",
23
- "postcss": "^8.4.12",
24
- "postcss-loader": "^6.2.1",
25
- "tailwindcss": "^3.0.23",
26
- "webpack": "^5.72.0",
27
- "webpack-cli": "^4.9.2",
28
- "webpack-dev-server": "^4.8.1"
20
+ "@preact/preset-vite": "^2.9.0",
21
+ "@tailwindcss/forms": "^0.5.9",
22
+ "autoprefixer": "^10.4.20",
23
+ "cssnano": "^7.0.6",
24
+ "postcss": "^8.4.45",
25
+ "tailwindcss": "^3.4.10",
26
+ "vite": "^5.4.1"
27
+ },
28
+ "optionalDependencies": {
29
+ "@rollup/rollup-linux-x64-gnu": "4.21.2"
29
30
  }
30
31
  }