@flarehr/apollo-personal-details-app 0.1.2211 → 0.1.2212

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.
@@ -0,0 +1,37 @@
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()})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/apollo-personal-details-app",
3
- "version": "0.1.2211",
3
+ "version": "0.1.2212",
4
4
  "description": "Flare Personal Details Component",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "files": [