@flarehr/apollo-personal-details-app 0.1.2213 → 0.1.2215
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 +1 -1
- package/dist/apollo-personal-details-app.js +1 -37
- package/package.json +14 -15
- package/README.md +0 -82
package/LICENCE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Flare HR Pty Ltd © 2015-
|
|
1
|
+
Flare HR Pty Ltd © 2015-2021
|
|
@@ -1,37 +1 @@
|
|
|
1
|
-
(function(){"use strict";function st(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function na(e){return typeof e.CompareTo=="function"}function ra(e){return typeof e.Equals=="function"}function ii(e){return typeof e.GetHashCode=="function"}function si(e){return e!=null&&typeof e.Dispose=="function"}function L(e){si(e)&&e.Dispose()}function Zn(e,t){var n,r;return((n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor)===((r=Object.getPrototypeOf(t))===null||r===void 0?void 0:r.constructor)}class oa{constructor(t){this.iter=t}"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 le(e){return typeof e.GetEnumerator=="function"?e.GetEnumerator():new oa(e[Symbol.iterator]())}function $n(e){return{[Symbol.iterator](){return this},next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.IEnumerator.get_Current"]():void 0;return{done:!t,value:n}}}}class ia{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 ve(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function sa(e,t,n){let r=e.toString(10);for(;r.length<t;)r="0"+r;for(;r.length<n;)r=r+"0";return r}function li(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function la(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function Pe(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 Br(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Je(e){return e*2654435761|0}function dn(e){return e.length===0?0:e.reduce((t,n)=>(t<<5)+t^n)}function ua(e){return e.getTime()}function aa(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Ye(e[r]);return dn(n)}function Ye(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Je(e);case"string":return Br(e);default:{if(ii(e))return e.GetHashCode();if(st(e))return aa(e);if(e instanceof Date)return ua(e);if(((t=Object.getPrototypeOf(e))===null||t===void 0?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Ye(r));return dn(n)}else return Je(lt.id(e))}}}function ui(e){return e==null?0:ii(e)?e.GetHashCode():Je(lt.id(e))}function jr(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 ai(e,t){return jr(e,t,Se)}function ca(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]||!Se(e[n[o]],t[r[o]]))return!1;return!0}function Se(e,t){var n;return e===t?!0:e==null?t==null:t==null||typeof e!="object"?!1:ra(e)?e.Equals(t):st(e)?st(t)&&ai(e,t):e instanceof Date?t instanceof Date&&zr(e,t)===0:((n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor)===Object&&ca(e,t)}function zr(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+li(e),r=t.getTime()+li(t)),n===r?0:n<r?-1:1}function Wr(e,t){return e===t?0:e<t?-1:1}function fa(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 ci(e,t){return fa(e,t,Ke)}function $a(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=Ke(e[s],t[s]),i!==0)return i}return 0}function Ke(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:typeof e!="object"?e<t?-1:1:na(e)?e.CompareTo(t):st(e)?st(t)?ci(e,t):-1:e instanceof Date?t instanceof Date?zr(e,t):-1:((n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor)===Object?$a(e,t):-1}function da(e,t,n){return e(t,n)<0?t:n}function fi(e,t,n){return e(t,n)>0?t:n}function G(e){const t={};for(const n of e)t[n[0]]=n[1];return t}const qr=Symbol("curried");function N(e,t){if(t==null||t.length>1)return t;const n=(...r)=>{let o=t;for(let i=0;i<e;i++)o=o(r[i]);return o};return n[qr]=t,n}function $i(e,t,n){return r=>t===1?n(...e.concat([r])):$i(e.concat([r]),t-1,n)}function B(e,t,n){if(t!=null)if(qr in t){t=t[qr];for(let r=0;r<n.length;r++)t=t(n[r]);return t}else return $i(n,e,t)}function ha(e){let t=0,n="[";for(const r of e){if(t===0)n+=be(r);else if(t===100){n+="; ...";break}else n+="; "+be(r);t++}return n+"]"}function be(e,t=0){var n,r;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return ha(e);{const o=(n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor;return o===Object&&t<10?"{ "+Object.entries(e).map(([i,s])=>i+" = "+be(s,t+1)).join(`
|
|
2
|
-
`)+" }":(r=o==null?void 0:o.name)!==null&&r!==void 0?r:""}}return String(e)}function pa(e,t){if(t.length===0)return e;{let n="",r=!0;return t.length===1?(n=be(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>be(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class H{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return pa(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>Ye(n));return t.splice(0,0,Je(this.tag)),dn(t)}Equals(t){return this===t?!0:Zn(this,t)&&this.tag===t.tag?ai(this.fields,t.fields):!1}CompareTo(t){return this===t?0:Zn(this,t)?this.tag===t.tag?ci(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function _a(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function ma(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+be(n)).join(`
|
|
3
|
-
`)+" }"}function wa(e){const t=Object.values(e).map(n=>Ye(n));return dn(t)}function ga(e,t){if(e===t)return!0;if(Zn(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!Se(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function ya(e,t){if(e===t)return 0;if(Zn(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=Ke(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class ne{toJSON(){return _a(this)}toString(){return ma(this)}GetHashCode(){return wa(this)}Equals(t){return ga(this,t)}CompareTo(t){return ya(this,t)}}class fe{constructor(t,n){typeof n=="function"?(this.getter=t,this.setter=n):(this.getter=()=>t,this.setter=r=>{t=r})}get contents(){return this.getter()}set contents(t){this.setter(t)}}class ba{constructor(t){this.message=t}}function va(e){return e instanceof ba||e instanceof Error}function Jn(e){return va(e)?e:new Error(String(e))}const Ft=Symbol("numeric");function di(e){return typeof e=="number"||(e==null?void 0:e[Ft])}function Sa(e,t){return typeof e=="number"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Zr(e,t){return typeof e=="number"?e*t:e[Ft]().multiply(t)}function Yn(e,t){return typeof e=="number"?e.toFixed(t):e[Ft]().toFixed(t)}function Kn(e,t){return typeof e=="number"?e.toPrecision(t):e[Ft]().toPrecision(t)}function Xn(e,t){return typeof e=="number"?e.toExponential(t):e[Ft]().toExponential(t)}function Qn(e){return typeof e=="number"?(Number(e)>>>0).toString(16):e[Ft]().toHex()}var Jr;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Jr||(Jr={}));function Ca(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function hi(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 Ea(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 xa(e,t){if(t&Jr.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 Ma(e,t,n){const o=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(o!=null){const[,,i,s]=o;if(n=n||xa(i,t),!Ea(n).test(s))return Ca(o,n)}return null}function pi(e,t,n,r,o){const i=Ma(e,t,o);if(i!=null){let s=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(s)){const[l,u]=hi(!0,r);!n&&i.radix!==10&&s>=l&&s<=u&&(s=s<<32-r>>32-r);const[c,f]=hi(n,r);if(s>=c&&s<=f)return s}}throw new Error("Input string was not in a correct format.")}function Tt(e,t,n,r,o){try{return o.contents=pi(e,t,n,r),!0}catch{return!1}}function Fa(e){return e===-2147483648?e:-e}var yt=null;try{yt=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{}function Re(e,t,n){this.low=e|0,this.high=t|0,this.unsigned=!!n}Re.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},Re.prototype.Equals=function(e){return Ie(this,e)},Re.prototype.CompareTo=function(e){return tr(this,e)},Re.prototype.toString=function(e){return mn(this,e)},Re.prototype.toJSON=function(){return mn(this)},Re.prototype[Ft]=function(){const e=this;return{multiply:t=>He(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:()=>mn(e.unsigned?e:Ga(La(e),!0),16)}},Re.prototype.__isLong__,Object.defineProperty(Re.prototype,"__isLong__",{value:!0});function ut(e){return(e&&e.__isLong__)===!0}var _i={},mi={};function Gt(e,t){var n,r,o;return t?(e>>>=0,(o=0<=e&&e<256)&&(r=mi[e],r)?r:(n=re(e,(e|0)<0?-1:0,!0),o&&(mi[e]=n),n)):(e|=0,(o=-128<=e&&e<128)&&(r=_i[e],r)?r:(n=re(e,e<0?-1:0,!1),o&&(_i[e]=n),n))}function Ve(e,t){if(isNaN(e))return t?bt:Le;if(t){if(e<0)return bt;if(e>=yi)return Aa}else{if(e<=-bi)return ke;if(e+1>=bi)return ka}return e<0?$e(Ve(-e,t)):re(e%jt|0,e/jt|0,t)}function re(e,t,n){return new Re(e,t,n)}var er=Math.pow;function wi(e,t,n){if(e.length===0)throw Error("empty string");if(e==="NaN"||e==="Infinity"||e==="+Infinity"||e==="-Infinity")return Le;if(typeof t=="number"?(n=t,t=!1):t=!!t,n=n||10,n<2||36<n)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(r===0)return $e(wi(e.substring(1),t,n));for(var o=Ve(er(n,8)),i=Le,s=0;s<e.length;s+=8){var l=Math.min(8,e.length-s),u=parseInt(e.substring(s,s+l),n);if(l<8){var c=Ve(er(n,l));i=zt(He(i,c),Ve(u))}else i=He(i,o),i=zt(i,Ve(u))}return i.unsigned=t,i}function Bt(e,t){return typeof e=="number"?Ve(e,t):typeof e=="string"?wi(e,t):re(e.low,e.high,typeof t=="boolean"?t:e.unsigned)}var gi=65536,Ta=1<<24,jt=gi*gi,yi=jt*jt,bi=yi/2,vi=Gt(Ta),Le=Gt(0),bt=Gt(0,!0),hn=Gt(1),Na=Gt(1,!0),Si=Gt(-1),ka=re(-1,2147483647,!1),Aa=re(-1,-1,!0),ke=re(0,-2147483648,!1);function pn(e){return e.unsigned?e.low>>>0:e.low}function _n(e){return e.unsigned?(e.high>>>0)*jt+(e.low>>>0):e.high*jt+(e.low>>>0)}function mn(e,t){if(t=t||10,t<2||36<t)throw RangeError("radix");if(Nt(e))return"0";if(Ae(e))if(Ie(e,ke)){var n=Ve(t),r=vt(e,n),o=wn(He(r,n),e);return mn(r,t)+pn(o).toString(t)}else return"-"+mn($e(e),t);for(var i=Ve(er(t,6),e.unsigned),s=e,l="";;){var u=vt(s,i),c=pn(wn(s,He(u,i)))>>>0,f=c.toString(t);if(s=u,Nt(s))return f+l;for(;f.length<6;)f="0"+f;l=""+f+l}}function Nt(e){return e.high===0&&e.low===0}function Ae(e){return!e.unsigned&&e.high<0}function Ci(e){return(e.low&1)===1}function Ie(e,t){return ut(t)||(t=Bt(t)),e.unsigned!==t.unsigned&&e.high>>>31===1&&t.high>>>31===1?!1:e.high===t.high&&e.low===t.low}function Ei(e,t){return tr(e,t)<0}function Yr(e,t){return tr(e,t)>0}function Ia(e,t){return tr(e,t)>=0}function tr(e,t){if(ut(t)||(t=Bt(t)),Ie(e,t))return 0;var n=Ae(e),r=Ae(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:Ae(wn(e,t))?-1:1}function $e(e){return!e.unsigned&&Ie(e,ke)?ke:zt(Da(e),hn)}function zt(e,t){ut(t)||(t=Bt(t));var n=e.high>>>16,r=e.high&65535,o=e.low>>>16,i=e.low&65535,s=t.high>>>16,l=t.high&65535,u=t.low>>>16,c=t.low&65535,f=0,a=0,d=0,h=0;return h+=i+c,d+=h>>>16,h&=65535,d+=o+u,a+=d>>>16,d&=65535,a+=r+l,f+=a>>>16,a&=65535,f+=n+s,f&=65535,re(d<<16|h,f<<16|a,e.unsigned)}function wn(e,t){return ut(t)||(t=Bt(t)),zt(e,$e(t))}function He(e,t){if(Nt(e))return e.unsigned?bt:Le;if(ut(t)||(t=Bt(t)),yt){var n=yt.mul(e.low,e.high,t.low,t.high);return re(n,yt.get_high(),e.unsigned)}if(Nt(t))return e.unsigned?bt:Le;if(Ie(e,ke))return Ci(t)?ke:Le;if(Ie(t,ke))return Ci(e)?ke:Le;if(Ae(e))return Ae(t)?He($e(e),$e(t)):$e(He($e(e),t));if(Ae(t))return $e(He(e,$e(t)));if(Ei(e,vi)&&Ei(t,vi))return Ve(_n(e)*_n(t),e.unsigned);var r=e.high>>>16,o=e.high&65535,i=e.low>>>16,s=e.low&65535,l=t.high>>>16,u=t.high&65535,c=t.low>>>16,f=t.low&65535,a=0,d=0,h=0,p=0;return p+=s*f,h+=p>>>16,p&=65535,h+=i*f,d+=h>>>16,h&=65535,h+=s*c,d+=h>>>16,h&=65535,d+=o*f,a+=d>>>16,d&=65535,d+=i*c,a+=d>>>16,d&=65535,d+=s*u,a+=d>>>16,d&=65535,a+=r*f+o*c+i*u+s*l,a&=65535,re(h<<16|p,a<<16|d,e.unsigned)}function vt(e,t){if(ut(t)||(t=Bt(t)),Nt(t))throw Error("division by zero");if(yt){if(!e.unsigned&&e.high===-2147483648&&t.low===-1&&t.high===-1)return e;var n=(e.unsigned?yt.div_u:yt.div_s)(e.low,e.high,t.low,t.high);return re(n,yt.get_high(),e.unsigned)}if(Nt(e))return e.unsigned?bt:Le;var r,o,i;if(e.unsigned){if(t.unsigned||(t=Va(t)),Yr(t,e))return bt;if(Yr(t,Ra(e,1)))return Na;i=bt}else{if(Ie(e,ke)){if(Ie(t,hn)||Ie(t,Si))return ke;if(Ie(t,ke))return hn;var s=Pa(e,1);return r=Oa(vt(s,t),1),Ie(r,Le)?Ae(t)?hn:Si:(o=wn(e,He(t,r)),i=zt(r,vt(o,t)),i)}else if(Ie(t,ke))return e.unsigned?bt:Le;if(Ae(e))return Ae(t)?vt($e(e),$e(t)):$e(vt($e(e),t));if(Ae(t))return $e(vt(e,$e(t)));i=Le}for(o=e;Ia(o,t);){r=Math.max(1,Math.floor(_n(o)/_n(t)));for(var l=Math.ceil(Math.log(r)/Math.LN2),u=l<=48?1:er(2,l-48),c=Ve(r),f=He(c,t);Ae(f)||Yr(f,o);)r-=u,c=Ve(r,e.unsigned),f=He(c,t);Nt(c)&&(c=hn),i=zt(i,c),o=wn(o,f)}return i}function Da(e){return re(~e.low,~e.high,e.unsigned)}function Oa(e,t){return ut(t)&&(t=pn(t)),(t&=63)===0?e:t<32?re(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):re(0,e.low<<t-32,e.unsigned)}function Pa(e,t){return ut(t)&&(t=pn(t)),(t&=63)===0?e:t<32?re(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):re(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}function Ra(e,t){if(ut(t)&&(t=pn(t)),t&=63,t===0)return e;var n=e.high;if(t<32){var r=e.low;return re(r>>>t|n<<32-t,n>>>t,e.unsigned)}else return re(t===32?n:n>>>t-32,0,e.unsigned)}function Va(e){return e.unsigned?e:re(e.low,e.high,!0)}function La(e,t){return t?Ha(e):Ua(e)}function Ha(e){var t=e.high,n=e.low;return[n&255,n>>>8&255,n>>>16&255,n>>>24,t&255,t>>>8&255,t>>>16&255,t>>>24]}function Ua(e){var t=e.high,n=e.low;return[t>>>24,t>>>16&255,t>>>8&255,t&255,n>>>24,n>>>16&255,n>>>8&255,n&255]}function Ga(e,t,n){return n?Ba(e,t):ja(e,t)}function Ba(e,t){return new Re(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)}function ja(e,t){return new Re(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}const za=vt,Wa=_n;class qa{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class Xe{constructor(t,n,r,o,i,s,l){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=i,this.cases=s,this.enumCases=l}toString(){return j(this)}GetHashCode(){return xi(this)}Equals(t){return Kr(this,t)}}function Ce(e){return e.generics!=null?e.generics:[]}function xi(e){const t=Br(e.fullname),n=Ce(e).map(xi);return dn([t,...n])}function Kr(e,t){return e.fullname===""?t.fullname===""&&jr(bn(e),bn(t),([n,r],[o,i])=>n===o&&Kr(r,i)):e.fullname===t.fullname&&jr(Ce(e),Ce(t),Kr)}function gn(e,t,n,r){return new Xe(e,t,n,void 0,r)}function nr(e,t,n,r){const o=new Xe(e,t,n,void 0,void 0,()=>{const i=n.prototype.cases();return r().map((s,l)=>new qa(o,l,i[l],s))});return o}function at(e){return new Xe("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Mi(e){return new Xe("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Za=new Xe("System.Object"),q=new Xe("System.String");function Wt(e){if(Array.isArray(e))return e[0];if(e instanceof Xe){const t=yn(e);if(t!=null)return Wt(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function j(e){const t=yn(e);return t!=null?j(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>j(n)).join(",")+"]"}function Fi(e){return yn(e)!=null}function yn(e){var t;return e.fullname==="[]"&&((t=e.generics)===null||t===void 0?void 0:t.length)===1?e.generics[0]:void 0}function Ti(e){return e.generics!=null&&e.generics.length>0}function Xr(e){return e.enumCases!=null&&e.enumCases.length>0}function Ni(e){return e.generics==null?e:new Xe(e.fullname,e.generics.map(()=>Za))}function ki(e){var t;return(t=e.generics)===null||t===void 0?void 0:t[0]}function qt(e){if(Xr(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Ja(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 Zt(e,t){const n=parseInt(t,10);return Ja(e,isNaN(n)?t:n)[1]}function rr(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function bn(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Ai(e){if(Qr(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Ii(e){return e instanceof Xe?e.cases!=null:e instanceof H}function Di(e){return e instanceof Xe?e.fields!=null:e instanceof ne}function Qr(e){return e.fullname.startsWith("System.Tuple")}function Ya(e,t){const r=rr(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function Oi(e){return e.fields==null?[]:e.fields}function Ka(e,t){return e[t[0]]}function h1(e){return e}function eo(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 e.declaringType.construct!=null?new e.declaringType.construct(e.tag,...t):{}}function Xa(e,t){const n=bn(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[o,i],s)=>(r[o]=t[s],r),{})}function Qa(e,t){return e}class Jt{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Ye(this.value)}Equals(t){return t==null?!1:Se(this.value,t instanceof Jt?t.value:t)}CompareTo(t){return t==null?1:Ke(this.value,t instanceof Jt?t.value:t)}}function X(e){return e==null||e instanceof Jt?new Jt(e):e}function z(e){if(e==null)throw new Error("Option has no value");return e instanceof Jt?e.value:e}function Pi(e){return e??void 0}function to(e){return e==null?[]:[z(e)]}function me(e,t){return e!=null?z(e):t}function ec(e,t){return e!=null?z(e):t()}function tc(e,t){return t!=null?X(e(z(t))):void 0}function no(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+ve(n,2)+":"+ve(r,2)}function or(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 nc(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return ve(e.getFullYear(),4)+"-"+ve(e.getMonth()+1,2)+"-"+ve(e.getDate(),2)+"T"+ve(e.getHours(),2)+":"+ve(e.getMinutes(),2)+":"+ve(e.getSeconds(),2)+"."+ve(e.getMilliseconds(),3)+(n?no(e.getTimezoneOffset()*-6e4):"")}}function rc(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+no(t)}function Ri(e,t,n){return t.replace(/(\w)\1*/g,r=>{let o=Number.NaN;switch(r.substring(0,1)){case"y":const i=n?e.getUTCFullYear():e.getFullYear();o=r.length<4?i%100:i;break;case"M":o=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":o=n?e.getUTCDate():e.getDate();break;case"H":o=n?e.getUTCHours():e.getHours();break;case"h":const s=n?e.getUTCHours():e.getHours();o=s>12?s%12:s;break;case"m":o=n?e.getUTCMinutes():e.getMinutes();break;case"s":o=n?e.getUTCSeconds():e.getSeconds();break;case"f":o=n?e.getUTCMilliseconds():e.getMilliseconds();break}return Number.isNaN(o)?r:o<10&&r.length>1?"0"+o:""+o})}function oc(e,t){var n,r,o;const i=new Date(e.getTime()+((n=e.offset)!==null&&n!==void 0?n:0));if(typeof t!="string")return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+no((r=e.offset)!==null&&r!==void 0?r:0);if(t.length===1)switch(t){case"D":case"d":return or(i,"first");case"T":case"t":return or(i,"second");case"O":case"o":return rc(i,(o=e.offset)!==null&&o!==void 0?o:0);default:throw new Error("Unrecognized Date print format")}else return Ri(i,t,!0)}function ic(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?or(e,"first"):e.toLocaleDateString();case"T":case"t":return n?or(e,"second"):e.toLocaleTimeString();case"O":case"o":return nc(e,n);default:throw new Error("Unrecognized Date print format")}else return Ri(e,t,n)}function vn(e,t,n){return e.offset!=null?oc(e,t):ic(e,t)}function St(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Vi(){return St(-621355968e5,0)}function Li(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(o!=null){let i,s=0;if(o[2]!=null){const l=o[2].split(":");s=parseInt(l[0],10)*3600+parseInt(l[1]||"0",10)*60+parseFloat(l[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&(s+=720)}if(o[4]!=null){if(o[1]!=null)i=new Date(o[1]+" UTC");else{const l=new Date;i=new Date(l.getUTCFullYear()+"/"+(l.getUTCMonth()+1)+"/"+l.getUTCDate())}if(o[4]==="Z")r="Z";else{let l=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(l*=-1),r=l,s-=l*60}}else if(o[1]!=null)i=new Date(o[1]);else{const l=new Date;i=new Date(l.getFullYear()+"/"+(l.getMonth()+1)+"/"+l.getDate())}n=new Date(i.getTime()+s*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-i.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function sc(e,t=!1){const[n,r]=Li(e),o=r!=null?t&&r==="Z"?1:2:0;return St(n.getTime(),o)}function Hi(e,t){try{return t.contents=sc(e),!0}catch{return!1}}function Ui(e,t,n,r=0,o=0,i=0,s=0,l){const u=l===1?Date.UTC(e,t-1,n,r,o,i,s):new Date(e,t-1,n,r,o,i,s).getTime();if(isNaN(u))throw new Error("The parameters describe an unrepresentable Date.");const c=St(u,l);return e<=99&&c.setFullYear(e,t-1,n),c}function lc(){return St(Date.now(),2)}function uc(){return St(Date.now(),1)}function ac(){return Bi(lc())}function Gi(e){return e%4===0&&e%100!==0||e%400===0}function cc(e,t){return t===2?Gi(e)?29:28:t>=8?t%2===0?31:30:t%2===0?30:31}function fc(e){return e.kind===1?e:St(e.getTime(),1)}function Bi(e){return Ui(Yt(e),oo(e),ro(e),0,0,0,0,e.kind)}function ro(e){return e.kind===1?e.getUTCDate():e.getDate()}function $c(e){return e.kind===1?e.getUTCHours():e.getHours()}function dc(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function hc(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function oo(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function pc(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Yt(e){return e.kind===1?e.getUTCFullYear():e.getFullYear()}function _c(e,t){const n=St(e.getTime()+t,e.kind);if(e.kind===2){const r=e.getTimezoneOffset(),o=n.getTimezoneOffset();return r!==o?St(n.getTime()+(o-r)*6e4,e.kind):n}else return n}function mc(e,t){return _c(e,t*864e5)}function wc(e,t){const n=oo(e),r=Yt(e)+t,o=cc(r,n),i=Math.min(o,ro(e));return Ui(r,n,i,$c(e),hc(e),pc(e),dc(e),e.kind)}const gc=zr;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 io(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function sr(e,t,n=0){return e.lastIndex=n,e.exec(t)}function ji(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let o,i=-1;for(;(o=e.exec(t))!=null;)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}function yc(e,t,n,r,o=0){function i(){let s=arguments[0];if(r){r--;const l=[],u=arguments.length,c=typeof arguments[u-1]!="string";let f=c?u-3:u-2;for(let a=0;a<f;a++)l.push(arguments[a]);l.index=arguments[f++],l.input=arguments[f++],c&&(l.groups=arguments[f]),s=n(l)}return s}if(typeof e=="string"){const s=e;e=ir(t,r??0),t=s,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,o)+t.substring(o).replace(e,i);if(n=n.replace(/\$0/g,s=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let s;const l=t.substring(o),u=ji(e,l),c=ji.length>r?(s=u[r-1],l.substring(0,s.index+s[0].length)):l;return t.substring(0,o)+c.replace(e,n)+t.substring(o+c.length)}else return t.replace(e,n)}const Sn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,bc=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function zi(e,t){return Sa(e,t)<0}function Kt(e,t,n){function r(i){return i===!0||i===1||i===3||i===5}function o(i){return i===4||i===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 vc(...e){switch(e.length){case 2:return Kt(e[0],e[1],!1);case 3:return Kt(e[0],e[1],e[2]);case 4:return Kt(e[0],e[1],e[2]===!0);case 5:return Kt(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),!1);case 6:return Kt(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),e[5]);case 7:return Kt(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 Ue(e){return{input:e,cont:Cc(e)}}function Wi(e,t){return typeof t=="string"?e(t):t.cont(e)}function ct(e){return Wi(t=>t,e)}function qi(e){return Wi(t=>{throw new Error(t)},e)}function Sc(e,t,n,r,o){let i="";if(t=t||"",o=o||"",di(e))switch(o.toLowerCase()!=="x"&&(zi(e,0)?(e=Zr(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=r==null?null:parseInt(r,10),o){case"f":case"F":r=r??6,e=Yn(e,r);break;case"g":case"G":e=r!=null?Kn(e,r):Kn(e);break;case"e":case"E":e=r!=null?Xn(e,r):Xn(e);break;case"x":e=Qn(e);break;case"X":e=Qn(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=vn(e):e=be(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=i+e;else{const s=t.indexOf("0")>=0,l=t.indexOf("-")>=0,u=l||!s?" ":"0";u==="0"?(e=Cn(e,n-i.length,u,l),e=i+e):e=Cn(i+e,n,u,l)}return e}function Zi(e,t,n,r="",o=-1){return(...i)=>{let s=r;const l=t.slice(),u=n.slice();for(const c of i){const[,,f,a,d,h]=u[0];let p=a;if(o>=0)p=o,o=-1;else if(p==="*"){if(c<0)throw new Error("Non-negative number required");o=c;continue}s+=l[0],s+=Sc(c,f,p,d,h),l.splice(0,1),u.splice(0,1)}return u.length===0?(s+=l[0],e(s)):Zi(e,l,u,s,o)}}function Cc(e){return t=>{Sn.lastIndex=0;const n=[],r=[];let o=0,i=Sn.exec(e);for(;i;){const s=i.index+(i[1]||"").length;n.push(e.substring(o,s).replace(/%%/g,"%")),r.push(i),o=Sn.lastIndex,Sn.lastIndex-=1,i=Sn.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),Zi(t,n,r))}}function Ji(e,...t){return typeof e=="object"&&t.length>0&&(e=t[0],t.shift()),e.replace(bc,(n,r,o,i,s,l)=>{if(r<0||r>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[r];if(di(u))switch(s=s==null?null:parseInt(s,10),i){case"f":case"F":s=s??2,u=Yn(u,s);break;case"g":case"G":u=s!=null?Kn(u,s):Kn(u);break;case"e":case"E":u=s!=null?Xn(u,s):Xn(u);break;case"p":case"P":s=s??2,u=Yn(Zr(u,100),s)+" %";break;case"d":case"D":u=s!=null?lo(String(u),s,"0"):String(u);break;case"x":case"X":u=s!=null?lo(Qn(u),s,"0"):Qn(u),i==="X"&&(u=u.toUpperCase());break;default:if(l){let c="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(f,a,d)=>{zi(u,0)&&(u=Zr(u,-1),c="-"),d=d==null?"":d.substring(1),u=Yn(u,Math.max(d.length,0));let[h,p]=u.split(".");p||(p="");const v=a.replace(/,/g,"").replace(/^#+/,"").length;h=lo(h,v,"0");const w=d.replace(/#+$/,"").length;if(w>p.length?p=xc(p,w,"0"):w<p.length&&(p=p.substring(0,w)+p.substring(w).replace(/0+$/,"")),a.indexOf(",")>0){const y=h.length%3,S=Math.floor(h.length/3);let M=y>0?h.substr(0,y)+(S>0?",":""):"";for(let V=0;V<S;V++)M+=h.substr(y+V*3,3)+(V<S-1?",":"");h=M}return p.length>0?h+"."+p:h}),u=c+u}}else u instanceof Date?u=vn(u,l||i):u=be(u);return o=parseInt((o||" ").substring(1),10),isNaN(o)||(u=Cn(String(u),Math.abs(o)," ",o<0)),u})}function Ec(e){return typeof e!="string"||e.length===0}function so(e){return typeof e!="string"||/^\s*$/.test(e)}function F(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Cn(e,t,n,r){n=n||" ",t=t-e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function lo(e,t,n){return Cn(e,t,n)}function xc(e,t,n){return Cn(e,t,n,!0)}function Yi(e,t,n){return e.replace(new RegExp(io(t),"g"),n)}function Mc(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const o=(r&1)===1,i=(r&2)===2;t=t||[],t=t.filter(f=>f).map(io),t=t.length>0?t:["\\s"];const s=[],l=new RegExp(t.join("|"),"g");let u=!0,c=0;do{const f=l.exec(e);if(f===null){const a=i?e.substring(c).trim():e.substring(c);(!o||a.length>0)&&s.push(a),u=!1}else{const a=i?e.substring(c,f.index).trim():e.substring(c,f.index);(!o||a.length>0)&&(n!=null&&s.length+1===n?(s.push(i?e.substring(c).trim():e.substring(c)),u=!1):s.push(a)),c=l.lastIndex}}while(u);return s}function Fc(e,...t){if(t.length===0)return e.trim();const n="["+io(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function lr(e,t){return t.split("").filter(n=>e(n)).join("")}function Ki(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)}const Tc="The index was outside the range of elements in the collection.",Xi="Collection was empty.";function Qi(e,t){return new Array(t)}function ur(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function En(e,t,n){const r=t.length|0,o=Qi(n,r);for(let i=0;i<=r-1;i++)o[i]=e(t[i]);return o}function Nc(e,t){const n=Qi(t,1);return n[0]=e,n}function kc(e){return e.slice().reverse()}function Ac(e,t){return t.find(e)}function Ic(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const i=e(t[o]);if(i!=null){const s=z(i);r.push(s)}}return r}function ar(e,t,n){return n.reduce(e,t)}function Dc(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class Ge extends ne{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+F("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,i)=>{e:for(;;){const s=o,l=i,u=[s.tail,l.tail];if(u[0]!=null)if(u[1]!=null){const c=u[0],f=u[1];if(Se(s.head,l.head)){o=c,i=f;continue e}else return!1}else return!1;else return u[1]==null}})(n,t)}GetHashCode(){return((r,o,i)=>{e:for(;;){const s=r,l=o,u=i,c=u.tail;if(c!=null){const f=c;if(s>18)return l|0;r=s+1,o=(l<<1)+Ye(u.head)+631*s,i=f;continue e}else return l|0}})(0,0,this)|0}toJSON(t){const n=this;return Array.from(n)}CompareTo(t){return((o,i)=>{e:for(;;){const s=o,l=i,u=[s.tail,l.tail];if(u[0]!=null)if(u[1]!=null){const c=u[0],f=u[1],a=Ke(s.head,l.head)|0;if(a===0){o=c,i=f;continue e}else return a|0}else return 1;else return u[1]!=null?-1:0}})(this,t)|0}GetEnumerator(){return Pc(this)}[Symbol.iterator](){return $n(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return le(this)}}class Oc{constructor(t){this.xs=t,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 t=this,n=t.it.tail;if(n!=null){const r=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=null}Dispose(){}}function Pc(e){return new Oc(e)}function De(){return new Ge(null,void 0)}function xn(e,t){return new Ge(e,t)}function kt(e){return e.tail==null}function es(e){return((n,r)=>{e:for(;;){const o=n,s=r.tail;if(s!=null){n=o+1,r=s;continue e}else return o|0}})(0,e)|0}function At(e){if(e.tail!=null)return e.head;throw new Error(Xi+"\\nParameter name: list")}function Qe(e){const t=e.tail;if(t!=null)return t;throw new Error(Xi+"\\nParameter name: list")}function Rc(e,t){return((r,o)=>{for(;;){const i=o;if(i.tail!=null)return i.head;throw new Error(Tc+"\\nParameter name: index")}})(0,e)}function de(){return De()}function Be(e,t){return xn(e,t)}function he(e){return xn(e,De())}function I(e){return kt(e)}function ts(e){return es(e)}function x(e){return At(e)}function Vc(e){if(!kt(e))return X(At(e))}function A(e){return Qe(e)}function cr(e){const t=es(e)|0,n=ur(new Array(t),0,t,null);return((o,i)=>{e:for(;;){const s=o,l=i;if(!kt(l)){n[s]=At(l),o=s+1,i=Qe(l);continue e}break}})(0,e),n}function It(e,t,n){let r=t,o=n;for(;!kt(o);)r=e(r,At(o)),o=Qe(o);return r}function fr(e){return It((t,n)=>xn(n,t),De(),e)}function Lc(e,t,n){return((o,i,s)=>{e:for(;;){const l=o,u=i,c=s;if(kt(c))return u;o=l+1,i=e(l,u,At(c)),s=Qe(c);continue e}})(0,t,n)}function Hc(e,t){It((n,r)=>{e(r)},void 0,t)}function Z(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=xn(e[r],n);return n}function C(e){return Z(e,De())}function uo(e){let t,n;if(st(e))return C(e);if(e instanceof Ge)return e;{const r=De();let o=r;const i=le(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new Ge(u,void 0),t.tail=n,n)}}finally{L(i)}const s=o,l=De();return s.tail=l,Qe(r)}}function $r(e,t){return It((n,r)=>xn(r,n),t,fr(e))}function Uc(e,t){const n=De(),r=Lc((i,s,l)=>{const u=new Ge(e(i,l),void 0);return s.tail=u,u},n,t),o=De();return r.tail=o,Qe(n)}function dr(e,t){const n=De(),r=It((i,s)=>{const l=new Ge(e(s),void 0);return i.tail=l,l},n,t),o=De();return r.tail=o,Qe(n)}function Mn(e,t){return(r=>{e:for(;;){const o=r;if(kt(o))return;{const i=e(At(o));if(i==null){r=Qe(o);continue e}else return i}}})(t)}function ns(e,t){return((r,o)=>{e:for(;;){const i=r,s=o;if(kt(s))return;if(e(At(s)))return i;r=i+1,o=Qe(s);continue e}})(0,t)}function Gc(e,t){return Rc(t)}function Bc(e,t){const n=De(),r=It((i,s)=>{const l=e(s);if(l==null)return i;{const u=new Ge(z(l),void 0);return i.tail=u,u}},n,t),o=De();return r.tail=o,Qe(n)}function jc(e,t,n){return ns(r=>n.Equals(e,r),t)!=null}function zc(e,t){return ns(e,t)!=null}class rs{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,o=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(o)}}}Dispose(){}}class hr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,hr.prototype)}}class ao{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>ao.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function ft(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new hr);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Jn(n))}});else try{e(t)}catch(n){t.onError(Jn(n))}}}function Wc(e,t){return ft(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(Jn(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function qc(e){return ft(t=>t.onSuccess(e))}class Zc{Bind(t,n){return Wc(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return ft(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let o=r.next();return this.While(()=>!o.done,this.Delay(()=>{const i=n(o.value);return o=r.next(),i}))}Return(t){return qc(t)}ReturnFrom(t){return t}TryFinally(t,n){return ft(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 ft(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(i){r.onError(Jn(i))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return ft(t=>t.onSuccess(void 0))}}const T=new Zc;class $ extends H{constructor(t,...n){super(),this.tag=t|0,this.fields=n}cases(){return["Ok","Error"]}}function je(e,t){return t.tag===0?new $(0,e(t.fields[0])):new $(1,t.fields[0])}function os(e,t){return t.tag===0?e(t.fields[0]):new $(1,t.fields[0])}class is extends H{constructor(t,...n){super(),this.tag=t|0,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function Jc(e){return new is(0,e)}function Yc(e){return new is(1,e)}function co(e){}function ss(e){return new rs(!1)}function ls(e){e.cancel()}function Kc(e){return e!=null&&e.isCancelled}const Xc=new rs;function Qc(e){return ft(t=>{e({onSuccess:n=>t.onSuccess(Jc(n)),onError:n=>t.onSuccess(Yc(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function ef(e){return ft(t=>e([t.onSuccess,t.onError,t.onCancel]))}function tf(e){return ft(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new hr)})})}function nf(e,t){return rf(e,t)}function fo(e,t){return nf(e,t)}function rf(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const i=new ao;e({onSuccess:t||co,onError:co,onCancel:co,cancelToken:o||Xc,trampoline:i})}class of{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function sf(e,t){t.Subscribe(new of(e))}class lf{constructor(){this.delegates=[]}Add(t){this._addHandler(t)}get Publish(){return this}Trigger(t,n){let r,o;n===void 0?(r=null,o=t):(r=t,o=n),this.delegates.forEach(i=>i.length===1?i(o):i(r,o))}AddHandler(t){this._addHandler(t)}RemoveHandler(t){this._removeHandler(t)}Subscribe(t){const n=typeof t=="function"?t:t.OnNext;return this._addHandler(n),{Dispose:()=>{this._removeHandler(n)}}}_addHandler(t){this.delegates.push(t)}_removeHandler(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}}class uf{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 lf}Elapsed(){return this._elapsed}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 af(e,t){console.error(X(e),t)}function cf(e,t){let n,r=new uf(e);r.AutoReset=!1,n=r,sf(t,n.Elapsed()),n.Enabled=!0,n.Start()}function us(e,t){Hc(n=>{n(e)},t)}function Q(){return de()}function Fn(e){return he(t=>{t(e)})}function as(e,t,n,r,o){return he(i=>{e(T.Delay(()=>T.Bind(Qc(t(n)),s=>{const l=s;return i(l.tag===1?o(l.fields[0]):r(l.fields[0])),T.Zero()})))})}function cs(e){cf(0,t=>{fo(e)})}function ff(e){return{Compare(t,n){return e(t,n)}}}function $f(){return ff(Ke)}function $o(){return $f()}function df(e){throw new Error(e)}const hf="Enumeration already finished.",pf="Enumeration has not started. Call MoveNext.",fs="The input sequence has an insufficient number of elements.",_f="Reset is not supported on this enumerator.";function mf(){throw new Error(_f)}function ho(){throw new Error(pf)}function po(){throw new Error(hf)}class wf{constructor(t){this.f=t}toString(){const t=this,n=4;let r=0,o="seq [";const i=le(t);try{for(;r<n&&i["System.Collections.IEnumerator.MoveNext"]();)r>0&&(o=o+"; "),o=o+be(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),r=r+1|0;return r===n&&(o=o+"; ..."),o+"]"}finally{L(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return $n(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function gf(e){return new wf(e)}class yf{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"(){mf()}Dispose(){this.dispose()}}function pr(e,t,n){return new yf(e,t,n)}function bf(e){let t,n,r=!1,o=!1,i;const s=()=>{if(o=!0,n!=null){const l=n;try{L(l)}finally{n=void 0}}if(t!=null){const l=t;try{L(l)}finally{t=void 0}}};return pr(()=>(r?o&&po():ho(),i!=null?z(i):po()),()=>{let l;if(r||(r=!0),o)return!1;{let u;for(;u==null;){const c=[t,n];if(c[0]!=null)if(c[1]!=null){const f=c[1];if(f["System.Collections.IEnumerator.MoveNext"]())i=X(f["System.Collections.Generic.IEnumerator`1.get_Current"]()),u=!0;else try{L(f)}finally{n=void 0}}else{const f=c[0];f["System.Collections.IEnumerator.MoveNext"]()?n=(l=f["System.Collections.Generic.IEnumerator`1.get_Current"](),le(l)):(s(),u=!1)}else t=le(e)}return z(u)}},()=>{o||s()})}function vf(e,t){return pr(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{L(t)}finally{}})}function $s(e,t,n){let r=!1,o,i=X(e());const s=()=>{if(i!=null){const u=z(i);try{n(u)}finally{i=void 0}}},l=()=>{try{s()}finally{o=void 0}};return pr(()=>(r||ho(),o!=null?z(o):po()),()=>{if(r||(r=!0),i!=null){const u=z(i);let c;try{c=t(u)}catch(f){throw l(),f}return c!=null?(o=c,!0):(l(),!1)}else return!1},s)}function Sf(e,t){let n,r=t;return pr(()=>{if(n!=null){const o=n[0];return n[1],o}else return ho()},()=>(n=e(r),n!=null?(n[0],r=n[1],!0):!1),()=>{})}function Cf(e,t){t==null&&df(e)}function Xt(e){return gf(e)}function $t(e){return Cf("source",e),le(e)}function _(e){return Xt(()=>le(e()))}function _o(e){return Xt(()=>bf(e))}function Ef(e,t){return Xt(()=>Sf(e,t))}function _r(){return _(()=>new Array(0))}function m(e){return _(()=>Nc(e))}function p1(e){return e}function xf(e){return e instanceof Ge?cr(e):Array.from(e)}function K(e){return st(e)?C(e):e instanceof Ge?e:uo(e)}function ds(e,t,n){return Xt(()=>$s(e,t,n))}function hs(e,t,n){return Xt(()=>{let r=-1;return $s(e,o=>(r=r+1|0,t(r,o)),n)})}function g(e,t){return _o([e,t])}function Mf(e,t){return ds(()=>$t(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 Ff(e,t,n){const r=$t(t);try{const o=$t(n);try{let i=0,s=r["System.Collections.IEnumerator.MoveNext"](),l=o["System.Collections.IEnumerator.MoveNext"]();for(;i===0&&s&&l;)i=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,i===0&&(s=r["System.Collections.IEnumerator.MoveNext"](),l=o["System.Collections.IEnumerator.MoveNext"]());return(i!==0?i:s?1:l?-1:0)|0}finally{L(o)}}finally{L(r)}}function Dt(e,t,n){const r=$t(t);try{let o=!1;for(;!o&&r["System.Collections.IEnumerator.MoveNext"]();)o=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{L(r)}}function Tf(e,t){return Mf(n=>{if(e(n))return X(n)},t)}function Tn(e,t,n){const r=$t(n);try{let o=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)o=e(o,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{L(r)}}function Nn(e,t){Tn((n,r)=>{e(r)},void 0,t)}function Nf(e,t){Tn((n,r)=>(e(n,r),n+1|0),0,t)}function ce(e,t){return ds(()=>$t(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?X(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{L(n)})}function kf(e,t){return hs(()=>$t(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?X(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{L(n)})}function Af(e){return _(()=>kc(xf(e)))}function If(e,t){return Xt(()=>{const n=$t(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(fs+"\\nParameter name: source");return vf(()=>{},n)}catch(r){throw L(n),r}})}function Df(e,t){return hs(()=>$t(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return X(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(fs+"\\nParameter name: source")}else return},n=>{L(n)})}function mo(e,t){return _(()=>_o(ce(e,t)))}function Of(e,t,n,r){const o=Ke(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const i=o>0;return s=>{const l=Ke(s,t)|0;return i&&l<=0||!i&&l>=0?[s,r(s,e)]:void 0}}function Pf(e,t,n,r,o){const i=Of(t,n,r,o);return _(()=>Ef(i,e))}function Rf(e,t,n){return Pf(e,t,n,0,(r,o)=>r+o)}class Qt extends H{constructor(t,...n){super(),this.tag=t|0,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Vf{constructor(t){this.state=new Qt(0,ur(new Array(fi(Wr,t,10)),0,fi(Wr,t,10),null),0)}}function Lf(e){return new Vf(e)}function Hf(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,o=t.fields[0],i=(r+1)%o.length|0;return i===n?e.state=new Qt(0,o,n):e.state=new Qt(1,o,n,i),X(o[r])}else return}function Uf(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,o=n.fields[2]|0,i=n.fields[0];i[r]=t;const s=(r+1)%i.length|0;s===o?e.state=new Qt(1,Gf(e,o,i),i.length,0):e.state=new Qt(1,i,s,o)}else{const r=n.fields[1]|0,o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new Qt(1,o,i,r)}}function Gf(e,t,n){return Array.from(_(()=>g(If(t,n),_(()=>g(Df(t,n),_(()=>mo(r=>m(null),Rf(0,1,n.length))))))))}class ps extends ne{constructor(t,n,r,o,i,s,l){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=i,this.onError=s,this.syncDispatch=l}}function Bf(e,t,n){return new ps(e,t,r=>Q(),n,N(2,r=>{const o=B(1,n,[r]);return i=>{o(i)}}),r=>{af(r[0],r[1])},N(2,r=>r))}function jf(e,t){return new ps(t.init,t.update,t.subscribe,t.view,e,t.onError,t.syncDispatch)}function zf(e,t){const n=t.init(e),r=n[0],o=Lf(10);let i=!1,s=r;const l=c=>{if(i)Uf(o,c);else{i=!0;let f=X(c);for(;f!=null;){const a=z(f);try{const d=t.update(a,s),h=d[0];t.setState(h,u),us(u,d[1]),s=h}catch(d){t.onError([ct(Ue("Unable to process the message: %A"))(a),d])}f=Hf(o)}i=!1}},u=B(1,t.syncDispatch,[l]);t.setState(r,u),us(u,$r((()=>{try{return t.subscribe(r)}catch(c){return t.onError(["Unable to subscribe:",c]),Q()}})(),n[1]))}var kn,D,_s,Ot,ms,ws,wo,go,yo,bo,gs,An={},ys=[],Wf=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,mr=Array.isArray;function dt(e,t){for(var n in t)e[n]=t[n];return e}function bs(e){var t=e.parentNode;t&&t.removeChild(e)}function b(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?kn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return In(e,s,r,o,null)}function In(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++_s,__i:-1,__u:0};return o==null&&D.vnode!=null&&D.vnode(i),i}function qf(){return{current:null}}function ht(e){return e.children}function et(e,t){this.props=e,this.context=t}function Pt(e,t){if(t==null)return e.__?Pt(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"?Pt(e):null}function vs(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 vs(e)}}function vo(e){(!e.__d&&(e.__d=!0)&&Ot.push(e)&&!wr.__r++||ms!==D.debounceRendering)&&((ms=D.debounceRendering)||ws)(wr)}function wr(){var e,t,n,r,o,i,s,l;for(Ot.sort(wo);e=Ot.shift();)e.__d&&(t=Ot.length,r=void 0,i=(o=(n=e).__v).__e,s=[],l=[],n.__P&&((r=dt({},o)).__v=o.__v+1,D.vnode&&D.vnode(r),So(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,s,i??Pt(o),!!(32&o.__u),l),r.__v=o.__v,r.__.__k[r.__i]=r,Ms(s,r,l),r.__e!=i&&vs(r)),Ot.length>t&&Ot.sort(wo));wr.__r=0}function Ss(e,t,n,r,o,i,s,l,u,c,f){var a,d,h,p,v,w=r&&r.__k||ys,y=t.length;for(n.__d=u,Zf(n,t,w),u=n.__d,a=0;a<y;a++)(h=n.__k[a])!=null&&typeof h!="boolean"&&typeof h!="function"&&(d=h.__i===-1?An:w[h.__i]||An,h.__i=a,So(e,h,d,o,i,s,l,u,c,f),p=h.__e,h.ref&&d.ref!=h.ref&&(d.ref&&Co(d.ref,null,h),f.push(h.ref,h.__c||p,h)),v==null&&p!=null&&(v=p),65536&h.__u||d.__k===h.__k?u=Cs(h,u,e):typeof h.type=="function"&&h.__d!==void 0?u=h.__d:p&&(u=p.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=u,n.__e=v}function Zf(e,t,n){var r,o,i,s,l,u=t.length,c=n.length,f=c,a=0;for(e.__k=[],r=0;r<u;r++)s=r+a,(o=e.__k[r]=(o=t[r])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?In(null,o,null,null,null):mr(o)?In(ht,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?In(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,l=Jf(o,n,s,f),o.__i=l,i=null,l!==-1&&(f--,(i=n[l])&&(i.__u|=131072)),i==null||i.__v===null?(l==-1&&a--,typeof o.type!="function"&&(o.__u|=65536)):l!==s&&(l==s-1?a--:l==s+1?a++:l>s?f>u-s?a+=l-s:a--:l<s&&(l==s-a?a-=l-s:a++),l!==r+a&&(o.__u|=65536))):(i=n[s])&&i.key==null&&i.__e&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=Pt(i)),Eo(i,i,!1),n[s]=null,f--);if(f)for(r=0;r<c;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=Pt(i)),Eo(i,i))}function Cs(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=Cs(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Pt(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function pt(e,t){return t=t||[],e==null||typeof e=="boolean"||(mr(e)?e.some(function(n){pt(n,t)}):t.push(e)),t}function Jf(e,t,n,r){var o=e.key,i=e.type,s=n-1,l=n+1,u=t[n];if(u===null||u&&o==u.key&&i===u.type&&!(131072&u.__u))return n;if(r>(u!=null&&!(131072&u.__u)?1:0))for(;s>=0||l<t.length;){if(s>=0){if((u=t[s])&&!(131072&u.__u)&&o==u.key&&i===u.type)return s;s--}if(l<t.length){if((u=t[l])&&!(131072&u.__u)&&o==u.key&&i===u.type)return l;l++}}return-1}function Es(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Wf.test(t)?n:n+"px"}function gr(e,t,n,r,o){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Es(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Es(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=go,e.addEventListener(t,i?bo:yo,i)):e.removeEventListener(t,i?bo:yo,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function xs(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=go++;else if(t.t<n.u)return;return n(D.event?D.event(t):t)}}}function So(e,t,n,r,o,i,s,l,u,c){var f,a,d,h,p,v,w,y,S,M,V,wt,Ne,gt,Ur,oi,it=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(u=!!(32&n.__u),i=[l=t.__e=n.__e]),(f=D.__b)&&f(t);e:if(typeof it=="function")try{if(y=t.props,S="prototype"in it&&it.prototype.render,M=(f=it.contextType)&&r[f.__c],V=f?M?M.props.value:f.__:r,n.__c?w=(a=t.__c=n.__c).__=a.__E:(S?t.__c=a=new it(y,V):(t.__c=a=new et(y,V),a.constructor=it,a.render=Kf),M&&M.sub(a),a.props=y,a.state||(a.state={}),a.context=V,a.__n=r,d=a.__d=!0,a.__h=[],a._sb=[]),S&&a.__s==null&&(a.__s=a.state),S&&it.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=dt({},a.__s)),dt(a.__s,it.getDerivedStateFromProps(y,a.__s))),h=a.props,p=a.state,a.__v=t,d)S&&it.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),S&&a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(S&&it.getDerivedStateFromProps==null&&y!==h&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(y,V),!a.__e&&(a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(y,a.__s,V)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(a.props=y,a.state=a.__s,a.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(Gr){Gr&&(Gr.__=t)}),wt=0;wt<a._sb.length;wt++)a.__h.push(a._sb[wt]);a._sb=[],a.__h.length&&s.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(y,a.__s,V),S&&a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(h,p,v)})}if(a.context=V,a.props=y,a.__P=e,a.__e=!1,Ne=D.__r,gt=0,S){for(a.state=a.__s,a.__d=!1,Ne&&Ne(t),f=a.render(a.props,a.state,a.context),Ur=0;Ur<a._sb.length;Ur++)a.__h.push(a._sb[Ur]);a._sb=[]}else do a.__d=!1,Ne&&Ne(t),f=a.render(a.props,a.state,a.context),a.state=a.__s;while(a.__d&&++gt<25);a.state=a.__s,a.getChildContext!=null&&(r=dt(dt({},r),a.getChildContext())),S&&!d&&a.getSnapshotBeforeUpdate!=null&&(v=a.getSnapshotBeforeUpdate(h,p)),Ss(e,mr(oi=f!=null&&f.type===ht&&f.key==null?f.props.children:f)?oi:[oi],t,n,r,o,i,s,l,u,c),a.base=t.__e,t.__u&=-161,a.__h.length&&s.push(a),w&&(a.__E=a.__=null)}catch(Gr){if(t.__v=null,u||i!=null){for(t.__u|=u?160:32;l&&l.nodeType===8&&l.nextSibling;)l=l.nextSibling;i[i.indexOf(l)]=null,t.__e=l}else t.__e=n.__e,t.__k=n.__k;D.__e(Gr,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Yf(n.__e,t,n,r,o,i,s,u,c);(f=D.diffed)&&f(t)}function Ms(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Co(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(i){i.call(o)})}catch(i){D.__e(i,o.__v)}})}function Yf(e,t,n,r,o,i,s,l,u){var c,f,a,d,h,p,v,w=n.props,y=t.props,S=t.type;if(S==="svg"?o="http://www.w3.org/2000/svg":S==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(c=0;c<i.length;c++)if((h=i[c])&&"setAttribute"in h==!!S&&(S?h.localName===S:h.nodeType===3)){e=h,i[c]=null;break}}if(e==null){if(S===null)return document.createTextNode(y);e=document.createElementNS(o,S,y.is&&y),i=null,l=!1}if(S===null)w===y||l&&e.data===y||(e.data=y);else{if(i=i&&kn.call(e.childNodes),w=n.props||An,!l&&i!=null)for(w={},c=0;c<e.attributes.length;c++)w[(h=e.attributes[c]).name]=h.value;for(c in w)if(h=w[c],c!="children"){if(c=="dangerouslySetInnerHTML")a=h;else if(c!=="key"&&!(c in y)){if(c=="value"&&"defaultValue"in y||c=="checked"&&"defaultChecked"in y)continue;gr(e,c,null,h,o)}}for(c in y)h=y[c],c=="children"?d=h:c=="dangerouslySetInnerHTML"?f=h:c=="value"?p=h:c=="checked"?v=h:c==="key"||l&&typeof h!="function"||w[c]===h||gr(e,c,h,w[c],o);if(f)l||a&&(f.__html===a.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(a&&(e.innerHTML=""),Ss(e,mr(d)?d:[d],t,n,r,S==="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&Pt(n,0),l,u),i!=null)for(c=i.length;c--;)i[c]!=null&&bs(i[c]);l||(c="value",p!==void 0&&(p!==e[c]||S==="progress"&&!p||S==="option"&&p!==w[c])&&gr(e,c,p,w[c],o),c="checked",v!==void 0&&v!==e[c]&&gr(e,c,v,w[c],o))}return e}function Co(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 Eo(e,t,n){var r,o;if(D.unmount&&D.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Co(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){D.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Eo(r[o],t,n||typeof e.type!="function");n||e.__e==null||bs(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Kf(e,t,n){return this.constructor(e,n)}function Ct(e,t,n){var r,o,i,s;D.__&&D.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],So(t,e=(!r&&n||t).__k=b(ht,null,[e]),o||An,An,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?kn.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),Ms(i,e,s)}function xo(e,t){Ct(e,t,xo)}function Mo(e,t,n){var r,o,i,s,l=dt({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:l[i]=t[i]===void 0&&s!==void 0?s[i]:t[i];return arguments.length>2&&(l.children=arguments.length>3?kn.call(arguments,2):n),In(e.type,l,r||e.key,o||e.ref,null)}function Xf(e,t){var n={__c:t="__cC"+gs++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[t]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.some(function(l){l.__e=!0,vo(l)})},this.sub=function(s){o.push(s);var l=s.componentWillUnmount;s.componentWillUnmount=function(){o&&o.splice(o.indexOf(s),1),l&&l.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}kn=ys.slice,D={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(l){e=l}throw e}},_s=0,et.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=dt({},this.state),typeof e=="function"&&(e=e(dt({},n),this.props)),e&&dt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),vo(this))},et.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),vo(this))},et.prototype.render=ht,Ot=[],ws=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,wo=function(e,t){return e.__v.__b-t.__v.__b},wr.__r=0,go=0,yo=xs(!1),bo=xs(!0),gs=0;var Et,W,Fo,Fs,en=0,Ts=[],J=D,Ns=J.__b,ks=J.__r,As=J.diffed,Is=J.__c,Ds=J.unmount,Os=J.__;function tn(e,t){J.__h&&J.__h(W,e,en||t),en=0;var n=W.__H||(W.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function yr(e){return en=1,To(Gs,e)}function To(e,t,n){var r=tn(Et++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Gs(void 0,t),function(l){var u=r.__N?r.__N[0]:r.__[0],c=r.t(u,l);u!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=W,!W.u)){var o=function(l,u,c){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(d){return!!d.__c});if(f.every(function(d){return!d.__N}))return!i||i.call(this,l,u,c);var a=!1;return f.forEach(function(d){if(d.__N){var h=d.__[0];d.__=d.__N,d.__N=void 0,h!==d.__[0]&&(a=!0)}}),!(!a&&r.__c.props===l)&&(!i||i.call(this,l,u,c))};W.u=!0;var i=W.shouldComponentUpdate,s=W.componentWillUpdate;W.componentWillUpdate=function(l,u,c){if(this.__e){var f=i;i=void 0,o(l,u,c),i=f}s&&s.call(this,l,u,c)},W.shouldComponentUpdate=o}return r.__N||r.__}function Dn(e,t){var n=tn(Et++,3);!J.__s&&ko(n.__H,t)&&(n.__=e,n.i=t,W.__H.__h.push(n))}function nn(e,t){var n=tn(Et++,4);!J.__s&&ko(n.__H,t)&&(n.__=e,n.i=t,W.__h.push(n))}function br(e){return en=5,vr(function(){return{current:e}},[])}function Ps(e,t,n){en=6,nn(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 vr(e,t){var n=tn(Et++,7);return ko(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Rs(e,t){return en=8,vr(function(){return e},t)}function Vs(e){var t=W.context[e.__c],n=tn(Et++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(W)),t.props.value):e.__}function Ls(e,t){J.useDebugValue&&J.useDebugValue(t?t(e):e)}function Hs(){var e=tn(Et++,11);if(!e.__){for(var t=W.__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 Qf(){for(var e;e=Ts.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Sr),e.__H.__h.forEach(No),e.__H.__h=[]}catch(t){e.__H.__h=[],J.__e(t,e.__v)}}J.__b=function(e){W=null,Ns&&Ns(e)},J.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Os&&Os(e,t)},J.__r=function(e){ks&&ks(e),Et=0;var t=(W=e.__c).__H;t&&(Fo===W?(t.__h=[],W.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Sr),t.__h.forEach(No),t.__h=[],Et=0)),Fo=W},J.diffed=function(e){As&&As(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ts.push(t)!==1&&Fs===J.requestAnimationFrame||((Fs=J.requestAnimationFrame)||e$)(Qf)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Fo=W=null},J.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Sr),n.__h=n.__h.filter(function(r){return!r.__||No(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],J.__e(r,n.__v)}}),Is&&Is(e,t)},J.unmount=function(e){Ds&&Ds(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Sr(r)}catch(o){t=o}}),n.__H=void 0,t&&J.__e(t,n.__v))};var Us=typeof requestAnimationFrame=="function";function e$(e){var t,n=function(){clearTimeout(r),Us&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Us&&(t=requestAnimationFrame(n))}function Sr(e){var t=W,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),W=t}function No(e){var t=W;e.__c=e.__(),W=t}function ko(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Gs(e,t){return typeof t=="function"?t(e):t}function Bs(e,t){for(var n in t)e[n]=t[n];return e}function Ao(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 Io(e,t){this.props=e,this.context=t}function t$(e,t){function n(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:Ao(this.props,o)}function r(o){return this.shouldComponentUpdate=n,b(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Io.prototype=new et).isPureReactComponent=!0,Io.prototype.shouldComponentUpdate=function(e,t){return Ao(this.props,e)||Ao(this.state,t)};var js=D.__b;D.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),js&&js(e)};var n$=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function r$(e){function t(n){var r=Bs({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=n$,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var zs=function(e,t){return e==null?null:pt(pt(e).map(t))},o$={map:zs,forEach:zs,count:function(e){return e?pt(e).length:0},only:function(e){var t=pt(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:pt},i$=D.__e;D.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}i$(e,t,n,r)};var Ws=D.unmount;function qs(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=Bs({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return qs(r,t,n)})),e}function Zs(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Zs(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 Cr(){this.__u=0,this.t=null,this.__b=null}function Js(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function s$(e){var t,n,r;function o(i){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return b(n,i)}return o.displayName="Lazy",o.__f=!0,o}function On(){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),Ws&&Ws(e)},(Cr.prototype=new et).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Js(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(l):l())};n.__R=s;var l=function(){if(!--r.__u){if(r.state.__a){var u=r.state.__a;r.__v.__k[0]=Zs(u,u.__c.__P,u.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.t.pop();)c.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Cr.prototype.componentWillUnmount=function(){this.t=[]},Cr.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]=qs(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&b(ht,null,e.fallback);return o&&(o.__u&=-33),[b(ht,null,t.__a?null:e.children),o]};var Ys=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 l$(e){return this.getChildContext=function(){return e.context},e.children}function u$(e){var t=this,n=e.i;t.componentWillUnmount=function(){Ct(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)}}),Ct(b(l$,{context:t.context},e.__v),t.l)}function a$(e,t){var n=b(u$,{__v:e,i:t});return n.containerInfo=t,n}(On.prototype=new et).__a=function(e){var t=this,n=Js(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Ys(t,e,r)):o()};n?n(i):i()}},On.prototype.render=function(e){this.u=null,this.o=new Map;var t=pt(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},On.prototype.componentDidUpdate=On.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Ys(e,n,t)})};var Ks=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,c$=/^(?: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]/,f$=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,$$=/[A-Z0-9]/g,d$=typeof document<"u",h$=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function p$(e,t,n){return t.__k==null&&(t.textContent=""),Ct(e,t),typeof n=="function"&&n(),e?e.__c:null}function _$(e,t,n){return xo(e,t),typeof n=="function"&&n(),e?e.__c:null}et.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(et.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Xs=D.event;function m$(){}function w$(){return this.cancelBubble}function g$(){return this.defaultPrevented}D.event=function(e){return Xs&&(e=Xs(e)),e.persist=m$,e.isPropagationStopped=w$,e.isDefaultPrevented=g$,e.nativeEvent=e};var Do,y$={enumerable:!1,configurable:!0,get:function(){return this.class}},Qs=D.vnode;D.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var s in n){var l=n[s];if(!(s==="value"&&"defaultValue"in n&&l==null||d$&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var u=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&l===!0?l="":u==="translate"&&l==="no"?l=!1:u[0]==="o"&&u[1]==="n"?u==="ondoubleclick"?s="ondblclick":u!=="onchange"||r!=="input"&&r!=="textarea"||h$(n.type)?u==="onfocus"?s="onfocusin":u==="onblur"?s="onfocusout":f$.test(s)&&(s=u):u=s="oninput":i&&c$.test(s)?s=s.replace($$,"-$&").toLowerCase():l===null&&(l=void 0),u==="oninput"&&o[s=u]&&(s="oninputCapture"),o[s]=l}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=pt(n.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=pt(n.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",y$)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Ks,Qs&&Qs(e)};var el=D.__r;D.__r=function(e){el&&el(e),Do=e.__c};var tl=D.diffed;D.diffed=function(e){tl&&tl(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),Do=null};var b$={ReactCurrentDispatcher:{current:{readContext:function(e){return Do.__n[e.__c].props.value},useCallback:Rs,useContext:Vs,useDebugValue:Ls,useDeferredValue:rl,useEffect:Dn,useId:Hs,useImperativeHandle:Ps,useInsertionEffect:il,useLayoutEffect:nn,useMemo:vr,useReducer:To,useRef:br,useState:yr,useSyncExternalStore:sl,useTransition:ol}}};function v$(e){return b.bind(null,e)}function Er(e){return!!e&&e.$$typeof===Ks}function S$(e){return Er(e)&&e.type===ht}function C$(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function E$(e){return Er(e)?Mo.apply(null,arguments):e}function x$(e){return!!e.__k&&(Ct(null,e),!0)}function M$(e){return e&&(e.base||e.nodeType===1&&e)||null}var F$=function(e,t){return e(t)},T$=function(e,t){return e(t)},N$=ht;function nl(e){e()}function rl(e){return e}function ol(){return[!1,nl]}var il=nn,k$=Er;function sl(e,t){var n=t(),r=yr({h:{__:n,v:t}}),o=r[0].h,i=r[1];return nn(function(){o.__=n,o.v=t,Oo(o)&&i({h:o})},[e,n,t]),Dn(function(){return Oo(o)&&i({h:o}),e(function(){Oo(o)&&i({h:o})})},[e]),n}function Oo(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var A$={useState:yr,useId:Hs,useReducer:To,useEffect:Dn,useLayoutEffect:nn,useInsertionEffect:il,useTransition:ol,useDeferredValue:rl,useSyncExternalStore:sl,startTransition:nl,useRef:br,useImperativeHandle:Ps,useMemo:vr,useCallback:Rs,useContext:Vs,useDebugValue:Ls,version:"17.0.2",Children:o$,render:p$,hydrate:_$,unmountComponentAtNode:x$,createPortal:a$,createElement:b,createContext:Xf,createFactory:v$,cloneElement:E$,createRef:qf,Fragment:ht,isValidElement:Er,isElement:k$,isFragment:S$,isMemo:C$,findDOMNode:M$,Component:et,PureComponent:Io,memo:t$,forwardRef:r$,flushSync:T$,unstable_batchedUpdates:F$,StrictMode:N$,Suspense:Cr,SuspenseList:On,lazy:s$,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:b$};const I$=(e,t)=>{Dn(()=>{const n=e();return()=>{n.Dispose()}},t)},D$=e=>{nn(()=>{const t=e();return()=>{t.Dispose()}})},O=A$,ll=I$,O$=D$;function xr(e){return{Dispose(){e()}}}function ul(e){return O.useState(e)}function al(e,t){ll(e,t)}function P$(e){O$(t=>(e(),xr(()=>{})))}function Po(e){V$(e,[])}function R$(e){al(e,[])}function V$(e,t){ll(n=>(e(),xr(()=>{})),t)}function L$(e,t){const n=me(t,[]);return O.useCallback(e,n)}function cl(e){return O.useRef(e)}function H$(e){const t=cl(e),n=L$(r=>t.current(r),[]);return P$(()=>{t.current=e}),n}function U$(e){return O.useState(e)}class G${constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function B$(){return new G$}function j$(e){return e.state}function z$(e){return e.hasDisposedOnce}function W$(e,t,n){e.state=X(t),e.dispatcher=n;const r=e.listener;r!=null&&r(t)}function q$(e,t){const n=e.dispatcher;n!=null&&n(t)}function Z$(e,t){e.listener==null&&(e.listener=t)}function J$(e){const t=e.state;if(t!=null){const n=z(t);si(n)&&L(n)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}function fl(e,t,n,r){zf(t,jf((i,s)=>{W$(n,i,s)},e()));const o=j$(n);if(o!=null)return z(o);throw new Error("Elmish program has not initialized")}function Y$(e,t,n){const r=ul(B$)[0],o=ul(()=>fl(e,t,r)),i=o[1];return al(()=>(z$(r)&&i(fl(e,t,r)),xr(()=>{J$(r)})),me(n,[])),Z$(r,i),[o[0],s=>{q$(r,s)}]}function K$(e,t){return Y$(e,void 0,t)}function $l(e,t,n){return K$(()=>Bf(()=>e,t,(r,o)=>{}),n)}function Ro(){return(Ro=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 X$=["context","children"];function Q$(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,s,l={},u=Object.keys(r);for(s=0;s<u.length;s++)o.indexOf(i=u[s])>=0||(l[i]=r[i]);return l}(e,X$);return Mo(t,n)}function ed(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=b(Q$,Ro({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],i={},s=0,l=n.attributes,u=n.childNodes;for(s=l.length;s--;)l[s].name!=="slot"&&(i[l[s].name]=l[s].value,i[dl(l[s].name)]=l[s].value);for(s=u.length;s--;){var c=t(u[s],null),f=u[s].slot;f?i[f]=b(hl,{name:f},c):o[s]=c}var a=r?b(hl,null,o):o;return b(r||n.nodeName.toLowerCase(),i,a)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?xo:Ct)(this._vdom,this._root)}function dl(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function td(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[dl(e)]=n,this._vdom=Mo(this._vdom,r),Ct(this._vdom,this._root)}}function nd(){Ct(this._vdom=null,this._root)}function hl(e,t){var n=this;return b("slot",Ro({},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 rd(e,t,n,r){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=r&&r.shadow?i.attachShadow({mode:r.mode||"open"}):i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=ed,o.prototype.attributeChangedCallback=td,o.prototype.disconnectedCallback=nd,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(s){this._vdom?this.attributeChangedCallback(i,null,s):(this._props||(this._props={}),this._props[i]=s,this.connectedCallback());var l=typeof s;s!=null&&l!=="string"&&l!=="boolean"&&l!=="number"||this.setAttribute(i,s)}})}),customElements.define(t||e.tagName||e.displayName||e.name,o)}class Pn extends H{constructor(t,...n){super(),this.tag=t|0,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class pl extends H{constructor(t,...n){super(),this.tag=t|0,this.fields=n}cases(){return["Header"]}}class Vo extends H{constructor(t,...n){super(),this.tag=t|0,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Rn extends ne{constructor(t,n,r,o,i,s,l,u){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=i,this.overridenResponseType=s,this.timeout=l,this.content=u}}class rn extends H{constructor(t,...n){super(),this.tag=t|0,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class _l extends ne{constructor(t,n,r,o,i){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseHeaders=o,this.content=i}}class ml{constructor(t,n){this.k=t,this.v=n}}function Mr(e,t){return new ml(e,t)}function we(e){return e.k}function Ee(e){return e.v}class ue extends ml{constructor(t,n,r,o,i){super(t,n),this.left=r,this.right=o,this.h=i|0}}function Fr(e,t,n,r,o){return new ue(e,t,n,r,o)}function ge(e){return e.left}function ye(e){return e.right}function Rt(e){return e.h}function _1(){}function wl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=r;if(o instanceof ue){e=wl(n+1,ge(o)),t=ye(o);continue e}else return n+1|0}else return n|0}}function od(e){return wl(0,e)}function ze(e,t,n,r){let o;const i=e;if(i!=null){const c=i;o=c instanceof ue?Rt(c):1}else o=0;let s;const l=r;if(l!=null){const c=l;s=c instanceof ue?Rt(c):1}else s=0;const u=(o<s?s:o)|0;return u===0?Mr(t,n):Fr(t,n,e,r,u+1)}function gl(e,t,n,r){let o,i,s,l,u;const c=e;if(c!=null){const d=c;u=d instanceof ue?Rt(d):1}else u=0;let f;const a=r;if(a!=null){const d=a;f=d instanceof ue?Rt(d):1}else f=0;if(f>u+2){const d=z(r);if(d instanceof ue)if(o=ge(d),(o!=null?(i=o,i instanceof ue?Rt(i):1):0)>u+1){const h=z(ge(d));if(h instanceof ue)return ze(ze(e,t,n,ge(h)),we(h),Ee(h),ze(ye(h),we(d),Ee(d),ye(d)));throw new Error("internal error: Map.rebalance")}else return ze(ze(e,t,n,ge(d)),we(d),Ee(d),ye(d));else throw new Error("internal error: Map.rebalance")}else if(u>f+2){const d=z(e);if(d instanceof ue)if(s=ye(d),(s!=null?(l=s,l instanceof ue?Rt(l):1):0)>f+1){const h=z(ye(d));if(h instanceof ue)return ze(ze(ge(d),we(d),Ee(d),ge(h)),we(h),Ee(h),ze(ye(h),t,n,r));throw new Error("internal error: Map.rebalance")}else return ze(ge(d),we(d),Ee(d),ze(ye(d),t,n,r));else throw new Error("internal error: Map.rebalance")}else return ze(e,t,n,r)}function on(e,t,n,r){if(r!=null){const o=r,i=e.Compare(t,we(o))|0;return o instanceof ue?i<0?gl(on(e,t,n,ge(o)),we(o),Ee(o),ye(o)):i===0?Fr(t,n,ge(o),ye(o),Rt(o)):gl(ge(o),we(o),Ee(o),on(e,t,n,ye(o))):i<0?Fr(t,n,void 0,r,2):i===0?Mr(t,n):Fr(t,n,r,void 0,2)}else return Mr(t,n)}function yl(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=i,l=r.Compare(o,we(s))|0;if(l===0)return X(Ee(s));if(s instanceof ue){e=r,t=o,n=l<0?ge(s):ye(s);continue e}else return}else return}}function id(e,t,n){const r=yl(e,t,n);if(r==null)throw new Error;return z(r)}function sd(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=i,l=r.Compare(o,we(s))|0;if(s instanceof ue)if(l<0){e=r,t=o,n=ge(s);continue e}else{if(l===0)return!0;e=r,t=o,n=ye(s);continue e}else return l===0}else return!1}}function bl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=r;if(o instanceof ue){bl(n,ge(o)),n(we(o),Ee(o)),e=n,t=ye(o);continue e}else n(we(o),Ee(o))}break}}function ld(e,t){bl(e,t)}function ud(e,t,n){let r=n;ld((o,i)=>{t[r]=[o,i],r=r+1|0},e)}function ad(e,t){return It((n,r)=>on(e,r[0],r[1],n),void 0,t)}function cd(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=on(r,s[0],s[1],o),n=i;continue e}else return o}}function vl(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=t[r];n=on(e,o[0],o[1],n)}return n}function fd(e,t){if(st(t))return vl(e,t);if(t instanceof Ge)return ad(e,t);{const n=le(t);try{return cd(e,void 0,n)}finally{L(n)}}}class $d extends ne{constructor(t,n){super(),this.stack=t,this.started=n}}function Sl(e){e:for(;;){const t=e;if(I(t))return de();{const n=A(t),r=x(t);if(r!=null){const o=r;if(o instanceof ue){e=Z([ge(o),Mr(we(o),Ee(o)),ye(o)],n);continue e}else return t}else{e=n;continue e}}}}function Cl(e){return new $d(Sl(he(e)),!1)}function dd(){throw new Error("enumeration not started")}function hd(){throw new Error("enumeration already finished")}function El(e){if(e.started){const t=e.stack;if(I(t))return hd();if(x(t)!=null){const n=x(t);if(n instanceof ue)throw new Error("Please report error: Map iterator, unexpected stack for current");return[we(n),Ee(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return dd()}function pd(e){if(e.started){const t=e.stack;if(I(t))return!1;if(x(t)!=null){if(x(t)instanceof ue)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Sl(A(t)),!I(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!I(e.stack)}function xl(e){let t=Cl(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return El(t)},"System.Collections.IEnumerator.get_Current"(){return El(t)},"System.Collections.IEnumerator.MoveNext"(){return pd(t)},"System.Collections.IEnumerator.Reset"(){t=Cl(e)},Dispose(){}}}class sn{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return yd(this)|0}Equals(t){const n=this;if(t instanceof sn){const r=le(n);try{const o=le(t);try{const i=()=>{const s=r["System.Collections.IEnumerator.MoveNext"]();if(s===o["System.Collections.IEnumerator.MoveNext"]())if(s){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"](),u=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return Se(l[0],u[0])&&Se(l[1],u[1])?i():!1}else return!0;else return!1};return i()}finally{L(o)}}finally{L(r)}}else return!1}toString(){return"map ["+F("; ",ce(n=>Ji("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(t){const n=this;return Array.from(n)}GetEnumerator(){return xl(this.tree)}[Symbol.iterator](){return $n(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return xl(this.tree)}CompareTo(t){const n=this;if(t instanceof sn)return Ff((r,o)=>{const i=n.comparer.Compare(r[0],o[0])|0;return(i!==0?i:Ke(r[1],o[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 Fl(n,t[0])&&Se(Ml(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(t,n){ud(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Lo(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Lo(this)|0}get size(){return Lo(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return ce(n=>[n[0],n[1]],this)}get(t){return Ml(this,t)}has(t){return Fl(this,t)}keys(){return ce(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return ce(n=>n[1],this)}forEach(t,n){const r=this;Nn(o=>{t(o[1],o[0],r)},r)}}function Tr(e,t){return new sn(e,t)}sn.empty=Tr($o(),void 0);function _d(){return sn.empty}function md(e){const t=$o();return Tr(t,fd(t,e))}function wd(e,t,n){return Tr(e.comparer,on(e.comparer,t,n,e.tree))}function Ml(e,t){return id(e.comparer,t,e.tree)}function Lo(e){return od(e.tree)}function Fl(e,t){return sd(e.comparer,t,e.tree)}function gd(e,t){return yl(e.comparer,t,e.tree)}function yd(e){const t=(o,i)=>(o<<1)+i+631;let n=0;const r=le(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Ye(o[0]))|0,n=t(n,Ye(o[1]))|0}}finally{L(r)}return n|0}function Tl(e,t,n){return wd(n,e,t)}function Nl(e,t){return gd(t,e)}function bd(e){return md(e)}function vd(e){const t=$o();return Tr(t,vl(t,e))}function Ho(){return _d()}function kl(e){return new pl(0,"Content-Type",e)}function Sd(e){return new pl(0,"Authorization",e)}const Vt=new Rn("",new Pn(0),de(),!1,void 0,void 0,void 0,new Vo(0));new _l(0,"","",Ho(),new rn(0,""));function Al(e,t){return Ec(t)?[t]:Mc(t,[e],null,0)}function Cd(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 Nr(e){return new Rn(e,Vt.method,Vt.headers,Vt.withCredentials,Vt.overridenMimeType,Vt.overridenResponseType,Vt.timeout,Vt.content)}function kr(e,t){return new Rn(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Uo(e,t){return new Rn(t.url,t.method,$r(t.headers,he(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Il(e,t){return new Rn(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function Dl(e){return ef(t=>{const n=new XMLHttpRequest;n.open(Cd(e.method),e.url),n.onreadystatechange=()=>{let u,c,f,a,d,h;n.readyState===4&&t[0]((u=(c=n.responseType,c===""||c==="text"?n.responseText:""),f=n.status|0,a=n.responseType,d=(h=n.responseType,h===""?new rn(0,n.responseText):h==="text"?new rn(0,n.responseText):h==="arraybuffer"?new rn(2,n.response):h==="blob"?new rn(1,n.response):new rn(3,n.response)),new _l(f,u,a,vd(Ic(p=>{const v=C(Al(":",p));if(!I(v))return[x(v).toLocaleLowerCase(),F(":",A(v)).trim()]},Al(`\r
|
|
4
|
-
`,n.getAllResponseHeaders()))),d)))};const r=le(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const u=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(u.fields[0],u.fields[1])}}finally{L(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const u=o;n.overrideMimeType(u)}const i=e.overridenResponseType;i==null||(i.tag===1?n.responseType="blob":i.tag===2?n.responseType="arraybuffer":n.responseType="text");const s=e.timeout;if(s!=null){const u=s|0;n.timeout=u|0}const l=[e.method,e.content];l[0].tag===0?n.send(X(void 0)):l[1].tag===1||l[1].tag===3||l[1].tag===2?n.send(X(l[1].fields[0])):n.send(X(void 0))})}function Ar(e){if(!so(e))return e}function Ol(e){let t,n=Vi();if(t=[Hi(e,new fe(()=>n,r=>{n=r})),n],t[0])return t[1]}function Pl(e,t){rd(e,t,void 0,{shadow:!0})}function Ir(e,t){return T.Delay(()=>{const n=Uo(Sd(ct(Ue("Bearer %s"))(e)),t);let r;const o=Dl(n);return r=T.Bind(o,i=>T.Return(new $(0,i))),T.Bind(r,i=>{const s=i;if(s.tag===1)return T.Return(new $(1,s.fields[0]));{const l=s.fields[0];if(l.statusCode===429||l.statusCode>=500){const u=Dl(n);return T.Bind(u,c=>T.Return(new $(0,c)))}else return T.Return(new $(0,l))}})})}function oe(e,t,n){return Mn(r=>{if(r.indexOf(e)===0)return Yi(r,e,t)},n)}function xt(e){return Yi(e,"’","'")}function Ed(e,t){const n=sr(ir(e),t);if(n!=null)return A(K(_(()=>ce(r=>r||"",n))))}function Go(e){let t,n=0;if(t=[Tt(e,511,!1,32,new fe(()=>n,r=>{n=r|0})),n],t[0])return t[1]}function xe(e,t,n){if(n>=e&&n<=t)return X(void 0)}function Rl(e){return Gi(e)}function xd(e,t){const n=Ed("^(\\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,i,s,l;switch(I(r)||I(A(r))||I(A(A(r)))?o=1:I(A(A(A(r))))?(o=0,i=x(A(A(r))),s=x(A(r)),l=x(r)):o=1,o){case 0:{const u=[l,s,i],c=[u[0],u[1],u[2]];let f,a,d,h;const p=Go(c[0]);if(p!=null){const v=Go(c[1]);if(v!=null){const w=Go(c[2]);w!=null?(f=0,a=w,d=v,h=p):f=1}else f=1}else f=1;switch(f){case 0:return new $(0,[h,d,a]);case 1:return new $(1,e)}}case 1:return new $(1,e)}}else return new $(1,e)}function Md(e,t,n){const r=xd(e,n);if(r.tag===1)return new $(1,r.fields[0]);{const o=r.fields[0],i=o[0]|0,s=o[1]|0,l=o[2]|0;if(i<=0)return new $(1,e);{const u=[s,l];let c;switch(u[0]===2&&xe(1,29,u[1])!=null&&Rl(i)?c=0:c=1,c){case 0:return new $(0,t(i,s,l));case 1:{let f;switch(u[0]===2&&xe(1,28,u[1])!=null?Rl(i)?f=1:f=0:f=1,f){case 0:return new $(0,t(i,s,l));case 1:{let a;switch(u[0]===1||u[0]===3||u[0]===5||u[0]===7||u[0]===8||u[0]===10?xe(1,31,u[1])!=null?a=0:a=1:u[0]===12&&xe(1,31,u[1])!=null?a=0:a=1,a){case 0:return new $(0,t(i,s,l));case 1:{let d;switch(u[0]===4||u[0]===6||u[0]===9?xe(1,30,u[1])!=null?d=0:d=1:u[0]===11&&xe(1,30,u[1])!=null?d=0:d=1,d){case 0:return new $(0,t(i,s,l));case 1:return new $(1,e)}}}}}}}}}}function Fd(e,t){return Md(e,(n,r,o)=>{},t)}class ln extends H{constructor(t,...n){super(),this.tag=t|0,this.fields=n}cases(){return["Male","Female","Intersex","Transgender","PreferNotToAnswer","Other","NotSet"]}}class Td extends H{constructor(t,...n){super(),this.tag=t|0,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 Nd(){return nr("DomainPrimitives.Relationship",[],Td,()=>[[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]])}function kd(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 Ad extends H{constructor(t,...n){super(),this.tag=t|0,this.fields=n}cases(){return["NSW","QLD","WA","SA","NT","VIC","TAS","ACT"]}}function Id(){return nr("DomainPrimitives.AuState",[],Ad,()=>[[],[],[],[],[],[],[],[]])}const Dd=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Vl=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Od=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Pd(e){function t(r){return r.replace(Vl,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Dd.test(n))return Fc(n,"{","}","(",")");if(Vl.test(n))return t(n);if(Od.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 Rd(e,t){try{return t.contents=Pd(e),!0}catch{return!1}}class Ll extends ne{constructor(t,n,r){super(),this.FirstName=t,this.MiddleName=n,this.LastName=r}}function Hl(){return gn("Dto.Primitives.Name",[],Ll,()=>[["FirstName",q],["MiddleName",at(q)],["LastName",q]])}function Vd(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 Bo extends ne{constructor(t,n,r,o,i,s){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.State=o,this.Postcode=i,this.CountryCode=s}}function jo(){return gn("Dto.Primitives.Address",[],Bo,()=>[["AddressLine1",q],["AddressLine2",at(q)],["City",q],["State",q],["Postcode",q],["CountryCode",q]])}class Ul extends ne{constructor(t,n,r,o,i){super(),this.FullName=t,this.Relationship=n,this.MobilePhone=r,this.Email=o,this.Address=i}}function Gl(){return gn("Dto.Primitives.EmergencyContactDto",[],Ul,()=>[["FullName",q],["Relationship",q],["MobilePhone",q],["Email",at(q)],["Address",at(jo())]])}class Ld extends ne{constructor(t){super(),this.Unused=t}}new Ld(void 0);const Hd="#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£ē︳𐀡%𐀡",Ud="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 Gd(){const t=[...Hd].map(i=>{var s;return((s=i.codePointAt(0))!==null&&s!==void 0?s:0)-35}),n=[...Ud].map(i=>{var s;return((s=i.codePointAt(0))!==null&&s!==void 0?s:0)-35}),r=new Uint32Array(t),o=new Uint8Array(n);for(let i=1;i<r.length;++i)r[i]+=r[i-1];return i=>{let s=r.length,l=0;for(;s-l>1;){const u=Math.floor((s+l)/2),c=r[u];if(i<c)s=u;else if(i===c){s=l=u;break}else c<i&&(l=u)}return o[l]}}const Bd=256,jd=Gd();function zd(e,t){if(t<e.length)return e.charCodeAt(t);throw new Error("Index out of range.")}const Dr=e=>qd(e,0);function Wd(e,t){const n=zd(e,t);return jd(n)}function qd(e,t){return(1<<Wd(e,t)&Bd)!==0}class tt extends H{constructor(t,...n){super(),this.tag=t|0,this.fields=n}cases(){return["Saving","Loading"]}}function un(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 zo(e){return be(e)}function Wo(){return dr(e=>[e,zo(e)],uo(ce(e=>eo(e,[]),rr(Id()))))}function Vn(e){return Mn(t=>{if(t[1]===e)return t[0]},Wo())}function Zd(e){return e.indexOf("+")===0?e:`+${e}`}function Bl(e){return e.indexOf("04")===0?`+61${Ki(e,1)}`:Zd(e)}const jl=Bl;function qo(e){return Bl(lr(Dr,e))}function Jd(e,t,n){e:for(;;){const r=e,o=t,i=n;if(I(i)){const s=r;return s.tag===1?new $(1,s.fields[0]):new $(0,fr(s.fields[0]))}else{let s;const l=o(x(i));if(l.tag===1)s=new $(1,l.fields[0]);else{const u=r;s=u.tag===1?new $(1,u.fields[0]):new $(0,Be(l.fields[0],u.fields[0]))}if(s.tag===1)return s;e=s,t=o,n=A(i);continue e}}}function Yd(e,t){return Jd(new $(0,de()),e,t)}class pe extends H{constructor(t,...n){super(),this.tag=t|0,this.fields=n}cases(){return["Required","MaxLen","MinLen","Regex","NumbersOnly","DuSelection","Email","Date","DateOfBirth","PhoneNumber","NotStartWith"]}}class zl extends H{constructor(t,...n){super(),this.tag=t|0,this.fields=n}cases(){return["Over100","Under13"]}}function Ln(e){return so(e)?new $(1,new pe(0)):new $(0,void 0)}function Kd(e){return lr(Dr,e)===e?new $(0,void 0):new $(1,new pe(4))}function Hn(e,t){return t.length>e?new $(1,new pe(1,e)):new $(0,void 0)}function Xd(e,t){const n=mc(e,1);let r;const o=Yt(n)-Yt(t)|0;r=gc(Bi(t),wc(n,Fa(o)))>0?o-1:o;const i=r>=13?new $(0,void 0):new $(1,new pe(8,new zl(1)));if(i.tag===1)return new $(1,i.fields[0]);{const s=r<100?new $(0,void 0):new $(1,new pe(8,new zl(0)));return s.tag===1?new $(1,s.fields[0]):new $(0,void 0)}}function Or(e,t){return sr(ir(e),t)!=null?new $(0,void 0):new $(1,new pe(3))}function Qd(e){return Fd(new pe(7),e)}function e0(e){return e.length<=320&&!(e.indexOf("..")>=0)&&!(e.indexOf(".@")>=0)&&sr(/^[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 pe(6))}function Pr(e,t){return t.indexOf(e)===0?new $(1,new pe(10,e)):new $(0,void 0)}function Mt(e,t){const n=Yd(r=>r(t),e);return n.tag===1?new $(1,n.fields[0]):new $(0,void 0)}const Zo=e=>Mt(C([Ln,t=>Hn(60,t),t=>Pr("-",t),t=>Pr("'",t),t=>Or("(^[A-Za-zÀ-ÖØ-öø-ÿĀ-ž])[A-Za-zÀ-ÖØ-öø-ÿĀ-ž\\- ']{0,59}$",t)]),e);function t0(e){return e!=null?Mt(C([t=>Hn(60,t),t=>Pr("-",t),t=>Pr("'",t),t=>Or("(^[A-Za-zÀ-ÖØ-öø-ÿĀ-ž])[A-Za-zÀ-ÖØ-öø-ÿĀ-ž\\- ']{0,59}$",t)]),e):new $(0,void 0)}const Wl=e=>Mt(C([Ln,t=>Hn(60,t),t=>Or("(^[0-9A-Za-z])[0-9A-Za-z\\- '\\/,\\.]{0,59}$",t)]),e),ql=e=>Mt(C([Ln,e0]),e);function n0(e){return e!=null?Mt(he(ql),e):new $(0,void 0)}function r0(e){return t=>Mt(he(n=>Xd(e,n)),t)}function o0(e){return r0(uc())(e)}const Zl=e=>Mt(C([Ln,t=>Hn(60,t),t=>Or("(^[A-Za-z])[A-Za-z\\- ]{0,59}$",t)]),e),Jl=e=>Mt(C([Ln,t=>Hn(4,t),Kd]),e);function Un(e){return e<0?Math.ceil(e):Math.floor(e)}function Yl(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return i0(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 i0(e){return Wa(za(e,1e4))}function s0(e){return Un(e/864e5)}function l0(e){return Un(e%864e5/36e5)}function u0(e){return Un(e%36e5/6e4)}function a0(e){return Un(e%6e4/1e3)}function c0(e){return Un(e%1e3)}function f0(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(s0(e)),o=Math.abs(l0(e)),i=Math.abs(u0(e)),s=Math.abs(a0(e)),l=Math.abs(c0(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?o:ve(o,2)}:${ve(i,2)}:${ve(s,2)}${l===0&&(t==="c"||t==="g")?"":t==="g"?"."+ve(l,3):"."+sa(l,3,7)}`}function $0(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 Yl(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let o=0,i=0,s=0;const l=r[1]!=null&&r[1]==="-"?-1:1,u=+r[4],c=+r[5];if(r[3]!=null&&(o=+r[3]),r[7]!=null&&(s=+r[7]),r[8]!=null)switch(r[8].length){case 1:i=+r[8]*100;break;case 2:i=+r[8]*10;break;case 3:i=+r[8];break;case 4:i=+r[8]/10;break;case 5:i=+r[8]/100;break;case 6:i=+r[8]/1e3;break;case 7:i=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return l*Yl(o,u,c,s,i)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function d0(e,t){try{return t.contents=$0(e),!0}catch{return!1}}function h0(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function p0(e,t){return t.has(e)?!1:(t.add(e),!0)}function Kl(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class E extends H{constructor(t,...n){super(),this.tag=t|0,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Lt extends H{constructor(t,...n){super(),this.tag=t|0,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Xl(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Ql(e,t){switch(e.tag){case 2:return yc(Xl(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Xl(t)}}function _0(e){return e}const eu=null;function Rr(e){return Array.from(e)}function m0(e){return vn(e,"O")}function w0(e){return f0(e)}function g0(){return null}function y0(e){return vn(e,"O")}function tu(e,t){return JSON.stringify(t,N(2,void 0),X(e))}function b0(e){return t=>ec(tc(e,t),()=>eu)}function nu(e,t,n,r){const o=new fe(null);let i;const s=j(r);i=s===""?e:Tl(s,o,e);let l;if(Di(r)){const u=En(c=>{const f=Ql(t,Wt(c)),a=_t(i,t,n,c[1]);return d=>h=>{const p=Ka(d,c);return(!n||n&&p!=null)&&(h[f]=a(p)),h}},bn(r));l=c=>Tn((f,a)=>a(c)(f),{},u)}else if(Ii(r))l=u=>{const c=Ya(u,r),f=c[0],a=c[1],d=a.length|0;if(d===0)return Wt(f);{const h=d|0,p=Oi(f),v=ur(new Array(h+1),0,h+1,null);v[0]=Wt(f);for(let w=1;w<=h;w++){const y=_t(i,t,n,p[w-1][1]);v[w]=y(a[w-1])}return v}};else{let u;const c=j(r);throw u=ct(Ue(`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`))(c),new Error(u)}return o.contents=l,l}function _t(e,t,n,r){const o=j(r),i=Nl(o,e);if(i==null)if(Fi(r)){const s=_t(e,t,n,yn(r));return l=>Rr(ce(s,l))}else if(Xr(r)){const s=j(ki(r));if(s==="System.SByte")return l=>l;if(s==="System.Byte")return l=>l;if(s==="System.Int16")return l=>l;if(s==="System.UInt16")return l=>l;if(s==="System.Int32")return l=>l;if(s==="System.UInt32")return l=>l;{const l=j(r);return qi(Ue(`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
|
-
`))(l)}}else if(Ti(r))if(Qr(r)){const s=En(l=>_t(e,t,n,l),Ai(r));return l=>Rr(kf((u,c)=>s[u](c),l))}else{const s=j(Ni(r));if(s==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const l=new ia(()=>b0(_t(e,t,n,Ce(r)[0])));return u=>u==null?eu:l.Value(u)}else if(s==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||s==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||s==="System.Collections.Generic.IEnumerable`1[System.Object]"){const l=_t(e,t,n,Ce(r)[0]);return u=>Rr(ce(l,u))}else if(s==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const l=Ce(r)[0],u=_t(e,t,n,Ce(r)[1]);if(j(l)==="System.String"||j(l)==="System.Guid")return c=>Tn((f,a)=>{const d=a;return f[d[0]]=u(d[1]),f},{},c);{let c;return c=_t(e,t,n,l),a=>Rr(ce(d=>{const h=d;return[c(h[0]),u(h[1])]},a))}}else return nu(e,t,n,r)}else return o==="System.Boolean"?s=>s:o==="Microsoft.FSharp.Core.Unit"?g0:o==="System.String"?s=>s:o==="System.Char"?s=>s:o==="System.SByte"?s=>s:o==="System.Byte"?s=>s:o==="System.Int16"?s=>s:o==="System.UInt16"?s=>s:o==="System.Int32"?s=>s:o==="System.UInt32"?s=>s:o==="System.Double"?s=>s:o==="System.Single"?s=>s:o==="System.DateTime"?y0:o==="System.DateTimeOffset"?m0:o==="System.TimeSpan"?w0:o==="System.Guid"?_0:o==="System.Object"?s=>s:nu(e,t,n,r);else{const s=i;return l=>s.contents(l)}}function v0(e){return Ho()}function ru(e,t,n,r){const o=me(t,new Lt(0)),i=me(r,!0);return _t(v0(),o,i,e)}function ou(e,t){S0(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function S0(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 C0(){return ou(-621355968e5,0)}function E0(e){const[t,n]=Li(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return ou(t.getTime(),r)}function x0(e,t){try{return t.contents=E0(e),!0}catch{return!1}}class M0{constructor(t,n){const r=new fe(null);this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@8-2"]=1;const o=le(t);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const i=o["System.Collections.Generic.IEnumerator`1.get_Current"]();Yo(r.contents,i)}}finally{L(o)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(t){const n=this;return Array.from(n)}"System.Collections.IEnumerable.GetEnumerator"(){return le(this)}GetEnumerator(){return le(_o(this.hashMap.values()))}[Symbol.iterator](){return $n(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(t){Yo(this,t)}"System.Collections.Generic.ICollection`1.Clear"(){iu(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){return lu(this,t)}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(t,n){Nf((o,i)=>{t[n+o]=i},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return su(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){return uu(this,t)}get size(){return su(this)|0}add(t){const n=this;return Yo(n,t),n}clear(){iu(this)}delete(t){return uu(this,t)}has(t){return lu(this,t)}keys(){return ce(n=>n,this)}values(){return ce(n=>n,this)}entries(){return ce(n=>[n,n],this)}forEach(t,n){const r=this;Nn(o=>{t(o,o,r)},r)}}function Jo(e,t){const n=e.comparer.GetHashCode(t)|0;let r,o=null;return r=[h0(e.hashMap,n,new fe(()=>o,i=>{o=i})),o],r[0]?[!0,n,r[1].findIndex(i=>e.comparer.Equals(t,i))]:[!1,n,-1]}function iu(e){e.hashMap.clear()}function su(e){let t=0,n=le(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 Yo(e,t){const n=Jo(e,t);return n[0]?n[2]>-1?!1:(Kl(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function lu(e,t){const n=Jo(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;case 1:return!1}}function uu(e,t){const n=Jo(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Kl(e.hashMap,n[1]).splice(n[2],1),!0;case 1:return!1}}class au{constructor(t){this.k=t}}function Me(e){return new au(e)}function k(e){return e.k}class P extends au{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 P(e,t,n,r)}function U(e){return e.left}function R(e){return e.right}function an(e){return e.h}function m1(){}function cu(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=n;if(o instanceof P){e=U(o),t=cu(R(o),r+1);continue e}else return r+1|0}else return r|0}}function F0(e){return cu(e,0)}function We(e,t,n){let r;const o=e;if(o!=null){const u=o;r=u instanceof P?an(u):1}else r=0;let i;const s=n;if(s!=null){const u=s;i=u instanceof P?an(u):1}else i=0;const l=(r<i?i:r)|0;return l===0?Me(t):Fe(t,e,n,l+1)}function fu(e,t,n){let r,o,i,s,l;const u=e;if(u!=null){const a=u;l=a instanceof P?an(a):1}else l=0;let c;const f=n;if(f!=null){const a=f;c=a instanceof P?an(a):1}else c=0;if(c>l+2){const a=z(n);if(a instanceof P)if(r=U(a),(r!=null?(o=r,o instanceof P?an(o):1):0)>l+1){const d=z(U(a));if(d instanceof P)return We(We(e,t,U(d)),k(d),We(R(d),k(a),R(a)));throw new Error("internal error: Set.rebalance")}else return We(We(e,t,U(a)),k(a),R(a));else throw new Error("internal error: Set.rebalance")}else if(l>c+2){const a=z(e);if(a instanceof P)if(i=R(a),(i!=null?(s=i,s instanceof P?an(s):1):0)>c+1){const d=z(R(a));if(d instanceof P)return We(We(U(a),k(a),U(d)),k(d),We(R(d),t,n));throw new Error("internal error: Set.rebalance")}else return We(U(a),k(a),We(R(a),t,n));else throw new Error("internal error: Set.rebalance")}else return We(e,t,n)}function Gn(e,t,n){if(n!=null){const r=n,o=e.Compare(t,k(r))|0;if(r instanceof P)return o<0?fu(Gn(e,t,U(r)),k(r),R(r)):o===0?n:fu(U(r),k(r),Gn(e,t,R(r)));{const i=e.Compare(t,k(r))|0;return i<0?Fe(t,void 0,n,2):i===0?n:Fe(t,n,void 0,2)}}else return Me(t)}function $u(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=i,l=r.Compare(o,k(s))|0;if(s instanceof P)if(l<0){e=r,t=o,n=U(s);continue e}else{if(l===0)return!0;e=r,t=o,n=R(s);continue e}else return l===0}else return!1}}function du(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=r;if(o instanceof P){du(n,U(o)),n(k(o)),e=n,t=R(o);continue e}else n(k(o))}break}}class T0 extends ne{constructor(t,n){super(),this.stack=t,this.started=n}}function hu(e){e:for(;;){const t=e;if(I(t))return de();{const n=x(t),r=A(t);if(n!=null){const o=n;if(o instanceof P){e=Z([U(o),Me(k(o)),R(o)],r);continue e}else return t}else{e=r;continue e}}}}function pu(e){return new T0(hu(he(e)),!1)}function N0(){throw new Error("Enumeration not started")}function k0(){throw new Error("Enumeration already started")}function _u(e){if(e.started){const t=e.stack;if(I(t))return k0();if(x(t)!=null){const n=x(t);return k(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return N0()}function A0(e){if(e.started){const t=e.stack;if(I(t))return!1;if(x(t)!=null){if(x(t)instanceof P)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=hu(A(t)),!I(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!I(e.stack)}function mu(e){let t=pu(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return _u(t)},"System.Collections.IEnumerator.get_Current"(){return _u(t)},"System.Collections.IEnumerator.MoveNext"(){return A0(t)},"System.Collections.IEnumerator.Reset"(){t=pu(e)},Dispose(){}}}function I0(e,t,n){e:for(;;){const r=e,o=t,i=n,s=[o,i];if(I(s[0]))return I(s[1])?0:-1;if(I(s[1]))return 1;if(x(s[1])!=null)if(x(s[0])!=null){const l=x(s[0]),u=x(s[1]);if(l instanceof P)if(U(l)==null)if(u instanceof P)if(U(u)==null){const c=r.Compare(k(l),k(u))|0;if(c!==0)return c|0;e=r,t=Be(R(l),A(s[0])),n=Be(R(u),A(s[1]));continue e}else{const c=[o,i];let f,a,d,h,p;switch(I(c[0])?I(c[1])?f=2:x(c[1])!=null?(f=1,h=A(c[1]),p=x(c[1])):f=2:x(c[0])!=null?(f=0,a=A(c[0]),d=x(c[0])):I(c[1])?f=2:x(c[1])!=null?(f=1,h=A(c[1]),p=x(c[1])):f=2,f){case 0:if(d instanceof P){e=r,t=Z([U(d),Fe(k(d),void 0,R(d),0)],a),n=i;continue e}else{e=r,t=Z([void 0,Me(k(d))],a),n=i;continue e}case 1:if(p instanceof P){e=r,t=o,n=Z([U(p),Fe(k(p),void 0,R(p),0)],h);continue e}else{e=r,t=o,n=Z([void 0,Me(k(p))],h);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{const c=r.Compare(k(l),k(u))|0;if(c!==0)return c|0;e=r,t=Be(R(l),A(s[0])),n=Be(void 0,A(s[1]));continue e}else{const c=[o,i];let f,a,d,h,p;switch(I(c[0])?I(c[1])?f=2:x(c[1])!=null?(f=1,h=A(c[1]),p=x(c[1])):f=2:x(c[0])!=null?(f=0,a=A(c[0]),d=x(c[0])):I(c[1])?f=2:x(c[1])!=null?(f=1,h=A(c[1]),p=x(c[1])):f=2,f){case 0:if(d instanceof P){e=r,t=Z([U(d),Fe(k(d),void 0,R(d),0)],a),n=i;continue e}else{e=r,t=Z([void 0,Me(k(d))],a),n=i;continue e}case 1:if(p instanceof P){e=r,t=o,n=Z([U(p),Fe(k(p),void 0,R(p),0)],h);continue e}else{e=r,t=o,n=Z([void 0,Me(k(p))],h);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else if(u instanceof P)if(U(u)==null){const c=r.Compare(k(l),k(u))|0;if(c!==0)return c|0;e=r,t=Be(void 0,A(s[0])),n=Be(R(u),A(s[1]));continue e}else{const c=[o,i];let f,a,d,h,p;switch(I(c[0])?I(c[1])?f=2:x(c[1])!=null?(f=1,h=A(c[1]),p=x(c[1])):f=2:x(c[0])!=null?(f=0,a=A(c[0]),d=x(c[0])):I(c[1])?f=2:x(c[1])!=null?(f=1,h=A(c[1]),p=x(c[1])):f=2,f){case 0:if(d instanceof P){e=r,t=Z([U(d),Fe(k(d),void 0,R(d),0)],a),n=i;continue e}else{e=r,t=Z([void 0,Me(k(d))],a),n=i;continue e}case 1:if(p instanceof P){e=r,t=o,n=Z([U(p),Fe(k(p),void 0,R(p),0)],h);continue e}else{e=r,t=o,n=Z([void 0,Me(k(p))],h);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{const c=r.Compare(k(l),k(u))|0;if(c!==0)return c|0;e=r,t=A(s[0]),n=A(s[1]);continue e}}else{x(s[1]);const l=[o,i];let u,c,f,a,d;switch(I(l[0])?I(l[1])?u=2:x(l[1])!=null?(u=1,a=A(l[1]),d=x(l[1])):u=2:x(l[0])!=null?(u=0,c=A(l[0]),f=x(l[0])):I(l[1])?u=2:x(l[1])!=null?(u=1,a=A(l[1]),d=x(l[1])):u=2,u){case 0:if(f instanceof P){e=r,t=Z([U(f),Fe(k(f),void 0,R(f),0)],c),n=i;continue e}else{e=r,t=Z([void 0,Me(k(f))],c),n=i;continue e}case 1:if(d instanceof P){e=r,t=o,n=Z([U(d),Fe(k(d),void 0,R(d),0)],a);continue e}else{e=r,t=o,n=Z([void 0,Me(k(d))],a);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else if(x(s[0])!=null){x(s[0]);const l=[o,i];let u,c,f,a,d;switch(I(l[0])?I(l[1])?u=2:x(l[1])!=null?(u=1,a=A(l[1]),d=x(l[1])):u=2:x(l[0])!=null?(u=0,c=A(l[0]),f=x(l[0])):I(l[1])?u=2:x(l[1])!=null?(u=1,a=A(l[1]),d=x(l[1])):u=2,u){case 0:if(f instanceof P){e=r,t=Z([U(f),Fe(k(f),void 0,R(f),0)],c),n=i;continue e}else{e=r,t=Z([void 0,Me(k(f))],c),n=i;continue e}case 1:if(d instanceof P){e=r,t=o,n=Z([U(d),Fe(k(d),void 0,R(d),0)],a);continue e}else{e=r,t=o,n=Z([void 0,Me(k(d))],a);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=A(s[0]),n=A(s[1]);continue e}break}}function wu(e,t,n){return t==null?n==null?0:-1:n==null?1:I0(e,he(t),he(n))|0}function D0(e,t,n){let r=n;du(o=>{t[r]=o,r=r+1|0},e)}function O0(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=Gn(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i;continue e}else return o}}function P0(e,t){return ar((n,r)=>Gn(e,r,n),void 0,t)}function R0(e,t){return It((n,r)=>Gn(e,r,n),void 0,t)}function V0(e,t){if(st(t))return P0(e,t);if(t instanceof Ge)return R0(e,t);{const n=le(t);try{return O0(e,void 0,n)}finally{L(n)}}}class Ko{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return U0(this)|0}Equals(t){const n=this;return t instanceof Ko&&wu(Vr(n),nt(n),nt(t))===0}toString(){return"set ["+F("; ",ce(n=>be(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(t){const n=this;return Array.from(n)}CompareTo(t){const n=this;return wu(Vr(n),nt(n),nt(t))|0}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return $u(Vr(n),t,nt(n))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(t,n){D0(nt(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Xo(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Xo(this)|0}GetEnumerator(){return mu(nt(this))}[Symbol.iterator](){return $n(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return mu(nt(this))}get size(){return Xo(this)|0}add(t){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(t){throw new Error("Set cannot be mutated")}has(t){return H0(this,t)}keys(){return ce(n=>n,this)}values(){return ce(n=>n,this)}entries(){return ce(n=>[n,n],this)}forEach(t,n){const r=this;Nn(o=>{t(o,o,r)},r)}}function L0(e,t){return new Ko(e,t)}function Vr(e){return e.comparer}function nt(e){return e.tree}function Xo(e){return F0(nt(e))}function H0(e,t){return $u(Vr(e),t,nt(e))}function U0(e){let t,n=0;const r=le(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=(t=Ye(o)|0,(n<<1)+t+631|0)}}finally{L(r)}return Math.abs(n)|0}function G0(e,t){return L0(t,V0(t,e))}function Bn(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 B0(e,t){const n=t.tag===2?Bn(t.fields[0],t.fields[1],!0):t.tag===1?Bn(t.fields[0],t.fields[1],!1)+`
|
|
21
|
-
Reason: `+t.fields[2]:t.tag===3?Bn(t.fields[0],t.fields[1],!0):t.tag===4?Bn(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
|
-
`+F(`
|
|
25
|
-
|
|
26
|
-
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Bn(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function gu(e,t,n){const r=t(e,n);if(r.tag===1){const o=r.fields[0];return new $(1,B0(o[0],o[1]))}else return new $(0,r.fields[0])}function Qo(e,t){try{return gu("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new $(1,"Given an invalid JSON: "+n.message);throw n}}function yu(e,t){return typeof t=="string"?new $(0,t):new $(1,[e,new E(0,"a string",t)])}function j0(e,t){if(typeof t=="string"){const n=t;return n.length===1?new $(0,n[0]):new $(1,[e,new E(0,"a single character string",t)])}else return new $(1,[e,new E(0,"a char",t)])}function z0(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Rd(t,new fe(()=>r,o=>{r=o})),r],n[0]?new $(0,n[1]):new $(1,[e,new E(0,"a guid",t)])}else return new $(1,[e,new E(0,"a guid",t)])}function W0(e,t){return t==null?new $(0,void 0):new $(1,[e,new E(0,"null",t)])}const bu=e=>t=>{const n="a sbyte",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?-128<=i&&i<=127?new $(0,(i+128&255)-128):new $(1,[r,new E(1,n,i,"Value was either too large or too small for "+n)]):new $(1,[r,new E(1,n,i,"Value is not an integral value")])}else if(typeof o=="string"){let i,s=0;return i=[Tt(o,511,!1,8,new fe(()=>s,l=>{s=l|0})),s],i[0]?new $(0,i[1]):new $(1,[r,new E(0,n,o)])}else return new $(1,[r,new E(0,n,o)])},vu=e=>t=>{const n="a byte",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=255?new $(0,i&255):new $(1,[r,new E(1,n,i,"Value was either too large or too small for "+n)]):new $(1,[r,new E(1,n,i,"Value is not an integral value")])}else if(typeof o=="string"){let i,s=0;return i=[Tt(o,511,!0,8,new fe(()=>s,l=>{s=l})),s],i[0]?new $(0,i[1]):new $(1,[r,new E(0,n,o)])}else return new $(1,[r,new E(0,n,o)])},Su=e=>t=>{const n="an int16",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?-32768<=i&&i<=32767?new $(0,(i+32768&65535)-32768):new $(1,[r,new E(1,n,i,"Value was either too large or too small for "+n)]):new $(1,[r,new E(1,n,i,"Value is not an integral value")])}else if(typeof o=="string"){let i,s=0;return i=[Tt(o,511,!1,16,new fe(()=>s,l=>{s=l|0})),s],i[0]?new $(0,i[1]):new $(1,[r,new E(0,n,o)])}else return new $(1,[r,new E(0,n,o)])},Cu=e=>t=>{const n="an uint16",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=65535?new $(0,i&65535):new $(1,[r,new E(1,n,i,"Value was either too large or too small for "+n)]):new $(1,[r,new E(1,n,i,"Value is not an integral value")])}else if(typeof o=="string"){let i,s=0;return i=[Tt(o,511,!0,16,new fe(()=>s,l=>{s=l})),s],i[0]?new $(0,i[1]):new $(1,[r,new E(0,n,o)])}else return new $(1,[r,new E(0,n,o)])},Eu=e=>t=>{const n="an int",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?-2147483648<=i&&i<=2147483647?new $(0,~~i):new $(1,[r,new E(1,n,i,"Value was either too large or too small for "+n)]):new $(1,[r,new E(1,n,i,"Value is not an integral value")])}else if(typeof o=="string"){let i,s=0;return i=[Tt(o,511,!1,32,new fe(()=>s,l=>{s=l|0})),s],i[0]?new $(0,i[1]):new $(1,[r,new E(0,n,o)])}else return new $(1,[r,new E(0,n,o)])},xu=e=>t=>{const n="an uint32",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=4294967295?new $(0,i>>>0):new $(1,[r,new E(1,n,i,"Value was either too large or too small for "+n)]):new $(1,[r,new E(1,n,i,"Value is not an integral value")])}else if(typeof o=="string"){let i,s=0;return i=[Tt(o,511,!0,32,new fe(()=>s,l=>{s=l})),s],i[0]?new $(0,i[1]):new $(1,[r,new E(0,n,o)])}else return new $(1,[r,new E(0,n,o)])};function q0(e,t){return typeof t=="boolean"?new $(0,t):new $(1,[e,new E(0,"a boolean",t)])}function Z0(e,t){return typeof t=="number"?new $(0,t):new $(1,[e,new E(0,"a float",t)])}function J0(e,t){return typeof t=="number"?new $(0,t):new $(1,[e,new E(0,"a float32",t)])}function Y0(e,t){if(typeof t=="string"){let n,r=Vi();return n=[Hi(t,new fe(()=>r,o=>{r=o})),r],n[0]?new $(0,fc(n[1])):new $(1,[e,new E(0,"a datetime",t)])}else return new $(1,[e,new E(0,"a datetime",t)])}function K0(e,t){if(typeof t=="string"){let n,r=C0();return n=[x0(t,new fe(()=>r,o=>{r=o})),r],n[0]?new $(0,n[1]):new $(1,[e,new E(0,"a datetimeoffset",t)])}else return new $(1,[e,new E(0,"a datetime",t)])}function X0(e,t){if(typeof t=="string"){let n,r=0;return n=[d0(t,new fe(()=>r,o=>{r=o})),r],n[0]?new $(0,n[1]):new $(1,[e,new E(0,"a timespan",t)])}else return new $(1,[e,new E(0,"a timespan",t)])}function Mu(e,t,n,r){let o;const i=n+".["+Pe(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(i,s[e]):new $(1,[i,new E(5,"a longer array. Need index `"+Pe(e)+"` but there are only `"+(o=s.length,Pe(o))+"` entries",r)])}else return new $(1,[i,new E(0,"an array",r)])}function Q0(e,t,n){return n==null?new $(0,void 0):je(X,e(t,n))}function Fu(e,t,n){if(Array.isArray(n)){let r=-1;return je(fr,ar((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+Pe(r)+"]",i);return s.tag===0?new $(0,Be(s.fields[0],o.fields[0])):new $(1,s.fields[0])}else return o},new $(0,de()),n))}else return new $(1,[t,new E(0,"a list",n)])}function eh(e,t,n){if(Array.isArray(n)){let r=-1;return je(Af,ar((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+Pe(r)+"]",i);return s.tag===0?new $(0,g([s.fields[0]],o.fields[0])):new $(1,s.fields[0])}else return o},new $(0,[]),n))}else return new $(1,[t,new E(0,"a seq",n)])}function Tu(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return ar((i,s)=>{if(r=r+1|0,i.tag===0){const l=i.fields[0],u=e(t+".["+Pe(r)+"]",s);return u.tag===0?(l[r]=u.fields[0],new $(0,l)):new $(1,u.fields[0])}else return i},new $(0,ur(new Array(o.length),0,o.length,null)),o)}else return new $(1,[t,new E(0,"an array",n)])}function th(e,t,n){return((o,i)=>{e:for(;;){const s=o,l=i;if(I(s))return new $(1,[t,new E(7,l)]);{const u=gu(t,N(2,x(s)),n);if(u.tag===1){o=A(s),i=$r(l,he(u.fields[0]));continue e}else return new $(0,u.fields[0])}}})(e,de())}function nh(e,t,n){return new $(0,e)}function Nu(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 rh(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 oh(e,t){let n;const r=e;return n=o=>i=>Mu(0,r,o,i),o=>i=>Nu(N(3,s=>{let l;const u=t;return l=c=>f=>Mu(1,u,c,f),c=>f=>Nu((a,d,h)=>nh([s,a]),N(2,l),c,f)}),N(2,n),o,i)}function ih(e){return bd(e)}function sh(e){return G0(e,{Compare:Ke})}function lh(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?Dc(N(2,r=>{const o=r[0];return i=>i.tag===0?je(s=>Be(s,i.fields[0]),r[1](t+"."+o)(n[o])):i}),e,new $(0,de())):new $(1,[t,new E(0,"an object",n)])}function uh(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Tn((o,i)=>{if(o.tag===0){const s=e(n,i);if(s.tag===0){const l=t(n+"."+i,r[i]);return l.tag===0?new $(0,Be([s.fields[0],l.fields[0]],o.fields[0])):new $(1,l.fields[0])}else return new $(1,s.fields[0])}else return o},new $(0,de()),Object.keys(r)):new $(1,[n,new E(0,"an object",r)])}function ku(e,t,n,r){let o;const i=t.length+e|0;if(i!==r.length)return new $(1,[n,new E(6,(o=r.length|0,ct(Ue("Expected array of length %i but got %i"))(i)(o)))]);{let s=new $(0,de());for(let l=e;l<=r.length-1;l++)if(s.tag===0){const u=s.fields[0],c=ct(Ue("%s[%i]"))(n)(l),f=t[l-e],a=r[l];s=je(d=>Be(d,u),f(c)(a))}return je(fr,s)}}function Au(e,t,n,r,o,i){const s=Ac(l=>Wt(l)===r,rr(n));if(s!=null){const l=s,u=En(c=>qe(e,t,!1,c[1]),Oi(l));return je(c=>eo(l,cr(c)),u.length===0&&i.length<=1?new $(0,de()):ku(1,u,o,i))}else return new $(1,[o,new E(6,"Cannot find case "+r+" in "+j(n))])}function Iu(e,t,n,r){const o=new fe(null);let i;const s=j(r);i=s===""?e:Tl(s,o,e);let l;if(Di(r)){const u=En(c=>[Ql(t,Wt(c)),qe(i,t,!1,c[1])],bn(r));l=c=>f=>je(a=>Xa(r,cr(a)),lh(u,c,f))}else if(Ii(r))l=u=>c=>{if(typeof c=="string")return Au(i,t,r,c,u,[]);if(Array.isArray(c)){const f=c;return os(a=>Au(i,t,r,a,u,f),yu(u+"[0]",f[0]))}else return new $(1,[u,new E(0,"a string or array",c)])};else if(n)l=u=>c=>new $(1,[u,new E(2,"an extra coder for "+j(r),c)]);else{let u;const c=j(r);throw u=ct(Ue(`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`))(c),new Error(u)}return o.contents=l,l}function qe(e,t,n,r){let o,i,s,l;const u=j(r),c=Nl(u,e);if(c==null)if(Fi(r)){const f=qe(e,t,!1,yn(r));return a=>d=>Tu(N(2,f),a,d)}else if(Xr(r)){const f=j(ki(r));if(f==="System.SByte")return a=>d=>{const h=r,p=a,v=d,w=bu(p)(v);if(w.tag===1)return new $(1,w.fields[0]);{const y=w.fields[0];return Dt(y,qt(h),{Equals:(S,M)=>S===M,GetHashCode:Je})?new $(0,Zt(h,y.toString())):new $(1,[p,new E(1,j(h),v,"Unkown value provided for the enum")])}};if(f==="System.Byte")return a=>d=>{const h=r,p=a,v=d,w=vu(p)(v);if(w.tag===1)return new $(1,w.fields[0]);{const y=w.fields[0];return Dt(y,qt(h),{Equals:(S,M)=>S===M,GetHashCode:Je})?new $(0,Zt(h,y.toString())):new $(1,[p,new E(1,j(h),v,"Unkown value provided for the enum")])}};if(f==="System.Int16")return a=>d=>{const h=r,p=a,v=d,w=Su(p)(v);if(w.tag===1)return new $(1,w.fields[0]);{const y=w.fields[0];return Dt(y,qt(h),{Equals:(S,M)=>S===M,GetHashCode:Je})?new $(0,Zt(h,la(y))):new $(1,[p,new E(1,j(h),v,"Unkown value provided for the enum")])}};if(f==="System.UInt16")return a=>d=>{const h=r,p=a,v=d,w=Cu(p)(v);if(w.tag===1)return new $(1,w.fields[0]);{const y=w.fields[0];return Dt(y,qt(h),{Equals:(S,M)=>S===M,GetHashCode:Je})?new $(0,Zt(h,y.toString())):new $(1,[p,new E(1,j(h),v,"Unkown value provided for the enum")])}};if(f==="System.Int32")return a=>d=>{const h=r,p=a,v=d,w=Eu(p)(v);if(w.tag===1)return new $(1,w.fields[0]);{const y=w.fields[0];return Dt(y,qt(h),{Equals:(S,M)=>S===M,GetHashCode:Je})?new $(0,Zt(h,Pe(y))):new $(1,[p,new E(1,j(h),v,"Unkown value provided for the enum")])}};if(f==="System.UInt32")return a=>d=>{const h=r,p=a,v=d,w=xu(p)(v);if(w.tag===1)return new $(1,w.fields[0]);{const y=w.fields[0];return Dt(y,qt(h),{Equals:(S,M)=>S===M,GetHashCode:Je})?new $(0,Zt(h,y.toString())):new $(1,[p,new E(1,j(h),v,"Unkown value provided for the enum")])}};{const a=j(r),d=qi(Ue(`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
|
-
`))(a);return h=>d(h)}}else if(Ti(r))if(Qr(r)){const f=En(a=>qe(e,t,!1,a),Ai(r));return a=>d=>Array.isArray(d)?je(h=>Qa(cr(h)),ku(0,f,a,d)):new $(1,[a,new E(0,"an array",d)])}else{const f=j(Ni(r));if(f==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]")return o=qe(e,t,!0,Ce(r)[0]),a=>d=>Q0(N(2,o),a,d);if(f==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]")return i=qe(e,t,!1,Ce(r)[0]),a=>d=>Fu(N(2,i),a,d);if(f==="System.Collections.Generic.IEnumerable`1[System.Object]")return s=qe(e,t,!1,Ce(r)[0]),a=>d=>eh(N(2,s),a,d);if(f==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=qe(e,t,!1,Ce(r)[0]),d=qe(e,t,!1,Ce(r)[1]);let h;const p=C([v=>w=>uh(N(2,a),N(2,d),v,w),(l=oh(N(2,a),N(2,d)),v=>w=>Fu(N(2,l),v,w))]);return h=v=>w=>th(p,v,w),v=>w=>rh(ih,N(2,h),v,w)}else if(f==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"){const a=qe(e,t,!1,Ce(r)[0]);return d=>h=>{const p=Tu(N(2,a),d,h);return p.tag===0?new $(0,sh(p.fields[0])):new $(1,p.fields[0])}}else return Iu(e,t,n,r)}else return u==="System.Boolean"?f=>a=>q0(f,a):u==="Microsoft.FSharp.Core.Unit"?f=>a=>W0(f,a):u==="System.String"?f=>a=>yu(f,a):u==="System.Char"?f=>a=>j0(f,a):u==="System.SByte"?bu:u==="System.Byte"?vu:u==="System.Int16"?Su:u==="System.UInt16"?Cu:u==="System.Int32"?Eu:u==="System.UInt32"?xu:u==="System.Double"?f=>a=>Z0(f,a):u==="System.Single"?f=>a=>J0(f,a):u==="System.DateTime"?f=>a=>Y0(f,a):u==="System.DateTimeOffset"?f=>a=>K0(f,a):u==="System.TimeSpan"?f=>a=>X0(f,a):u==="System.Guid"?f=>a=>z0(f,a):u==="System.Object"?f=>a=>new $(0,a):Iu(e,t,n,r);else{const f=c;return a=>d=>f.contents(a)(d)}}function ah(e){return Ho()}function ei(e,t,n){const r=me(t,new Lt(0));return qe(ah(),r,!1,e)}class Du extends ne{constructor(t,n,r,o,i,s,l){super(),this.Name=t,this.Title=n,this.Gender=r,this.Email=o,this.MobilePhone=i,this.DateOfBirth=s,this.Address=l}}function Ou(){return gn("Dto.Api.Backend.Common.FullProfileDto",[],Du,()=>[["Name",Hl()],["Title",q],["Gender",q],["Email",q],["MobilePhone",q],["DateOfBirth",q],["Address",jo()]])}function ch(e){return tu(0,ru(Mi(Gl()),new Lt(1),void 0,void 0)(e))}function fh(e){return Qo(N(2,ei(Mi(Gl()),new Lt(1))),e)}class Lr extends H{constructor(t,...n){super(),this.tag=t|0,this.fields=n}cases(){return["Success","Failure","Info"]}}function $h(e){switch(e.tag){case 0:return"text-green-700";case 2:return"text-blue-700";default:return"text-red-700"}}function dh(e){switch(e.tag){case 0:return"bg-green-50";case 2:return"bg-blue-50";default:return"bg-red-50"}}function hh(e){switch(e.tag){case 0:return C(["bg-green-50","text-green-500","hover:bg-green-100","focus:ring-offset-green-50","focus:ring-green-600"]);case 2:return C(["bg-blue-50","text-blue-500","hover:bg-blue-100","focus:ring-offset-blue-50","focus:ring-blue-600"]);default:return C(["bg-red-50","text-red-500","hover:bg-red-100","focus:ring-offset-red-50","focus:ring-red-600"])}}function ph(e){switch(e.tag){case 0:return e.fields[0];case 2:return e.fields[0];default:return e.fields[0]}}function _h(e,t){fo(T.Delay(()=>T.Bind(tf(5e3),()=>(e(),T.Zero()))),t)}function Pu(e){let t,n,r,o,i;const s=e.hideAlert,l=e.alert,u=ss();Po(()=>{_h(s,u)});const c=b("svg",G(C([["className",F(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(t=he(b("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",O.Children.toArray(Array.from(t))])])));return b("div",G(C([["className",F(" ",["rounded-md","p-4","my-4",dh(l)])],(n=[b("div",G(C([["className",F(" ",["flex"])],(r=[b("p",{className:F(" ",["text-sm",$h(l)]),children:ph(l)}),b("div",G(C([["className",F(" ",["ml-auto"])],(o=[b("div",G(C([["className",F(" ",["-mx-1.5","-my-1.5"])],(i=[b("button",{type:"button",className:F(" ",K(_(()=>g(m("inline-flex"),_(()=>g(m("rounded-md"),_(()=>g(m("p-1.5"),_(()=>g(m("focus:outline-none"),_(()=>g(m("focus:ring-2"),_(()=>g(m("focus:ring-offset-2"),_(()=>hh(l)))))))))))))))),children:O.Children.toArray([c]),onClick:f=>{ls(u),s()}})],["children",O.Children.toArray(Array.from(i))])])))],["children",O.Children.toArray(Array.from(o))])])))],["children",O.Children.toArray(Array.from(r))])])))],["children",O.Children.toArray(Array.from(n))])])))}class mh extends ne{constructor(t,n,r,o,i,s,l){super(),this.Name=t,this.Email=n,this.MobilePhone=r,this.Title=o,this.Gender=i,this.DateOfBirth=s,this.Address=l}}function wh(){return gn("Dto.Api.Backend.Read.PartialProfileDto",[],mh,()=>[["Name",Hl()],["Email",q],["MobilePhone",at(q)],["Title",at(q)],["Gender",at(q)],["DateOfBirth",at(q)],["Address",at(jo())]])}class gh extends H{constructor(t,...n){super(),this.tag=t|0,this.fields=n}cases(){return["Full","Partial"]}}function yh(){return nr("Dto.Api.Backend.Read.ProfileDto",[],gh,()=>[[["Item",Ou()]],[["Item",wh()]]])}function bh(e){return Qo(N(2,ei(yh(),new Lt(1))),e)}class vh extends H{constructor(t,...n){super(),this.tag=t|0,this.fields=n}cases(){return["Success","EmailNotUnique"]}}function Sh(){return nr("Dto.Api.Backend.Read.ProfileUpdateStatus",[],vh,()=>[[],[]])}function Ch(e){return Qo(N(2,ei(Sh(),new Lt(1))),e)}class Y extends H{constructor(t,...n){super(),this.tag=t|0,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function Ru(e,t){const n=cl(ss());return R$(()=>xr(()=>{ls(n.current)})),H$(r=>{Kc(n.current)||fo(T.Delay(()=>T.TryWith(T.Delay(()=>(t(new Y(1)),T.Bind(e(r),o=>(t(new Y(2,o)),T.Zero())))),o=>(t(new Y(3,o)),T.Zero()))),n.current)})}function Vu(e){return Ol(e)}function Eh(e){return vn(e,"yyyy-MM-dd")}function Lu(){return C([[new ln(0),"Male"],[new ln(1),"Female"],[new ln(2),"Intersex"],[new ln(3),"Transgender"],[new ln(4),"Prefer not to answer"],[new ln(5),"Other"]])}function ti(e){return Mn(t=>{if(t[1]===e)return t[0]},Lu())}class Ht extends H{constructor(t,...n){super(),this.tag=t|0,this.fields=n}cases(){return["Mr","Miss","Mrs","Ms","Mx","Dr","Prof"]}}function xh(e){return be(e)}function Hu(){return C([[new Ht(0),"Mr"],[new Ht(1),"Miss"],[new Ht(2),"Mrs"],[new Ht(3),"Ms"],[new Ht(4),"Mx"],[new Ht(5),"Dr"],[new Ht(6),"Prof"]])}function ni(e){return Mn(t=>{if(t[1]===e)return t[0]},Hu())}class mt extends ne{constructor(t,n,r,o,i,s){super(),this.FirstName=t,this.MiddleName=n,this.LastName=r,this.Title=o,this.DateOfBirth=i,this.Gender=s}}const Mh=new mt("","","",void 0,void 0,void 0);class rt extends ne{constructor(t,n,r,o,i,s,l){super(),this.Email=t,this.MobileNumber=n,this.StreetAddress=r,this.Suburb=o,this.State=i,this.Postcode=s,this.NonUniqueEmails=l}}const Fh=new rt("","","","",void 0,"",de());class jn extends ne{constructor(t,n){super(),this.Identification=t,this.ContactDetails=n}}const Th=new jn(Mh,Fh);function Nh(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,Vd(n.fields[0])),t.tag===1)return new $(1,t.fields[0]);{let o,i;const s=e.ContactDetails.State;if(i=s==null?new $(1,"State missing"):new $(0,s),o=i.tag===1?new $(1,i.fields[0]):new $(0,zo(i.fields[0])),o.tag===1)return new $(1,o.fields[0]);{let l,u;const c=e.Identification.Title;if(u=c==null?new $(1,"Title missing"):new $(0,c),l=u.tag===1?new $(1,u.fields[0]):new $(0,xh(u.fields[0])),l.tag===1)return new $(1,l.fields[0]);{let f,a;const d=e.Identification.DateOfBirth;return a=d==null?new $(1,"DateOfBirth missing"):new $(0,d),f=a.tag===1?new $(1,a.fields[0]):new $(0,Eh(a.fields[0])),f.tag===1?new $(1,f.fields[0]):new $(0,new Du(new Ll(e.Identification.FirstName.trim(),Ar(e.Identification.MiddleName.trim()),e.Identification.LastName.trim()),l.fields[0],t.fields[0],e.ContactDetails.Email.trim(),jl(e.ContactDetails.MobileNumber),f.fields[0],new Bo(e.ContactDetails.StreetAddress.trim(),void 0,e.ContactDetails.Suburb.trim(),o.fields[0],e.ContactDetails.Postcode.trim(),"AU")))}}}}function kh(e){let t,n,r,o,i,s,l;if(e.tag===1){const u=e.fields[0];return new jn(new mt(u.Name.FirstName,me(u.Name.MiddleName,""),u.Name.LastName,(t=u.Title,t==null?void 0:ni(t)),(n=u.DateOfBirth,n==null?void 0:Vu(n)),(r=u.Gender,r==null?void 0:ti(r))),new rt(u.Email,qo(me(u.MobilePhone,"")),me((o=u.Address,o==null?void 0:o.AddressLine1),""),me((i=u.Address,i==null?void 0:i.City),""),(s=u.Address,s==null?void 0:Vn(s.State)),me((l=u.Address,l==null?void 0:l.Postcode),""),de()))}else{const u=e.fields[0];return new jn(new mt(u.Name.FirstName,me(u.Name.MiddleName,""),u.Name.LastName,ni(u.Title),Vu(u.DateOfBirth),ti(u.Gender)),new rt(u.Email,qo(u.MobilePhone),u.Address.AddressLine1,u.Address.City,Vn(u.Address.State),u.Address.Postcode,de()))}}let Te=class extends ne{constructor(t,n,r,o){super(),this.FormModel=t,this.CurrentAlert=n,this.ExistingProfile=r,this.SaveStatus=o}},ee=class extends H{constructor(t,...n){super(),this.tag=t|0,this.fields=n}cases(){return["SetIdentification","SetContactDetails","GetProfileCallback","SaveStarted","SaveFinished","ShowAlert","HideAlert"]}};function Ah(e){return tu(0,ru(Ou(),new Lt(1),void 0,void 0)(e))}function Uu(e){return`${e}/profiles/backend/profiles`}function Ih(e,t){const n=T.Delay(()=>{const r=Ir(t,kr(new Pn(0),Nr(Uu(e))));return T.Bind(r,o=>{const i=o;if(i.tag===1)return T.Return(new $(1,i.fields[0]));{const s=i.fields[0];if(s.statusCode===200){const l=bh(s.responseText);return T.Return(l)}else return T.Return(new $(1,""))}})});return T.Bind(n,r=>{let o;const i=r;return o=i.tag===1?new $(1,new tt(1)):new $(0,i.fields[0]),T.Return(o)})}function Dh(e,t,n){const r=T.Delay(()=>{let o;const i=Ir(t,(o=Il(new Vo(1,Ah(n)),kr(new Pn(2),Nr(Uu(e)))),Uo(kl("application/json"),o)));return T.Bind(i,s=>{const l=s;if(l.tag===1)return T.Return(new $(1,l.fields[0]));{const u=l.fields[0];if(u.statusCode===200){const c=Ch(u.responseText);return T.Return(c)}else return T.Return(new $(1,""))}})});return T.Bind(r,o=>{let i;const s=o;return i=s.tag===1?new $(1,new tt(0)):new $(0,s.fields[0]),T.Return(i)})}function Oh(){return[new Te(Th,void 0,new Y(0),new Y(0)),Q()]}function Ph(e,t){if(e.tag===1)return[new Te(new jn(t.FormModel.Identification,e.fields[0](t.FormModel.ContactDetails)),t.CurrentAlert,t.ExistingProfile,t.SaveStatus),Q()];if(e.tag===2){let n,r;switch(e.fields[0].tag===3?n=1:e.fields[0].tag===0?n=2:e.fields[0].tag===1?n=3:e.fields[0].fields[0].tag===1?n=1:(n=0,r=e.fields[0].fields[0].fields[0]),n){case 0:return[new Te(kh(r),t.CurrentAlert,new Y(2,r),t.SaveStatus),Q()];case 1:return[new Te(t.FormModel,t.CurrentAlert,new Y(3,new Error(un(new tt(1)))),t.SaveStatus),Q()];case 2:return[new Te(t.FormModel,t.CurrentAlert,new Y(0),t.SaveStatus),Q()];case 3:return[new Te(t.FormModel,t.CurrentAlert,new Y(1),t.SaveStatus),Q()]}}else if(e.tag===3){const n=new Te(t.FormModel,t.CurrentAlert,t.ExistingProfile,new Y(1)),r=Nh(t.FormModel);return r.tag===1?[n,Fn(new ee(4,new $(1,new tt(0))))]:[n,as(o=>{cs(o)},o=>Dh(e.fields[0],e.fields[1],o),r.fields[0],o=>new ee(4,je(i=>[i,e.fields[2]],o)),o=>new ee(4,new $(1,new tt(0))))]}else return e.tag===4?e.fields[0].tag===1?[new Te(t.FormModel,t.CurrentAlert,t.ExistingProfile,new Y(3,new Error(un(e.fields[0].fields[0])))),Fn(new ee(5,new Lr(1,un(e.fields[0].fields[0]))))]:e.fields[0].fields[0][0].tag===1?[new Te(t.FormModel,t.CurrentAlert,t.ExistingProfile,new Y(2,void 0)),Fn(new ee(1,n=>new rt(n.Email,n.MobileNumber,n.StreetAddress,n.Suburb,n.State,n.Postcode,$r(n.NonUniqueEmails,he(t.FormModel.ContactDetails.Email)))))]:(e.fields[0].fields[0][1](),[new Te(t.FormModel,t.CurrentAlert,t.ExistingProfile,new Y(2,void 0)),Q()]):e.tag===5?[new Te(t.FormModel,e.fields[0],t.ExistingProfile,t.SaveStatus),Q()]:e.tag===6?[new Te(t.FormModel,void 0,t.ExistingProfile,t.SaveStatus),Q()]:[new Te(new jn(e.fields[0](t.FormModel.Identification),t.FormModel.ContactDetails),t.CurrentAlert,t.ExistingProfile,t.SaveStatus),Q()]}function Rh(e,t){return _(()=>{const n=new M0([],t);return Tf(r=>p0(r,n),e)})}function Vh(e,t){return K(Rh(e,t))}function Gu(e){const t=yr(e);return[t[0],n=>{t[1](n)}]}class te extends H{constructor(t,...n){super(),this.tag=t|0,this.fields=n}cases(){return["Required","MaxLen","MinLen","Regex","CustomRule"]}}function Lh(e){return so(e)?new $(1,"{0} is required"):new $(0,void 0)}function Hh(e,t){return t.length<e?new $(1,ct(Ue("{0} must be at least %i characters"))(e)):new $(0,void 0)}function Uh(e,t){return t.length>e?new $(1,ct(Ue("{0} exceeds the max length of %i"))(e)):new $(0,void 0)}function Gh(e,t,n){return sr(ir(e),n)!=null?new $(0,void 0):new $(1,ct(Ue("{0} is not a valid %s"))(t))}function Bu(e){const t=e.values();return Vh(K(_(()=>mo(n=>{const r=n[0],o=dr(i=>Ji(i,n[1]),Bc(i=>{if(i.tag===1)return i.fields[0]},dr(i=>{switch(i.tag){case 1:return Uh(i.fields[0],r.value);case 2:return Hh(i.fields[0],r.value);case 3:return Gh(i.fields[0],i.fields[1],r.value);case 4:return i.fields[0];default:return Lh(r.value)}},n[2])));return g(ts(o)>0?(r.classList.add("error"),r.setAttribute("title",Gc(0,o)),_r()):(r.classList.remove("error"),r.removeAttribute("title"),_r()),_(()=>o))},t))),{Equals:(n,r)=>n===r,GetHashCode:Br})}function ju(e){let t=le(e.values());try{for(;t["System.Collections.IEnumerator.MoveNext"]();){const n=t["System.Collections.Generic.IEnumerator`1.get_Current"]()[0];n.classList.remove("error"),n.removeAttribute("title")}}finally{L(t)}}function zu(){const t=br(new Map([])).current,n=Gu(de()),r=n[1],o=n[0],i=Gu(!1),s=i[1];return Dn(()=>{if(i[0]){const u=Bu(t);Se(u,o)||(r(u),ju(t))}}),[br(u=>c=>f=>{if(!Se(f,null)){let a;if(f.hasAttribute("data-vkey"))a=f.getAttribute("data-vkey");else{let d=ui(f);a=Pe(d)}t.set(a,[f,u,c])}}).current,()=>{s(!0);const u=Bu(t);return r(u),ts(u)===0},()=>{s(!1),ju(t),r(de())},o]}const Wu=be(`/*! tailwindcss v3.4.10 | 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}*,: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: }.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}}`),cn=C(["grid","grid-cols-1","sm:grid-cols-3","gap-x-6","gap-y-4","mt-4"]);class ae extends H{constructor(t,...n){super(),this.tag=t|0,this.fields=n}cases(){return["Your","EmergencyContact"]}}function ri(e){return e.tag===1?"emergency contact":"your"}class ie extends H{constructor(t,...n){super(),this.tag=t|0,this.fields=n}cases(){return["TestId"]}}function zn(e){return e.fields[0]}function Bh(e){return jc(new te(0),e,{Equals:Se,GetHashCode:ui})}function jh(e,t){return e+(Bh(t)?" *":"")}function Hr(e,t,n,r,o){const i=K(_(()=>g(m(b("label",{className:F(" ",["block","text-sm","font-medium","text-gray-700"]),children:jh(e,t)})),_(()=>g(m(b("div",{className:F(" ",["mt-1"]),children:O.Children.toArray([o])})),_(()=>{const s=n;if(s!=null){const l=s;return m(b("p",{className:F(" ",["mt-2","text-sm","text-red-600"]),children:l,"data-testid":`${zn(r)}-error`}))}else return m(null)}))))));return b("div",{children:O.Children.toArray(Array.from(i))})}const qu=C(["border-red-300","text-red-900","placeholder-red-300","focus:outline-none","focus:ring-red-500","focus:border-red-500"]);function Wn(e){return K(_(()=>g(m("block"),_(()=>g(m("shadow-sm"),_(()=>g(m("w-full"),_(()=>g(m("sm:text-sm"),_(()=>g(m("rounded-md"),_(()=>e?qu:g(m("border-gray-300"),_(()=>g(m("focus:ring-primary-focus"),_(()=>m("focus:border-primary-focus")))))))))))))))))}function Oe(e,t,n,r,o,i,s,l,u){return Hr(e,r,o,l,b("input",G(K(_(()=>g(m(["className",F(" ",Wn(o!=null))]),_(()=>g(m(["value",t]),_(()=>g(m(["ref",B(1,n,[r])]),_(()=>g(m(["type","text"]),_(()=>g(m(["onChange",c=>{i(c.target.value)}]),_(()=>g(m(["placeholder",`Enter ${ri(s)} ${e.toLocaleLowerCase()}`]),_(()=>g(m(["data-testid",zn(l)]),_(()=>u)))))))))))))))))))}class Ut extends ne{constructor(t,n,r){super(),this.Day=t,this.Month=n,this.Year=r}}const zh=new Ut("","","");function fn(e){return e.length===1?`0${e}`:e}function Wh(e){return`${e.Year}-${fn(e.Month)}-${fn(e.Day)}`}function qh(e){return new Ut(fn(Pe(ro(e))),fn(Pe(oo(e))),Pe(Yt(e)))}function Zu(e){const t=Wh(e),n=Qd(t);let r;switch(n.tag===1&&n.fields[0].tag===7?r=0:r=1,r){case 0:return new $(1,void 0);case 1:return new $(0,t)}}function Zh(e){let t,n,r,o,i;const s=e.onChangeHandler,l=e.testId,u=e.error,c=e.validationRules,f=e.rulesForFieldName,a=e.value,d=e.fieldName,h=U$(a==null?zh:qh(a)),p=h[0],v=S=>{let M;h[1](S),s((M=Zu(S),M.tag===1?void 0:Ol(M.fields[0])))},w=(S,M,V,wt)=>{const Ne=lr(Dr,wt);return(Ne.length|0)===0?Ne:pi(Ne,511,!1,32)<=M?Ki(Ne,0,da(Wr,S,Ne.length)):V},y=zn(l);return Hr(d,c,u,l,b("div",G(C([["className",F(" ",["grid","grid-cols-4","gap-1"])],(t=[b("div",G(C([["className",F(" ",["col-span-1"])],(n=[b("input",{className:F(" ",Wn(u!=null)),type:"text",value:p.Day,placeholder:"dd",onChange:S=>{const M=S.target.value;v(new Ut(w(2,31,p.Day,M),p.Month,p.Year))},onBlur:S=>{v(new Ut(fn(p.Day),p.Month,p.Year))},inputMode:"numeric",autoComplete:"bday-day","data-testid":`${y}-day`})],["children",O.Children.toArray(Array.from(n))])]))),b("div",G(C([["className",F(" ",["col-span-1"])],(r=[b("input",{className:F(" ",Wn(u!=null)),type:"text",value:p.Month,placeholder:"mm",onChange:S=>{const M=S.target.value;v(new Ut(p.Day,w(2,12,p.Month,M),p.Year))},onBlur:S=>{v(new Ut(p.Day,fn(p.Month),p.Year))},inputMode:"numeric",autoComplete:"bday-month","data-testid":`${y}-month`})],["children",O.Children.toArray(Array.from(r))])]))),b("div",G(C([["className",F(" ",["col-span-2"])],(o=[b("input",{className:F(" ",Wn(u!=null)),type:"text",value:p.Year,placeholder:"yyyy",onChange:S=>{let M;const V=S.target.value;v(new Ut(p.Day,p.Month,w(4,(M=ac(),Yt(M)),p.Year,V)))},inputMode:"numeric",autoComplete:"bday-year","data-testid":`${y}-year`})],["children",O.Children.toArray(Array.from(o))])]))),b("input",{type:"hidden",ref:f(c),value:(i=Zu(p),i.tag===1?"":i.fields[0])})],["children",O.Children.toArray(Array.from(t))])]))))}function qn(e,t,n,r,o,i,s,l,u){let c;return Hr(e,o,i,u,b("select",G(C([["className",F(" ",K(_(()=>g(m("mt-1"),_(()=>g(m("block"),_(()=>g(m("w-full"),_(()=>g(m("pl-3"),_(()=>g(m("pr-10"),_(()=>g(m("py-2"),_(()=>g(m("text-base"),_(()=>g(m("sm:text-sm"),_(()=>g(m("rounded-md"),_(()=>i==null?g(m("border-gray-300"),_(()=>g(m("focus:outline-none"),_(()=>g(m("focus:ring-primary-focus"),_(()=>m("focus:border-primary-focus"))))))):qu)))))))))))))))))))))],["ref",B(1,r,[o])],(c=K(_(()=>g(m(b("option",{selected:t==null,disabled:!0,value:"",children:`Select ${ri(l)} ${e.toLocaleLowerCase()}`})),_(()=>mo(f=>{const a=f[1];return m(b("option",{selected:Dt(f[0],to(t),{Equals:Se,GetHashCode:Ye}),value:a,children:a,className:F(" ",["text-black"])}))},n))))),["children",O.Children.toArray(Array.from(c))]),["onChange",f=>{s(f.target.value)}],["data-testid",zn(u)]]))))}function Ju(e,t,n,r,o,i,s,l){return Hr(e,r,o,l,b("input",{className:F(" ",Wn(o!=null)),type:"tel",value:t,ref:B(1,n,[r]),onChange:u=>{let c;const f=u.target.value;i((c=lr(Dr,f),f.indexOf("+")===0?`+${c}`:c))},placeholder:`Enter ${ri(s)} ${e.toLocaleLowerCase()}`,inputMode:"tel",autoComplete:"tel-national","data-testid":zn(l)}))}function Yu(e,t,n){let r,o,i,s;const l=n&&!Se(t,new Y(1)),u=b("svg",G(C([["className",F(" ",["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=C([b("circle",{className:F(" ",["opacity-25"]),cx:12,cy:12,r:10,stroke:"currentColor",strokeWidth:4}),b("path",{className:F(" ",["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",O.Children.toArray(Array.from(r))])])));return b("div",G(C([["className",F(" ",["flex","flex-row-reverse"])],(o=[(i=he(b("button",G(C([["className",F(" ",K(_(()=>g(m("inline-flex"),_(()=>g(m("items-center"),_(()=>g(m("px-4"),_(()=>g(m("py-2"),_(()=>g(m("border"),_(()=>g(m("border-transparent"),_(()=>g(m("shadow-sm"),_(()=>g(m("text-sm"),_(()=>g(m("font-medium"),_(()=>g(m("rounded-md"),_(()=>g(m("text-primary-text"),_(()=>g(m("focus:outline-none"),_(()=>g(m("focus:ring-2"),_(()=>g(m("focus:ring-offset-2"),_(()=>g(m("focus:ring-primary-focus"),_(()=>{const c=[l,t];let f;switch(c[0]||c[1].tag===1?f=0:f=1,f){case 0:return g(m("bg-primary-base"),_(()=>m("hover:bg-primary-hover")));case 1:return m("bg-primary-disabled")}})))))))))))))))))))))))))))))))))],["type","button"],["disabled",!l],["onClick",c=>{l&&e()}],(s=K(_(()=>g(t.tag===1?m(u):m(null),_(()=>m(b("span",{children:["Save and continue"]})))))),["children",O.Children.toArray(Array.from(s))]),["data-testid","save"]])))),b("div",{children:O.Children.toArray(Array.from(i))}))],["children",O.Children.toArray(Array.from(o))])])))}function Ku(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 pe(9))}function Jh(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 se(e){let t;return new te(4,(t=Jh(e),t.tag===1?new $(1,t.fields[0]):new $(0,void 0)))}function Yh(e,t,n,r){let o;return b("div",G(C([["className",F(" ",["py-3","mb-2"])],(o=K(_(()=>g(m(b("h6",{className:F(" ",["text-lg","font-semibold"]),children:"Identification"})),_(()=>{let i;const s="Identification";return m(b("div",G(C([["className",F(" ",cn)],(i=K(_(()=>{const l="Legal first name",u=`${s}.${l}`;return g(m(Oe(l,e.FirstName,N(2,B(2,t,[u])),C([new te(0),se(Zo(e.FirstName))]),oe(u,l,n),c=>{r(new ee(0,f=>new mt(xt(c),f.MiddleName,f.LastName,f.Title,f.DateOfBirth,f.Gender)))},new ae(0),new ie(0,"first-name"),[["autoComplete","given-name"]])),_(()=>{const c="Middle name",f=`${s}.${c}`;return g(m(Oe(c,e.MiddleName,N(2,B(2,t,[f])),he(se(t0(Ar(e.MiddleName)))),oe(f,c,n),a=>{r(new ee(0,d=>new mt(d.FirstName,xt(a),d.LastName,d.Title,d.DateOfBirth,d.Gender)))},new ae(0),new ie(0,"middle-name"),[["autoComplete","additional-name"]])),_(()=>{const a="Last name",d=`${s}.${a}`;return g(m(Oe(a,e.LastName,N(2,B(2,t,[d])),C([new te(0),se(Zo(e.LastName))]),oe(d,a,n),h=>{r(new ee(0,p=>new mt(p.FirstName,p.MiddleName,xt(h),p.Title,p.DateOfBirth,p.Gender)))},new ae(0),new ie(0,"last-name"),[["autoComplete","family-name"]])),_(()=>{let h;const p="Title",v=`${s}.${p}`;return g(m(qn(p,e.Title,Hu(),N(2,B(2,t,[v])),C([new te(0),se((h=e.Title,h==null?new $(1,new pe(0)):new $(0,h)))]),oe(v,p,n),w=>{r(new ee(0,y=>new mt(y.FirstName,y.MiddleName,y.LastName,ni(w),y.DateOfBirth,y.Gender)))},new ae(0),new ie(0,"title"))),_(()=>{let w;const y="Date of birth",S=`${s}.${y}`;return g(m(b(Zh,{fieldName:y,value:e.DateOfBirth,rulesForFieldName:B(2,t,[S]),validationRules:C([new te(0),se((w=e.DateOfBirth,w==null?new $(1,new pe(0)):o0(w)))]),error:oe(S,y,n),testId:new ie(0,"dob"),onChangeHandler:M=>{r(new ee(0,V=>new mt(V.FirstName,V.MiddleName,V.LastName,V.Title,M,V.Gender)))}})),_(()=>{let M;const V="Gender",wt=`${s}.${V}`;return m(qn(V,e.Gender,Lu(),N(2,B(2,t,[wt])),C([new te(0),se((M=e.Gender,M==null?new $(1,new pe(0)):new $(0,M)))]),oe(wt,V,n),Ne=>{r(new ee(0,gt=>new mt(gt.FirstName,gt.MiddleName,gt.LastName,gt.Title,gt.DateOfBirth,ti(Ne))))},new ae(0),new ie(0,"gender")))}))}))}))}))}))})),["children",O.Children.toArray(Array.from(i))])]))))})))),["children",O.Children.toArray(Array.from(o))])])))}function Kh(e,t,n,r){let o;return b("div",G(C([["className",F(" ",["py-3","mb-2"])],(o=K(_(()=>g(m(b("h6",{className:F(" ",["text-lg","font-semibold"]),children:"Contact details"})),_(()=>{let i;const s="ContactDetails";return g(m(b("div",G(C([["className",F(" ",cn)],(i=K(_(()=>{const l="Email",u=`${s}.${l}`;return g(m(Oe(l,e.Email,N(2,B(2,t,[u])),C([new te(0),se(ql(e.Email)),new te(4,zc(c=>vc(c,e.Email,5)===0,e.NonUniqueEmails)?new $(1,"{0} is already taken"):new $(0,void 0))]),oe(u,l,n),c=>{r(new ee(1,f=>new rt(c,f.MobileNumber,f.StreetAddress,f.Suburb,f.State,f.Postcode,f.NonUniqueEmails)))},new ae(0),new ie(0,"email"),[["autoComplete","email"]])),_(()=>{const c="Mobile number",f=`${s}.${c}`;return m(Ju(c,e.MobileNumber,N(2,B(2,t,[f])),C([new te(0),se(Ku(e.MobileNumber))]),oe(f,c,n),a=>{r(new ee(1,d=>new rt(d.Email,a,d.StreetAddress,d.Suburb,d.State,d.Postcode,d.NonUniqueEmails)))},new ae(0),new ie(0,"mobile")))}))})),["children",O.Children.toArray(Array.from(i))])])))),_(()=>{let l;return m(b("div",G(C([["className",F(" ",cn)],(l=K(_(()=>{const u="Street address",c=`${s}.${u}`;return g(m(Oe(u,e.StreetAddress,N(2,B(2,t,[c])),C([new te(0),se(Wl(e.StreetAddress))]),oe(c,u,n),f=>{r(new ee(1,a=>new rt(a.Email,a.MobileNumber,xt(f),a.Suburb,a.State,a.Postcode,a.NonUniqueEmails)))},new ae(0),new ie(0,"street-address"),[["autoComplete","street-address"]])),_(()=>{const f="Town/Suburb",a=`${s}.${f}`;return g(m(Oe(f,e.Suburb,N(2,B(2,t,[a])),C([new te(0),se(Zl(e.Suburb))]),oe(a,f,n),d=>{r(new ee(1,h=>new rt(h.Email,h.MobileNumber,h.StreetAddress,xt(d),h.State,h.Postcode,h.NonUniqueEmails)))},new ae(0),new ie(0,"town"),[["autoComplete","address-level2"]])),_(()=>{let d;const h="State",p=`${s}.${h}`;return g(m(qn(h,e.State,Wo(),N(2,B(2,t,[p])),C([new te(0),se((d=e.State,d==null?new $(1,new pe(0)):new $(0,d)))]),oe(p,h,n),v=>{r(new ee(1,w=>new rt(w.Email,w.MobileNumber,w.StreetAddress,w.Suburb,Vn(v),w.Postcode,w.NonUniqueEmails)))},new ae(0),new ie(0,"state"))),_(()=>{const v="Postcode",w=`${s}.${v}`;return m(Oe(v,e.Postcode,N(2,B(2,t,[w])),C([new te(0),se(Jl(e.Postcode))]),oe(w,v,n),y=>{r(new ee(1,S=>new rt(S.Email,S.MobileNumber,S.StreetAddress,S.Suburb,S.State,y,S.NonUniqueEmails)))},new ae(0),new ie(0,"postcode"),[["inputMode","numeric"],["autoComplete","postal-code"]]))}))}))}))})),["children",O.Children.toArray(Array.from(l))])]))))}))})))),["children",O.Children.toArray(Array.from(o))])])))}function Xu(e,t){let n;n=new CustomEvent("step-completion",{bubbles:!0,detail:e}),t.dispatchEvent(n)}function Xh(e){Xu("personal-details",e)}function Qh(e){Xu("emergency-contacts",e)}function e1(e){let t;const n=$l(Oh(),Ph),r=n[0],o=n[1],i=zu(),s=i[0],l=i[3];Po(Ru(()=>Ih(e.backendUrl,e.accessToken),c=>{o(new ee(2,c))}));const u=b("h3",{className:F(" ",["text-2xl","font-medium"]),children:"Personal Details"});return b("div",G(C([["className",F(" ",["font-sans"])],(t=K(_(()=>g(m(b("style",{children:[Wu]})),_(()=>{const c=r.ExistingProfile;switch(c.tag){case 1:return m(b("div",{children:["Please wait..."]}));case 2:return g(m(u),_(()=>g(m(Yh(r.FormModel.Identification,N(3,s),l,o)),_(()=>g(m(Kh(r.FormModel.ContactDetails,N(3,s),l,o)),_(()=>g(r.CurrentAlert!=null?m(b(Pu,{alert:z(r.CurrentAlert),hideAlert:()=>{o(new ee(6))}})):_r(),_(()=>m(Yu(()=>{i[1]()?o(new ee(3,e.backendUrl,e.accessToken,()=>{Nn(f=>{Xh(f)},to(Pi(document.querySelector("apollo-personal-details-app"))))})):o(new ee(5,new Lr(1,"There are some errors on the form, please correct them.")))},r.SaveStatus,I(l)))))))))));case 3:return g(m(u),_(()=>{let f;return m((f=c.fields[0].message,b("p",{children:[f]})))}));default:return m(b("div",{children:["Please wait..."]}))}})))),["children",O.Children.toArray(Array.from(t))])])))}function t1(){Pl(e=>b(e1,e),"apollo-personal-details-app")}function n1(e){return be(e)}function Qu(){return dr(e=>[e,n1(e)],uo(ce(e=>eo(e,[]),rr(Nd()))))}function ea(e){return Mn(t=>{if(t[1]===e)return t[0]},Qu())}class ot extends ne{constructor(t,n,r,o,i,s,l,u){super(),this.FullName=t,this.Relationship=n,this.PhoneNumber=r,this.Email=o,this.StreetAddress=i,this.Suburb=s,this.State=l,this.Postcode=u}}const r1=new ot("",void 0,"","","","",void 0,"");function o1(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,kd(n.fields[0])),t.tag===1)return new $(1,t.fields[0]);{let o,i;const s=e.State;return i=s==null?new $(1,"State missing"):new $(0,s),o=i.tag===1?new $(1,i.fields[0]):new $(0,zo(i.fields[0])),o.tag===1?new $(1,o.fields[0]):new $(0,new Ul(e.FullName.trim(),t.fields[0],jl(e.PhoneNumber),Ar(e.Email),new Bo(e.StreetAddress.trim(),void 0,e.Suburb.trim(),o.fields[0],e.Postcode.trim(),"AU")))}}function i1(e,t){let n;const r=o1(e);return r.tag===1?new $(1,r.fields[0]):new $(0,(n=r.fields[0],I(t)?he(n):Uc((o,i)=>o===0?n:i,t)))}function s1(e){let t,n,r,o;return new ot(e.FullName,ea(e.Relationship),qo(e.MobilePhone),me(e.Email,""),me((t=e.Address,t==null?void 0:t.AddressLine1),""),me((n=e.Address,n==null?void 0:n.City),""),(r=e.Address,r==null?void 0:Vn(r.State)),me((o=e.Address,o==null?void 0:o.Postcode),""))}class Ze extends ne{constructor(t,n,r,o){super(),this.FormModel=t,this.CurrentAlert=n,this.SaveStatus=r,this.ExistingEmergencyContacts=o}}class _e extends H{constructor(t,...n){super(),this.tag=t|0,this.fields=n}cases(){return["SetEmergencyContact","GetEmergencyContactsCallback","SaveStarted","SaveFinished","ShowAlert","HideAlert"]}}function ta(e){return`${e}/profiles/backend/emergency-contacts`}function l1(e,t){const n=T.Delay(()=>{const r=Ir(t,kr(new Pn(0),Nr(ta(e))));return T.Bind(r,o=>{const i=o;if(i.tag===1)return T.Return(new $(1,i.fields[0]));{const s=i.fields[0];if(s.statusCode===200){const l=fh(s.responseText);return T.Return(l)}else return T.Return(new $(1,""))}})});return T.Bind(n,r=>{let o;const i=r;return o=i.tag===1?new $(1,new tt(1)):new $(0,i.fields[0]),T.Return(o)})}function u1(e,t,n){return T.Delay(()=>{let r;const o=Ir(t,(r=Il(new Vo(1,ch(n)),kr(new Pn(2),Nr(ta(e)))),Uo(kl("application/json"),r)));return T.Bind(o,i=>{const s=i;return s.tag===1?T.Return(new $(1,s.fields[0])):s.fields[0].statusCode===200?T.Return(new $(0,void 0)):T.Return(new $(1,new tt(0)))})})}function a1(){return[new Ze(r1,void 0,new Y(0),new Y(0)),Q()]}function c1(e,t){let n,r;if(e.tag===1){let o,i;switch(e.fields[0].tag===3?o=1:e.fields[0].tag===0?o=2:e.fields[0].tag===1?o=3:e.fields[0].fields[0].tag===1?o=1:(o=0,i=e.fields[0].fields[0].fields[0]),o){case 0:return[new Ze((n=Vc(i),n==null?t.FormModel:s1(n)),t.CurrentAlert,t.SaveStatus,new Y(2,i)),Q()];case 1:return[new Ze(t.FormModel,t.CurrentAlert,t.SaveStatus,new Y(3,new Error(un(new tt(1))))),Q()];case 2:return[new Ze(t.FormModel,t.CurrentAlert,t.SaveStatus,new Y(0)),Q()];case 3:return[new Ze(t.FormModel,t.CurrentAlert,t.SaveStatus,new Y(1)),Q()]}}else if(e.tag===2){const o=new Ze(t.FormModel,t.CurrentAlert,new Y(1),t.ExistingEmergencyContacts),i=os(s=>i1(t.FormModel,s),(r=t.ExistingEmergencyContacts,r.tag===2?new $(0,r.fields[0]):new $(1,"Existing ec has not been loaded")));return i.tag===1?[o,Fn(new _e(3,new $(1,new tt(0))))]:[o,as(s=>{cs(s)},s=>u1(e.fields[0],e.fields[1],s),i.fields[0],s=>new _e(3,je(l=>e.fields[2],s)),s=>new _e(3,new $(1,new tt(0))))]}else return e.tag===3?e.fields[0].tag===1?[new Ze(t.FormModel,t.CurrentAlert,new Y(3,new Error(un(e.fields[0].fields[0]))),t.ExistingEmergencyContacts),Fn(new _e(4,new Lr(1,un(e.fields[0].fields[0]))))]:(e.fields[0].fields[0](),[new Ze(t.FormModel,t.CurrentAlert,new Y(2,void 0),t.ExistingEmergencyContacts),Q()]):e.tag===4?[new Ze(t.FormModel,e.fields[0],t.SaveStatus,t.ExistingEmergencyContacts),Q()]:e.tag===5?[new Ze(t.FormModel,void 0,t.SaveStatus,t.ExistingEmergencyContacts),Q()]:[new Ze(e.fields[0](t.FormModel),t.CurrentAlert,t.SaveStatus,t.ExistingEmergencyContacts),Q()]}function f1(e,t,n,r){let o;return b("div",G(C([["className",F(" ",["py-3","mb-2"])],(o=K(_(()=>{let i;const s="EmergencyContact";return g(m(b("div",G(C([["className",F(" ",cn)],(i=K(_(()=>{const l="Full name",u=`${s}.${l}`;return g(m(Oe(l,e.FullName,N(2,B(2,t,[u])),C([new te(0),se(Zo(e.FullName))]),oe(u,l,n),c=>{r(new _e(0,f=>new ot(xt(c),f.Relationship,f.PhoneNumber,f.Email,f.StreetAddress,f.Suburb,f.State,f.Postcode)))},new ae(1),new ie(0,"full-name"),[])),_(()=>{let c;const f="Relationship",a=`${s}.${f}`;return m(qn(f,e.Relationship,Qu(),N(2,B(2,t,[a])),C([new te(0),se((c=e.Relationship,c==null?new $(1,new pe(0)):new $(0,c)))]),oe(a,f,n),d=>{r(new _e(0,h=>new ot(h.FullName,ea(d),h.PhoneNumber,h.Email,h.StreetAddress,h.Suburb,h.State,h.Postcode)))},new ae(1),new ie(0,"relationship")))}))})),["children",O.Children.toArray(Array.from(i))])])))),_(()=>{let l;return g(m(b("div",G(C([["className",F(" ",cn)],(l=K(_(()=>{const u="Phone number",c=`${s}.${u}`;return g(m(Ju(u,e.PhoneNumber,N(2,B(2,t,[c])),C([new te(0),se(Ku(e.PhoneNumber))]),oe(c,u,n),f=>{r(new _e(0,a=>new ot(a.FullName,a.Relationship,f,a.Email,a.StreetAddress,a.Suburb,a.State,a.Postcode)))},new ae(1),new ie(0,"phone"))),_(()=>{const f="Email",a=`${s}.${f}`;return m(Oe(f,e.Email,N(2,B(2,t,[a])),he(se(n0(Ar(e.Email)))),oe(a,f,n),d=>{r(new _e(0,h=>new ot(h.FullName,h.Relationship,h.PhoneNumber,d,h.StreetAddress,h.Suburb,h.State,h.Postcode)))},new ae(1),new ie(0,"email"),[]))}))})),["children",O.Children.toArray(Array.from(l))])])))),_(()=>{let u;return m(b("div",G(C([["className",F(" ",cn)],(u=K(_(()=>{const c="Street address",f=`${s}.${c}`;return g(m(Oe(c,e.StreetAddress,N(2,B(2,t,[f])),C([new te(0),se(Wl(e.StreetAddress))]),oe(f,c,n),a=>{r(new _e(0,d=>new ot(d.FullName,d.Relationship,d.PhoneNumber,d.Email,xt(a),d.Suburb,d.State,d.Postcode)))},new ae(1),new ie(0,"street-address"),[["autoComplete","street-address"]])),_(()=>{const a="Town/Suburb",d=`${s}.${a}`;return g(m(Oe(a,e.Suburb,N(2,B(2,t,[d])),C([new te(0),se(Zl(e.Suburb))]),oe(d,a,n),h=>{r(new _e(0,p=>new ot(p.FullName,p.Relationship,p.PhoneNumber,p.Email,p.StreetAddress,xt(h),p.State,p.Postcode)))},new ae(1),new ie(0,"town"),[["autoComplete","address-level2"]])),_(()=>{let h;const p="State",v=`${s}.${p}`;return g(m(qn(p,e.State,Wo(),N(2,B(2,t,[v])),C([new te(0),se((h=e.State,h==null?new $(1,new pe(0)):new $(0,h)))]),oe(v,p,n),w=>{r(new _e(0,y=>new ot(y.FullName,y.Relationship,y.PhoneNumber,y.Email,y.StreetAddress,y.Suburb,Vn(w),y.Postcode)))},new ae(1),new ie(0,"state"))),_(()=>{const w="Postcode",y=`${s}.${w}`;return m(Oe(w,e.Postcode,N(2,B(2,t,[y])),C([new te(0),se(Jl(e.Postcode))]),oe(y,w,n),S=>{r(new _e(0,M=>new ot(M.FullName,M.Relationship,M.PhoneNumber,M.Email,M.StreetAddress,M.Suburb,M.State,S)))},new ae(1),new ie(0,"postcode"),[["inputMode","numeric"],["autoComplete","postal-code"]]))}))}))}))})),["children",O.Children.toArray(Array.from(u))])]))))}))}))})),["children",O.Children.toArray(Array.from(o))])])))}function $1(e){let t;const n=$l(a1(),c1),r=n[0],o=n[1],i=zu(),s=i[3];Po(Ru(()=>l1(e.backendUrl,e.accessToken),u=>{o(new _e(1,u))}));const l=b("h3",{className:F(" ",["text-2xl","font-medium"]),children:"Emergency contact"});return b("div",G(C([["className",F(" ",["font-sans"])],(t=K(_(()=>g(m(b("style",{children:[Wu]})),_(()=>{const u=r.ExistingEmergencyContacts;switch(u.tag){case 1:return m(b("div",{children:["Please wait..."]}));case 2:return g(m(l),_(()=>g(m(f1(r.FormModel,N(3,i[0]),s,o)),_(()=>g(r.CurrentAlert!=null?m(b(Pu,{alert:z(r.CurrentAlert),hideAlert:()=>{o(new _e(5))}})):_r(),_(()=>m(Yu(()=>{i[1]()?o(new _e(2,e.backendUrl,e.accessToken,()=>{Nn(c=>{Qh(c)},to(Pi(document.querySelector("apollo-emergency-contacts-app"))))})):o(new _e(4,new Lr(1,"There are some errors on the form, please correct them.")))},r.SaveStatus,I(s)))))))));case 3:return g(m(l),_(()=>{let c;return m((c=u.fields[0].message,b("p",{children:[c]})))}));default:return m(b("div",{children:["Please wait..."]}))}})))),["children",O.Children.toArray(Array.from(t))])])))}function d1(){Pl(e=>b($1,e),"apollo-emergency-contacts-app")}t1(),d1()})();
|
|
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)})();
|
package/package.json
CHANGED
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flarehr/apollo-personal-details-app",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2215",
|
|
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
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"build": "dotnet fable . -s --run vite build"
|
|
10
|
+
"start": "dotnet fable watch ./ --run webpack serve --mode development",
|
|
11
|
+
"build": "dotnet fable ./ && webpack --mode production --node-env production"
|
|
13
12
|
},
|
|
14
13
|
"dependencies": {
|
|
15
|
-
"preact": "^10.
|
|
16
|
-
"preact-custom-element": "^4.
|
|
14
|
+
"preact": "^10.5.12",
|
|
15
|
+
"preact-custom-element": "^4.2.1"
|
|
17
16
|
},
|
|
18
17
|
"devDependencies": {
|
|
19
|
-
"@preact/preset-vite": "^2.9.0",
|
|
20
18
|
"@tailwindcss/forms": "^0.5.0",
|
|
21
|
-
"autoprefixer": "^10.4.
|
|
19
|
+
"autoprefixer": "^10.4.4",
|
|
22
20
|
"css-loader": "^6.7.1",
|
|
23
|
-
"cssnano": "^
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
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"
|
|
30
29
|
}
|
|
31
30
|
}
|
package/README.md
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
# Basic.Profile.UI.PersonalDetails
|
|
2
|
-
|
|
3
|
-
## Installation
|
|
4
|
-
|
|
5
|
-
To install the project's dependencies, run the following commands:
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
dotnet tool restore
|
|
9
|
-
dotnet restore
|
|
10
|
-
npm install
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Development
|
|
14
|
-
|
|
15
|
-
### Configuring the backend
|
|
16
|
-
|
|
17
|
-
The settings file, `local.settings.json`, allows you to configure the backend URL that you would like the web app to point to.</br></br>
|
|
18
|
-
|
|
19
|
-
#### Local Development
|
|
20
|
-
Use the following example to point to the Basic.Profile Api if you are running it locally.
|
|
21
|
-
|
|
22
|
-
```json
|
|
23
|
-
{
|
|
24
|
-
"backendUrl": "http://localhost:7071",
|
|
25
|
-
"headers" : {
|
|
26
|
-
"X-PROFILE-ID": "{Put Profile Id here}"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
This points the web app to `http://localhost:7071` and injects the `X-PROFILE-ID` header into the HTTP request.
|
|
32
|
-
|
|
33
|
-
> NOTE: You must set a Profile ID to one you have created in your local database.
|
|
34
|
-
|
|
35
|
-
</br>
|
|
36
|
-
|
|
37
|
-
#### Using the AutoDev environment
|
|
38
|
-
If you want to run the UI locally but ghave it conect to the Basic.Profile API running in the AutoDev environment you can use the following example:
|
|
39
|
-
|
|
40
|
-
```json
|
|
41
|
-
{
|
|
42
|
-
"backendUrl": "https://autodev-partner.flarehr.com",
|
|
43
|
-
"headers": {
|
|
44
|
-
"Authorization": "Bearer eyJhbGciO..."
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
```
|
|
48
|
-
This points the web app to `https://autodev-partner.flarehr.com` and replaces the `Authorization` header in the HTTP request.
|
|
49
|
-
|
|
50
|
-
A common approach to obtaining the Bearer token is to use our testing tool [Acme Partner App](https://apollo-partner.web.app/#/dashboard/workflows), and use your web browser's dev tools to obtain the token.
|
|
51
|
-
|
|
52
|
-
The token is associated to a profile, so there is no need to add the `X-PROFILE-ID` header like you do for purely local development.</br></br>
|
|
53
|
-
|
|
54
|
-
#### Open Browser on Application Start
|
|
55
|
-
|
|
56
|
-
If you would like a browser to open and load the page when the app starts, you can add the `openBrowser` setting with a value of `true`. The absence of this value will default the value to false.
|
|
57
|
-
|
|
58
|
-
```json
|
|
59
|
-
{
|
|
60
|
-
"backendUrl": "http://localhost:7071",
|
|
61
|
-
"headers" : {
|
|
62
|
-
"X-PROFILE-ID": "{Put Profile Id here}"
|
|
63
|
-
},
|
|
64
|
-
"openBrowser": true
|
|
65
|
-
}
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
### Starting the Development Server
|
|
69
|
-
|
|
70
|
-
To start the development server, run the following commands:
|
|
71
|
-
|
|
72
|
-
```bash
|
|
73
|
-
npm start
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
## Build
|
|
77
|
-
|
|
78
|
-
To build the project, run the following commands:
|
|
79
|
-
|
|
80
|
-
```bash
|
|
81
|
-
npm run build
|
|
82
|
-
```
|