@flarehr/apollo-super-selection-app 0.4.52644 → 0.4.55992

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,17 @@
1
- var Fn,I,si,St,Us,oi,$r,Jr,Br,Ir,ii,yn={},ai=[],Cu=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,er=Array.isArray;function tt(e,t){for(var n in t)e[n]=t[n];return e}function ui(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function h(e,t,n){var r,s,o,i={};for(o in t)o=="key"?r=t[o]:o=="ref"?s=t[o]:i[o]=t[o];if(arguments.length>2&&(i.children=arguments.length>3?Fn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)i[o]===void 0&&(i[o]=e.defaultProps[o]);return gn(e,i,r,s,null)}function gn(e,t,n,r,s){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:s??++si,__i:-1,__u:0};return s==null&&I.vnode!=null&&I.vnode(o),o}function li(){return{current:null}}function ve(e){return e.children}function Ue(e,t){this.props=e,this.context=t}function Wt(e,t){if(t==null)return e.__?Wt(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"?Wt(e):null}function ci(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 ci(e)}}function Vr(e){(!e.__d&&(e.__d=!0)&&St.push(e)&&!Hn.__r++||Us!==I.debounceRendering)&&((Us=I.debounceRendering)||oi)(Hn)}function Hn(){var e,t,n,r,s,o,i,a;for(St.sort($r);e=St.shift();)e.__d&&(t=St.length,r=void 0,o=(s=(n=e).__v).__e,i=[],a=[],n.__P&&((r=tt({},s)).__v=s.__v+1,I.vnode&&I.vnode(r),Kr(n.__P,r,s,n.__n,n.__P.namespaceURI,32&s.__u?[o]:null,i,o??Wt(s),!!(32&s.__u),a),r.__v=s.__v,r.__.__k[r.__i]=r,hi(i,r,a),r.__e!=o&&ci(r)),St.length>t&&St.sort($r));Hn.__r=0}function di(e,t,n,r,s,o,i,a,l,u,f){var c,p,m,w,b,g=r&&r.__k||ai,_=t.length;for(n.__d=l,ku(n,t,g),l=n.__d,c=0;c<_;c++)(m=n.__k[c])!=null&&(p=m.__i===-1?yn:g[m.__i]||yn,m.__i=c,Kr(e,m,p,s,o,i,a,l,u,f),w=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&Yr(p.ref,null,m),f.push(m.ref,m.__c||w,m)),b==null&&w!=null&&(b=w),65536&m.__u||p.__k===m.__k?l=fi(m,l,e):typeof m.type=="function"&&m.__d!==void 0?l=m.__d:w&&(l=w.nextSibling),m.__d=void 0,m.__u&=-196609);n.__d=l,n.__e=b}function ku(e,t,n){var r,s,o,i,a,l=t.length,u=n.length,f=u,c=0;for(e.__k=[],r=0;r<l;r++)(s=t[r])!=null&&typeof s!="boolean"&&typeof s!="function"?(i=r+c,(s=e.__k[r]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?gn(null,s,null,null,null):er(s)?gn(ve,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?gn(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,o=null,(a=s.__i=Au(s,n,i,f))!==-1&&(f--,(o=n[a])&&(o.__u|=131072)),o==null||o.__v===null?(a==-1&&c--,typeof s.type!="function"&&(s.__u|=65536)):a!==i&&(a==i-1?c--:a==i+1?c++:(a>i?c--:c++,s.__u|=65536))):s=e.__k[r]=null;if(f)for(r=0;r<u;r++)(o=n[r])!=null&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=Wt(o)),mi(o,o))}function fi(e,t,n){var r,s;if(typeof e.type=="function"){for(r=e.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=e,t=fi(r[s],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Wt(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function rt(e,t){return t=t||[],e==null||typeof e=="boolean"||(er(e)?e.some(function(n){rt(n,t)}):t.push(e)),t}function Au(e,t,n,r){var s=e.key,o=e.type,i=n-1,a=n+1,l=t[n];if(l===null||l&&s==l.key&&o===l.type&&!(131072&l.__u))return n;if(r>(l!=null&&!(131072&l.__u)?1:0))for(;i>=0||a<t.length;){if(i>=0){if((l=t[i])&&!(131072&l.__u)&&s==l.key&&o===l.type)return i;i--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&s==l.key&&o===l.type)return a;a++}}return-1}function Hs(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Cu.test(t)?n:n+"px"}function Vn(e,t,n,r,s){var o;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||Hs(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Hs(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=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+o]=n,n?r?n.u=r.u:(n.u=Jr,e.addEventListener(t,o?Ir:Br,o)):e.removeEventListener(t,o?Ir:Br,o);else{if(s=="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 zs(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Jr++;else if(t.t<n.u)return;return n(I.event?I.event(t):t)}}}function Kr(e,t,n,r,s,o,i,a,l,u){var f,c,p,m,w,b,g,_,k,y,q,ie,Ie,gt,bt,dt,ge=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=t.__e=n.__e]),(f=I.__b)&&f(t);e:if(typeof ge=="function")try{if(_=t.props,k="prototype"in ge&&ge.prototype.render,y=(f=ge.contextType)&&r[f.__c],q=f?y?y.props.value:f.__:r,n.__c?g=(c=t.__c=n.__c).__=c.__E:(k?t.__c=c=new ge(_,q):(t.__c=c=new Ue(_,q),c.constructor=ge,c.render=Nu),y&&y.sub(c),c.props=_,c.state||(c.state={}),c.context=q,c.__n=r,p=c.__d=!0,c.__h=[],c._sb=[]),k&&c.__s==null&&(c.__s=c.state),k&&ge.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=tt({},c.__s)),tt(c.__s,ge.getDerivedStateFromProps(_,c.__s))),m=c.props,w=c.state,c.__v=t,p)k&&ge.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),k&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(k&&ge.getDerivedStateFromProps==null&&_!==m&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(_,q),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(_,c.__s,q)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=_,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(In){In&&(In.__=t)}),ie=0;ie<c._sb.length;ie++)c.__h.push(c._sb[ie]);c._sb=[],c.__h.length&&i.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(_,c.__s,q),k&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(m,w,b)})}if(c.context=q,c.props=_,c.__P=e,c.__e=!1,Ie=I.__r,gt=0,k){for(c.state=c.__s,c.__d=!1,Ie&&Ie(t),f=c.render(c.props,c.state,c.context),bt=0;bt<c._sb.length;bt++)c.__h.push(c._sb[bt]);c._sb=[]}else do c.__d=!1,Ie&&Ie(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++gt<25);c.state=c.__s,c.getChildContext!=null&&(r=tt(tt({},r),c.getChildContext())),k&&!p&&c.getSnapshotBeforeUpdate!=null&&(b=c.getSnapshotBeforeUpdate(m,w)),di(e,er(dt=f!=null&&f.type===ve&&f.key==null?f.props.children:f)?dt:[dt],t,n,r,s,o,i,a,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&i.push(c),g&&(c.__E=c.__=null)}catch(In){if(t.__v=null,l||o!=null){for(t.__u|=l?160:32;a&&a.nodeType===8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else t.__e=n.__e,t.__k=n.__k;I.__e(In,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Fu(n.__e,t,n,r,s,o,i,l,u);(f=I.diffed)&&f(t)}function hi(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Yr(n[r],n[++r],n[++r]);I.__c&&I.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(o){o.call(s)})}catch(o){I.__e(o,s.__v)}})}function Fu(e,t,n,r,s,o,i,a,l){var u,f,c,p,m,w,b,g=n.props,_=t.props,k=t.type;if(k==="svg"?s="http://www.w3.org/2000/svg":k==="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),o!=null){for(u=0;u<o.length;u++)if((m=o[u])&&"setAttribute"in m==!!k&&(k?m.localName===k:m.nodeType===3)){e=m,o[u]=null;break}}if(e==null){if(k===null)return document.createTextNode(_);e=document.createElementNS(s,k,_.is&&_),a&&(I.__m&&I.__m(t,o),a=!1),o=null}if(k===null)g===_||a&&e.data===_||(e.data=_);else{if(o=o&&Fn.call(e.childNodes),g=n.props||yn,!a&&o!=null)for(g={},u=0;u<e.attributes.length;u++)g[(m=e.attributes[u]).name]=m.value;for(u in g)if(m=g[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=m;else if(!(u in _)){if(u=="value"&&"defaultValue"in _||u=="checked"&&"defaultChecked"in _)continue;Vn(e,u,null,m,s)}}for(u in _)m=_[u],u=="children"?p=m:u=="dangerouslySetInnerHTML"?f=m:u=="value"?w=m:u=="checked"?b=m:a&&typeof m!="function"||g[u]===m||Vn(e,u,m,g[u],s);if(f)a||c&&(f.__html===c.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),di(e,er(p)?p:[p],t,n,r,k==="foreignObject"?"http://www.w3.org/1999/xhtml":s,o,i,o?o[0]:n.__k&&Wt(n,0),a,l),o!=null)for(u=o.length;u--;)ui(o[u]);a||(u="value",k==="progress"&&w==null?e.removeAttribute("value"):w!==void 0&&(w!==e[u]||k==="progress"&&!w||k==="option"&&w!==g[u])&&Vn(e,u,w,g[u],s),u="checked",b!==void 0&&b!==e[u]&&Vn(e,u,b,g[u],s))}return e}function Yr(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(s){I.__e(s,n)}}function mi(e,t,n){var r,s;if(I.unmount&&I.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Yr(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){I.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&mi(r[s],t,n||typeof e.type!="function");n||ui(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Nu(e,t,n){return this.constructor(e,n)}function pt(e,t,n){var r,s,o,i;I.__&&I.__(e,t),s=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],i=[],Kr(t,e=(!r&&n||t).__k=h(ve,null,[e]),s||yn,yn,t.namespaceURI,!r&&n?[n]:s?null:t.firstChild?Fn.call(t.childNodes):null,o,!r&&n?n:s?s.__e:t.firstChild,r,i),hi(o,e,i)}function Qr(e,t){pt(e,t,Qr)}function Xr(e,t,n){var r,s,o,i,a=tt({},e.props);for(o in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?s=t[o]:a[o]=t[o]===void 0&&i!==void 0?i[o]:t[o];return arguments.length>2&&(a.children=arguments.length>3?Fn.call(arguments,2):n),gn(e.type,a,r||e.key,s||e.ref,null)}function pi(e,t){var n={__c:t="__cC"+ii++,__:e,Consumer:function(r,s){return r.children(s)},Provider:function(r){var s,o;return this.getChildContext||(s=[],(o={})[t]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){s=null},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&s.some(function(a){a.__e=!0,Vr(a)})},this.sub=function(i){s.push(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){s&&s.splice(s.indexOf(i),1),a&&a.call(i)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Fn=ai.slice,I={__e:function(e,t,n,r){for(var s,o,i;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&o.getDerivedStateFromError!=null&&(s.setState(o.getDerivedStateFromError(e)),i=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,r||{}),i=s.__d),i)return s.__E=s}catch(a){e=a}throw e}},si=0,Ue.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=tt({},this.state),typeof e=="function"&&(e=e(tt({},n),this.props)),e&&tt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Vr(this))},Ue.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Vr(this))},Ue.prototype.render=ve,St=[],oi=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,$r=function(e,t){return e.__v.__b-t.__v.__b},Hn.__r=0,Jr=0,Br=zs(!1),Ir=zs(!0),ii=0;var ot,j,vr,js,qt=0,wi=[],Q=I,Gs=Q.__b,Ws=Q.__r,qs=Q.diffed,Zs=Q.__c,Js=Q.unmount,Ks=Q.__;function $t(e,t){Q.__h&&Q.__h(j,e,qt||t),qt=0;var n=j.__H||(j.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function en(e){return qt=1,tr(_i,e)}function tr(e,t,n){var r=$t(ot++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):_i(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,a);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=j,!j.u)){var s=function(a,l,u){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(p){return!!p.__c});if(f.every(function(p){return!p.__N}))return!o||o.call(this,a,l,u);var c=!1;return f.forEach(function(p){if(p.__N){var m=p.__[0];p.__=p.__N,p.__N=void 0,m!==p.__[0]&&(c=!0)}}),!(!c&&r.__c.props===a)&&(!o||o.call(this,a,l,u))};j.u=!0;var o=j.shouldComponentUpdate,i=j.componentWillUpdate;j.componentWillUpdate=function(a,l,u){if(this.__e){var f=o;o=void 0,s(a,l,u),o=f}i&&i.call(this,a,l,u)},j.shouldComponentUpdate=s}return r.__N||r.__}function Nn(e,t){var n=$t(ot++,3);!Q.__s&&is(n.__H,t)&&(n.__=e,n.i=t,j.__H.__h.push(n))}function tn(e,t){var n=$t(ot++,4);!Q.__s&&is(n.__H,t)&&(n.__=e,n.i=t,j.__h.push(n))}function es(e){return qt=5,Mn(function(){return{current:e}},[])}function ts(e,t,n){qt=6,tn(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 Mn(e,t){var n=$t(ot++,7);return is(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ns(e,t){return qt=8,Mn(function(){return e},t)}function rs(e){var t=j.context[e.__c],n=$t(ot++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(j)),t.props.value):e.__}function ss(e,t){Q.useDebugValue&&Q.useDebugValue(t?t(e):e)}function Mu(e){var t=$t(ot++,10),n=en();return t.__=e,j.componentDidCatch||(j.componentDidCatch=function(r,s){t.__&&t.__(r,s),n[1](r)}),[n[0],function(){n[1](void 0)}]}function os(){var e=$t(ot++,11);if(!e.__){for(var t=j.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Eu(){for(var e;e=wi.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Dn),e.__H.__h.forEach(Lr),e.__H.__h=[]}catch(t){e.__H.__h=[],Q.__e(t,e.__v)}}Q.__b=function(e){j=null,Gs&&Gs(e)},Q.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ks&&Ks(e,t)},Q.__r=function(e){Ws&&Ws(e),ot=0;var t=(j=e.__c).__H;t&&(vr===j?(t.__h=[],j.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Dn),t.__h.forEach(Lr),t.__h=[],ot=0)),vr=j},Q.diffed=function(e){qs&&qs(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(wi.push(t)!==1&&js===Q.requestAnimationFrame||((js=Q.requestAnimationFrame)||Tu)(Eu)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),vr=j=null},Q.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Dn),n.__h=n.__h.filter(function(r){return!r.__||Lr(r)})}catch(r){t.some(function(s){s.__h&&(s.__h=[])}),t=[],Q.__e(r,n.__v)}}),Zs&&Zs(e,t)},Q.unmount=function(e){Js&&Js(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Dn(r)}catch(s){t=s}}),n.__H=void 0,t&&Q.__e(t,n.__v))};var Ys=typeof requestAnimationFrame=="function";function Tu(e){var t,n=function(){clearTimeout(r),Ys&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ys&&(t=requestAnimationFrame(n))}function Dn(e){var t=j,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),j=t}function Lr(e){var t=j;e.__c=e.__(),j=t}function is(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function _i(e,t){return typeof t=="function"?t(e):t}function gi(e,t){for(var n in t)e[n]=t[n];return e}function Or(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 zn(e,t){this.props=e,this.context=t}function bi(e,t){function n(s){var o=this.props.ref,i=o==s.ref;return!i&&o&&(o.call?o(null):o.current=null),t?!t(this.props,s)||!i:Or(this.props,s)}function r(s){return this.shouldComponentUpdate=n,h(e,s)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(zn.prototype=new Ue).isPureReactComponent=!0,zn.prototype.shouldComponentUpdate=function(e,t){return Or(this.props,e)||Or(this.state,t)};var Qs=I.__b;I.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Qs&&Qs(e)};var $u=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function yi(e){function t(n){var r=gi({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=$u,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Xs=function(e,t){return e==null?null:rt(rt(e).map(t))},vi={map:Xs,forEach:Xs,count:function(e){return e?rt(e).length:0},only:function(e){var t=rt(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:rt},Bu=I.__e;I.__e=function(e,t,n,r){if(e.then){for(var s,o=t;o=o.__;)if((s=o.__c)&&s.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),s.__c(e,t)}Bu(e,t,n,r)};var eo=I.unmount;function Si(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=gi({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Si(r,t,n)})),e}function xi(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return xi(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function bn(){this.__u=0,this.t=null,this.__b=null}function Ci(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ki(e){var t,n,r;function s(o){if(t||(t=e()).then(function(i){n=i.default||i},function(i){r=i}),r)throw r;if(!n)throw t;return h(n,o)}return s.displayName="Lazy",s.__f=!0,s}function Dt(){this.u=null,this.o=null}I.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),eo&&eo(e)},(bn.prototype=new Ue).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var s=Ci(r.__v),o=!1,i=function(){o||(o=!0,n.__R=null,s?s(a):a())};n.__R=i;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=xi(l,l.__c.__P,l.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.t.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},bn.prototype.componentWillUnmount=function(){this.t=[]},bn.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Si(this.__b,n,r.__O=r.__P)}this.__b=null}var s=t.__a&&h(ve,null,e.fallback);return s&&(s.__u&=-33),[h(ve,null,t.__a?null:e.children),s]};var to=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 Iu(e){return this.getChildContext=function(){return e.context},e.children}function Vu(e){var t=this,n=e.i;t.componentWillUnmount=function(){pt(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,s){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),pt(h(Iu,{context:t.context},e.__v),t.l)}function Ai(e,t){var n=h(Vu,{__v:e,i:t});return n.containerInfo=t,n}(Dt.prototype=new Ue).__a=function(e){var t=this,n=Ci(t.__v),r=t.o.get(e);return r[0]++,function(s){var o=function(){t.props.revealOrder?(r.push(s),to(t,e,r)):s()};n?n(o):o()}},Dt.prototype.render=function(e){this.u=null,this.o=new Map;var t=rt(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},Dt.prototype.componentDidUpdate=Dt.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){to(e,n,t)})};var Fi=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Lu=/^(?: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]/,Ou=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ru=/[A-Z0-9]/g,Du=typeof document<"u",Pu=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ni(e,t,n){return t.__k==null&&(t.textContent=""),pt(e,t),typeof n=="function"&&n(),e?e.__c:null}function Mi(e,t,n){return Qr(e,t),typeof n=="function"&&n(),e?e.__c:null}Ue.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ue.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var no=I.event;function Uu(){}function Hu(){return this.cancelBubble}function zu(){return this.defaultPrevented}I.event=function(e){return no&&(e=no(e)),e.persist=Uu,e.isPropagationStopped=Hu,e.isDefaultPrevented=zu,e.nativeEvent=e};var as,ju={enumerable:!1,configurable:!0,get:function(){return this.class}},ro=I.vnode;I.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,s={},o=r.indexOf("-")===-1;for(var i in n){var a=n[i];if(!(i==="value"&&"defaultValue"in n&&a==null||Du&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var l=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?i="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Pu(n.type)?l==="onfocus"?i="onfocusin":l==="onblur"?i="onfocusout":Ou.test(i)&&(i=l):l=i="oninput":o&&Lu.test(i)?i=i.replace(Ru,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&s[i=l]&&(i="oninputCapture"),s[i]=a}}r=="select"&&s.multiple&&Array.isArray(s.value)&&(s.value=rt(n.children).forEach(function(u){u.props.selected=s.value.indexOf(u.props.value)!=-1})),r=="select"&&s.defaultValue!=null&&(s.value=rt(n.children).forEach(function(u){u.props.selected=s.multiple?s.defaultValue.indexOf(u.props.value)!=-1:s.defaultValue==u.props.value})),n.class&&!n.className?(s.class=n.class,Object.defineProperty(s,"className",ju)):(n.className&&!n.class||n.class&&n.className)&&(s.class=s.className=n.className),t.props=s}(e),e.$$typeof=Fi,ro&&ro(e)};var so=I.__r;I.__r=function(e){so&&so(e),as=e.__c};var oo=I.diffed;I.diffed=function(e){oo&&oo(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),as=null};var Ei={ReactCurrentDispatcher:{current:{readContext:function(e){return as.__n[e.__c].props.value},useCallback:ns,useContext:rs,useDebugValue:ss,useDeferredValue:ls,useEffect:Nn,useId:os,useImperativeHandle:ts,useInsertionEffect:ds,useLayoutEffect:tn,useMemo:Mn,useReducer:tr,useRef:es,useState:en,useSyncExternalStore:fs,useTransition:cs}}},Gu="18.3.1";function Ti(e){return h.bind(null,e)}function En(e){return!!e&&e.$$typeof===Fi}function $i(e){return En(e)&&e.type===ve}function Bi(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Ii(e){return En(e)?Xr.apply(null,arguments):e}function Vi(e){return!!e.__k&&(pt(null,e),!0)}function Li(e){return e&&(e.base||e.nodeType===1&&e)||null}var Oi=function(e,t){return e(t)},Ri=function(e,t){return e(t)},Di=ve;function us(e){e()}function ls(e){return e}function cs(){return[!1,us]}var ds=tn,Pi=En;function fs(e,t){var n=t(),r=en({h:{__:n,v:t}}),s=r[0].h,o=r[1];return tn(function(){s.__=n,s.v=t,Sr(s)&&o({h:s})},[e,n,t]),Nn(function(){return Sr(s)&&o({h:s}),e(function(){Sr(s)&&o({h:s})})},[e]),n}function Sr(e){var t,n,r=e.v,s=e.__;try{var o=r();return!((t=s)===(n=o)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var Ui={useState:en,useId:os,useReducer:tr,useEffect:Nn,useLayoutEffect:tn,useInsertionEffect:ds,useTransition:cs,useDeferredValue:ls,useSyncExternalStore:fs,startTransition:us,useRef:es,useImperativeHandle:ts,useMemo:Mn,useCallback:ns,useContext:rs,useDebugValue:ss,version:"18.3.1",Children:vi,render:Ni,hydrate:Mi,unmountComponentAtNode:Vi,createPortal:Ai,createElement:h,createContext:pi,createFactory:Ti,cloneElement:Ii,createRef:li,Fragment:ve,isValidElement:En,isElement:Pi,isFragment:$i,isMemo:Bi,findDOMNode:Li,Component:Ue,PureComponent:zn,memo:bi,forwardRef:yi,flushSync:Ri,unstable_batchedUpdates:Oi,StrictMode:Di,Suspense:bn,SuspenseList:Dt,lazy:ki,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ei};const Wu=Object.freeze(Object.defineProperty({__proto__:null,Children:vi,Component:Ue,Fragment:ve,PureComponent:zn,StrictMode:Di,Suspense:bn,SuspenseList:Dt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ei,cloneElement:Ii,createContext:pi,createElement:h,createFactory:Ti,createPortal:Ai,createRef:li,default:Ui,findDOMNode:Li,flushSync:Ri,forwardRef:yi,hydrate:Mi,isElement:Pi,isFragment:$i,isMemo:Bi,isValidElement:En,lazy:ki,memo:bi,render:Ni,startTransition:us,unmountComponentAtNode:Vi,unstable_batchedUpdates:Oi,useCallback:ns,useContext:rs,useDebugValue:ss,useDeferredValue:ls,useEffect:Nn,useErrorBoundary:Mu,useId:os,useImperativeHandle:ts,useInsertionEffect:ds,useLayoutEffect:tn,useMemo:Mn,useReducer:tr,useRef:es,useState:en,useSyncExternalStore:fs,useTransition:cs,version:Gu},Symbol.toStringTag,{value:"Module"})),qu=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}@font-face{font-family:Inter}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.left-0{left:0}.top-0{top:0}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.my-3{margin-top:.75rem;margin-bottom:.75rem}.-mb-px{margin-bottom:-1px}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-6{margin-left:1.5rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.inline-table{display:inline-table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row-group{display:table-row-group}.table-row{display:table-row}.flow-root{display:flow-root}.grid{display:grid}.inline-grid{display:inline-grid}.contents{display:contents}.list-item{display:list-item}.hidden{display:none}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-80{height:20rem}.h-9{height:2.25rem}.h-full{height:100%}.max-h-\\[min\\(320px\\,50vh\\)\\]{max-height:min(320px,50vh)}.w-1\\/2{width:50%}.w-5{width:1.25rem}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-3xl{max-width:48rem}.max-w-48{max-width:12rem}.max-w-6xl{max-width:72rem}.max-w-7xl{max-width:80rem}.max-w-96{max-width:24rem}.flex-1{flex:1 1 0%}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-outside{list-style-position:outside}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.gap-10{gap:2.5rem}.gap-2{gap:.5rem}.gap-6{gap:1.5rem}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.-space-y-px>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(-1px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(-1px * var(--tw-space-y-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-wrap{text-wrap:wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l-4{border-left-width:4px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / 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}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(250 204 21 / var(--tw-border-opacity))}.border-zinc-200{--tw-border-opacity: 1;border-color:rgb(228 228 231 / var(--tw-border-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-primary-light{background-color:var(--fl-color-primary-light)}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity))}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-20{padding-top:5rem;padding-bottom:5rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pl-4{padding-left:1rem}.text-center{text-align:center}.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-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.placeholder-red-300::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(252 165 165 / var(--tw-placeholder-opacity))}.placeholder-red-300::placeholder{--tw-placeholder-opacity: 1;color:rgb(252 165 165 / var(--tw-placeholder-opacity))}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.focus\\:z-10:focus{z-index:10}.focus\\:border-primary-base:focus{border-color:var(--fl-color-primary)}.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-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-offset-2:focus{--tw-ring-offset-width: 2px}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:border-gray-300:disabled{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.disabled\\:text-gray-400:disabled{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\\:mb-8{margin-bottom:2rem}.sm\\:ml-10{margin-left:2.5rem}.sm\\:mt-0{margin-top:0}.sm\\:flex{display:flex}.sm\\:items-baseline{align-items:baseline}.sm\\:space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.sm\\:p-6{padding:1.5rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:pb-8{padding-bottom:2rem}.sm\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:leading-8{line-height:2rem}}@media (min-width: 1024px){.lg\\:px-8{padding-left:2rem;padding-right:2rem}}`;function He(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Zu(e){return e!=null&&typeof e.GetEnumerator=="function"}function Ju(e){return e!=null&&typeof e.CompareTo=="function"}function Ku(e){return e!=null&&typeof e.Equals=="function"}function Yu(e){return e!=null&&typeof e.GetHashCode=="function"}function Rr(e){return e!=null&&typeof e.Dispose=="function"}function K(e){Rr(e)&&e.Dispose()}function ze(){return null}function jn(e,t){var n,r;return((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===((r=Object.getPrototypeOf(t))==null?void 0:r.constructor)}class Qu{constructor(t){this.iter=t,this.current=ze()}"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 ne(e){return Zu(e)?e.GetEnumerator():new Qu(e[Symbol.iterator]())}function nr(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}function Z(e,t){return e.toString(10).padStart(t,"0")}function io(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function Xu(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function At(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class mt{static id(t){return mt.idMap.has(t)||mt.idMap.set(t,++mt.count),mt.idMap.get(t)}}mt.idMap=new WeakMap;mt.count=0;function hs(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Xe(e){return e*2654435761|0}function el(e){return hs(e.toString(32))}function Tn(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const s=e[r];t=(t<<5)+t^s}return t}function tl(e){return e.getTime()}function nl(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=it(e[r]);return Tn(n)}function it(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Xe(e);case"bigint":return el(e);case"string":return hs(e);default:{if(Yu(e))return e.GetHashCode();if(He(e))return nl(e);if(e instanceof Date)return tl(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>it(r));return Tn(n)}else return Xe(mt.id(e))}}}function Dr(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 Hi(e,t){return Dr(e,t,le)}function rl(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let s=0;s<n.length;s++)if(n[s]!==r[s]||!le(e[n[s]],t[r[s]]))return!1;return!0}function le(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:Ku(e)?e.Equals(t):He(e)?He(t)&&Hi(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&zi(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&rl(e,t)}function zi(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+io(e),r=t.getTime()+io(t)),n===r?0:n<r?-1:1}function rr(e,t){return e===t?0:e<t?-1:1}function sl(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,s=0;r<e.length;r++)if(s=n(e[r],t[r]),s!==0)return s;return 0}function ji(e,t){return sl(e,t,Be)}function ol(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 s=0,o=0;s<n.length;s++){const i=n[s];if(i!==r[s])return i<r[s]?-1:1;if(o=Be(e[i],t[i]),o!==0)return o}return 0}function Be(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:Ju(e)?e.CompareTo(t):He(e)?He(t)?ji(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?zi(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?ol(e,t):-1}function C(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function il(e){He(e)?e.splice(0):e.clear()}const sr=new WeakMap;function W(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return sr.set(t,e),t}function V(e){return sr.get(e)??(t=>n=>e(t,n))}function Pr(e){if(e==null)return null;const t=(n,r,s)=>e(n)(r)(s);return sr.set(t,e),t}function xr(e){return sr.get(e)??(t=>n=>r=>e(t,n,r))}function al(e){let t=0,n="[";for(const r of e){if(t===0)n+=je(r);else if(t===100){n+="; ...";break}else n+="; "+je(r);t++}return n+"]"}function je(e,t=0){var n;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return al(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([s,o])=>s+" = "+je(o,t+1)).join(`
2
- `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function ul(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=je(t[0]),r=n.indexOf(" ")>=0):n=t.map(s=>je(s)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class M{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return ul(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>it(n));return t.splice(0,0,Xe(this.tag)),Tn(t)}Equals(t){return this===t?!0:jn(this,t)&&this.tag===t.tag?Hi(this.fields,t.fields):!1}CompareTo(t){return this===t?0:jn(this,t)?this.tag===t.tag?ji(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function ll(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function cl(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+je(n)).join(`
3
- `)+" }"}function dl(e){const t=Object.values(e).map(n=>it(n));return Tn(t)}function fl(e,t){if(e===t)return!0;if(jn(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!le(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function hl(e,t){if(e===t)return 0;if(jn(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const s=Be(e[n[r]],t[n[r]]);if(s!==0)return s}return 0}else return-1}class H{toJSON(){return ll(this)}toString(){return cl(this)}GetHashCode(){return dl(this)}Equals(t){return fl(this,t)}CompareTo(t){return hl(this,t)}}class Ge{get contents(){return this.getter()}set contents(t){this.setter(t)}constructor(t,n){typeof n=="function"?(this.getter=t,this.setter=n):(this.getter=()=>t,this.setter=r=>{t=r})}}class ml{constructor(t){this.message=t}}function pl(e){return e instanceof ml||e instanceof Error}function wl(e){return e instanceof Promise}function Gn(e){return pl(e)||wl(e)?e:new Error(String(e))}const Gi=je(qu),v=Ui,nn=Symbol("numeric");function Wi(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[nn])}function _l(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Ur(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[nn]().multiply(t)}function Pn(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[nn]().toFixed(t)}function Wn(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[nn]().toPrecision(t)}function qn(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[nn]().toExponential(t)}function Zn(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[nn]().toHex()}const gl=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],bl=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],yl=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],vl=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ce(e,t,n){let r=0,s=t;for(;s<e.length&&e[s]===n;)s++,r++;return r}function ao(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Sl(e,t){let n=t;const r=e[t];let s="",o=!1;for(;t<e.length;){t++;const i=e[t];if(i===r){o=!0;break}else if(i==="\\")if(t<e.length)t++,s+=e[t];else throw new Error("Invalid string format");else s+=i}if(!o)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[s,t-n+1]}function ms(e,t,n){let r=0,s=0,o="";const i=n?$n(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(s=Ce(t,r,"d"),r+=s,s){case 1:o+=lo(i);break;case 2:o+=Z(lo(i),2);break;case 3:o+=gl[ho(i)];break;case 4:o+=bl[ho(i)];break}break;case"f":if(s=Ce(t,r,"f"),r+=s,s<=3){const g=10**(3-s);o+=Z(Math.floor(On(i)/g),s)}else s<=7&&(o+=(""+On(i)).padEnd(s,"0"));break;case"F":if(s=Ce(t,r,"F"),r+=s,s<=3){const g=10**(3-s),_=Math.floor(On(i)/g);_!=0&&(o+=Z(_,s))}else if(s<=7){const g=On(i);g!=0&&(o+=Z(g,3))}break;case"g":s=Ce(t,r,"g"),r+=s,s<=2&&(o+="A.D.");break;case"h":switch(s=Ce(t,r,"h"),r+=s,s){case 1:o+=Ln(i)%12;break;case 2:o+=Z(Ln(i)%12,2);break}break;case"H":switch(s=Ce(t,r,"H"),r+=s,s){case 1:o+=Ln(i);break;case 2:o+=Z(Ln(i),2);break}break;case"K":switch(s=Ce(t,r,"K"),r+=s,s){case 1:switch(uo(i)){case 1:o+="Z";break;case 2:o+=zt(i.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(s=Ce(t,r,"m"),r+=s,s){case 1:o+=co(i);break;case 2:o+=Z(co(i),2);break}break;case"M":switch(s=Ce(t,r,"M"),r+=s,s){case 1:o+=Rn(i);break;case 2:o+=Z(Rn(i),2);break;case 3:o+=yl[Rn(i)-1];break;case 4:o+=vl[Rn(i)-1];break}break;case"s":switch(s=Ce(t,r,"s"),r+=s,s){case 1:o+=fo(i);break;case 2:o+=Z(fo(i),2);break}break;case"t":switch(s=Ce(t,r,"t"),r+=s,s){case 1:o+=i.getHours()<12?"A":"P";break;case 2:o+=i.getHours()<12?"AM":"PM";break}break;case"y":switch(s=Ce(t,r,"y"),r+=s,s){case 1:o+=i.getFullYear()%100;break;case 2:o+=Z(i.getFullYear()%100,2);break;case 3:o+=Z(i.getFullYear(),3);break;case 4:o+=Z(i.getFullYear(),4);break;case 5:o+=Z(i.getFullYear(),5);break}break;case"z":s=Ce(t,r,"z"),r+=s;let l="";switch(uo(i)){case 1:l="+00:00";break;case 2:l=zt(i.getTimezoneOffset()*-6e4);break;case 0:l=zt(Tl(i).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),c=parseInt(l.substring(4,6),10);switch(s){case 1:o+=`${u}${f}`;break;case 2:o+=`${u}${Z(f,2)}`;break;default:o+=`${u}${Z(f,2)}:${Z(c,2)}`;break}break;case":":o+=":",r++;break;case"/":o+="/",r++;break;case"'":case'"':const[p,m]=Sl(t,r);o+=p,r+=m;break;case"%":const w=ao(t,r);if(w>=0&&w!==37)r+=2,o+=ms(i,String.fromCharCode(w),n);else throw new Error("Invalid format string");break;case"\\":const b=ao(t,r);if(b>=0)r+=2,o+=String.fromCharCode(b);else throw new Error("Invalid format string");break;default:r++,o+=a;break}}return o}function uo(e){return e.kind||0}function zt(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+Z(n,2)+":"+Z(r,2)}function Jn(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 xl(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return Z(e.getFullYear(),4)+"-"+Z(e.getMonth()+1,2)+"-"+Z(e.getDate(),2)+"T"+Z(e.getHours(),2)+":"+Z(e.getMinutes(),2)+":"+Z(e.getSeconds(),2)+"."+Z(e.getMilliseconds(),3)+(n?zt(e.getTimezoneOffset()*-6e4):"")}}function Cl(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+zt(t)}function kl(e,t){const n=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+zt(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return Jn(n,"first");case"T":case"t":return Jn(n,"second");case"O":case"o":return Cl(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return ms(n,t,!0)}function Al(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?Jn(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Jn(e,"second"):e.toLocaleTimeString();case"O":case"o":return xl(e,n);default:throw new Error("Unrecognized Date print format")}else return ms(e,t,n)}function qi(e,t,n){return e.offset!=null?kl(e,t):Al(e,t)}function $n(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Fl(){return $n(-621355968e5,1)}function Zi(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 s=/^\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(s!=null){let o,i=0;if(s[2]!=null){const a=s[2].split(":"),l=parseInt(a[0],10);i=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),s[3]!=null&&s[3].toUpperCase()==="PM"&&l<12&&(i+=720)}if(s[4]!=null){if(s[1]!=null)o=new Date(s[1]+" UTC");else{const a=new Date;o=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(s[4]==="Z")r="Z";else{let a=parseInt(s[5],10)*60+parseInt(s[6]||"0",10);s[4][0]==="-"&&(a*=-1),r=a,i-=a*60}}else if(s[1]!=null)o=new Date(s[1]);else{const a=new Date;o=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(o.getTime()+i*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-o.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function Nl(e,t=!1){const[n,r]=Zi(e),s=r!=null?t&&r==="Z"?1:2:0;return $n(n.getTime(),s)}function Ml(e,t){try{return t.contents=Nl(e),!0}catch{return!1}}function El(e){return e.kind===1?e:$n(e.getTime(),1)}function Tl(e){return e.kind===2?e:$n(e.getTime(),2)}function lo(e){return e.kind===1?e.getUTCDate():e.getDate()}function Ln(e){return e.kind===1?e.getUTCHours():e.getHours()}function On(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function co(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Rn(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function fo(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function ho(e){return e.kind===1?e.getUTCDay():e.getDay()}function Ji(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 Ki(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function $l(e,t,n=0){return e.lastIndex=n,e.test(t)}function mo(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 s,o=-1;for(;(s=e.exec(t))!=null;)s.index===o?e.lastIndex++:(o=s.index,r.push(s));return r}function ps(e,t,n,r,s=0){function o(){let i=arguments[0];if(r){r--;const a=[],l=arguments.length,u=typeof arguments[l-1]!="string";let f=u?l-3:l-2;for(let c=0;c<f;c++)a.push(arguments[c]);a.index=arguments[f++],a.input=arguments[f++],u&&(a.groups=arguments[f]),i=n(a)}return i}if(typeof e=="string"){const i=e;e=Ji(t,r??0),t=i,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,s)+t.substring(s).replace(e,o);if(n=n.replace(/\$0/g,i=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let i;const a=t.substring(s),l=mo(e,a),u=mo.length>r?(i=l[r-1],a.substring(0,i.index+i[0].length)):a;return t.substring(0,s)+u.replace(e,n)+t.substring(s+u.length)}else return t.replace(e,n)}const un=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Bl=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Yi(e,t){return _l(e,t)<0}function Zt(e){return{input:e,cont:Ll(e)}}function Qi(e,t){return typeof t=="string"?e(t):t.cont(e)}function vn(e){return Qi(t=>t,e)}function Il(e){return Qi(t=>{throw new Error(t)},e)}function Vl(e,t,n,r,s){let o="";if(t=t||"",s=s||"",Wi(e))switch(s.toLowerCase()!=="x"&&(Yi(e,0)?(e=Ur(e,-1),o="-"):t.indexOf(" ")>=0?o=" ":t.indexOf("+")>=0&&(o="+")),r=r==null?null:parseInt(r,10),s){case"f":case"F":r=r??6,e=Pn(e,r);break;case"g":case"G":e=r!=null?Wn(e,r):Wn(e);break;case"e":case"E":e=r!=null?qn(e,r):qn(e);break;case"x":e=Zn(e);break;case"X":e=Zn(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=qi(e):e=je(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=o+e;else{const i=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!i?" ":"0";l==="0"?(e=Sn(e,n-o.length,l,a),e=o+e):e=Sn(o+e,n,l,a)}return e}function Xi(e,t,n,r="",s=-1){return(...o)=>{let i=r;const a=t.slice(),l=n.slice();for(const u of o){const[,,f,c,p,m]=l[0];let w=c;if(s>=0)w=s,s=-1;else if(w==="*"){if(u<0)throw new Error("Non-negative number required");s=u;continue}i+=a[0],i+=Vl(u,f,w,p,m),a.splice(0,1),l.splice(0,1)}return l.length===0?(i+=a[0],e(i)):Xi(e,a,l,i,s)}}function Ll(e){return t=>{un.lastIndex=0;const n=[],r=[];let s=0,o=un.exec(e);for(;o;){const i=o.index+(o[1]||"").length;n.push(e.substring(s,i).replace(/%%/g,"%")),r.push(o),s=un.lastIndex,un.lastIndex-=1,o=un.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(s).replace(/%%/g,"%")),Xi(t,n,r))}}function Ol(e,...t){let n;return n=e,n.replace(Bl,(r,s,o,i,a,l)=>{if(s<0||s>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[s];if(Wi(u))switch(a=a==null?null:parseInt(a,10),i){case"f":case"F":a=a??2,u=Pn(u,a);break;case"g":case"G":u=a!=null?Wn(u,a):Wn(u);break;case"e":case"E":u=a!=null?qn(u,a):qn(u);break;case"p":case"P":a=a??2,u=Pn(Ur(u,100),a)+" %";break;case"d":case"D":u=a!=null?Cr(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?Cr(Zn(u),a,"0"):Zn(u),i==="X"&&(u=u.toUpperCase());break;default:if(l){let f="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(c,p,m)=>{Yi(u,0)&&(u=Ur(u,-1),f="-"),m=m==null?"":m.substring(1),u=Pn(u,Math.max(m.length,0));let[w,b]=u.split(".");b||(b="");const g=p.replace(/,/g,"").replace(/^#+/,"").length;w=Cr(w,g,"0");const _=m.replace(/#+$/,"").length;if(_>b.length?b=Dl(b,_,"0"):_<b.length&&(b=b.substring(0,_)+b.substring(_).replace(/0+$/,"")),p.indexOf(",")>0){const k=w.length%3,y=Math.floor(w.length/3);let q=k>0?w.substr(0,k)+(y>0?",":""):"";for(let ie=0;ie<y;ie++)q+=w.substr(k+ie*3,3)+(ie<y-1?",":"");w=q}return b.length>0?w+"."+b:w}),u=f+u}}else u instanceof Date?u=qi(u,l||i):u=je(u);return o=parseInt((o||" ").substring(1),10),isNaN(o)||(u=Sn(String(u),Math.abs(o)," ",o<0)),u})}function Rl(e){return typeof e!="string"||e.length===0}function ea(e){return typeof e!="string"||/^\s*$/.test(e)}function R(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Sn(e,t,n,r){n=n||" ",t=t-e.length;for(let s=0;s<t;s++)e=r?e+n:n+e;return e}function Cr(e,t,n){return Sn(e,t,n)}function Dl(e,t,n){return Sn(e,t,n,!0)}function Pl(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 s=(r&1)===1,o=(r&2)===2;t=t||[],t=t.filter(f=>f).map(Ki),t=t.length>0?t:["\\s"];const i=[],a=new RegExp(t.join("|"),"g");let l=!0,u=0;do{const f=a.exec(e);if(f===null){const c=o?e.substring(u).trim():e.substring(u);(!s||c.length>0)&&i.push(c),l=!1}else{const c=o?e.substring(u,f.index).trim():e.substring(u,f.index);(!s||c.length>0)&&(n!=null&&i.length+1===n?(i.push(o?e.substring(u).trim():e.substring(u)),l=!1):i.push(c)),u=a.lastIndex}}while(l);return i}function Ul(e,...t){if(t.length===0)return e.trim();const n="["+Ki(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class Nt{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return it(this.value)}Equals(t){return t==null?!1:le(this.value,t instanceof Nt?t.value:t)}CompareTo(t){return t==null?1:Be(this.value,t instanceof Nt?t.value:t)}}function x(e){if(e==null)throw new Error("Option has no value");return e instanceof Nt?e.value:e}function ta(e){return e instanceof Nt?e.value:e}function $e(e){return e==null||e instanceof Nt?new Nt(e):e}function Hl(e){return e==null?[]:[x(e)]}function or(e,t){return e!=null?x(e):t}function ws(e,t){return t!=null?$e(e(x(t))):void 0}class zl{constructor(t,n,r,s){this.declaringType=t,this.tag=n,this.name=r,this.fields=s}}class Ee{constructor(t,n,r,s,o,i,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=s,this.fields=o,this.cases=i,this.enumCases=a}toString(){return oe(this)}GetHashCode(){return na(this)}Equals(t){return Hr(this,t)}}function et(e){return e.generics!=null?e.generics:[]}function na(e){const t=hs(e.fullname),n=et(e).map(na);return Tn([t,...n])}function Hr(e,t){return e.fullname===""?t.fullname===""&&Dr(Kn(e),Kn(t),([n,r],[s,o])=>n===s&&Hr(r,o)):e.fullname===t.fullname&&Dr(et(e),et(t),Hr)}function po(e,t,n,r){return new Ee(e,t,n,r)}function ut(e,t,n,r){return new Ee(e,t,n,void 0,r)}function jl(...e){return new Ee("",void 0,void 0,void 0,()=>e)}function Gl(e,t,n,r){const s=new Ee(e,t,n,void 0,void 0,()=>{const o=n.prototype.cases();return r().map((i,a)=>new zl(s,a,o[a],i))});return s}function at(e){return new Ee("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Wl(e){return new Ee("Microsoft.FSharp.Collections.FSharpList`1",[e])}const ql=new Ee("System.Object"),J=new Ee("System.String"),zr=new Ee("System.Boolean");function _s(e){if(Array.isArray(e))return e[0];if(e instanceof Ee){const t=ir(e);if(t!=null)return _s(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function oe(e){const t=ir(e);return t!=null?oe(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>oe(n)).join(",")+"]"}function Zl(e){return ir(e)!=null}function ir(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Jl(e){return e.generics!=null&&e.generics.length>0}function ra(e){return e.enumCases!=null&&e.enumCases.length>0}function Kl(e){return e.generics==null?e:new Ee(e.fullname,e.generics.map(()=>ql))}function Yl(e){var t;return(t=e.generics)==null?void 0:t[0]}function Bt(e){if(ra(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Ql(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 It(e,t){const n=parseInt(t,10);return Ql(e,isNaN(n)?t:n)[1]}function Xl(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Kn(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function ec(e){if(sa(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function tc(e){return e instanceof Ee?e.cases!=null:e instanceof M}function nc(e){return e instanceof Ee?e.fields!=null:e instanceof H}function sa(e){return e.fullname.startsWith("System.Tuple")}function rc(e){return e.fields==null?[]:e.fields}function sc(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);const r=e.declaringType.construct;return r==null?{}:(e.declaringType.cases?e.declaringType.cases().length==1:!1)?new r(...t):new r(e.tag,t)}function oc(e,t){const n=Kn(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[s,o],i)=>(r[s]=t[i],r),{})}function ic(e,t){return e}const ac="The index was outside the range of elements in the collection.",oa="Collection was empty.";function ia(e,t){return new Array(t)}function jr(e,t){return e>t?e:t}function uc(e,t){return e<t?e:t}function gs(e,t,n,r){const s=t|0;return e.fill(r,s,s+n)}function ar(e,t,n){const r=t.length|0,s=ia(n,r);for(let o=0;o<=r-1;o++)wt(s,o,e(we(o,t)));return s}function lc(e,t){const n=ia(t,1);return wt(n,0,e),n}function cc(e){return e.slice().reverse()}function dc(e,t){return t.find(e)}function fc(e,t,n){const r=[];for(let s=0;s<=t.length-1;s++){const o=e(we(s,t));if(o!=null){const i=x(o);r.push(i)}}return le(n,ze())?r:ar(s=>s,r,n)}function ur(e,t,n){const r=e;return n.reduce(r,t)}function we(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function wt(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function aa(e,t,n){return t.reduceRight((r,s)=>e(s,r),n)}class ce extends H{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+R("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((s,o)=>{e:for(;;){const i=s,a=o,l=i.tail,u=a.tail;if(l!=null)if(u!=null){const f=x(l),c=x(u);if(le(i.head,a.head)){s=f,o=c;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,s,o)=>{e:for(;;){const i=r,a=s,l=o,u=l.tail;if(u!=null){const f=x(u);if(i>18)return a|0;r=i+1,s=(a<<1)+it(l.head)+631*i,o=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((s,o)=>{e:for(;;){const i=s,a=o,l=i.tail,u=a.tail;if(l!=null)if(u!=null){const f=x(l),c=x(u),p=Be(i.head,a.head)|0;if(p===0){s=f,o=c;continue e}else return p|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return mc(this)}[Symbol.iterator](){return nr(ne(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ne(this)}}class hc{constructor(t){this.xs=t,this.it=this.xs,this.current=ze()}"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=x(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=ze()}Dispose(){}}function mc(e){return new hc(e)}function te(){return new ce(ze(),void 0)}function Bn(e,t){return new ce(e,t)}function _t(e){return e.tail==null}function ua(e){return((n,r)=>{e:for(;;){const s=n,i=r.tail;if(i!=null){n=s+1,r=x(i);continue e}else return s|0}})(0,e)|0}function Mt(e){if(e.tail!=null)return e.head;throw new Error(oa+"\\nParameter name: list")}function de(e){const t=e.tail;if(t!=null)return x(t);throw new Error(oa+"\\nParameter name: list")}function pc(e,t){return((r,s)=>{e:for(;;){const o=r,i=s,a=i.tail;if(a!=null){if(o===t)return i.head;r=o+1,s=x(a);continue e}else throw new Error(ac+"\\nParameter name: index")}})(0,e)}function fe(){return te()}function Ne(e,t){return Bn(e,t)}function T(e){return Bn(e,te())}function P(e){return _t(e)}function Ft(e){return ua(e)}function N(e){return Mt(e)}function D(e){return de(e)}function rn(e){const t=ua(e)|0,n=gs(new Array(t),0,t,null);return((s,o)=>{e:for(;;){const i=s,a=o;if(!_t(a)){wt(n,i,Mt(a)),s=i+1,o=de(a);continue e}break}})(0,e),n}function We(e,t,n){let r=t,s=n;for(;!_t(s);)r=e(r,N(s)),s=de(s);return r}function bs(e){return We((t,n)=>Bn(n,t),te(),e)}function wc(e,t,n){return aa(e,rn(t),n)}function _c(e,t,n){return((s,o,i)=>{e:for(;;){const a=s,l=o,u=i;if(_t(u))return l;s=a+1,o=e(a,l,Mt(u)),i=de(u);continue e}})(0,t,n)}function gc(e,t,n,r){let s=t,o=n,i=r;for(;!_t(o)&&!_t(i);)s=e(s,Mt(o),Mt(i)),o=de(o),i=de(i);return s}function xn(e,t){We((n,r)=>{e(r)},void 0,t)}function Y(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Bn(we(r,e),n);return n}function S(e){return Y(e,te())}function bc(e){let t,n;if(He(e))return S(e);if(e instanceof ce)return e;{const r=te();let s=r;const o=ne(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"]();s=(t=s,n=new ce(l,void 0),t.tail=n,n)}}finally{K(o)}const i=s,a=te();return i.tail=a,de(r)}}function yc(e){const t=te();let n=t;const r=i=>{n=We((a,l)=>{const u=new ce(l,void 0);return a.tail=u,u},n,i)};if(He(e))e.forEach(r);else if(e instanceof ce)xn(r,e);else{const i=ne(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();)r(i["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{K(i)}}const s=n,o=te();return s.tail=o,de(t)}function ys(e,t){return We((n,r)=>Bn(r,n),t,bs(e))}function vc(e,t){const n=te(),r=_c((o,i,a)=>{const l=new ce(e(o,a),void 0);return i.tail=l,l},n,t),s=te();return r.tail=s,de(n)}function vs(e,t){const n=te(),r=We((o,i)=>{const a=new ce(e(i),void 0);return o.tail=a,a},n,t),s=te();return r.tail=s,de(n)}function Sc(e,t){return(r=>{e:for(;;){const s=r;if(_t(s))return;{const o=e(Mt(s));if(o==null){r=de(s);continue e}else return o}}})(t)}function xc(e,t){return((r,s)=>{e:for(;;){const o=r,i=s;if(_t(i))return;if(e(Mt(i)))return o;r=o+1,s=de(i);continue e}})(0,t)}function Cn(e,t){return pc(t,e)}function Cc(e,t){const n=te(),r=We((o,i)=>{if(e(i)){const a=new ce(i,void 0);return o.tail=a,a}else return o},n,t),s=te();return r.tail=s,de(n)}function kc(e,t){const n=te(),r=te(),s=n,o=We((l,u)=>{let f,c;const p=l[0],m=l[1];return e(u)?[(f=new ce(u,void 0),p.tail=f,f),m]:[p,(c=new ce(u,void 0),m.tail=c,c)]},[s,r],t),i=te();o[0].tail=i;const a=te();return o[1].tail=a,[de(s),de(r)]}function Ac(e,t){const n=te(),r=We((o,i)=>{const a=e(i);if(a==null)return o;{const l=new ce(x(a),void 0);return o.tail=l,l}},n,t),s=te();return r.tail=s,de(n)}function la(e,t){return We((n,r)=>n&&e(r),!0,t)}function Fc(e,t){const n=rn(t);return n.sort(e),S(n)}function Nc(e,t,n){return Fc((r,s)=>n.Compare(e(r),e(s)),t)}class Mc{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,s=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(s)}}}Dispose(){}}class lr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,lr.prototype)}}class Ss{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Ss.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function nt(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new lr);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Gn(n))}});else try{e(t)}catch(n){t.onError(Gn(n))}}}function Ec(e,t){return nt(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(s){n.onError(Gn(s))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Tc(e){return nt(t=>t.onSuccess(e))}class $c{Bind(t,n){return Ec(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return nt(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let s=r.next();return this.While(()=>!s.done,this.Delay(()=>{const o=n(s.value);return s=r.next(),o}))}Return(t){return Tc(t)}ReturnFrom(t){return t}TryFinally(t,n){return nt(r=>{t({onSuccess:s=>{n(),r.onSuccess(s)},onError:s=>{n(),r.onError(s)},onCancel:s=>{n(),r.onCancel(s)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return nt(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:s=>{try{n(s)(r)}catch(o){r.onError(Gn(o))}}})})}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 nt(t=>t.onSuccess(void 0))}}const L=new $c;function Bc(e){return new ca(0,[e])}function Ic(e){return new ca(1,[e])}class ca extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function Vc(e){return Bc(e)}function Lc(e){return Ic(e)}function kr(e){}const Oc=new Mc;function Rc(e){return nt(t=>{e({onSuccess:n=>t.onSuccess(Vc(n)),onError:n=>t.onSuccess(Lc(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Dc(e){return nt(t=>e([t.onSuccess,t.onError,t.onCancel]))}function da(e){return nt(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new lr)})})}function Pc(e,t){return Hc(e,t)}function Uc(e,t){return Pc(e,t)}function Hc(e,t,n,r,s){typeof t!="function"&&(s=t,t=void 0);const o=new Ss;e({onSuccess:t||kr,onError:kr,onCancel:kr,cancelToken:s||Oc,trampoline:o})}class Lt extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class zc extends M{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class jc extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class cr extends H{constructor(t,n,r,s,o,i,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=s,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=a,this.content=l}}class Ot extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class fa extends H{constructor(t,n,r,s,o,i){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=s,this.responseHeaders=o,this.content=i}}function Gc(e){throw new Error(e)}const Wc="Enumeration already finished.",qc="Enumeration has not started. Call MoveNext.",ha="The input sequence has an insufficient number of elements.",Zc="Reset is not supported on this enumerator.";function Jc(){throw new Error(Zc)}function xs(){throw new Error(qc)}function Gr(){throw new Error(Wc)}class Kc{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const s=ne(t);try{for(;n<4&&s["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+je(s["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{K(s)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return nr(ne(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Yc(e){return new Kc(e)}class Qc{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"(){Jc()}Dispose(){this.dispose()}}function dr(e,t,n){return new Qc(e,t,n)}function Xc(e){let t,n,r=!1,s=!1,o;const i=()=>{if(s=!0,n!=null){const a=x(n);try{K(a)}finally{n=void 0}}if(t!=null){const a=x(t);try{K(a)}finally{t=void 0}}};return dr(()=>(r?s&&Gr():xs(),o!=null?x(o):Gr()),()=>{let a;if(r||(r=!0),s)return!1;{let l;for(;l==null;){const u=t,f=n;if(u!=null)if(f!=null){const c=x(f);if(c["System.Collections.IEnumerator.MoveNext"]())o=$e(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{K(c)}finally{n=void 0}}else{const c=x(u);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),ne(a)):(i(),l=!1)}else t=ne(e)}return x(l)}},()=>{s||i()})}function ed(e,t){return dr(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{K(t)}finally{}})}function ma(e,t,n){let r=!1,s,o=$e(e());const i=()=>{if(o!=null){const l=x(o);try{n(l)}finally{o=void 0}}},a=()=>{try{i()}finally{s=void 0}};return dr(()=>(r||xs(),s!=null?x(s):Gr()),()=>{if(r||(r=!0),o!=null){const l=x(o);let u;try{u=t(l)}catch(f){throw a(),f}return u!=null?(s=u,!0):(a(),!1)}else return!1},i)}function td(e,t){let n,r=t;return dr(()=>{if(n!=null){const s=x(n)[0];return x(n)[1],s}else return xs()},()=>(n=e(r),n!=null?(x(n)[0],r=x(n)[1],!0):!1),()=>{})}function nd(e,t){t==null&&Gc(e)}function sn(e){return Yc(e)}function Et(e){return nd("source",e),ne(e)}function E(e){return sn(()=>ne(e()))}function pa(e){return sn(()=>Xc(e))}function rd(e,t){return sn(()=>td(e,t))}function he(){return E(()=>new Array(0))}function B(e){return E(()=>lc(e))}function sd(e){return e instanceof ce?rn(e):Array.from(e)}function re(e){return He(e)?S(e):e instanceof ce?e:bc(e)}function od(e,t,n){return sn(()=>ma(e,t,n))}function id(e,t,n){return sn(()=>{let r=-1;return ma(e,s=>(r=r+1|0,t(r,s)),n)})}function ee(e,t){return pa([e,t])}function ad(e,t,n){const r=Et(t);try{const s=Et(n);try{let o=0,i=r["System.Collections.IEnumerator.MoveNext"](),a=s["System.Collections.IEnumerator.MoveNext"]();for(;o===0&&i&&a;)o=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),s["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,o===0&&(i=r["System.Collections.IEnumerator.MoveNext"](),a=s["System.Collections.IEnumerator.MoveNext"]());return(o!==0?o:i?1:a?-1:0)|0}finally{K(s)}}finally{K(r)}}function Vt(e,t,n){const r=Et(t);try{let s=!1;for(;!s&&r["System.Collections.IEnumerator.MoveNext"]();)s=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return s}finally{K(r)}}function wa(e,t,n){const r=Et(n);try{let s=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)s=e(s,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return s}finally{K(r)}}function Cs(e,t){wa((n,r)=>{e(r)},void 0,t)}function Pe(e,t){return od(()=>Et(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?$e(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{K(n)})}function ud(e){return E(()=>cc(sd(e)))}function ld(e,t){return sn(()=>{const n=Et(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(ha+"\\nParameter name: source");return ed(()=>{},n)}catch(r){throw K(n),r}})}function cd(e,t){return id(()=>Et(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return $e(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(ha+"\\nParameter name: source")}else return},n=>{K(n)})}function dd(e,t){return E(()=>pa(Pe(e,t)))}class _a{constructor(t,n){this.k=t,this.v=n}}function Yn(e,t){return new _a(e,t)}function _e(e){return e.k}function Me(e){return e.v}class se extends _a{constructor(t,n,r,s,o){super(t,n),this.left=r,this.right=s,this.h=o|0}}function Un(e,t,n,r,s){return new se(e,t,n,r,s)}function me(e){return e.left}function pe(e){return e.right}function xt(e){return e.h}function ga(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=x(r);if(s instanceof se){const o=s;e=ga(n+1,me(o)),t=pe(o);continue e}else return n+1|0}else return n|0}}function fd(e){return ga(0,e)}function Ve(e,t,n,r){let s,o,i;const a=e;if(a!=null){const c=x(a);i=c instanceof se?(s=c,xt(s)):1}else i=0;let l;const u=r;if(u!=null){const c=x(u);l=c instanceof se?(o=c,xt(o)):1}else l=0;const f=(i<l?l:i)|0;return f===0?Yn(t,n):Un(t,n,e,r,f+1)}function wo(e,t,n,r){let s,o,i,a,l,u,f,c,p;const m=e;if(m!=null){const g=x(m);p=g instanceof se?(s=g,xt(s)):1}else p=0;let w;const b=r;if(b!=null){const g=x(b);w=g instanceof se?(o=g,xt(o)):1}else w=0;if(w>p+2){const g=x(r);if(g instanceof se){const _=g;if(i=me(_),(i!=null?(a=x(i),a instanceof se?(l=a,xt(l)):1):0)>p+1){const k=x(me(_));if(k instanceof se){const y=k;return Ve(Ve(e,t,n,me(y)),_e(y),Me(y),Ve(pe(y),_e(_),Me(_),pe(_)))}else throw new Error("internal error: Map.rebalance")}else return Ve(Ve(e,t,n,me(_)),_e(_),Me(_),pe(_))}else throw new Error("internal error: Map.rebalance")}else if(p>w+2){const g=x(e);if(g instanceof se){const _=g;if(u=pe(_),(u!=null?(f=x(u),f instanceof se?(c=f,xt(c)):1):0)>w+1){const k=x(pe(_));if(k instanceof se){const y=k;return Ve(Ve(me(_),_e(_),Me(_),me(y)),_e(y),Me(y),Ve(pe(y),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ve(me(_),_e(_),Me(_),Ve(pe(_),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ve(e,t,n,r)}function Jt(e,t,n,r){if(r!=null){const s=x(r),o=e.Compare(t,_e(s))|0;if(s instanceof se){const i=s;return o<0?wo(Jt(e,t,n,me(i)),_e(i),Me(i),pe(i)):o===0?Un(t,n,me(i),pe(i),xt(i)):wo(me(i),_e(i),Me(i),Jt(e,t,n,pe(i)))}else return o<0?Un(t,n,void 0,r,2):o===0?Yn(t,n):Un(t,n,r,void 0,2)}else return Yn(t,n)}function ba(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o!=null){const i=x(o),a=r.Compare(s,_e(i))|0;if(a===0)return $e(Me(i));if(i instanceof se){const l=i;e=r,t=s,n=a<0?me(l):pe(l);continue e}else return}else return}}function hd(e,t,n){const r=ba(e,t,n);if(r==null)throw new Error;return x(r)}function md(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o!=null){const i=x(o),a=r.Compare(s,_e(i))|0;if(i instanceof se){const l=i;if(a<0){e=r,t=s,n=me(l);continue e}else{if(a===0)return!0;e=r,t=s,n=pe(l);continue e}}else return a===0}else return!1}}function ya(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=x(r);if(s instanceof se){const o=s;ya(n,me(o)),n(_e(o),Me(o)),e=n,t=pe(o);continue e}else n(_e(s),Me(s))}break}}function pd(e,t){ya(e,t)}function wd(e,t,n){let r=n;pd((s,o)=>{wt(t,r,[s,o]),r=r+1|0},e)}function _d(e,t){return We((n,r)=>Jt(e,r[0],r[1],n),void 0,t)}function gd(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){const i=o["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=Jt(r,i[0],i[1],s),n=o;continue e}else return s}}function bd(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const s=we(r,t);n=Jt(e,s[0],s[1],n)}return n}function va(e,t){if(He(t))return bd(e,t);if(t instanceof ce)return _d(e,t);{const n=ne(t);try{return gd(e,void 0,n)}finally{K(n)}}}class yd extends H{constructor(t,n){super(),this.stack=t,this.started=n}}function Sa(e){e:for(;;){const t=e;if(P(t))return fe();{const n=D(t),r=N(t);if(r!=null){const s=x(r);if(s instanceof se){const o=s;e=Y([me(o),Yn(_e(o),Me(o)),pe(o)],n);continue e}else return t}else{e=n;continue e}}}}function _o(e){return new yd(Sa(T(e)),!1)}function vd(){throw new Error("enumeration not started")}function Sd(){throw new Error("enumeration already finished")}function go(e){if(e.started){const t=e.stack;if(P(t))return Sd();if(N(t)!=null){const n=x(N(t));if(n instanceof se)throw new Error("Please report error: Map iterator, unexpected stack for current");return[_e(n),Me(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return vd()}function xd(e){if(e.started){const t=e.stack;if(P(t))return!1;if(N(t)!=null){if(x(N(t))instanceof se)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Sa(D(t)),!P(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!P(e.stack)}function bo(e){let t=_o(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return go(t)},"System.Collections.IEnumerator.get_Current"(){return go(t)},"System.Collections.IEnumerator.MoveNext"(){return xd(t)},"System.Collections.IEnumerator.Reset"(){t=_o(e)},Dispose(){}}}class Qn{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Fd(this)|0}Equals(t){const n=this;if(t instanceof Qn){const r=t,s=ne(n);try{const o=ne(r);try{const i=()=>{const a=s["System.Collections.IEnumerator.MoveNext"]();if(a===o["System.Collections.IEnumerator.MoveNext"]())if(a){const l=s["System.Collections.Generic.IEnumerator`1.get_Current"](),u=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return le(l[0],u[0])&&le(l[1],u[1])?i():!1}else return!0;else return!1};return i()}finally{K(o)}}finally{K(s)}}else return!1}toString(){return"map ["+R("; ",Pe(n=>Ol("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return bo(this.tree)}[Symbol.iterator](){return nr(ne(this))}"System.Collections.IEnumerable.GetEnumerator"(){return bo(this.tree)}CompareTo(t){const n=this;if(t instanceof Qn)return ad((s,o)=>{const i=n.comparer.Compare(s[0],o[0])|0;return(i!==0?i:Be(s[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 vo(n,t[0])&&le(yo(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){wd(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Ar(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Ar(this)|0}get size(){return Ar(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Pe(n=>[n[0],n[1]],this)}get(t){return yo(this,t)}has(t){return vo(this,t)}keys(){return Pe(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Pe(n=>n[1],this)}forEach(t,n){const r=this;Cs(s=>{t(s[1],s[0],r)},r)}}function fr(e,t){return new Qn(e,t)}function Cd(e){return fr(e,void 0)}function kd(e,t,n){return fr(e.comparer,Jt(e.comparer,t,n,e.tree))}function yo(e,t){return hd(e.comparer,t,e.tree)}function Ar(e){return fd(e.tree)}function vo(e,t){return md(e.comparer,t,e.tree)}function Ad(e,t){return ba(e.comparer,t,e.tree)}function Fd(e){const t=(s,o)=>(s<<1)+o+631;let n=0;const r=ne(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const s=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,it(s[0]))|0,n=t(n,it(s[1]))|0}}finally{K(r)}return n|0}function Nd(e,t,n){return kd(n,e,t)}function Md(e,t){return Ad(t,e)}function Ed(e,t){return fr(t,va(t,e))}function Td(e,t){return fr(t,va(t,e))}function xa(e){return Cd(e)}function ln(e){return new zc("Authorization",e)}const yt=new cr("",new Lt(0,[]),fe(),!1,void 0,void 0,void 0,new jc(0,[]));new fa(0,"","","",xa({Compare:rr}),new Ot(0,[""]));function So(e,t){return Rl(t)?new Array(0):Pl(t,[e],void 0,0)}function $d(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 cn(e){return new cr(e,yt.method,yt.headers,yt.withCredentials,yt.overridenMimeType,yt.overridenResponseType,yt.timeout,yt.content)}function dn(e,t){return new cr(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function fn(e,t){return new cr(t.url,t.method,ys(t.headers,T(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function hn(e){return Dc(t=>{const n=new XMLHttpRequest;n.open($d(e.method),e.url),n.onreadystatechange=()=>{let l,u,f,c,p,m,w;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),f=n.status|0,c=n.responseType,p=(m=n.responseType,m===""?new Ot(0,[n.responseText]):m==="text"?new Ot(0,[n.responseText]):m==="arraybuffer"?new Ot(2,[n.response]):m==="blob"?new Ot(1,[n.response]):new Ot(3,[n.response])),w=Td(fc(b=>{const g=S(So(":",b));if(!P(g))return[N(g).toLocaleLowerCase(),R(":",D(g)).trim()]},So(`\r
4
- `,n.getAllResponseHeaders())),{Compare:rr}),new fa(f,l,c,n.responseURL,w,p)))};const r=ne(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(l.fields[0],l.fields[1])}}finally{K(r)}n.withCredentials=e.withCredentials;const s=e.overridenMimeType;if(s!=null){const l=s;n.overrideMimeType(l)}const o=e.overridenResponseType;if(o!=null)switch(o.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const i=e.timeout;if(i!=null){const l=i|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send($e(a.fields[0]));break}case 3:{n.send($e(a.fields[0]));break}case 2:{n.send($e(a.fields[0]));break}default:n.send()}})}function Bd(e){return new d(0,[e])}function Ca(e){return new d(1,[e])}class d extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function Ye(e,t){return t.tag===0?Bd(e(t.fields[0])):Ca(t.fields[0])}function Id(e,t){return t.tag===0?e(t.fields[0]):Ca(t.fields[0])}class F extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Rt extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function xo(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Vd(e,t){switch(e.tag){case 2:return ps(xo(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return xo(t)}}const Ld=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Co=/^([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 Rd(e){function t(r){return r.replace(Co,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Ld.test(n))return Ul(n,"{","}","(",")");if(Co.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 Dd(e,t){try{return t.contents=Rd(e),!0}catch{return!1}}function Fr(){let e="";for(let t=0;t++<36;)e+=t*51&52?(t^15?8^Math.random()*(t^20?16:4):4).toString(16):"-";return e}var Wr;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Wr||(Wr={}));function Pd(e,t){const[,n,r,s]=e;return{sign:n||"",prefix:r||"",digits:s,radix:t}}function ko(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 Ud(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 Hd(e,t){if(t&Wr.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 zd(e,t,n){const s=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(s!=null){const[,,o,i]=s;if(n=n||Hd(o,t),!Ud(n).test(i))return Pd(s,n)}return null}function jd(e,t,n,r,s){const o=zd(e,t,s);if(o!=null){let i=Number.parseInt(o.sign+o.digits,o.radix);if(!Number.isNaN(i)){const[a,l]=ko(!0,r);!n&&o.radix!==10&&i>=a&&i<=l&&(i=i<<32-r>>32-r);const[u,f]=ko(n,r);if(i>=u&&i<=f)return i}}throw new Error(`The input string ${e} was not in a correct format.`)}function on(e,t,n,r,s){try{return s.contents=jd(e,t,n,r),!0}catch{return!1}}function ka(e,t){Gd(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Gd(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 Wd(){return ka(-621355968e5,0)}function qd(e){const[t,n]=Zi(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return ka(t.getTime(),r)}function Zd(e,t){try{return t.contents=qd(e),!0}catch{return!1}}function Ao(e=0,t=0,n=0,r=0,s=0){switch(arguments.length){case 1:return Jd(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],s=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+s}function Jd(e){return Number(BigInt(e)/10000n)}function Kd(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 Ao(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 s=0,o=0,i=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],u=+r[5];if(r[3]!=null&&(s=+r[3]),r[7]!=null&&(i=+r[7]),r[8]!=null)switch(r[8].length){case 1:o=+r[8]*100;break;case 2:o=+r[8]*10;break;case 3:o=+r[8];break;case 4:o=+r[8]/10;break;case 5:o=+r[8]/100;break;case 6:o=+r[8]/1e3;break;case 7:o=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*Ao(s,l,u,i,o)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Yd(e,t){try{return t.contents=Kd(e),!0}catch{return!1}}class Aa{constructor(t){this.k=t}}function ke(e){return new Aa(e)}function $(e){return e.k}class U extends Aa{constructor(t,n,r,s){super(t),this.left=n,this.right=r,this.h=s|0}}function Ae(e,t,n,r){return new U(e,t,n,r)}function G(e){return e.left}function z(e){return e.right}function Pt(e){return e.h}function Fa(e,t){e:for(;;){const n=e,r=t;if(n!=null){const s=x(n);if(s instanceof U){const o=s;e=G(o),t=Fa(z(o),r+1);continue e}else return r+1|0}else return r|0}}function Qd(e){return Fa(e,0)}function Le(e,t,n){let r,s,o;const i=e;if(i!=null){const f=x(i);o=f instanceof U?(r=f,Pt(r)):1}else o=0;let a;const l=n;if(l!=null){const f=x(l);a=f instanceof U?(s=f,Pt(s)):1}else a=0;const u=(o<a?a:o)|0;return u===0?ke(t):Ae(t,e,n,u+1)}function Fo(e,t,n){let r,s,o,i,a,l,u,f,c;const p=e;if(p!=null){const b=x(p);c=b instanceof U?(r=b,Pt(r)):1}else c=0;let m;const w=n;if(w!=null){const b=x(w);m=b instanceof U?(s=b,Pt(s)):1}else m=0;if(m>c+2){const b=x(n);if(b instanceof U){const g=b;if(o=G(g),(o!=null?(i=x(o),i instanceof U?(a=i,Pt(a)):1):0)>c+1){const _=x(G(g));if(_ instanceof U){const k=_;return Le(Le(e,t,G(k)),$(k),Le(z(k),$(g),z(g)))}else throw new Error("internal error: Set.rebalance")}else return Le(Le(e,t,G(g)),$(g),z(g))}else throw new Error("internal error: Set.rebalance")}else if(c>m+2){const b=x(e);if(b instanceof U){const g=b;if(l=z(g),(l!=null?(u=x(l),u instanceof U?(f=u,Pt(f)):1):0)>m+1){const _=x(z(g));if(_ instanceof U){const k=_;return Le(Le(G(g),$(g),G(k)),$(k),Le(z(k),t,n))}else throw new Error("internal error: Set.rebalance")}else return Le(G(g),$(g),Le(z(g),t,n))}else throw new Error("internal error: Set.rebalance")}else return Le(e,t,n)}function Kt(e,t,n){if(n!=null){const r=x(n),s=e.Compare(t,$(r))|0;if(r instanceof U){const o=r;return s<0?Fo(Kt(e,t,G(o)),$(o),z(o)):s===0?n:Fo(G(o),$(o),Kt(e,t,z(o)))}else{const o=e.Compare(t,$(r))|0;return o<0?Ae(t,void 0,n,2):o===0?n:Ae(t,n,void 0,2)}}else return ke(t)}function Na(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o!=null){const i=x(o),a=r.Compare(s,$(i))|0;if(i instanceof U){const l=i;if(a<0){e=r,t=s,n=G(l);continue e}else{if(a===0)return!0;e=r,t=s,n=z(l);continue e}}else return a===0}else return!1}}function Ma(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=x(r);if(s instanceof U){const o=s;Ma(n,G(o)),n($(o)),e=n,t=z(o);continue e}else n($(s))}break}}class Xd extends H{constructor(t,n){super(),this.stack=t,this.started=n}}function Ea(e){e:for(;;){const t=e;if(P(t))return fe();{const n=N(t),r=D(t);if(n!=null){const s=x(n);if(s instanceof U){const o=s;e=Y([G(o),ke($(o)),z(o)],r);continue e}else return t}else{e=r;continue e}}}}function No(e){return new Xd(Ea(T(e)),!1)}function ef(){throw new Error("Enumeration not started")}function tf(){throw new Error("Enumeration already started")}function Mo(e){if(e.started){const t=e.stack;if(P(t))return tf();if(N(t)!=null){const n=x(N(t));return $(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return ef()}function nf(e){if(e.started){const t=e.stack;if(P(t))return!1;if(N(t)!=null){if(x(N(t))instanceof U)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Ea(D(t)),!P(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!P(e.stack)}function Eo(e){let t=No(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Mo(t)},"System.Collections.IEnumerator.get_Current"(){return Mo(t)},"System.Collections.IEnumerator.MoveNext"(){return nf(t)},"System.Collections.IEnumerator.Reset"(){t=No(e)},Dispose(){}}}function rf(e,t,n){e:for(;;){const r=e,s=t,o=n;if(P(s))return P(o)?0:-1;if(P(o))return 1;if(N(o)!=null)if(N(s)!=null){const i=x(N(s)),a=x(N(o));if(i instanceof U){const l=i;if(G(l)==null)if(a instanceof U){const u=a;if(G(u)==null){const f=r.Compare($(l),$(u))|0;if(f!==0)return f|0;e=r,t=Ne(z(l),D(s)),n=Ne(z(u),D(o));continue e}else{let f,c,p,m,w;switch(P(s)?P(o)?f=2:N(o)!=null?(f=1,m=D(o),w=x(N(o))):f=2:N(s)!=null?(f=0,c=D(s),p=x(N(s))):P(o)?f=2:N(o)!=null?(f=1,m=D(o),w=x(N(o))):f=2,f){case 0:if(p instanceof U){const b=p;e=r,t=Y([G(b),Ae($(b),void 0,z(b),0)],c),n=o;continue e}else{e=r,t=Y([void 0,ke($(p))],c),n=o;continue e}case 1:if(w instanceof U){const b=w;e=r,t=s,n=Y([G(b),Ae($(b),void 0,z(b),0)],m);continue e}else{e=r,t=s,n=Y([void 0,ke($(w))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare($(l),$(a))|0;if(u!==0)return u|0;e=r,t=Ne(z(l),D(s)),n=Ne(void 0,D(o));continue e}else{let u,f,c,p,m;switch(P(s)?P(o)?u=2:N(o)!=null?(u=1,p=D(o),m=x(N(o))):u=2:N(s)!=null?(u=0,f=D(s),c=x(N(s))):P(o)?u=2:N(o)!=null?(u=1,p=D(o),m=x(N(o))):u=2,u){case 0:if(c instanceof U){const w=c;e=r,t=Y([G(w),Ae($(w),void 0,z(w),0)],f),n=o;continue e}else{e=r,t=Y([void 0,ke($(c))],f),n=o;continue e}case 1:if(m instanceof U){const w=m;e=r,t=s,n=Y([G(w),Ae($(w),void 0,z(w),0)],p);continue e}else{e=r,t=s,n=Y([void 0,ke($(m))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof U){const l=a;if(G(l)==null){const u=r.Compare($(i),$(l))|0;if(u!==0)return u|0;e=r,t=Ne(void 0,D(s)),n=Ne(z(l),D(o));continue e}else{let u,f,c,p,m;switch(P(s)?P(o)?u=2:N(o)!=null?(u=1,p=D(o),m=x(N(o))):u=2:N(s)!=null?(u=0,f=D(s),c=x(N(s))):P(o)?u=2:N(o)!=null?(u=1,p=D(o),m=x(N(o))):u=2,u){case 0:if(c instanceof U){const w=c;e=r,t=Y([G(w),Ae($(w),void 0,z(w),0)],f),n=o;continue e}else{e=r,t=Y([void 0,ke($(c))],f),n=o;continue e}case 1:if(m instanceof U){const w=m;e=r,t=s,n=Y([G(w),Ae($(w),void 0,z(w),0)],p);continue e}else{e=r,t=s,n=Y([void 0,ke($(m))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare($(i),$(a))|0;if(l!==0)return l|0;e=r,t=D(s),n=D(o);continue e}}else{x(N(o));let i,a,l,u,f;switch(P(s)?P(o)?i=2:N(o)!=null?(i=1,u=D(o),f=x(N(o))):i=2:N(s)!=null?(i=0,a=D(s),l=x(N(s))):P(o)?i=2:N(o)!=null?(i=1,u=D(o),f=x(N(o))):i=2,i){case 0:if(l instanceof U){const c=l;e=r,t=Y([G(c),Ae($(c),void 0,z(c),0)],a),n=o;continue e}else{e=r,t=Y([void 0,ke($(l))],a),n=o;continue e}case 1:if(f instanceof U){const c=f;e=r,t=s,n=Y([G(c),Ae($(c),void 0,z(c),0)],u);continue e}else{e=r,t=s,n=Y([void 0,ke($(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(N(s)!=null){x(N(s));let i,a,l,u,f;switch(P(s)?P(o)?i=2:N(o)!=null?(i=1,u=D(o),f=x(N(o))):i=2:N(s)!=null?(i=0,a=D(s),l=x(N(s))):P(o)?i=2:N(o)!=null?(i=1,u=D(o),f=x(N(o))):i=2,i){case 0:if(l instanceof U){const c=l;e=r,t=Y([G(c),Ae($(c),void 0,z(c),0)],a),n=o;continue e}else{e=r,t=Y([void 0,ke($(l))],a),n=o;continue e}case 1:if(f instanceof U){const c=f;e=r,t=s,n=Y([G(c),Ae($(c),void 0,z(c),0)],u);continue e}else{e=r,t=s,n=Y([void 0,ke($(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=D(s),n=D(o);continue e}}}function To(e,t,n){return t==null?n==null?0:-1:n==null?1:rf(e,T(t),T(n))|0}function sf(e,t,n){let r=n;Ma(s=>{wt(t,r,s),r=r+1|0},e)}function of(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){e=r,t=Kt(r,o["System.Collections.Generic.IEnumerator`1.get_Current"](),s),n=o;continue e}else return s}}function af(e,t){return ur((n,r)=>Kt(e,r,n),void 0,t)}function uf(e,t){return We((n,r)=>Kt(e,r,n),void 0,t)}function Ta(e,t){if(He(t))return af(e,t);if(t instanceof ce)return uf(e,t);{const n=ne(t);try{return of(e,void 0,n)}finally{K(n)}}}class ks{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return df(this)|0}Equals(t){let n;const r=this;return t instanceof ks&&(n=t,To(jt(r),Re(r),Re(n))===0)}toString(){return"set ["+R("; ",Pe(n=>je(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return To(jt(n),Re(n),Re(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 Na(jt(n),t,Re(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){sf(Re(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Nr(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Nr(this)|0}GetEnumerator(){return Eo(Re(this))}[Symbol.iterator](){return nr(ne(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Eo(Re(this))}get size(){return Nr(this)|0}add(t){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(t){throw new Error("Set cannot be mutated")}has(t){return $a(this,t)}keys(){return Pe(n=>n,this)}values(){return Pe(n=>n,this)}entries(){return Pe(n=>[n,n],this)}forEach(t,n){const r=this;Cs(s=>{t(s,s,r)},r)}}function hr(e,t){return new ks(e,t)}function jt(e){return e.comparer}function Re(e){return e.tree}function lf(e){return hr(e,void 0)}function cf(e,t){return hr(jt(e),Kt(jt(e),t,Re(e)))}function Nr(e){return Qd(Re(e))}function $a(e,t){return Na(jt(e),t,Re(e))}function df(e){let t=0;const n=ne(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+it(r)+631|0}}finally{K(n)}return Math.abs(t)|0}function qr(e,t){return $a(t,e)}function ff(e,t){return cf(t,e)}function hf(e){return lf(e)}function mf(e,t){return hr(t,Ta(t,e))}function pf(e,t){return hr(t,Ta(t,e))}function mn(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
1
+ var Nn,I,gi,Nt,Xs,bi,Rr,rs,Ur,Pr,yi,vn={},vi=[],Lu=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,sr=Array.isArray;function st(e,t){for(var n in t)e[n]=t[n];return e}function xi(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function h(e,t,n){var r,s,o,i={};for(o in t)o=="key"?r=t[o]:o=="ref"?s=t[o]:i[o]=t[o];if(arguments.length>2&&(i.children=arguments.length>3?Nn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)i[o]===void 0&&(i[o]=e.defaultProps[o]);return bn(e,i,r,s,null)}function bn(e,t,n,r,s){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:s??++gi,__i:-1,__u:0};return s==null&&I.vnode!=null&&I.vnode(o),o}function Si(){return{current:null}}function xe(e){return e.children}function Pe(e,t){this.props=e,this.context=t}function en(e,t){if(t==null)return e.__?en(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"?en(e):null}function Ci(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 Ci(e)}}function Hr(e){(!e.__d&&(e.__d=!0)&&Nt.push(e)&&!Wn.__r++||Xs!==I.debounceRendering)&&((Xs=I.debounceRendering)||bi)(Wn)}function Wn(){var e,t,n,r,s,o,i,a;for(Nt.sort(Rr);e=Nt.shift();)e.__d&&(t=Nt.length,r=void 0,o=(s=(n=e).__v).__e,i=[],a=[],n.__P&&((r=st({},s)).__v=s.__v+1,I.vnode&&I.vnode(r),ss(n.__P,r,s,n.__n,n.__P.namespaceURI,32&s.__u?[o]:null,i,o??en(s),!!(32&s.__u),a),r.__v=s.__v,r.__.__k[r.__i]=r,Fi(i,r,a),r.__e!=o&&Ci(r)),Nt.length>t&&Nt.sort(Rr));Wn.__r=0}function Ai(e,t,n,r,s,o,i,a,l,u,f){var c,p,m,w,b,g=r&&r.__k||vi,_=t.length;for(n.__d=l,Ou(n,t,g),l=n.__d,c=0;c<_;c++)(m=n.__k[c])!=null&&(p=m.__i===-1?vn:g[m.__i]||vn,m.__i=c,ss(e,m,p,s,o,i,a,l,u,f),w=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&os(p.ref,null,m),f.push(m.ref,m.__c||w,m)),b==null&&w!=null&&(b=w),65536&m.__u||p.__k===m.__k?l=ki(m,l,e):typeof m.type=="function"&&m.__d!==void 0?l=m.__d:w&&(l=w.nextSibling),m.__d=void 0,m.__u&=-196609);n.__d=l,n.__e=b}function Ou(e,t,n){var r,s,o,i,a,l=t.length,u=n.length,f=u,c=0;for(e.__k=[],r=0;r<l;r++)(s=t[r])!=null&&typeof s!="boolean"&&typeof s!="function"?(i=r+c,(s=e.__k[r]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?bn(null,s,null,null,null):sr(s)?bn(xe,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?bn(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,o=null,(a=s.__i=Du(s,n,i,f))!==-1&&(f--,(o=n[a])&&(o.__u|=131072)),o==null||o.__v===null?(a==-1&&c--,typeof s.type!="function"&&(s.__u|=65536)):a!==i&&(a==i-1?c--:a==i+1?c++:(a>i?c--:c++,s.__u|=65536))):s=e.__k[r]=null;if(f)for(r=0;r<u;r++)(o=n[r])!=null&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=en(o)),Ni(o,o))}function ki(e,t,n){var r,s;if(typeof e.type=="function"){for(r=e.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=e,t=ki(r[s],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=en(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function ut(e,t){return t=t||[],e==null||typeof e=="boolean"||(sr(e)?e.some(function(n){ut(n,t)}):t.push(e)),t}function Du(e,t,n,r){var s=e.key,o=e.type,i=n-1,a=n+1,l=t[n];if(l===null||l&&s==l.key&&o===l.type&&!(131072&l.__u))return n;if(r>(l!=null&&!(131072&l.__u)?1:0))for(;i>=0||a<t.length;){if(i>=0){if((l=t[i])&&!(131072&l.__u)&&s==l.key&&o===l.type)return i;i--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&s==l.key&&o===l.type)return a;a++}}return-1}function eo(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Lu.test(t)?n:n+"px"}function Dn(e,t,n,r,s){var o;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||eo(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||eo(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=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+o]=n,n?r?n.u=r.u:(n.u=rs,e.addEventListener(t,o?Pr:Ur,o)):e.removeEventListener(t,o?Pr:Ur,o);else{if(s=="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 to(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=rs++;else if(t.t<n.u)return;return n(I.event?I.event(t):t)}}}function ss(e,t,n,r,s,o,i,a,l,u){var f,c,p,m,w,b,g,_,k,x,Z,ae,Ie,xt,St,pt,ge=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=t.__e=n.__e]),(f=I.__b)&&f(t);e:if(typeof ge=="function")try{if(_=t.props,k="prototype"in ge&&ge.prototype.render,x=(f=ge.contextType)&&r[f.__c],Z=f?x?x.props.value:f.__:r,n.__c?g=(c=t.__c=n.__c).__=c.__E:(k?t.__c=c=new ge(_,Z):(t.__c=c=new Pe(_,Z),c.constructor=ge,c.render=Uu),x&&x.sub(c),c.props=_,c.state||(c.state={}),c.context=Z,c.__n=r,p=c.__d=!0,c.__h=[],c._sb=[]),k&&c.__s==null&&(c.__s=c.state),k&&ge.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=st({},c.__s)),st(c.__s,ge.getDerivedStateFromProps(_,c.__s))),m=c.props,w=c.state,c.__v=t,p)k&&ge.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),k&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(k&&ge.getDerivedStateFromProps==null&&_!==m&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(_,Z),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(_,c.__s,Z)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=_,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(On){On&&(On.__=t)}),ae=0;ae<c._sb.length;ae++)c.__h.push(c._sb[ae]);c._sb=[],c.__h.length&&i.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(_,c.__s,Z),k&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(m,w,b)})}if(c.context=Z,c.props=_,c.__P=e,c.__e=!1,Ie=I.__r,xt=0,k){for(c.state=c.__s,c.__d=!1,Ie&&Ie(t),f=c.render(c.props,c.state,c.context),St=0;St<c._sb.length;St++)c.__h.push(c._sb[St]);c._sb=[]}else do c.__d=!1,Ie&&Ie(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++xt<25);c.state=c.__s,c.getChildContext!=null&&(r=st(st({},r),c.getChildContext())),k&&!p&&c.getSnapshotBeforeUpdate!=null&&(b=c.getSnapshotBeforeUpdate(m,w)),Ai(e,sr(pt=f!=null&&f.type===xe&&f.key==null?f.props.children:f)?pt:[pt],t,n,r,s,o,i,a,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&i.push(c),g&&(c.__E=c.__=null)}catch(On){if(t.__v=null,l||o!=null){for(t.__u|=l?160:32;a&&a.nodeType===8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else t.__e=n.__e,t.__k=n.__k;I.__e(On,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Ru(n.__e,t,n,r,s,o,i,l,u);(f=I.diffed)&&f(t)}function Fi(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)os(n[r],n[++r],n[++r]);I.__c&&I.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(o){o.call(s)})}catch(o){I.__e(o,s.__v)}})}function Ru(e,t,n,r,s,o,i,a,l){var u,f,c,p,m,w,b,g=n.props,_=t.props,k=t.type;if(k==="svg"?s="http://www.w3.org/2000/svg":k==="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),o!=null){for(u=0;u<o.length;u++)if((m=o[u])&&"setAttribute"in m==!!k&&(k?m.localName===k:m.nodeType===3)){e=m,o[u]=null;break}}if(e==null){if(k===null)return document.createTextNode(_);e=document.createElementNS(s,k,_.is&&_),a&&(I.__m&&I.__m(t,o),a=!1),o=null}if(k===null)g===_||a&&e.data===_||(e.data=_);else{if(o=o&&Nn.call(e.childNodes),g=n.props||vn,!a&&o!=null)for(g={},u=0;u<e.attributes.length;u++)g[(m=e.attributes[u]).name]=m.value;for(u in g)if(m=g[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=m;else if(!(u in _)){if(u=="value"&&"defaultValue"in _||u=="checked"&&"defaultChecked"in _)continue;Dn(e,u,null,m,s)}}for(u in _)m=_[u],u=="children"?p=m:u=="dangerouslySetInnerHTML"?f=m:u=="value"?w=m:u=="checked"?b=m:a&&typeof m!="function"||g[u]===m||Dn(e,u,m,g[u],s);if(f)a||c&&(f.__html===c.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),Ai(e,sr(p)?p:[p],t,n,r,k==="foreignObject"?"http://www.w3.org/1999/xhtml":s,o,i,o?o[0]:n.__k&&en(n,0),a,l),o!=null)for(u=o.length;u--;)xi(o[u]);a||(u="value",k==="progress"&&w==null?e.removeAttribute("value"):w!==void 0&&(w!==e[u]||k==="progress"&&!w||k==="option"&&w!==g[u])&&Dn(e,u,w,g[u],s),u="checked",b!==void 0&&b!==e[u]&&Dn(e,u,b,g[u],s))}return e}function os(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(s){I.__e(s,n)}}function Ni(e,t,n){var r,s;if(I.unmount&&I.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||os(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){I.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&Ni(r[s],t,n||typeof e.type!="function");n||xi(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Uu(e,t,n){return this.constructor(e,n)}function bt(e,t,n){var r,s,o,i;I.__&&I.__(e,t),s=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],i=[],ss(t,e=(!r&&n||t).__k=h(xe,null,[e]),s||vn,vn,t.namespaceURI,!r&&n?[n]:s?null:t.firstChild?Nn.call(t.childNodes):null,o,!r&&n?n:s?s.__e:t.firstChild,r,i),Fi(o,e,i)}function is(e,t){bt(e,t,is)}function as(e,t,n){var r,s,o,i,a=st({},e.props);for(o in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?s=t[o]:a[o]=t[o]===void 0&&i!==void 0?i[o]:t[o];return arguments.length>2&&(a.children=arguments.length>3?Nn.call(arguments,2):n),bn(e.type,a,r||e.key,s||e.ref,null)}function Mi(e,t){var n={__c:t="__cC"+yi++,__:e,Consumer:function(r,s){return r.children(s)},Provider:function(r){var s,o;return this.getChildContext||(s=[],(o={})[t]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){s=null},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&s.some(function(a){a.__e=!0,Hr(a)})},this.sub=function(i){s.push(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){s&&s.splice(s.indexOf(i),1),a&&a.call(i)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Nn=vi.slice,I={__e:function(e,t,n,r){for(var s,o,i;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&o.getDerivedStateFromError!=null&&(s.setState(o.getDerivedStateFromError(e)),i=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,r||{}),i=s.__d),i)return s.__E=s}catch(a){e=a}throw e}},gi=0,Pe.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=st({},this.state),typeof e=="function"&&(e=e(st({},n),this.props)),e&&st(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Hr(this))},Pe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Hr(this))},Pe.prototype.render=xe,Nt=[],bi=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Rr=function(e,t){return e.__v.__b-t.__v.__b},Wn.__r=0,rs=0,Ur=to(!1),Pr=to(!0),yi=0;var ct,G,kr,no,tn=0,Ei=[],X=I,ro=X.__b,so=X.__r,oo=X.diffed,io=X.__c,ao=X.unmount,uo=X.__;function Vt(e,t){X.__h&&X.__h(G,e,tn||t),tn=0;var n=G.__H||(G.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function un(e){return tn=1,or($i,e)}function or(e,t,n){var r=Vt(ct++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):$i(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,a);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=G,!G.u)){var s=function(a,l,u){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(p){return!!p.__c});if(f.every(function(p){return!p.__N}))return!o||o.call(this,a,l,u);var c=!1;return f.forEach(function(p){if(p.__N){var m=p.__[0];p.__=p.__N,p.__N=void 0,m!==p.__[0]&&(c=!0)}}),!(!c&&r.__c.props===a)&&(!o||o.call(this,a,l,u))};G.u=!0;var o=G.shouldComponentUpdate,i=G.componentWillUpdate;G.componentWillUpdate=function(a,l,u){if(this.__e){var f=o;o=void 0,s(a,l,u),o=f}i&&i.call(this,a,l,u)},G.shouldComponentUpdate=s}return r.__N||r.__}function Mn(e,t){var n=Vt(ct++,3);!X.__s&&ms(n.__H,t)&&(n.__=e,n.i=t,G.__H.__h.push(n))}function ln(e,t){var n=Vt(ct++,4);!X.__s&&ms(n.__H,t)&&(n.__=e,n.i=t,G.__h.push(n))}function us(e){return tn=5,En(function(){return{current:e}},[])}function ls(e,t,n){tn=6,ln(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 En(e,t){var n=Vt(ct++,7);return ms(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function cs(e,t){return tn=8,En(function(){return e},t)}function ds(e){var t=G.context[e.__c],n=Vt(ct++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(G)),t.props.value):e.__}function fs(e,t){X.useDebugValue&&X.useDebugValue(t?t(e):e)}function Pu(e){var t=Vt(ct++,10),n=un();return t.__=e,G.componentDidCatch||(G.componentDidCatch=function(r,s){t.__&&t.__(r,s),n[1](r)}),[n[0],function(){n[1](void 0)}]}function hs(){var e=Vt(ct++,11);if(!e.__){for(var t=G.__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 Hu(){for(var e;e=Ei.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(zn),e.__H.__h.forEach(zr),e.__H.__h=[]}catch(t){e.__H.__h=[],X.__e(t,e.__v)}}X.__b=function(e){G=null,ro&&ro(e)},X.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),uo&&uo(e,t)},X.__r=function(e){so&&so(e),ct=0;var t=(G=e.__c).__H;t&&(kr===G?(t.__h=[],G.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(zn),t.__h.forEach(zr),t.__h=[],ct=0)),kr=G},X.diffed=function(e){oo&&oo(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ei.push(t)!==1&&no===X.requestAnimationFrame||((no=X.requestAnimationFrame)||zu)(Hu)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),kr=G=null},X.__c=function(e,t){t.some(function(n){try{n.__h.forEach(zn),n.__h=n.__h.filter(function(r){return!r.__||zr(r)})}catch(r){t.some(function(s){s.__h&&(s.__h=[])}),t=[],X.__e(r,n.__v)}}),io&&io(e,t)},X.unmount=function(e){ao&&ao(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{zn(r)}catch(s){t=s}}),n.__H=void 0,t&&X.__e(t,n.__v))};var lo=typeof requestAnimationFrame=="function";function zu(e){var t,n=function(){clearTimeout(r),lo&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);lo&&(t=requestAnimationFrame(n))}function zn(e){var t=G,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),G=t}function zr(e){var t=G;e.__c=e.__(),G=t}function ms(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function $i(e,t){return typeof t=="function"?t(e):t}function Ti(e,t){for(var n in t)e[n]=t[n];return e}function jr(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function qn(e,t){this.props=e,this.context=t}function Bi(e,t){function n(s){var o=this.props.ref,i=o==s.ref;return!i&&o&&(o.call?o(null):o.current=null),t?!t(this.props,s)||!i:jr(this.props,s)}function r(s){return this.shouldComponentUpdate=n,h(e,s)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(qn.prototype=new Pe).isPureReactComponent=!0,qn.prototype.shouldComponentUpdate=function(e,t){return jr(this.props,e)||jr(this.state,t)};var co=I.__b;I.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),co&&co(e)};var ju=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ii(e){function t(n){var r=Ti({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=ju,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var fo=function(e,t){return e==null?null:ut(ut(e).map(t))},Vi={map:fo,forEach:fo,count:function(e){return e?ut(e).length:0},only:function(e){var t=ut(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ut},Gu=I.__e;I.__e=function(e,t,n,r){if(e.then){for(var s,o=t;o=o.__;)if((s=o.__c)&&s.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),s.__c(e,t)}Gu(e,t,n,r)};var ho=I.unmount;function Li(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=Ti({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Li(r,t,n)})),e}function Oi(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Oi(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 yn(){this.__u=0,this.t=null,this.__b=null}function Di(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ri(e){var t,n,r;function s(o){if(t||(t=e()).then(function(i){n=i.default||i},function(i){r=i}),r)throw r;if(!n)throw t;return h(n,o)}return s.displayName="Lazy",s.__f=!0,s}function qt(){this.u=null,this.o=null}I.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ho&&ho(e)},(yn.prototype=new Pe).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var s=Di(r.__v),o=!1,i=function(){o||(o=!0,n.__R=null,s?s(a):a())};n.__R=i;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=Oi(l,l.__c.__P,l.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.t.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},yn.prototype.componentWillUnmount=function(){this.t=[]},yn.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]=Li(this.__b,n,r.__O=r.__P)}this.__b=null}var s=t.__a&&h(xe,null,e.fallback);return s&&(s.__u&=-33),[h(xe,null,t.__a?null:e.children),s]};var mo=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 Wu(e){return this.getChildContext=function(){return e.context},e.children}function qu(e){var t=this,n=e.i;t.componentWillUnmount=function(){bt(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,s){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),bt(h(Wu,{context:t.context},e.__v),t.l)}function Ui(e,t){var n=h(qu,{__v:e,i:t});return n.containerInfo=t,n}(qt.prototype=new Pe).__a=function(e){var t=this,n=Di(t.__v),r=t.o.get(e);return r[0]++,function(s){var o=function(){t.props.revealOrder?(r.push(s),mo(t,e,r)):s()};n?n(o):o()}},qt.prototype.render=function(e){this.u=null,this.o=new Map;var t=ut(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},qt.prototype.componentDidUpdate=qt.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){mo(e,n,t)})};var Pi=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Zu=/^(?: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]/,Ju=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ku=/[A-Z0-9]/g,Yu=typeof document<"u",Qu=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Hi(e,t,n){return t.__k==null&&(t.textContent=""),bt(e,t),typeof n=="function"&&n(),e?e.__c:null}function zi(e,t,n){return is(e,t),typeof n=="function"&&n(),e?e.__c:null}Pe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Pe.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var po=I.event;function Xu(){}function el(){return this.cancelBubble}function tl(){return this.defaultPrevented}I.event=function(e){return po&&(e=po(e)),e.persist=Xu,e.isPropagationStopped=el,e.isDefaultPrevented=tl,e.nativeEvent=e};var ps,nl={enumerable:!1,configurable:!0,get:function(){return this.class}},wo=I.vnode;I.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,s={},o=r.indexOf("-")===-1;for(var i in n){var a=n[i];if(!(i==="value"&&"defaultValue"in n&&a==null||Yu&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var l=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?i="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Qu(n.type)?l==="onfocus"?i="onfocusin":l==="onblur"?i="onfocusout":Ju.test(i)&&(i=l):l=i="oninput":o&&Zu.test(i)?i=i.replace(Ku,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&s[i=l]&&(i="oninputCapture"),s[i]=a}}r=="select"&&s.multiple&&Array.isArray(s.value)&&(s.value=ut(n.children).forEach(function(u){u.props.selected=s.value.indexOf(u.props.value)!=-1})),r=="select"&&s.defaultValue!=null&&(s.value=ut(n.children).forEach(function(u){u.props.selected=s.multiple?s.defaultValue.indexOf(u.props.value)!=-1:s.defaultValue==u.props.value})),n.class&&!n.className?(s.class=n.class,Object.defineProperty(s,"className",nl)):(n.className&&!n.class||n.class&&n.className)&&(s.class=s.className=n.className),t.props=s}(e),e.$$typeof=Pi,wo&&wo(e)};var _o=I.__r;I.__r=function(e){_o&&_o(e),ps=e.__c};var go=I.diffed;I.diffed=function(e){go&&go(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),ps=null};var ji={ReactCurrentDispatcher:{current:{readContext:function(e){return ps.__n[e.__c].props.value},useCallback:cs,useContext:ds,useDebugValue:fs,useDeferredValue:_s,useEffect:Mn,useId:hs,useImperativeHandle:ls,useInsertionEffect:bs,useLayoutEffect:ln,useMemo:En,useReducer:or,useRef:us,useState:un,useSyncExternalStore:ys,useTransition:gs}}},rl="18.3.1";function Gi(e){return h.bind(null,e)}function $n(e){return!!e&&e.$$typeof===Pi}function Wi(e){return $n(e)&&e.type===xe}function qi(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Zi(e){return $n(e)?as.apply(null,arguments):e}function Ji(e){return!!e.__k&&(bt(null,e),!0)}function Ki(e){return e&&(e.base||e.nodeType===1&&e)||null}var Yi=function(e,t){return e(t)},Qi=function(e,t){return e(t)},Xi=xe;function ws(e){e()}function _s(e){return e}function gs(){return[!1,ws]}var bs=ln,ea=$n;function ys(e,t){var n=t(),r=un({h:{__:n,v:t}}),s=r[0].h,o=r[1];return ln(function(){s.__=n,s.v=t,Fr(s)&&o({h:s})},[e,n,t]),Mn(function(){return Fr(s)&&o({h:s}),e(function(){Fr(s)&&o({h:s})})},[e]),n}function Fr(e){var t,n,r=e.v,s=e.__;try{var o=r();return!((t=s)===(n=o)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var ta={useState:un,useId:hs,useReducer:or,useEffect:Mn,useLayoutEffect:ln,useInsertionEffect:bs,useTransition:gs,useDeferredValue:_s,useSyncExternalStore:ys,startTransition:ws,useRef:us,useImperativeHandle:ls,useMemo:En,useCallback:cs,useContext:ds,useDebugValue:fs,version:"18.3.1",Children:Vi,render:Hi,hydrate:zi,unmountComponentAtNode:Ji,createPortal:Ui,createElement:h,createContext:Mi,createFactory:Gi,cloneElement:Zi,createRef:Si,Fragment:xe,isValidElement:$n,isElement:ea,isFragment:Wi,isMemo:qi,findDOMNode:Ki,Component:Pe,PureComponent:qn,memo:Bi,forwardRef:Ii,flushSync:Qi,unstable_batchedUpdates:Yi,StrictMode:Xi,Suspense:yn,SuspenseList:qt,lazy:Ri,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ji};const sl=Object.freeze(Object.defineProperty({__proto__:null,Children:Vi,Component:Pe,Fragment:xe,PureComponent:qn,StrictMode:Xi,Suspense:yn,SuspenseList:qt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ji,cloneElement:Zi,createContext:Mi,createElement:h,createFactory:Gi,createPortal:Ui,createRef:Si,default:ta,findDOMNode:Ki,flushSync:Qi,forwardRef:Ii,hydrate:zi,isElement:ea,isFragment:Wi,isMemo:qi,isValidElement:$n,lazy:Ri,memo:Bi,render:Hi,startTransition:ws,unmountComponentAtNode:Ji,unstable_batchedUpdates:Yi,useCallback:cs,useContext:ds,useDebugValue:fs,useDeferredValue:_s,useEffect:Mn,useErrorBoundary:Pu,useId:hs,useImperativeHandle:ls,useInsertionEffect:bs,useLayoutEffect:ln,useMemo:En,useReducer:or,useRef:us,useState:un,useSyncExternalStore:ys,useTransition:gs,version:rl},Symbol.toStringTag,{value:"Module"})),ol=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}@font-face{font-family:Inter}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.left-0{left:0}.top-0{top:0}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.my-3{margin-top:.75rem;margin-bottom:.75rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-6{margin-left:1.5rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.inline-table{display:inline-table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row-group{display:table-row-group}.table-row{display:table-row}.flow-root{display:flow-root}.grid{display:grid}.inline-grid{display:inline-grid}.contents{display:contents}.list-item{display:list-item}.hidden{display:none}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-80{height:20rem}.h-9{height:2.25rem}.h-full{height:100%}.h-px{height:1px}.max-h-\\[min\\(320px\\,50vh\\)\\]{max-height:min(320px,50vh)}.w-1\\/2{width:50%}.w-5{width:1.25rem}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-3xl{max-width:48rem}.max-w-48{max-width:12rem}.max-w-7xl{max-width:80rem}.max-w-96{max-width:24rem}.flex-1{flex:1 1 0%}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-outside{list-style-position:outside}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.gap-10{gap:2.5rem}.gap-2{gap:.5rem}.gap-6{gap:1.5rem}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.-space-y-px>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(-1px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(-1px * var(--tw-space-y-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.whitespace-pre-wrap{white-space:pre-wrap}.text-wrap{text-wrap:wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.border{border-width:1px}.border-l-4{border-left-width:4px}.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}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(250 204 21 / var(--tw-border-opacity))}.border-zinc-200{--tw-border-opacity: 1;border-color:rgb(228 228 231 / var(--tw-border-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-primary-disabled{background-color:var(--fl-color-primary-disabled)}.bg-primary-light{background-color:var(--fl-color-primary-light)}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity))}.p-4{padding:1rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-20{padding-top:5rem;padding-bottom:5rem}.pb-6{padding-bottom:1.5rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.text-center{text-align:center}.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-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.placeholder-red-300::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(252 165 165 / var(--tw-placeholder-opacity))}.placeholder-red-300::placeholder{--tw-placeholder-opacity: 1;color:rgb(252 165 165 / var(--tw-placeholder-opacity))}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.focus\\:z-10:focus{z-index:10}.focus\\:border-primary-base:focus{border-color:var(--fl-color-primary)}.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-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-offset-2:focus{--tw-ring-offset-width: 2px}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:border-gray-300:disabled{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.disabled\\:text-gray-400:disabled{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\\:mb-8{margin-bottom:2rem}.sm\\:space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.sm\\:p-6{padding:1.5rem}.sm\\:pb-8{padding-bottom:2rem}.sm\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:leading-8{line-height:2rem}}`;function ze(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function il(e){return e!=null&&typeof e.GetEnumerator=="function"}function al(e){return e!=null&&typeof e.CompareTo=="function"}function ul(e){return e!=null&&typeof e.Equals=="function"}function ll(e){return e!=null&&typeof e.GetHashCode=="function"}function Gr(e){return e!=null&&typeof e.Dispose=="function"}function Y(e){Gr(e)&&e.Dispose()}function je(){return null}function Zn(e,t){var n,r;return((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===((r=Object.getPrototypeOf(t))==null?void 0:r.constructor)}class cl{constructor(t){this.iter=t,this.current=je()}"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 re(e){return il(e)?e.GetEnumerator():new cl(e[Symbol.iterator]())}function ir(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}function J(e,t){return e.toString(10).padStart(t,"0")}function bo(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function dl(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function Et(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class gt{static id(t){return gt.idMap.has(t)||gt.idMap.set(t,++gt.count),gt.idMap.get(t)}}gt.idMap=new WeakMap;gt.count=0;function vs(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function nt(e){return e*2654435761|0}function fl(e){return vs(e.toString(32))}function Tn(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const s=e[r];t=(t<<5)+t^s}return t}function hl(e){return e.getTime()}function ml(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=dt(e[r]);return Tn(n)}function dt(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return nt(e);case"bigint":return fl(e);case"string":return vs(e);default:{if(ll(e))return e.GetHashCode();if(ze(e))return ml(e);if(e instanceof Date)return hl(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>dt(r));return Tn(n)}else return nt(gt.id(e))}}}function Wr(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 na(e,t){return Wr(e,t,ce)}function pl(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let s=0;s<n.length;s++)if(n[s]!==r[s]||!ce(e[n[s]],t[r[s]]))return!1;return!0}function ce(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:ul(e)?e.Equals(t):ze(e)?ze(t)&&na(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&ra(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&pl(e,t)}function ra(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+bo(e),r=t.getTime()+bo(t)),n===r?0:n<r?-1:1}function ar(e,t){return e===t?0:e<t?-1:1}function wl(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,s=0;r<e.length;r++)if(s=n(e[r],t[r]),s!==0)return s;return 0}function sa(e,t){return wl(e,t,Be)}function _l(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 s=0,o=0;s<n.length;s++){const i=n[s];if(i!==r[s])return i<r[s]?-1:1;if(o=Be(e[i],t[i]),o!==0)return o}return 0}function Be(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:al(e)?e.CompareTo(t):ze(e)?ze(t)?sa(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?ra(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?_l(e,t):-1}function S(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function gl(e){ze(e)?e.splice(0):e.clear()}const ur=new WeakMap;function z(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return ur.set(t,e),t}function L(e){return ur.get(e)??(t=>n=>e(t,n))}function qr(e){if(e==null)return null;const t=(n,r,s)=>e(n)(r)(s);return ur.set(t,e),t}function Nr(e){return ur.get(e)??(t=>n=>r=>e(t,n,r))}function bl(e){let t=0,n="[";for(const r of e){if(t===0)n+=Ge(r);else if(t===100){n+="; ...";break}else n+="; "+Ge(r);t++}return n+"]"}function Ge(e,t=0){var n;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return bl(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([s,o])=>s+" = "+Ge(o,t+1)).join(`
2
+ `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function yl(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Ge(t[0]),r=n.indexOf(" ")>=0):n=t.map(s=>Ge(s)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class N{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return yl(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>dt(n));return t.splice(0,0,nt(this.tag)),Tn(t)}Equals(t){return this===t?!0:Zn(this,t)&&this.tag===t.tag?na(this.fields,t.fields):!1}CompareTo(t){return this===t?0:Zn(this,t)?this.tag===t.tag?sa(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function vl(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function xl(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Ge(n)).join(`
3
+ `)+" }"}function Sl(e){const t=Object.values(e).map(n=>dt(n));return Tn(t)}function Cl(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(!ce(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Al(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 s=Be(e[n[r]],t[n[r]]);if(s!==0)return s}return 0}else return-1}class O{toJSON(){return vl(this)}toString(){return xl(this)}GetHashCode(){return Sl(this)}Equals(t){return Cl(this,t)}CompareTo(t){return Al(this,t)}}class We{get contents(){return this.getter()}set contents(t){this.setter(t)}constructor(t,n){typeof n=="function"?(this.getter=t,this.setter=n):(this.getter=()=>t,this.setter=r=>{t=r})}}class kl{constructor(t){this.message=t}}function Fl(e){return e instanceof kl||e instanceof Error}function Nl(e){return e instanceof Promise}function Jn(e){return Fl(e)||Nl(e)?e:new Error(String(e))}const xs=Ge(ol),y=ta,cn=Symbol("numeric");function oa(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[cn])}function Ml(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Zr(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[cn]().multiply(t)}function jn(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[cn]().toFixed(t)}function Kn(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[cn]().toPrecision(t)}function Yn(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[cn]().toExponential(t)}function Qn(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[cn]().toHex()}const El=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],$l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Tl=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Bl=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ae(e,t,n){let r=0,s=t;for(;s<e.length&&e[s]===n;)s++,r++;return r}function yo(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Il(e,t){let n=t;const r=e[t];let s="",o=!1;for(;t<e.length;){t++;const i=e[t];if(i===r){o=!0;break}else if(i==="\\")if(t<e.length)t++,s+=e[t];else throw new Error("Invalid string format");else s+=i}if(!o)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[s,t-n+1]}function Ss(e,t,n){let r=0,s=0,o="";const i=n?Bn(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(s=Ae(t,r,"d"),r+=s,s){case 1:o+=xo(i);break;case 2:o+=J(xo(i),2);break;case 3:o+=El[Ao(i)];break;case 4:o+=$l[Ao(i)];break}break;case"f":if(s=Ae(t,r,"f"),r+=s,s<=3){const g=10**(3-s);o+=J(Math.floor(Un(i)/g),s)}else s<=7&&(o+=(""+Un(i)).padEnd(s,"0"));break;case"F":if(s=Ae(t,r,"F"),r+=s,s<=3){const g=10**(3-s),_=Math.floor(Un(i)/g);_!=0&&(o+=J(_,s))}else if(s<=7){const g=Un(i);g!=0&&(o+=J(g,3))}break;case"g":s=Ae(t,r,"g"),r+=s,s<=2&&(o+="A.D.");break;case"h":switch(s=Ae(t,r,"h"),r+=s,s){case 1:o+=Rn(i)%12;break;case 2:o+=J(Rn(i)%12,2);break}break;case"H":switch(s=Ae(t,r,"H"),r+=s,s){case 1:o+=Rn(i);break;case 2:o+=J(Rn(i),2);break}break;case"K":switch(s=Ae(t,r,"K"),r+=s,s){case 1:switch(vo(i)){case 1:o+="Z";break;case 2:o+=Yt(i.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(s=Ae(t,r,"m"),r+=s,s){case 1:o+=So(i);break;case 2:o+=J(So(i),2);break}break;case"M":switch(s=Ae(t,r,"M"),r+=s,s){case 1:o+=Pn(i);break;case 2:o+=J(Pn(i),2);break;case 3:o+=Tl[Pn(i)-1];break;case 4:o+=Bl[Pn(i)-1];break}break;case"s":switch(s=Ae(t,r,"s"),r+=s,s){case 1:o+=Co(i);break;case 2:o+=J(Co(i),2);break}break;case"t":switch(s=Ae(t,r,"t"),r+=s,s){case 1:o+=i.getHours()<12?"A":"P";break;case 2:o+=i.getHours()<12?"AM":"PM";break}break;case"y":switch(s=Ae(t,r,"y"),r+=s,s){case 1:o+=i.getFullYear()%100;break;case 2:o+=J(i.getFullYear()%100,2);break;case 3:o+=J(i.getFullYear(),3);break;case 4:o+=J(i.getFullYear(),4);break;case 5:o+=J(i.getFullYear(),5);break}break;case"z":s=Ae(t,r,"z"),r+=s;let l="";switch(vo(i)){case 1:l="+00:00";break;case 2:l=Yt(i.getTimezoneOffset()*-6e4);break;case 0:l=Yt(zl(i).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),c=parseInt(l.substring(4,6),10);switch(s){case 1:o+=`${u}${f}`;break;case 2:o+=`${u}${J(f,2)}`;break;default:o+=`${u}${J(f,2)}:${J(c,2)}`;break}break;case":":o+=":",r++;break;case"/":o+="/",r++;break;case"'":case'"':const[p,m]=Il(t,r);o+=p,r+=m;break;case"%":const w=yo(t,r);if(w>=0&&w!==37)r+=2,o+=Ss(i,String.fromCharCode(w),n);else throw new Error("Invalid format string");break;case"\\":const b=yo(t,r);if(b>=0)r+=2,o+=String.fromCharCode(b);else throw new Error("Invalid format string");break;default:r++,o+=a;break}}return o}function vo(e){return e.kind||0}function Yt(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+J(n,2)+":"+J(r,2)}function Xn(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 Vl(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return J(e.getFullYear(),4)+"-"+J(e.getMonth()+1,2)+"-"+J(e.getDate(),2)+"T"+J(e.getHours(),2)+":"+J(e.getMinutes(),2)+":"+J(e.getSeconds(),2)+"."+J(e.getMilliseconds(),3)+(n?Yt(e.getTimezoneOffset()*-6e4):"")}}function Ll(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+Yt(t)}function Ol(e,t){const n=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+Yt(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return Xn(n,"first");case"T":case"t":return Xn(n,"second");case"O":case"o":return Ll(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Ss(n,t,!0)}function Dl(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?Xn(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Xn(e,"second"):e.toLocaleTimeString();case"O":case"o":return Vl(e,n);default:throw new Error("Unrecognized Date print format")}else return Ss(e,t,n)}function ia(e,t,n){return e.offset!=null?Ol(e,t):Dl(e,t)}function Bn(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Rl(){return Bn(-621355968e5,1)}function aa(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 s=/^\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(s!=null){let o,i=0;if(s[2]!=null){const a=s[2].split(":"),l=parseInt(a[0],10);i=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),s[3]!=null&&s[3].toUpperCase()==="PM"&&l<12&&(i+=720)}if(s[4]!=null){if(s[1]!=null)o=new Date(s[1]+" UTC");else{const a=new Date;o=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(s[4]==="Z")r="Z";else{let a=parseInt(s[5],10)*60+parseInt(s[6]||"0",10);s[4][0]==="-"&&(a*=-1),r=a,i-=a*60}}else if(s[1]!=null)o=new Date(s[1]);else{const a=new Date;o=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(o.getTime()+i*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-o.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function Ul(e,t=!1){const[n,r]=aa(e),s=r!=null?t&&r==="Z"?1:2:0;return Bn(n.getTime(),s)}function Pl(e,t){try{return t.contents=Ul(e),!0}catch{return!1}}function Hl(e){return e.kind===1?e:Bn(e.getTime(),1)}function zl(e){return e.kind===2?e:Bn(e.getTime(),2)}function xo(e){return e.kind===1?e.getUTCDate():e.getDate()}function Rn(e){return e.kind===1?e.getUTCHours():e.getHours()}function Un(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function So(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Pn(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function Co(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Ao(e){return e.kind===1?e.getUTCDay():e.getDay()}function ua(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 la(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function jl(e,t,n=0){return e.lastIndex=n,e.test(t)}function ko(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 s,o=-1;for(;(s=e.exec(t))!=null;)s.index===o?e.lastIndex++:(o=s.index,r.push(s));return r}function Cs(e,t,n,r,s=0){function o(){let i=arguments[0];if(r){r--;const a=[],l=arguments.length,u=typeof arguments[l-1]!="string";let f=u?l-3:l-2;for(let c=0;c<f;c++)a.push(arguments[c]);a.index=arguments[f++],a.input=arguments[f++],u&&(a.groups=arguments[f]),i=n(a)}return i}if(typeof e=="string"){const i=e;e=ua(t,r??0),t=i,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,s)+t.substring(s).replace(e,o);if(n=n.replace(/\$0/g,i=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let i;const a=t.substring(s),l=ko(e,a),u=ko.length>r?(i=l[r-1],a.substring(0,i.index+i[0].length)):a;return t.substring(0,s)+u.replace(e,n)+t.substring(s+u.length)}else return t.replace(e,n)}const pn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Gl=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function ca(e,t){return Ml(e,t)<0}function nn(e){return{input:e,cont:Zl(e)}}function da(e,t){return typeof t=="string"?e(t):t.cont(e)}function xn(e){return da(t=>t,e)}function Wl(e){return da(t=>{throw new Error(t)},e)}function ql(e,t,n,r,s){let o="";if(t=t||"",s=s||"",oa(e))switch(s.toLowerCase()!=="x"&&(ca(e,0)?(e=Zr(e,-1),o="-"):t.indexOf(" ")>=0?o=" ":t.indexOf("+")>=0&&(o="+")),r=r==null?null:parseInt(r,10),s){case"f":case"F":r=r??6,e=jn(e,r);break;case"g":case"G":e=r!=null?Kn(e,r):Kn(e);break;case"e":case"E":e=r!=null?Yn(e,r):Yn(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=ia(e):e=Ge(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=o+e;else{const i=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!i?" ":"0";l==="0"?(e=Sn(e,n-o.length,l,a),e=o+e):e=Sn(o+e,n,l,a)}return e}function fa(e,t,n,r="",s=-1){return(...o)=>{let i=r;const a=t.slice(),l=n.slice();for(const u of o){const[,,f,c,p,m]=l[0];let w=c;if(s>=0)w=s,s=-1;else if(w==="*"){if(u<0)throw new Error("Non-negative number required");s=u;continue}i+=a[0],i+=ql(u,f,w,p,m),a.splice(0,1),l.splice(0,1)}return l.length===0?(i+=a[0],e(i)):fa(e,a,l,i,s)}}function Zl(e){return t=>{pn.lastIndex=0;const n=[],r=[];let s=0,o=pn.exec(e);for(;o;){const i=o.index+(o[1]||"").length;n.push(e.substring(s,i).replace(/%%/g,"%")),r.push(o),s=pn.lastIndex,pn.lastIndex-=1,o=pn.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(s).replace(/%%/g,"%")),fa(t,n,r))}}function Jl(e,...t){let n;return n=e,n.replace(Gl,(r,s,o,i,a,l)=>{if(s<0||s>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[s];if(oa(u))switch(a=a==null?null:parseInt(a,10),i){case"f":case"F":a=a??2,u=jn(u,a);break;case"g":case"G":u=a!=null?Kn(u,a):Kn(u);break;case"e":case"E":u=a!=null?Yn(u,a):Yn(u);break;case"p":case"P":a=a??2,u=jn(Zr(u,100),a)+" %";break;case"d":case"D":u=a!=null?Mr(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?Mr(Qn(u),a,"0"):Qn(u),i==="X"&&(u=u.toUpperCase());break;default:if(l){let f="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(c,p,m)=>{ca(u,0)&&(u=Zr(u,-1),f="-"),m=m==null?"":m.substring(1),u=jn(u,Math.max(m.length,0));let[w,b]=u.split(".");b||(b="");const g=p.replace(/,/g,"").replace(/^#+/,"").length;w=Mr(w,g,"0");const _=m.replace(/#+$/,"").length;if(_>b.length?b=Yl(b,_,"0"):_<b.length&&(b=b.substring(0,_)+b.substring(_).replace(/0+$/,"")),p.indexOf(",")>0){const k=w.length%3,x=Math.floor(w.length/3);let Z=k>0?w.substr(0,k)+(x>0?",":""):"";for(let ae=0;ae<x;ae++)Z+=w.substr(k+ae*3,3)+(ae<x-1?",":"");w=Z}return b.length>0?w+"."+b:w}),u=f+u}}else u instanceof Date?u=ia(u,l||i):u=Ge(u);return o=parseInt((o||" ").substring(1),10),isNaN(o)||(u=Sn(String(u),Math.abs(o)," ",o<0)),u})}function Kl(e){return typeof e!="string"||e.length===0}function ha(e){return typeof e!="string"||/^\s*$/.test(e)}function D(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Sn(e,t,n,r){n=n||" ",t=t-e.length;for(let s=0;s<t;s++)e=r?e+n:n+e;return e}function Mr(e,t,n){return Sn(e,t,n)}function Yl(e,t,n){return Sn(e,t,n,!0)}function Ql(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 s=(r&1)===1,o=(r&2)===2;t=t||[],t=t.filter(f=>f).map(la),t=t.length>0?t:["\\s"];const i=[],a=new RegExp(t.join("|"),"g");let l=!0,u=0;do{const f=a.exec(e);if(f===null){const c=o?e.substring(u).trim():e.substring(u);(!s||c.length>0)&&i.push(c),l=!1}else{const c=o?e.substring(u,f.index).trim():e.substring(u,f.index);(!s||c.length>0)&&(n!=null&&i.length+1===n?(i.push(o?e.substring(u).trim():e.substring(u)),l=!1):i.push(c)),u=a.lastIndex}}while(l);return i}function Xl(e,...t){if(t.length===0)return e.trim();const n="["+la(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class Tt{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return dt(this.value)}Equals(t){return t==null?!1:ce(this.value,t instanceof Tt?t.value:t)}CompareTo(t){return t==null?1:Be(this.value,t instanceof Tt?t.value:t)}}function C(e){if(e==null)throw new Error("Option has no value");return e instanceof Tt?e.value:e}function lr(e){return e instanceof Tt?e.value:e}function ve(e){return e==null||e instanceof Tt?new Tt(e):e}function ec(e){return e==null?[]:[C(e)]}function cr(e,t){return e!=null?C(e):t}function As(e,t){return t!=null?ve(e(C(t))):void 0}class tc{constructor(t,n,r,s){this.declaringType=t,this.tag=n,this.name=r,this.fields=s}}class $e{constructor(t,n,r,s,o,i,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=s,this.fields=o,this.cases=i,this.enumCases=a}toString(){return oe(this)}GetHashCode(){return ma(this)}Equals(t){return Jr(this,t)}}function rt(e){return e.generics!=null?e.generics:[]}function ma(e){const t=vs(e.fullname),n=rt(e).map(ma);return Tn([t,...n])}function Jr(e,t){return e.fullname===""?t.fullname===""&&Wr(er(e),er(t),([n,r],[s,o])=>n===s&&Jr(r,o)):e.fullname===t.fullname&&Wr(rt(e),rt(t),Jr)}function Fo(e,t,n,r){return new $e(e,t,n,r)}function et(e,t,n,r){return new $e(e,t,n,void 0,r)}function nc(...e){return new $e("",void 0,void 0,void 0,()=>e)}function rc(e,t,n,r){const s=new $e(e,t,n,void 0,void 0,()=>{const o=n.prototype.cases();return r().map((i,a)=>new tc(s,a,o[a],i))});return s}function Qe(e){return new $e("Microsoft.FSharp.Core.FSharpOption`1",[e])}function sc(e){return new $e("Microsoft.FSharp.Collections.FSharpList`1",[e])}const oc=new $e("System.Object"),q=new $e("System.String"),Kr=new $e("System.Boolean");function ks(e){if(Array.isArray(e))return e[0];if(e instanceof $e){const t=dr(e);if(t!=null)return ks(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function oe(e){const t=dr(e);return t!=null?oe(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>oe(n)).join(",")+"]"}function ic(e){return dr(e)!=null}function dr(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function ac(e){return e.generics!=null&&e.generics.length>0}function pa(e){return e.enumCases!=null&&e.enumCases.length>0}function uc(e){return e.generics==null?e:new $e(e.fullname,e.generics.map(()=>oc))}function lc(e){var t;return(t=e.generics)==null?void 0:t[0]}function Lt(e){if(pa(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function cc(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 Ot(e,t){const n=parseInt(t,10);return cc(e,isNaN(n)?t:n)[1]}function dc(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function er(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function fc(e){if(wa(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function hc(e){return e instanceof $e?e.cases!=null:e instanceof N}function mc(e){return e instanceof $e?e.fields!=null:e instanceof O}function wa(e){return e.fullname.startsWith("System.Tuple")}function pc(e){return e.fields==null?[]:e.fields}function wc(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);const r=e.declaringType.construct;return r==null?{}:(e.declaringType.cases?e.declaringType.cases().length==1:!1)?new r(...t):new r(e.tag,t)}function _c(e,t){const n=er(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[s,o],i)=>(r[s]=t[i],r),{})}function gc(e,t){return e}const bc="The index was outside the range of elements in the collection.",_a="Collection was empty.";function ga(e,t){return new Array(t)}function Yr(e,t){return e>t?e:t}function yc(e,t){return e<t?e:t}function Fs(e,t,n,r){const s=t|0;return e.fill(r,s,s+n)}function fr(e,t,n){const r=t.length|0,s=ga(n,r);for(let o=0;o<=r-1;o++)yt(s,o,e(we(o,t)));return s}function vc(e,t){const n=ga(t,1);return yt(n,0,e),n}function xc(e){return e.slice().reverse()}function Sc(e,t){return t.find(e)}function Cc(e,t,n){const r=[];for(let s=0;s<=t.length-1;s++){const o=e(we(s,t));if(o!=null){const i=C(o);r.push(i)}}return ce(n,je())?r:fr(s=>s,r,n)}function hr(e,t,n){const r=e;return n.reduce(r,t)}function we(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function yt(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function ba(e,t,n){return t.reduceRight((r,s)=>e(s,r),n)}class de extends O{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+D("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((s,o)=>{e:for(;;){const i=s,a=o,l=i.tail,u=a.tail;if(l!=null)if(u!=null){const f=C(l),c=C(u);if(ce(i.head,a.head)){s=f,o=c;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,s,o)=>{e:for(;;){const i=r,a=s,l=o,u=l.tail;if(u!=null){const f=C(u);if(i>18)return a|0;r=i+1,s=(a<<1)+dt(l.head)+631*i,o=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((s,o)=>{e:for(;;){const i=s,a=o,l=i.tail,u=a.tail;if(l!=null)if(u!=null){const f=C(l),c=C(u),p=Be(i.head,a.head)|0;if(p===0){s=f,o=c;continue e}else return p|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return kc(this)}[Symbol.iterator](){return ir(re(this))}"System.Collections.IEnumerable.GetEnumerator"(){return re(this)}}class Ac{constructor(t){this.xs=t,this.it=this.xs,this.current=je()}"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=C(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=je()}Dispose(){}}function kc(e){return new Ac(e)}function ne(){return new de(je(),void 0)}function In(e,t){return new de(e,t)}function ft(e){return e.tail==null}function ya(e){return((n,r)=>{e:for(;;){const s=n,i=r.tail;if(i!=null){n=s+1,r=C(i);continue e}else return s|0}})(0,e)|0}function vt(e){if(e.tail!=null)return e.head;throw new Error(_a+"\\nParameter name: list")}function fe(e){const t=e.tail;if(t!=null)return C(t);throw new Error(_a+"\\nParameter name: list")}function Fc(e,t){return((r,s)=>{e:for(;;){const o=r,i=s,a=i.tail;if(a!=null){if(o===t)return i.head;r=o+1,s=C(a);continue e}else throw new Error(bc+"\\nParameter name: index")}})(0,e)}function he(){return ne()}function Me(e,t){return In(e,t)}function $(e){return In(e,ne())}function P(e){return ft(e)}function $t(e){return ya(e)}function E(e){return vt(e)}function Nc(e){if(!ft(e))return ve(vt(e))}function U(e){return fe(e)}function dn(e){const t=ya(e)|0,n=Fs(new Array(t),0,t,null);return((s,o)=>{e:for(;;){const i=s,a=o;if(!ft(a)){yt(n,i,vt(a)),s=i+1,o=fe(a);continue e}break}})(0,e),n}function qe(e,t,n){let r=t,s=n;for(;!ft(s);)r=e(r,E(s)),s=fe(s);return r}function Ns(e){return qe((t,n)=>In(n,t),ne(),e)}function Mc(e,t,n){return ba(e,dn(t),n)}function Ec(e,t,n){return((s,o,i)=>{e:for(;;){const a=s,l=o,u=i;if(ft(u))return l;s=a+1,o=e(a,l,vt(u)),i=fe(u);continue e}})(0,t,n)}function $c(e,t,n,r){let s=t,o=n,i=r;for(;!ft(o)&&!ft(i);)s=e(s,vt(o),vt(i)),o=fe(o),i=fe(i);return s}function Cn(e,t){qe((n,r)=>{e(r)},void 0,t)}function Q(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=In(we(r,e),n);return n}function v(e){return Q(e,ne())}function Tc(e){let t,n;if(ze(e))return v(e);if(e instanceof de)return e;{const r=ne();let s=r;const o=re(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"]();s=(t=s,n=new de(l,void 0),t.tail=n,n)}}finally{Y(o)}const i=s,a=ne();return i.tail=a,fe(r)}}function Bc(e){const t=ne();let n=t;const r=i=>{n=qe((a,l)=>{const u=new de(l,void 0);return a.tail=u,u},n,i)};if(ze(e))e.forEach(r);else if(e instanceof de)Cn(r,e);else{const i=re(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();)r(i["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{Y(i)}}const s=n,o=ne();return s.tail=o,fe(t)}function Ms(e,t){return qe((n,r)=>In(r,n),t,Ns(e))}function Ic(e,t){const n=ne(),r=Ec((o,i,a)=>{const l=new de(e(o,a),void 0);return i.tail=l,l},n,t),s=ne();return r.tail=s,fe(n)}function Es(e,t){const n=ne(),r=qe((o,i)=>{const a=new de(e(i),void 0);return o.tail=a,a},n,t),s=ne();return r.tail=s,fe(n)}function Vc(e,t){return(r=>{e:for(;;){const s=r;if(ft(s))return;{const o=e(vt(s));if(o==null){r=fe(s);continue e}else return o}}})(t)}function Lc(e,t){return((r,s)=>{e:for(;;){const o=r,i=s;if(ft(i))return;if(e(vt(i)))return o;r=o+1,s=fe(i);continue e}})(0,t)}function An(e,t){return Fc(t,e)}function Oc(e,t){const n=ne(),r=qe((o,i)=>{if(e(i)){const a=new de(i,void 0);return o.tail=a,a}else return o},n,t),s=ne();return r.tail=s,fe(n)}function Dc(e,t){const n=ne(),r=ne(),s=n,o=qe((l,u)=>{let f,c;const p=l[0],m=l[1];return e(u)?[(f=new de(u,void 0),p.tail=f,f),m]:[p,(c=new de(u,void 0),m.tail=c,c)]},[s,r],t),i=ne();o[0].tail=i;const a=ne();return o[1].tail=a,[fe(s),fe(r)]}function Rc(e,t){const n=ne(),r=qe((o,i)=>{const a=e(i);if(a==null)return o;{const l=new de(C(a),void 0);return o.tail=l,l}},n,t),s=ne();return r.tail=s,fe(n)}function va(e,t){return qe((n,r)=>n&&e(r),!0,t)}function Uc(e,t){const n=dn(t);return n.sort(e),v(n)}function Pc(e,t,n){return Uc((r,s)=>n.Compare(e(r),e(s)),t)}class Hc{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,s=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(s)}}}Dispose(){}}class mr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,mr.prototype)}}class $s{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>$s.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function ot(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new mr);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 zc(e,t){return ot(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(s){n.onError(Jn(s))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function jc(e){return ot(t=>t.onSuccess(e))}class Gc{Bind(t,n){return zc(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return ot(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let s=r.next();return this.While(()=>!s.done,this.Delay(()=>{const o=n(s.value);return s=r.next(),o}))}Return(t){return jc(t)}ReturnFrom(t){return t}TryFinally(t,n){return ot(r=>{t({onSuccess:s=>{n(),r.onSuccess(s)},onError:s=>{n(),r.onError(s)},onCancel:s=>{n(),r.onCancel(s)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return ot(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:s=>{try{n(s)(r)}catch(o){r.onError(Jn(o))}}})})}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 ot(t=>t.onSuccess(void 0))}}const V=new Gc;function Wc(e){return new xa(0,[e])}function qc(e){return new xa(1,[e])}class xa extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function Zc(e){return Wc(e)}function Jc(e){return qc(e)}function Er(e){}const Kc=new Hc;function Yc(e){return ot(t=>{e({onSuccess:n=>t.onSuccess(Zc(n)),onError:n=>t.onSuccess(Jc(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Qc(e){return ot(t=>e([t.onSuccess,t.onError,t.onCancel]))}function Sa(e){return ot(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new mr)})})}function Xc(e,t){return td(e,t)}function ed(e,t){return Xc(e,t)}function td(e,t,n,r,s){typeof t!="function"&&(s=t,t=void 0);const o=new $s;e({onSuccess:t||Er,onError:Er,onCancel:Er,cancelToken:s||Kc,trampoline:o})}class kt extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class nd extends N{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class rd extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class pr extends O{constructor(t,n,r,s,o,i,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=s,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=a,this.content=l}}class Wt extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Ca extends O{constructor(t,n,r,s,o,i){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=s,this.responseHeaders=o,this.content=i}}function sd(e){throw new Error(e)}const od="Enumeration already finished.",id="Enumeration has not started. Call MoveNext.",Aa="The input sequence has an insufficient number of elements.",ad="Reset is not supported on this enumerator.";function ud(){throw new Error(ad)}function Ts(){throw new Error(id)}function Qr(){throw new Error(od)}class ld{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const s=re(t);try{for(;n<4&&s["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Ge(s["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{Y(s)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return ir(re(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function cd(e){return new ld(e)}class dd{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"(){ud()}Dispose(){this.dispose()}}function wr(e,t,n){return new dd(e,t,n)}function fd(e){let t,n,r=!1,s=!1,o;const i=()=>{if(s=!0,n!=null){const a=C(n);try{Y(a)}finally{n=void 0}}if(t!=null){const a=C(t);try{Y(a)}finally{t=void 0}}};return wr(()=>(r?s&&Qr():Ts(),o!=null?C(o):Qr()),()=>{let a;if(r||(r=!0),s)return!1;{let l;for(;l==null;){const u=t,f=n;if(u!=null)if(f!=null){const c=C(f);if(c["System.Collections.IEnumerator.MoveNext"]())o=ve(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{Y(c)}finally{n=void 0}}else{const c=C(u);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),re(a)):(i(),l=!1)}else t=re(e)}return C(l)}},()=>{s||i()})}function hd(e,t){return wr(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{Y(t)}finally{}})}function ka(e,t,n){let r=!1,s,o=ve(e());const i=()=>{if(o!=null){const l=C(o);try{n(l)}finally{o=void 0}}},a=()=>{try{i()}finally{s=void 0}};return wr(()=>(r||Ts(),s!=null?C(s):Qr()),()=>{if(r||(r=!0),o!=null){const l=C(o);let u;try{u=t(l)}catch(f){throw a(),f}return u!=null?(s=u,!0):(a(),!1)}else return!1},i)}function md(e,t){let n,r=t;return wr(()=>{if(n!=null){const s=C(n)[0];return C(n)[1],s}else return Ts()},()=>(n=e(r),n!=null?(C(n)[0],r=C(n)[1],!0):!1),()=>{})}function pd(e,t){t==null&&sd(e)}function fn(e){return cd(e)}function Bt(e){return pd("source",e),re(e)}function M(e){return fn(()=>re(e()))}function Fa(e){return fn(()=>fd(e))}function wd(e,t){return fn(()=>md(e,t))}function ie(){return M(()=>new Array(0))}function T(e){return M(()=>vc(e))}function _d(e){return e instanceof de?dn(e):Array.from(e)}function ee(e){return ze(e)?v(e):e instanceof de?e:Tc(e)}function gd(e,t,n){return fn(()=>ka(e,t,n))}function bd(e,t,n){return fn(()=>{let r=-1;return ka(e,s=>(r=r+1|0,t(r,s)),n)})}function K(e,t){return Fa([e,t])}function yd(e,t,n){const r=Bt(t);try{const s=Bt(n);try{let o=0,i=r["System.Collections.IEnumerator.MoveNext"](),a=s["System.Collections.IEnumerator.MoveNext"]();for(;o===0&&i&&a;)o=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),s["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,o===0&&(i=r["System.Collections.IEnumerator.MoveNext"](),a=s["System.Collections.IEnumerator.MoveNext"]());return(o!==0?o:i?1:a?-1:0)|0}finally{Y(s)}}finally{Y(r)}}function Dt(e,t,n){const r=Bt(t);try{let s=!1;for(;!s&&r["System.Collections.IEnumerator.MoveNext"]();)s=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return s}finally{Y(r)}}function Na(e,t,n){const r=Bt(n);try{let s=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)s=e(s,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return s}finally{Y(r)}}function Bs(e,t){Na((n,r)=>{e(r)},void 0,t)}function Ue(e,t){return gd(()=>Bt(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?ve(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Y(n)})}function vd(e){return M(()=>xc(_d(e)))}function xd(e,t){return fn(()=>{const n=Bt(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Aa+"\\nParameter name: source");return hd(()=>{},n)}catch(r){throw Y(n),r}})}function Sd(e,t){return bd(()=>Bt(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return ve(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Aa+"\\nParameter name: source")}else return},n=>{Y(n)})}function Cd(e,t){return M(()=>Fa(Ue(e,t)))}class Ma{constructor(t,n){this.k=t,this.v=n}}function tr(e,t){return new Ma(e,t)}function _e(e){return e.k}function Ee(e){return e.v}class se extends Ma{constructor(t,n,r,s,o){super(t,n),this.left=r,this.right=s,this.h=o|0}}function Gn(e,t,n,r,s){return new se(e,t,n,r,s)}function me(e){return e.left}function pe(e){return e.right}function Mt(e){return e.h}function Ea(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=C(r);if(s instanceof se){const o=s;e=Ea(n+1,me(o)),t=pe(o);continue e}else return n+1|0}else return n|0}}function Ad(e){return Ea(0,e)}function Ve(e,t,n,r){let s,o,i;const a=e;if(a!=null){const c=C(a);i=c instanceof se?(s=c,Mt(s)):1}else i=0;let l;const u=r;if(u!=null){const c=C(u);l=c instanceof se?(o=c,Mt(o)):1}else l=0;const f=(i<l?l:i)|0;return f===0?tr(t,n):Gn(t,n,e,r,f+1)}function No(e,t,n,r){let s,o,i,a,l,u,f,c,p;const m=e;if(m!=null){const g=C(m);p=g instanceof se?(s=g,Mt(s)):1}else p=0;let w;const b=r;if(b!=null){const g=C(b);w=g instanceof se?(o=g,Mt(o)):1}else w=0;if(w>p+2){const g=C(r);if(g instanceof se){const _=g;if(i=me(_),(i!=null?(a=C(i),a instanceof se?(l=a,Mt(l)):1):0)>p+1){const k=C(me(_));if(k instanceof se){const x=k;return Ve(Ve(e,t,n,me(x)),_e(x),Ee(x),Ve(pe(x),_e(_),Ee(_),pe(_)))}else throw new Error("internal error: Map.rebalance")}else return Ve(Ve(e,t,n,me(_)),_e(_),Ee(_),pe(_))}else throw new Error("internal error: Map.rebalance")}else if(p>w+2){const g=C(e);if(g instanceof se){const _=g;if(u=pe(_),(u!=null?(f=C(u),f instanceof se?(c=f,Mt(c)):1):0)>w+1){const k=C(pe(_));if(k instanceof se){const x=k;return Ve(Ve(me(_),_e(_),Ee(_),me(x)),_e(x),Ee(x),Ve(pe(x),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ve(me(_),_e(_),Ee(_),Ve(pe(_),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ve(e,t,n,r)}function rn(e,t,n,r){if(r!=null){const s=C(r),o=e.Compare(t,_e(s))|0;if(s instanceof se){const i=s;return o<0?No(rn(e,t,n,me(i)),_e(i),Ee(i),pe(i)):o===0?Gn(t,n,me(i),pe(i),Mt(i)):No(me(i),_e(i),Ee(i),rn(e,t,n,pe(i)))}else return o<0?Gn(t,n,void 0,r,2):o===0?tr(t,n):Gn(t,n,r,void 0,2)}else return tr(t,n)}function $a(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o!=null){const i=C(o),a=r.Compare(s,_e(i))|0;if(a===0)return ve(Ee(i));if(i instanceof se){const l=i;e=r,t=s,n=a<0?me(l):pe(l);continue e}else return}else return}}function kd(e,t,n){const r=$a(e,t,n);if(r==null)throw new Error;return C(r)}function Fd(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o!=null){const i=C(o),a=r.Compare(s,_e(i))|0;if(i instanceof se){const l=i;if(a<0){e=r,t=s,n=me(l);continue e}else{if(a===0)return!0;e=r,t=s,n=pe(l);continue e}}else return a===0}else return!1}}function Ta(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=C(r);if(s instanceof se){const o=s;Ta(n,me(o)),n(_e(o),Ee(o)),e=n,t=pe(o);continue e}else n(_e(s),Ee(s))}break}}function Nd(e,t){Ta(e,t)}function Md(e,t,n){let r=n;Nd((s,o)=>{yt(t,r,[s,o]),r=r+1|0},e)}function Ed(e,t){return qe((n,r)=>rn(e,r[0],r[1],n),void 0,t)}function $d(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){const i=o["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=rn(r,i[0],i[1],s),n=o;continue e}else return s}}function Td(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const s=we(r,t);n=rn(e,s[0],s[1],n)}return n}function Ba(e,t){if(ze(t))return Td(e,t);if(t instanceof de)return Ed(e,t);{const n=re(t);try{return $d(e,void 0,n)}finally{Y(n)}}}class Bd extends O{constructor(t,n){super(),this.stack=t,this.started=n}}function Ia(e){e:for(;;){const t=e;if(P(t))return he();{const n=U(t),r=E(t);if(r!=null){const s=C(r);if(s instanceof se){const o=s;e=Q([me(o),tr(_e(o),Ee(o)),pe(o)],n);continue e}else return t}else{e=n;continue e}}}}function Mo(e){return new Bd(Ia($(e)),!1)}function Id(){throw new Error("enumeration not started")}function Vd(){throw new Error("enumeration already finished")}function Eo(e){if(e.started){const t=e.stack;if(P(t))return Vd();if(E(t)!=null){const n=C(E(t));if(n instanceof se)throw new Error("Please report error: Map iterator, unexpected stack for current");return[_e(n),Ee(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Id()}function Ld(e){if(e.started){const t=e.stack;if(P(t))return!1;if(E(t)!=null){if(C(E(t))instanceof se)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Ia(U(t)),!P(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!P(e.stack)}function $o(e){let t=Mo(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Eo(t)},"System.Collections.IEnumerator.get_Current"(){return Eo(t)},"System.Collections.IEnumerator.MoveNext"(){return Ld(t)},"System.Collections.IEnumerator.Reset"(){t=Mo(e)},Dispose(){}}}class nr{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Ud(this)|0}Equals(t){const n=this;if(t instanceof nr){const r=t,s=re(n);try{const o=re(r);try{const i=()=>{const a=s["System.Collections.IEnumerator.MoveNext"]();if(a===o["System.Collections.IEnumerator.MoveNext"]())if(a){const l=s["System.Collections.Generic.IEnumerator`1.get_Current"](),u=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return ce(l[0],u[0])&&ce(l[1],u[1])?i():!1}else return!0;else return!1};return i()}finally{Y(o)}}finally{Y(s)}}else return!1}toString(){return"map ["+D("; ",Ue(n=>Jl("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return $o(this.tree)}[Symbol.iterator](){return ir(re(this))}"System.Collections.IEnumerable.GetEnumerator"(){return $o(this.tree)}CompareTo(t){const n=this;if(t instanceof nr)return yd((s,o)=>{const i=n.comparer.Compare(s[0],o[0])|0;return(i!==0?i:Be(s[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 Bo(n,t[0])&&ce(To(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Md(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return $r(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return $r(this)|0}get size(){return $r(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Ue(n=>[n[0],n[1]],this)}get(t){return To(this,t)}has(t){return Bo(this,t)}keys(){return Ue(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Ue(n=>n[1],this)}forEach(t,n){const r=this;Bs(s=>{t(s[1],s[0],r)},r)}}function _r(e,t){return new nr(e,t)}function Od(e){return _r(e,void 0)}function Dd(e,t,n){return _r(e.comparer,rn(e.comparer,t,n,e.tree))}function To(e,t){return kd(e.comparer,t,e.tree)}function $r(e){return Ad(e.tree)}function Bo(e,t){return Fd(e.comparer,t,e.tree)}function Rd(e,t){return $a(e.comparer,t,e.tree)}function Ud(e){const t=(s,o)=>(s<<1)+o+631;let n=0;const r=re(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const s=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,dt(s[0]))|0,n=t(n,dt(s[1]))|0}}finally{Y(r)}return n|0}function Pd(e,t,n){return Dd(n,e,t)}function Hd(e,t){return Rd(t,e)}function zd(e,t){return _r(t,Ba(t,e))}function jd(e,t){return _r(t,Ba(t,e))}function Va(e){return Od(e)}function Rt(e){return new nd("Authorization",e)}const Ct=new pr("",new kt(0,[]),he(),!1,void 0,void 0,void 0,new rd(0,[]));new Ca(0,"","","",Va({Compare:ar}),new Wt(0,[""]));function Io(e,t){return Kl(t)?new Array(0):Ql(t,[e],void 0,0)}function Gd(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 Ut(e){return new pr(e,Ct.method,Ct.headers,Ct.withCredentials,Ct.overridenMimeType,Ct.overridenResponseType,Ct.timeout,Ct.content)}function Pt(e,t){return new pr(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Ht(e,t){return new pr(t.url,t.method,Ms(t.headers,$(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function zt(e){return Qc(t=>{const n=new XMLHttpRequest;n.open(Gd(e.method),e.url),n.onreadystatechange=()=>{let l,u,f,c,p,m,w;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),f=n.status|0,c=n.responseType,p=(m=n.responseType,m===""?new Wt(0,[n.responseText]):m==="text"?new Wt(0,[n.responseText]):m==="arraybuffer"?new Wt(2,[n.response]):m==="blob"?new Wt(1,[n.response]):new Wt(3,[n.response])),w=jd(Cc(b=>{const g=v(Io(":",b));if(!P(g))return[E(g).toLocaleLowerCase(),D(":",U(g)).trim()]},Io(`\r
4
+ `,n.getAllResponseHeaders())),{Compare:ar}),new Ca(f,l,c,n.responseURL,w,p)))};const r=re(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(l.fields[0],l.fields[1])}}finally{Y(r)}n.withCredentials=e.withCredentials;const s=e.overridenMimeType;if(s!=null){const l=s;n.overrideMimeType(l)}const o=e.overridenResponseType;if(o!=null)switch(o.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const i=e.timeout;if(i!=null){const l=i|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send(ve(a.fields[0]));break}case 3:{n.send(ve(a.fields[0]));break}case 2:{n.send(ve(a.fields[0]));break}default:n.send()}})}function Wd(e){return new d(0,[e])}function La(e){return new d(1,[e])}class d extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function Xe(e,t){return t.tag===0?Wd(e(t.fields[0])):La(t.fields[0])}function qd(e,t){return t.tag===0?e(t.fields[0]):La(t.fields[0])}class F extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Ft extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Vo(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Zd(e,t){switch(e.tag){case 2:return Cs(Vo(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Vo(t)}}const Jd=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Lo=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Kd=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Yd(e){function t(r){return r.replace(Lo,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Jd.test(n))return Xl(n,"{","}","(",")");if(Lo.test(n))return t(n);if(Kd.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 Qd(e,t){try{return t.contents=Yd(e),!0}catch{return!1}}function Tr(){let e="";for(let t=0;t++<36;)e+=t*51&52?(t^15?8^Math.random()*(t^20?16:4):4).toString(16):"-";return e}var Xr;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Xr||(Xr={}));function Xd(e,t){const[,n,r,s]=e;return{sign:n||"",prefix:r||"",digits:s,radix:t}}function Oo(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 ef(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 tf(e,t){if(t&Xr.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 nf(e,t,n){const s=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(s!=null){const[,,o,i]=s;if(n=n||tf(o,t),!ef(n).test(i))return Xd(s,n)}return null}function rf(e,t,n,r,s){const o=nf(e,t,s);if(o!=null){let i=Number.parseInt(o.sign+o.digits,o.radix);if(!Number.isNaN(i)){const[a,l]=Oo(!0,r);!n&&o.radix!==10&&i>=a&&i<=l&&(i=i<<32-r>>32-r);const[u,f]=Oo(n,r);if(i>=u&&i<=f)return i}}throw new Error(`The input string ${e} was not in a correct format.`)}function hn(e,t,n,r,s){try{return s.contents=rf(e,t,n,r),!0}catch{return!1}}function Oa(e,t){sf(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function sf(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 of(){return Oa(-621355968e5,0)}function af(e){const[t,n]=aa(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return Oa(t.getTime(),r)}function uf(e,t){try{return t.contents=af(e),!0}catch{return!1}}function Do(e=0,t=0,n=0,r=0,s=0){switch(arguments.length){case 1:return lf(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],s=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+s}function lf(e){return Number(BigInt(e)/10000n)}function cf(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 Do(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 s=0,o=0,i=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],u=+r[5];if(r[3]!=null&&(s=+r[3]),r[7]!=null&&(i=+r[7]),r[8]!=null)switch(r[8].length){case 1:o=+r[8]*100;break;case 2:o=+r[8]*10;break;case 3:o=+r[8];break;case 4:o=+r[8]/10;break;case 5:o=+r[8]/100;break;case 6:o=+r[8]/1e3;break;case 7:o=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*Do(s,l,u,i,o)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function df(e,t){try{return t.contents=cf(e),!0}catch{return!1}}class Da{constructor(t){this.k=t}}function ke(e){return new Da(e)}function B(e){return e.k}class H extends Da{constructor(t,n,r,s){super(t),this.left=n,this.right=r,this.h=s|0}}function Fe(e,t,n,r){return new H(e,t,n,r)}function W(e){return e.left}function j(e){return e.right}function Zt(e){return e.h}function Ra(e,t){e:for(;;){const n=e,r=t;if(n!=null){const s=C(n);if(s instanceof H){const o=s;e=W(o),t=Ra(j(o),r+1);continue e}else return r+1|0}else return r|0}}function ff(e){return Ra(e,0)}function Le(e,t,n){let r,s,o;const i=e;if(i!=null){const f=C(i);o=f instanceof H?(r=f,Zt(r)):1}else o=0;let a;const l=n;if(l!=null){const f=C(l);a=f instanceof H?(s=f,Zt(s)):1}else a=0;const u=(o<a?a:o)|0;return u===0?ke(t):Fe(t,e,n,u+1)}function Ro(e,t,n){let r,s,o,i,a,l,u,f,c;const p=e;if(p!=null){const b=C(p);c=b instanceof H?(r=b,Zt(r)):1}else c=0;let m;const w=n;if(w!=null){const b=C(w);m=b instanceof H?(s=b,Zt(s)):1}else m=0;if(m>c+2){const b=C(n);if(b instanceof H){const g=b;if(o=W(g),(o!=null?(i=C(o),i instanceof H?(a=i,Zt(a)):1):0)>c+1){const _=C(W(g));if(_ instanceof H){const k=_;return Le(Le(e,t,W(k)),B(k),Le(j(k),B(g),j(g)))}else throw new Error("internal error: Set.rebalance")}else return Le(Le(e,t,W(g)),B(g),j(g))}else throw new Error("internal error: Set.rebalance")}else if(c>m+2){const b=C(e);if(b instanceof H){const g=b;if(l=j(g),(l!=null?(u=C(l),u instanceof H?(f=u,Zt(f)):1):0)>m+1){const _=C(j(g));if(_ instanceof H){const k=_;return Le(Le(W(g),B(g),W(k)),B(k),Le(j(k),t,n))}else throw new Error("internal error: Set.rebalance")}else return Le(W(g),B(g),Le(j(g),t,n))}else throw new Error("internal error: Set.rebalance")}else return Le(e,t,n)}function sn(e,t,n){if(n!=null){const r=C(n),s=e.Compare(t,B(r))|0;if(r instanceof H){const o=r;return s<0?Ro(sn(e,t,W(o)),B(o),j(o)):s===0?n:Ro(W(o),B(o),sn(e,t,j(o)))}else{const o=e.Compare(t,B(r))|0;return o<0?Fe(t,void 0,n,2):o===0?n:Fe(t,n,void 0,2)}}else return ke(t)}function Ua(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o!=null){const i=C(o),a=r.Compare(s,B(i))|0;if(i instanceof H){const l=i;if(a<0){e=r,t=s,n=W(l);continue e}else{if(a===0)return!0;e=r,t=s,n=j(l);continue e}}else return a===0}else return!1}}function Pa(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=C(r);if(s instanceof H){const o=s;Pa(n,W(o)),n(B(o)),e=n,t=j(o);continue e}else n(B(s))}break}}class hf extends O{constructor(t,n){super(),this.stack=t,this.started=n}}function Ha(e){e:for(;;){const t=e;if(P(t))return he();{const n=E(t),r=U(t);if(n!=null){const s=C(n);if(s instanceof H){const o=s;e=Q([W(o),ke(B(o)),j(o)],r);continue e}else return t}else{e=r;continue e}}}}function Uo(e){return new hf(Ha($(e)),!1)}function mf(){throw new Error("Enumeration not started")}function pf(){throw new Error("Enumeration already started")}function Po(e){if(e.started){const t=e.stack;if(P(t))return pf();if(E(t)!=null){const n=C(E(t));return B(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return mf()}function wf(e){if(e.started){const t=e.stack;if(P(t))return!1;if(E(t)!=null){if(C(E(t))instanceof H)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Ha(U(t)),!P(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!P(e.stack)}function Ho(e){let t=Uo(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Po(t)},"System.Collections.IEnumerator.get_Current"(){return Po(t)},"System.Collections.IEnumerator.MoveNext"(){return wf(t)},"System.Collections.IEnumerator.Reset"(){t=Uo(e)},Dispose(){}}}function _f(e,t,n){e:for(;;){const r=e,s=t,o=n;if(P(s))return P(o)?0:-1;if(P(o))return 1;if(E(o)!=null)if(E(s)!=null){const i=C(E(s)),a=C(E(o));if(i instanceof H){const l=i;if(W(l)==null)if(a instanceof H){const u=a;if(W(u)==null){const f=r.Compare(B(l),B(u))|0;if(f!==0)return f|0;e=r,t=Me(j(l),U(s)),n=Me(j(u),U(o));continue e}else{let f,c,p,m,w;switch(P(s)?P(o)?f=2:E(o)!=null?(f=1,m=U(o),w=C(E(o))):f=2:E(s)!=null?(f=0,c=U(s),p=C(E(s))):P(o)?f=2:E(o)!=null?(f=1,m=U(o),w=C(E(o))):f=2,f){case 0:if(p instanceof H){const b=p;e=r,t=Q([W(b),Fe(B(b),void 0,j(b),0)],c),n=o;continue e}else{e=r,t=Q([void 0,ke(B(p))],c),n=o;continue e}case 1:if(w instanceof H){const b=w;e=r,t=s,n=Q([W(b),Fe(B(b),void 0,j(b),0)],m);continue e}else{e=r,t=s,n=Q([void 0,ke(B(w))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(B(l),B(a))|0;if(u!==0)return u|0;e=r,t=Me(j(l),U(s)),n=Me(void 0,U(o));continue e}else{let u,f,c,p,m;switch(P(s)?P(o)?u=2:E(o)!=null?(u=1,p=U(o),m=C(E(o))):u=2:E(s)!=null?(u=0,f=U(s),c=C(E(s))):P(o)?u=2:E(o)!=null?(u=1,p=U(o),m=C(E(o))):u=2,u){case 0:if(c instanceof H){const w=c;e=r,t=Q([W(w),Fe(B(w),void 0,j(w),0)],f),n=o;continue e}else{e=r,t=Q([void 0,ke(B(c))],f),n=o;continue e}case 1:if(m instanceof H){const w=m;e=r,t=s,n=Q([W(w),Fe(B(w),void 0,j(w),0)],p);continue e}else{e=r,t=s,n=Q([void 0,ke(B(m))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof H){const l=a;if(W(l)==null){const u=r.Compare(B(i),B(l))|0;if(u!==0)return u|0;e=r,t=Me(void 0,U(s)),n=Me(j(l),U(o));continue e}else{let u,f,c,p,m;switch(P(s)?P(o)?u=2:E(o)!=null?(u=1,p=U(o),m=C(E(o))):u=2:E(s)!=null?(u=0,f=U(s),c=C(E(s))):P(o)?u=2:E(o)!=null?(u=1,p=U(o),m=C(E(o))):u=2,u){case 0:if(c instanceof H){const w=c;e=r,t=Q([W(w),Fe(B(w),void 0,j(w),0)],f),n=o;continue e}else{e=r,t=Q([void 0,ke(B(c))],f),n=o;continue e}case 1:if(m instanceof H){const w=m;e=r,t=s,n=Q([W(w),Fe(B(w),void 0,j(w),0)],p);continue e}else{e=r,t=s,n=Q([void 0,ke(B(m))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(B(i),B(a))|0;if(l!==0)return l|0;e=r,t=U(s),n=U(o);continue e}}else{C(E(o));let i,a,l,u,f;switch(P(s)?P(o)?i=2:E(o)!=null?(i=1,u=U(o),f=C(E(o))):i=2:E(s)!=null?(i=0,a=U(s),l=C(E(s))):P(o)?i=2:E(o)!=null?(i=1,u=U(o),f=C(E(o))):i=2,i){case 0:if(l instanceof H){const c=l;e=r,t=Q([W(c),Fe(B(c),void 0,j(c),0)],a),n=o;continue e}else{e=r,t=Q([void 0,ke(B(l))],a),n=o;continue e}case 1:if(f instanceof H){const c=f;e=r,t=s,n=Q([W(c),Fe(B(c),void 0,j(c),0)],u);continue e}else{e=r,t=s,n=Q([void 0,ke(B(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(E(s)!=null){C(E(s));let i,a,l,u,f;switch(P(s)?P(o)?i=2:E(o)!=null?(i=1,u=U(o),f=C(E(o))):i=2:E(s)!=null?(i=0,a=U(s),l=C(E(s))):P(o)?i=2:E(o)!=null?(i=1,u=U(o),f=C(E(o))):i=2,i){case 0:if(l instanceof H){const c=l;e=r,t=Q([W(c),Fe(B(c),void 0,j(c),0)],a),n=o;continue e}else{e=r,t=Q([void 0,ke(B(l))],a),n=o;continue e}case 1:if(f instanceof H){const c=f;e=r,t=s,n=Q([W(c),Fe(B(c),void 0,j(c),0)],u);continue e}else{e=r,t=s,n=Q([void 0,ke(B(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=U(s),n=U(o);continue e}}}function zo(e,t,n){return t==null?n==null?0:-1:n==null?1:_f(e,$(t),$(n))|0}function gf(e,t,n){let r=n;Pa(s=>{yt(t,r,s),r=r+1|0},e)}function bf(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){e=r,t=sn(r,o["System.Collections.Generic.IEnumerator`1.get_Current"](),s),n=o;continue e}else return s}}function yf(e,t){return hr((n,r)=>sn(e,r,n),void 0,t)}function vf(e,t){return qe((n,r)=>sn(e,r,n),void 0,t)}function za(e,t){if(ze(t))return yf(e,t);if(t instanceof de)return vf(e,t);{const n=re(t);try{return bf(e,void 0,n)}finally{Y(n)}}}class Is{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Cf(this)|0}Equals(t){let n;const r=this;return t instanceof Is&&(n=t,zo(Qt(r),De(r),De(n))===0)}toString(){return"set ["+D("; ",Ue(n=>Ge(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return zo(Qt(n),De(n),De(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 Ua(Qt(n),t,De(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){gf(De(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Br(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Br(this)|0}GetEnumerator(){return Ho(De(this))}[Symbol.iterator](){return ir(re(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Ho(De(this))}get size(){return Br(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 ja(this,t)}keys(){return Ue(n=>n,this)}values(){return Ue(n=>n,this)}entries(){return Ue(n=>[n,n],this)}forEach(t,n){const r=this;Bs(s=>{t(s,s,r)},r)}}function gr(e,t){return new Is(e,t)}function Qt(e){return e.comparer}function De(e){return e.tree}function xf(e){return gr(e,void 0)}function Sf(e,t){return gr(Qt(e),sn(Qt(e),t,De(e)))}function Br(e){return ff(De(e))}function ja(e,t){return Ua(Qt(e),t,De(e))}function Cf(e){let t=0;const n=re(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+dt(r)+631|0}}finally{Y(n)}return Math.abs(t)|0}function es(e,t){return ja(t,e)}function Af(e,t){return Sf(t,e)}function kf(e){return xf(e)}function Ff(e,t){return gr(t,za(t,e))}function Nf(e,t){return gr(t,za(t,e))}function wn(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
5
5
  `:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
6
- `:" ")}}function wf(e,t){const n=t.tag===2?mn(t.fields[0],t.fields[1],!0):t.tag===1?mn(t.fields[0],t.fields[1],!1)+`
7
- Reason: `+t.fields[2]:t.tag===3?mn(t.fields[0],t.fields[1],!0):t.tag===4?mn(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
6
+ `:" ")}}function Mf(e,t){const n=t.tag===2?wn(t.fields[0],t.fields[1],!0):t.tag===1?wn(t.fields[0],t.fields[1],!1)+`
7
+ Reason: `+t.fields[2]:t.tag===3?wn(t.fields[0],t.fields[1],!0):t.tag===4?wn(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
8
8
  `+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
9
9
 
10
- `+R(`
10
+ `+D(`
11
11
 
12
- `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:mn(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function Ba(e,t,n){const r=t(e,n);if(r.tag===1){const s=r.fields[0];return new d(1,[wf(s[0],s[1])])}else return new d(0,[r.fields[0]])}function pn(e,t){try{return Ba("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new d(1,["Given an invalid JSON: "+n.message]);throw n}}function Ia(e,t){return typeof t=="string"?new d(0,[t]):new d(1,[[e,new F(0,["a string",t])]])}function _f(e,t){if(typeof t=="string"){const n=t;return n.length===1?new d(0,[n[0]]):new d(1,[[e,new F(0,["a single character string",t])]])}else return new d(1,[[e,new F(0,["a char",t])]])}function gf(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Dd(t,new Ge(()=>r,s=>{r=s})),r],n[0]?new d(0,[n[1]]):new d(1,[[e,new F(0,["a guid",t])]])}else return new d(1,[[e,new F(0,["a guid",t])]])}function bf(e,t){return t==null?new d(0,[void 0]):new d(1,[[e,new F(0,["null",t])]])}const $o=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?-128<=s&&s<=127?new d(0,[(s+128&255)-128]):new d(1,[[n,new F(1,["a sbyte",s,"Value was either too large or too small for a sbyte"])]]):new d(1,[[n,new F(1,["a sbyte",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[on(r,511,!1,8,new Ge(()=>o,i=>{o=i|0})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new F(0,["a sbyte",r])]])}else return new d(1,[[n,new F(0,["a sbyte",r])]])},Bo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?0<=s&&s<=255?new d(0,[s&255]):new d(1,[[n,new F(1,["a byte",s,"Value was either too large or too small for a byte"])]]):new d(1,[[n,new F(1,["a byte",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[on(r,511,!0,8,new Ge(()=>o,i=>{o=i})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new F(0,["a byte",r])]])}else return new d(1,[[n,new F(0,["a byte",r])]])},Io=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?-32768<=s&&s<=32767?new d(0,[(s+32768&65535)-32768]):new d(1,[[n,new F(1,["an int16",s,"Value was either too large or too small for an int16"])]]):new d(1,[[n,new F(1,["an int16",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[on(r,511,!1,16,new Ge(()=>o,i=>{o=i|0})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new F(0,["an int16",r])]])}else return new d(1,[[n,new F(0,["an int16",r])]])},Vo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?0<=s&&s<=65535?new d(0,[s&65535]):new d(1,[[n,new F(1,["an uint16",s,"Value was either too large or too small for an uint16"])]]):new d(1,[[n,new F(1,["an uint16",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[on(r,511,!0,16,new Ge(()=>o,i=>{o=i})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new F(0,["an uint16",r])]])}else return new d(1,[[n,new F(0,["an uint16",r])]])},Lo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?-2147483648<=s&&s<=2147483647?new d(0,[~~s]):new d(1,[[n,new F(1,["an int",s,"Value was either too large or too small for an int"])]]):new d(1,[[n,new F(1,["an int",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[on(r,511,!1,32,new Ge(()=>o,i=>{o=i|0})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new F(0,["an int",r])]])}else return new d(1,[[n,new F(0,["an int",r])]])},Oo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?0<=s&&s<=4294967295?new d(0,[s>>>0]):new d(1,[[n,new F(1,["an uint32",s,"Value was either too large or too small for an uint32"])]]):new d(1,[[n,new F(1,["an uint32",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[on(r,511,!0,32,new Ge(()=>o,i=>{o=i})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new F(0,["an uint32",r])]])}else return new d(1,[[n,new F(0,["an uint32",r])]])};function yf(e,t){return typeof t=="boolean"?new d(0,[t]):new d(1,[[e,new F(0,["a boolean",t])]])}function vf(e,t){return typeof t=="number"?new d(0,[t]):new d(1,[[e,new F(0,["a float",t])]])}function Sf(e,t){return typeof t=="number"?new d(0,[t]):new d(1,[[e,new F(0,["a float32",t])]])}function xf(e,t){if(typeof t=="string"){let n,r=Fl();return n=[Ml(t,new Ge(()=>r,s=>{r=s})),r],n[0]?new d(0,[El(n[1])]):new d(1,[[e,new F(0,["a datetime",t])]])}else return new d(1,[[e,new F(0,["a datetime",t])]])}function Cf(e,t){if(typeof t=="string"){let n,r=Wd();return n=[Zd(t,new Ge(()=>r,s=>{r=s})),r],n[0]?new d(0,[n[1]]):new d(1,[[e,new F(0,["a datetimeoffset",t])]])}else return new d(1,[[e,new F(0,["a datetime",t])]])}function kf(e,t){if(typeof t=="string"){let n,r=0;return n=[Yd(t,new Ge(()=>r,s=>{r=s})),r],n[0]?new d(0,[n[1]]):new d(1,[[e,new F(0,["a timespan",t])]])}else return new d(1,[[e,new F(0,["a timespan",t])]])}function Ro(e,t,n,r){let s;const o=n+".["+At(e)+"]";if(Array.isArray(r)){const i=r;return e<i.length?t(o,we(e,i)):new d(1,[[o,new F(5,["a longer array. Need index `"+At(e)+"` but there are only `"+(s=i.length,At(s))+"` entries",r])]])}else return new d(1,[[o,new F(0,["an array",r])]])}function Af(e,t,n){return n==null?new d(0,[void 0]):Ye($e,e(t,n))}function Do(e,t,n){if(Array.isArray(n)){let r=-1;return Ye(bs,ur((s,o)=>{if(r=r+1|0,s.tag===0){const i=e(t+".["+At(r)+"]",o);return i.tag===0?new d(0,[Ne(i.fields[0],s.fields[0])]):new d(1,[i.fields[0]])}else return s},new d(0,[fe()]),n))}else return new d(1,[[t,new F(0,["a list",n])]])}function Ff(e,t,n){if(Array.isArray(n)){let r=-1;return Ye(ud,ur((s,o)=>{if(r=r+1|0,s.tag===0){const i=e(t+".["+At(r)+"]",o);return i.tag===0?new d(0,[ee([i.fields[0]],s.fields[0])]):new d(1,[i.fields[0]])}else return s},new d(0,[[]]),n))}else return new d(1,[[t,new F(0,["a seq",n])]])}function Po(e,t,n){if(Array.isArray(n)){let r=-1;const s=n;return ur((o,i)=>{if(r=r+1|0,o.tag===0){const a=o.fields[0],l=e(t+".["+At(r)+"]",i);return l.tag===0?(wt(a,r,l.fields[0]),new d(0,[a])):new d(1,[l.fields[0]])}else return o},new d(0,[gs(new Array(s.length),0,s.length,null)]),s)}else return new d(1,[[t,new F(0,["an array",n])]])}function Nf(e,t,n){return((s,o)=>{e:for(;;){const i=s,a=o;if(P(i))return new d(1,[[t,new F(7,[a])]]);{const l=Ba(t,W(N(i)),n);if(l.tag===1){s=D(i),o=ys(a,T(l.fields[0]));continue e}else return new d(0,[l.fields[0]])}}})(e,fe())}function Mf(e,t,n){return new d(0,[e])}function Uo(e,t,n,r){const s=t(n,r);return s.tag===0?e(s.fields[0],n,r):new d(1,[s.fields[0]])}function Ef(e,t,n,r){const s=t(n,r);return s.tag===1?new d(1,[s.fields[0]]):new d(0,[e(s.fields[0])])}function Tf(e,t){let n;const r=e;return n=s=>o=>Ro(0,r,s,o),s=>o=>Uo(Pr(i=>{let a;const l=t;return a=u=>f=>Ro(1,l,u,f),u=>f=>Uo((c,p,m)=>Mf([i,c]),W(a),u,f)}),W(n),s,o)}function $f(e){return Ed(e,{Compare:Be})}function Bf(e){return pf(e,{Compare:Be})}function If(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?aa((r,s)=>{const o=r[0];return s.tag===0?Ye(i=>Ne(i,s.fields[0]),r[1](t+"."+o)(n[o])):s},e,new d(0,[fe()])):new d(1,[[t,new F(0,["an object",n])]])}function Vf(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?wa((s,o)=>{if(s.tag===0){const i=e(n,o);if(i.tag===0){const a=t(n+"."+o,r[o]);return a.tag===0?new d(0,[Ne([i.fields[0],a.fields[0]],s.fields[0])]):new d(1,[a.fields[0]])}else return new d(1,[i.fields[0]])}else return s},new d(0,[fe()]),Object.keys(r)):new d(1,[[n,new F(0,["an object",r])]])}function Va(e,t,n,r){let s;const o=t.length+e|0;if(o!==r.length)return new d(1,[[n,new F(6,[(s=r.length|0,vn(Zt("Expected array of length %i but got %i"))(o)(s))])]]);{let i=new d(0,[fe()]);for(let a=e;a<=r.length-1;a++)if(i.tag===0){const l=i.fields[0],u=vn(Zt("%s[%i]"))(n)(a),f=we(a-e,t),c=we(a,r);i=Ye(p=>Ne(p,l),f(u)(c))}return Ye(bs,i)}}function Ho(e,t,n,r,s,o){const i=dc(a=>_s(a)===r,Xl(n));if(i!=null){const a=i,l=ar(u=>De(e,t,!1,u[1]),rc(a));return Ye(u=>sc(a,rn(u)),l.length===0&&o.length<=1?new d(0,[fe()]):Va(1,l,s,o))}else return new d(1,[[s,new F(6,["Cannot find case "+r+" in "+oe(n)])]])}function zo(e,t,n,r){let s;const o=new Ge(ze());let i;const a=oe(r);i=a===""?e:Nd(a,o,e);let l;if(nc(r)){const u=ar(f=>[Vd(t,_s(f)),De(i,t,!1,f[1])],Kn(r));l=f=>c=>Ye(p=>oc(r,rn(p)),If(u,f,c))}else if(tc(r))l=u=>f=>{if(typeof f=="string")return Ho(i,t,r,f,u,[]);if(Array.isArray(f)){const c=f;return Id(p=>Ho(i,t,r,p,u,c),Ia(u+"[0]",we(0,c)))}else return new d(1,[[u,new F(0,["a string or array",f])]])};else if(n)l=u=>f=>new d(1,[[u,new F(2,["an extra coder for "+oe(r),f])]]);else throw new Error((s=oe(r),vn(Zt(`Cannot generate auto decoder for %s. Please pass an extra decoder.
12
+ `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:wn(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function Ga(e,t,n){const r=t(e,n);if(r.tag===1){const s=r.fields[0];return new d(1,[Mf(s[0],s[1])])}else return new d(0,[r.fields[0]])}function jt(e,t){try{return Ga("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new d(1,["Given an invalid JSON: "+n.message]);throw n}}function Wa(e,t){return typeof t=="string"?new d(0,[t]):new d(1,[[e,new F(0,["a string",t])]])}function Ef(e,t){if(typeof t=="string"){const n=t;return n.length===1?new d(0,[n[0]]):new d(1,[[e,new F(0,["a single character string",t])]])}else return new d(1,[[e,new F(0,["a char",t])]])}function $f(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Qd(t,new We(()=>r,s=>{r=s})),r],n[0]?new d(0,[n[1]]):new d(1,[[e,new F(0,["a guid",t])]])}else return new d(1,[[e,new F(0,["a guid",t])]])}function Tf(e,t){return t==null?new d(0,[void 0]):new d(1,[[e,new F(0,["null",t])]])}const jo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?-128<=s&&s<=127?new d(0,[(s+128&255)-128]):new d(1,[[n,new F(1,["a sbyte",s,"Value was either too large or too small for a sbyte"])]]):new d(1,[[n,new F(1,["a sbyte",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[hn(r,511,!1,8,new We(()=>o,i=>{o=i|0})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new F(0,["a sbyte",r])]])}else return new d(1,[[n,new F(0,["a sbyte",r])]])},Go=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?0<=s&&s<=255?new d(0,[s&255]):new d(1,[[n,new F(1,["a byte",s,"Value was either too large or too small for a byte"])]]):new d(1,[[n,new F(1,["a byte",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[hn(r,511,!0,8,new We(()=>o,i=>{o=i})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new F(0,["a byte",r])]])}else return new d(1,[[n,new F(0,["a byte",r])]])},Wo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?-32768<=s&&s<=32767?new d(0,[(s+32768&65535)-32768]):new d(1,[[n,new F(1,["an int16",s,"Value was either too large or too small for an int16"])]]):new d(1,[[n,new F(1,["an int16",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[hn(r,511,!1,16,new We(()=>o,i=>{o=i|0})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new F(0,["an int16",r])]])}else return new d(1,[[n,new F(0,["an int16",r])]])},qo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?0<=s&&s<=65535?new d(0,[s&65535]):new d(1,[[n,new F(1,["an uint16",s,"Value was either too large or too small for an uint16"])]]):new d(1,[[n,new F(1,["an uint16",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[hn(r,511,!0,16,new We(()=>o,i=>{o=i})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new F(0,["an uint16",r])]])}else return new d(1,[[n,new F(0,["an uint16",r])]])},Zo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?-2147483648<=s&&s<=2147483647?new d(0,[~~s]):new d(1,[[n,new F(1,["an int",s,"Value was either too large or too small for an int"])]]):new d(1,[[n,new F(1,["an int",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[hn(r,511,!1,32,new We(()=>o,i=>{o=i|0})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new F(0,["an int",r])]])}else return new d(1,[[n,new F(0,["an int",r])]])},Jo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?0<=s&&s<=4294967295?new d(0,[s>>>0]):new d(1,[[n,new F(1,["an uint32",s,"Value was either too large or too small for an uint32"])]]):new d(1,[[n,new F(1,["an uint32",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[hn(r,511,!0,32,new We(()=>o,i=>{o=i})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new F(0,["an uint32",r])]])}else return new d(1,[[n,new F(0,["an uint32",r])]])};function Bf(e,t){return typeof t=="boolean"?new d(0,[t]):new d(1,[[e,new F(0,["a boolean",t])]])}function If(e,t){return typeof t=="number"?new d(0,[t]):new d(1,[[e,new F(0,["a float",t])]])}function Vf(e,t){return typeof t=="number"?new d(0,[t]):new d(1,[[e,new F(0,["a float32",t])]])}function Lf(e,t){if(typeof t=="string"){let n,r=Rl();return n=[Pl(t,new We(()=>r,s=>{r=s})),r],n[0]?new d(0,[Hl(n[1])]):new d(1,[[e,new F(0,["a datetime",t])]])}else return new d(1,[[e,new F(0,["a datetime",t])]])}function Of(e,t){if(typeof t=="string"){let n,r=of();return n=[uf(t,new We(()=>r,s=>{r=s})),r],n[0]?new d(0,[n[1]]):new d(1,[[e,new F(0,["a datetimeoffset",t])]])}else return new d(1,[[e,new F(0,["a datetime",t])]])}function Df(e,t){if(typeof t=="string"){let n,r=0;return n=[df(t,new We(()=>r,s=>{r=s})),r],n[0]?new d(0,[n[1]]):new d(1,[[e,new F(0,["a timespan",t])]])}else return new d(1,[[e,new F(0,["a timespan",t])]])}function Ko(e,t,n,r){let s;const o=n+".["+Et(e)+"]";if(Array.isArray(r)){const i=r;return e<i.length?t(o,we(e,i)):new d(1,[[o,new F(5,["a longer array. Need index `"+Et(e)+"` but there are only `"+(s=i.length,Et(s))+"` entries",r])]])}else return new d(1,[[o,new F(0,["an array",r])]])}function Rf(e,t,n){return n==null?new d(0,[void 0]):Xe(ve,e(t,n))}function Yo(e,t,n){if(Array.isArray(n)){let r=-1;return Xe(Ns,hr((s,o)=>{if(r=r+1|0,s.tag===0){const i=e(t+".["+Et(r)+"]",o);return i.tag===0?new d(0,[Me(i.fields[0],s.fields[0])]):new d(1,[i.fields[0]])}else return s},new d(0,[he()]),n))}else return new d(1,[[t,new F(0,["a list",n])]])}function Uf(e,t,n){if(Array.isArray(n)){let r=-1;return Xe(vd,hr((s,o)=>{if(r=r+1|0,s.tag===0){const i=e(t+".["+Et(r)+"]",o);return i.tag===0?new d(0,[K([i.fields[0]],s.fields[0])]):new d(1,[i.fields[0]])}else return s},new d(0,[[]]),n))}else return new d(1,[[t,new F(0,["a seq",n])]])}function Qo(e,t,n){if(Array.isArray(n)){let r=-1;const s=n;return hr((o,i)=>{if(r=r+1|0,o.tag===0){const a=o.fields[0],l=e(t+".["+Et(r)+"]",i);return l.tag===0?(yt(a,r,l.fields[0]),new d(0,[a])):new d(1,[l.fields[0]])}else return o},new d(0,[Fs(new Array(s.length),0,s.length,null)]),s)}else return new d(1,[[t,new F(0,["an array",n])]])}function Pf(e,t,n){return((s,o)=>{e:for(;;){const i=s,a=o;if(P(i))return new d(1,[[t,new F(7,[a])]]);{const l=Ga(t,z(E(i)),n);if(l.tag===1){s=U(i),o=Ms(a,$(l.fields[0]));continue e}else return new d(0,[l.fields[0]])}}})(e,he())}function Hf(e,t,n){return new d(0,[e])}function Xo(e,t,n,r){const s=t(n,r);return s.tag===0?e(s.fields[0],n,r):new d(1,[s.fields[0]])}function zf(e,t,n,r){const s=t(n,r);return s.tag===1?new d(1,[s.fields[0]]):new d(0,[e(s.fields[0])])}function jf(e,t){let n;const r=e;return n=s=>o=>Ko(0,r,s,o),s=>o=>Xo(qr(i=>{let a;const l=t;return a=u=>f=>Ko(1,l,u,f),u=>f=>Xo((c,p,m)=>Hf([i,c]),z(a),u,f)}),z(n),s,o)}function Gf(e){return zd(e,{Compare:Be})}function Wf(e){return Nf(e,{Compare:Be})}function qf(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?ba((r,s)=>{const o=r[0];return s.tag===0?Xe(i=>Me(i,s.fields[0]),r[1](t+"."+o)(n[o])):s},e,new d(0,[he()])):new d(1,[[t,new F(0,["an object",n])]])}function Zf(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Na((s,o)=>{if(s.tag===0){const i=e(n,o);if(i.tag===0){const a=t(n+"."+o,r[o]);return a.tag===0?new d(0,[Me([i.fields[0],a.fields[0]],s.fields[0])]):new d(1,[a.fields[0]])}else return new d(1,[i.fields[0]])}else return s},new d(0,[he()]),Object.keys(r)):new d(1,[[n,new F(0,["an object",r])]])}function qa(e,t,n,r){let s;const o=t.length+e|0;if(o!==r.length)return new d(1,[[n,new F(6,[(s=r.length|0,xn(nn("Expected array of length %i but got %i"))(o)(s))])]]);{let i=new d(0,[he()]);for(let a=e;a<=r.length-1;a++)if(i.tag===0){const l=i.fields[0],u=xn(nn("%s[%i]"))(n)(a),f=we(a-e,t),c=we(a,r);i=Xe(p=>Me(p,l),f(u)(c))}return Xe(Ns,i)}}function ei(e,t,n,r,s,o){const i=Sc(a=>ks(a)===r,dc(n));if(i!=null){const a=i,l=fr(u=>Re(e,t,!1,u[1]),pc(a));return Xe(u=>wc(a,dn(u)),l.length===0&&o.length<=1?new d(0,[he()]):qa(1,l,s,o))}else return new d(1,[[s,new F(6,["Cannot find case "+r+" in "+oe(n)])]])}function ti(e,t,n,r){let s;const o=new We(je());let i;const a=oe(r);i=a===""?e:Pd(a,o,e);let l;if(mc(r)){const u=fr(f=>[Zd(t,ks(f)),Re(i,t,!1,f[1])],er(r));l=f=>c=>Xe(p=>_c(r,dn(p)),qf(u,f,c))}else if(hc(r))l=u=>f=>{if(typeof f=="string")return ei(i,t,r,f,u,[]);if(Array.isArray(f)){const c=f;return qd(p=>ei(i,t,r,p,u,c),Wa(u+"[0]",we(0,c)))}else return new d(1,[[u,new F(0,["a string or array",f])]])};else if(n)l=u=>f=>new d(1,[[u,new F(2,["an extra coder for "+oe(r),f])]]);else throw new Error((s=oe(r),xn(nn(`Cannot generate auto decoder for %s. Please pass an extra decoder.
13
13
 
14
- Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(s)));return o.contents=l,l}function De(e,t,n,r){let s,o,i,a;const l=oe(r),u=Md(l,e);if(u==null)if(Zl(r)){const f=De(e,t,!1,ir(r));return c=>p=>Po(W(f),c,p)}else if(ra(r))switch(oe(Yl(r))){case"System.SByte":return c=>p=>{const m=r,w=c,b=p,g=$o(w)(b);if(g.tag===1)return new d(1,[g.fields[0]]);{const _=g.fields[0]|0;return Vt(_,Bt(m),{Equals:(k,y)=>k===y,GetHashCode:Xe})?new d(0,[It(m,_.toString())]):new d(1,[[w,new F(1,[oe(m),b,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>p=>{const m=r,w=c,b=p,g=Bo(w)(b);if(g.tag===1)return new d(1,[g.fields[0]]);{const _=g.fields[0];return Vt(_,Bt(m),{Equals:(k,y)=>k===y,GetHashCode:Xe})?new d(0,[It(m,_.toString())]):new d(1,[[w,new F(1,[oe(m),b,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>p=>{const m=r,w=c,b=p,g=Io(w)(b);if(g.tag===1)return new d(1,[g.fields[0]]);{const _=g.fields[0]|0;return Vt(_,Bt(m),{Equals:(k,y)=>k===y,GetHashCode:Xe})?new d(0,[It(m,Xu(_))]):new d(1,[[w,new F(1,[oe(m),b,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>p=>{const m=r,w=c,b=p,g=Vo(w)(b);if(g.tag===1)return new d(1,[g.fields[0]]);{const _=g.fields[0];return Vt(_,Bt(m),{Equals:(k,y)=>k===y,GetHashCode:Xe})?new d(0,[It(m,_.toString())]):new d(1,[[w,new F(1,[oe(m),b,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>p=>{const m=r,w=c,b=p,g=Lo(w)(b);if(g.tag===1)return new d(1,[g.fields[0]]);{const _=g.fields[0]|0;return Vt(_,Bt(m),{Equals:(k,y)=>k===y,GetHashCode:Xe})?new d(0,[It(m,At(_))]):new d(1,[[w,new F(1,[oe(m),b,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>p=>{const m=r,w=c,b=p,g=Oo(w)(b);if(g.tag===1)return new d(1,[g.fields[0]]);{const _=g.fields[0];return Vt(_,Bt(m),{Equals:(k,y)=>k===y,GetHashCode:Xe})?new d(0,[It(m,_.toString())]):new d(1,[[w,new F(1,[oe(m),b,"Unkown value provided for the enum"])]])}};default:{const c=oe(r),p=Il(Zt(`Cannot generate auto decoder for %s.
14
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(s)));return o.contents=l,l}function Re(e,t,n,r){let s,o,i,a;const l=oe(r),u=Hd(l,e);if(u==null)if(ic(r)){const f=Re(e,t,!1,dr(r));return c=>p=>Qo(z(f),c,p)}else if(pa(r))switch(oe(lc(r))){case"System.SByte":return c=>p=>{const m=r,w=c,b=p,g=jo(w)(b);if(g.tag===1)return new d(1,[g.fields[0]]);{const _=g.fields[0]|0;return Dt(_,Lt(m),{Equals:(k,x)=>k===x,GetHashCode:nt})?new d(0,[Ot(m,_.toString())]):new d(1,[[w,new F(1,[oe(m),b,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>p=>{const m=r,w=c,b=p,g=Go(w)(b);if(g.tag===1)return new d(1,[g.fields[0]]);{const _=g.fields[0];return Dt(_,Lt(m),{Equals:(k,x)=>k===x,GetHashCode:nt})?new d(0,[Ot(m,_.toString())]):new d(1,[[w,new F(1,[oe(m),b,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>p=>{const m=r,w=c,b=p,g=Wo(w)(b);if(g.tag===1)return new d(1,[g.fields[0]]);{const _=g.fields[0]|0;return Dt(_,Lt(m),{Equals:(k,x)=>k===x,GetHashCode:nt})?new d(0,[Ot(m,dl(_))]):new d(1,[[w,new F(1,[oe(m),b,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>p=>{const m=r,w=c,b=p,g=qo(w)(b);if(g.tag===1)return new d(1,[g.fields[0]]);{const _=g.fields[0];return Dt(_,Lt(m),{Equals:(k,x)=>k===x,GetHashCode:nt})?new d(0,[Ot(m,_.toString())]):new d(1,[[w,new F(1,[oe(m),b,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>p=>{const m=r,w=c,b=p,g=Zo(w)(b);if(g.tag===1)return new d(1,[g.fields[0]]);{const _=g.fields[0]|0;return Dt(_,Lt(m),{Equals:(k,x)=>k===x,GetHashCode:nt})?new d(0,[Ot(m,Et(_))]):new d(1,[[w,new F(1,[oe(m),b,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>p=>{const m=r,w=c,b=p,g=Jo(w)(b);if(g.tag===1)return new d(1,[g.fields[0]]);{const _=g.fields[0];return Dt(_,Lt(m),{Equals:(k,x)=>k===x,GetHashCode:nt})?new d(0,[Ot(m,_.toString())]):new d(1,[[w,new F(1,[oe(m),b,"Unkown value provided for the enum"])]])}};default:{const c=oe(r),p=Wl(nn(`Cannot generate auto decoder for %s.
15
15
  Thoth.Json.Net only support the following enum types:
16
16
  - sbyte
17
17
  - byte
@@ -20,7 +20,7 @@ Thoth.Json.Net only support the following enum types:
20
20
  - int
21
21
  - uint32
22
22
  If you can't use one of these types, please pass an extra decoder.
23
- `))(c);return m=>p(m)}}else if(Jl(r))if(sa(r)){const f=ar(c=>De(e,t,!1,c),ec(r));return c=>p=>Array.isArray(p)?Ye(m=>ic(rn(m)),Va(0,f,c,p)):new d(1,[[c,new F(0,["an array",p])]])}else switch(oe(Kl(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return s=De(e,t,!0,we(0,et(r))),c=>p=>Af(W(s),c,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return o=De(e,t,!1,we(0,et(r))),c=>p=>Do(W(o),c,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return i=De(e,t,!1,we(0,et(r))),c=>p=>Ff(W(i),c,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=De(e,t,!1,we(0,et(r))),p=De(e,t,!1,we(1,et(r)));let m;const w=S([b=>g=>Vf(W(c),W(p),b,g),(a=Tf(W(c),W(p)),b=>g=>Do(W(a),b,g))]);return m=b=>g=>Nf(w,b,g),b=>g=>Ef($f,W(m),b,g)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=De(e,t,!1,we(0,et(r)));return p=>m=>{const w=Po(W(c),p,m);return w.tag===0?new d(0,[Bf(w.fields[0])]):new d(1,[w.fields[0]])}}default:return zo(e,t,n,r)}else switch(l){case"System.Boolean":return f=>c=>yf(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>bf(f,c);case"System.String":return f=>c=>Ia(f,c);case"System.Char":return f=>c=>_f(f,c);case"System.SByte":return $o;case"System.Byte":return Bo;case"System.Int16":return Io;case"System.UInt16":return Vo;case"System.Int32":return Lo;case"System.UInt32":return Oo;case"System.Double":return f=>c=>vf(f,c);case"System.Single":return f=>c=>Sf(f,c);case"System.DateTime":return f=>c=>xf(f,c);case"System.DateTimeOffset":return f=>c=>Cf(f,c);case"System.TimeSpan":return f=>c=>kf(f,c);case"System.Guid":return f=>c=>gf(f,c);case"System.Object":return f=>c=>new d(0,[c]);default:return zo(e,t,n,r)}else{const f=u;return c=>p=>f.contents(c)(p)}}function Lf(e){return xa({Compare:rr})}function wn(e,t,n){const r=or(t,new Rt(0,[]));return De(Lf(),r,!1,e)}class Of extends H{constructor(t){super(),this.SmsfChoice=t}}function Rf(){return ut("SuperSelection.UI.BackendService.SMSFChoiceResponse",[],Of,()=>[["SmsfChoice",at(Pf())]])}class Df extends H{constructor(t,n,r,s,o,i,a,l,u){super(),this.Abn=t,this.FundName=n,this.FundAddress=r,this.Bsb=s,this.BankAccountName=o,this.BankAccountNumber=i,this.ElectronicServiceAddress=a,this.MemberFirstName=l,this.MemberFamilyName=u}}function Pf(){return ut("SuperSelection.UI.BackendService.SMSFChoiceDto",[],Df,()=>[["Abn",J],["FundName",J],["FundAddress",Hf()],["Bsb",J],["BankAccountName",J],["BankAccountNumber",J],["ElectronicServiceAddress",J],["MemberFirstName",at(J)],["MemberFamilyName",at(J)]])}class Uf extends H{constructor(t,n,r,s,o){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.State=s,this.Postcode=o}}function Hf(){return ut("SuperSelection.UI.BackendService.AustralianFundAddressDto",[],Uf,()=>[["AddressLine1",J],["AddressLine2",at(J)],["City",J],["State",J],["Postcode",J]])}class zf extends H{constructor(t){super(),this.BankDetails=t}}function jf(){return ut("SuperSelection.UI.BackendService.BsbLookupResponse",[],zf,()=>[["BankDetails",at(Wf())]])}class Gf extends H{constructor(t,n,r){super(),this.Bsb=t,this.Bank=n,this.Branch=r}}function Wf(){return ut("SuperSelection.UI.BackendService.BankDetailsDto",[],Gf,()=>[["Bsb",J],["Bank",J],["Branch",J]])}class qf extends H{constructor(t,n,r,s,o){super(),this.Usi=t,this.FundName=n,this.MemberNumber=r,this.MemberFirstName=s,this.MemberFamilyName=o}}function Zf(){return ut("SuperSelection.UI.BackendService.OwnFundChoiceDto",[],qf,()=>[["Usi",J],["FundName",J],["MemberNumber",J],["MemberFirstName",at(J)],["MemberFamilyName",at(J)]])}class Jf extends H{constructor(t){super(),this.OwnFundChoice=t}}function Kf(){return ut("SuperSelection.UI.BackendService.OwnFundChoiceResponse",[],Jf,()=>[["OwnFundChoice",at(Zf())]])}class Yf extends H{constructor(t,n){super(),this.Data=t,this.Result=n}}function Qf(){return ut("SuperSelection.UI.BackendService.AustralianSuperFundListDto",[],Yf,()=>[["Data",Wl(nh())],["Result",eh()]])}class Xf extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","TooManyResults"]}}function eh(){return Gl("SuperSelection.UI.BackendService.AustralianSuperFundListResultDto",[],Xf,()=>[[],[]])}class th extends H{constructor(t,n,r,s,o,i,a,l){super(),this.Abn=t,this.FundName=n,this.Usi=r,this.ProductName=s,this.ContributionRestriction=o,this.DateFrom=i,this.DateTo=a,this.IsActive=l}}function nh(){return ut("SuperSelection.UI.BackendService.AustralianSuperFundDto",[],th,()=>[["Abn",J],["FundName",J],["Usi",J],["ProductName",J],["ContributionRestriction",zr],["DateFrom",po("System.DateTimeOffset")],["DateTo",po("System.DateTimeOffset")],["IsActive",at(zr)]])}class rh{constructor(t,n){this.accessToken=n,this.baseUrl=`${t}/super-selection/backend`}get GetSmsfChoice(){const t=this;return()=>Mr(t,5,L.Delay(()=>{let n;return L.Bind(hn((n=dn(new Lt(0,[]),cn(`${t.baseUrl}/v1.0/super-choice/smsf`)),fn(ln(`Bearer ${t.accessToken}`),n))),r=>{const s=r;return s.statusCode===200?L.Return(pn(W(wn(Rf(),new Rt(1,[]))),s.responseText)):L.Return(new d(1,["Failed to retrieve SMSF choice"]))})}))}get BsbLookup(){const t=this;return n=>L.Delay(()=>{let r;return L.Bind(hn((r=dn(new Lt(0,[]),cn(`${t.baseUrl}/v1.0/bsb-lookup/${n}`)),fn(ln(`Bearer ${t.accessToken}`),r))),s=>{const o=s;return o.statusCode===200?L.Return(pn(W(wn(jf(),new Rt(1,[]))),o.responseText)):L.Return(new d(1,["Failed to lookup BSB"]))})})}get IsRegulatedFundAbn(){const t=this;return n=>L.Delay(()=>{let r;return L.Bind(hn((r=dn(new Lt(0,[]),cn(`${t.baseUrl}/v1.0/super-choice/smsf/${n}/validate`)),fn(ln(`Bearer ${t.accessToken}`),r))),s=>{const o=s;return o.statusCode===200?L.Return(Ye(i=>!i.Result,pn(W(wn(jl(["Result",zr]),new Rt(1,[]))),o.responseText))):L.Return(new d(1,["Failed to query ABN"]))})})}get GetOwnFundChoice(){const t=this;return()=>Mr(t,5,L.Delay(()=>{let n;return L.Bind(hn((n=dn(new Lt(0,[]),cn(`${t.baseUrl}/v1.0/super-choice/byof`)),fn(ln(`Bearer ${t.accessToken}`),n))),r=>{const s=r;return s.statusCode===200?L.Return(pn(W(wn(Kf(),new Rt(1,[]))),s.responseText)):L.Return(new d(1,["Failed to retrieve own fund choice"]))})}))}get GetAustralianFundList(){const t=this;return n=>{const r=n[1];return Mr(t,5,L.Delay(()=>{let s;const o=r==null?"":`&maxRecordCount=${r}`;return L.Bind(hn((s=dn(new Lt(0,[]),cn(`${t.baseUrl}/v1.0/super-choice/australian-funds-v2?search=${n[0]}${o}`)),fn(ln(`Bearer ${t.accessToken}`),s))),i=>{const a=i;return a.statusCode===200?L.Return(pn(W(wn(Qf(),new Rt(1,[]))),a.responseText)):L.Return(new d(1,["Failed to retrieve fund list"]))})}))}}}function La(e,t){return new rh(e,t)}function Mr(e,t,n){const r=s=>L.Delay(()=>L.Bind(n,o=>{const i=o;return i.tag===1?s>1?L.Bind(da(1e3),()=>L.ReturnFrom(r(s-1))):L.Return(new d(1,[i.fields[0]])):L.Return(new d(0,[i.fields[0]]))}));return r(t)}class sh{constructor(t,n,r){this.OnNext=t,this.OnError=n||(s=>{}),this.OnCompleted=r||(()=>{})}}function oh(e,t){t.Subscribe(new sh(e))}class ih{constructor(){this.delegates=[]}_add(t){this.delegates.push(t)}_remove(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}get Publish(){return uh(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const s=n===void 0?t:(r=t,n);this.delegates.forEach(o=>{o(r,s)})}}class ah extends ih{}function uh(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(s,o)=>n.OnNext(o);return e(r),{Dispose(){t(r)}}}}}class lh{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 ah}Elapsed(){return this._elapsed.Publish}get Enabled(){return this._enabled}set Enabled(t){!this._isDisposed&&this._enabled!==t&&(this._enabled=t,this._enabled?this.AutoReset?this._intervalId=setInterval(()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)},this.Interval):this._timeoutId=setTimeout(()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)},this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}function ch(e,t){console.error($e(e),t)}function dh(e,t){let n,r=new lh(e);r.AutoReset=!1,n=r,oh(t,n.Elapsed()),n.Enabled=!0,n.Start()}function jo(e,t,n){xn(r=>{try{r(t)}catch(s){e(s)}},n)}function A(){return fe()}function Tt(e,t){return vs(n=>r=>{n(s=>{r(e(s))})},t)}function Oa(e){return yc(e)}function Yt(e){return T(e)}function Ct(e,t,n,r){return T(s=>{e(L.Delay(()=>L.Bind(Rc(t(n)),o=>{const i=o;return i.tag===0&&s(r(i.fields[0])),L.Zero()})))})}function kt(e){dh(1,t=>{Uc(e)})}class fh extends H{constructor(t,n,r,s,o,i,a,l,u,f,c,p,m){super(),this.FundName=t,this.FundAbn=n,this.FundEsa=r,this.FundAddressLine1=s,this.FundAddressLine2=o,this.FundCity=i,this.FundState=a,this.FundPostcode=l,this.MemberFirstName=u,this.MemberLastName=f,this.BankAccountName=c,this.BankAccountBsb=p,this.BankAccountNumber=m}}function As(e,t){const n={detail:t};return new CustomEvent(e,n)}const hh=As("smsf-loaded",{sender:"super-smsf"}),mh=As("smsf-cancelled",{sender:"super-smsf"});function ph(e){return As("smsf-completed",{bankAccountName:e.BankAccountName,bankAccountNumber:e.BankAccountNumber,bankBsb:e.BankAccountBsb,fundAbn:e.FundAbn,fundAddressLine1:e.FundAddressLine1,fundAddressLine2:ta(e.FundAddressLine2),fundCity:e.FundCity,fundEsa:e.FundEsa,fundName:e.FundName,fundPostcode:e.FundPostcode,fundState:e.FundState,memberFirstName:e.MemberFirstName,memberLastName:e.MemberLastName,sender:"super-smsf"})}class Fs extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loaded","Cancelled","Completed"]}}function Ns(e){let t;t=e.tag===1?mh:e.tag===2?ph(e.fields[0]):hh,document.dispatchEvent(t)}function wh(e){return Yt(t=>{Ns(new Fs(2,[e]))})}function _h(){return Yt(e=>{Ns(new Fs(0,[]))})}function gh(){return Yt(e=>{Ns(new Fs(1,[]))})}function bh(){return fe()}function Ms(e){return R("/",e)}function yh(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Ms(t),n])}function Ra(e,t,n){try{K(n)}catch(r){e(["Error stopping subscription: "+Ms(t),r])}}function vh(e,t,n,r){try{return[n,r(t)]}catch(s){e(["Error starting subscription: "+Ms(n),s]);return}}function Sh(e,t){xn(n=>{Ra(e,n[0],n[1])},t)}function Go(e,t,n,r,s,o){return xn(i=>{yh(e,i)},n),xn(i=>{Ra(e,i[0],i[1])},r),ys(s,Ac(i=>vh(e,t,i[0],i[1]),o))}function xh(){return[fe(),hf({Compare:Be}),fe()]}function Ch(e,t,n,r,s){return qr(e,r)?[Ne(e,n),r,s]:[n,ff(e,r),Ne([e,t],s)]}function kh(e){return wc((t,n)=>Ch(t[0],t[1],n[0],n[1],n[2]),e,xh())}const Ah=fe();function Wo(e,t){const n=mf(vs(i=>i[0],e),{Compare:Be}),r=kh(t),s=r[1],o=r[0];if(n.Equals(s))return[o,fe(),e,fe()];{const i=kc(a=>qr(a[0],s),e);return[o,i[1],i[0],Cc(a=>!qr(a[0],n),r[2])]}}function Fh(e,t,n,r){const s=Be(e,n)|0;if(s===0)throw new Error("The step of a range cannot be zero");const o=s>0;return i=>{const a=Be(i,t)|0;return o&&a<=0||!o&&a>=0?[i,r(i,e)]:void 0}}function Nh(e,t,n,r,s){const o=Fh(t,n,r,s);return E(()=>rd(o,e))}function Da(e,t,n){return Nh(e,t,n,0,(r,s)=>r+s)}class Gt extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Mh{constructor(t){this.state=new Gt(0,[gs(new Array(jr(t,10)),0,jr(t,10),null),0])}}function Eh(e){return new Mh(e)}function qo(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,s=t.fields[0],o=(r+1)%s.length|0;return o===n?e.state=new Gt(0,[s,n]):e.state=new Gt(1,[s,n,o]),$e(we(r,s))}else return}function Th(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,s=n.fields[2]|0,o=n.fields[0];wt(o,r,t);const i=(r+1)%o.length|0;i===s?e.state=new Gt(1,[$h(e,s,o),o.length,0]):e.state=new Gt(1,[o,i,s])}else{const r=n.fields[1]|0,s=n.fields[0];wt(s,r,t);const o=(r+1)%s.length|0;e.state=new Gt(1,[s,o,r])}}function $h(e,t,n){return Array.from(E(()=>ee(ld(t,n),E(()=>ee(cd(t,n),E(()=>dd(r=>B(ze()),Da(0,1,n.length))))))))}class Es extends H{constructor(t,n,r,s,o,i,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=s,this.setState=o,this.onError=i,this.termination=a}}function Ts(e,t,n){return new Es(e,t,r=>bh(),n,W(r=>{const s=V(n)(r);return o=>{s(o)}}),r=>{ch(r[0],r[1])},[r=>!1,r=>{}])}function Bh(e,t){return new Es(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function Ih(e){return e.init}function Vh(e,t,n,r,s,o,i){const a=V(e)(i.init),l=xr(t)(V(i.update)),u=xr(n)(V(i.view)),f=xr(r)(V(i.setState));return new Es(a,W(l),V(s)(i.subscribe),W(u),W(f),i.onError,o(i.termination))}function Lh(e,t,n){let r;const s=n.init(t),o=s[0],i=n.subscribe(o),a=n.termination,l=Eh(10);let u=!1,f=o,c=Ah,p=!1;const m=g=>{p||(Th(l,g),u||(u=!0,b(),u=!1))},w=V(e)(m),b=()=>{let g,_=qo(l);for(;!p&&_!=null;){const k=x(_);if(a[0](k))Sh(n.onError,c),a[1](f),p=!0;else{const y=n.update(k,f),q=y[0],ie=n.subscribe(q);n.setState(q,w),jo(Ie=>{n.onError([vn(Zt("Error handling the message: %A"))(k),Ie])},w,y[1]),f=q,c=(g=Wo(c,ie),Go(n.onError,w,g[0],g[1],g[2],g[3])),_=qo(l)}}};u=!0,n.setState(o,w),jo(g=>{n.onError([vn(Zt("Error intitializing:")),g])},w,s[1]),c=(r=Wo(c,i),Go(n.onError,w,r[0],r[1],r[2],r[3])),b(),u=!1}function Oh(e,t){Lh(W(n=>n),e,t)}function Rh(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var Pa={exports:{}},Ua={};const Dh=Rh(Wu);/**
23
+ `))(c);return m=>p(m)}}else if(ac(r))if(wa(r)){const f=fr(c=>Re(e,t,!1,c),fc(r));return c=>p=>Array.isArray(p)?Xe(m=>gc(dn(m)),qa(0,f,c,p)):new d(1,[[c,new F(0,["an array",p])]])}else switch(oe(uc(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return s=Re(e,t,!0,we(0,rt(r))),c=>p=>Rf(z(s),c,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return o=Re(e,t,!1,we(0,rt(r))),c=>p=>Yo(z(o),c,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return i=Re(e,t,!1,we(0,rt(r))),c=>p=>Uf(z(i),c,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=Re(e,t,!1,we(0,rt(r))),p=Re(e,t,!1,we(1,rt(r)));let m;const w=v([b=>g=>Zf(z(c),z(p),b,g),(a=jf(z(c),z(p)),b=>g=>Yo(z(a),b,g))]);return m=b=>g=>Pf(w,b,g),b=>g=>zf(Gf,z(m),b,g)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=Re(e,t,!1,we(0,rt(r)));return p=>m=>{const w=Qo(z(c),p,m);return w.tag===0?new d(0,[Wf(w.fields[0])]):new d(1,[w.fields[0]])}}default:return ti(e,t,n,r)}else switch(l){case"System.Boolean":return f=>c=>Bf(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>Tf(f,c);case"System.String":return f=>c=>Wa(f,c);case"System.Char":return f=>c=>Ef(f,c);case"System.SByte":return jo;case"System.Byte":return Go;case"System.Int16":return Wo;case"System.UInt16":return qo;case"System.Int32":return Zo;case"System.UInt32":return Jo;case"System.Double":return f=>c=>If(f,c);case"System.Single":return f=>c=>Vf(f,c);case"System.DateTime":return f=>c=>Lf(f,c);case"System.DateTimeOffset":return f=>c=>Of(f,c);case"System.TimeSpan":return f=>c=>Df(f,c);case"System.Guid":return f=>c=>$f(f,c);case"System.Object":return f=>c=>new d(0,[c]);default:return ti(e,t,n,r)}else{const f=u;return c=>p=>f.contents(c)(p)}}function Jf(e){return Va({Compare:ar})}function Gt(e,t,n){const r=cr(t,new Ft(0,[]));return Re(Jf(),r,!1,e)}class Kf extends O{constructor(t){super(),this.SmsfChoice=t}}function Yf(){return et("SuperSelection.UI.BackendService.SMSFChoiceResponse",[],Kf,()=>[["SmsfChoice",Qe(Xf())]])}class Qf extends O{constructor(t,n,r,s,o,i,a,l,u){super(),this.Abn=t,this.FundName=n,this.FundAddress=r,this.Bsb=s,this.BankAccountName=o,this.BankAccountNumber=i,this.ElectronicServiceAddress=a,this.MemberFirstName=l,this.MemberFamilyName=u}}function Xf(){return et("SuperSelection.UI.BackendService.SMSFChoiceDto",[],Qf,()=>[["Abn",q],["FundName",q],["FundAddress",th()],["Bsb",q],["BankAccountName",q],["BankAccountNumber",q],["ElectronicServiceAddress",q],["MemberFirstName",Qe(q)],["MemberFamilyName",Qe(q)]])}class eh extends O{constructor(t,n,r,s,o){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.State=s,this.Postcode=o}}function th(){return et("SuperSelection.UI.BackendService.AustralianFundAddressDto",[],eh,()=>[["AddressLine1",q],["AddressLine2",Qe(q)],["City",q],["State",q],["Postcode",q]])}class nh extends O{constructor(t){super(),this.BankDetails=t}}function rh(){return et("SuperSelection.UI.BackendService.BsbLookupResponse",[],nh,()=>[["BankDetails",Qe(oh())]])}class sh extends O{constructor(t,n,r){super(),this.Bsb=t,this.Bank=n,this.Branch=r}}function oh(){return et("SuperSelection.UI.BackendService.BankDetailsDto",[],sh,()=>[["Bsb",q],["Bank",q],["Branch",q]])}class ih extends O{constructor(t,n,r,s,o){super(),this.Usi=t,this.FundName=n,this.MemberNumber=r,this.MemberFirstName=s,this.MemberFamilyName=o}}function ah(){return et("SuperSelection.UI.BackendService.OwnFundChoiceDto",[],ih,()=>[["Usi",q],["FundName",q],["MemberNumber",q],["MemberFirstName",Qe(q)],["MemberFamilyName",Qe(q)]])}class uh extends O{constructor(t){super(),this.OwnFundChoice=t}}function lh(){return et("SuperSelection.UI.BackendService.OwnFundChoiceResponse",[],uh,()=>[["OwnFundChoice",Qe(ah())]])}class ch extends O{constructor(t){super(),this.Usi=t}}function dh(){return et("SuperSelection.UI.BackendService.DefaultFundChoiceResponse",[],ch,()=>[["Usi",Qe(q)]])}class fh extends O{constructor(t,n){super(),this.Data=t,this.Result=n}}function hh(){return et("SuperSelection.UI.BackendService.AustralianSuperFundListDto",[],fh,()=>[["Data",sc(_h())],["Result",ph()]])}class mh extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","TooManyResults"]}}function ph(){return rc("SuperSelection.UI.BackendService.AustralianSuperFundListResultDto",[],mh,()=>[[],[]])}class wh extends O{constructor(t,n,r,s,o,i,a,l){super(),this.Abn=t,this.FundName=n,this.Usi=r,this.ProductName=s,this.ContributionRestriction=o,this.DateFrom=i,this.DateTo=a,this.IsActive=l}}function _h(){return et("SuperSelection.UI.BackendService.AustralianSuperFundDto",[],wh,()=>[["Abn",q],["FundName",q],["Usi",q],["ProductName",q],["ContributionRestriction",Kr],["DateFrom",Fo("System.DateTimeOffset")],["DateTo",Fo("System.DateTimeOffset")],["IsActive",Qe(Kr)]])}class gh{constructor(t,n){this.accessToken=n,this.baseUrl=`${t}/super-selection/backend`}get GetSmsfChoice(){const t=this;return()=>Hn(t,5,V.Delay(()=>{let n;return V.Bind(zt((n=Pt(new kt(0,[]),Ut(`${t.baseUrl}/v1.0/super-choice/smsf`)),Ht(Rt(`Bearer ${t.accessToken}`),n))),r=>{const s=r;return s.statusCode===200?V.Return(jt(z(Gt(Yf(),new Ft(1,[]))),s.responseText)):V.Return(new d(1,["Failed to retrieve SMSF choice"]))})}))}get BsbLookup(){const t=this;return n=>V.Delay(()=>{let r;return V.Bind(zt((r=Pt(new kt(0,[]),Ut(`${t.baseUrl}/v1.0/bsb-lookup/${n}`)),Ht(Rt(`Bearer ${t.accessToken}`),r))),s=>{const o=s;return o.statusCode===200?V.Return(jt(z(Gt(rh(),new Ft(1,[]))),o.responseText)):V.Return(new d(1,["Failed to lookup BSB"]))})})}get IsRegulatedFundAbn(){const t=this;return n=>V.Delay(()=>{let r;return V.Bind(zt((r=Pt(new kt(0,[]),Ut(`${t.baseUrl}/v1.0/super-choice/smsf/${n}/validate`)),Ht(Rt(`Bearer ${t.accessToken}`),r))),s=>{const o=s;return o.statusCode===200?V.Return(Xe(i=>!i.Result,jt(z(Gt(nc(["Result",Kr]),new Ft(1,[]))),o.responseText))):V.Return(new d(1,["Failed to query ABN"]))})})}get GetOwnFundChoice(){const t=this;return()=>Hn(t,5,V.Delay(()=>{let n;return V.Bind(zt((n=Pt(new kt(0,[]),Ut(`${t.baseUrl}/v1.0/super-choice/byof`)),Ht(Rt(`Bearer ${t.accessToken}`),n))),r=>{const s=r;return s.statusCode===200?V.Return(jt(z(Gt(lh(),new Ft(1,[]))),s.responseText)):V.Return(new d(1,["Failed to retrieve own fund choice"]))})}))}get GetDefaultFundChoice(){const t=this;return()=>Hn(t,5,V.Delay(()=>{let n;return V.Bind(zt((n=Pt(new kt(0,[]),Ut(`${t.baseUrl}/v1.0/super-choice/default`)),Ht(Rt(`Bearer ${t.accessToken}`),n))),r=>{const s=r;return s.statusCode===200?V.Return(jt(z(Gt(dh(),new Ft(1,[]))),s.responseText)):V.Return(new d(1,["Failed to retrieve default fund choice"]))})}))}get GetAustralianFundList(){const t=this;return n=>{const r=n[1];return Hn(t,5,V.Delay(()=>{let s;const o=r==null?"":`&maxRecordCount=${r}`;return V.Bind(zt((s=Pt(new kt(0,[]),Ut(`${t.baseUrl}/v1.0/super-choice/australian-funds-v2?search=${n[0]}${o}`)),Ht(Rt(`Bearer ${t.accessToken}`),s))),i=>{const a=i;return a.statusCode===200?V.Return(jt(z(Gt(hh(),new Ft(1,[]))),a.responseText)):V.Return(new d(1,["Failed to retrieve fund list"]))})}))}}}function Vs(e,t){return new gh(e,t)}function Hn(e,t,n){const r=s=>V.Delay(()=>V.Bind(n,o=>{const i=o;return i.tag===1?s>1?V.Bind(Sa(1e3),()=>V.ReturnFrom(r(s-1))):V.Return(new d(1,[i.fields[0]])):V.Return(new d(0,[i.fields[0]]))}));return r(t)}class bh{constructor(t,n,r){this.OnNext=t,this.OnError=n||(s=>{}),this.OnCompleted=r||(()=>{})}}function yh(e,t){t.Subscribe(new bh(e))}class vh{constructor(){this.delegates=[]}_add(t){this.delegates.push(t)}_remove(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}get Publish(){return Sh(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const s=n===void 0?t:(r=t,n);this.delegates.forEach(o=>{o(r,s)})}}class xh extends vh{}function Sh(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(s,o)=>n.OnNext(o);return e(r),{Dispose(){t(r)}}}}}class Ch{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 xh}Elapsed(){return this._elapsed.Publish}get Enabled(){return this._enabled}set Enabled(t){!this._isDisposed&&this._enabled!==t&&(this._enabled=t,this._enabled?this.AutoReset?this._intervalId=setInterval(()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)},this.Interval):this._timeoutId=setTimeout(()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)},this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}function Ah(e,t){console.error(ve(e),t)}function kh(e,t){let n,r=new Ch(e);r.AutoReset=!1,n=r,yh(t,n.Elapsed()),n.Enabled=!0,n.Start()}function ni(e,t,n){Cn(r=>{try{r(t)}catch(s){e(s)}},n)}function A(){return he()}function It(e,t){return Es(n=>r=>{n(s=>{r(e(s))})},t)}function Za(e){return Bc(e)}function He(e){return $(e)}function it(e,t,n,r){return $(s=>{e(V.Delay(()=>V.Bind(Yc(t(n)),o=>{const i=o;return i.tag===0&&s(r(i.fields[0])),V.Zero()})))})}function at(e){kh(1,t=>{ed(e)})}class Fh extends O{constructor(t,n,r,s,o,i,a,l,u,f,c,p,m){super(),this.FundName=t,this.FundAbn=n,this.FundEsa=r,this.FundAddressLine1=s,this.FundAddressLine2=o,this.FundCity=i,this.FundState=a,this.FundPostcode=l,this.MemberFirstName=u,this.MemberLastName=f,this.BankAccountName=c,this.BankAccountBsb=p,this.BankAccountNumber=m}}function Ls(e,t){const n={detail:t};return new CustomEvent(e,n)}const Nh=Ls("smsf-loaded",{sender:"super-smsf"}),Mh=Ls("smsf-cancelled",{sender:"super-smsf"});function Eh(e){return Ls("smsf-completed",{bankAccountName:e.BankAccountName,bankAccountNumber:e.BankAccountNumber,bankBsb:e.BankAccountBsb,fundAbn:e.FundAbn,fundAddressLine1:e.FundAddressLine1,fundAddressLine2:lr(e.FundAddressLine2),fundCity:e.FundCity,fundEsa:e.FundEsa,fundName:e.FundName,fundPostcode:e.FundPostcode,fundState:e.FundState,memberFirstName:e.MemberFirstName,memberLastName:e.MemberLastName,sender:"super-smsf"})}class Os extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loaded","Cancelled","Completed"]}}function Ds(e){let t;t=e.tag===1?Mh:e.tag===2?Eh(e.fields[0]):Nh,document.dispatchEvent(t)}function $h(e){return He(t=>{Ds(new Os(2,[e]))})}function Th(){return He(e=>{Ds(new Os(0,[]))})}function Bh(){return He(e=>{Ds(new Os(1,[]))})}function Ih(){return he()}function Rs(e){return D("/",e)}function Vh(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Rs(t),n])}function Ja(e,t,n){try{Y(n)}catch(r){e(["Error stopping subscription: "+Rs(t),r])}}function Lh(e,t,n,r){try{return[n,r(t)]}catch(s){e(["Error starting subscription: "+Rs(n),s]);return}}function Oh(e,t){Cn(n=>{Ja(e,n[0],n[1])},t)}function ri(e,t,n,r,s,o){return Cn(i=>{Vh(e,i)},n),Cn(i=>{Ja(e,i[0],i[1])},r),Ms(s,Rc(i=>Lh(e,t,i[0],i[1]),o))}function Dh(){return[he(),kf({Compare:Be}),he()]}function Rh(e,t,n,r,s){return es(e,r)?[Me(e,n),r,s]:[n,Af(e,r),Me([e,t],s)]}function Uh(e){return Mc((t,n)=>Rh(t[0],t[1],n[0],n[1],n[2]),e,Dh())}const Ph=he();function si(e,t){const n=Ff(Es(i=>i[0],e),{Compare:Be}),r=Uh(t),s=r[1],o=r[0];if(n.Equals(s))return[o,he(),e,he()];{const i=Dc(a=>es(a[0],s),e);return[o,i[1],i[0],Oc(a=>!es(a[0],n),r[2])]}}function Hh(e,t,n,r){const s=Be(e,n)|0;if(s===0)throw new Error("The step of a range cannot be zero");const o=s>0;return i=>{const a=Be(i,t)|0;return o&&a<=0||!o&&a>=0?[i,r(i,e)]:void 0}}function zh(e,t,n,r,s){const o=Hh(t,n,r,s);return M(()=>wd(o,e))}function Ka(e,t,n){return zh(e,t,n,0,(r,s)=>r+s)}class Xt extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class jh{constructor(t){this.state=new Xt(0,[Fs(new Array(Yr(t,10)),0,Yr(t,10),null),0])}}function Gh(e){return new jh(e)}function oi(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,s=t.fields[0],o=(r+1)%s.length|0;return o===n?e.state=new Xt(0,[s,n]):e.state=new Xt(1,[s,n,o]),ve(we(r,s))}else return}function Wh(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,s=n.fields[2]|0,o=n.fields[0];yt(o,r,t);const i=(r+1)%o.length|0;i===s?e.state=new Xt(1,[qh(e,s,o),o.length,0]):e.state=new Xt(1,[o,i,s])}else{const r=n.fields[1]|0,s=n.fields[0];yt(s,r,t);const o=(r+1)%s.length|0;e.state=new Xt(1,[s,o,r])}}function qh(e,t,n){return Array.from(M(()=>K(xd(t,n),M(()=>K(Sd(t,n),M(()=>Cd(r=>T(je()),Ka(0,1,n.length))))))))}class Us extends O{constructor(t,n,r,s,o,i,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=s,this.setState=o,this.onError=i,this.termination=a}}function Vn(e,t,n){return new Us(e,t,r=>Ih(),n,z(r=>{const s=L(n)(r);return o=>{s(o)}}),r=>{Ah(r[0],r[1])},[r=>!1,r=>{}])}function Zh(e,t){return new Us(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function Jh(e){return e.init}function Kh(e,t,n,r,s,o,i){const a=L(e)(i.init),l=Nr(t)(L(i.update)),u=Nr(n)(L(i.view)),f=Nr(r)(L(i.setState));return new Us(a,z(l),L(s)(i.subscribe),z(u),z(f),i.onError,o(i.termination))}function Yh(e,t,n){let r;const s=n.init(t),o=s[0],i=n.subscribe(o),a=n.termination,l=Gh(10);let u=!1,f=o,c=Ph,p=!1;const m=g=>{p||(Wh(l,g),u||(u=!0,b(),u=!1))},w=L(e)(m),b=()=>{let g,_=oi(l);for(;!p&&_!=null;){const k=C(_);if(a[0](k))Oh(n.onError,c),a[1](f),p=!0;else{const x=n.update(k,f),Z=x[0],ae=n.subscribe(Z);n.setState(Z,w),ni(Ie=>{n.onError([xn(nn("Error handling the message: %A"))(k),Ie])},w,x[1]),f=Z,c=(g=si(c,ae),ri(n.onError,w,g[0],g[1],g[2],g[3])),_=oi(l)}}};u=!0,n.setState(o,w),ni(g=>{n.onError([xn(nn("Error intitializing:")),g])},w,s[1]),c=(r=si(c,i),ri(n.onError,w,r[0],r[1],r[2],r[3])),b(),u=!1}function Qh(e,t){Yh(z(n=>n),e,t)}function Xh(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var Ya={exports:{}},Qa={};const em=Xh(sl);/**
24
24
  * @license React
25
25
  * use-sync-external-store-shim.production.min.js
26
26
  *
@@ -28,4 +28,4 @@ If you can't use one of these types, please pass an extra decoder.
28
28
  *
29
29
  * This source code is licensed under the MIT license found in the
30
30
  * LICENSE file in the root directory of this source tree.
31
- */var Qt=Dh;function Ph(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Uh=typeof Object.is=="function"?Object.is:Ph,Hh=Qt.useState,zh=Qt.useEffect,jh=Qt.useLayoutEffect,Gh=Qt.useDebugValue;function Wh(e,t){var n=t(),r=Hh({inst:{value:n,getSnapshot:t}}),s=r[0].inst,o=r[1];return jh(function(){s.value=n,s.getSnapshot=t,Er(s)&&o({inst:s})},[e,n,t]),zh(function(){return Er(s)&&o({inst:s}),e(function(){Er(s)&&o({inst:s})})},[e]),Gh(n),n}function Er(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Uh(e,n)}catch{return!0}}function qh(e,t){return t()}var Zh=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?qh:Wh;Ua.useSyncExternalStore=Qt.useSyncExternalStore!==void 0?Qt.useSyncExternalStore:Zh;Pa.exports=Ua;var Jh=Pa.exports;class Kh{constructor(t,n,r){this.arg=n,this.dependencies=r;const s=t(),o=[];this.finalDispatch=void 0;let i;const a=Ih(s)(this.arg);let l=a[0],u=a[1];i=[[l,f=>{const c=this.finalDispatch;c==null?o.push(f):c(f)},!1,o],u],this.state=i[0],this.cmd=i[1],this.subscribe=f=>{let c=!1;const p=Rr(this.state[0]);return Oh(this.arg,Bh((m,w)=>{const b=this.state;this.finalDispatch=w,this.state=[m,b[1],!0,o],m!==b[0]&&f()},Vh((m,w)=>{const b=this.cmd;return this.cmd=A(),[this.state[0],b]},(m,w,b)=>m(w)(this.state[0]),Pr(m=>m),Pr(m=>m),W(m=>m),m=>[w=>m[0](w)?!0:p&&c,w=>{const b=w;Rr(b)?K(b):m[1](w)}],s))),()=>{c=!0}}}}function Zo(e,t,n){return new Kh(e,t,n)}function Yh(e){return e.state}function Qh(e){return e.subscribe}function Xh(e,t,n){return le(e.arg,t)?!le(e.dependencies,n):!0}function $s(e,t,n){const r=en(()=>Zo(e,t,n)),s=r[0];Xh(s,t,n)&&r[1](Zo(e,t,n));const o=Jh.useSyncExternalStore(Qh(s),()=>Yh(s)),i=o[2],a=o[3],l=o[1];return Nn(()=>{if(i&&a.length>0){let u=ne(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const f=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{K(u)}il(a)}},[i,a]),[o[0],l]}function Se(e,t){return ea(t)?new d(1,[`${e} is required`]):new d(0,[t])}function lt(e,t,n){return n.length>=t?new d(0,[n]):new d(1,[`${e} requires a minimum length of ${t} characters`])}function Bs(e,t,n){return n.length<=t?new d(0,[n]):new d(1,[`${e} exceeds maximum length of ${t} characters`])}function mr(e){return e.trim()}function Is(e){return ps(e,"\\s+","")}function an(e,t,n){return $l(Ji(t),n)?new d(0,[n]):new d(1,[`${e} is invalid`])}function em(e){return ps(e,"[^0-9]","")}class Ze extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class Vs extends H{constructor(t,n,r,s){super(),this.Value=t,this.IsTouched=n,this.Validator=r,this.ErrorMessage=s}}class ye extends H{constructor(t,n,r){super(),this.Field=t,this.OnBlur=n,this.OnChange=r}}function xe(e,t){return new Vs(or(t,""),!1,e,void 0)}function Ha(e,t){let n;return new Vs(t,e.IsTouched,e.Validator,(n=e.Validator(t),n.tag===1&&e.IsTouched?n.fields[0]:void 0))}function ue(e){let t;return new Vs(e.Value,!0,e.Validator,(t=e.Validator(e.Value),t.tag===1?t.fields[0]:void 0))}function pr(e){const t=e.target,n=em(t.value);return t.value=n,n}let tm=class extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundName"]}};function za(e){let t;const n=Se("Fund name",mr(e));return t=n.tag===1?new d(1,[n.fields[0]]):lt("Fund name",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new tm(t.fields[0])])}function ja(e){return xe(za,e)}function nm(e){return e.fields[0]}class rm extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundAbn"]}}function wr(e){const t=re(Pe(s=>~~s.charCodeAt(0)-48,e.split(""))),n=S([10,1,3,5,7,9,11,13,15,17,19]),r=la(s=>s>=0?s<=9:!1,t)?new d(0,[void 0]):new d(1,["Enter a valid fund ABN (digits only)"]);if(r.tag===1)return new d(1,[r.fields[0]]);{const s=Ft(t)===Ft(n)?new d(0,[void 0]):new d(1,["Enter a valid fund ABN"]);if(s.tag===1)return new d(1,[s.fields[0]]);{const o=gc((i,a,l)=>i+a*l,0,vc((i,a)=>i===0?a-1|0:a|0,t),n)%89===0?new d(0,[void 0]):new d(1,["Enter a valid fund ABN"]);return o.tag===1?new d(1,[o.fields[0]]):new d(0,[new rm(e)])}}}function sm(e){return e.fields[0]}class om extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundEsa"]}}function Ga(e){let t;const n=Se("Fund ESA",mr(e));return t=n.tag===1?new d(1,[n.fields[0]]):lt("Fund ESA",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new om(t.fields[0])])}function Wa(e){return xe(Ga,e)}function im(e){return e.fields[0]}class am extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AddressLine1"]}}function qa(e){let t;const n=Se("Address Line 1",e);return t=n.tag===1?new d(1,[n.fields[0]]):lt("Address Line 1",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new am(t.fields[0])])}function Za(e){return xe(qa,e)}function um(e){return e.fields[0]}class lm extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AddressLine2"]}}function Ja(e){if(ea(e))return new d(0,[void 0]);{const t=lt("Address Line 2",2,e);return t.tag===1?new d(1,[t.fields[0]]):new d(0,[new lm(t.fields[0])])}}function Ka(e){return xe(Ja,e)}function cm(e){if(e!=null)return e.fields[0]}class dm extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["City"]}}function Ya(e){const t=Se("City",e);return t.tag===1?new d(1,[t.fields[0]]):new d(0,[new dm(t.fields[0])])}function Qa(e){return xe(Ya,e)}function fm(e){return e.fields[0]}class ft extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NSW","QLD","ACT","VIC","TAS","WA","SA","NT"]}}function Xa(e){const t=Se("State",e);if(t.tag===1)return new d(1,[t.fields[0]]);switch(t.fields[0]){case"NSW":return new d(0,[new ft(0,[])]);case"QLD":return new d(0,[new ft(1,[])]);case"ACT":return new d(0,[new ft(2,[])]);case"VIC":return new d(0,[new ft(3,[])]);case"TAS":return new d(0,[new ft(4,[])]);case"WA":return new d(0,[new ft(5,[])]);case"SA":return new d(0,[new ft(6,[])]);case"NT":return new d(0,[new ft(7,[])]);default:return new d(1,["Select a state'"])}}function eu(e){return xe(Xa,e)}function hm(e){switch(e.tag){case 1:return"QLD";case 2:return"ACT";case 3:return"VIC";case 4:return"TAS";case 5:return"WA";case 6:return"SA";case 7:return"NT";default:return"NSW"}}class mm extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Postcode"]}}function tu(e){let t,n;const r=Se("Postcode",Is(e));return n=r.tag===1?new d(1,[r.fields[0]]):lt("Postcode",4,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):Bs("Postcode",4,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new mm(t.fields[0])])}function nu(e){return xe(tu,e)}function pm(e){return e.fields[0]}let wm=class extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberFirstName"]}};const _m="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function ru(e){let t;const n=Se("Member given name(s)",e);return t=n.tag===1?new d(1,[n.fields[0]]):an("Member given name(s)",_m,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new wm(t.fields[0])])}function su(e){return xe(ru,e)}function gm(e){return e.fields[0]}let bm=class extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberLastName"]}};const ym="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function ou(e){let t;const n=Se("Last Name",e);return t=n.tag===1?new d(1,[n.fields[0]]):an("Last Name",ym,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new bm(t.fields[0])])}function iu(e){return xe(ou,e)}function vm(e){return e.fields[0]}class Sm extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountName"]}}function au(e){let t;const n=Se("Account name",mr(e));return t=n.tag===1?new d(1,[n.fields[0]]):lt("Account name",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Sm(t.fields[0])])}function uu(e){return xe(au,e)}function xm(e){return e.fields[0]}class Cm extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountBsb"]}}function _r(e){let t,n,r;const s=Se("BSB",Is(e));return r=s.tag===1?new d(1,[s.fields[0]]):lt("BSB",6,s.fields[0]),n=r.tag===1?new d(1,[r.fields[0]]):Bs("BSB",6,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):an("BSB","^\\d{6}$",n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Cm(t.fields[0])])}function km(e){return e.fields[0]}class Am extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountNumber"]}}function lu(e){let t,n,r;const s=Se("Account Number",Is(e));return r=s.tag===1?new d(1,[s.fields[0]]):lt("Account Number",2,s.fields[0]),n=r.tag===1?new d(1,[r.fields[0]]):Bs("Account Number",11,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):an("Account Number","^\\d{2,11}$",n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Am(t.fields[0])])}function cu(e){return xe(lu,e)}function Fm(e){return e.fields[0]}class Nm extends H{constructor(t,n,r,s,o){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.AddressState=s,this.Postcode=o}}class Mm extends H{constructor(t,n,r,s,o,i,a,l,u,f,c,p,m){super(),this.FundName=t,this.FundAbn=n,this.FundEsa=r,this.FundAddressLine1=s,this.FundAddressLine2=o,this.FundCity=i,this.FundState=a,this.FundPostcode=l,this.MemberFirstName=u,this.MemberLastName=f,this.BankAccountName=c,this.BankAccountBsb=p,this.BankAccountNumber=m}}const Em=h("svg",C(S([["fill","#facc15"],["className","h-5 w-5"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=T(h("path",C(S([["fill-rule","evenodd"],(e="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",["d",e]),["clipRule","evenodd"]]))));return["children",v.Children.toArray(Array.from(t))]})()]))),Tm=h("div",C(S([["className","bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"],(()=>{let e;const t=[h("div",C(S([["className","flex"],(e=[h("div",{className:"flex-shrink-0",children:v.Children.toArray([Em])}),h("div",{className:"ml-3 text-sm text-yellow-700 leading-5",children:"Make sure your Self-managed super fund (SMSF) is a registered fund before completing this step."})],["children",v.Children.toArray(Array.from(e))])])))];return["children",v.Children.toArray(Array.from(t))]})()])));function ct(e){if(e==null)return ze();{const t=e;return h("div",{className:R(" ",["mt-2 text-sm text-red-600"]),children:t})}}function gr(e){return re(E(()=>ee(B("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),E(()=>e?B("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):he()))))}function $m(e){let t,n;return h("div",C(S([["className","mt-3"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundName",children:"Fund name"}),h("div",C(S([["className","mt-1"],(n=[h("input",{type:"text",className:R(" ",gr(e.Field.ErrorMessage!=null)),id:"fundName",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),ct(e.Field.ErrorMessage)],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function Bm(e){let t,n;return h("div",C(S([["className","mt-3"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundEsa",children:"Electronic service address alias (ESA)"}),h("div",C(S([["className","mt-1"],(n=[h("input",{id:"fundEsa",type:"text",value:e.Field.Value,className:R(" ",gr(e.Field.ErrorMessage!=null)),onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),ct(e.Field.ErrorMessage)],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function Im(e,t){return h("input",{placeholder:"Address line 1",type:"text",className:R(" ",re(E(()=>ee(B("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none rounded-t-md shadow-none"),E(()=>e&&t.Field.ErrorMessage!=null?B("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):he()))))),required:!0,minLength:2,id:"addressLine1",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function Vm(e,t){return h("input",{placeholder:"Address line 2 (optional)",type:"text",className:R(" ",re(E(()=>ee(B("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none shadow-none"),E(()=>e&&t.Field.ErrorMessage!=null?B("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):he()))))),id:"addressLine2",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function Lm(e,t){return h("input",{placeholder:"City/suburb",type:"text",className:R(" ",re(E(()=>ee(B("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none shadow-none"),E(()=>e&&t.Field.ErrorMessage!=null?B("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):he()))))),required:!0,id:"city",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function Om(e,t){let n;return h("div",C(S([["className","flex-1 min-w-0"],(n=[h("input",{placeholder:"Postcode",type:"text",required:!0,className:R(" ",re(E(()=>ee(B("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none rounded-bl-md shadow-none"),E(()=>e&&t.Field.ErrorMessage!=null?B("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):he()))))),minLength:4,maxLength:4,pattern:"[0-9]{4}",inputMode:"numeric",id:"postcode",value:t.Field.Value,onKeyUp:r=>{t.OnChange(pr(r))},onBlur:t.OnBlur,onChange:r=>{t.OnChange(r.target.value)}})],["children",v.Children.toArray(Array.from(n))])])))}function Rm(e,t){let n;const r=h("option",{disabled:!0,value:"",children:"State",selected:t.Field.Value===""}),s=vs(o=>h("option",{value:o,children:o,selected:t.Field.Value===o}),S(["NSW","QLD","ACT","VIC","TAS","WA","SA","NT"]));return h("div",C(S([["className","w-1/2 flex-1 min-w-0"],(n=[h("select",{className:R(" ",re(E(()=>ee(B("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none rounded-br-md shadow-none text-gray-500"),E(()=>e&&t.Field.ErrorMessage!=null?B("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):he()))))),id:"state",required:!0,children:v.Children.toArray(Array.from(Ne(r,s))),onBlur:t.OnBlur,onChange:o=>{t.OnChange(o.target.value)}})],["children",v.Children.toArray(Array.from(n))])])))}function Dm(e){let t,n,r,s;const o=a=>a.IsTouched;s=la(a=>a,S([o(e.AddressLine1.Field),o(e.AddressLine2.Field),o(e.City.Field),o(e.AddressState.Field),o(e.Postcode.Field)]));const i=Sc(a=>a,S([e.AddressLine1.Field.ErrorMessage,e.AddressLine2.Field.ErrorMessage,e.City.Field.ErrorMessage,e.AddressState.Field.ErrorMessage,e.Postcode.Field.ErrorMessage]));return h("div",C(S([["className","mt-3"],(t=[h("label",{className:"text-sm font-medium text-gray-700",children:"Fund address"}),h("div",C(S([["className","mt-1 rounded-md shadow-sm -space-y-px"],(n=[Im(s,e.AddressLine1),Vm(s,e.AddressLine2),Lm(s,e.City),h("div",C(S([["className","flex -space-x-px"],(r=[Om(s,e.Postcode),Rm(s,e.AddressState)],["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(n))])]))),ct(s?i:void 0)],["children",v.Children.toArray(Array.from(t))])])))}function Pm(e){let t,n;return h("div",C(S([["className","mt-3 w-1/2"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberGivenNames",children:"Given name(s)"}),h("div",C(S([["className","mt-1"],(n=[h("input",{type:"text",className:R(" ",gr(e.Field.ErrorMessage!=null)),id:"memberGivenNames",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),ct(e.Field.ErrorMessage)],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function Um(e){let t,n;return h("div",C(S([["className","mt-3 w-1/2"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberLastNames",children:"Last name"}),h("div",C(S([["className","mt-1"],(n=[h("input",{type:"text",className:R(" ",gr(e.Field.ErrorMessage!=null)),id:"memberLastName",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),ct(e.Field.ErrorMessage)],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function Hm(e){let t,n;const r=e.Field.IsTouched&&e.Field.ErrorMessage!=null;return h("div",C(S([["className","mt-3"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"bankAccountName",children:"Account name"}),h("div",C(S([["className","mt-1"],(n=[h("input",{id:"bankAccountName",type:"text",value:e.Field.Value,className:R(" ",re(E(()=>ee(B("peer relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),E(()=>r?B("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):he()))))),onBlur:e.OnBlur,onChange:s=>{e.OnChange(s.target.value)}}),ct(e.Field.ErrorMessage)],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function zm(e){let t,n;const r=e.Field.IsTouched&&e.Field.ErrorMessage!=null;return h("div",C(S([["className","mt-3"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"bankAccountNumber",children:"Account number"}),h("div",C(S([["className","mt-1"],(n=[h("input",{id:"bankAccountNumber",type:"text",value:e.Field.Value,inputMode:"numeric",className:R(" ",re(E(()=>ee(B("peer relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),E(()=>r?B("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):he()))))),onKeyUp:s=>{e.OnChange(pr(s))},onBlur:e.OnBlur,onChange:s=>{e.OnChange(s.target.value)}}),ct(e.Field.ErrorMessage)],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function jm(e,t){let n;return h("div",C(S([["className","mb-4"],(n=[h("div",C(re(E(()=>ee(e?he():B(["onClick",t]),E(()=>{let r;return B((r=[h("button",{className:R(" ",["px-4 py-2 text-base inline-flex items-center justify-center border font-medium","rounded-md shadow-sm pointer-events-auto border-transparent text-white bg-primary-base w-full","disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus","hover:bg-primary-hover"]),"data-testid":"continue-button",disabled:!e,children:"Continue",onClick:t})],["children",v.Children.toArray(Array.from(r))]))}))))))],["children",v.Children.toArray(Array.from(n))])])))}function Gm(e){let t,n,r;return h("div",C(T((t=[h("a",C(S([["href","/"],(n=[h("div",C(T((r=[h("button",{className:R(" ",["px-4 py-2 text-base inline-flex items-center justify-center border font-medium rounded-md shadow-sm pointer-events-auto border-gray-300 text-gray-700 bg-white w-full","disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus","hover:bg-gray-50"]),"data-testid":"back-button",children:"Back",onClick:e})],["children",v.Children.toArray(Array.from(r))]))))],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))]))))}let Jo=class extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}},kn=class extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFundAbn","RegulatedFundCheck"]}},Je=class extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotYetStarted","Pending","Valid","Invalid"]}},Te=class extends H{constructor(t,n,r,s){super(),this.RawValue=t,this.IsTouched=n,this.Value=r,this.ErrorMessage=s}};function du(e,t){if(e==null)return[new Te("",!1,new Je(0,[]),void 0),A()];{const n=e,r=wr(n);return r.tag===1?[new Te(n,!1,new Je(3,[]),r.fields[0]),A()]:[new Te(n,!1,new Je(1,[]),void 0),T(s=>{s(new kn(1,[new Ze(0,[void 0])]))})]}}function Wm(e,t){const n=wr(e.RawValue);return n.tag===1?[new Te(e.RawValue,e.IsTouched,new Je(3,[]),n.fields[0]),A()]:t?[new Te(e.RawValue,e.IsTouched,new Je(3,[]),"The supplied ABN is for a regulated fund"),A()]:[new Te(e.RawValue,e.IsTouched,new Je(2,[n.fields[0]]),e.ErrorMessage),A()]}function fu(e){const t=wr(e.RawValue);return t.tag===1?[new Te(e.RawValue,!0,e.Value,t.fields[0]),A()]:[new Te(e.RawValue,!0,e.Value,e.ErrorMessage),A()]}function qm(e,t,n){if(t.tag===1)return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new Te(n.RawValue,n.IsTouched,new Je(3,[]),"Something went wrong when validating your fund ABN"),A()]:Wm(n,t.fields[0].fields[0].fields[0]):[n,Ct(r=>{kt(r)},e,n.RawValue,r=>new kn(1,[new Ze(1,[r])]))];if(t.fields[0].tag===1)return fu(n);{const r=wr(t.fields[0].fields[0]);return r.tag===1?n.IsTouched?[new Te(t.fields[0].fields[0],n.IsTouched,new Je(0,[]),r.fields[0]),A()]:[new Te(t.fields[0].fields[0],n.IsTouched,new Je(0,[]),void 0),A()]:t.fields[0].fields[0]===n.RawValue?[n,A()]:[new Te(t.fields[0].fields[0],n.IsTouched,new Je(1,[]),void 0),T(s=>{s(new kn(1,[new Ze(0,[void 0])]))})]}}function Zm(e){let t,n;const r=e.dispatch,s=e.state,o=l=>{r(new kn(0,[new Jo(0,[l])]))},i=s.IsTouched&&s.ErrorMessage!=null,a=[h("div",C(S([["className","mt-3"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundAbn",children:"Fund ABN"}),h("div",C(S([["className","mt-1"],(n=[h("input",{id:"fundAbn",type:"text",value:s.RawValue,inputMode:"numeric",className:R(" ",re(E(()=>ee(B("peer relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),E(()=>i?B("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):he()))))),onKeyUp:l=>{o(pr(l))},onBlur:l=>{r(new kn(0,[new Jo(1,[])]))},onChange:l=>{o(l.target.value)}}),ct(s.ErrorMessage)],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))];return h(ve,{},...a)}class Jm extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankName"]}}function Km(e){return e.fields[0]}function Ym(e){return new Jm(`${e.Bank} - ${e.Branch}`)}let Ko=class extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}},An=class extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateBankAccountBsb","BsbLookup"]}};class st extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotYetStarted","Pending","Valid","Invalid"]}}let Ke=class extends H{constructor(t,n,r,s){super(),this.RawValue=t,this.IsTouched=n,this.Value=r,this.ErrorMessage=s}};function hu(e,t){if(e==null)return[new Ke("",!1,new st(0,[]),void 0),A()];{const n=e,r=_r(n);return r.tag===1?[new Ke(n,!1,new st(3,[]),r.fields[0]),A()]:[new Ke(n,!1,new st(1,[]),void 0),T(s=>{s(new An(1,[new Ze(0,[void 0])]))})]}}function Yo(e){return new Ke(e.RawValue,e.IsTouched,new st(3,[]),"Unable to identify the bank using the provided BSB number")}function Qm(e,t){let n;const r=_r(e.RawValue);return n=r.tag===1?[new st(3,[]),r.fields[0]]:[new st(2,[[r.fields[0],Ym(t)]]),void 0],new Ke(e.RawValue,e.IsTouched,n[0],n[1])}function mu(e){const t=_r(e.RawValue);return t.tag===1?[new Ke(e.RawValue,!0,e.Value,t.fields[0]),A()]:[new Ke(e.RawValue,!0,e.Value,e.ErrorMessage),A()]}function Xm(e,t,n){if(t.tag===1)if(t.fields[0].tag===1){if(t.fields[0].fields[0].tag===1)return[Yo(n),A()];{const r=t.fields[0].fields[0].fields[0].BankDetails;return r!=null?[Qm(n,r),A()]:[Yo(n),A()]}}else return[n,Ct(r=>{kt(r)},e,n.RawValue,r=>new An(1,[new Ze(1,[r])]))];else{if(t.fields[0].tag===1)return mu(n);{const r=_r(t.fields[0].fields[0]);return r.tag===1?n.IsTouched?[new Ke(t.fields[0].fields[0],n.IsTouched,new st(0,[]),r.fields[0]),A()]:[new Ke(t.fields[0].fields[0],n.IsTouched,new st(0,[]),void 0),A()]:t.fields[0].fields[0]===n.RawValue?[n,A()]:[new Ke(t.fields[0].fields[0],n.IsTouched,new st(1,[]),void 0),T(s=>{s(new An(1,[new Ze(0,[void 0])]))})]}}}function e0(e){let t;return h("div",C(S([["className","mt-3"],(t=[h("label",{className:"text-sm font-medium text-gray-700",children:"Bank name",htmlFor:"bankName"}),h("div",{id:"bankName",className:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-sm",children:Km(e),"data-testid":"bank-name"})],["children",v.Children.toArray(Array.from(t))])])))}function t0(e){const t=e.dispatch,n=e.state,r=i=>{t(new An(0,[new Ko(0,[i])]))},s=n.IsTouched&&n.ErrorMessage!=null,o=re(E(()=>{let i,a;return ee(B(h("div",C(S([["className","mt-3"],(i=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"bankAccountBsb",children:"BSB"}),h("div",C(S([["className","mt-1"],(a=[h("input",{id:"bankAccountBsb",type:"text",value:n.RawValue,inputMode:"numeric",className:R(" ",re(E(()=>ee(B("peer relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),E(()=>s?B("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):he()))))),onKeyUp:l=>{r(pr(l))},onBlur:l=>{t(new An(0,[new Ko(1,[])]))},onChange:l=>{r(l.target.value)}}),ct(n.ErrorMessage)],["children",v.Children.toArray(Array.from(a))])])))],["children",v.Children.toArray(Array.from(i))])])))),E(()=>{const l=n.Value;switch(l.tag){case 2:return B(e0(l.fields[0][1]));default:return B(ze())}}))}));return h(ve,{},...o)}let Qo=class extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}},O=class extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFundName","UpdateFundAbn","UpdateFundEsa","UpdateAddressLine1","UpdateAddressLine2","UpdateCity","UpdateAddressState","UpdatePostcode","UpdateMemberFirstName","UpdateMemberLastName","UpdateBankAccountName","UpdateBankAccountBsb","UpdateBankAccountNumber","Submit","Cancel"]}},ae=class extends H{constructor(t,n,r,s,o,i,a,l,u,f){super(),this.FundName=t,this.FundAbn=n,this.FundEsa=r,this.FundAddress=s,this.MemberFirstName=o,this.MemberLastName=i,this.BankAccountName=a,this.BankAccountBsb=l,this.BankAccountNumber=u,this.BankName=f}};class ht extends H{constructor(t,n,r,s,o){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.AddressState=s,this.Postcode=o}}const n0=(()=>{let e;const t=du(void 0);e=[t[0],Tt(s=>new O(1,[s]),t[1])];let n;const r=hu(void 0);return n=[r[0],Tt(s=>new O(11,[s]),r[1])],[new ae(ja(void 0),e[0],Wa(void 0),new ht(Za(void 0),Ka(void 0),Qa(void 0),eu(void 0),nu(void 0)),su(void 0),iu(void 0),uu(void 0),n[0],cu(void 0),void 0),Oa(S([e[1],n[1]]))]})();function r0(e){let t;const n=du(e.Abn);t=[n[0],Tt(o=>new O(1,[o]),n[1])];let r;const s=hu(e.Bsb);return r=[s[0],Tt(o=>new O(11,[o]),s[1])],[new ae(ja(e.FundName),t[0],Wa(e.ElectronicServiceAddress),new ht(Za(e.FundAddress.AddressLine1),Ka(e.FundAddress.AddressLine2),Qa(e.FundAddress.City),eu(e.FundAddress.State),nu(e.FundAddress.Postcode)),su(e.MemberFirstName),iu(e.MemberFamilyName),uu(e.BankAccountName),r[0],cu(e.BankAccountNumber),void 0),Oa(S([t[1],r[1]]))]}function s0(e){let t;return or((t=e,t==null?void 0:r0(t)),n0)}function pu(e){let t;const n=za(e.FundName.Value);if(t=n.tag===1?new d(1,[T(n.fields[0])]):new d(0,[n.fields[0]]),t.tag===1)return new d(1,[t.fields[0]]);{let r;const s=e.FundAbn.Value;if(r=s.tag===2?new d(0,[s.fields[0]]):new d(1,[T("Fund ABN is invalid")]),r.tag===1)return new d(1,[r.fields[0]]);{let o;const i=Ga(e.FundEsa.Value);if(o=i.tag===1?new d(1,[T(i.fields[0])]):new d(0,[i.fields[0]]),o.tag===1)return new d(1,[o.fields[0]]);{let a;const l=qa(e.FundAddress.AddressLine1.Value);if(a=l.tag===1?new d(1,[T(l.fields[0])]):new d(0,[l.fields[0]]),a.tag===1)return new d(1,[a.fields[0]]);{let u;const f=Ja(e.FundAddress.AddressLine2.Value);if(u=f.tag===1?new d(1,[T(f.fields[0])]):new d(0,[f.fields[0]]),u.tag===1)return new d(1,[u.fields[0]]);{let c;const p=Ya(e.FundAddress.City.Value);if(c=p.tag===1?new d(1,[T(p.fields[0])]):new d(0,[p.fields[0]]),c.tag===1)return new d(1,[c.fields[0]]);{let m;const w=Xa(e.FundAddress.AddressState.Value);if(m=w.tag===1?new d(1,[T(w.fields[0])]):new d(0,[w.fields[0]]),m.tag===1)return new d(1,[m.fields[0]]);{let b;const g=tu(e.FundAddress.Postcode.Value);if(b=g.tag===1?new d(1,[T(g.fields[0])]):new d(0,[g.fields[0]]),b.tag===1)return new d(1,[b.fields[0]]);{let _;const k=ru(e.MemberFirstName.Value);if(_=k.tag===1?new d(1,[T(k.fields[0])]):new d(0,[k.fields[0]]),_.tag===1)return new d(1,[_.fields[0]]);{let y;const q=ou(e.MemberLastName.Value);if(y=q.tag===1?new d(1,[T(q.fields[0])]):new d(0,[q.fields[0]]),y.tag===1)return new d(1,[y.fields[0]]);{let ie;const Ie=au(e.BankAccountName.Value);if(ie=Ie.tag===1?new d(1,[T(Ie.fields[0])]):new d(0,[Ie.fields[0]]),ie.tag===1)return new d(1,[ie.fields[0]]);{let gt;const bt=e.BankAccountBsb.Value;if(gt=bt.tag===2?new d(0,[bt.fields[0][0]]):new d(1,[T("Bank BSB is invalid")]),gt.tag===1)return new d(1,[gt.fields[0]]);{let dt;const ge=lu(e.BankAccountNumber.Value);return dt=ge.tag===1?new d(1,[T(ge.fields[0])]):new d(0,[ge.fields[0]]),dt.tag===1?new d(1,[dt.fields[0]]):new d(0,[new Mm(t.fields[0],r.fields[0],o.fields[0],a.fields[0],u.fields[0],c.fields[0],m.fields[0],b.fields[0],_.fields[0],y.fields[0],ie.fields[0],gt.fields[0],dt.fields[0])])}}}}}}}}}}}}}function o0(e){return new ae(ue(e.FundName),fu(e.FundAbn)[0],ue(e.FundEsa),new ht(ue(e.FundAddress.AddressLine1),ue(e.FundAddress.AddressLine2),ue(e.FundAddress.City),ue(e.FundAddress.AddressState),ue(e.FundAddress.Postcode)),ue(e.MemberFirstName),ue(e.MemberLastName),ue(e.BankAccountName),mu(e.BankAccountBsb)[0],ue(e.BankAccountNumber),e.BankName)}function Oe(e,t,n){return n(e.tag===1?ue(t):Ha(t,e.fields[0]))}function i0(e,t,n){switch(t.tag){case 1:{const r=qm(e.IsRegulatedFundAbn,t.fields[0],n.FundAbn);return[new ae(n.FundName,r[0],n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName),Tt(s=>new O(1,[s]),r[1])]}case 2:return[Oe(t.fields[0],n.FundEsa,r=>new ae(n.FundName,n.FundAbn,r,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),A()];case 3:return[Oe(t.fields[0],n.FundAddress.AddressLine1,r=>{let s;return new ae(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new ht(r,s.AddressLine2,s.City,s.AddressState,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),A()];case 4:return[Oe(t.fields[0],n.FundAddress.AddressLine2,r=>{let s;return new ae(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new ht(s.AddressLine1,r,s.City,s.AddressState,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),A()];case 5:return[Oe(t.fields[0],n.FundAddress.City,r=>{let s;return new ae(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new ht(s.AddressLine1,s.AddressLine2,r,s.AddressState,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),A()];case 6:return[Oe(t.fields[0],n.FundAddress.AddressState,r=>{let s;return new ae(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new ht(s.AddressLine1,s.AddressLine2,s.City,r,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),A()];case 7:return[Oe(t.fields[0],n.FundAddress.Postcode,r=>{let s;return new ae(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new ht(s.AddressLine1,s.AddressLine2,s.City,s.AddressState,r)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),A()];case 8:return[Oe(t.fields[0],n.MemberFirstName,r=>new ae(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,r,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),A()];case 9:return[Oe(t.fields[0],n.MemberLastName,r=>new ae(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,r,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),A()];case 10:return[Oe(t.fields[0],n.BankAccountName,r=>new ae(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,r,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),A()];case 11:{const r=Xm(e.BsbLookup,t.fields[0],n.BankAccountBsb);return[new ae(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,r[0],n.BankAccountNumber,n.BankName),Tt(s=>new O(11,[s]),r[1])]}case 12:return[Oe(t.fields[0],n.BankAccountNumber,r=>new ae(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,r,n.BankName)),A()];case 13:{const r=pu(n);if(r.tag===1)return[o0(n),A()];{const s=r.fields[0];return[n,wh(new fh(nm(s.FundName),sm(s.FundAbn),im(s.FundEsa),um(s.FundAddressLine1),cm(s.FundAddressLine2),fm(s.FundCity),hm(s.FundState),pm(s.FundPostcode),gm(s.MemberFirstName),vm(s.MemberLastName),xm(s.BankAccountName),km(s.BankAccountBsb),Fm(s.BankAccountNumber)))]}}case 14:return[n,gh()];default:return[Oe(t.fields[0],n.FundName,r=>new ae(r,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),A()]}}function a0(e){let t,n,r,s,o,i,a;const l=e.smsfChoice,u=e.backendService;let f;const c=s0(l);f=$s(()=>Ts(()=>c,(y,q)=>i0(u,y,q),(y,q)=>{}),void 0,void 0);const p=f[0],m=f[1],w=(y,q)=>{m(y(new Qo(1,[])))},b=(y,q)=>{m(y(new Qo(0,[q])))};let g;g=pu(p).tag!==1;const k=T(h("form",C(S([["id","form"],["novalidate",""],(t=[h("div",C(S([["className","p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560"],(n=[h("p",{className:"sm:text-lg font-bold",children:"Fund details"}),Tm,h("div",C(T((r=[(s=S([$m(new ye(p.FundName,V(w)(y=>new O(0,[y])),V(b)(y=>new O(0,[y])))),h(Zm,{state:p.FundAbn,dispatch:y=>{m(new O(1,[y]))}}),Bm(new ye(p.FundEsa,V(w)(y=>new O(2,[y])),V(b)(y=>new O(2,[y])))),Dm(new Nm(new ye(p.FundAddress.AddressLine1,V(w)(y=>new O(3,[y])),V(b)(y=>new O(3,[y]))),new ye(p.FundAddress.AddressLine2,V(w)(y=>new O(4,[y])),V(b)(y=>new O(4,[y]))),new ye(p.FundAddress.City,V(w)(y=>new O(5,[y])),V(b)(y=>new O(5,[y]))),new ye(p.FundAddress.AddressState,V(w)(y=>new O(6,[y])),V(b)(y=>new O(6,[y]))),new ye(p.FundAddress.Postcode,V(w)(y=>new O(7,[y])),V(b)(y=>new O(7,[y]))))),h("div",C(S([["className","flex space-x-4"],(o=[Pm(new ye(p.MemberFirstName,V(w)(y=>new O(8,[y])),V(b)(y=>new O(8,[y])))),Um(new ye(p.MemberLastName,V(w)(y=>new O(9,[y])),V(b)(y=>new O(9,[y]))))],["children",v.Children.toArray(Array.from(o))])]))),h("h3",{className:"text-lg font-bold mt-6",children:"Fund bank details"}),Hm(new ye(p.BankAccountName,V(w)(y=>new O(10,[y])),V(b)(y=>new O(10,[y])))),h(t0,{state:p.BankAccountBsb,dispatch:y=>{m(new O(11,[y]))}}),zm(new ye(p.BankAccountNumber,V(w)(y=>new O(12,[y])),V(b)(y=>new O(12,[y]))))]),h("div",{children:v.Children.toArray(Array.from(s))}))],["children",v.Children.toArray(Array.from(r))]))))],["children",v.Children.toArray(Array.from(n))])]))),h("div",C(S([["className","flex justify-center mt-8"],(i=[h("div",C(S([["className","sm:max-w-320 w-full"],(a=[jm(g,y=>{y.preventDefault(),m(new O(13,[]))}),Gm(y=>{y.preventDefault(),m(new O(14,[]))})],["children",v.Children.toArray(Array.from(a))])])))],["children",v.Children.toArray(Array.from(i))])])))],["children",v.Children.toArray(Array.from(t))])]))));return h("div",{children:v.Children.toArray(Array.from(k))})}const u0=h("svg",C(S([["fill","none"],["height",47],["viewBox","0 0 48 47"],["width",48],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e,t,n,r;const s=S([h("rect",{width:48,height:47,rx:8,fill:"#FEE2E2"}),h("g",C(S([["clipPath","url(#clip0_153_10600)"],(e=S([h("path",{d:"M24 15V27",stroke:"#DC2626",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),h("path",C(S([(t="M24 34C24.8284 34 25.5 33.3284 25.5 32.5C25.5 31.6716 24.8284 31 24 31C23.1716 31 22.5 31.6716 22.5 32.5C22.5 33.3284 23.1716 34 24 34Z",["d",t]),["fill","#DC2626"]]))),h("path",{d:"M30.213 9H17.787L9 17.787V30.213L17.787 39H30.213L39 30.213V17.787L30.213 9Z",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]),["children",v.Children.toArray(Array.from(e))])]))),(n=T(h("clipPath",C(S([["id","clip0_153_10600"],(r=T(h("rect",{width:32,height:32,fill:"white",transform:"translate(8,8)"})),["children",v.Children.toArray(Array.from(r))])])))),h("defs",{children:v.Children.toArray(Array.from(n))}))]);return["children",v.Children.toArray(Array.from(s))]})()])));function l0(e){return h("h1",{className:"mt-4 mb-4 sm:mb-8 text-2xl sm:text-3xl font-semibold text-gray-900",children:e})}function c0(e){let t,n,r,s;return h("div",C(S([(t="w-full h-full px-8 py-20 bg-white rounded border border-zinc-200 flex-col justify-start items-center gap-10 inline-flex",["className",t]),(n=[u0,l0("Something went wrong"),h("div",C(S([["className","justify-start items-center"],(r=[h("p",C(S([(s="text-center text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4 mb-4",["className",s]),["children",e]]))),h("p",{className:"text-center text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 mb-8",children:"Please try again later."})],["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(n))])])))}function br(e,t){let n;return h("div",C(S([["className",R(" ",["animate-pulse w-full relative",e,t])],(n=[h("div",{className:R(" ",["w-full left-0 top-0 absolute bg-gray-200 rounded",e])})],["children",v.Children.toArray(Array.from(n))])])))}const d0=br("h-9","max-w-96"),Xo=br("h-6","max-w-96"),f0=br("h-80","max-w-96"),h0=br("h-10","max-w-48"),m0=(()=>{let e,t,n;const r=[h("div",C(S([(e="w-full h-full px-8 py-20 bg-white rounded border border-zinc-200 flex-col justify-start items-center gap-10 inline-flex",["className",e]),(t=[h("div",C(S([["className","max-w-96 w-full flex-col justify-start items-center gap-6 flex"],(n=[d0,h("div",{className:"self-stretch h-14 flex-col justify-start items-center gap-2 flex",children:v.Children.toArray([Xo,Xo])})],["children",v.Children.toArray(Array.from(n))])]))),f0,h0],["children",v.Children.toArray(Array.from(t))])])))];return h(ve,{},...r)})();function Ls(){return(Ls=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 p0=["context","children"];function w0(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,s){if(r==null)return{};var o,i,a={},l=Object.keys(r);for(i=0;i<l.length;i++)s.indexOf(o=l[i])>=0||(a[o]=r[o]);return a}(e,p0);return Xr(t,n)}function _0(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=h(w0,Ls({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var s=[],o={},i=0,a=n.attributes,l=n.childNodes;for(i=a.length;i--;)a[i].name!=="slot"&&(o[a[i].name]=a[i].value,o[wu(a[i].name)]=a[i].value);for(i=l.length;i--;){var u=t(l[i],null),f=l[i].slot;f?o[f]=h(ei,{name:f},u):s[i]=u}var c=r?h(ei,null,s):s;return h(r||n.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Qr:pt)(this._vdom,this._root)}function wu(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function g0(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[wu(e)]=n,this._vdom=Xr(this._vdom,r),pt(this._vdom,this._root)}}function b0(){pt(this._vdom=null,this._root)}function ei(e,t){var n=this;return h("slot",Ls({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(s){s.stopPropagation(),s.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function y0(e,t,n,r){function s(){var o=Reflect.construct(HTMLElement,[],s);return o._vdomComponent=e,o._root=r&&r.shadow?o.attachShadow({mode:r.mode||"open"}):o,o}return(s.prototype=Object.create(HTMLElement.prototype)).constructor=s,s.prototype.connectedCallback=_0,s.prototype.attributeChangedCallback=g0,s.prototype.disconnectedCallback=b0,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),s.observedAttributes=n,n.forEach(function(o){Object.defineProperty(s.prototype,o,{get:function(){return this._vdom.props[o]},set:function(i){this._vdom?this.attributeChangedCallback(o,null,i):(this._props||(this._props={}),this._props[o]=i,this.connectedCallback());var a=typeof i;i!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(o,i)}})}),customElements.define(t||e.tagName||e.displayName||e.name,s)}function _u(e,t){y0(e,t,void 0,{shadow:!0})}function v0(e){let t;const n=S([h("style",{children:[Gi]}),h("div",C(S([["className","mx-auto max-w-7xl"],(t=[h("div",{className:"mx-auto max-w-3xl",children:v.Children.toArray([e])})],["children",v.Children.toArray(Array.from(t))])])))]);return h("div",{children:v.Children.toArray(Array.from(n))})}let gu=class extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialise","LoadedSmsfChoice"]}},Zr=class extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Failed"]}};function S0(){return[new Zr(0,[]),T(e=>{e(new gu(0,[]))})]}function x0(e,t,n){return t.tag===1?t.fields[0].tag===1?[new Zr(2,[]),A()]:[new Zr(1,[t.fields[0].fields[0].SmsfChoice]),_h()]:[n,Ct(r=>{kt(r)},e,void 0,r=>new gu(1,[r]))]}function C0(e){let t,n;const r=La(e.backendUrl,e.accessToken),s=(t=(n=r.GetSmsfChoice,o=>i=>x0(n,o,i)),$s(()=>Ts(S0,W(t),(o,i)=>{}),void 0,void 0))[0];return v0(s.tag===1?h(a0,{backendService:r,smsfChoice:ta(s.fields[0])}):s.tag===2?c0("We are unable to load the Self Managed Super Fund form at this time."):m0)}function k0(){_u(e=>h(C0,e),"apollo-super-smsf")}class A0 extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundName"]}}function Xn(e){return e.fields[0]}function ti(e){return new A0(e)}class F0 extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundUsi"]}}function Xt(e){return e.fields[0]}function ni(e){return new F0(e)}class N0 extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberNumber"]}}function bu(e){let t;const n=Se("Member number",mr(e));return t=n.tag===1?new d(1,[n.fields[0]]):lt("Member number",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new N0(t.fields[0])])}function M0(e){return xe(bu,e)}function E0(e){return e.fields[0]}class T0 extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberFirstName"]}}const $0="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function yu(e){let t;const n=Se("Member given name(s)",e);return t=n.tag===1?new d(1,[n.fields[0]]):an("Member given name(s)",$0,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new T0(t.fields[0])])}function B0(e){return xe(yu,e)}function I0(e){return e.fields[0]}class V0 extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberLastName"]}}const L0="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function vu(e){let t;const n=Se("Last Name",e);return t=n.tag===1?new d(1,[n.fields[0]]):an("Last Name",L0,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new V0(t.fields[0])])}function O0(e){return xe(vu,e)}function R0(e){return e.fields[0]}class D0 extends H{constructor(t,n,r,s,o){super(),this.FundName=t,this.FundUsi=n,this.MemberNumber=r,this.MemberFirstName=s,this.MemberLastName=o}}const P0=h("svg",C(S([["fill","#facc15"],["className","h-5 w-5"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=T(h("path",C(S([["fill-rule","evenodd"],(e="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",["d",e]),["clipRule","evenodd"]]))));return["children",v.Children.toArray(Array.from(t))]})()]))),U0=h("div",C(S([["className","bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"],(()=>{let e,t,n;const r=[h("div",C(S([["className","flex"],(e=[h("div",{className:"flex-shrink-0",children:v.Children.toArray([P0])}),h("div",C(S([["className","ml-2"],(t=[h("ul",C(S([["className","list-disc list-outside ml-6 space-y-2 text-sm text-yellow-700 leading-5"],(n=[h("li",{children:["Make sure you are a current member of the fund before completing this step."]}),h("li",{children:["Please check that the fund USI is correct as some funds have similar names."]})],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))],["children",v.Children.toArray(Array.from(e))])])))];return["children",v.Children.toArray(Array.from(r))]})()])));function yr(e){if(e==null)return ze();{const t=e;return h("div",{className:R(" ",["mt-2 text-sm text-red-600"]),children:t})}}function Os(e){return re(E(()=>ee(B("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),E(()=>e?B("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):he()))))}function H0(e){let t,n;return h("div",C(S([["className","mt-3"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberNumber",children:"Member Number"}),h("div",C(S([["className","mt-1"],(n=[h("input",{id:"memberNumber","data-testid":"member-number-input",type:"text",value:e.Field.Value,className:R(" ",Os(e.Field.ErrorMessage!=null)),onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),yr(e.Field.ErrorMessage)],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function z0(e){let t,n;return h("div",C(S([["className","mt-3 w-1/2"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberGivenNames",children:"Given name(s)"}),h("div",C(S([["className","mt-1"],(n=[h("input",{type:"text",className:R(" ",Os(e.Field.ErrorMessage!=null)),id:"memberGivenNames","data-testid":"member-given-names-input",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),yr(e.Field.ErrorMessage)],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function j0(e){let t,n;return h("div",C(S([["className","mt-3 w-1/2"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberLastNames",children:"Last name"}),h("div",C(S([["className","mt-1"],(n=[h("input",{type:"text",className:R(" ",Os(e.Field.ErrorMessage!=null)),id:"memberLastName","data-testid":"member-last-name-input",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),yr(e.Field.ErrorMessage)],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function G0(e,t){let n;return h("div",C(S([["className","mb-4"],(n=[h("div",C(re(E(()=>ee(e?he():B(["onClick",t]),E(()=>{let r;return B((r=[h("button",{className:R(" ",["px-4 py-2 text-base inline-flex items-center justify-center border font-medium","rounded-md shadow-sm pointer-events-auto border-transparent text-white bg-primary-base w-full","disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus","hover:bg-primary-hover"]),"data-testid":"continue-button",disabled:!e,children:"Continue",onClick:t})],["children",v.Children.toArray(Array.from(r))]))}))))))],["children",v.Children.toArray(Array.from(n))])])))}function W0(e){let t,n,r;return h("div",C(T((t=[h("a",C(S([["href","/"],(n=[h("div",C(T((r=[h("button",{className:R(" ",["px-4 py-2 text-base inline-flex items-center justify-center border font-medium rounded-md shadow-sm pointer-events-auto border-gray-300 text-gray-700 bg-white w-full","disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus","hover:bg-gray-50"]),"data-testid":"back-button",children:"Back",onClick:e})],["children",v.Children.toArray(Array.from(r))]))))],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))]))))}class Ut extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Enter","DownArrow","UpArrow","Escape"]}}let Fe=class extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched","OnFocus","OnKeyboard","SelectFundIndex","FundSearch"]}};class vt extends H{constructor(t,n){super(),this.Funds=t,this.SelectedIndex=n}}class Qe extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SearchSuccess","FoundTooMany","SearchError"]}}class be extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Pristine","SearchNotStarted","Searching","SearchResult"]}}let X=class extends H{constructor(t,n,r,s,o,i){super(),this.IsTouched=t,this.HasFocus=n,this.SearchCorrelationId=r,this.SearchState=s,this.ValidatedFund=o,this.ErrorMessage=i}};function q0(e){if(e.HasFocus){const t=e.SearchState;switch(t.tag){case 1:return t.fields[0];case 2:return t.fields[0];case 3:switch(t.fields[1].tag){case 1:return t.fields[0];case 2:return t.fields[0];default:{const n=t.fields[1].fields[0].SelectedIndex;if(n==null)return t.fields[0];{const r=Cn(n,t.fields[1].fields[0].Funds);return`${r.ProductName} (${r.Usi})`}}}default:return or(ws(n=>`${Xn(n[0])} (${Xt(n[1])})`,e.ValidatedFund),"")}}else{const t=e.ValidatedFund;if(t==null){const n=e.SearchState;switch(n.tag){case 1:return n.fields[0];case 2:return n.fields[0];case 3:return n.fields[0];default:return""}}else{const n=t[1];return`${Xn(t[0])} (${Xt(n)})`}}}function Z0(e){return ws(t=>t[0],e.ValidatedFund)}function J0(e){return ws(t=>t[1],e.ValidatedFund)}function K0(e){return new X(!1,!1,void 0,new be(0,[]),e,void 0)}function Su(e){return[new X(!0,!1,e.SearchCorrelationId,e.SearchState,e.ValidatedFund,e.ValidatedFund!=null?void 0:"Select a fund"),A()]}function Y0(e,t,n){let r,s,o,i;const a=l=>L.Delay(()=>L.Bind(da(500),()=>L.Return(l)));switch(t.tag){case 1:return Su(n);case 2:{const l=n.ValidatedFund,u=n.SearchState;let f,c,p,m;switch(l!=null&&u.tag===3&&u.fields[1].tag===0?(f=0,u.fields[0],c=u.fields[1].fields[0],p=l[0],m=l[1]):f=1,f){case 0:{const w=new vt(c.Funds,xc(b=>b.Usi===Xt(m),c.Funds));return[new X(n.IsTouched,!0,n.SearchCorrelationId,new be(3,[`${Xn(p)} (${Xt(m)})`,new Qe(0,[w])]),n.ValidatedFund,n.ErrorMessage),A()]}default:return[new X(n.IsTouched,!0,n.SearchCorrelationId,n.SearchState,n.ValidatedFund,n.ErrorMessage),A()]}}case 3:{const l=n.SearchState;let u,f,c;switch(l.tag===3&&l.fields[1].tag===0?(u=0,f=l.fields[1].fields[0],c=l.fields[0]):u=1,u){case 0:if(Ft(f.Funds)===0)return le(t.fields[0],new Ut(3,[]))?[new X(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,n.ValidatedFund,n.ErrorMessage),A()]:[n,A()];{const p=f.SelectedIndex;switch(t.fields[0].tag){case 1:if(p==null)return[new X(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new be(3,[c,new Qe(0,[new vt(f.Funds,0)])]),n.ValidatedFund,n.ErrorMessage),A()];{const m=p|0;return[new X(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new be(3,[c,new Qe(0,[new vt(f.Funds,uc(Ft(f.Funds)-1,m+1))])]),n.ValidatedFund,n.ErrorMessage),A()]}case 0:if(p!=null){const m=Cn(p,f.Funds);return[new X(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,[ti(m.ProductName),ni(m.Usi)],void 0),A()]}else return[n,A()];case 3:return[new X(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,n.ValidatedFund,n.ErrorMessage),A()];default:return p==null?[new X(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new be(3,[c,new Qe(0,[new vt(f.Funds,0)])]),n.ValidatedFund,n.ErrorMessage),A()]:[new X(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new be(3,[c,new Qe(0,[new vt(f.Funds,jr(0,p-1))])]),n.ValidatedFund,n.ErrorMessage),A()]}}default:return le(t.fields[0],new Ut(3,[]))?[new X(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,n.ValidatedFund,n.ErrorMessage),A()]:[n,A()]}}case 4:{const l=n.SearchState;let u,f,c;switch(l.tag===3&&l.fields[1].tag===0&&t.fields[0]>=0&&t.fields[0]<Ft(l.fields[1].fields[0].Funds)?(u=0,f=l.fields[1].fields[0],c=l.fields[0]):u=1,u){case 0:if(t.fields[1]){const p=Cn(t.fields[0],f.Funds);return[new X(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,[ti(p.ProductName),ni(p.Usi)],void 0),A()]}else return[new X(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new be(3,[c,new Qe(0,[new vt(f.Funds,t.fields[0])])]),n.ValidatedFund,n.ErrorMessage),A()];default:return[n,A()]}}case 5:if(t.fields[0].tag===1)if(le(n.SearchCorrelationId,t.fields[1])){const l=n.SearchState;return l.tag===2?[new X(n.IsTouched,n.HasFocus,void 0,new be(3,[l.fields[0],t.fields[0].fields[0].tag===1?new Qe(2,[t.fields[0].fields[0].fields[0]]):(r=t.fields[0].fields[0].fields[0],r.Result.tag===0?new Qe(0,[new vt(Nc(u=>u.ProductName,r.Data,{Compare:rr}),void 0)]):new Qe(1,[]))]),n.ValidatedFund,n.ErrorMessage),A()]:[new X(n.IsTouched,n.HasFocus,void 0,n.SearchState,n.ValidatedFund,n.ErrorMessage),A()]}else return[n,A()];else return[n,le(n.SearchCorrelationId,t.fields[1])?Ct(l=>{kt(l)},e,[t.fields[0].fields[0][0],t.fields[0].fields[0][1]],l=>{const u=(f=>[new Ze(1,[f]),t.fields[1]])(l);return new Fe(5,[u[0],u[1]])}):A()];default:{const l=n.SearchState;let u;switch(l.tag){case 2:{l.fields[0]!==t.fields[0]?(u=1,l.fields[0]):u=2;break}case 3:{t.fields[0]!==l.fields[0]?(u=3,l.fields[0]):u=4;break}default:u=0}switch(u){case 0:if(t.fields[0].length>=3){const f=Fr();return[new X(n.IsTouched,n.HasFocus,f,new be(2,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),Ct(c=>{kt(c)},a,(s=[new Ze(0,[[t.fields[0],25]]),f],new Fe(5,[s[0],s[1]])),c=>c)]}else return[new X(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new be(1,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),A()];case 1:if(t.fields[0].length>=3){const f=Fr();return[new X(n.IsTouched,n.HasFocus,f,new be(2,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),Ct(c=>{kt(c)},a,(o=[new Ze(0,[[t.fields[0],25]]),f],new Fe(5,[o[0],o[1]])),c=>c)]}else return[new X(n.IsTouched,n.HasFocus,void 0,new be(1,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),A()];case 2:return[n,A()];case 3:if(t.fields[0].length>=3){const f=Fr();return[new X(n.IsTouched,n.HasFocus,f,new be(2,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),Ct(c=>{kt(c)},a,(i=[new Ze(0,[[t.fields[0],25]]),f],new Fe(5,[i[0],i[1]])),c=>c)]}else return[new X(n.IsTouched,n.HasFocus,void 0,new be(1,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),A()];default:return[n,A()]}}}}function Q0(e){let t;return h("div",C(S([["className","mt-3"],(t=[h("label",{className:"text-sm font-medium text-gray-700",children:"Fund USI",htmlFor:"fundUsi"}),h("div",{id:"fundUsi",className:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-sm",children:Xt(e),"data-testid":"fund-usi"})],["children",v.Children.toArray(Array.from(t))])])))}function _n(e){return h("span",{className:"cursor-pointer text-gray-500 py-1.5 pl-4",children:e})}function X0(e,t){let n;const r=e.SearchState;let s,o;switch(r.tag){case 2:{s=1;break}case 3:{switch(r.fields[1].tag){case 2:{s=3;break}case 0:{Ft(r.fields[1].fields[0].Funds)===0?(s=4,r.fields[1].fields[0]):(s=5,o=r.fields[1].fields[0]);break}default:s=2}break}default:s=0}switch(s){case 0:return _n("Start typing to find the results");case 1:return _n("Searching...");case 2:return _n("Keep typing to narrow down your search.");case 3:return _n("Search failed.");case 4:return _n("No items match your search");default:return h("div",C(T((n=re(E(()=>Pe(i=>h("div",{className:R(" ",re(E(()=>ee(B("cursor-pointer text-wrap py-1.5 pl-4"),E(()=>le(o.SelectedIndex,i)?B("bg-primary-light"):he()))))),onClick:a=>{let l;t((l=[i,!0],new Fe(4,[l[0],l[1]])))},onMouseEnter:a=>{let l;t((l=[i,!1],new Fe(4,[l[0],l[1]])))},onMouseDown:a=>{a.preventDefault()},children:`${Cn(i,o.Funds).ProductName} (${Cn(i,o.Funds).Usi})`}),Da(0,1,Ft(o.Funds)-1)))),["children",v.Children.toArray(Array.from(n))]))))}}function ep(e){const t=e.dispatch,n=e.state,r=n.IsTouched&&n.ErrorMessage!=null,s=v.useRef(void 0),o=[n.HasFocus];v.useEffect(()=>{n.HasFocus===!1&&Cs(a=>{a.blur()},Hl(s.current))},o);const i=re(E(()=>{let a,l;return ee(B(h("div",C(S([["className","relative mt-3"],(a=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundName",children:"Fund Name"}),h("div",C(S([["className","mt-1"],["onBlur",u=>{t(new Fe(1,[]))}],(l=re(E(()=>ee(B(h("input",{id:"fundName","data-testid":"fund-search-input",placeholder:"Type to search by name or USI...",type:"text",value:q0(n),inputMode:"search",className:R(" ",re(E(()=>ee(B("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),E(()=>ee(r?B("border-red-300 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):he(),E(()=>r&&!n.HasFocus?B("text-red-900"):he()))))))),onKeyUp:u=>{switch(u.key){case"Enter":{t(new Fe(3,[new Ut(0,[])]));break}case"ArrowDown":{t(new Fe(3,[new Ut(1,[])]));break}case"ArrowUp":{t(new Fe(3,[new Ut(2,[])]));break}case"Escape":{t(new Fe(3,[new Ut(3,[])]));break}}u.preventDefault()},onChange:u=>{t(new Fe(0,[u.target.value]))},onFocus:u=>{t(new Fe(2,[]))},ref:s})),E(()=>{let u,f;return n.HasFocus?B(h("div",C(S([(u="max-h-[min(320px,50vh)] absolute shadow rounded-md border mt-0.5 overflow-auto w-full bg-white z-10 py-2 text-sm",["className",u]),(f=[X0(n,t)],["children",v.Children.toArray(Array.from(f))])])))):B(yr(n.ErrorMessage))})))),["children",v.Children.toArray(Array.from(l))])])))],["children",v.Children.toArray(Array.from(a))])])))),E(()=>{const u=n.ValidatedFund;return u!=null?B(Q0(u[1])):B(ze())}))}));return h(ve,{},...i)}class tp extends H{constructor(t,n,r,s,o){super(),this.FundName=t,this.FundUsi=n,this.MemberNumber=r,this.MemberFirstName=s,this.MemberLastName=o}}function Rs(e,t){const n={detail:t};return new CustomEvent(e,n)}const np=Rs("byof-loaded",{sender:"super-byof"}),rp=Rs("byof-cancelled",{sender:"super-byof"});function sp(e){return Rs("byof-completed",{fundName:e.FundName,fundUsi:e.FundUsi,memberFirstName:e.MemberFirstName,memberLastName:e.MemberLastName,memberNumber:e.MemberNumber,sender:"super-byof"})}class Ds extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loaded","Cancelled","Completed"]}}function Ps(e){let t;t=e.tag===1?rp:e.tag===2?sp(e.fields[0]):np,document.dispatchEvent(t)}function op(e,t){Ps(new Ds(2,[e]))}function ip(e){Ps(new Ds(0,[]))}function ap(e){Ps(new Ds(1,[]))}class ri extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}}class qe extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFundName","UpdateMemberNumber","UpdateMemberFirstName","UpdateMemberLastName","Submit","Cancel"]}}class Ht extends H{constructor(t,n,r,s){super(),this.Fund=t,this.MemberNumber=n,this.MemberFirstName=r,this.MemberLastName=s}}const up=new Ht(K0(void 0),M0(void 0),B0(void 0),O0(void 0));function lp(){return[up,Yt(e=>{ip()})]}function xu(e){let t,n;const r=Z0(e.Fund);if(n=r==null?new d(1,["Invalid fund name"]):new d(0,[r]),t=n.tag===1?new d(1,[T(n.fields[0])]):new d(0,[n.fields[0]]),t.tag===1)return new d(1,[t.fields[0]]);{let s,o;const i=J0(e.Fund);if(o=i==null?new d(1,["Invalid fund usi"]):new d(0,[i]),s=o.tag===1?new d(1,[T(o.fields[0])]):new d(0,[o.fields[0]]),s.tag===1)return new d(1,[s.fields[0]]);{let a;const l=bu(e.MemberNumber.Value);if(a=l.tag===1?new d(1,[T(l.fields[0])]):new d(0,[l.fields[0]]),a.tag===1)return new d(1,[a.fields[0]]);{let u;const f=yu(e.MemberFirstName.Value);if(u=f.tag===1?new d(1,[T(f.fields[0])]):new d(0,[f.fields[0]]),u.tag===1)return new d(1,[u.fields[0]]);{let c;const p=vu(e.MemberLastName.Value);return c=p.tag===1?new d(1,[T(p.fields[0])]):new d(0,[p.fields[0]]),c.tag===1?new d(1,[c.fields[0]]):new d(0,[new D0(t.fields[0],s.fields[0],a.fields[0],u.fields[0],c.fields[0])])}}}}}function cp(e){return new Ht(Su(e.Fund)[0],ue(e.MemberNumber),ue(e.MemberFirstName),ue(e.MemberLastName))}function Tr(e,t,n){return n(e.tag===1?ue(t):Ha(t,e.fields[0]))}function dp(e,t,n){switch(t.tag){case 1:return[Tr(t.fields[0],n.MemberNumber,r=>new Ht(n.Fund,r,n.MemberFirstName,n.MemberLastName)),A()];case 2:return[Tr(t.fields[0],n.MemberFirstName,r=>new Ht(n.Fund,n.MemberNumber,r,n.MemberLastName)),A()];case 3:return[Tr(t.fields[0],n.MemberLastName,r=>new Ht(n.Fund,n.MemberNumber,n.MemberFirstName,r)),A()];case 4:{const r=xu(n);if(r.tag===1)return[cp(n),A()];{const s=r.fields[0],o=new tp(Xn(s.FundName),Xt(s.FundUsi),E0(s.MemberNumber),I0(s.MemberFirstName),R0(s.MemberLastName));return[n,Yt(i=>{op(o)})]}}case 5:return[n,Yt(r=>{ap()})];default:{const r=Y0(e.GetAustralianFundList,t.fields[0],n.Fund);return[new Ht(r[0],n.MemberNumber,n.MemberFirstName,n.MemberLastName),Tt(s=>new qe(0,[s]),r[1])]}}}function fp(e){let t,n,r,s,o,i,a;const l=e.backendService,u=$s(()=>Ts(lp,(_,k)=>dp(l,_,k),(_,k)=>{}),void 0,void 0),f=u[0],c=u[1],p=(_,k)=>{c(_(new ri(1,[])))},m=(_,k)=>{c(_(new ri(0,[k])))};let w;w=xu(f).tag!==1;const g=T(h("form",C(S([["id","form"],["novalidate",""],(t=[h("div",C(S([["className","p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560"],(n=[h("p",{className:"sm:text-lg font-bold",children:"Fund details"}),U0,h("div",C(T((r=[(s=S([h(ep,{state:f.Fund,dispatch:_=>{c(new qe(0,[_]))}}),H0(new ye(f.MemberNumber,V(p)(_=>new qe(1,[_])),V(m)(_=>new qe(1,[_])))),h("div",C(S([["className","flex space-x-4"],(o=[z0(new ye(f.MemberFirstName,V(p)(_=>new qe(2,[_])),V(m)(_=>new qe(2,[_])))),j0(new ye(f.MemberLastName,V(p)(_=>new qe(3,[_])),V(m)(_=>new qe(3,[_]))))],["children",v.Children.toArray(Array.from(o))])])))]),h("div",{children:v.Children.toArray(Array.from(s))}))],["children",v.Children.toArray(Array.from(r))]))))],["children",v.Children.toArray(Array.from(n))])]))),h("div",C(S([["className","flex justify-center mt-8"],(i=[h("div",C(S([["className","sm:max-w-320 w-full"],(a=[G0(w,_=>{_.preventDefault(),c(new qe(4,[]))}),W0(_=>{_.preventDefault(),c(new qe(5,[]))})],["children",v.Children.toArray(Array.from(a))])])))],["children",v.Children.toArray(Array.from(i))])])))],["children",v.Children.toArray(Array.from(t))])]))));return h("div",{children:v.Children.toArray(Array.from(g))})}function hp(e){let t;const n=S([h("style",{children:[Gi]}),h("div",C(S([["className","mx-auto max-w-7xl"],(t=[h("div",{className:"mx-auto max-w-3xl",children:v.Children.toArray([e])})],["children",v.Children.toArray(Array.from(t))])])))]);return h("div",{children:v.Children.toArray(Array.from(n))})}function mp(e){let t;return hp((t=La(e.backendUrl,e.accessToken),h(fp,{backendService:t})))}function pp(){_u(e=>h(mp,e),"apollo-super-byof")}k0();pp();
31
+ */var on=em;function tm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nm=typeof Object.is=="function"?Object.is:tm,rm=on.useState,sm=on.useEffect,om=on.useLayoutEffect,im=on.useDebugValue;function am(e,t){var n=t(),r=rm({inst:{value:n,getSnapshot:t}}),s=r[0].inst,o=r[1];return om(function(){s.value=n,s.getSnapshot=t,Ir(s)&&o({inst:s})},[e,n,t]),sm(function(){return Ir(s)&&o({inst:s}),e(function(){Ir(s)&&o({inst:s})})},[e]),im(n),n}function Ir(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!nm(e,n)}catch{return!0}}function um(e,t){return t()}var lm=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?um:am;Qa.useSyncExternalStore=on.useSyncExternalStore!==void 0?on.useSyncExternalStore:lm;Ya.exports=Qa;var cm=Ya.exports;class dm{constructor(t,n,r){this.arg=n,this.dependencies=r;const s=t(),o=[];this.finalDispatch=void 0;let i;const a=Jh(s)(this.arg);let l=a[0],u=a[1];i=[[l,f=>{const c=this.finalDispatch;c==null?o.push(f):c(f)},!1,o],u],this.state=i[0],this.cmd=i[1],this.subscribe=f=>{let c=!1;const p=Gr(this.state[0]);return Qh(this.arg,Zh((m,w)=>{const b=this.state;this.finalDispatch=w,this.state=[m,b[1],!0,o],m!==b[0]&&f()},Kh((m,w)=>{const b=this.cmd;return this.cmd=A(),[this.state[0],b]},(m,w,b)=>m(w)(this.state[0]),qr(m=>m),qr(m=>m),z(m=>m),m=>[w=>m[0](w)?!0:p&&c,w=>{const b=w;Gr(b)?Y(b):m[1](w)}],s))),()=>{c=!0}}}}function ii(e,t,n){return new dm(e,t,n)}function fm(e){return e.state}function hm(e){return e.subscribe}function mm(e,t,n){return ce(e.arg,t)?!ce(e.dependencies,n):!0}function Ln(e,t,n){const r=un(()=>ii(e,t,n)),s=r[0];mm(s,t,n)&&r[1](ii(e,t,n));const o=cm.useSyncExternalStore(hm(s),()=>fm(s)),i=o[2],a=o[3],l=o[1];return Mn(()=>{if(i&&a.length>0){let u=re(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const f=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{Y(u)}gl(a)}},[i,a]),[o[0],l]}function Se(e,t){return ha(t)?new d(1,[`${e} is required`]):new d(0,[t])}function ht(e,t,n){return n.length>=t?new d(0,[n]):new d(1,[`${e} requires a minimum length of ${t} characters`])}function Ps(e,t,n){return n.length<=t?new d(0,[n]):new d(1,[`${e} exceeds maximum length of ${t} characters`])}function br(e){return e.trim()}function Hs(e){return Cs(e,"\\s+","")}function mn(e,t,n){return jl(ua(t),n)?new d(0,[n]):new d(1,[`${e} is invalid`])}function pm(e){return Cs(e,"[^0-9]","")}class Je extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class zs extends O{constructor(t,n,r,s){super(),this.Value=t,this.IsTouched=n,this.Validator=r,this.ErrorMessage=s}}class ye extends O{constructor(t,n,r){super(),this.Field=t,this.OnBlur=n,this.OnChange=r}}function Ce(e,t){return new zs(cr(t,""),!1,e,void 0)}function Xa(e,t){let n;return new zs(t,e.IsTouched,e.Validator,(n=e.Validator(t),n.tag===1&&e.IsTouched?n.fields[0]:void 0))}function le(e){let t;return new zs(e.Value,!0,e.Validator,(t=e.Validator(e.Value),t.tag===1?t.fields[0]:void 0))}function yr(e){const t=e.target,n=pm(t.value);return t.value=n,n}let wm=class extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundName"]}};function eu(e){let t;const n=Se("Fund name",br(e));return t=n.tag===1?new d(1,[n.fields[0]]):ht("Fund name",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new wm(t.fields[0])])}function tu(e){return Ce(eu,e)}function _m(e){return e.fields[0]}class gm extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundAbn"]}}function vr(e){const t=ee(Ue(s=>~~s.charCodeAt(0)-48,e.split(""))),n=v([10,1,3,5,7,9,11,13,15,17,19]),r=va(s=>s>=0?s<=9:!1,t)?new d(0,[void 0]):new d(1,["Enter a valid fund ABN (digits only)"]);if(r.tag===1)return new d(1,[r.fields[0]]);{const s=$t(t)===$t(n)?new d(0,[void 0]):new d(1,["Enter a valid fund ABN"]);if(s.tag===1)return new d(1,[s.fields[0]]);{const o=$c((i,a,l)=>i+a*l,0,Ic((i,a)=>i===0?a-1|0:a|0,t),n)%89===0?new d(0,[void 0]):new d(1,["Enter a valid fund ABN"]);return o.tag===1?new d(1,[o.fields[0]]):new d(0,[new gm(e)])}}}function bm(e){return e.fields[0]}class ym extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundEsa"]}}function nu(e){let t;const n=Se("Fund ESA",br(e));return t=n.tag===1?new d(1,[n.fields[0]]):ht("Fund ESA",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new ym(t.fields[0])])}function ru(e){return Ce(nu,e)}function vm(e){return e.fields[0]}class xm extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AddressLine1"]}}function su(e){let t;const n=Se("Address Line 1",e);return t=n.tag===1?new d(1,[n.fields[0]]):ht("Address Line 1",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new xm(t.fields[0])])}function ou(e){return Ce(su,e)}function Sm(e){return e.fields[0]}class Cm extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AddressLine2"]}}function iu(e){if(ha(e))return new d(0,[void 0]);{const t=ht("Address Line 2",2,e);return t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Cm(t.fields[0])])}}function au(e){return Ce(iu,e)}function Am(e){if(e!=null)return e.fields[0]}class km extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["City"]}}function uu(e){const t=Se("City",e);return t.tag===1?new d(1,[t.fields[0]]):new d(0,[new km(t.fields[0])])}function lu(e){return Ce(uu,e)}function Fm(e){return e.fields[0]}class wt extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NSW","QLD","ACT","VIC","TAS","WA","SA","NT"]}}function cu(e){const t=Se("State",e);if(t.tag===1)return new d(1,[t.fields[0]]);switch(t.fields[0]){case"NSW":return new d(0,[new wt(0,[])]);case"QLD":return new d(0,[new wt(1,[])]);case"ACT":return new d(0,[new wt(2,[])]);case"VIC":return new d(0,[new wt(3,[])]);case"TAS":return new d(0,[new wt(4,[])]);case"WA":return new d(0,[new wt(5,[])]);case"SA":return new d(0,[new wt(6,[])]);case"NT":return new d(0,[new wt(7,[])]);default:return new d(1,["Select a state'"])}}function du(e){return Ce(cu,e)}function Nm(e){switch(e.tag){case 1:return"QLD";case 2:return"ACT";case 3:return"VIC";case 4:return"TAS";case 5:return"WA";case 6:return"SA";case 7:return"NT";default:return"NSW"}}class Mm extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Postcode"]}}function fu(e){let t,n;const r=Se("Postcode",Hs(e));return n=r.tag===1?new d(1,[r.fields[0]]):ht("Postcode",4,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):Ps("Postcode",4,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Mm(t.fields[0])])}function hu(e){return Ce(fu,e)}function Em(e){return e.fields[0]}let $m=class extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberFirstName"]}};const Tm="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function mu(e){let t;const n=Se("Member given name(s)",e);return t=n.tag===1?new d(1,[n.fields[0]]):mn("Member given name(s)",Tm,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new $m(t.fields[0])])}function pu(e){return Ce(mu,e)}function Bm(e){return e.fields[0]}let Im=class extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberLastName"]}};const Vm="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function wu(e){let t;const n=Se("Last Name",e);return t=n.tag===1?new d(1,[n.fields[0]]):mn("Last Name",Vm,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Im(t.fields[0])])}function _u(e){return Ce(wu,e)}function Lm(e){return e.fields[0]}class Om extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountName"]}}function gu(e){let t;const n=Se("Account name",br(e));return t=n.tag===1?new d(1,[n.fields[0]]):ht("Account name",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Om(t.fields[0])])}function bu(e){return Ce(gu,e)}function Dm(e){return e.fields[0]}class Rm extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountBsb"]}}function xr(e){let t,n,r;const s=Se("BSB",Hs(e));return r=s.tag===1?new d(1,[s.fields[0]]):ht("BSB",6,s.fields[0]),n=r.tag===1?new d(1,[r.fields[0]]):Ps("BSB",6,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):mn("BSB","^\\d{6}$",n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Rm(t.fields[0])])}function Um(e){return e.fields[0]}class Pm extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountNumber"]}}function yu(e){let t,n,r;const s=Se("Account Number",Hs(e));return r=s.tag===1?new d(1,[s.fields[0]]):ht("Account Number",2,s.fields[0]),n=r.tag===1?new d(1,[r.fields[0]]):Ps("Account Number",11,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):mn("Account Number","^\\d{2,11}$",n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Pm(t.fields[0])])}function vu(e){return Ce(yu,e)}function Hm(e){return e.fields[0]}class zm extends O{constructor(t,n,r,s,o){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.AddressState=s,this.Postcode=o}}class jm extends O{constructor(t,n,r,s,o,i,a,l,u,f,c,p,m){super(),this.FundName=t,this.FundAbn=n,this.FundEsa=r,this.FundAddressLine1=s,this.FundAddressLine2=o,this.FundCity=i,this.FundState=a,this.FundPostcode=l,this.MemberFirstName=u,this.MemberLastName=f,this.BankAccountName=c,this.BankAccountBsb=p,this.BankAccountNumber=m}}const Gm=h("svg",S(v([["fill","#facc15"],["className","h-5 w-5"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=$(h("path",S(v([["fill-rule","evenodd"],(e="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",["d",e]),["clipRule","evenodd"]]))));return["children",y.Children.toArray(Array.from(t))]})()]))),Wm=h("div",S(v([["className","bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"],(()=>{let e;const t=[h("div",S(v([["className","flex"],(e=[h("div",{className:"flex-shrink-0",children:y.Children.toArray([Gm])}),h("div",{className:"ml-3 text-sm text-yellow-700 leading-5",children:"Make sure your Self-managed super fund (SMSF) is a registered fund before completing this step."})],["children",y.Children.toArray(Array.from(e))])])))];return["children",y.Children.toArray(Array.from(t))]})()])));function mt(e){if(e==null)return je();{const t=e;return h("div",{className:D(" ",["mt-2 text-sm text-red-600"]),children:t})}}function Sr(e){return ee(M(()=>K(T("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>e?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ie()))))}function qm(e){let t,n;return h("div",S(v([["className","mt-3"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundName",children:"Fund name"}),h("div",S(v([["className","mt-1"],(n=[h("input",{type:"text",className:D(" ",Sr(e.Field.ErrorMessage!=null)),id:"fundName",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),mt(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Zm(e){let t,n;return h("div",S(v([["className","mt-3"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundEsa",children:"Electronic service address alias (ESA)"}),h("div",S(v([["className","mt-1"],(n=[h("input",{id:"fundEsa",type:"text",value:e.Field.Value,className:D(" ",Sr(e.Field.ErrorMessage!=null)),onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),mt(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Jm(e,t){return h("input",{placeholder:"Address line 1",type:"text",className:D(" ",ee(M(()=>K(T("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none rounded-t-md shadow-none"),M(()=>e&&t.Field.ErrorMessage!=null?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ie()))))),required:!0,minLength:2,id:"addressLine1",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function Km(e,t){return h("input",{placeholder:"Address line 2 (optional)",type:"text",className:D(" ",ee(M(()=>K(T("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none shadow-none"),M(()=>e&&t.Field.ErrorMessage!=null?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ie()))))),id:"addressLine2",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function Ym(e,t){return h("input",{placeholder:"City/suburb",type:"text",className:D(" ",ee(M(()=>K(T("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none shadow-none"),M(()=>e&&t.Field.ErrorMessage!=null?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ie()))))),required:!0,id:"city",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function Qm(e,t){let n;return h("div",S(v([["className","flex-1 min-w-0"],(n=[h("input",{placeholder:"Postcode",type:"text",required:!0,className:D(" ",ee(M(()=>K(T("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none rounded-bl-md shadow-none"),M(()=>e&&t.Field.ErrorMessage!=null?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ie()))))),minLength:4,maxLength:4,pattern:"[0-9]{4}",inputMode:"numeric",id:"postcode",value:t.Field.Value,onKeyUp:r=>{t.OnChange(yr(r))},onBlur:t.OnBlur,onChange:r=>{t.OnChange(r.target.value)}})],["children",y.Children.toArray(Array.from(n))])])))}function Xm(e,t){let n;const r=h("option",{disabled:!0,value:"",children:"State",selected:t.Field.Value===""}),s=Es(o=>h("option",{value:o,children:o,selected:t.Field.Value===o}),v(["NSW","QLD","ACT","VIC","TAS","WA","SA","NT"]));return h("div",S(v([["className","w-1/2 flex-1 min-w-0"],(n=[h("select",{className:D(" ",ee(M(()=>K(T("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none rounded-br-md shadow-none text-gray-500"),M(()=>e&&t.Field.ErrorMessage!=null?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ie()))))),id:"state",required:!0,children:y.Children.toArray(Array.from(Me(r,s))),onBlur:t.OnBlur,onChange:o=>{t.OnChange(o.target.value)}})],["children",y.Children.toArray(Array.from(n))])])))}function e0(e){let t,n,r,s;const o=a=>a.IsTouched;s=va(a=>a,v([o(e.AddressLine1.Field),o(e.AddressLine2.Field),o(e.City.Field),o(e.AddressState.Field),o(e.Postcode.Field)]));const i=Vc(a=>a,v([e.AddressLine1.Field.ErrorMessage,e.AddressLine2.Field.ErrorMessage,e.City.Field.ErrorMessage,e.AddressState.Field.ErrorMessage,e.Postcode.Field.ErrorMessage]));return h("div",S(v([["className","mt-3"],(t=[h("label",{className:"text-sm font-medium text-gray-700",children:"Fund address"}),h("div",S(v([["className","mt-1 rounded-md shadow-sm -space-y-px"],(n=[Jm(s,e.AddressLine1),Km(s,e.AddressLine2),Ym(s,e.City),h("div",S(v([["className","flex -space-x-px"],(r=[Qm(s,e.Postcode),Xm(s,e.AddressState)],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])]))),mt(s?i:void 0)],["children",y.Children.toArray(Array.from(t))])])))}function t0(e){let t,n;return h("div",S(v([["className","mt-3 w-1/2"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberGivenNames",children:"Given name(s)"}),h("div",S(v([["className","mt-1"],(n=[h("input",{type:"text",className:D(" ",Sr(e.Field.ErrorMessage!=null)),id:"memberGivenNames",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),mt(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function n0(e){let t,n;return h("div",S(v([["className","mt-3 w-1/2"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberLastNames",children:"Last name"}),h("div",S(v([["className","mt-1"],(n=[h("input",{type:"text",className:D(" ",Sr(e.Field.ErrorMessage!=null)),id:"memberLastName",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),mt(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function r0(e){let t,n;const r=e.Field.IsTouched&&e.Field.ErrorMessage!=null;return h("div",S(v([["className","mt-3"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"bankAccountName",children:"Account name"}),h("div",S(v([["className","mt-1"],(n=[h("input",{id:"bankAccountName",type:"text",value:e.Field.Value,className:D(" ",ee(M(()=>K(T("peer relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>r?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ie()))))),onBlur:e.OnBlur,onChange:s=>{e.OnChange(s.target.value)}}),mt(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function s0(e){let t,n;const r=e.Field.IsTouched&&e.Field.ErrorMessage!=null;return h("div",S(v([["className","mt-3"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"bankAccountNumber",children:"Account number"}),h("div",S(v([["className","mt-1"],(n=[h("input",{id:"bankAccountNumber",type:"text",value:e.Field.Value,inputMode:"numeric",className:D(" ",ee(M(()=>K(T("peer relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>r?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ie()))))),onKeyUp:s=>{e.OnChange(yr(s))},onBlur:e.OnBlur,onChange:s=>{e.OnChange(s.target.value)}}),mt(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function o0(e,t){let n;return h("div",S(v([["className","mb-4"],(n=[h("div",S(ee(M(()=>K(e?ie():T(["onClick",t]),M(()=>{let r;return T((r=[h("button",{className:D(" ",["px-4 py-2 text-base inline-flex items-center justify-center border font-medium","rounded-md shadow-sm pointer-events-auto border-transparent text-white bg-primary-base w-full","disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus","hover:bg-primary-hover"]),"data-testid":"continue-button",disabled:!e,children:"Continue",onClick:t})],["children",y.Children.toArray(Array.from(r))]))}))))))],["children",y.Children.toArray(Array.from(n))])])))}function i0(e){let t,n,r;return h("div",S($((t=[h("a",S(v([["href","/"],(n=[h("div",S($((r=[h("button",{className:D(" ",["px-4 py-2 text-base inline-flex items-center justify-center border font-medium rounded-md shadow-sm pointer-events-auto border-gray-300 text-gray-700 bg-white w-full","disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus","hover:bg-gray-50"]),"data-testid":"back-button",children:"Back",onClick:e})],["children",y.Children.toArray(Array.from(r))]))))],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))]))))}let ai=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}},kn=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFundAbn","RegulatedFundCheck"]}},Ke=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotYetStarted","Pending","Valid","Invalid"]}},Te=class extends O{constructor(t,n,r,s){super(),this.RawValue=t,this.IsTouched=n,this.Value=r,this.ErrorMessage=s}};function xu(e,t){if(e==null)return[new Te("",!1,new Ke(0,[]),void 0),A()];{const n=e,r=vr(n);return r.tag===1?[new Te(n,!1,new Ke(3,[]),r.fields[0]),A()]:[new Te(n,!1,new Ke(1,[]),void 0),$(s=>{s(new kn(1,[new Je(0,[void 0])]))})]}}function a0(e,t){const n=vr(e.RawValue);return n.tag===1?[new Te(e.RawValue,e.IsTouched,new Ke(3,[]),n.fields[0]),A()]:t?[new Te(e.RawValue,e.IsTouched,new Ke(3,[]),"The supplied ABN is for a regulated fund"),A()]:[new Te(e.RawValue,e.IsTouched,new Ke(2,[n.fields[0]]),e.ErrorMessage),A()]}function Su(e){const t=vr(e.RawValue);return t.tag===1?[new Te(e.RawValue,!0,e.Value,t.fields[0]),A()]:[new Te(e.RawValue,!0,e.Value,e.ErrorMessage),A()]}function u0(e,t,n){if(t.tag===1)return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new Te(n.RawValue,n.IsTouched,new Ke(3,[]),"Something went wrong when validating your fund ABN"),A()]:a0(n,t.fields[0].fields[0].fields[0]):[n,it(r=>{at(r)},e,n.RawValue,r=>new kn(1,[new Je(1,[r])]))];if(t.fields[0].tag===1)return Su(n);{const r=vr(t.fields[0].fields[0]);return r.tag===1?n.IsTouched?[new Te(t.fields[0].fields[0],n.IsTouched,new Ke(0,[]),r.fields[0]),A()]:[new Te(t.fields[0].fields[0],n.IsTouched,new Ke(0,[]),void 0),A()]:t.fields[0].fields[0]===n.RawValue?[n,A()]:[new Te(t.fields[0].fields[0],n.IsTouched,new Ke(1,[]),void 0),$(s=>{s(new kn(1,[new Je(0,[void 0])]))})]}}function l0(e){let t,n;const r=e.dispatch,s=e.state,o=l=>{r(new kn(0,[new ai(0,[l])]))},i=s.IsTouched&&s.ErrorMessage!=null,a=[h("div",S(v([["className","mt-3"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundAbn",children:"Fund ABN"}),h("div",S(v([["className","mt-1"],(n=[h("input",{id:"fundAbn",type:"text",value:s.RawValue,inputMode:"numeric",className:D(" ",ee(M(()=>K(T("peer relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>i?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ie()))))),onKeyUp:l=>{o(yr(l))},onBlur:l=>{r(new kn(0,[new ai(1,[])]))},onChange:l=>{o(l.target.value)}}),mt(s.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))];return h(xe,{},...a)}class c0 extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankName"]}}function d0(e){return e.fields[0]}function f0(e){return new c0(`${e.Bank} - ${e.Branch}`)}let ui=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}},Fn=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateBankAccountBsb","BsbLookup"]}};class lt extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotYetStarted","Pending","Valid","Invalid"]}}let Ye=class extends O{constructor(t,n,r,s){super(),this.RawValue=t,this.IsTouched=n,this.Value=r,this.ErrorMessage=s}};function Cu(e,t){if(e==null)return[new Ye("",!1,new lt(0,[]),void 0),A()];{const n=e,r=xr(n);return r.tag===1?[new Ye(n,!1,new lt(3,[]),r.fields[0]),A()]:[new Ye(n,!1,new lt(1,[]),void 0),$(s=>{s(new Fn(1,[new Je(0,[void 0])]))})]}}function li(e){return new Ye(e.RawValue,e.IsTouched,new lt(3,[]),"Unable to identify the bank using the provided BSB number")}function h0(e,t){let n;const r=xr(e.RawValue);return n=r.tag===1?[new lt(3,[]),r.fields[0]]:[new lt(2,[[r.fields[0],f0(t)]]),void 0],new Ye(e.RawValue,e.IsTouched,n[0],n[1])}function Au(e){const t=xr(e.RawValue);return t.tag===1?[new Ye(e.RawValue,!0,e.Value,t.fields[0]),A()]:[new Ye(e.RawValue,!0,e.Value,e.ErrorMessage),A()]}function m0(e,t,n){if(t.tag===1)if(t.fields[0].tag===1){if(t.fields[0].fields[0].tag===1)return[li(n),A()];{const r=t.fields[0].fields[0].fields[0].BankDetails;return r!=null?[h0(n,r),A()]:[li(n),A()]}}else return[n,it(r=>{at(r)},e,n.RawValue,r=>new Fn(1,[new Je(1,[r])]))];else{if(t.fields[0].tag===1)return Au(n);{const r=xr(t.fields[0].fields[0]);return r.tag===1?n.IsTouched?[new Ye(t.fields[0].fields[0],n.IsTouched,new lt(0,[]),r.fields[0]),A()]:[new Ye(t.fields[0].fields[0],n.IsTouched,new lt(0,[]),void 0),A()]:t.fields[0].fields[0]===n.RawValue?[n,A()]:[new Ye(t.fields[0].fields[0],n.IsTouched,new lt(1,[]),void 0),$(s=>{s(new Fn(1,[new Je(0,[void 0])]))})]}}}function p0(e){let t;return h("div",S(v([["className","mt-3"],(t=[h("label",{className:"text-sm font-medium text-gray-700",children:"Bank name",htmlFor:"bankName"}),h("div",{id:"bankName",className:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-sm",children:d0(e),"data-testid":"bank-name"})],["children",y.Children.toArray(Array.from(t))])])))}function w0(e){const t=e.dispatch,n=e.state,r=i=>{t(new Fn(0,[new ui(0,[i])]))},s=n.IsTouched&&n.ErrorMessage!=null,o=ee(M(()=>{let i,a;return K(T(h("div",S(v([["className","mt-3"],(i=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"bankAccountBsb",children:"BSB"}),h("div",S(v([["className","mt-1"],(a=[h("input",{id:"bankAccountBsb",type:"text",value:n.RawValue,inputMode:"numeric",className:D(" ",ee(M(()=>K(T("peer relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>s?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ie()))))),onKeyUp:l=>{r(yr(l))},onBlur:l=>{t(new Fn(0,[new ui(1,[])]))},onChange:l=>{r(l.target.value)}}),mt(n.ErrorMessage)],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(i))])])))),M(()=>{const l=n.Value;switch(l.tag){case 2:return T(p0(l.fields[0][1]));default:return T(je())}}))}));return h(xe,{},...o)}let ci=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}},R=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFundName","UpdateFundAbn","UpdateFundEsa","UpdateAddressLine1","UpdateAddressLine2","UpdateCity","UpdateAddressState","UpdatePostcode","UpdateMemberFirstName","UpdateMemberLastName","UpdateBankAccountName","UpdateBankAccountBsb","UpdateBankAccountNumber","Submit","Cancel"]}},ue=class extends O{constructor(t,n,r,s,o,i,a,l,u,f){super(),this.FundName=t,this.FundAbn=n,this.FundEsa=r,this.FundAddress=s,this.MemberFirstName=o,this.MemberLastName=i,this.BankAccountName=a,this.BankAccountBsb=l,this.BankAccountNumber=u,this.BankName=f}};class _t extends O{constructor(t,n,r,s,o){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.AddressState=s,this.Postcode=o}}const _0=(()=>{let e;const t=xu(void 0);e=[t[0],It(s=>new R(1,[s]),t[1])];let n;const r=Cu(void 0);return n=[r[0],It(s=>new R(11,[s]),r[1])],[new ue(tu(void 0),e[0],ru(void 0),new _t(ou(void 0),au(void 0),lu(void 0),du(void 0),hu(void 0)),pu(void 0),_u(void 0),bu(void 0),n[0],vu(void 0),void 0),Za(v([e[1],n[1]]))]})();function g0(e){let t;const n=xu(e.Abn);t=[n[0],It(o=>new R(1,[o]),n[1])];let r;const s=Cu(e.Bsb);return r=[s[0],It(o=>new R(11,[o]),s[1])],[new ue(tu(e.FundName),t[0],ru(e.ElectronicServiceAddress),new _t(ou(e.FundAddress.AddressLine1),au(e.FundAddress.AddressLine2),lu(e.FundAddress.City),du(e.FundAddress.State),hu(e.FundAddress.Postcode)),pu(e.MemberFirstName),_u(e.MemberFamilyName),bu(e.BankAccountName),r[0],vu(e.BankAccountNumber),void 0),Za(v([t[1],r[1]]))]}function b0(e){let t;return cr((t=e,t==null?void 0:g0(t)),_0)}function ku(e){let t;const n=eu(e.FundName.Value);if(t=n.tag===1?new d(1,[$(n.fields[0])]):new d(0,[n.fields[0]]),t.tag===1)return new d(1,[t.fields[0]]);{let r;const s=e.FundAbn.Value;if(r=s.tag===2?new d(0,[s.fields[0]]):new d(1,[$("Fund ABN is invalid")]),r.tag===1)return new d(1,[r.fields[0]]);{let o;const i=nu(e.FundEsa.Value);if(o=i.tag===1?new d(1,[$(i.fields[0])]):new d(0,[i.fields[0]]),o.tag===1)return new d(1,[o.fields[0]]);{let a;const l=su(e.FundAddress.AddressLine1.Value);if(a=l.tag===1?new d(1,[$(l.fields[0])]):new d(0,[l.fields[0]]),a.tag===1)return new d(1,[a.fields[0]]);{let u;const f=iu(e.FundAddress.AddressLine2.Value);if(u=f.tag===1?new d(1,[$(f.fields[0])]):new d(0,[f.fields[0]]),u.tag===1)return new d(1,[u.fields[0]]);{let c;const p=uu(e.FundAddress.City.Value);if(c=p.tag===1?new d(1,[$(p.fields[0])]):new d(0,[p.fields[0]]),c.tag===1)return new d(1,[c.fields[0]]);{let m;const w=cu(e.FundAddress.AddressState.Value);if(m=w.tag===1?new d(1,[$(w.fields[0])]):new d(0,[w.fields[0]]),m.tag===1)return new d(1,[m.fields[0]]);{let b;const g=fu(e.FundAddress.Postcode.Value);if(b=g.tag===1?new d(1,[$(g.fields[0])]):new d(0,[g.fields[0]]),b.tag===1)return new d(1,[b.fields[0]]);{let _;const k=mu(e.MemberFirstName.Value);if(_=k.tag===1?new d(1,[$(k.fields[0])]):new d(0,[k.fields[0]]),_.tag===1)return new d(1,[_.fields[0]]);{let x;const Z=wu(e.MemberLastName.Value);if(x=Z.tag===1?new d(1,[$(Z.fields[0])]):new d(0,[Z.fields[0]]),x.tag===1)return new d(1,[x.fields[0]]);{let ae;const Ie=gu(e.BankAccountName.Value);if(ae=Ie.tag===1?new d(1,[$(Ie.fields[0])]):new d(0,[Ie.fields[0]]),ae.tag===1)return new d(1,[ae.fields[0]]);{let xt;const St=e.BankAccountBsb.Value;if(xt=St.tag===2?new d(0,[St.fields[0][0]]):new d(1,[$("Bank BSB is invalid")]),xt.tag===1)return new d(1,[xt.fields[0]]);{let pt;const ge=yu(e.BankAccountNumber.Value);return pt=ge.tag===1?new d(1,[$(ge.fields[0])]):new d(0,[ge.fields[0]]),pt.tag===1?new d(1,[pt.fields[0]]):new d(0,[new jm(t.fields[0],r.fields[0],o.fields[0],a.fields[0],u.fields[0],c.fields[0],m.fields[0],b.fields[0],_.fields[0],x.fields[0],ae.fields[0],xt.fields[0],pt.fields[0])])}}}}}}}}}}}}}function y0(e){return new ue(le(e.FundName),Su(e.FundAbn)[0],le(e.FundEsa),new _t(le(e.FundAddress.AddressLine1),le(e.FundAddress.AddressLine2),le(e.FundAddress.City),le(e.FundAddress.AddressState),le(e.FundAddress.Postcode)),le(e.MemberFirstName),le(e.MemberLastName),le(e.BankAccountName),Au(e.BankAccountBsb)[0],le(e.BankAccountNumber),e.BankName)}function Oe(e,t,n){return n(e.tag===1?le(t):Xa(t,e.fields[0]))}function v0(e,t,n){switch(t.tag){case 1:{const r=u0(e.IsRegulatedFundAbn,t.fields[0],n.FundAbn);return[new ue(n.FundName,r[0],n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName),It(s=>new R(1,[s]),r[1])]}case 2:return[Oe(t.fields[0],n.FundEsa,r=>new ue(n.FundName,n.FundAbn,r,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),A()];case 3:return[Oe(t.fields[0],n.FundAddress.AddressLine1,r=>{let s;return new ue(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new _t(r,s.AddressLine2,s.City,s.AddressState,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),A()];case 4:return[Oe(t.fields[0],n.FundAddress.AddressLine2,r=>{let s;return new ue(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new _t(s.AddressLine1,r,s.City,s.AddressState,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),A()];case 5:return[Oe(t.fields[0],n.FundAddress.City,r=>{let s;return new ue(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new _t(s.AddressLine1,s.AddressLine2,r,s.AddressState,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),A()];case 6:return[Oe(t.fields[0],n.FundAddress.AddressState,r=>{let s;return new ue(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new _t(s.AddressLine1,s.AddressLine2,s.City,r,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),A()];case 7:return[Oe(t.fields[0],n.FundAddress.Postcode,r=>{let s;return new ue(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new _t(s.AddressLine1,s.AddressLine2,s.City,s.AddressState,r)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),A()];case 8:return[Oe(t.fields[0],n.MemberFirstName,r=>new ue(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,r,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),A()];case 9:return[Oe(t.fields[0],n.MemberLastName,r=>new ue(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,r,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),A()];case 10:return[Oe(t.fields[0],n.BankAccountName,r=>new ue(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,r,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),A()];case 11:{const r=m0(e.BsbLookup,t.fields[0],n.BankAccountBsb);return[new ue(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,r[0],n.BankAccountNumber,n.BankName),It(s=>new R(11,[s]),r[1])]}case 12:return[Oe(t.fields[0],n.BankAccountNumber,r=>new ue(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,r,n.BankName)),A()];case 13:{const r=ku(n);if(r.tag===1)return[y0(n),A()];{const s=r.fields[0];return[n,$h(new Fh(_m(s.FundName),bm(s.FundAbn),vm(s.FundEsa),Sm(s.FundAddressLine1),Am(s.FundAddressLine2),Fm(s.FundCity),Nm(s.FundState),Em(s.FundPostcode),Bm(s.MemberFirstName),Lm(s.MemberLastName),Dm(s.BankAccountName),Um(s.BankAccountBsb),Hm(s.BankAccountNumber)))]}}case 14:return[n,Bh()];default:return[Oe(t.fields[0],n.FundName,r=>new ue(r,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),A()]}}function x0(e){let t,n,r,s,o,i,a;const l=e.smsfChoice,u=e.backendService;let f;const c=b0(l);f=Ln(()=>Vn(()=>c,(x,Z)=>v0(u,x,Z),(x,Z)=>{}),void 0,void 0);const p=f[0],m=f[1],w=(x,Z)=>{m(x(new ci(1,[])))},b=(x,Z)=>{m(x(new ci(0,[Z])))};let g;g=ku(p).tag!==1;const k=$(h("form",S(v([["id","form"],["novalidate",""],(t=[h("div",S(v([["className","p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560"],(n=[h("p",{className:"sm:text-lg font-bold",children:"Fund details"}),Wm,h("div",S($((r=[(s=v([qm(new ye(p.FundName,L(w)(x=>new R(0,[x])),L(b)(x=>new R(0,[x])))),h(l0,{state:p.FundAbn,dispatch:x=>{m(new R(1,[x]))}}),Zm(new ye(p.FundEsa,L(w)(x=>new R(2,[x])),L(b)(x=>new R(2,[x])))),e0(new zm(new ye(p.FundAddress.AddressLine1,L(w)(x=>new R(3,[x])),L(b)(x=>new R(3,[x]))),new ye(p.FundAddress.AddressLine2,L(w)(x=>new R(4,[x])),L(b)(x=>new R(4,[x]))),new ye(p.FundAddress.City,L(w)(x=>new R(5,[x])),L(b)(x=>new R(5,[x]))),new ye(p.FundAddress.AddressState,L(w)(x=>new R(6,[x])),L(b)(x=>new R(6,[x]))),new ye(p.FundAddress.Postcode,L(w)(x=>new R(7,[x])),L(b)(x=>new R(7,[x]))))),h("div",S(v([["className","flex space-x-4"],(o=[t0(new ye(p.MemberFirstName,L(w)(x=>new R(8,[x])),L(b)(x=>new R(8,[x])))),n0(new ye(p.MemberLastName,L(w)(x=>new R(9,[x])),L(b)(x=>new R(9,[x]))))],["children",y.Children.toArray(Array.from(o))])]))),h("h3",{className:"text-lg font-bold mt-6",children:"Fund bank details"}),r0(new ye(p.BankAccountName,L(w)(x=>new R(10,[x])),L(b)(x=>new R(10,[x])))),h(w0,{state:p.BankAccountBsb,dispatch:x=>{m(new R(11,[x]))}}),s0(new ye(p.BankAccountNumber,L(w)(x=>new R(12,[x])),L(b)(x=>new R(12,[x]))))]),h("div",{children:y.Children.toArray(Array.from(s))}))],["children",y.Children.toArray(Array.from(r))]))))],["children",y.Children.toArray(Array.from(n))])]))),h("div",S(v([["className","flex justify-center mt-8"],(i=[h("div",S(v([["className","sm:max-w-320 w-full"],(a=[o0(g,x=>{x.preventDefault(),m(new R(13,[]))}),i0(x=>{x.preventDefault(),m(new R(14,[]))})],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(t))])]))));return h("div",{children:y.Children.toArray(Array.from(k))})}const S0=h("svg",S(v([["fill","none"],["height",47],["viewBox","0 0 48 47"],["width",48],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e,t,n,r;const s=v([h("rect",{width:48,height:47,rx:8,fill:"#FEE2E2"}),h("g",S(v([["clipPath","url(#clip0_153_10600)"],(e=v([h("path",{d:"M24 15V27",stroke:"#DC2626",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),h("path",S(v([(t="M24 34C24.8284 34 25.5 33.3284 25.5 32.5C25.5 31.6716 24.8284 31 24 31C23.1716 31 22.5 31.6716 22.5 32.5C22.5 33.3284 23.1716 34 24 34Z",["d",t]),["fill","#DC2626"]]))),h("path",{d:"M30.213 9H17.787L9 17.787V30.213L17.787 39H30.213L39 30.213V17.787L30.213 9Z",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]),["children",y.Children.toArray(Array.from(e))])]))),(n=$(h("clipPath",S(v([["id","clip0_153_10600"],(r=$(h("rect",{width:32,height:32,fill:"white",transform:"translate(8,8)"})),["children",y.Children.toArray(Array.from(r))])])))),h("defs",{children:y.Children.toArray(Array.from(n))}))]);return["children",y.Children.toArray(Array.from(s))]})()])));function C0(e){return h("h1",{className:"mt-4 mb-4 sm:mb-8 text-2xl sm:text-3xl font-semibold text-gray-900",children:e})}function Fu(e){let t,n,r,s;return h("div",S(v([(t="w-full h-full px-8 py-20 bg-white rounded border border-zinc-200 flex-col justify-start items-center gap-10 inline-flex",["className",t]),(n=[S0,C0("Something went wrong"),h("div",S(v([["className","justify-start items-center"],(r=[h("p",S(v([(s="text-center text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4 mb-4",["className",s]),["children",e]]))),h("p",{className:"text-center text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 mb-8",children:"Please try again later."})],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])])))}function Cr(e,t){let n;return h("div",S(v([["className",D(" ",["animate-pulse w-full relative",e,t])],(n=[h("div",{className:D(" ",["w-full left-0 top-0 absolute bg-gray-200 rounded",e])})],["children",y.Children.toArray(Array.from(n))])])))}const A0=Cr("h-9","max-w-96"),di=Cr("h-6","max-w-96"),k0=Cr("h-80","max-w-96"),F0=Cr("h-10","max-w-48"),Nu=(()=>{let e,t,n;const r=[h("div",S(v([(e="w-full h-full px-8 py-20 bg-white rounded border border-zinc-200 flex-col justify-start items-center gap-10 inline-flex",["className",e]),(t=[h("div",S(v([["className","max-w-96 w-full flex-col justify-start items-center gap-6 flex"],(n=[A0,h("div",{className:"self-stretch h-14 flex-col justify-start items-center gap-2 flex",children:y.Children.toArray([di,di])})],["children",y.Children.toArray(Array.from(n))])]))),k0,F0],["children",y.Children.toArray(Array.from(t))])])))];return h(xe,{},...r)})();function js(){return(js=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 N0=["context","children"];function M0(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,s){if(r==null)return{};var o,i,a={},l=Object.keys(r);for(i=0;i<l.length;i++)s.indexOf(o=l[i])>=0||(a[o]=r[o]);return a}(e,N0);return as(t,n)}function E0(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=h(M0,js({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var s=[],o={},i=0,a=n.attributes,l=n.childNodes;for(i=a.length;i--;)a[i].name!=="slot"&&(o[a[i].name]=a[i].value,o[Mu(a[i].name)]=a[i].value);for(i=l.length;i--;){var u=t(l[i],null),f=l[i].slot;f?o[f]=h(fi,{name:f},u):s[i]=u}var c=r?h(fi,null,s):s;return h(r||n.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?is:bt)(this._vdom,this._root)}function Mu(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function $0(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Mu(e)]=n,this._vdom=as(this._vdom,r),bt(this._vdom,this._root)}}function T0(){bt(this._vdom=null,this._root)}function fi(e,t){var n=this;return h("slot",js({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(s){s.stopPropagation(),s.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function B0(e,t,n,r){function s(){var o=Reflect.construct(HTMLElement,[],s);return o._vdomComponent=e,o._root=r&&r.shadow?o.attachShadow({mode:r.mode||"open"}):o,o}return(s.prototype=Object.create(HTMLElement.prototype)).constructor=s,s.prototype.connectedCallback=E0,s.prototype.attributeChangedCallback=$0,s.prototype.disconnectedCallback=T0,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),s.observedAttributes=n,n.forEach(function(o){Object.defineProperty(s.prototype,o,{get:function(){return this._vdom.props[o]},set:function(i){this._vdom?this.attributeChangedCallback(o,null,i):(this._props||(this._props={}),this._props[o]=i,this.connectedCallback());var a=typeof i;i!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(o,i)}})}),customElements.define(t||e.tagName||e.displayName||e.name,s)}function Gs(e,t){B0(e,t,void 0,{shadow:!0})}function I0(e){let t;const n=v([h("style",{children:[xs]}),h("div",S(v([["className","mx-auto max-w-7xl"],(t=[h("div",{className:"mx-auto max-w-3xl",children:y.Children.toArray([e])})],["children",y.Children.toArray(Array.from(t))])])))]);return h("div",{children:y.Children.toArray(Array.from(n))})}let Eu=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialise","LoadedSmsfChoice"]}},ts=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Failed"]}};function V0(){return[new ts(0,[]),$(e=>{e(new Eu(0,[]))})]}function L0(e,t,n){return t.tag===1?t.fields[0].tag===1?[new ts(2,[]),A()]:[new ts(1,[t.fields[0].fields[0].SmsfChoice]),Th()]:[n,it(r=>{at(r)},e,void 0,r=>new Eu(1,[r]))]}function O0(e){let t,n;const r=Vs(e.backendUrl,e.accessToken),s=(t=(n=r.GetSmsfChoice,o=>i=>L0(n,o,i)),Ln(()=>Vn(V0,z(t),(o,i)=>{}),void 0,void 0))[0];return I0(s.tag===1?h(x0,{backendService:r,smsfChoice:lr(s.fields[0])}):s.tag===2?Fu("We are unable to load the Self Managed Super Fund form at this time."):Nu)}function D0(){Gs(e=>h(O0,e),"apollo-super-smsf")}class R0 extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundName"]}}function rr(e){return e.fields[0]}function hi(e){return new R0(e)}class U0 extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundUsi"]}}function an(e){return e.fields[0]}function mi(e){return new U0(e)}class P0 extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberNumber"]}}function $u(e){let t;const n=Se("Member number",br(e));return t=n.tag===1?new d(1,[n.fields[0]]):ht("Member number",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new P0(t.fields[0])])}function H0(e){return Ce($u,e)}function z0(e){return e.fields[0]}class j0 extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberFirstName"]}}const G0="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function Tu(e){let t;const n=Se("Member given name(s)",e);return t=n.tag===1?new d(1,[n.fields[0]]):mn("Member given name(s)",G0,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new j0(t.fields[0])])}function W0(e){return Ce(Tu,e)}function q0(e){return e.fields[0]}class Z0 extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberLastName"]}}const J0="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function Bu(e){let t;const n=Se("Last Name",e);return t=n.tag===1?new d(1,[n.fields[0]]):mn("Last Name",J0,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Z0(t.fields[0])])}function K0(e){return Ce(Bu,e)}function Y0(e){return e.fields[0]}class Q0 extends O{constructor(t,n,r,s,o){super(),this.FundName=t,this.FundUsi=n,this.MemberNumber=r,this.MemberFirstName=s,this.MemberLastName=o}}const X0=h("svg",S(v([["fill","#facc15"],["className","h-5 w-5"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=$(h("path",S(v([["fill-rule","evenodd"],(e="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",["d",e]),["clipRule","evenodd"]]))));return["children",y.Children.toArray(Array.from(t))]})()]))),ep=h("div",S(v([["className","bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"],(()=>{let e,t,n;const r=[h("div",S(v([["className","flex"],(e=[h("div",{className:"flex-shrink-0",children:y.Children.toArray([X0])}),h("div",S(v([["className","ml-2"],(t=[h("ul",S(v([["className","list-disc list-outside ml-6 space-y-2 text-sm text-yellow-700 leading-5"],(n=[h("li",{children:["Make sure you are a current member of the fund before completing this step."]}),h("li",{children:["Please check that the fund USI is correct as some funds have similar names."]})],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))],["children",y.Children.toArray(Array.from(e))])])))];return["children",y.Children.toArray(Array.from(r))]})()])));function Ar(e){if(e==null)return je();{const t=e;return h("div",{className:D(" ",["mt-2 text-sm text-red-600"]),children:t})}}function Ws(e){return ee(M(()=>K(T("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>e?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ie()))))}function tp(e){let t,n;return h("div",S(v([["className","mt-3"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberNumber",children:"Member Number"}),h("div",S(v([["className","mt-1"],(n=[h("input",{id:"memberNumber","data-testid":"member-number-input",type:"text",value:e.Field.Value,className:D(" ",Ws(e.Field.ErrorMessage!=null)),onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Ar(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function np(e){let t,n;return h("div",S(v([["className","mt-3 w-1/2"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberGivenNames",children:"Given name(s)"}),h("div",S(v([["className","mt-1"],(n=[h("input",{type:"text",className:D(" ",Ws(e.Field.ErrorMessage!=null)),id:"memberGivenNames","data-testid":"member-given-names-input",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Ar(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function rp(e){let t,n;return h("div",S(v([["className","mt-3 w-1/2"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberLastNames",children:"Last name"}),h("div",S(v([["className","mt-1"],(n=[h("input",{type:"text",className:D(" ",Ws(e.Field.ErrorMessage!=null)),id:"memberLastName","data-testid":"member-last-name-input",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Ar(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function sp(e,t){let n;return h("div",S(v([["className","mb-4"],(n=[h("div",S(ee(M(()=>K(e?ie():T(["onClick",t]),M(()=>{let r;return T((r=[h("button",{className:D(" ",["px-4 py-2 text-base inline-flex items-center justify-center border font-medium","rounded-md shadow-sm pointer-events-auto border-transparent text-white bg-primary-base w-full","disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus","hover:bg-primary-hover"]),"data-testid":"continue-button",disabled:!e,children:"Continue",onClick:t})],["children",y.Children.toArray(Array.from(r))]))}))))))],["children",y.Children.toArray(Array.from(n))])])))}function op(e){let t,n,r;return h("div",S($((t=[h("a",S(v([["href","/"],(n=[h("div",S($((r=[h("button",{className:D(" ",["px-4 py-2 text-base inline-flex items-center justify-center border font-medium rounded-md shadow-sm pointer-events-auto border-gray-300 text-gray-700 bg-white w-full","disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus","hover:bg-gray-50"]),"data-testid":"back-button",children:"Back",onClick:e})],["children",y.Children.toArray(Array.from(r))]))))],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))]))))}class Jt extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Enter","DownArrow","UpArrow","Escape"]}}let Ne=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched","OnFocus","OnKeyboard","SelectFundIndex","FundSearch"]}};class At extends O{constructor(t,n){super(),this.Funds=t,this.SelectedIndex=n}}class tt extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SearchSuccess","FoundTooMany","SearchError"]}}class be extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Pristine","SearchNotStarted","Searching","SearchResult"]}}let te=class extends O{constructor(t,n,r,s,o,i){super(),this.IsTouched=t,this.HasFocus=n,this.SearchCorrelationId=r,this.SearchState=s,this.ValidatedFund=o,this.ErrorMessage=i}};function ip(e){if(e.HasFocus){const t=e.SearchState;switch(t.tag){case 1:return t.fields[0];case 2:return t.fields[0];case 3:switch(t.fields[1].tag){case 1:return t.fields[0];case 2:return t.fields[0];default:{const n=t.fields[1].fields[0].SelectedIndex;if(n==null)return t.fields[0];{const r=An(n,t.fields[1].fields[0].Funds);return`${r.ProductName} (${r.Usi})`}}}default:return cr(As(n=>`${rr(n[0])} (${an(n[1])})`,e.ValidatedFund),"")}}else{const t=e.ValidatedFund;if(t==null){const n=e.SearchState;switch(n.tag){case 1:return n.fields[0];case 2:return n.fields[0];case 3:return n.fields[0];default:return""}}else{const n=t[1];return`${rr(t[0])} (${an(n)})`}}}function ap(e){return As(t=>t[0],e.ValidatedFund)}function up(e){return As(t=>t[1],e.ValidatedFund)}function lp(e){return new te(!1,!1,void 0,new be(0,[]),e,void 0)}function Iu(e){return[new te(!0,!1,e.SearchCorrelationId,e.SearchState,e.ValidatedFund,e.ValidatedFund!=null?void 0:"Select a fund"),A()]}function cp(e,t,n){let r,s,o,i;const a=l=>V.Delay(()=>V.Bind(Sa(500),()=>V.Return(l)));switch(t.tag){case 1:return Iu(n);case 2:{const l=n.ValidatedFund,u=n.SearchState;let f,c,p,m;switch(l!=null&&u.tag===3&&u.fields[1].tag===0?(f=0,u.fields[0],c=u.fields[1].fields[0],p=l[0],m=l[1]):f=1,f){case 0:{const w=new At(c.Funds,Lc(b=>b.Usi===an(m),c.Funds));return[new te(n.IsTouched,!0,n.SearchCorrelationId,new be(3,[`${rr(p)} (${an(m)})`,new tt(0,[w])]),n.ValidatedFund,n.ErrorMessage),A()]}default:return[new te(n.IsTouched,!0,n.SearchCorrelationId,n.SearchState,n.ValidatedFund,n.ErrorMessage),A()]}}case 3:{const l=n.SearchState;let u,f,c;switch(l.tag===3&&l.fields[1].tag===0?(u=0,f=l.fields[1].fields[0],c=l.fields[0]):u=1,u){case 0:if($t(f.Funds)===0)return ce(t.fields[0],new Jt(3,[]))?[new te(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,n.ValidatedFund,n.ErrorMessage),A()]:[n,A()];{const p=f.SelectedIndex;switch(t.fields[0].tag){case 1:if(p==null)return[new te(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new be(3,[c,new tt(0,[new At(f.Funds,0)])]),n.ValidatedFund,n.ErrorMessage),A()];{const m=p|0;return[new te(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new be(3,[c,new tt(0,[new At(f.Funds,yc($t(f.Funds)-1,m+1))])]),n.ValidatedFund,n.ErrorMessage),A()]}case 0:if(p!=null){const m=An(p,f.Funds);return[new te(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,[hi(m.ProductName),mi(m.Usi)],void 0),A()]}else return[n,A()];case 3:return[new te(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,n.ValidatedFund,n.ErrorMessage),A()];default:return p==null?[new te(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new be(3,[c,new tt(0,[new At(f.Funds,0)])]),n.ValidatedFund,n.ErrorMessage),A()]:[new te(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new be(3,[c,new tt(0,[new At(f.Funds,Yr(0,p-1))])]),n.ValidatedFund,n.ErrorMessage),A()]}}default:return ce(t.fields[0],new Jt(3,[]))?[new te(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,n.ValidatedFund,n.ErrorMessage),A()]:[n,A()]}}case 4:{const l=n.SearchState;let u,f,c;switch(l.tag===3&&l.fields[1].tag===0&&t.fields[0]>=0&&t.fields[0]<$t(l.fields[1].fields[0].Funds)?(u=0,f=l.fields[1].fields[0],c=l.fields[0]):u=1,u){case 0:if(t.fields[1]){const p=An(t.fields[0],f.Funds);return[new te(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,[hi(p.ProductName),mi(p.Usi)],void 0),A()]}else return[new te(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new be(3,[c,new tt(0,[new At(f.Funds,t.fields[0])])]),n.ValidatedFund,n.ErrorMessage),A()];default:return[n,A()]}}case 5:if(t.fields[0].tag===1)if(ce(n.SearchCorrelationId,t.fields[1])){const l=n.SearchState;return l.tag===2?[new te(n.IsTouched,n.HasFocus,void 0,new be(3,[l.fields[0],t.fields[0].fields[0].tag===1?new tt(2,[t.fields[0].fields[0].fields[0]]):(r=t.fields[0].fields[0].fields[0],r.Result.tag===0?new tt(0,[new At(Pc(u=>u.ProductName,r.Data,{Compare:ar}),void 0)]):new tt(1,[]))]),n.ValidatedFund,n.ErrorMessage),A()]:[new te(n.IsTouched,n.HasFocus,void 0,n.SearchState,n.ValidatedFund,n.ErrorMessage),A()]}else return[n,A()];else return[n,ce(n.SearchCorrelationId,t.fields[1])?it(l=>{at(l)},e,[t.fields[0].fields[0][0],t.fields[0].fields[0][1]],l=>{const u=(f=>[new Je(1,[f]),t.fields[1]])(l);return new Ne(5,[u[0],u[1]])}):A()];default:{const l=n.SearchState;let u;switch(l.tag){case 2:{l.fields[0]!==t.fields[0]?(u=1,l.fields[0]):u=2;break}case 3:{t.fields[0]!==l.fields[0]?(u=3,l.fields[0]):u=4;break}default:u=0}switch(u){case 0:if(t.fields[0].length>=3){const f=Tr();return[new te(n.IsTouched,n.HasFocus,f,new be(2,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),it(c=>{at(c)},a,(s=[new Je(0,[[t.fields[0],25]]),f],new Ne(5,[s[0],s[1]])),c=>c)]}else return[new te(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new be(1,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),A()];case 1:if(t.fields[0].length>=3){const f=Tr();return[new te(n.IsTouched,n.HasFocus,f,new be(2,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),it(c=>{at(c)},a,(o=[new Je(0,[[t.fields[0],25]]),f],new Ne(5,[o[0],o[1]])),c=>c)]}else return[new te(n.IsTouched,n.HasFocus,void 0,new be(1,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),A()];case 2:return[n,A()];case 3:if(t.fields[0].length>=3){const f=Tr();return[new te(n.IsTouched,n.HasFocus,f,new be(2,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),it(c=>{at(c)},a,(i=[new Je(0,[[t.fields[0],25]]),f],new Ne(5,[i[0],i[1]])),c=>c)]}else return[new te(n.IsTouched,n.HasFocus,void 0,new be(1,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),A()];default:return[n,A()]}}}}function dp(e){let t;return h("div",S(v([["className","mt-3"],(t=[h("label",{className:"text-sm font-medium text-gray-700",children:"Fund USI",htmlFor:"fundUsi"}),h("div",{id:"fundUsi",className:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-sm",children:an(e),"data-testid":"fund-usi"})],["children",y.Children.toArray(Array.from(t))])])))}function _n(e){return h("span",{className:"cursor-pointer text-gray-500 py-1.5 pl-4",children:e})}function fp(e,t){let n;const r=e.SearchState;let s,o;switch(r.tag){case 2:{s=1;break}case 3:{switch(r.fields[1].tag){case 2:{s=3;break}case 0:{$t(r.fields[1].fields[0].Funds)===0?(s=4,r.fields[1].fields[0]):(s=5,o=r.fields[1].fields[0]);break}default:s=2}break}default:s=0}switch(s){case 0:return _n("Start typing to find the results");case 1:return _n("Searching...");case 2:return _n("Keep typing to narrow down your search.");case 3:return _n("Search failed.");case 4:return _n("No items match your search");default:return h("div",S($((n=ee(M(()=>Ue(i=>h("div",{className:D(" ",ee(M(()=>K(T("cursor-pointer text-wrap py-1.5 pl-4"),M(()=>ce(o.SelectedIndex,i)?T("bg-primary-light"):ie()))))),onClick:a=>{let l;t((l=[i,!0],new Ne(4,[l[0],l[1]])))},onMouseEnter:a=>{let l;t((l=[i,!1],new Ne(4,[l[0],l[1]])))},onMouseDown:a=>{a.preventDefault()},children:`${An(i,o.Funds).ProductName} (${An(i,o.Funds).Usi})`}),Ka(0,1,$t(o.Funds)-1)))),["children",y.Children.toArray(Array.from(n))]))))}}function hp(e){const t=e.dispatch,n=e.state,r=n.IsTouched&&n.ErrorMessage!=null,s=y.useRef(void 0),o=[n.HasFocus];y.useEffect(()=>{n.HasFocus===!1&&Bs(a=>{a.blur()},ec(s.current))},o);const i=ee(M(()=>{let a,l;return K(T(h("div",S(v([["className","relative mt-3"],(a=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundName",children:"Fund Name"}),h("div",S(v([["className","mt-1"],["onBlur",u=>{t(new Ne(1,[]))}],(l=ee(M(()=>K(T(h("input",{id:"fundName","data-testid":"fund-search-input",placeholder:"Type to search by name or USI...",type:"text",value:ip(n),inputMode:"search",className:D(" ",ee(M(()=>K(T("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>K(r?T("border-red-300 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ie(),M(()=>r&&!n.HasFocus?T("text-red-900"):ie()))))))),onKeyUp:u=>{switch(u.key){case"Enter":{t(new Ne(3,[new Jt(0,[])]));break}case"ArrowDown":{t(new Ne(3,[new Jt(1,[])]));break}case"ArrowUp":{t(new Ne(3,[new Jt(2,[])]));break}case"Escape":{t(new Ne(3,[new Jt(3,[])]));break}}u.preventDefault()},onChange:u=>{t(new Ne(0,[u.target.value]))},onFocus:u=>{t(new Ne(2,[]))},ref:s})),M(()=>{let u,f;return n.HasFocus?T(h("div",S(v([(u="max-h-[min(320px,50vh)] absolute shadow rounded-md border mt-0.5 overflow-auto w-full bg-white z-10 py-2 text-sm",["className",u]),(f=[fp(n,t)],["children",y.Children.toArray(Array.from(f))])])))):T(Ar(n.ErrorMessage))})))),["children",y.Children.toArray(Array.from(l))])])))],["children",y.Children.toArray(Array.from(a))])])))),M(()=>{const u=n.ValidatedFund;return u!=null?T(dp(u[1])):T(je())}))}));return h(xe,{},...i)}class mp extends O{constructor(t,n,r,s,o){super(),this.FundName=t,this.FundUsi=n,this.MemberNumber=r,this.MemberFirstName=s,this.MemberLastName=o}}function qs(e,t){const n={detail:t};return new CustomEvent(e,n)}const pp=qs("byof-loaded",{sender:"super-byof"}),wp=qs("byof-cancelled",{sender:"super-byof"});function _p(e){return qs("byof-completed",{fundName:e.FundName,fundUsi:e.FundUsi,memberFirstName:e.MemberFirstName,memberLastName:e.MemberLastName,memberNumber:e.MemberNumber,sender:"super-byof"})}class Zs extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loaded","Cancelled","Completed"]}}function Js(e){let t;t=e.tag===1?wp:e.tag===2?_p(e.fields[0]):pp,document.dispatchEvent(t)}function gp(e,t){Js(new Zs(2,[e]))}function bp(e){Js(new Zs(0,[]))}function yp(e){Js(new Zs(1,[]))}class pi extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}}let Ze=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFundName","UpdateMemberNumber","UpdateMemberFirstName","UpdateMemberLastName","Submit","Cancel"]}},Kt=class extends O{constructor(t,n,r,s){super(),this.Fund=t,this.MemberNumber=n,this.MemberFirstName=r,this.MemberLastName=s}};const vp=new Kt(lp(void 0),H0(void 0),W0(void 0),K0(void 0));function xp(){return[vp,He(e=>{bp()})]}function Vu(e){let t,n;const r=ap(e.Fund);if(n=r==null?new d(1,["Invalid fund name"]):new d(0,[r]),t=n.tag===1?new d(1,[$(n.fields[0])]):new d(0,[n.fields[0]]),t.tag===1)return new d(1,[t.fields[0]]);{let s,o;const i=up(e.Fund);if(o=i==null?new d(1,["Invalid fund usi"]):new d(0,[i]),s=o.tag===1?new d(1,[$(o.fields[0])]):new d(0,[o.fields[0]]),s.tag===1)return new d(1,[s.fields[0]]);{let a;const l=$u(e.MemberNumber.Value);if(a=l.tag===1?new d(1,[$(l.fields[0])]):new d(0,[l.fields[0]]),a.tag===1)return new d(1,[a.fields[0]]);{let u;const f=Tu(e.MemberFirstName.Value);if(u=f.tag===1?new d(1,[$(f.fields[0])]):new d(0,[f.fields[0]]),u.tag===1)return new d(1,[u.fields[0]]);{let c;const p=Bu(e.MemberLastName.Value);return c=p.tag===1?new d(1,[$(p.fields[0])]):new d(0,[p.fields[0]]),c.tag===1?new d(1,[c.fields[0]]):new d(0,[new Q0(t.fields[0],s.fields[0],a.fields[0],u.fields[0],c.fields[0])])}}}}}function Sp(e){return new Kt(Iu(e.Fund)[0],le(e.MemberNumber),le(e.MemberFirstName),le(e.MemberLastName))}function Vr(e,t,n){return n(e.tag===1?le(t):Xa(t,e.fields[0]))}function Cp(e,t,n){switch(t.tag){case 1:return[Vr(t.fields[0],n.MemberNumber,r=>new Kt(n.Fund,r,n.MemberFirstName,n.MemberLastName)),A()];case 2:return[Vr(t.fields[0],n.MemberFirstName,r=>new Kt(n.Fund,n.MemberNumber,r,n.MemberLastName)),A()];case 3:return[Vr(t.fields[0],n.MemberLastName,r=>new Kt(n.Fund,n.MemberNumber,n.MemberFirstName,r)),A()];case 4:{const r=Vu(n);if(r.tag===1)return[Sp(n),A()];{const s=r.fields[0],o=new mp(rr(s.FundName),an(s.FundUsi),z0(s.MemberNumber),q0(s.MemberFirstName),Y0(s.MemberLastName));return[n,He(i=>{gp(o)})]}}case 5:return[n,He(r=>{yp()})];default:{const r=cp(e.GetAustralianFundList,t.fields[0],n.Fund);return[new Kt(r[0],n.MemberNumber,n.MemberFirstName,n.MemberLastName),It(s=>new Ze(0,[s]),r[1])]}}}function Ap(e){let t,n,r,s,o,i,a;const l=e.backendService,u=Ln(()=>Vn(xp,(_,k)=>Cp(l,_,k),(_,k)=>{}),void 0,void 0),f=u[0],c=u[1],p=(_,k)=>{c(_(new pi(1,[])))},m=(_,k)=>{c(_(new pi(0,[k])))};let w;w=Vu(f).tag!==1;const g=$(h("form",S(v([["id","form"],["novalidate",""],(t=[h("div",S(v([["className","p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560"],(n=[h("p",{className:"sm:text-lg font-bold",children:"Fund details"}),ep,h("div",S($((r=[(s=v([h(hp,{state:f.Fund,dispatch:_=>{c(new Ze(0,[_]))}}),tp(new ye(f.MemberNumber,L(p)(_=>new Ze(1,[_])),L(m)(_=>new Ze(1,[_])))),h("div",S(v([["className","flex space-x-4"],(o=[np(new ye(f.MemberFirstName,L(p)(_=>new Ze(2,[_])),L(m)(_=>new Ze(2,[_])))),rp(new ye(f.MemberLastName,L(p)(_=>new Ze(3,[_])),L(m)(_=>new Ze(3,[_]))))],["children",y.Children.toArray(Array.from(o))])])))]),h("div",{children:y.Children.toArray(Array.from(s))}))],["children",y.Children.toArray(Array.from(r))]))))],["children",y.Children.toArray(Array.from(n))])]))),h("div",S(v([["className","flex justify-center mt-8"],(i=[h("div",S(v([["className","sm:max-w-320 w-full"],(a=[sp(w,_=>{_.preventDefault(),c(new Ze(4,[]))}),op(_=>{_.preventDefault(),c(new Ze(5,[]))})],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(t))])]))));return h("div",{children:y.Children.toArray(Array.from(g))})}function kp(e){let t;const n=v([h("style",{children:[xs]}),h("div",S(v([["className","mx-auto max-w-7xl"],(t=[h("div",{className:"mx-auto max-w-3xl",children:y.Children.toArray([e])})],["children",y.Children.toArray(Array.from(t))])])))]);return h("div",{children:y.Children.toArray(Array.from(n))})}function Fp(e){let t;return kp((t=Vs(e.backendUrl,e.accessToken),h(Ap,{backendService:t})))}function Np(){Gs(e=>h(Fp,e),"apollo-super-byof")}class Lr extends O{constructor(t){super(),this.FundUsi=t}}class Mp extends O{constructor(t,n){super(),this.FundName=t,this.FundUsi=n}}function Ks(e,t){const n={detail:t};return new CustomEvent(e,n)}function Ep(e){return Ks("default-fund-loaded",{fundUsi:lr(e.FundUsi),sender:"super-default-fund"})}const $p=Ks("default-fund-cancelled",{sender:"super-default-fund"});function Tp(e){return Ks("default-fund-completed",{fundName:e.FundName,fundUsi:e.FundUsi,sender:"super-default-fund"})}class Ys extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loaded","Cancelled","Completed"]}}function Qs(e){let t;console.log(ve("Dispatching DefaultFund event:"),e),t=e.tag===1?$p:e.tag===2?Tp(e.fields[0]):Ep(e.fields[0]),document.dispatchEvent(t)}function Bp(e,t){Qs(new Ys(2,[e]))}function Or(e,t){Qs(new Ys(0,[e]))}function Ip(e){Qs(new Ys(1,[]))}class wi extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Submit","Cancel"]}}class Vp extends O{constructor(t,n){super(),this.FundName=t,this.FundUsi=n}}class Dr extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NoDefaultFund","InvalidDefaultFund","ValidDefaultFund"]}}function Lp(e,t,n){let r,s,o;const i=e.Usi;if(i!=null)if(t!=null){const a=t,l=i;return[new Dr(2,[new Vp(a.ProductName,l)]),He((r=new Lr(l),u=>{Or(r)}))]}else{const a=i;return[new Dr(1,[]),He((s=new Lr(a),l=>{Or(s)}))]}else return[new Dr(0,[]),He((o=new Lr(void 0),a=>{Or(o)}))]}function Op(e,t){if(e.tag===1)return[t,He(n=>{Ip()})];if(t.tag===2){const n=t.fields[0],r=new Mp(n.FundName,n.FundUsi);return[t,He(s=>{Bp(r)})]}else return[t,A()]}const Dp=h("svg",S(v([["fill","#facc15"],["className","h-5 w-5"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=$(h("path",S(v([["fill-rule","evenodd"],(e="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",["d",e]),["clipRule","evenodd"]]))));return["children",y.Children.toArray(Array.from(t))]})()]))),Rp=h("div",S(v([["className","bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"],(()=>{let e,t,n;const r=[h("div",S(v([["className","flex"],(e=[h("div",{className:"flex-shrink-0",children:y.Children.toArray([Dp])}),h("div",S(v([["className","ml-3 text-sm text-yellow-700 leading-5"],(t=[h("span",S($((n="It looks like your employer has not specified a default fund, please contact them if you'd like to use your company's default fund.",["children",n]))))],["children",y.Children.toArray(Array.from(t))])])))],["children",y.Children.toArray(Array.from(e))])])))];return["children",y.Children.toArray(Array.from(r))]})()])));function _i(e,t){let n,r;return h("div",S(v([["className","mt-3"],(n=[h("label",{className:"text-sm font-medium text-gray-700",children:e}),h("div",S(v([(r="mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm",["className",r]),["children",t]])))],["children",y.Children.toArray(Array.from(n))])])))}const Up=h("div",S(v([["className","text-sm text-gray-700"],(()=>{let e;const t=[h("label",{className:"font-semibold text-gray-900",children:"By clicking “Continue”, you acknowledge that:"}),h("ul",S(v([["className","list-disc list-outside pl-5"],(e=[h("li",{className:"mt-2",children:"you are choosing to join your employer's default super fund;"}),h("li",{className:"mt-2",children:"your employer will open a new account for you with their default super fund; and"}),h("li",{className:"mt-2",children:"your application to join is subject to Trustee approval."})],["children",y.Children.toArray(Array.from(e))])])))];return["children",y.Children.toArray(Array.from(t))]})()]))),Pp=h("div",{className:"mt-8 mb-8 h-px w-full bg-gray-200"});function Hp(e,t){let n;return h("div",S(v([["className","mb-4"],(n=[h("button",{className:D(" ",ee(M(()=>K(T("w-full inline-flex justify-center py-2 px-4 text-sm font-medium rounded-lg transition-all text-white"),M(()=>T("cursor-pointer bg-primary-base hover:bg-primary-hover")))))),disabled:!e,onClick:t,children:"Continue"})],["children",y.Children.toArray(Array.from(n))])])))}function zp(e){let t;const n=$(h("button",S(v([(t="w-full inline-flex justify-center py-2 px-4 border border-gray-300 text-sm font-medium rounded-lg text-gray-700 bg-white hover:bg-gray-50 cursor-pointer",["className",t]),["onClick",e],["children","Back"]]))));return h("div",{children:y.Children.toArray(Array.from(n))})}function jp(e){let t,n,r;const s=e.fundLookupResult,o=e.defaultFundChoice,i=Ln(()=>Vn(()=>Lp(o,s),Op,(c,p)=>{}),void 0,void 0),a=i[0],l=i[1],u=a.tag===2,f=v([h("div",S(v([["className","p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560"],(t=ee(M(()=>K(T(h("p",{className:"sm:text-lg font-bold mb-3",children:"Fund details"})),M(()=>{let c;const p=a;switch(p.tag){case 2:{const m=p.fields[0];return T((c=v([_i("Fund Name",m.FundName),_i("Fund USI",m.FundUsi),Pp,Up]),h("div",{children:y.Children.toArray(Array.from(c))})))}default:return T(Rp)}})))),["children",y.Children.toArray(Array.from(t))])]))),h("div",S(v([["className","flex justify-center mt-8"],(n=[h("div",S(v([["className","sm:max-w-320 w-full"],(r=ee(M(()=>K(u?T(Hp(!0,c=>{c.preventDefault(),l(new wi(0,[]))})):ie(),M(()=>T(zp(c=>{c.preventDefault(),l(new wi(1,[]))})))))),["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])])))]);return h("div",{children:y.Children.toArray(Array.from(f))})}function Gp(e){let t;const n=v([h("style",{children:[xs]}),h("div",S(v([["className","mx-auto max-w-7xl"],(t=[h("div",{className:"mx-auto max-w-3xl",children:y.Children.toArray([e])})],["children",y.Children.toArray(Array.from(t))])])))]);return h("div",{children:y.Children.toArray(Array.from(n))})}class ns extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialise","LoadedDefaultChoice","LoadedFundDetails"]}}class gn extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Failed"]}}function Wp(){return[new gn(0,[]),$(e=>{e(new ns(0,[]))})]}function qp(e,t,n,r){switch(n.tag){case 1:if(n.fields[0].tag===1)return[new gn(2,[]),A()];{const s=n.fields[0].fields[0].Usi;if(s==null)return[new gn(1,[n.fields[0].fields[0],void 0]),A()];{const o=s;return[r,it(i=>{at(i)},()=>t([o,1]),void 0,i=>new ns(2,[n.fields[0].fields[0],i]))]}}case 2:return n.fields[1].tag===1?[new gn(1,[n.fields[0],void 0]),A()]:[new gn(1,[n.fields[0],Nc(n.fields[1].fields[0].Data)]),A()];default:return[r,it(s=>{at(s)},e,void 0,s=>new ns(1,[s]))]}}function Zp(e){let t,n,r;const s=Vs(e.backendUrl,e.accessToken),o=(t=(n=s.GetDefaultFundChoice,r=s.GetAustralianFundList,i=>a=>qp(n,r,i,a)),Ln(()=>Vn(Wp,z(t),(i,a)=>{}),void 0,void 0))[0];return Gp(o.tag===2?Fu("We are unable to load the Default Fund form at this time."):o.tag===1?h(jp,{defaultFundChoice:o.fields[0],fundLookupResult:lr(o.fields[1])}):Nu)}function Jp(){Gs(e=>h(Zp,e),"apollo-super-default")}D0();Np();Jp();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/apollo-super-selection-app",
3
- "version": "0.4.52644",
3
+ "version": "0.4.55992",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist/"