@flarehr/apollo-super-selection-app 5.52.9712 → 5.53.14680
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 Qt,F,Fs,ft,po,Ms,lr,kr,cr,dr,Ts,Wt={},$s=[],Ua=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Mn=Array.isArray;function Ze(e,t){for(var n in t)e[n]=t[n];return e}function Bs(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function w(e,t,n){var r,o,s,i={};for(s in t)s=="key"?r=t[s]:s=="ref"?o=t[s]:i[s]=t[s];if(arguments.length>2&&(i.children=arguments.length>3?Qt.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)i[s]===void 0&&(i[s]=e.defaultProps[s]);return jt(e,i,r,o,null)}function jt(e,t,n,r,o){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++Fs,__i:-1,__u:0};return o==null&&F.vnode!=null&&F.vnode(s),s}function Is(){return{current:null}}function be(e){return e.children}function Te(e,t){this.props=e,this.context=t}function Nt(e,t){if(t==null)return e.__?Nt(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"?Nt(e):null}function Os(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 Os(e)}}function fr(e){(!e.__d&&(e.__d=!0)&&ft.push(e)&&!bn.__r++||po!==F.debounceRendering)&&((po=F.debounceRendering)||Ms)(bn)}function bn(){var e,t,n,r,o,s,i,a;for(ft.sort(lr);e=ft.shift();)e.__d&&(t=ft.length,r=void 0,s=(o=(n=e).__v).__e,i=[],a=[],n.__P&&((r=Ze({},o)).__v=o.__v+1,F.vnode&&F.vnode(r),Cr(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[s]:null,i,s??Nt(o),!!(32&o.__u),a),r.__v=o.__v,r.__.__k[r.__i]=r,Rs(i,r,a),r.__e!=s&&Os(r)),ft.length>t&&ft.sort(lr));bn.__r=0}function Vs(e,t,n,r,o,s,i,a,c,l,f){var u,m,h,p,g,_=r&&r.__k||$s,y=t.length;for(n.__d=c,za(n,t,_),c=n.__d,u=0;u<y;u++)(h=n.__k[u])!=null&&(m=h.__i===-1?Wt:_[h.__i]||Wt,h.__i=u,Cr(e,h,m,o,s,i,a,c,l,f),p=h.__e,h.ref&&m.ref!=h.ref&&(m.ref&&Ar(m.ref,null,h),f.push(h.ref,h.__c||p,h)),g==null&&p!=null&&(g=p),65536&h.__u||m.__k===h.__k?c=Ls(h,c,e):typeof h.type=="function"&&h.__d!==void 0?c=h.__d:p&&(c=p.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=c,n.__e=g}function za(e,t,n){var r,o,s,i,a,c=t.length,l=n.length,f=l,u=0;for(e.__k=[],r=0;r<c;r++)(o=t[r])!=null&&typeof o!="boolean"&&typeof o!="function"?(i=r+u,(o=e.__k[r]=typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?jt(null,o,null,null,null):Mn(o)?jt(be,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?jt(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,s=null,(a=o.__i=Ha(o,n,i,f))!==-1&&(f--,(s=n[a])&&(s.__u|=131072)),s==null||s.__v===null?(a==-1&&u--,typeof o.type!="function"&&(o.__u|=65536)):a!==i&&(a==i-1?u--:a==i+1?u++:(a>i?u--:u++,o.__u|=65536))):o=e.__k[r]=null;if(f)for(r=0;r<l;r++)(s=n[r])!=null&&!(131072&s.__u)&&(s.__e==e.__d&&(e.__d=Nt(s)),Ps(s,s))}function Ls(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=Ls(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Nt(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Ke(e,t){return t=t||[],e==null||typeof e=="boolean"||(Mn(e)?e.some(function(n){Ke(n,t)}):t.push(e)),t}function Ha(e,t,n,r){var o=e.key,s=e.type,i=n-1,a=n+1,c=t[n];if(c===null||c&&o==c.key&&s===c.type&&!(131072&c.__u))return n;if(r>(c!=null&&!(131072&c.__u)?1:0))for(;i>=0||a<t.length;){if(i>=0){if((c=t[i])&&!(131072&c.__u)&&o==c.key&&s===c.type)return i;i--}if(a<t.length){if((c=t[a])&&!(131072&c.__u)&&o==c.key&&s===c.type)return a;a++}}return-1}function wo(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Ua.test(t)?n:n+"px"}function cn(e,t,n,r,o){var s;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||wo(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||wo(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")s=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=kr,e.addEventListener(t,s?dr:cr,s)):e.removeEventListener(t,s?dr:cr,s);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function _o(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=kr++;else if(t.t<n.u)return;return n(F.event?F.event(t):t)}}}function Cr(e,t,n,r,o,s,i,a,c,l){var f,u,m,h,p,g,_,y,S,b,H,ne,ke,lt,ct,nt,he=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),s=[a=t.__e=n.__e]),(f=F.__b)&&f(t);e:if(typeof he=="function")try{if(y=t.props,S="prototype"in he&&he.prototype.render,b=(f=he.contextType)&&r[f.__c],H=f?b?b.props.value:f.__:r,n.__c?_=(u=t.__c=n.__c).__=u.__E:(S?t.__c=u=new he(y,H):(t.__c=u=new Te(y,H),u.constructor=he,u.render=Ga),b&&b.sub(u),u.props=y,u.state||(u.state={}),u.context=H,u.__n=r,m=u.__d=!0,u.__h=[],u._sb=[]),S&&u.__s==null&&(u.__s=u.state),S&&he.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Ze({},u.__s)),Ze(u.__s,he.getDerivedStateFromProps(y,u.__s))),h=u.props,p=u.state,u.__v=t,m)S&&he.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),S&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(S&&he.getDerivedStateFromProps==null&&y!==h&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(y,H),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(y,u.__s,H)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=y,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(ln){ln&&(ln.__=t)}),ne=0;ne<u._sb.length;ne++)u.__h.push(u._sb[ne]);u._sb=[],u.__h.length&&i.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(y,u.__s,H),S&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(h,p,g)})}if(u.context=H,u.props=y,u.__P=e,u.__e=!1,ke=F.__r,lt=0,S){for(u.state=u.__s,u.__d=!1,ke&&ke(t),f=u.render(u.props,u.state,u.context),ct=0;ct<u._sb.length;ct++)u.__h.push(u._sb[ct]);u._sb=[]}else do u.__d=!1,ke&&ke(t),f=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++lt<25);u.state=u.__s,u.getChildContext!=null&&(r=Ze(Ze({},r),u.getChildContext())),S&&!m&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(h,p)),Vs(e,Mn(nt=f!=null&&f.type===be&&f.key==null?f.props.children:f)?nt:[nt],t,n,r,o,s,i,a,c,l),u.base=t.__e,t.__u&=-161,u.__h.length&&i.push(u),_&&(u.__E=u.__=null)}catch(ln){if(t.__v=null,c||s!=null){for(t.__u|=c?160:32;a&&a.nodeType===8&&a.nextSibling;)a=a.nextSibling;s[s.indexOf(a)]=null,t.__e=a}else t.__e=n.__e,t.__k=n.__k;F.__e(ln,t,n)}else s==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=ja(n.__e,t,n,r,o,s,i,c,l);(f=F.diffed)&&f(t)}function Rs(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Ar(n[r],n[++r],n[++r]);F.__c&&F.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(s){s.call(o)})}catch(s){F.__e(s,o.__v)}})}function ja(e,t,n,r,o,s,i,a,c){var l,f,u,m,h,p,g,_=n.props,y=t.props,S=t.type;if(S==="svg"?o="http://www.w3.org/2000/svg":S==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),s!=null){for(l=0;l<s.length;l++)if((h=s[l])&&"setAttribute"in h==!!S&&(S?h.localName===S:h.nodeType===3)){e=h,s[l]=null;break}}if(e==null){if(S===null)return document.createTextNode(y);e=document.createElementNS(o,S,y.is&&y),a&&(F.__m&&F.__m(t,s),a=!1),s=null}if(S===null)_===y||a&&e.data===y||(e.data=y);else{if(s=s&&Qt.call(e.childNodes),_=n.props||Wt,!a&&s!=null)for(_={},l=0;l<e.attributes.length;l++)_[(h=e.attributes[l]).name]=h.value;for(l in _)if(h=_[l],l!="children"){if(l=="dangerouslySetInnerHTML")u=h;else if(!(l in y)){if(l=="value"&&"defaultValue"in y||l=="checked"&&"defaultChecked"in y)continue;cn(e,l,null,h,o)}}for(l in y)h=y[l],l=="children"?m=h:l=="dangerouslySetInnerHTML"?f=h:l=="value"?p=h:l=="checked"?g=h:a&&typeof h!="function"||_[l]===h||cn(e,l,h,_[l],o);if(f)a||u&&(f.__html===u.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(u&&(e.innerHTML=""),Vs(e,Mn(m)?m:[m],t,n,r,S==="foreignObject"?"http://www.w3.org/1999/xhtml":o,s,i,s?s[0]:n.__k&&Nt(n,0),a,c),s!=null)for(l=s.length;l--;)Bs(s[l]);a||(l="value",S==="progress"&&p==null?e.removeAttribute("value"):p!==void 0&&(p!==e[l]||S==="progress"&&!p||S==="option"&&p!==_[l])&&cn(e,l,p,_[l],o),l="checked",g!==void 0&&g!==e[l]&&cn(e,l,g,_[l],o))}return e}function Ar(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){F.__e(o,n)}}function Ps(e,t,n){var r,o;if(F.unmount&&F.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Ar(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){F.__e(s,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Ps(r[o],t,n||typeof e.type!="function");n||Bs(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Ga(e,t,n){return this.constructor(e,n)}function it(e,t,n){var r,o,s,i;F.__&&F.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,s=[],i=[],Cr(t,e=(!r&&n||t).__k=w(be,null,[e]),o||Wt,Wt,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?Qt.call(t.childNodes):null,s,!r&&n?n:o?o.__e:t.firstChild,r,i),Rs(s,e,i)}function Er(e,t){it(e,t,Er)}function Nr(e,t,n){var r,o,s,i,a=Ze({},e.props);for(s in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)s=="key"?r=t[s]:s=="ref"?o=t[s]:a[s]=t[s]===void 0&&i!==void 0?i[s]:t[s];return arguments.length>2&&(a.children=arguments.length>3?Qt.call(arguments,2):n),jt(e.type,a,r||e.key,o||e.ref,null)}function Ds(e,t){var n={__c:t="__cC"+Ts++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,s;return this.getChildContext||(o=[],(s={})[t]=this,this.getChildContext=function(){return s},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&o.some(function(a){a.__e=!0,fr(a)})},this.sub=function(i){o.push(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){o&&o.splice(o.indexOf(i),1),a&&a.call(i)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Qt=$s.slice,F={__e:function(e,t,n,r){for(var o,s,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((s=o.constructor)&&s.getDerivedStateFromError!=null&&(o.setState(s.getDerivedStateFromError(e)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(a){e=a}throw e}},Fs=0,Te.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Ze({},this.state),typeof e=="function"&&(e=e(Ze({},n),this.props)),e&&Ze(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),fr(this))},Te.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),fr(this))},Te.prototype.render=be,ft=[],Ms=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,lr=function(e,t){return e.__v.__b-t.__v.__b},bn.__r=0,kr=0,cr=_o(!1),dr=_o(!0),Ts=0;var Xe,D,Zn,go,Ft=0,Us=[],J=F,bo=J.__b,yo=J.__r,vo=J.diffed,So=J.__c,xo=J.unmount,ko=J.__;function gt(e,t){J.__h&&J.__h(D,e,Ft||t),Ft=0;var n=D.__H||(D.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Lt(e){return Ft=1,Tn(zs,e)}function Tn(e,t,n){var r=gt(Xe++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):zs(void 0,t),function(a){var c=r.__N?r.__N[0]:r.__[0],l=r.t(c,a);c!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=D,!D.u)){var o=function(a,c,l){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(m){return!!m.__c});if(f.every(function(m){return!m.__N}))return!s||s.call(this,a,c,l);var u=!1;return f.forEach(function(m){if(m.__N){var h=m.__[0];m.__=m.__N,m.__N=void 0,h!==m.__[0]&&(u=!0)}}),!(!u&&r.__c.props===a)&&(!s||s.call(this,a,c,l))};D.u=!0;var s=D.shouldComponentUpdate,i=D.componentWillUpdate;D.componentWillUpdate=function(a,c,l){if(this.__e){var f=s;s=void 0,o(a,c,l),s=f}i&&i.call(this,a,c,l)},D.shouldComponentUpdate=o}return r.__N||r.__}function en(e,t){var n=gt(Xe++,3);!J.__s&&Or(n.__H,t)&&(n.__=e,n.i=t,D.__H.__h.push(n))}function Rt(e,t){var n=gt(Xe++,4);!J.__s&&Or(n.__H,t)&&(n.__=e,n.i=t,D.__h.push(n))}function Fr(e){return Ft=5,tn(function(){return{current:e}},[])}function Mr(e,t,n){Ft=6,Rt(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 tn(e,t){var n=gt(Xe++,7);return Or(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Tr(e,t){return Ft=8,tn(function(){return e},t)}function $r(e){var t=D.context[e.__c],n=gt(Xe++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(D)),t.props.value):e.__}function Br(e,t){J.useDebugValue&&J.useDebugValue(t?t(e):e)}function Wa(e){var t=gt(Xe++,10),n=Lt();return t.__=e,D.componentDidCatch||(D.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Ir(){var e=gt(Xe++,11);if(!e.__){for(var t=D.__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 qa(){for(var e;e=Us.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(mn),e.__H.__h.forEach(hr),e.__H.__h=[]}catch(t){e.__H.__h=[],J.__e(t,e.__v)}}J.__b=function(e){D=null,bo&&bo(e)},J.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ko&&ko(e,t)},J.__r=function(e){yo&&yo(e),Xe=0;var t=(D=e.__c).__H;t&&(Zn===D?(t.__h=[],D.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(mn),t.__h.forEach(hr),t.__h=[],Xe=0)),Zn=D},J.diffed=function(e){vo&&vo(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Us.push(t)!==1&&go===J.requestAnimationFrame||((go=J.requestAnimationFrame)||Za)(qa)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Zn=D=null},J.__c=function(e,t){t.some(function(n){try{n.__h.forEach(mn),n.__h=n.__h.filter(function(r){return!r.__||hr(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],J.__e(r,n.__v)}}),So&&So(e,t)},J.unmount=function(e){xo&&xo(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{mn(r)}catch(o){t=o}}),n.__H=void 0,t&&J.__e(t,n.__v))};var Co=typeof requestAnimationFrame=="function";function Za(e){var t,n=function(){clearTimeout(r),Co&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Co&&(t=requestAnimationFrame(n))}function mn(e){var t=D,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),D=t}function hr(e){var t=D;e.__c=e.__(),D=t}function Or(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function zs(e,t){return typeof t=="function"?t(e):t}function Hs(e,t){for(var n in t)e[n]=t[n];return e}function mr(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function yn(e,t){this.props=e,this.context=t}function js(e,t){function n(o){var s=this.props.ref,i=s==o.ref;return!i&&s&&(s.call?s(null):s.current=null),t?!t(this.props,o)||!i:mr(this.props,o)}function r(o){return this.shouldComponentUpdate=n,w(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(yn.prototype=new Te).isPureReactComponent=!0,yn.prototype.shouldComponentUpdate=function(e,t){return mr(this.props,e)||mr(this.state,t)};var Ao=F.__b;F.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ao&&Ao(e)};var Ja=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Gs(e){function t(n){var r=Hs({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Ja,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Eo=function(e,t){return e==null?null:Ke(Ke(e).map(t))},Ws={map:Eo,forEach:Eo,count:function(e){return e?Ke(e).length:0},only:function(e){var t=Ke(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Ke},Ka=F.__e;F.__e=function(e,t,n,r){if(e.then){for(var o,s=t;s=s.__;)if((o=s.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}Ka(e,t,n,r)};var No=F.unmount;function qs(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Hs({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return qs(r,t,n)})),e}function Zs(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Zs(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Gt(){this.__u=0,this.t=null,this.__b=null}function Js(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ks(e){var t,n,r;function o(s){if(t||(t=e()).then(function(i){n=i.default||i},function(i){r=i}),r)throw r;if(!n)throw t;return w(n,s)}return o.displayName="Lazy",o.__f=!0,o}function xt(){this.u=null,this.o=null}F.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),No&&No(e)},(Gt.prototype=new Te).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Js(r.__v),s=!1,i=function(){s||(s=!0,n.__R=null,o?o(a):a())};n.__R=i;var a=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=Zs(c,c.__c.__P,c.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.t.pop();)l.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},Gt.prototype.componentWillUnmount=function(){this.t=[]},Gt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=qs(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&w(be,null,e.fallback);return o&&(o.__u&=-33),[w(be,null,t.__a?null:e.children),o]};var Fo=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 Ya(e){return this.getChildContext=function(){return e.context},e.children}function Xa(e){var t=this,n=e.i;t.componentWillUnmount=function(){it(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),it(w(Ya,{context:t.context},e.__v),t.l)}function Ys(e,t){var n=w(Xa,{__v:e,i:t});return n.containerInfo=t,n}(xt.prototype=new Te).__a=function(e){var t=this,n=Js(t.__v),r=t.o.get(e);return r[0]++,function(o){var s=function(){t.props.revealOrder?(r.push(o),Fo(t,e,r)):o()};n?n(s):s()}},xt.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ke(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},xt.prototype.componentDidUpdate=xt.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Fo(e,n,t)})};var Xs=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Qa=/^(?: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]/,eu=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,tu=/[A-Z0-9]/g,nu=typeof document<"u",ru=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Qs(e,t,n){return t.__k==null&&(t.textContent=""),it(e,t),typeof n=="function"&&n(),e?e.__c:null}function ei(e,t,n){return Er(e,t),typeof n=="function"&&n(),e?e.__c:null}Te.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Te.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Mo=F.event;function ou(){}function su(){return this.cancelBubble}function iu(){return this.defaultPrevented}F.event=function(e){return Mo&&(e=Mo(e)),e.persist=ou,e.isPropagationStopped=su,e.isDefaultPrevented=iu,e.nativeEvent=e};var Vr,au={enumerable:!1,configurable:!0,get:function(){return this.class}},To=F.vnode;F.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},s=r.indexOf("-")===-1;for(var i in n){var a=n[i];if(!(i==="value"&&"defaultValue"in n&&a==null||nu&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var c=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&a===!0?a="":c==="translate"&&a==="no"?a=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?i="ondblclick":c!=="onchange"||r!=="input"&&r!=="textarea"||ru(n.type)?c==="onfocus"?i="onfocusin":c==="onblur"?i="onfocusout":eu.test(i)&&(i=c):c=i="oninput":s&&Qa.test(i)?i=i.replace(tu,"-$&").toLowerCase():a===null&&(a=void 0),c==="oninput"&&o[i=c]&&(i="oninputCapture"),o[i]=a}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Ke(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Ke(n.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",au)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Xs,To&&To(e)};var $o=F.__r;F.__r=function(e){$o&&$o(e),Vr=e.__c};var Bo=F.diffed;F.diffed=function(e){Bo&&Bo(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),Vr=null};var ti={ReactCurrentDispatcher:{current:{readContext:function(e){return Vr.__n[e.__c].props.value},useCallback:Tr,useContext:$r,useDebugValue:Br,useDeferredValue:Rr,useEffect:en,useId:Ir,useImperativeHandle:Mr,useInsertionEffect:Dr,useLayoutEffect:Rt,useMemo:tn,useReducer:Tn,useRef:Fr,useState:Lt,useSyncExternalStore:Ur,useTransition:Pr}}},uu="18.3.1";function ni(e){return w.bind(null,e)}function nn(e){return!!e&&e.$$typeof===Xs}function ri(e){return nn(e)&&e.type===be}function oi(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function si(e){return nn(e)?Nr.apply(null,arguments):e}function ii(e){return!!e.__k&&(it(null,e),!0)}function ai(e){return e&&(e.base||e.nodeType===1&&e)||null}var ui=function(e,t){return e(t)},li=function(e,t){return e(t)},ci=be;function Lr(e){e()}function Rr(e){return e}function Pr(){return[!1,Lr]}var Dr=Rt,di=nn;function Ur(e,t){var n=t(),r=Lt({h:{__:n,v:t}}),o=r[0].h,s=r[1];return Rt(function(){o.__=n,o.v=t,Jn(o)&&s({h:o})},[e,n,t]),en(function(){return Jn(o)&&s({h:o}),e(function(){Jn(o)&&s({h:o})})},[e]),n}function Jn(e){var t,n,r=e.v,o=e.__;try{var s=r();return!((t=o)===(n=s)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var fi={useState:Lt,useId:Ir,useReducer:Tn,useEffect:en,useLayoutEffect:Rt,useInsertionEffect:Dr,useTransition:Pr,useDeferredValue:Rr,useSyncExternalStore:Ur,startTransition:Lr,useRef:Fr,useImperativeHandle:Mr,useMemo:tn,useCallback:Tr,useContext:$r,useDebugValue:Br,version:"18.3.1",Children:Ws,render:Qs,hydrate:ei,unmountComponentAtNode:ii,createPortal:Ys,createElement:w,createContext:Ds,createFactory:ni,cloneElement:si,createRef:Is,Fragment:be,isValidElement:nn,isElement:di,isFragment:ri,isMemo:oi,findDOMNode:ai,Component:Te,PureComponent:yn,memo:js,forwardRef:Gs,flushSync:li,unstable_batchedUpdates:ui,StrictMode:ci,Suspense:Gt,SuspenseList:xt,lazy:Ks,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ti};const lu=Object.freeze(Object.defineProperty({__proto__:null,Children:Ws,Component:Te,Fragment:be,PureComponent:yn,StrictMode:ci,Suspense:Gt,SuspenseList:xt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ti,cloneElement:si,createContext:Ds,createElement:w,createFactory:ni,createPortal:Ys,createRef:Is,default:fi,findDOMNode:ai,flushSync:li,forwardRef:Gs,hydrate:ei,isElement:di,isFragment:ri,isMemo:oi,isValidElement:nn,lazy:Ks,memo:js,render:Qs,startTransition:Lr,unmountComponentAtNode:ii,unstable_batchedUpdates:ui,useCallback:Tr,useContext:$r,useDebugValue:Br,useDeferredValue:Rr,useEffect:en,useErrorBoundary:Wa,useId:Ir,useImperativeHandle:Mr,useInsertionEffect:Dr,useLayoutEffect:Rt,useMemo:tn,useReducer:Tn,useRef:Fr,useState:Lt,useSyncExternalStore:Ur,useTransition:Pr,version:uu},Symbol.toStringTag,{value:"Module"})),cu=`*,: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}.mx-auto{margin-left:auto;margin-right:auto}.my-3{margin-top:.75rem;margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.ml-3{margin-left:.75rem}.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%}.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}.resize{resize:both}.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-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}.whitespace-pre-wrap{white-space:pre-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-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-2{padding-top:.5rem;padding-bottom:.5rem}.py-20{padding-top:5rem;padding-bottom:5rem}.pb-6{padding-bottom:1.5rem}.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,-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\\: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 Ie(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function du(e){return e!=null&&typeof e.GetEnumerator=="function"}function fu(e){return e!=null&&typeof e.CompareTo=="function"}function hu(e){return e!=null&&typeof e.Equals=="function"}function mu(e){return e!=null&&typeof e.GetHashCode=="function"}function pr(e){return e!=null&&typeof e.Dispose=="function"}function W(e){pr(e)&&e.Dispose()}function Qe(){return null}function vn(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 pu{constructor(t){this.iter=t,this.current=Qe()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function Q(e){return du(e)?e.GetEnumerator():new pu(e[Symbol.iterator]())}function $n(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 Io(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function wu(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function mt(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class st{static id(t){return st.idMap.has(t)||st.idMap.set(t,++st.count),st.idMap.get(t)}}st.idMap=new WeakMap;st.count=0;function zr(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function We(e){return e*2654435761|0}function _u(e){return zr(e.toString(32))}function rn(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const o=e[r];t=(t<<5)+t^o}return t}function gu(e){return e.getTime()}function bu(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=et(e[r]);return rn(n)}function et(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return We(e);case"bigint":return _u(e);case"string":return zr(e);default:{if(mu(e))return e.GetHashCode();if(Ie(e))return bu(e);if(e instanceof Date)return gu(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>et(r));return rn(n)}else return We(st.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 hi(e,t){return wr(e,t,$e)}function yu(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=0;o<n.length;o++)if(n[o]!==r[o]||!$e(e[n[o]],t[r[o]]))return!1;return!0}function $e(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:hu(e)?e.Equals(t):Ie(e)?Ie(t)&&hi(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&mi(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&yu(e,t)}function mi(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 Hr(e,t){return e===t?0:e<t?-1:1}function vu(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=n(e[r],t[r]),o!==0)return o;return 0}function pi(e,t){return vu(e,t,xe)}function Su(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,s=0;o<n.length;o++){const i=n[o];if(i!==r[o])return i<r[o]?-1:1;if(s=xe(e[i],t[i]),s!==0)return s}return 0}function xe(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:fu(e)?e.CompareTo(t):Ie(e)?Ie(t)?pi(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?mi(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?Su(e,t):-1}function E(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function xu(e){Ie(e)?e.splice(0):e.clear()}const Bn=new WeakMap;function G(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Bn.set(t,e),t}function R(e){return Bn.get(e)??(t=>n=>e(t,n))}function _r(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return Bn.set(t,e),t}function Kn(e){return Bn.get(e)??(t=>n=>r=>e(t,n,r))}function ku(e){let t=0,n="[";for(const r of e){if(t===0)n+=Oe(r);else if(t===100){n+="; ...";break}else n+="; "+Oe(r);t++}return n+"]"}function Oe(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 ku(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([o,s])=>o+" = "+Oe(s,t+1)).join(`
|
|
2
|
-
`)+" }":(r==null?void 0:r.name)??""}}return String(e)}function
|
|
3
|
-
`)+" }"}function Nu(e){const t=Object.values(e).map(n=>et(n));return rn(t)}function Fu(e,t){if(e===t)return!0;if(vn(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!$e(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Mu(e,t){if(e===t)return 0;if(vn(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=xe(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class Y{toJSON(){return Au(this)}toString(){return Eu(this)}GetHashCode(){return Nu(this)}Equals(t){return Fu(this,t)}CompareTo(t){return Mu(this,t)}}class Ve{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 Tu{constructor(t){this.message=t}}function $u(e){return e instanceof Tu||e instanceof Error}function Bu(e){return e instanceof Promise}function Sn(e){return $u(e)||Bu(e)?e:new Error(String(e))}const Iu=Oe(cu),C=fi,Pt=Symbol("numeric");function wi(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[Pt])}function Ou(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function gr(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Pt]().multiply(t)}function pn(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Pt]().toFixed(t)}function xn(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Pt]().toPrecision(t)}function kn(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Pt]().toExponential(t)}function Cn(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Pt]().toHex()}const Vu=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Lu=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Ru=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Pu=["January","February","March","April","May","June","July","August","September","October","November","December"];function me(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function Oo(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Du(e,t){let n=t;const r=e[t];let o="",s=!1;for(;t<e.length;){t++;const i=e[t];if(i===r){s=!0;break}else if(i==="\\")if(t<e.length)t++,o+=e[t];else throw new Error("Invalid string format");else o+=i}if(!s)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[o,t-n+1]}function jr(e,t,n){let r=0,o=0,s="";const i=n?on(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(o=me(t,r,"d"),r+=o,o){case 1:s+=Lo(i);break;case 2:s+=j(Lo(i),2);break;case 3:s+=Vu[Do(i)];break;case 4:s+=Lu[Do(i)];break}break;case"f":if(o=me(t,r,"f"),r+=o,o<=3){const _=10**(3-o);s+=j(Math.floor(fn(i)/_),o)}else o<=7&&(s+=(""+fn(i)).padEnd(o,"0"));break;case"F":if(o=me(t,r,"F"),r+=o,o<=3){const _=10**(3-o),y=Math.floor(fn(i)/_);y!=0&&(s+=j(y,o))}else if(o<=7){const _=fn(i);_!=0&&(s+=j(_,3))}break;case"g":o=me(t,r,"g"),r+=o,o<=2&&(s+="A.D.");break;case"h":switch(o=me(t,r,"h"),r+=o,o){case 1:s+=dn(i)%12;break;case 2:s+=j(dn(i)%12,2);break}break;case"H":switch(o=me(t,r,"H"),r+=o,o){case 1:s+=dn(i);break;case 2:s+=j(dn(i),2);break}break;case"K":switch(o=me(t,r,"K"),r+=o,o){case 1:switch(Vo(i)){case 1:s+="Z";break;case 2:s+=Ct(i.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=me(t,r,"m"),r+=o,o){case 1:s+=Ro(i);break;case 2:s+=j(Ro(i),2);break}break;case"M":switch(o=me(t,r,"M"),r+=o,o){case 1:s+=hn(i);break;case 2:s+=j(hn(i),2);break;case 3:s+=Ru[hn(i)-1];break;case 4:s+=Pu[hn(i)-1];break}break;case"s":switch(o=me(t,r,"s"),r+=o,o){case 1:s+=Po(i);break;case 2:s+=j(Po(i),2);break}break;case"t":switch(o=me(t,r,"t"),r+=o,o){case 1:s+=i.getHours()<12?"A":"P";break;case 2:s+=i.getHours()<12?"AM":"PM";break}break;case"y":switch(o=me(t,r,"y"),r+=o,o){case 1:s+=i.getFullYear()%100;break;case 2:s+=j(i.getFullYear()%100,2);break;case 3:s+=j(i.getFullYear(),3);break;case 4:s+=j(i.getFullYear(),4);break;case 5:s+=j(i.getFullYear(),5);break}break;case"z":o=me(t,r,"z"),r+=o;let c="";switch(Vo(i)){case 1:c="+00:00";break;case 2:c=Ct(i.getTimezoneOffset()*-6e4);break;case 0:c=Ct(Ju(i).getTimezoneOffset()*-6e4);break}const l=c[0]==="-"?"-":"+",f=parseInt(c.substring(1,3),10),u=parseInt(c.substring(4,6),10);switch(o){case 1:s+=`${l}${f}`;break;case 2:s+=`${l}${j(f,2)}`;break;default:s+=`${l}${j(f,2)}:${j(u,2)}`;break}break;case":":s+=":",r++;break;case"/":s+="/",r++;break;case"'":case'"':const[m,h]=Du(t,r);s+=m,r+=h;break;case"%":const p=Oo(t,r);if(p>=0&&p!==37)r+=2,s+=jr(i,String.fromCharCode(p),n);else throw new Error("Invalid format string");break;case"\\":const g=Oo(t,r);if(g>=0)r+=2,s+=String.fromCharCode(g);else throw new Error("Invalid format string");break;default:r++,s+=a;break}}return s}function Vo(e){return e.kind||0}function Ct(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 An(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 Uu(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?Ct(e.getTimezoneOffset()*-6e4):"")}}function zu(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+Ct(t)}function Hu(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," ")+Ct(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return An(n,"first");case"T":case"t":return An(n,"second");case"O":case"o":return zu(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return jr(n,t,!0)}function ju(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?An(e,"first"):e.toLocaleDateString();case"T":case"t":return n?An(e,"second"):e.toLocaleTimeString();case"O":case"o":return Uu(e,n);default:throw new Error("Unrecognized Date print format")}else return jr(e,t,n)}function _i(e,t,n){return e.offset!=null?Hu(e,t):ju(e,t)}function on(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Gu(){return on(-621355968e5,1)}function gi(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(o!=null){let s,i=0;if(o[2]!=null){const a=o[2].split(":"),c=parseInt(a[0],10);i=c*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&c<12&&(i+=720)}if(o[4]!=null){if(o[1]!=null)s=new Date(o[1]+" UTC");else{const a=new Date;s=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(o[4]==="Z")r="Z";else{let a=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(a*=-1),r=a,i-=a*60}}else if(o[1]!=null)s=new Date(o[1]);else{const a=new Date;s=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(s.getTime()+i*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-s.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function Wu(e,t=!1){const[n,r]=gi(e),o=r!=null?t&&r==="Z"?1:2:0;return on(n.getTime(),o)}function qu(e,t){try{return t.contents=Wu(e),!0}catch{return!1}}function Zu(e){return e.kind===1?e:on(e.getTime(),1)}function Ju(e){return e.kind===2?e:on(e.getTime(),2)}function Lo(e){return e.kind===1?e.getUTCDate():e.getDate()}function dn(e){return e.kind===1?e.getUTCHours():e.getHours()}function fn(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function Ro(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function hn(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function Po(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Do(e){return e.kind===1?e.getUTCDay():e.getDay()}function bi(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 yi(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Ku(e,t,n=0){return e.lastIndex=n,e.test(t)}function Uo(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let o,s=-1;for(;(o=e.exec(t))!=null;)o.index===s?e.lastIndex++:(s=o.index,r.push(o));return r}function Gr(e,t,n,r,o=0){function s(){let i=arguments[0];if(r){r--;const a=[],c=arguments.length,l=typeof arguments[c-1]!="string";let f=l?c-3:c-2;for(let u=0;u<f;u++)a.push(arguments[u]);a.index=arguments[f++],a.input=arguments[f++],l&&(a.groups=arguments[f]),i=n(a)}return i}if(typeof e=="string"){const i=e;e=bi(t,r??0),t=i,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,o)+t.substring(o).replace(e,s);if(n=n.replace(/\$0/g,i=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let i;const a=t.substring(o),c=Uo(e,a),l=Uo.length>r?(i=c[r-1],a.substring(0,i.index+i[0].length)):a;return t.substring(0,o)+l.replace(e,n)+t.substring(o+l.length)}else return t.replace(e,n)}const zt=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Yu=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function vi(e,t){return Ou(e,t)<0}function Mt(e){return{input:e,cont:el(e)}}function Si(e,t){return typeof t=="string"?e(t):t.cont(e)}function qt(e){return Si(t=>t,e)}function Xu(e){return Si(t=>{throw new Error(t)},e)}function Qu(e,t,n,r,o){let s="";if(t=t||"",o=o||"",wi(e))switch(o.toLowerCase()!=="x"&&(vi(e,0)?(e=gr(e,-1),s="-"):t.indexOf(" ")>=0?s=" ":t.indexOf("+")>=0&&(s="+")),r=r==null?null:parseInt(r,10),o){case"f":case"F":r=r??6,e=pn(e,r);break;case"g":case"G":e=r!=null?xn(e,r):xn(e);break;case"e":case"E":e=r!=null?kn(e,r):kn(e);break;case"x":e=Cn(e);break;case"X":e=Cn(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=_i(e):e=Oe(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=s+e;else{const i=t.indexOf("0")>=0,a=t.indexOf("-")>=0,c=a||!i?" ":"0";c==="0"?(e=Zt(e,n-s.length,c,a),e=s+e):e=Zt(s+e,n,c,a)}return e}function xi(e,t,n,r="",o=-1){return(...s)=>{let i=r;const a=t.slice(),c=n.slice();for(const l of s){const[,,f,u,m,h]=c[0];let p=u;if(o>=0)p=o,o=-1;else if(p==="*"){if(l<0)throw new Error("Non-negative number required");o=l;continue}i+=a[0],i+=Qu(l,f,p,m,h),a.splice(0,1),c.splice(0,1)}return c.length===0?(i+=a[0],e(i)):xi(e,a,c,i,o)}}function el(e){return t=>{zt.lastIndex=0;const n=[],r=[];let o=0,s=zt.exec(e);for(;s;){const i=s.index+(s[1]||"").length;n.push(e.substring(o,i).replace(/%%/g,"%")),r.push(s),o=zt.lastIndex,zt.lastIndex-=1,s=zt.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),xi(t,n,r))}}function tl(e,...t){let n;return n=e,n.replace(Yu,(r,o,s,i,a,c)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let l=t[o];if(wi(l))switch(a=a==null?null:parseInt(a,10),i){case"f":case"F":a=a??2,l=pn(l,a);break;case"g":case"G":l=a!=null?xn(l,a):xn(l);break;case"e":case"E":l=a!=null?kn(l,a):kn(l);break;case"p":case"P":a=a??2,l=pn(gr(l,100),a)+" %";break;case"d":case"D":l=a!=null?Yn(String(l),a,"0"):String(l);break;case"x":case"X":l=a!=null?Yn(Cn(l),a,"0"):Cn(l),i==="X"&&(l=l.toUpperCase());break;default:if(c){let f="";l=c.replace(/([0#,]+)(\.[0#]+)?/,(u,m,h)=>{vi(l,0)&&(l=gr(l,-1),f="-"),h=h==null?"":h.substring(1),l=pn(l,Math.max(h.length,0));let[p,g]=l.split(".");g||(g="");const _=m.replace(/,/g,"").replace(/^#+/,"").length;p=Yn(p,_,"0");const y=h.replace(/#+$/,"").length;if(y>g.length?g=rl(g,y,"0"):y<g.length&&(g=g.substring(0,y)+g.substring(y).replace(/0+$/,"")),m.indexOf(",")>0){const S=p.length%3,b=Math.floor(p.length/3);let H=S>0?p.substr(0,S)+(b>0?",":""):"";for(let ne=0;ne<b;ne++)H+=p.substr(S+ne*3,3)+(ne<b-1?",":"");p=H}return g.length>0?p+"."+g:p}),l=f+l}}else l instanceof Date?l=_i(l,c||i):l=Oe(l);return s=parseInt((s||" ").substring(1),10),isNaN(s)||(l=Zt(String(l),Math.abs(s)," ",s<0)),l})}function nl(e){return typeof e!="string"||e.length===0}function ki(e){return typeof e!="string"||/^\s*$/.test(e)}function q(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Zt(e,t,n,r){n=n||" ",t=t-e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function Yn(e,t,n){return Zt(e,t,n)}function rl(e,t,n){return Zt(e,t,n,!0)}function ol(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const o=(r&1)===1,s=(r&2)===2;t=t||[],t=t.filter(f=>f).map(yi),t=t.length>0?t:["\\s"];const i=[],a=new RegExp(t.join("|"),"g");let c=!0,l=0;do{const f=a.exec(e);if(f===null){const u=s?e.substring(l).trim():e.substring(l);(!o||u.length>0)&&i.push(u),c=!1}else{const u=s?e.substring(l,f.index).trim():e.substring(l,f.index);(!o||u.length>0)&&(n!=null&&i.length+1===n?(i.push(s?e.substring(l).trim():e.substring(l)),c=!1):i.push(u)),l=a.lastIndex}}while(c);return i}function sl(e,...t){if(t.length===0)return e.trim();const n="["+yi(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class pt{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return et(this.value)}Equals(t){return t==null?!1:$e(this.value,t instanceof pt?t.value:t)}CompareTo(t){return t==null?1:xe(this.value,t instanceof pt?t.value:t)}}function v(e){if(e==null)throw new Error("Option has no value");return e instanceof pt?e.value:e}function Ci(e){return e instanceof pt?e.value:e}function Be(e){return e==null||e instanceof pt?new pt(e):e}function Wr(e,t){return e!=null?v(e):t}class Ge{constructor(t,n,r,o,s,i,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=s,this.cases=i,this.enumCases=a}toString(){return te(this)}GetHashCode(){return Ai(this)}Equals(t){return br(this,t)}}function qe(e){return e.generics!=null?e.generics:[]}function Ai(e){const t=zr(e.fullname),n=qe(e).map(Ai);return rn([t,...n])}function br(e,t){return e.fullname===""?t.fullname===""&&wr(En(e),En(t),([n,r],[o,s])=>n===o&&br(r,s)):e.fullname===t.fullname&&wr(qe(e),qe(t),br)}function sn(e,t,n,r){return new Ge(e,t,n,void 0,r)}function il(...e){return new Ge("",void 0,void 0,void 0,()=>e)}function Jt(e){return new Ge("Microsoft.FSharp.Core.FSharpOption`1",[e])}const al=new Ge("System.Object"),oe=new Ge("System.String"),ul=new Ge("System.Boolean");function qr(e){if(Array.isArray(e))return e[0];if(e instanceof Ge){const t=In(e);if(t!=null)return qr(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function te(e){const t=In(e);return t!=null?te(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>te(n)).join(",")+"]"}function ll(e){return In(e)!=null}function In(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function cl(e){return e.generics!=null&&e.generics.length>0}function Ei(e){return e.enumCases!=null&&e.enumCases.length>0}function dl(e){return e.generics==null?e:new Ge(e.fullname,e.generics.map(()=>al))}function fl(e){var t;return(t=e.generics)==null?void 0:t[0]}function bt(e){if(Ei(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function hl(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 yt(e,t){const n=parseInt(t,10);return hl(e,isNaN(n)?t:n)[1]}function ml(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function En(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function pl(e){if(Ni(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function wl(e){return e instanceof Ge?e.cases!=null:e instanceof M}function _l(e){return e instanceof Ge?e.fields!=null:e instanceof Y}function Ni(e){return e.fullname.startsWith("System.Tuple")}function gl(e){return e.fields==null?[]:e.fields}function bl(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 yl(e,t){const n=En(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[o,s],i)=>(r[o]=t[i],r),{})}function vl(e,t){return e}const Fi="Collection was empty.";function Mi(e,t){return new Array(t)}function zo(e,t){return e>t?e:t}function Zr(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function On(e,t,n){const r=t.length|0,o=Mi(n,r);for(let s=0;s<=r-1;s++)at(o,s,e(le(s,t)));return o}function Sl(e,t){const n=Mi(t,1);return at(n,0,e),n}function xl(e){return e.slice().reverse()}function kl(e,t){return t.find(e)}function Cl(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const s=e(le(o,t));if(s!=null){const i=v(s);r.push(i)}}return $e(n,Qe())?r:On(o=>o,r,n)}function Vn(e,t,n){const r=e;return n.reduce(r,t)}function le(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 at(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 Ti(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class se extends Y{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+q("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,s)=>{e:for(;;){const i=o,a=s,c=i.tail,l=a.tail;if(c!=null)if(l!=null){const f=v(c),u=v(l);if($e(i.head,a.head)){o=f,s=u;continue e}else return!1}else return!1;else return l==null}})(n,t)}GetHashCode(){return((r,o,s)=>{e:for(;;){const i=r,a=o,c=s,l=c.tail;if(l!=null){const f=v(l);if(i>18)return a|0;r=i+1,o=(a<<1)+et(c.head)+631*i,s=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,s)=>{e:for(;;){const i=o,a=s,c=i.tail,l=a.tail;if(c!=null)if(l!=null){const f=v(c),u=v(l),m=xe(i.head,a.head)|0;if(m===0){o=f,s=u;continue e}else return m|0}else return 1;else return l!=null?-1:0}})(this,t)|0}GetEnumerator(){return El(this)}[Symbol.iterator](){return $n(Q(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Q(this)}}class Al{constructor(t){this.xs=t,this.it=this.xs,this.current=Qe()}"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=v(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=Qe()}Dispose(){}}function El(e){return new Al(e)}function X(){return new se(Qe(),void 0)}function an(e,t){return new se(e,t)}function wt(e){return e.tail==null}function $i(e){return((n,r)=>{e:for(;;){const o=n,i=r.tail;if(i!=null){n=o+1,r=v(i);continue e}else return o|0}})(0,e)|0}function Tt(e){if(e.tail!=null)return e.head;throw new Error(Fi+"\\nParameter name: list")}function de(e){const t=e.tail;if(t!=null)return v(t);throw new Error(Fi+"\\nParameter name: list")}function ie(){return X()}function _e(e,t){return an(e,t)}function $(e){return an(e,X())}function V(e){return wt(e)}function Ho(e){return $i(e)}function A(e){return Tt(e)}function O(e){return de(e)}function un(e){const t=$i(e)|0,n=Zr(new Array(t),0,t,null);return((o,s)=>{e:for(;;){const i=o,a=s;if(!wt(a)){at(n,i,Tt(a)),o=i+1,s=de(a);continue e}break}})(0,e),n}function Le(e,t,n){let r=t,o=n;for(;!wt(o);)r=e(r,A(o)),o=de(o);return r}function Jr(e){return Le((t,n)=>an(n,t),X(),e)}function Nl(e,t,n){return Ti(e,un(t),n)}function Fl(e,t,n){return((o,s,i)=>{e:for(;;){const a=o,c=s,l=i;if(wt(l))return c;o=a+1,s=e(a,c,Tt(l)),i=de(l);continue e}})(0,t,n)}function Ml(e,t,n,r){let o=t,s=n,i=r;for(;!wt(s)&&!wt(i);)o=e(o,Tt(s),Tt(i)),s=de(s),i=de(i);return o}function Kt(e,t){Le((n,r)=>{e(r)},void 0,t)}function Z(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=an(le(r,e),n);return n}function k(e){return Z(e,X())}function Tl(e){let t,n;if(Ie(e))return k(e);if(e instanceof se)return e;{const r=X();let o=r;const s=Q(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();){const c=s["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new se(c,void 0),t.tail=n,n)}}finally{W(s)}const i=o,a=X();return i.tail=a,de(r)}}function $l(e){const t=X();let n=t;const r=i=>{n=Le((a,c)=>{const l=new se(c,void 0);return a.tail=l,l},n,i)};if(Ie(e))e.forEach(r);else if(e instanceof se)Kt(r,e);else{const i=Q(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();)r(i["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{W(i)}}const o=n,s=X();return o.tail=s,de(t)}function Kr(e,t){return Le((n,r)=>an(r,n),t,Jr(e))}function Bl(e,t){const n=X(),r=Fl((s,i,a)=>{const c=new se(e(s,a),void 0);return i.tail=c,c},n,t),o=X();return r.tail=o,de(n)}function Yr(e,t){const n=X(),r=Le((s,i)=>{const a=new se(e(i),void 0);return s.tail=a,a},n,t),o=X();return r.tail=o,de(n)}function Il(e,t){return(r=>{e:for(;;){const o=r;if(wt(o))return;{const s=e(Tt(o));if(s==null){r=de(o);continue e}else return s}}})(t)}function Ol(e,t){const n=X(),r=Le((s,i)=>{if(e(i)){const a=new se(i,void 0);return s.tail=a,a}else return s},n,t),o=X();return r.tail=o,de(n)}function Vl(e,t){const n=X(),r=X(),o=n,s=Le((c,l)=>{let f,u;const m=c[0],h=c[1];return e(l)?[(f=new se(l,void 0),m.tail=f,f),h]:[m,(u=new se(l,void 0),h.tail=u,u)]},[o,r],t),i=X();s[0].tail=i;const a=X();return s[1].tail=a,[de(o),de(r)]}function Ll(e,t){const n=X(),r=Le((s,i)=>{const a=e(i);if(a==null)return s;{const c=new se(v(a),void 0);return s.tail=c,c}},n,t),o=X();return r.tail=o,de(n)}function Bi(e,t){return Le((n,r)=>n&&e(r),!0,t)}class Rl{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,o=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(o)}}}Dispose(){}}class Ln extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Ln.prototype)}}class Xr{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Xr.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Je(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Ln);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Sn(n))}});else try{e(t)}catch(n){t.onError(Sn(n))}}}function Pl(e,t){return Je(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(Sn(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Dl(e){return Je(t=>t.onSuccess(e))}class Ul{Bind(t,n){return Pl(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Je(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let o=r.next();return this.While(()=>!o.done,this.Delay(()=>{const s=n(o.value);return o=r.next(),s}))}Return(t){return Dl(t)}ReturnFrom(t){return t}TryFinally(t,n){return Je(r=>{t({onSuccess:o=>{n(),r.onSuccess(o)},onError:o=>{n(),r.onError(o)},onCancel:o=>{n(),r.onCancel(o)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return Je(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(s){r.onError(Sn(s))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return Je(t=>t.onSuccess(void 0))}}const K=new Ul;function zl(e){return new Ii(0,[e])}function Hl(e){return new Ii(1,[e])}class Ii extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function jl(e){return zl(e)}function Gl(e){return Hl(e)}function Xn(e){}const Wl=new Rl;function ql(e){return Je(t=>{e({onSuccess:n=>t.onSuccess(jl(n)),onError:n=>t.onSuccess(Gl(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Zl(e){return Je(t=>e([t.onSuccess,t.onError,t.onCancel]))}function Jl(e){return Je(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new Ln)})})}function Kl(e,t){return Xl(e,t)}function Yl(e,t){return Kl(e,t)}function Xl(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const s=new Xr;e({onSuccess:t||Xn,onError:Xn,onCancel:Xn,cancelToken:o||Wl,trampoline:s})}class wn extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Ql extends M{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class ec extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Rn extends Y{constructor(t,n,r,o,s,i,a,c){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=s,this.overridenResponseType=i,this.timeout=a,this.content=c}}class St extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Oi extends Y{constructor(t,n,r,o,s,i){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=o,this.responseHeaders=s,this.content=i}}function tc(e){throw new Error(e)}const nc="Enumeration already finished.",rc="Enumeration has not started. Call MoveNext.",Vi="The input sequence has an insufficient number of elements.",oc="Reset is not supported on this enumerator.";function sc(){throw new Error(oc)}function Qr(){throw new Error(rc)}function yr(){throw new Error(nc)}class ic{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=Q(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Oe(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{W(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return $n(Q(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function ac(e){return new ic(e)}class uc{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"(){sc()}Dispose(){this.dispose()}}function Pn(e,t,n){return new uc(e,t,n)}function lc(e){let t,n,r=!1,o=!1,s;const i=()=>{if(o=!0,n!=null){const a=v(n);try{W(a)}finally{n=void 0}}if(t!=null){const a=v(t);try{W(a)}finally{t=void 0}}};return Pn(()=>(r?o&&yr():Qr(),s!=null?v(s):yr()),()=>{let a;if(r||(r=!0),o)return!1;{let c;for(;c==null;){const l=t,f=n;if(l!=null)if(f!=null){const u=v(f);if(u["System.Collections.IEnumerator.MoveNext"]())s=Be(u["System.Collections.Generic.IEnumerator`1.get_Current"]()),c=!0;else try{W(u)}finally{n=void 0}}else{const u=v(l);u["System.Collections.IEnumerator.MoveNext"]()?n=(a=u["System.Collections.Generic.IEnumerator`1.get_Current"](),Q(a)):(i(),c=!1)}else t=Q(e)}return v(c)}},()=>{o||i()})}function cc(e,t){return Pn(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{W(t)}finally{}})}function Li(e,t,n){let r=!1,o,s=Be(e());const i=()=>{if(s!=null){const c=v(s);try{n(c)}finally{s=void 0}}},a=()=>{try{i()}finally{o=void 0}};return Pn(()=>(r||Qr(),o!=null?v(o):yr()),()=>{if(r||(r=!0),s!=null){const c=v(s);let l;try{l=t(c)}catch(f){throw a(),f}return l!=null?(o=l,!0):(a(),!1)}else return!1},i)}function dc(e,t){let n,r=t;return Pn(()=>{if(n!=null){const o=v(n)[0];return v(n)[1],o}else return Qr()},()=>(n=e(r),n!=null?(v(n)[0],r=v(n)[1],!0):!1),()=>{})}function fc(e,t){t==null&&tc(e)}function Dt(e){return ac(e)}function _t(e){return fc("source",e),Q(e)}function I(e){return Dt(()=>Q(e()))}function Ri(e){return Dt(()=>lc(e))}function hc(e,t){return Dt(()=>dc(e,t))}function Re(){return I(()=>new Array(0))}function z(e){return I(()=>Sl(e))}function mc(e){return e instanceof se?un(e):Array.from(e)}function ye(e){return Ie(e)?k(e):e instanceof se?e:Tl(e)}function pc(e,t,n){return Dt(()=>Li(e,t,n))}function wc(e,t,n){return Dt(()=>{let r=-1;return Li(e,o=>(r=r+1|0,t(r,o)),n)})}function fe(e,t){return Ri([e,t])}function _c(e,t,n){const r=_t(t);try{const o=_t(n);try{let s=0,i=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]();for(;s===0&&i&&a;)s=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,s===0&&(i=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]());return(s!==0?s:i?1:a?-1:0)|0}finally{W(o)}}finally{W(r)}}function vt(e,t,n){const r=_t(t);try{let o=!1;for(;!o&&r["System.Collections.IEnumerator.MoveNext"]();)o=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{W(r)}}function Pi(e,t,n){const r=_t(n);try{let o=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)o=e(o,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{W(r)}}function Di(e,t){Pi((n,r)=>{e(r)},void 0,t)}function Ue(e,t){return pc(()=>_t(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?Be(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{W(n)})}function gc(e){return I(()=>xl(mc(e)))}function bc(e,t){return Dt(()=>{const n=_t(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Vi+"\\nParameter name: source");return cc(()=>{},n)}catch(r){throw W(n),r}})}function yc(e,t){return wc(()=>_t(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return Be(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Vi+"\\nParameter name: source")}else return},n=>{W(n)})}function vc(e,t){return I(()=>Ri(Ue(e,t)))}class Ui{constructor(t,n){this.k=t,this.v=n}}function Nn(e,t){return new Ui(e,t)}function ce(e){return e.k}function ge(e){return e.v}class ee extends Ui{constructor(t,n,r,o,s){super(t,n),this.left=r,this.right=o,this.h=s|0}}function _n(e,t,n,r,o){return new ee(e,t,n,r,o)}function ae(e){return e.left}function ue(e){return e.right}function ht(e){return e.h}function zi(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=v(r);if(o instanceof ee){const s=o;e=zi(n+1,ae(s)),t=ue(s);continue e}else return n+1|0}else return n|0}}function Sc(e){return zi(0,e)}function Ce(e,t,n,r){let o,s,i;const a=e;if(a!=null){const u=v(a);i=u instanceof ee?(o=u,ht(o)):1}else i=0;let c;const l=r;if(l!=null){const u=v(l);c=u instanceof ee?(s=u,ht(s)):1}else c=0;const f=(i<c?c:i)|0;return f===0?Nn(t,n):_n(t,n,e,r,f+1)}function jo(e,t,n,r){let o,s,i,a,c,l,f,u,m;const h=e;if(h!=null){const _=v(h);m=_ instanceof ee?(o=_,ht(o)):1}else m=0;let p;const g=r;if(g!=null){const _=v(g);p=_ instanceof ee?(s=_,ht(s)):1}else p=0;if(p>m+2){const _=v(r);if(_ instanceof ee){const y=_;if(i=ae(y),(i!=null?(a=v(i),a instanceof ee?(c=a,ht(c)):1):0)>m+1){const S=v(ae(y));if(S instanceof ee){const b=S;return Ce(Ce(e,t,n,ae(b)),ce(b),ge(b),Ce(ue(b),ce(y),ge(y),ue(y)))}else throw new Error("internal error: Map.rebalance")}else return Ce(Ce(e,t,n,ae(y)),ce(y),ge(y),ue(y))}else throw new Error("internal error: Map.rebalance")}else if(m>p+2){const _=v(e);if(_ instanceof ee){const y=_;if(l=ue(y),(l!=null?(f=v(l),f instanceof ee?(u=f,ht(u)):1):0)>p+1){const S=v(ue(y));if(S instanceof ee){const b=S;return Ce(Ce(ae(y),ce(y),ge(y),ae(b)),ce(b),ge(b),Ce(ue(b),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ce(ae(y),ce(y),ge(y),Ce(ue(y),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ce(e,t,n,r)}function $t(e,t,n,r){if(r!=null){const o=v(r),s=e.Compare(t,ce(o))|0;if(o instanceof ee){const i=o;return s<0?jo($t(e,t,n,ae(i)),ce(i),ge(i),ue(i)):s===0?_n(t,n,ae(i),ue(i),ht(i)):jo(ae(i),ce(i),ge(i),$t(e,t,n,ue(i)))}else return s<0?_n(t,n,void 0,r,2):s===0?Nn(t,n):_n(t,n,r,void 0,2)}else return Nn(t,n)}function Hi(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=v(s),a=r.Compare(o,ce(i))|0;if(a===0)return Be(ge(i));if(i instanceof ee){const c=i;e=r,t=o,n=a<0?ae(c):ue(c);continue e}else return}else return}}function xc(e,t,n){const r=Hi(e,t,n);if(r==null)throw new Error;return v(r)}function kc(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=v(s),a=r.Compare(o,ce(i))|0;if(i instanceof ee){const c=i;if(a<0){e=r,t=o,n=ae(c);continue e}else{if(a===0)return!0;e=r,t=o,n=ue(c);continue e}}else return a===0}else return!1}}function ji(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=v(r);if(o instanceof ee){const s=o;ji(n,ae(s)),n(ce(s),ge(s)),e=n,t=ue(s);continue e}else n(ce(o),ge(o))}break}}function Cc(e,t){ji(e,t)}function Ac(e,t,n){let r=n;Cc((o,s)=>{at(t,r,[o,s]),r=r+1|0},e)}function Ec(e,t){return Le((n,r)=>$t(e,r[0],r[1],n),void 0,t)}function Nc(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){const i=s["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=$t(r,i[0],i[1],o),n=s;continue e}else return o}}function Fc(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=le(r,t);n=$t(e,o[0],o[1],n)}return n}function Gi(e,t){if(Ie(t))return Fc(e,t);if(t instanceof se)return Ec(e,t);{const n=Q(t);try{return Nc(e,void 0,n)}finally{W(n)}}}class Mc extends Y{constructor(t,n){super(),this.stack=t,this.started=n}}function Wi(e){e:for(;;){const t=e;if(V(t))return ie();{const n=O(t),r=A(t);if(r!=null){const o=v(r);if(o instanceof ee){const s=o;e=Z([ae(s),Nn(ce(s),ge(s)),ue(s)],n);continue e}else return t}else{e=n;continue e}}}}function Go(e){return new Mc(Wi($(e)),!1)}function Tc(){throw new Error("enumeration not started")}function $c(){throw new Error("enumeration already finished")}function Wo(e){if(e.started){const t=e.stack;if(V(t))return $c();if(A(t)!=null){const n=v(A(t));if(n instanceof ee)throw new Error("Please report error: Map iterator, unexpected stack for current");return[ce(n),ge(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Tc()}function Bc(e){if(e.started){const t=e.stack;if(V(t))return!1;if(A(t)!=null){if(v(A(t))instanceof ee)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Wi(O(t)),!V(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!V(e.stack)}function qo(e){let t=Go(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Wo(t)},"System.Collections.IEnumerator.get_Current"(){return Wo(t)},"System.Collections.IEnumerator.MoveNext"(){return Bc(t)},"System.Collections.IEnumerator.Reset"(){t=Go(e)},Dispose(){}}}class Fn{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Lc(this)|0}Equals(t){const n=this;if(t instanceof Fn){const r=t,o=Q(n);try{const s=Q(r);try{const i=()=>{const a=o["System.Collections.IEnumerator.MoveNext"]();if(a===s["System.Collections.IEnumerator.MoveNext"]())if(a){const c=o["System.Collections.Generic.IEnumerator`1.get_Current"](),l=s["System.Collections.Generic.IEnumerator`1.get_Current"]();return $e(c[0],l[0])&&$e(c[1],l[1])?i():!1}else return!0;else return!1};return i()}finally{W(s)}}finally{W(o)}}else return!1}toString(){return"map ["+q("; ",Ue(n=>tl("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return qo(this.tree)}[Symbol.iterator](){return $n(Q(this))}"System.Collections.IEnumerable.GetEnumerator"(){return qo(this.tree)}CompareTo(t){const n=this;if(t instanceof Fn)return _c((o,s)=>{const i=n.comparer.Compare(o[0],s[0])|0;return(i!==0?i:xe(o[1],s[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return Jo(n,t[0])&&$e(Zo(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Ac(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Qn(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Qn(this)|0}get size(){return Qn(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 Zo(this,t)}has(t){return Jo(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;Di(o=>{t(o[1],o[0],r)},r)}}function Dn(e,t){return new Fn(e,t)}function Ic(e){return Dn(e,void 0)}function Oc(e,t,n){return Dn(e.comparer,$t(e.comparer,t,n,e.tree))}function Zo(e,t){return xc(e.comparer,t,e.tree)}function Qn(e){return Sc(e.tree)}function Jo(e,t){return kc(e.comparer,t,e.tree)}function Vc(e,t){return Hi(e.comparer,t,e.tree)}function Lc(e){const t=(o,s)=>(o<<1)+s+631;let n=0;const r=Q(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,et(o[0]))|0,n=t(n,et(o[1]))|0}}finally{W(r)}return n|0}function Rc(e,t,n){return Oc(n,e,t)}function Pc(e,t){return Vc(t,e)}function Dc(e,t){return Dn(t,Gi(t,e))}function Uc(e,t){return Dn(t,Gi(t,e))}function qi(e){return Ic(e)}function er(e){return new Ql("Authorization",e)}const dt=new Rn("",new wn(0,[]),ie(),!1,void 0,void 0,void 0,new ec(0,[]));new Oi(0,"","","",qi({Compare:Hr}),new St(0,[""]));function Ko(e,t){return nl(t)?new Array(0):ol(t,[e],void 0,0)}function zc(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 tr(e){return new Rn(e,dt.method,dt.headers,dt.withCredentials,dt.overridenMimeType,dt.overridenResponseType,dt.timeout,dt.content)}function nr(e,t){return new Rn(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function rr(e,t){return new Rn(t.url,t.method,Kr(t.headers,$(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function or(e){return Zl(t=>{const n=new XMLHttpRequest;n.open(zc(e.method),e.url),n.onreadystatechange=()=>{let c,l,f,u,m,h,p;n.readyState===4&&t[0]((c=(l=n.responseType,l===""||l==="text"?n.responseText:""),f=n.status|0,u=n.responseType,m=(h=n.responseType,h===""?new St(0,[n.responseText]):h==="text"?new St(0,[n.responseText]):h==="arraybuffer"?new St(2,[n.response]):h==="blob"?new St(1,[n.response]):new St(3,[n.response])),p=Uc(Cl(g=>{const _=k(Ko(":",g));if(!V(_))return[A(_).toLocaleLowerCase(),q(":",O(_)).trim()]},Ko(`\r
|
|
4
|
-
`,n.getAllResponseHeaders())),{Compare:Hr}),new Oi(f,c,u,n.responseURL,p,m)))};const r=Q(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const c=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(c.fields[0],c.fields[1])}}finally{W(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const c=o;n.overrideMimeType(c)}const s=e.overridenResponseType;if(s!=null)switch(s.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const i=e.timeout;if(i!=null){const c=i|0;n.timeout=c|0}const a=e.content;switch(a.tag){case 1:{n.send(Be(a.fields[0]));break}case 3:{n.send(Be(a.fields[0]));break}case 2:{n.send(Be(a.fields[0]));break}default:n.send()}})}function Hc(e){return new d(0,[e])}function Zi(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 je(e,t){return t.tag===0?Hc(e(t.fields[0])):Zi(t.fields[0])}function jc(e,t){return t.tag===0?e(t.fields[0]):Zi(t.fields[0])}class x extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class gn extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Yo(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Gc(e,t){switch(e.tag){case 2:return Gr(Yo(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Yo(t)}}const Wc=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Xo=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,qc=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Zc(e){function t(r){return r.replace(Xo,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Wc.test(n))return sl(n,"{","}","(",")");if(Xo.test(n))return t(n);if(qc.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 Jc(e,t){try{return t.contents=Zc(e),!0}catch{return!1}}var vr;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(vr||(vr={}));function Kc(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function Qo(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 Yc(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 Xc(e,t){if(t&vr.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 Qc(e,t,n){const o=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(o!=null){const[,,s,i]=o;if(n=n||Xc(s,t),!Yc(n).test(i))return Kc(o,n)}return null}function ed(e,t,n,r,o){const s=Qc(e,t,o);if(s!=null){let i=Number.parseInt(s.sign+s.digits,s.radix);if(!Number.isNaN(i)){const[a,c]=Qo(!0,r);!n&&s.radix!==10&&i>=a&&i<=c&&(i=i<<32-r>>32-r);const[l,f]=Qo(n,r);if(i>=l&&i<=f)return i}}throw new Error(`The input string ${e} was not in a correct format.`)}function Ut(e,t,n,r,o){try{return o.contents=ed(e,t,n,r),!0}catch{return!1}}function Ji(e,t){td(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function td(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 nd(){return Ji(-621355968e5,0)}function rd(e){const[t,n]=gi(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return Ji(t.getTime(),r)}function od(e,t){try{return t.contents=rd(e),!0}catch{return!1}}function es(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return sd(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+o}function sd(e){return Number(BigInt(e)/10000n)}function id(e){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 es(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let o=0,s=0,i=0;const a=r[1]!=null&&r[1]==="-"?-1:1,c=+r[4],l=+r[5];if(r[3]!=null&&(o=+r[3]),r[7]!=null&&(i=+r[7]),r[8]!=null)switch(r[8].length){case 1:s=+r[8]*100;break;case 2:s=+r[8]*10;break;case 3:s=+r[8];break;case 4:s=+r[8]/10;break;case 5:s=+r[8]/100;break;case 6:s=+r[8]/1e3;break;case 7:s=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*es(o,c,l,i,s)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function ad(e,t){try{return t.contents=id(e),!0}catch{return!1}}class Ki{constructor(t){this.k=t}}function pe(e){return new Ki(e)}function N(e){return e.k}class L extends Ki{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function we(e,t,n,r){return new L(e,t,n,r)}function U(e){return e.left}function P(e){return e.right}function kt(e){return e.h}function Yi(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=v(n);if(o instanceof L){const s=o;e=U(s),t=Yi(P(s),r+1);continue e}else return r+1|0}else return r|0}}function ud(e){return Yi(e,0)}function Ae(e,t,n){let r,o,s;const i=e;if(i!=null){const f=v(i);s=f instanceof L?(r=f,kt(r)):1}else s=0;let a;const c=n;if(c!=null){const f=v(c);a=f instanceof L?(o=f,kt(o)):1}else a=0;const l=(s<a?a:s)|0;return l===0?pe(t):we(t,e,n,l+1)}function ts(e,t,n){let r,o,s,i,a,c,l,f,u;const m=e;if(m!=null){const g=v(m);u=g instanceof L?(r=g,kt(r)):1}else u=0;let h;const p=n;if(p!=null){const g=v(p);h=g instanceof L?(o=g,kt(o)):1}else h=0;if(h>u+2){const g=v(n);if(g instanceof L){const _=g;if(s=U(_),(s!=null?(i=v(s),i instanceof L?(a=i,kt(a)):1):0)>u+1){const y=v(U(_));if(y instanceof L){const S=y;return Ae(Ae(e,t,U(S)),N(S),Ae(P(S),N(_),P(_)))}else throw new Error("internal error: Set.rebalance")}else return Ae(Ae(e,t,U(_)),N(_),P(_))}else throw new Error("internal error: Set.rebalance")}else if(u>h+2){const g=v(e);if(g instanceof L){const _=g;if(c=P(_),(c!=null?(l=v(c),l instanceof L?(f=l,kt(f)):1):0)>h+1){const y=v(P(_));if(y instanceof L){const S=y;return Ae(Ae(U(_),N(_),U(S)),N(S),Ae(P(S),t,n))}else throw new Error("internal error: Set.rebalance")}else return Ae(U(_),N(_),Ae(P(_),t,n))}else throw new Error("internal error: Set.rebalance")}else return Ae(e,t,n)}function Bt(e,t,n){if(n!=null){const r=v(n),o=e.Compare(t,N(r))|0;if(r instanceof L){const s=r;return o<0?ts(Bt(e,t,U(s)),N(s),P(s)):o===0?n:ts(U(s),N(s),Bt(e,t,P(s)))}else{const s=e.Compare(t,N(r))|0;return s<0?we(t,void 0,n,2):s===0?n:we(t,n,void 0,2)}}else return pe(t)}function Xi(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=v(s),a=r.Compare(o,N(i))|0;if(i instanceof L){const c=i;if(a<0){e=r,t=o,n=U(c);continue e}else{if(a===0)return!0;e=r,t=o,n=P(c);continue e}}else return a===0}else return!1}}function Qi(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=v(r);if(o instanceof L){const s=o;Qi(n,U(s)),n(N(s)),e=n,t=P(s);continue e}else n(N(o))}break}}class ld extends Y{constructor(t,n){super(),this.stack=t,this.started=n}}function ea(e){e:for(;;){const t=e;if(V(t))return ie();{const n=A(t),r=O(t);if(n!=null){const o=v(n);if(o instanceof L){const s=o;e=Z([U(s),pe(N(s)),P(s)],r);continue e}else return t}else{e=r;continue e}}}}function ns(e){return new ld(ea($(e)),!1)}function cd(){throw new Error("Enumeration not started")}function dd(){throw new Error("Enumeration already started")}function rs(e){if(e.started){const t=e.stack;if(V(t))return dd();if(A(t)!=null){const n=v(A(t));return N(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return cd()}function fd(e){if(e.started){const t=e.stack;if(V(t))return!1;if(A(t)!=null){if(v(A(t))instanceof L)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=ea(O(t)),!V(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!V(e.stack)}function os(e){let t=ns(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return rs(t)},"System.Collections.IEnumerator.get_Current"(){return rs(t)},"System.Collections.IEnumerator.MoveNext"(){return fd(t)},"System.Collections.IEnumerator.Reset"(){t=ns(e)},Dispose(){}}}function hd(e,t,n){e:for(;;){const r=e,o=t,s=n;if(V(o))return V(s)?0:-1;if(V(s))return 1;if(A(s)!=null)if(A(o)!=null){const i=v(A(o)),a=v(A(s));if(i instanceof L){const c=i;if(U(c)==null)if(a instanceof L){const l=a;if(U(l)==null){const f=r.Compare(N(c),N(l))|0;if(f!==0)return f|0;e=r,t=_e(P(c),O(o)),n=_e(P(l),O(s));continue e}else{let f,u,m,h,p;switch(V(o)?V(s)?f=2:A(s)!=null?(f=1,h=O(s),p=v(A(s))):f=2:A(o)!=null?(f=0,u=O(o),m=v(A(o))):V(s)?f=2:A(s)!=null?(f=1,h=O(s),p=v(A(s))):f=2,f){case 0:if(m instanceof L){const g=m;e=r,t=Z([U(g),we(N(g),void 0,P(g),0)],u),n=s;continue e}else{e=r,t=Z([void 0,pe(N(m))],u),n=s;continue e}case 1:if(p instanceof L){const g=p;e=r,t=o,n=Z([U(g),we(N(g),void 0,P(g),0)],h);continue e}else{e=r,t=o,n=Z([void 0,pe(N(p))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(N(c),N(a))|0;if(l!==0)return l|0;e=r,t=_e(P(c),O(o)),n=_e(void 0,O(s));continue e}else{let l,f,u,m,h;switch(V(o)?V(s)?l=2:A(s)!=null?(l=1,m=O(s),h=v(A(s))):l=2:A(o)!=null?(l=0,f=O(o),u=v(A(o))):V(s)?l=2:A(s)!=null?(l=1,m=O(s),h=v(A(s))):l=2,l){case 0:if(u instanceof L){const p=u;e=r,t=Z([U(p),we(N(p),void 0,P(p),0)],f),n=s;continue e}else{e=r,t=Z([void 0,pe(N(u))],f),n=s;continue e}case 1:if(h instanceof L){const p=h;e=r,t=o,n=Z([U(p),we(N(p),void 0,P(p),0)],m);continue e}else{e=r,t=o,n=Z([void 0,pe(N(h))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof L){const c=a;if(U(c)==null){const l=r.Compare(N(i),N(c))|0;if(l!==0)return l|0;e=r,t=_e(void 0,O(o)),n=_e(P(c),O(s));continue e}else{let l,f,u,m,h;switch(V(o)?V(s)?l=2:A(s)!=null?(l=1,m=O(s),h=v(A(s))):l=2:A(o)!=null?(l=0,f=O(o),u=v(A(o))):V(s)?l=2:A(s)!=null?(l=1,m=O(s),h=v(A(s))):l=2,l){case 0:if(u instanceof L){const p=u;e=r,t=Z([U(p),we(N(p),void 0,P(p),0)],f),n=s;continue e}else{e=r,t=Z([void 0,pe(N(u))],f),n=s;continue e}case 1:if(h instanceof L){const p=h;e=r,t=o,n=Z([U(p),we(N(p),void 0,P(p),0)],m);continue e}else{e=r,t=o,n=Z([void 0,pe(N(h))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const c=r.Compare(N(i),N(a))|0;if(c!==0)return c|0;e=r,t=O(o),n=O(s);continue e}}else{v(A(s));let i,a,c,l,f;switch(V(o)?V(s)?i=2:A(s)!=null?(i=1,l=O(s),f=v(A(s))):i=2:A(o)!=null?(i=0,a=O(o),c=v(A(o))):V(s)?i=2:A(s)!=null?(i=1,l=O(s),f=v(A(s))):i=2,i){case 0:if(c instanceof L){const u=c;e=r,t=Z([U(u),we(N(u),void 0,P(u),0)],a),n=s;continue e}else{e=r,t=Z([void 0,pe(N(c))],a),n=s;continue e}case 1:if(f instanceof L){const u=f;e=r,t=o,n=Z([U(u),we(N(u),void 0,P(u),0)],l);continue e}else{e=r,t=o,n=Z([void 0,pe(N(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(A(o)!=null){v(A(o));let i,a,c,l,f;switch(V(o)?V(s)?i=2:A(s)!=null?(i=1,l=O(s),f=v(A(s))):i=2:A(o)!=null?(i=0,a=O(o),c=v(A(o))):V(s)?i=2:A(s)!=null?(i=1,l=O(s),f=v(A(s))):i=2,i){case 0:if(c instanceof L){const u=c;e=r,t=Z([U(u),we(N(u),void 0,P(u),0)],a),n=s;continue e}else{e=r,t=Z([void 0,pe(N(c))],a),n=s;continue e}case 1:if(f instanceof L){const u=f;e=r,t=o,n=Z([U(u),we(N(u),void 0,P(u),0)],l);continue e}else{e=r,t=o,n=Z([void 0,pe(N(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=O(o),n=O(s);continue e}}}function ss(e,t,n){return t==null?n==null?0:-1:n==null?1:hd(e,$(t),$(n))|0}function md(e,t,n){let r=n;Qi(o=>{at(t,r,o),r=r+1|0},e)}function pd(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){e=r,t=Bt(r,s["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=s;continue e}else return o}}function wd(e,t){return Vn((n,r)=>Bt(e,r,n),void 0,t)}function _d(e,t){return Le((n,r)=>Bt(e,r,n),void 0,t)}function ta(e,t){if(Ie(t))return wd(e,t);if(t instanceof se)return _d(e,t);{const n=Q(t);try{return pd(e,void 0,n)}finally{W(n)}}}class eo{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return yd(this)|0}Equals(t){let n;const r=this;return t instanceof eo&&(n=t,ss(At(r),Fe(r),Fe(n))===0)}toString(){return"set ["+q("; ",Ue(n=>Oe(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return ss(At(n),Fe(n),Fe(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 Xi(At(n),t,Fe(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){md(Fe(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return sr(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return sr(this)|0}GetEnumerator(){return os(Fe(this))}[Symbol.iterator](){return $n(Q(this))}"System.Collections.IEnumerable.GetEnumerator"(){return os(Fe(this))}get size(){return sr(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 na(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;Di(o=>{t(o,o,r)},r)}}function Un(e,t){return new eo(e,t)}function At(e){return e.comparer}function Fe(e){return e.tree}function gd(e){return Un(e,void 0)}function bd(e,t){return Un(At(e),Bt(At(e),t,Fe(e)))}function sr(e){return ud(Fe(e))}function na(e,t){return Xi(At(e),t,Fe(e))}function yd(e){let t=0;const n=Q(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+et(r)+631|0}}finally{W(n)}return Math.abs(t)|0}function Sr(e,t){return na(t,e)}function vd(e,t){return bd(t,e)}function Sd(e){return gd(e)}function xd(e,t){return Un(t,ta(t,e))}function kd(e,t){return Un(t,ta(t,e))}function Ht(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
|
1
|
+
var wn,B,Go,wt,Fs,Wo,xr,Dr,Sr,Cr,qo,cn={},Zo=[],gu=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Gn=Array.isArray;function Ye(e,t){for(var n in t)e[n]=t[n];return e}function Jo(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function m(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?wn.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 un(e,i,r,s,null)}function un(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??++Go,__i:-1,__u:0};return s==null&&B.vnode!=null&&B.vnode(o),o}function Ko(){return{current:null}}function Ce(e){return e.children}function Oe(e,t){this.props=e,this.context=t}function It(e,t){if(t==null)return e.__?It(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"?It(e):null}function Yo(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 Yo(e)}}function kr(e){(!e.__d&&(e.__d=!0)&&wt.push(e)&&!In.__r++||Fs!==B.debounceRendering)&&((Fs=B.debounceRendering)||Wo)(In)}function In(){var e,t,n,r,s,o,i,a;for(wt.sort(xr);e=wt.shift();)e.__d&&(t=wt.length,r=void 0,o=(s=(n=e).__v).__e,i=[],a=[],n.__P&&((r=Ye({},s)).__v=s.__v+1,B.vnode&&B.vnode(r),Ur(n.__P,r,s,n.__n,n.__P.namespaceURI,32&s.__u?[o]:null,i,o??It(s),!!(32&s.__u),a),r.__v=s.__v,r.__.__k[r.__i]=r,ei(i,r,a),r.__e!=o&&Yo(r)),wt.length>t&&wt.sort(xr));In.__r=0}function Qo(e,t,n,r,s,o,i,a,c,l,f){var u,p,h,w,g,b=r&&r.__k||Zo,y=t.length;for(n.__d=c,bu(n,t,b),c=n.__d,u=0;u<y;u++)(h=n.__k[u])!=null&&(p=h.__i===-1?cn:b[h.__i]||cn,h.__i=u,Ur(e,h,p,s,o,i,a,c,l,f),w=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&Pr(p.ref,null,h),f.push(h.ref,h.__c||w,h)),g==null&&w!=null&&(g=w),65536&h.__u||p.__k===h.__k?c=Xo(h,c,e):typeof h.type=="function"&&h.__d!==void 0?c=h.__d:w&&(c=w.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=c,n.__e=g}function bu(e,t,n){var r,s,o,i,a,c=t.length,l=n.length,f=l,u=0;for(e.__k=[],r=0;r<c;r++)(s=t[r])!=null&&typeof s!="boolean"&&typeof s!="function"?(i=r+u,(s=e.__k[r]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?un(null,s,null,null,null):Gn(s)?un(Ce,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?un(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=yu(s,n,i,f))!==-1&&(f--,(o=n[a])&&(o.__u|=131072)),o==null||o.__v===null?(a==-1&&u--,typeof s.type!="function"&&(s.__u|=65536)):a!==i&&(a==i-1?u--:a==i+1?u++:(a>i?u--:u++,s.__u|=65536))):s=e.__k[r]=null;if(f)for(r=0;r<l;r++)(o=n[r])!=null&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=It(o)),ti(o,o))}function Xo(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=Xo(r[s],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=It(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Xe(e,t){return t=t||[],e==null||typeof e=="boolean"||(Gn(e)?e.some(function(n){Xe(n,t)}):t.push(e)),t}function yu(e,t,n,r){var s=e.key,o=e.type,i=n-1,a=n+1,c=t[n];if(c===null||c&&s==c.key&&o===c.type&&!(131072&c.__u))return n;if(r>(c!=null&&!(131072&c.__u)?1:0))for(;i>=0||a<t.length;){if(i>=0){if((c=t[i])&&!(131072&c.__u)&&s==c.key&&o===c.type)return i;i--}if(a<t.length){if((c=t[a])&&!(131072&c.__u)&&s==c.key&&o===c.type)return a;a++}}return-1}function Ms(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||gu.test(t)?n:n+"px"}function Nn(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||Ms(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Ms(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=Dr,e.addEventListener(t,o?Cr:Sr,o)):e.removeEventListener(t,o?Cr:Sr,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 Es(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Dr++;else if(t.t<n.u)return;return n(B.event?B.event(t):t)}}}function Ur(e,t,n,r,s,o,i,a,c,l){var f,u,p,h,w,g,b,y,k,_,V,oe,Ee,mt,ht,it,ge=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),o=[a=t.__e=n.__e]),(f=B.__b)&&f(t);e:if(typeof ge=="function")try{if(y=t.props,k="prototype"in ge&&ge.prototype.render,_=(f=ge.contextType)&&r[f.__c],V=f?_?_.props.value:f.__:r,n.__c?b=(u=t.__c=n.__c).__=u.__E:(k?t.__c=u=new ge(y,V):(t.__c=u=new Oe(y,V),u.constructor=ge,u.render=xu),_&&_.sub(u),u.props=y,u.state||(u.state={}),u.context=V,u.__n=r,p=u.__d=!0,u.__h=[],u._sb=[]),k&&u.__s==null&&(u.__s=u.state),k&&ge.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Ye({},u.__s)),Ye(u.__s,ge.getDerivedStateFromProps(y,u.__s))),h=u.props,w=u.state,u.__v=t,p)k&&ge.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),k&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(k&&ge.getDerivedStateFromProps==null&&y!==h&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(y,V),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(y,u.__s,V)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=y,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(An){An&&(An.__=t)}),oe=0;oe<u._sb.length;oe++)u.__h.push(u._sb[oe]);u._sb=[],u.__h.length&&i.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(y,u.__s,V),k&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(h,w,g)})}if(u.context=V,u.props=y,u.__P=e,u.__e=!1,Ee=B.__r,mt=0,k){for(u.state=u.__s,u.__d=!1,Ee&&Ee(t),f=u.render(u.props,u.state,u.context),ht=0;ht<u._sb.length;ht++)u.__h.push(u._sb[ht]);u._sb=[]}else do u.__d=!1,Ee&&Ee(t),f=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++mt<25);u.state=u.__s,u.getChildContext!=null&&(r=Ye(Ye({},r),u.getChildContext())),k&&!p&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(h,w)),Qo(e,Gn(it=f!=null&&f.type===Ce&&f.key==null?f.props.children:f)?it:[it],t,n,r,s,o,i,a,c,l),u.base=t.__e,t.__u&=-161,u.__h.length&&i.push(u),b&&(u.__E=u.__=null)}catch(An){if(t.__v=null,c||o!=null){for(t.__u|=c?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;B.__e(An,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=vu(n.__e,t,n,r,s,o,i,c,l);(f=B.diffed)&&f(t)}function ei(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Pr(n[r],n[++r],n[++r]);B.__c&&B.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(o){o.call(s)})}catch(o){B.__e(o,s.__v)}})}function vu(e,t,n,r,s,o,i,a,c){var l,f,u,p,h,w,g,b=n.props,y=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(l=0;l<o.length;l++)if((h=o[l])&&"setAttribute"in h==!!k&&(k?h.localName===k:h.nodeType===3)){e=h,o[l]=null;break}}if(e==null){if(k===null)return document.createTextNode(y);e=document.createElementNS(s,k,y.is&&y),a&&(B.__m&&B.__m(t,o),a=!1),o=null}if(k===null)b===y||a&&e.data===y||(e.data=y);else{if(o=o&&wn.call(e.childNodes),b=n.props||cn,!a&&o!=null)for(b={},l=0;l<e.attributes.length;l++)b[(h=e.attributes[l]).name]=h.value;for(l in b)if(h=b[l],l!="children"){if(l=="dangerouslySetInnerHTML")u=h;else if(!(l in y)){if(l=="value"&&"defaultValue"in y||l=="checked"&&"defaultChecked"in y)continue;Nn(e,l,null,h,s)}}for(l in y)h=y[l],l=="children"?p=h:l=="dangerouslySetInnerHTML"?f=h:l=="value"?w=h:l=="checked"?g=h:a&&typeof h!="function"||b[l]===h||Nn(e,l,h,b[l],s);if(f)a||u&&(f.__html===u.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(u&&(e.innerHTML=""),Qo(e,Gn(p)?p:[p],t,n,r,k==="foreignObject"?"http://www.w3.org/1999/xhtml":s,o,i,o?o[0]:n.__k&&It(n,0),a,c),o!=null)for(l=o.length;l--;)Jo(o[l]);a||(l="value",k==="progress"&&w==null?e.removeAttribute("value"):w!==void 0&&(w!==e[l]||k==="progress"&&!w||k==="option"&&w!==b[l])&&Nn(e,l,w,b[l],s),l="checked",g!==void 0&&g!==e[l]&&Nn(e,l,g,b[l],s))}return e}function Pr(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){B.__e(s,n)}}function ti(e,t,n){var r,s;if(B.unmount&&B.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Pr(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){B.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&ti(r[s],t,n||typeof e.type!="function");n||Jo(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function xu(e,t,n){return this.constructor(e,n)}function dt(e,t,n){var r,s,o,i;B.__&&B.__(e,t),s=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],i=[],Ur(t,e=(!r&&n||t).__k=m(Ce,null,[e]),s||cn,cn,t.namespaceURI,!r&&n?[n]:s?null:t.firstChild?wn.call(t.childNodes):null,o,!r&&n?n:s?s.__e:t.firstChild,r,i),ei(o,e,i)}function zr(e,t){dt(e,t,zr)}function Hr(e,t,n){var r,s,o,i,a=Ye({},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?wn.call(arguments,2):n),un(e.type,a,r||e.key,s||e.ref,null)}function ni(e,t){var n={__c:t="__cC"+qo++,__: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,kr(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}wn=Zo.slice,B={__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}},Go=0,Oe.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Ye({},this.state),typeof e=="function"&&(e=e(Ye({},n),this.props)),e&&Ye(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),kr(this))},Oe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),kr(this))},Oe.prototype.render=Ce,wt=[],Wo=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,xr=function(e,t){return e.__v.__b-t.__v.__b},In.__r=0,Dr=0,Sr=Es(!1),Cr=Es(!0),qo=0;var tt,W,mr,$s,Lt=0,ri=[],Q=B,Ts=Q.__b,Bs=Q.__r,Is=Q.diffed,Ls=Q.__c,Os=Q.unmount,Vs=Q.__;function xt(e,t){Q.__h&&Q.__h(W,e,Lt||t),Lt=0;var n=W.__H||(W.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function jt(e){return Lt=1,Wn(si,e)}function Wn(e,t,n){var r=xt(tt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):si(void 0,t),function(a){var c=r.__N?r.__N[0]:r.__[0],l=r.t(c,a);c!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=W,!W.u)){var s=function(a,c,l){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,c,l);var u=!1;return f.forEach(function(p){if(p.__N){var h=p.__[0];p.__=p.__N,p.__N=void 0,h!==p.__[0]&&(u=!0)}}),!(!u&&r.__c.props===a)&&(!o||o.call(this,a,c,l))};W.u=!0;var o=W.shouldComponentUpdate,i=W.componentWillUpdate;W.componentWillUpdate=function(a,c,l){if(this.__e){var f=o;o=void 0,s(a,c,l),o=f}i&&i.call(this,a,c,l)},W.shouldComponentUpdate=s}return r.__N||r.__}function _n(e,t){var n=xt(tt++,3);!Q.__s&&Kr(n.__H,t)&&(n.__=e,n.i=t,W.__H.__h.push(n))}function Gt(e,t){var n=xt(tt++,4);!Q.__s&&Kr(n.__H,t)&&(n.__=e,n.i=t,W.__h.push(n))}function jr(e){return Lt=5,gn(function(){return{current:e}},[])}function Gr(e,t,n){Lt=6,Gt(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 gn(e,t){var n=xt(tt++,7);return Kr(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Wr(e,t){return Lt=8,gn(function(){return e},t)}function qr(e){var t=W.context[e.__c],n=xt(tt++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(W)),t.props.value):e.__}function Zr(e,t){Q.useDebugValue&&Q.useDebugValue(t?t(e):e)}function Su(e){var t=xt(tt++,10),n=jt();return t.__=e,W.componentDidCatch||(W.componentDidCatch=function(r,s){t.__&&t.__(r,s),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Jr(){var e=xt(tt++,11);if(!e.__){for(var t=W.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Cu(){for(var e;e=ri.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach($n),e.__H.__h.forEach(Ar),e.__H.__h=[]}catch(t){e.__H.__h=[],Q.__e(t,e.__v)}}Q.__b=function(e){W=null,Ts&&Ts(e)},Q.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Vs&&Vs(e,t)},Q.__r=function(e){Bs&&Bs(e),tt=0;var t=(W=e.__c).__H;t&&(mr===W?(t.__h=[],W.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach($n),t.__h.forEach(Ar),t.__h=[],tt=0)),mr=W},Q.diffed=function(e){Is&&Is(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ri.push(t)!==1&&$s===Q.requestAnimationFrame||(($s=Q.requestAnimationFrame)||ku)(Cu)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),mr=W=null},Q.__c=function(e,t){t.some(function(n){try{n.__h.forEach($n),n.__h=n.__h.filter(function(r){return!r.__||Ar(r)})}catch(r){t.some(function(s){s.__h&&(s.__h=[])}),t=[],Q.__e(r,n.__v)}}),Ls&&Ls(e,t)},Q.unmount=function(e){Os&&Os(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{$n(r)}catch(s){t=s}}),n.__H=void 0,t&&Q.__e(t,n.__v))};var Rs=typeof requestAnimationFrame=="function";function ku(e){var t,n=function(){clearTimeout(r),Rs&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Rs&&(t=requestAnimationFrame(n))}function $n(e){var t=W,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),W=t}function Ar(e){var t=W;e.__c=e.__(),W=t}function Kr(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function si(e,t){return typeof t=="function"?t(e):t}function oi(e,t){for(var n in t)e[n]=t[n];return e}function Nr(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 Ln(e,t){this.props=e,this.context=t}function ii(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:Nr(this.props,s)}function r(s){return this.shouldComponentUpdate=n,m(e,s)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Ln.prototype=new Oe).isPureReactComponent=!0,Ln.prototype.shouldComponentUpdate=function(e,t){return Nr(this.props,e)||Nr(this.state,t)};var Ds=B.__b;B.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ds&&Ds(e)};var Au=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ai(e){function t(n){var r=oi({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Au,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Us=function(e,t){return e==null?null:Xe(Xe(e).map(t))},ui={map:Us,forEach:Us,count:function(e){return e?Xe(e).length:0},only:function(e){var t=Xe(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Xe},Nu=B.__e;B.__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)}Nu(e,t,n,r)};var Ps=B.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=oi({},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 ci(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return ci(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 ln(){this.__u=0,this.t=null,this.__b=null}function di(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function fi(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 m(n,o)}return s.displayName="Lazy",s.__f=!0,s}function Mt(){this.u=null,this.o=null}B.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ps&&Ps(e)},(ln.prototype=new Oe).__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 c=r.state.__a;r.__v.__k[0]=ci(c,c.__c.__P,c.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.t.pop();)l.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},ln.prototype.componentWillUnmount=function(){this.t=[]},ln.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&&m(Ce,null,e.fallback);return s&&(s.__u&=-33),[m(Ce,null,t.__a?null:e.children),s]};var zs=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 Fu(e){return this.getChildContext=function(){return e.context},e.children}function Mu(e){var t=this,n=e.i;t.componentWillUnmount=function(){dt(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)}}),dt(m(Fu,{context:t.context},e.__v),t.l)}function mi(e,t){var n=m(Mu,{__v:e,i:t});return n.containerInfo=t,n}(Mt.prototype=new Oe).__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),zs(t,e,r)):s()};n?n(o):o()}},Mt.prototype.render=function(e){this.u=null,this.o=new Map;var t=Xe(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},Mt.prototype.componentDidUpdate=Mt.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){zs(e,n,t)})};var hi=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Eu=/^(?: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]/,$u=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Tu=/[A-Z0-9]/g,Bu=typeof document<"u",Iu=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function pi(e,t,n){return t.__k==null&&(t.textContent=""),dt(e,t),typeof n=="function"&&n(),e?e.__c:null}function wi(e,t,n){return zr(e,t),typeof n=="function"&&n(),e?e.__c:null}Oe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Oe.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Hs=B.event;function Lu(){}function Ou(){return this.cancelBubble}function Vu(){return this.defaultPrevented}B.event=function(e){return Hs&&(e=Hs(e)),e.persist=Lu,e.isPropagationStopped=Ou,e.isDefaultPrevented=Vu,e.nativeEvent=e};var Yr,Ru={enumerable:!1,configurable:!0,get:function(){return this.class}},js=B.vnode;B.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||Bu&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var c=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&a===!0?a="":c==="translate"&&a==="no"?a=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?i="ondblclick":c!=="onchange"||r!=="input"&&r!=="textarea"||Iu(n.type)?c==="onfocus"?i="onfocusin":c==="onblur"?i="onfocusout":$u.test(i)&&(i=c):c=i="oninput":o&&Eu.test(i)?i=i.replace(Tu,"-$&").toLowerCase():a===null&&(a=void 0),c==="oninput"&&s[i=c]&&(i="oninputCapture"),s[i]=a}}r=="select"&&s.multiple&&Array.isArray(s.value)&&(s.value=Xe(n.children).forEach(function(l){l.props.selected=s.value.indexOf(l.props.value)!=-1})),r=="select"&&s.defaultValue!=null&&(s.value=Xe(n.children).forEach(function(l){l.props.selected=s.multiple?s.defaultValue.indexOf(l.props.value)!=-1:s.defaultValue==l.props.value})),n.class&&!n.className?(s.class=n.class,Object.defineProperty(s,"className",Ru)):(n.className&&!n.class||n.class&&n.className)&&(s.class=s.className=n.className),t.props=s}(e),e.$$typeof=hi,js&&js(e)};var Gs=B.__r;B.__r=function(e){Gs&&Gs(e),Yr=e.__c};var Ws=B.diffed;B.diffed=function(e){Ws&&Ws(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),Yr=null};var _i={ReactCurrentDispatcher:{current:{readContext:function(e){return Yr.__n[e.__c].props.value},useCallback:Wr,useContext:qr,useDebugValue:Zr,useDeferredValue:Xr,useEffect:_n,useId:Jr,useImperativeHandle:Gr,useInsertionEffect:ts,useLayoutEffect:Gt,useMemo:gn,useReducer:Wn,useRef:jr,useState:jt,useSyncExternalStore:ns,useTransition:es}}},Du="18.3.1";function gi(e){return m.bind(null,e)}function bn(e){return!!e&&e.$$typeof===hi}function bi(e){return bn(e)&&e.type===Ce}function yi(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function vi(e){return bn(e)?Hr.apply(null,arguments):e}function xi(e){return!!e.__k&&(dt(null,e),!0)}function Si(e){return e&&(e.base||e.nodeType===1&&e)||null}var Ci=function(e,t){return e(t)},ki=function(e,t){return e(t)},Ai=Ce;function Qr(e){e()}function Xr(e){return e}function es(){return[!1,Qr]}var ts=Gt,Ni=bn;function ns(e,t){var n=t(),r=jt({h:{__:n,v:t}}),s=r[0].h,o=r[1];return Gt(function(){s.__=n,s.v=t,hr(s)&&o({h:s})},[e,n,t]),_n(function(){return hr(s)&&o({h:s}),e(function(){hr(s)&&o({h:s})})},[e]),n}function hr(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 Fi={useState:jt,useId:Jr,useReducer:Wn,useEffect:_n,useLayoutEffect:Gt,useInsertionEffect:ts,useTransition:es,useDeferredValue:Xr,useSyncExternalStore:ns,startTransition:Qr,useRef:jr,useImperativeHandle:Gr,useMemo:gn,useCallback:Wr,useContext:qr,useDebugValue:Zr,version:"18.3.1",Children:ui,render:pi,hydrate:wi,unmountComponentAtNode:xi,createPortal:mi,createElement:m,createContext:ni,createFactory:gi,cloneElement:vi,createRef:Ko,Fragment:Ce,isValidElement:bn,isElement:Ni,isFragment:bi,isMemo:yi,findDOMNode:Si,Component:Oe,PureComponent:Ln,memo:ii,forwardRef:ai,flushSync:ki,unstable_batchedUpdates:Ci,StrictMode:Ai,Suspense:ln,SuspenseList:Mt,lazy:fi,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:_i};const Uu=Object.freeze(Object.defineProperty({__proto__:null,Children:ui,Component:Oe,Fragment:Ce,PureComponent:Ln,StrictMode:Ai,Suspense:ln,SuspenseList:Mt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:_i,cloneElement:vi,createContext:ni,createElement:m,createFactory:gi,createPortal:mi,createRef:Ko,default:Fi,findDOMNode:Si,flushSync:ki,forwardRef:ai,hydrate:wi,isElement:Ni,isFragment:bi,isMemo:yi,isValidElement:bn,lazy:fi,memo:ii,render:pi,startTransition:Qr,unmountComponentAtNode:xi,unstable_batchedUpdates:Ci,useCallback:Wr,useContext:qr,useDebugValue:Zr,useDeferredValue:Xr,useEffect:_n,useErrorBoundary:Su,useId:Jr,useImperativeHandle:Gr,useInsertionEffect:ts,useLayoutEffect:Gt,useMemo:gn,useReducer:Wn,useRef:jr,useState:jt,useSyncExternalStore:ns,useTransition:es,version:Du},Symbol.toStringTag,{value:"Module"})),Pu=`*,: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}.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-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%}.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}.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}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-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-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-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}.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 De(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function zu(e){return e!=null&&typeof e.GetEnumerator=="function"}function Hu(e){return e!=null&&typeof e.CompareTo=="function"}function ju(e){return e!=null&&typeof e.Equals=="function"}function Gu(e){return e!=null&&typeof e.GetHashCode=="function"}function Fr(e){return e!=null&&typeof e.Dispose=="function"}function K(e){Fr(e)&&e.Dispose()}function qe(){return null}function On(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 Wu{constructor(t){this.iter=t,this.current=qe()}"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 ee(e){return zu(e)?e.GetEnumerator():new Wu(e[Symbol.iterator]())}function qn(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 qs(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function qu(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function gt(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class ct{static id(t){return ct.idMap.has(t)||ct.idMap.set(t,++ct.count),ct.idMap.get(t)}}ct.idMap=new WeakMap;ct.count=0;function rs(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Je(e){return e*2654435761|0}function Zu(e){return rs(e.toString(32))}function yn(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 Ju(e){return e.getTime()}function Ku(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=nt(e[r]);return yn(n)}function nt(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Je(e);case"bigint":return Zu(e);case"string":return rs(e);default:{if(Gu(e))return e.GetHashCode();if(De(e))return Ku(e);if(e instanceof Date)return Ju(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>nt(r));return yn(n)}else return Je(ct.id(e))}}}function Mr(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 Mi(e,t){return Mr(e,t,Ve)}function Yu(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]||!Ve(e[n[s]],t[r[s]]))return!1;return!0}function Ve(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:ju(e)?e.Equals(t):De(e)?De(t)&&Mi(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Ei(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&Yu(e,t)}function Ei(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+qs(e),r=t.getTime()+qs(t)),n===r?0:n<r?-1:1}function ss(e,t){return e===t?0:e<t?-1:1}function Qu(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 $i(e,t){return Qu(e,t,Me)}function Xu(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=Me(e[i],t[i]),o!==0)return o}return 0}function Me(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:Hu(e)?e.CompareTo(t):De(e)?De(t)?$i(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Ei(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?Xu(e,t):-1}function C(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function el(e){De(e)?e.splice(0):e.clear()}const Zn=new WeakMap;function G(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Zn.set(t,e),t}function T(e){return Zn.get(e)??(t=>n=>e(t,n))}function Er(e){if(e==null)return null;const t=(n,r,s)=>e(n)(r)(s);return Zn.set(t,e),t}function pr(e){return Zn.get(e)??(t=>n=>r=>e(t,n,r))}function tl(e){let t=0,n="[";for(const r of e){if(t===0)n+=Ue(r);else if(t===100){n+="; ...";break}else n+="; "+Ue(r);t++}return n+"]"}function Ue(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 tl(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([s,o])=>s+" = "+Ue(o,t+1)).join(`
|
|
2
|
+
`)+" }":(r==null?void 0:r.name)??""}}return String(e)}function nl(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Ue(t[0]),r=n.indexOf(" ")>=0):n=t.map(s=>Ue(s)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class F{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return nl(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>nt(n));return t.splice(0,0,Je(this.tag)),yn(t)}Equals(t){return this===t?!0:On(this,t)&&this.tag===t.tag?Mi(this.fields,t.fields):!1}CompareTo(t){return this===t?0:On(this,t)?this.tag===t.tag?$i(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function rl(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function sl(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Ue(n)).join(`
|
|
3
|
+
`)+" }"}function ol(e){const t=Object.values(e).map(n=>nt(n));return yn(t)}function il(e,t){if(e===t)return!0;if(On(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!Ve(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function al(e,t){if(e===t)return 0;if(On(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const s=Me(e[n[r]],t[n[r]]);if(s!==0)return s}return 0}else return-1}class H{toJSON(){return rl(this)}toString(){return sl(this)}GetHashCode(){return ol(this)}Equals(t){return il(this,t)}CompareTo(t){return al(this,t)}}class Pe{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 ul{constructor(t){this.message=t}}function ll(e){return e instanceof ul||e instanceof Error}function cl(e){return e instanceof Promise}function Vn(e){return ll(e)||cl(e)?e:new Error(String(e))}const Ti=Ue(Pu),v=Fi,Wt=Symbol("numeric");function Bi(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[Wt])}function dl(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function $r(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Wt]().multiply(t)}function Tn(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Wt]().toFixed(t)}function Rn(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Wt]().toPrecision(t)}function Dn(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Wt]().toExponential(t)}function Un(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Wt]().toHex()}const fl=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ml=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],hl=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],pl=["January","February","March","April","May","June","July","August","September","October","November","December"];function be(e,t,n){let r=0,s=t;for(;s<e.length&&e[s]===n;)s++,r++;return r}function Zs(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function wl(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 os(e,t,n){let r=0,s=0,o="";const i=n?vn(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(s=be(t,r,"d"),r+=s,s){case 1:o+=Ks(i);break;case 2:o+=Z(Ks(i),2);break;case 3:o+=fl[Xs(i)];break;case 4:o+=ml[Xs(i)];break}break;case"f":if(s=be(t,r,"f"),r+=s,s<=3){const b=10**(3-s);o+=Z(Math.floor(Mn(i)/b),s)}else s<=7&&(o+=(""+Mn(i)).padEnd(s,"0"));break;case"F":if(s=be(t,r,"F"),r+=s,s<=3){const b=10**(3-s),y=Math.floor(Mn(i)/b);y!=0&&(o+=Z(y,s))}else if(s<=7){const b=Mn(i);b!=0&&(o+=Z(b,3))}break;case"g":s=be(t,r,"g"),r+=s,s<=2&&(o+="A.D.");break;case"h":switch(s=be(t,r,"h"),r+=s,s){case 1:o+=Fn(i)%12;break;case 2:o+=Z(Fn(i)%12,2);break}break;case"H":switch(s=be(t,r,"H"),r+=s,s){case 1:o+=Fn(i);break;case 2:o+=Z(Fn(i),2);break}break;case"K":switch(s=be(t,r,"K"),r+=s,s){case 1:switch(Js(i)){case 1:o+="Z";break;case 2:o+=$t(i.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(s=be(t,r,"m"),r+=s,s){case 1:o+=Ys(i);break;case 2:o+=Z(Ys(i),2);break}break;case"M":switch(s=be(t,r,"M"),r+=s,s){case 1:o+=En(i);break;case 2:o+=Z(En(i),2);break;case 3:o+=hl[En(i)-1];break;case 4:o+=pl[En(i)-1];break}break;case"s":switch(s=be(t,r,"s"),r+=s,s){case 1:o+=Qs(i);break;case 2:o+=Z(Qs(i),2);break}break;case"t":switch(s=be(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=be(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=be(t,r,"z"),r+=s;let c="";switch(Js(i)){case 1:c="+00:00";break;case 2:c=$t(i.getTimezoneOffset()*-6e4);break;case 0:c=$t(kl(i).getTimezoneOffset()*-6e4);break}const l=c[0]==="-"?"-":"+",f=parseInt(c.substring(1,3),10),u=parseInt(c.substring(4,6),10);switch(s){case 1:o+=`${l}${f}`;break;case 2:o+=`${l}${Z(f,2)}`;break;default:o+=`${l}${Z(f,2)}:${Z(u,2)}`;break}break;case":":o+=":",r++;break;case"/":o+="/",r++;break;case"'":case'"':const[p,h]=wl(t,r);o+=p,r+=h;break;case"%":const w=Zs(t,r);if(w>=0&&w!==37)r+=2,o+=os(i,String.fromCharCode(w),n);else throw new Error("Invalid format string");break;case"\\":const g=Zs(t,r);if(g>=0)r+=2,o+=String.fromCharCode(g);else throw new Error("Invalid format string");break;default:r++,o+=a;break}}return o}function Js(e){return e.kind||0}function $t(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 Pn(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 _l(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?$t(e.getTimezoneOffset()*-6e4):"")}}function gl(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+$t(t)}function bl(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," ")+$t(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return Pn(n,"first");case"T":case"t":return Pn(n,"second");case"O":case"o":return gl(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return os(n,t,!0)}function yl(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?Pn(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Pn(e,"second"):e.toLocaleTimeString();case"O":case"o":return _l(e,n);default:throw new Error("Unrecognized Date print format")}else return os(e,t,n)}function Ii(e,t,n){return e.offset!=null?bl(e,t):yl(e,t)}function vn(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function vl(){return vn(-621355968e5,1)}function Li(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const 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(":"),c=parseInt(a[0],10);i=c*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),s[3]!=null&&s[3].toUpperCase()==="PM"&&c<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 xl(e,t=!1){const[n,r]=Li(e),s=r!=null?t&&r==="Z"?1:2:0;return vn(n.getTime(),s)}function Sl(e,t){try{return t.contents=xl(e),!0}catch{return!1}}function Cl(e){return e.kind===1?e:vn(e.getTime(),1)}function kl(e){return e.kind===2?e:vn(e.getTime(),2)}function Ks(e){return e.kind===1?e.getUTCDate():e.getDate()}function Fn(e){return e.kind===1?e.getUTCHours():e.getHours()}function Mn(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function Ys(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function En(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function Qs(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Xs(e){return e.kind===1?e.getUTCDay():e.getDay()}function Oi(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 Vi(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Al(e,t,n=0){return e.lastIndex=n,e.test(t)}function eo(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 is(e,t,n,r,s=0){function o(){let i=arguments[0];if(r){r--;const a=[],c=arguments.length,l=typeof arguments[c-1]!="string";let f=l?c-3:c-2;for(let u=0;u<f;u++)a.push(arguments[u]);a.index=arguments[f++],a.input=arguments[f++],l&&(a.groups=arguments[f]),i=n(a)}return i}if(typeof e=="string"){const i=e;e=Oi(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),c=eo(e,a),l=eo.length>r?(i=c[r-1],a.substring(0,i.index+i[0].length)):a;return t.substring(0,s)+l.replace(e,n)+t.substring(s+l.length)}else return t.replace(e,n)}const Yt=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Nl=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Ri(e,t){return dl(e,t)<0}function Ot(e){return{input:e,cont:El(e)}}function Di(e,t){return typeof t=="string"?e(t):t.cont(e)}function dn(e){return Di(t=>t,e)}function Fl(e){return Di(t=>{throw new Error(t)},e)}function Ml(e,t,n,r,s){let o="";if(t=t||"",s=s||"",Bi(e))switch(s.toLowerCase()!=="x"&&(Ri(e,0)?(e=$r(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=Tn(e,r);break;case"g":case"G":e=r!=null?Rn(e,r):Rn(e);break;case"e":case"E":e=r!=null?Dn(e,r):Dn(e);break;case"x":e=Un(e);break;case"X":e=Un(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Ii(e):e=Ue(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,c=a||!i?" ":"0";c==="0"?(e=fn(e,n-o.length,c,a),e=o+e):e=fn(o+e,n,c,a)}return e}function Ui(e,t,n,r="",s=-1){return(...o)=>{let i=r;const a=t.slice(),c=n.slice();for(const l of o){const[,,f,u,p,h]=c[0];let w=u;if(s>=0)w=s,s=-1;else if(w==="*"){if(l<0)throw new Error("Non-negative number required");s=l;continue}i+=a[0],i+=Ml(l,f,w,p,h),a.splice(0,1),c.splice(0,1)}return c.length===0?(i+=a[0],e(i)):Ui(e,a,c,i,s)}}function El(e){return t=>{Yt.lastIndex=0;const n=[],r=[];let s=0,o=Yt.exec(e);for(;o;){const i=o.index+(o[1]||"").length;n.push(e.substring(s,i).replace(/%%/g,"%")),r.push(o),s=Yt.lastIndex,Yt.lastIndex-=1,o=Yt.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(s).replace(/%%/g,"%")),Ui(t,n,r))}}function $l(e,...t){let n;return n=e,n.replace(Nl,(r,s,o,i,a,c)=>{if(s<0||s>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let l=t[s];if(Bi(l))switch(a=a==null?null:parseInt(a,10),i){case"f":case"F":a=a??2,l=Tn(l,a);break;case"g":case"G":l=a!=null?Rn(l,a):Rn(l);break;case"e":case"E":l=a!=null?Dn(l,a):Dn(l);break;case"p":case"P":a=a??2,l=Tn($r(l,100),a)+" %";break;case"d":case"D":l=a!=null?wr(String(l),a,"0"):String(l);break;case"x":case"X":l=a!=null?wr(Un(l),a,"0"):Un(l),i==="X"&&(l=l.toUpperCase());break;default:if(c){let f="";l=c.replace(/([0#,]+)(\.[0#]+)?/,(u,p,h)=>{Ri(l,0)&&(l=$r(l,-1),f="-"),h=h==null?"":h.substring(1),l=Tn(l,Math.max(h.length,0));let[w,g]=l.split(".");g||(g="");const b=p.replace(/,/g,"").replace(/^#+/,"").length;w=wr(w,b,"0");const y=h.replace(/#+$/,"").length;if(y>g.length?g=Bl(g,y,"0"):y<g.length&&(g=g.substring(0,y)+g.substring(y).replace(/0+$/,"")),p.indexOf(",")>0){const k=w.length%3,_=Math.floor(w.length/3);let V=k>0?w.substr(0,k)+(_>0?",":""):"";for(let oe=0;oe<_;oe++)V+=w.substr(k+oe*3,3)+(oe<_-1?",":"");w=V}return g.length>0?w+"."+g:w}),l=f+l}}else l instanceof Date?l=Ii(l,c||i):l=Ue(l);return o=parseInt((o||" ").substring(1),10),isNaN(o)||(l=fn(String(l),Math.abs(o)," ",o<0)),l})}function Tl(e){return typeof e!="string"||e.length===0}function Pi(e){return typeof e!="string"||/^\s*$/.test(e)}function O(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function fn(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 wr(e,t,n){return fn(e,t,n)}function Bl(e,t,n){return fn(e,t,n,!0)}function Il(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(Vi),t=t.length>0?t:["\\s"];const i=[],a=new RegExp(t.join("|"),"g");let c=!0,l=0;do{const f=a.exec(e);if(f===null){const u=o?e.substring(l).trim():e.substring(l);(!s||u.length>0)&&i.push(u),c=!1}else{const u=o?e.substring(l,f.index).trim():e.substring(l,f.index);(!s||u.length>0)&&(n!=null&&i.length+1===n?(i.push(o?e.substring(l).trim():e.substring(l)),c=!1):i.push(u)),l=a.lastIndex}}while(c);return i}function Ll(e,...t){if(t.length===0)return e.trim();const n="["+Vi(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class bt{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return nt(this.value)}Equals(t){return t==null?!1:Ve(this.value,t instanceof bt?t.value:t)}CompareTo(t){return t==null?1:Me(this.value,t instanceof bt?t.value:t)}}function S(e){if(e==null)throw new Error("Option has no value");return e instanceof bt?e.value:e}function as(e){return e instanceof bt?e.value:e}function Re(e){return e==null||e instanceof bt?new bt(e):e}function Jn(e,t){return e!=null?S(e):t}class Ol{constructor(t,n,r,s){this.declaringType=t,this.tag=n,this.name=r,this.fields=s}}class ke{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 re(this)}GetHashCode(){return zi(this)}Equals(t){return Tr(this,t)}}function Ke(e){return e.generics!=null?e.generics:[]}function zi(e){const t=rs(e.fullname),n=Ke(e).map(zi);return yn([t,...n])}function Tr(e,t){return e.fullname===""?t.fullname===""&&Mr(zn(e),zn(t),([n,r],[s,o])=>n===s&&Tr(r,o)):e.fullname===t.fullname&&Mr(Ke(e),Ke(t),Tr)}function to(e,t,n,r){return new ke(e,t,n,r)}function st(e,t,n,r){return new ke(e,t,n,void 0,r)}function Vl(...e){return new ke("",void 0,void 0,void 0,()=>e)}function Rl(e,t,n,r){const s=new ke(e,t,n,void 0,void 0,()=>{const o=n.prototype.cases();return r().map((i,a)=>new Ol(s,a,o[a],i))});return s}function rt(e){return new ke("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Dl(e){return new ke("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Ul=new ke("System.Object"),J=new ke("System.String"),Br=new ke("System.Boolean");function us(e){if(Array.isArray(e))return e[0];if(e instanceof ke){const t=Kn(e);if(t!=null)return us(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function re(e){const t=Kn(e);return t!=null?re(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>re(n)).join(",")+"]"}function Pl(e){return Kn(e)!=null}function Kn(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function zl(e){return e.generics!=null&&e.generics.length>0}function Hi(e){return e.enumCases!=null&&e.enumCases.length>0}function Hl(e){return e.generics==null?e:new ke(e.fullname,e.generics.map(()=>Ul))}function jl(e){var t;return(t=e.generics)==null?void 0:t[0]}function St(e){if(Hi(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Gl(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 Ct(e,t){const n=parseInt(t,10);return Gl(e,isNaN(n)?t:n)[1]}function Wl(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function zn(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function ql(e){if(ji(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Zl(e){return e instanceof ke?e.cases!=null:e instanceof F}function Jl(e){return e instanceof ke?e.fields!=null:e instanceof H}function ji(e){return e.fullname.startsWith("System.Tuple")}function Kl(e){return e.fields==null?[]:e.fields}function Yl(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 Ql(e,t){const n=zn(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 Xl(e,t){return e}const Gi="Collection was empty.";function Wi(e,t){return new Array(t)}function no(e,t){return e>t?e:t}function ls(e,t,n,r){const s=t|0;return e.fill(r,s,s+n)}function Yn(e,t,n){const r=t.length|0,s=Wi(n,r);for(let o=0;o<=r-1;o++)ft(s,o,e(he(o,t)));return s}function ec(e,t){const n=Wi(t,1);return ft(n,0,e),n}function tc(e){return e.slice().reverse()}function nc(e,t){return t.find(e)}function rc(e,t,n){const r=[];for(let s=0;s<=t.length-1;s++){const o=e(he(s,t));if(o!=null){const i=S(o);r.push(i)}}return Ve(n,qe())?r:Yn(s=>s,r,n)}function Qn(e,t,n){const r=e;return n.reduce(r,t)}function he(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 ft(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 qi(e,t,n){return t.reduceRight((r,s)=>e(s,r),n)}class ue extends H{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+O("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((s,o)=>{e:for(;;){const i=s,a=o,c=i.tail,l=a.tail;if(c!=null)if(l!=null){const f=S(c),u=S(l);if(Ve(i.head,a.head)){s=f,o=u;continue e}else return!1}else return!1;else return l==null}})(n,t)}GetHashCode(){return((r,s,o)=>{e:for(;;){const i=r,a=s,c=o,l=c.tail;if(l!=null){const f=S(l);if(i>18)return a|0;r=i+1,s=(a<<1)+nt(c.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,c=i.tail,l=a.tail;if(c!=null)if(l!=null){const f=S(c),u=S(l),p=Me(i.head,a.head)|0;if(p===0){s=f,o=u;continue e}else return p|0}else return 1;else return l!=null?-1:0}})(this,t)|0}GetEnumerator(){return oc(this)}[Symbol.iterator](){return qn(ee(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ee(this)}}class sc{constructor(t){this.xs=t,this.it=this.xs,this.current=qe()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=S(n);return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=qe()}Dispose(){}}function oc(e){return new sc(e)}function X(){return new ue(qe(),void 0)}function xn(e,t){return new ue(e,t)}function yt(e){return e.tail==null}function Zi(e){return((n,r)=>{e:for(;;){const s=n,i=r.tail;if(i!=null){n=s+1,r=S(i);continue e}else return s|0}})(0,e)|0}function Vt(e){if(e.tail!=null)return e.head;throw new Error(Gi+"\\nParameter name: list")}function we(e){const t=e.tail;if(t!=null)return S(t);throw new Error(Gi+"\\nParameter name: list")}function le(){return X()}function xe(e,t){return xn(e,t)}function M(e){return xn(e,X())}function U(e){return yt(e)}function ro(e){return Zi(e)}function N(e){return Vt(e)}function R(e){return we(e)}function Sn(e){const t=Zi(e)|0,n=ls(new Array(t),0,t,null);return((s,o)=>{e:for(;;){const i=s,a=o;if(!yt(a)){ft(n,i,Vt(a)),s=i+1,o=we(a);continue e}break}})(0,e),n}function ze(e,t,n){let r=t,s=n;for(;!yt(s);)r=e(r,N(s)),s=we(s);return r}function cs(e){return ze((t,n)=>xn(n,t),X(),e)}function ic(e,t,n){return qi(e,Sn(t),n)}function ac(e,t,n){return((s,o,i)=>{e:for(;;){const a=s,c=o,l=i;if(yt(l))return c;s=a+1,o=e(a,c,Vt(l)),i=we(l);continue e}})(0,t,n)}function uc(e,t,n,r){let s=t,o=n,i=r;for(;!yt(o)&&!yt(i);)s=e(s,Vt(o),Vt(i)),o=we(o),i=we(i);return s}function mn(e,t){ze((n,r)=>{e(r)},void 0,t)}function Y(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=xn(he(r,e),n);return n}function x(e){return Y(e,X())}function lc(e){let t,n;if(De(e))return x(e);if(e instanceof ue)return e;{const r=X();let s=r;const o=ee(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const c=o["System.Collections.Generic.IEnumerator`1.get_Current"]();s=(t=s,n=new ue(c,void 0),t.tail=n,n)}}finally{K(o)}const i=s,a=X();return i.tail=a,we(r)}}function cc(e){const t=X();let n=t;const r=i=>{n=ze((a,c)=>{const l=new ue(c,void 0);return a.tail=l,l},n,i)};if(De(e))e.forEach(r);else if(e instanceof ue)mn(r,e);else{const i=ee(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();)r(i["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{K(i)}}const s=n,o=X();return s.tail=o,we(t)}function ds(e,t){return ze((n,r)=>xn(r,n),t,cs(e))}function dc(e,t){const n=X(),r=ac((o,i,a)=>{const c=new ue(e(o,a),void 0);return i.tail=c,c},n,t),s=X();return r.tail=s,we(n)}function fs(e,t){const n=X(),r=ze((o,i)=>{const a=new ue(e(i),void 0);return o.tail=a,a},n,t),s=X();return r.tail=s,we(n)}function fc(e,t){return(r=>{e:for(;;){const s=r;if(yt(s))return;{const o=e(Vt(s));if(o==null){r=we(s);continue e}else return o}}})(t)}function mc(e,t){const n=X(),r=ze((o,i)=>{if(e(i)){const a=new ue(i,void 0);return o.tail=a,a}else return o},n,t),s=X();return r.tail=s,we(n)}function hc(e,t){const n=X(),r=X(),s=n,o=ze((c,l)=>{let f,u;const p=c[0],h=c[1];return e(l)?[(f=new ue(l,void 0),p.tail=f,f),h]:[p,(u=new ue(l,void 0),h.tail=u,u)]},[s,r],t),i=X();o[0].tail=i;const a=X();return o[1].tail=a,[we(s),we(r)]}function pc(e,t){const n=X(),r=ze((o,i)=>{const a=e(i);if(a==null)return o;{const c=new ue(S(a),void 0);return o.tail=c,c}},n,t),s=X();return r.tail=s,we(n)}function Ji(e,t){return ze((n,r)=>n&&e(r),!0,t)}class wc{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 Xn extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Xn.prototype)}}class ms{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>ms.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Qe(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Xn);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Vn(n))}});else try{e(t)}catch(n){t.onError(Vn(n))}}}function _c(e,t){return Qe(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(s){n.onError(Vn(s))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function gc(e){return Qe(t=>t.onSuccess(e))}class bc{Bind(t,n){return _c(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Qe(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 gc(t)}ReturnFrom(t){return t}TryFinally(t,n){return Qe(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 Qe(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:s=>{try{n(s)(r)}catch(o){r.onError(Vn(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 Qe(t=>t.onSuccess(void 0))}}const D=new bc;function yc(e){return new Ki(0,[e])}function vc(e){return new Ki(1,[e])}class Ki extends F{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function xc(e){return yc(e)}function Sc(e){return vc(e)}function _r(e){}const Cc=new wc;function kc(e){return Qe(t=>{e({onSuccess:n=>t.onSuccess(xc(n)),onError:n=>t.onSuccess(Sc(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Ac(e){return Qe(t=>e([t.onSuccess,t.onError,t.onCancel]))}function Nc(e){return Qe(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new Xn)})})}function Fc(e,t){return Ec(e,t)}function Mc(e,t){return Fc(e,t)}function Ec(e,t,n,r,s){typeof t!="function"&&(s=t,t=void 0);const o=new ms;e({onSuccess:t||_r,onError:_r,onCancel:_r,cancelToken:s||Cc,trampoline:o})}class At extends F{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class $c extends F{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class Tc extends F{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class er extends H{constructor(t,n,r,s,o,i,a,c){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=s,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=a,this.content=c}}class Nt extends F{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Yi 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 Bc(e){throw new Error(e)}const Ic="Enumeration already finished.",Lc="Enumeration has not started. Call MoveNext.",Qi="The input sequence has an insufficient number of elements.",Oc="Reset is not supported on this enumerator.";function Vc(){throw new Error(Oc)}function hs(){throw new Error(Lc)}function Ir(){throw new Error(Ic)}class Rc{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const s=ee(t);try{for(;n<4&&s["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Ue(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 qn(ee(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Dc(e){return new Rc(e)}class Uc{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"(){Vc()}Dispose(){this.dispose()}}function tr(e,t,n){return new Uc(e,t,n)}function Pc(e){let t,n,r=!1,s=!1,o;const i=()=>{if(s=!0,n!=null){const a=S(n);try{K(a)}finally{n=void 0}}if(t!=null){const a=S(t);try{K(a)}finally{t=void 0}}};return tr(()=>(r?s&&Ir():hs(),o!=null?S(o):Ir()),()=>{let a;if(r||(r=!0),s)return!1;{let c;for(;c==null;){const l=t,f=n;if(l!=null)if(f!=null){const u=S(f);if(u["System.Collections.IEnumerator.MoveNext"]())o=Re(u["System.Collections.Generic.IEnumerator`1.get_Current"]()),c=!0;else try{K(u)}finally{n=void 0}}else{const u=S(l);u["System.Collections.IEnumerator.MoveNext"]()?n=(a=u["System.Collections.Generic.IEnumerator`1.get_Current"](),ee(a)):(i(),c=!1)}else t=ee(e)}return S(c)}},()=>{s||i()})}function zc(e,t){return tr(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{K(t)}finally{}})}function Xi(e,t,n){let r=!1,s,o=Re(e());const i=()=>{if(o!=null){const c=S(o);try{n(c)}finally{o=void 0}}},a=()=>{try{i()}finally{s=void 0}};return tr(()=>(r||hs(),s!=null?S(s):Ir()),()=>{if(r||(r=!0),o!=null){const c=S(o);let l;try{l=t(c)}catch(f){throw a(),f}return l!=null?(s=l,!0):(a(),!1)}else return!1},i)}function Hc(e,t){let n,r=t;return tr(()=>{if(n!=null){const s=S(n)[0];return S(n)[1],s}else return hs()},()=>(n=e(r),n!=null?(S(n)[0],r=S(n)[1],!0):!1),()=>{})}function jc(e,t){t==null&&Bc(e)}function qt(e){return Dc(e)}function vt(e){return jc("source",e),ee(e)}function I(e){return qt(()=>ee(e()))}function ea(e){return qt(()=>Pc(e))}function Gc(e,t){return qt(()=>Hc(e,t))}function Ae(){return I(()=>new Array(0))}function z(e){return I(()=>ec(e))}function Wc(e){return e instanceof ue?Sn(e):Array.from(e)}function _e(e){return De(e)?x(e):e instanceof ue?e:lc(e)}function qc(e,t,n){return qt(()=>Xi(e,t,n))}function Zc(e,t,n){return qt(()=>{let r=-1;return Xi(e,s=>(r=r+1|0,t(r,s)),n)})}function se(e,t){return ea([e,t])}function Jc(e,t,n){const r=vt(t);try{const s=vt(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 kt(e,t,n){const r=vt(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 ta(e,t,n){const r=vt(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 na(e,t){ta((n,r)=>{e(r)},void 0,t)}function je(e,t){return qc(()=>vt(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?Re(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{K(n)})}function Kc(e){return I(()=>tc(Wc(e)))}function Yc(e,t){return qt(()=>{const n=vt(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Qi+"\\nParameter name: source");return zc(()=>{},n)}catch(r){throw K(n),r}})}function Qc(e,t){return Zc(()=>vt(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return Re(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Qi+"\\nParameter name: source")}else return},n=>{K(n)})}function Xc(e,t){return I(()=>ea(je(e,t)))}class ra{constructor(t,n){this.k=t,this.v=n}}function Hn(e,t){return new ra(e,t)}function pe(e){return e.k}function Se(e){return e.v}class te extends ra{constructor(t,n,r,s,o){super(t,n),this.left=r,this.right=s,this.h=o|0}}function Bn(e,t,n,r,s){return new te(e,t,n,r,s)}function fe(e){return e.left}function me(e){return e.right}function _t(e){return e.h}function sa(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=S(r);if(s instanceof te){const o=s;e=sa(n+1,fe(o)),t=me(o);continue e}else return n+1|0}else return n|0}}function ed(e){return sa(0,e)}function $e(e,t,n,r){let s,o,i;const a=e;if(a!=null){const u=S(a);i=u instanceof te?(s=u,_t(s)):1}else i=0;let c;const l=r;if(l!=null){const u=S(l);c=u instanceof te?(o=u,_t(o)):1}else c=0;const f=(i<c?c:i)|0;return f===0?Hn(t,n):Bn(t,n,e,r,f+1)}function so(e,t,n,r){let s,o,i,a,c,l,f,u,p;const h=e;if(h!=null){const b=S(h);p=b instanceof te?(s=b,_t(s)):1}else p=0;let w;const g=r;if(g!=null){const b=S(g);w=b instanceof te?(o=b,_t(o)):1}else w=0;if(w>p+2){const b=S(r);if(b instanceof te){const y=b;if(i=fe(y),(i!=null?(a=S(i),a instanceof te?(c=a,_t(c)):1):0)>p+1){const k=S(fe(y));if(k instanceof te){const _=k;return $e($e(e,t,n,fe(_)),pe(_),Se(_),$e(me(_),pe(y),Se(y),me(y)))}else throw new Error("internal error: Map.rebalance")}else return $e($e(e,t,n,fe(y)),pe(y),Se(y),me(y))}else throw new Error("internal error: Map.rebalance")}else if(p>w+2){const b=S(e);if(b instanceof te){const y=b;if(l=me(y),(l!=null?(f=S(l),f instanceof te?(u=f,_t(u)):1):0)>w+1){const k=S(me(y));if(k instanceof te){const _=k;return $e($e(fe(y),pe(y),Se(y),fe(_)),pe(_),Se(_),$e(me(_),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return $e(fe(y),pe(y),Se(y),$e(me(y),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return $e(e,t,n,r)}function Rt(e,t,n,r){if(r!=null){const s=S(r),o=e.Compare(t,pe(s))|0;if(s instanceof te){const i=s;return o<0?so(Rt(e,t,n,fe(i)),pe(i),Se(i),me(i)):o===0?Bn(t,n,fe(i),me(i),_t(i)):so(fe(i),pe(i),Se(i),Rt(e,t,n,me(i)))}else return o<0?Bn(t,n,void 0,r,2):o===0?Hn(t,n):Bn(t,n,r,void 0,2)}else return Hn(t,n)}function oa(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o!=null){const i=S(o),a=r.Compare(s,pe(i))|0;if(a===0)return Re(Se(i));if(i instanceof te){const c=i;e=r,t=s,n=a<0?fe(c):me(c);continue e}else return}else return}}function td(e,t,n){const r=oa(e,t,n);if(r==null)throw new Error;return S(r)}function nd(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o!=null){const i=S(o),a=r.Compare(s,pe(i))|0;if(i instanceof te){const c=i;if(a<0){e=r,t=s,n=fe(c);continue e}else{if(a===0)return!0;e=r,t=s,n=me(c);continue e}}else return a===0}else return!1}}function ia(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=S(r);if(s instanceof te){const o=s;ia(n,fe(o)),n(pe(o),Se(o)),e=n,t=me(o);continue e}else n(pe(s),Se(s))}break}}function rd(e,t){ia(e,t)}function sd(e,t,n){let r=n;rd((s,o)=>{ft(t,r,[s,o]),r=r+1|0},e)}function od(e,t){return ze((n,r)=>Rt(e,r[0],r[1],n),void 0,t)}function id(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=Rt(r,i[0],i[1],s),n=o;continue e}else return s}}function ad(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const s=he(r,t);n=Rt(e,s[0],s[1],n)}return n}function aa(e,t){if(De(t))return ad(e,t);if(t instanceof ue)return od(e,t);{const n=ee(t);try{return id(e,void 0,n)}finally{K(n)}}}class ud extends H{constructor(t,n){super(),this.stack=t,this.started=n}}function ua(e){e:for(;;){const t=e;if(U(t))return le();{const n=R(t),r=N(t);if(r!=null){const s=S(r);if(s instanceof te){const o=s;e=Y([fe(o),Hn(pe(o),Se(o)),me(o)],n);continue e}else return t}else{e=n;continue e}}}}function oo(e){return new ud(ua(M(e)),!1)}function ld(){throw new Error("enumeration not started")}function cd(){throw new Error("enumeration already finished")}function io(e){if(e.started){const t=e.stack;if(U(t))return cd();if(N(t)!=null){const n=S(N(t));if(n instanceof te)throw new Error("Please report error: Map iterator, unexpected stack for current");return[pe(n),Se(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return ld()}function dd(e){if(e.started){const t=e.stack;if(U(t))return!1;if(N(t)!=null){if(S(N(t))instanceof te)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=ua(R(t)),!U(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!U(e.stack)}function ao(e){let t=oo(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return io(t)},"System.Collections.IEnumerator.get_Current"(){return io(t)},"System.Collections.IEnumerator.MoveNext"(){return dd(t)},"System.Collections.IEnumerator.Reset"(){t=oo(e)},Dispose(){}}}class jn{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return pd(this)|0}Equals(t){const n=this;if(t instanceof jn){const r=t,s=ee(n);try{const o=ee(r);try{const i=()=>{const a=s["System.Collections.IEnumerator.MoveNext"]();if(a===o["System.Collections.IEnumerator.MoveNext"]())if(a){const c=s["System.Collections.Generic.IEnumerator`1.get_Current"](),l=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return Ve(c[0],l[0])&&Ve(c[1],l[1])?i():!1}else return!0;else return!1};return i()}finally{K(o)}}finally{K(s)}}else return!1}toString(){return"map ["+O("; ",je(n=>$l("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return ao(this.tree)}[Symbol.iterator](){return qn(ee(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ao(this.tree)}CompareTo(t){const n=this;if(t instanceof jn)return Jc((s,o)=>{const i=n.comparer.Compare(s[0],o[0])|0;return(i!==0?i:Me(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 lo(n,t[0])&&Ve(uo(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){sd(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return gr(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return gr(this)|0}get size(){return gr(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return je(n=>[n[0],n[1]],this)}get(t){return uo(this,t)}has(t){return lo(this,t)}keys(){return je(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return je(n=>n[1],this)}forEach(t,n){const r=this;na(s=>{t(s[1],s[0],r)},r)}}function nr(e,t){return new jn(e,t)}function fd(e){return nr(e,void 0)}function md(e,t,n){return nr(e.comparer,Rt(e.comparer,t,n,e.tree))}function uo(e,t){return td(e.comparer,t,e.tree)}function gr(e){return ed(e.tree)}function lo(e,t){return nd(e.comparer,t,e.tree)}function hd(e,t){return oa(e.comparer,t,e.tree)}function pd(e){const t=(s,o)=>(s<<1)+o+631;let n=0;const r=ee(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const s=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,nt(s[0]))|0,n=t(n,nt(s[1]))|0}}finally{K(r)}return n|0}function wd(e,t,n){return md(n,e,t)}function _d(e,t){return hd(t,e)}function gd(e,t){return nr(t,aa(t,e))}function bd(e,t){return nr(t,aa(t,e))}function la(e){return fd(e)}function Qt(e){return new $c("Authorization",e)}const pt=new er("",new At(0,[]),le(),!1,void 0,void 0,void 0,new Tc(0,[]));new Yi(0,"","","",la({Compare:ss}),new Nt(0,[""]));function co(e,t){return Tl(t)?new Array(0):Il(t,[e],void 0,0)}function yd(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 Xt(e){return new er(e,pt.method,pt.headers,pt.withCredentials,pt.overridenMimeType,pt.overridenResponseType,pt.timeout,pt.content)}function en(e,t){return new er(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function tn(e,t){return new er(t.url,t.method,ds(t.headers,M(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function nn(e){return Ac(t=>{const n=new XMLHttpRequest;n.open(yd(e.method),e.url),n.onreadystatechange=()=>{let c,l,f,u,p,h,w;n.readyState===4&&t[0]((c=(l=n.responseType,l===""||l==="text"?n.responseText:""),f=n.status|0,u=n.responseType,p=(h=n.responseType,h===""?new Nt(0,[n.responseText]):h==="text"?new Nt(0,[n.responseText]):h==="arraybuffer"?new Nt(2,[n.response]):h==="blob"?new Nt(1,[n.response]):new Nt(3,[n.response])),w=bd(rc(g=>{const b=x(co(":",g));if(!U(b))return[N(b).toLocaleLowerCase(),O(":",R(b)).trim()]},co(`\r
|
|
4
|
+
`,n.getAllResponseHeaders())),{Compare:ss}),new Yi(f,c,u,n.responseURL,w,p)))};const r=ee(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const c=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(c.fields[0],c.fields[1])}}finally{K(r)}n.withCredentials=e.withCredentials;const s=e.overridenMimeType;if(s!=null){const c=s;n.overrideMimeType(c)}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 c=i|0;n.timeout=c|0}const a=e.content;switch(a.tag){case 1:{n.send(Re(a.fields[0]));break}case 3:{n.send(Re(a.fields[0]));break}case 2:{n.send(Re(a.fields[0]));break}default:n.send()}})}function vd(e){return new d(0,[e])}function ca(e){return new d(1,[e])}class d extends F{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function Ze(e,t){return t.tag===0?vd(e(t.fields[0])):ca(t.fields[0])}function xd(e,t){return t.tag===0?e(t.fields[0]):ca(t.fields[0])}class A extends F{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Ft extends F{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function fo(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Sd(e,t){switch(e.tag){case 2:return is(fo(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return fo(t)}}const Cd=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,mo=/^([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 Ad(e){function t(r){return r.replace(mo,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Cd.test(n))return Ll(n,"{","}","(",")");if(mo.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 Nd(e,t){try{return t.contents=Ad(e),!0}catch{return!1}}var Lr;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Lr||(Lr={}));function Fd(e,t){const[,n,r,s]=e;return{sign:n||"",prefix:r||"",digits:s,radix:t}}function ho(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 Md(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 Ed(e,t){if(t&Lr.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 $d(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||Ed(o,t),!Md(n).test(i))return Fd(s,n)}return null}function Td(e,t,n,r,s){const o=$d(e,t,s);if(o!=null){let i=Number.parseInt(o.sign+o.digits,o.radix);if(!Number.isNaN(i)){const[a,c]=ho(!0,r);!n&&o.radix!==10&&i>=a&&i<=c&&(i=i<<32-r>>32-r);const[l,f]=ho(n,r);if(i>=l&&i<=f)return i}}throw new Error(`The input string ${e} was not in a correct format.`)}function Zt(e,t,n,r,s){try{return s.contents=Td(e,t,n,r),!0}catch{return!1}}function da(e,t){Bd(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Bd(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 Id(){return da(-621355968e5,0)}function Ld(e){const[t,n]=Li(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return da(t.getTime(),r)}function Od(e,t){try{return t.contents=Ld(e),!0}catch{return!1}}function po(e=0,t=0,n=0,r=0,s=0){switch(arguments.length){case 1:return Vd(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 Vd(e){return Number(BigInt(e)/10000n)}function Rd(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 po(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,c=+r[4],l=+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*po(s,c,l,i,o)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Dd(e,t){try{return t.contents=Rd(e),!0}catch{return!1}}class fa{constructor(t){this.k=t}}function ye(e){return new fa(e)}function E(e){return e.k}class P extends fa{constructor(t,n,r,s){super(t),this.left=n,this.right=r,this.h=s|0}}function ve(e,t,n,r){return new P(e,t,n,r)}function q(e){return e.left}function j(e){return e.right}function Et(e){return e.h}function ma(e,t){e:for(;;){const n=e,r=t;if(n!=null){const s=S(n);if(s instanceof P){const o=s;e=q(o),t=ma(j(o),r+1);continue e}else return r+1|0}else return r|0}}function Ud(e){return ma(e,0)}function Te(e,t,n){let r,s,o;const i=e;if(i!=null){const f=S(i);o=f instanceof P?(r=f,Et(r)):1}else o=0;let a;const c=n;if(c!=null){const f=S(c);a=f instanceof P?(s=f,Et(s)):1}else a=0;const l=(o<a?a:o)|0;return l===0?ye(t):ve(t,e,n,l+1)}function wo(e,t,n){let r,s,o,i,a,c,l,f,u;const p=e;if(p!=null){const g=S(p);u=g instanceof P?(r=g,Et(r)):1}else u=0;let h;const w=n;if(w!=null){const g=S(w);h=g instanceof P?(s=g,Et(s)):1}else h=0;if(h>u+2){const g=S(n);if(g instanceof P){const b=g;if(o=q(b),(o!=null?(i=S(o),i instanceof P?(a=i,Et(a)):1):0)>u+1){const y=S(q(b));if(y instanceof P){const k=y;return Te(Te(e,t,q(k)),E(k),Te(j(k),E(b),j(b)))}else throw new Error("internal error: Set.rebalance")}else return Te(Te(e,t,q(b)),E(b),j(b))}else throw new Error("internal error: Set.rebalance")}else if(u>h+2){const g=S(e);if(g instanceof P){const b=g;if(c=j(b),(c!=null?(l=S(c),l instanceof P?(f=l,Et(f)):1):0)>h+1){const y=S(j(b));if(y instanceof P){const k=y;return Te(Te(q(b),E(b),q(k)),E(k),Te(j(k),t,n))}else throw new Error("internal error: Set.rebalance")}else return Te(q(b),E(b),Te(j(b),t,n))}else throw new Error("internal error: Set.rebalance")}else return Te(e,t,n)}function Dt(e,t,n){if(n!=null){const r=S(n),s=e.Compare(t,E(r))|0;if(r instanceof P){const o=r;return s<0?wo(Dt(e,t,q(o)),E(o),j(o)):s===0?n:wo(q(o),E(o),Dt(e,t,j(o)))}else{const o=e.Compare(t,E(r))|0;return o<0?ve(t,void 0,n,2):o===0?n:ve(t,n,void 0,2)}}else return ye(t)}function ha(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o!=null){const i=S(o),a=r.Compare(s,E(i))|0;if(i instanceof P){const c=i;if(a<0){e=r,t=s,n=q(c);continue e}else{if(a===0)return!0;e=r,t=s,n=j(c);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=S(r);if(s instanceof P){const o=s;pa(n,q(o)),n(E(o)),e=n,t=j(o);continue e}else n(E(s))}break}}class Pd extends H{constructor(t,n){super(),this.stack=t,this.started=n}}function wa(e){e:for(;;){const t=e;if(U(t))return le();{const n=N(t),r=R(t);if(n!=null){const s=S(n);if(s instanceof P){const o=s;e=Y([q(o),ye(E(o)),j(o)],r);continue e}else return t}else{e=r;continue e}}}}function _o(e){return new Pd(wa(M(e)),!1)}function zd(){throw new Error("Enumeration not started")}function Hd(){throw new Error("Enumeration already started")}function go(e){if(e.started){const t=e.stack;if(U(t))return Hd();if(N(t)!=null){const n=S(N(t));return E(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return zd()}function jd(e){if(e.started){const t=e.stack;if(U(t))return!1;if(N(t)!=null){if(S(N(t))instanceof P)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=wa(R(t)),!U(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!U(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 jd(t)},"System.Collections.IEnumerator.Reset"(){t=_o(e)},Dispose(){}}}function Gd(e,t,n){e:for(;;){const r=e,s=t,o=n;if(U(s))return U(o)?0:-1;if(U(o))return 1;if(N(o)!=null)if(N(s)!=null){const i=S(N(s)),a=S(N(o));if(i instanceof P){const c=i;if(q(c)==null)if(a instanceof P){const l=a;if(q(l)==null){const f=r.Compare(E(c),E(l))|0;if(f!==0)return f|0;e=r,t=xe(j(c),R(s)),n=xe(j(l),R(o));continue e}else{let f,u,p,h,w;switch(U(s)?U(o)?f=2:N(o)!=null?(f=1,h=R(o),w=S(N(o))):f=2:N(s)!=null?(f=0,u=R(s),p=S(N(s))):U(o)?f=2:N(o)!=null?(f=1,h=R(o),w=S(N(o))):f=2,f){case 0:if(p instanceof P){const g=p;e=r,t=Y([q(g),ve(E(g),void 0,j(g),0)],u),n=o;continue e}else{e=r,t=Y([void 0,ye(E(p))],u),n=o;continue e}case 1:if(w instanceof P){const g=w;e=r,t=s,n=Y([q(g),ve(E(g),void 0,j(g),0)],h);continue e}else{e=r,t=s,n=Y([void 0,ye(E(w))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(E(c),E(a))|0;if(l!==0)return l|0;e=r,t=xe(j(c),R(s)),n=xe(void 0,R(o));continue e}else{let l,f,u,p,h;switch(U(s)?U(o)?l=2:N(o)!=null?(l=1,p=R(o),h=S(N(o))):l=2:N(s)!=null?(l=0,f=R(s),u=S(N(s))):U(o)?l=2:N(o)!=null?(l=1,p=R(o),h=S(N(o))):l=2,l){case 0:if(u instanceof P){const w=u;e=r,t=Y([q(w),ve(E(w),void 0,j(w),0)],f),n=o;continue e}else{e=r,t=Y([void 0,ye(E(u))],f),n=o;continue e}case 1:if(h instanceof P){const w=h;e=r,t=s,n=Y([q(w),ve(E(w),void 0,j(w),0)],p);continue e}else{e=r,t=s,n=Y([void 0,ye(E(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof P){const c=a;if(q(c)==null){const l=r.Compare(E(i),E(c))|0;if(l!==0)return l|0;e=r,t=xe(void 0,R(s)),n=xe(j(c),R(o));continue e}else{let l,f,u,p,h;switch(U(s)?U(o)?l=2:N(o)!=null?(l=1,p=R(o),h=S(N(o))):l=2:N(s)!=null?(l=0,f=R(s),u=S(N(s))):U(o)?l=2:N(o)!=null?(l=1,p=R(o),h=S(N(o))):l=2,l){case 0:if(u instanceof P){const w=u;e=r,t=Y([q(w),ve(E(w),void 0,j(w),0)],f),n=o;continue e}else{e=r,t=Y([void 0,ye(E(u))],f),n=o;continue e}case 1:if(h instanceof P){const w=h;e=r,t=s,n=Y([q(w),ve(E(w),void 0,j(w),0)],p);continue e}else{e=r,t=s,n=Y([void 0,ye(E(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const c=r.Compare(E(i),E(a))|0;if(c!==0)return c|0;e=r,t=R(s),n=R(o);continue e}}else{S(N(o));let i,a,c,l,f;switch(U(s)?U(o)?i=2:N(o)!=null?(i=1,l=R(o),f=S(N(o))):i=2:N(s)!=null?(i=0,a=R(s),c=S(N(s))):U(o)?i=2:N(o)!=null?(i=1,l=R(o),f=S(N(o))):i=2,i){case 0:if(c instanceof P){const u=c;e=r,t=Y([q(u),ve(E(u),void 0,j(u),0)],a),n=o;continue e}else{e=r,t=Y([void 0,ye(E(c))],a),n=o;continue e}case 1:if(f instanceof P){const u=f;e=r,t=s,n=Y([q(u),ve(E(u),void 0,j(u),0)],l);continue e}else{e=r,t=s,n=Y([void 0,ye(E(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(N(s)!=null){S(N(s));let i,a,c,l,f;switch(U(s)?U(o)?i=2:N(o)!=null?(i=1,l=R(o),f=S(N(o))):i=2:N(s)!=null?(i=0,a=R(s),c=S(N(s))):U(o)?i=2:N(o)!=null?(i=1,l=R(o),f=S(N(o))):i=2,i){case 0:if(c instanceof P){const u=c;e=r,t=Y([q(u),ve(E(u),void 0,j(u),0)],a),n=o;continue e}else{e=r,t=Y([void 0,ye(E(c))],a),n=o;continue e}case 1:if(f instanceof P){const u=f;e=r,t=s,n=Y([q(u),ve(E(u),void 0,j(u),0)],l);continue e}else{e=r,t=s,n=Y([void 0,ye(E(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=R(s),n=R(o);continue e}}}function yo(e,t,n){return t==null?n==null?0:-1:n==null?1:Gd(e,M(t),M(n))|0}function Wd(e,t,n){let r=n;pa(s=>{ft(t,r,s),r=r+1|0},e)}function qd(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){e=r,t=Dt(r,o["System.Collections.Generic.IEnumerator`1.get_Current"](),s),n=o;continue e}else return s}}function Zd(e,t){return Qn((n,r)=>Dt(e,r,n),void 0,t)}function Jd(e,t){return ze((n,r)=>Dt(e,r,n),void 0,t)}function _a(e,t){if(De(t))return Zd(e,t);if(t instanceof ue)return Jd(e,t);{const n=ee(t);try{return qd(e,void 0,n)}finally{K(n)}}}class ps{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Qd(this)|0}Equals(t){let n;const r=this;return t instanceof ps&&(n=t,yo(Tt(r),Ie(r),Ie(n))===0)}toString(){return"set ["+O("; ",je(n=>Ue(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return yo(Tt(n),Ie(n),Ie(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 ha(Tt(n),t,Ie(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Wd(Ie(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 bo(Ie(this))}[Symbol.iterator](){return qn(ee(this))}"System.Collections.IEnumerable.GetEnumerator"(){return bo(Ie(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 ga(this,t)}keys(){return je(n=>n,this)}values(){return je(n=>n,this)}entries(){return je(n=>[n,n],this)}forEach(t,n){const r=this;na(s=>{t(s,s,r)},r)}}function rr(e,t){return new ps(e,t)}function Tt(e){return e.comparer}function Ie(e){return e.tree}function Kd(e){return rr(e,void 0)}function Yd(e,t){return rr(Tt(e),Dt(Tt(e),t,Ie(e)))}function br(e){return Ud(Ie(e))}function ga(e,t){return ha(Tt(e),t,Ie(e))}function Qd(e){let t=0;const n=ee(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+nt(r)+631|0}}finally{K(n)}return Math.abs(t)|0}function Or(e,t){return ga(t,e)}function Xd(e,t){return Yd(t,e)}function ef(e){return Kd(e)}function tf(e,t){return rr(t,_a(t,e))}function nf(e,t){return rr(t,_a(t,e))}function rn(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
|
|
7
|
-
Reason: `+t.fields[2]:t.tag===3?
|
|
6
|
+
`:" ")}}function rf(e,t){const n=t.tag===2?rn(t.fields[0],t.fields[1],!0):t.tag===1?rn(t.fields[0],t.fields[1],!1)+`
|
|
7
|
+
Reason: `+t.fields[2]:t.tag===3?rn(t.fields[0],t.fields[1],!0):t.tag===4?rn(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
|
-
`+
|
|
10
|
+
`+O(`
|
|
11
11
|
|
|
12
|
-
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:
|
|
12
|
+
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:rn(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,[rf(s[0],s[1])])}else return new d(0,[r.fields[0]])}function sn(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 ya(e,t){return typeof t=="string"?new d(0,[t]):new d(1,[[e,new A(0,["a string",t])]])}function sf(e,t){if(typeof t=="string"){const n=t;return n.length===1?new d(0,[n[0]]):new d(1,[[e,new A(0,["a single character string",t])]])}else return new d(1,[[e,new A(0,["a char",t])]])}function of(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Nd(t,new Pe(()=>r,s=>{r=s})),r],n[0]?new d(0,[n[1]]):new d(1,[[e,new A(0,["a guid",t])]])}else return new d(1,[[e,new A(0,["a guid",t])]])}function af(e,t){return t==null?new d(0,[void 0]):new d(1,[[e,new A(0,["null",t])]])}const vo=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 A(1,["a sbyte",s,"Value was either too large or too small for a sbyte"])]]):new d(1,[[n,new A(1,["a sbyte",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[Zt(r,511,!1,8,new Pe(()=>o,i=>{o=i|0})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new A(0,["a sbyte",r])]])}else return new d(1,[[n,new A(0,["a sbyte",r])]])},xo=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 A(1,["a byte",s,"Value was either too large or too small for a byte"])]]):new d(1,[[n,new A(1,["a byte",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[Zt(r,511,!0,8,new Pe(()=>o,i=>{o=i})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new A(0,["a byte",r])]])}else return new d(1,[[n,new A(0,["a byte",r])]])},So=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 A(1,["an int16",s,"Value was either too large or too small for an int16"])]]):new d(1,[[n,new A(1,["an int16",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[Zt(r,511,!1,16,new Pe(()=>o,i=>{o=i|0})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new A(0,["an int16",r])]])}else return new d(1,[[n,new A(0,["an int16",r])]])},Co=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 A(1,["an uint16",s,"Value was either too large or too small for an uint16"])]]):new d(1,[[n,new A(1,["an uint16",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[Zt(r,511,!0,16,new Pe(()=>o,i=>{o=i})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new A(0,["an uint16",r])]])}else return new d(1,[[n,new A(0,["an uint16",r])]])},ko=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 A(1,["an int",s,"Value was either too large or too small for an int"])]]):new d(1,[[n,new A(1,["an int",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[Zt(r,511,!1,32,new Pe(()=>o,i=>{o=i|0})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new A(0,["an int",r])]])}else return new d(1,[[n,new A(0,["an int",r])]])},Ao=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 A(1,["an uint32",s,"Value was either too large or too small for an uint32"])]]):new d(1,[[n,new A(1,["an uint32",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[Zt(r,511,!0,32,new Pe(()=>o,i=>{o=i})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new A(0,["an uint32",r])]])}else return new d(1,[[n,new A(0,["an uint32",r])]])};function uf(e,t){return typeof t=="boolean"?new d(0,[t]):new d(1,[[e,new A(0,["a boolean",t])]])}function lf(e,t){return typeof t=="number"?new d(0,[t]):new d(1,[[e,new A(0,["a float",t])]])}function cf(e,t){return typeof t=="number"?new d(0,[t]):new d(1,[[e,new A(0,["a float32",t])]])}function df(e,t){if(typeof t=="string"){let n,r=vl();return n=[Sl(t,new Pe(()=>r,s=>{r=s})),r],n[0]?new d(0,[Cl(n[1])]):new d(1,[[e,new A(0,["a datetime",t])]])}else return new d(1,[[e,new A(0,["a datetime",t])]])}function ff(e,t){if(typeof t=="string"){let n,r=Id();return n=[Od(t,new Pe(()=>r,s=>{r=s})),r],n[0]?new d(0,[n[1]]):new d(1,[[e,new A(0,["a datetimeoffset",t])]])}else return new d(1,[[e,new A(0,["a datetime",t])]])}function mf(e,t){if(typeof t=="string"){let n,r=0;return n=[Dd(t,new Pe(()=>r,s=>{r=s})),r],n[0]?new d(0,[n[1]]):new d(1,[[e,new A(0,["a timespan",t])]])}else return new d(1,[[e,new A(0,["a timespan",t])]])}function No(e,t,n,r){let s;const o=n+".["+gt(e)+"]";if(Array.isArray(r)){const i=r;return e<i.length?t(o,he(e,i)):new d(1,[[o,new A(5,["a longer array. Need index `"+gt(e)+"` but there are only `"+(s=i.length,gt(s))+"` entries",r])]])}else return new d(1,[[o,new A(0,["an array",r])]])}function hf(e,t,n){return n==null?new d(0,[void 0]):Ze(Re,e(t,n))}function Fo(e,t,n){if(Array.isArray(n)){let r=-1;return Ze(cs,Qn((s,o)=>{if(r=r+1|0,s.tag===0){const i=e(t+".["+gt(r)+"]",o);return i.tag===0?new d(0,[xe(i.fields[0],s.fields[0])]):new d(1,[i.fields[0]])}else return s},new d(0,[le()]),n))}else return new d(1,[[t,new A(0,["a list",n])]])}function pf(e,t,n){if(Array.isArray(n)){let r=-1;return Ze(Kc,Qn((s,o)=>{if(r=r+1|0,s.tag===0){const i=e(t+".["+gt(r)+"]",o);return i.tag===0?new d(0,[se([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 A(0,["a seq",n])]])}function Mo(e,t,n){if(Array.isArray(n)){let r=-1;const s=n;return Qn((o,i)=>{if(r=r+1|0,o.tag===0){const a=o.fields[0],c=e(t+".["+gt(r)+"]",i);return c.tag===0?(ft(a,r,c.fields[0]),new d(0,[a])):new d(1,[c.fields[0]])}else return o},new d(0,[ls(new Array(s.length),0,s.length,null)]),s)}else return new d(1,[[t,new A(0,["an array",n])]])}function wf(e,t,n){return((s,o)=>{e:for(;;){const i=s,a=o;if(U(i))return new d(1,[[t,new A(7,[a])]]);{const c=ba(t,G(N(i)),n);if(c.tag===1){s=R(i),o=ds(a,M(c.fields[0]));continue e}else return new d(0,[c.fields[0]])}}})(e,le())}function _f(e,t,n){return new d(0,[e])}function Eo(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 gf(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 bf(e,t){let n;const r=e;return n=s=>o=>No(0,r,s,o),s=>o=>Eo(Er(i=>{let a;const c=t;return a=l=>f=>No(1,c,l,f),l=>f=>Eo((u,p,h)=>_f([i,u]),G(a),l,f)}),G(n),s,o)}function yf(e){return gd(e,{Compare:Me})}function vf(e){return nf(e,{Compare:Me})}function xf(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?qi((r,s)=>{const o=r[0];return s.tag===0?Ze(i=>xe(i,s.fields[0]),r[1](t+"."+o)(n[o])):s},e,new d(0,[le()])):new d(1,[[t,new A(0,["an object",n])]])}function Sf(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?ta((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,[xe([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,[le()]),Object.keys(r)):new d(1,[[n,new A(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 A(6,[(s=r.length|0,dn(Ot("Expected array of length %i but got %i"))(o)(s))])]]);{let i=new d(0,[le()]);for(let a=e;a<=r.length-1;a++)if(i.tag===0){const c=i.fields[0],l=dn(Ot("%s[%i]"))(n)(a),f=he(a-e,t),u=he(a,r);i=Ze(p=>xe(p,c),f(l)(u))}return Ze(cs,i)}}function $o(e,t,n,r,s,o){const i=nc(a=>us(a)===r,Wl(n));if(i!=null){const a=i,c=Yn(l=>Le(e,t,!1,l[1]),Kl(a));return Ze(l=>Yl(a,Sn(l)),c.length===0&&o.length<=1?new d(0,[le()]):va(1,c,s,o))}else return new d(1,[[s,new A(6,["Cannot find case "+r+" in "+re(n)])]])}function To(e,t,n,r){let s;const o=new Pe(qe());let i;const a=re(r);i=a===""?e:wd(a,o,e);let c;if(Jl(r)){const l=Yn(f=>[Sd(t,us(f)),Le(i,t,!1,f[1])],zn(r));c=f=>u=>Ze(p=>Ql(r,Sn(p)),xf(l,f,u))}else if(Zl(r))c=l=>f=>{if(typeof f=="string")return $o(i,t,r,f,l,[]);if(Array.isArray(f)){const u=f;return xd(p=>$o(i,t,r,p,l,u),ya(l+"[0]",he(0,u)))}else return new d(1,[[l,new A(0,["a string or array",f])]])};else if(n)c=l=>f=>new d(1,[[l,new A(2,["an extra coder for "+re(r),f])]]);else throw new Error((s=re(r),dn(Ot(`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`))(
|
|
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=c,c}function Le(e,t,n,r){let s,o,i,a;const c=re(r),l=_d(c,e);if(l==null)if(Pl(r)){const f=Le(e,t,!1,Kn(r));return u=>p=>Mo(G(f),u,p)}else if(Hi(r))switch(re(jl(r))){case"System.SByte":return u=>p=>{const h=r,w=u,g=p,b=vo(w)(g);if(b.tag===1)return new d(1,[b.fields[0]]);{const y=b.fields[0]|0;return kt(y,St(h),{Equals:(k,_)=>k===_,GetHashCode:Je})?new d(0,[Ct(h,y.toString())]):new d(1,[[w,new A(1,[re(h),g,"Unkown value provided for the enum"])]])}};case"System.Byte":return u=>p=>{const h=r,w=u,g=p,b=xo(w)(g);if(b.tag===1)return new d(1,[b.fields[0]]);{const y=b.fields[0];return kt(y,St(h),{Equals:(k,_)=>k===_,GetHashCode:Je})?new d(0,[Ct(h,y.toString())]):new d(1,[[w,new A(1,[re(h),g,"Unkown value provided for the enum"])]])}};case"System.Int16":return u=>p=>{const h=r,w=u,g=p,b=So(w)(g);if(b.tag===1)return new d(1,[b.fields[0]]);{const y=b.fields[0]|0;return kt(y,St(h),{Equals:(k,_)=>k===_,GetHashCode:Je})?new d(0,[Ct(h,qu(y))]):new d(1,[[w,new A(1,[re(h),g,"Unkown value provided for the enum"])]])}};case"System.UInt16":return u=>p=>{const h=r,w=u,g=p,b=Co(w)(g);if(b.tag===1)return new d(1,[b.fields[0]]);{const y=b.fields[0];return kt(y,St(h),{Equals:(k,_)=>k===_,GetHashCode:Je})?new d(0,[Ct(h,y.toString())]):new d(1,[[w,new A(1,[re(h),g,"Unkown value provided for the enum"])]])}};case"System.Int32":return u=>p=>{const h=r,w=u,g=p,b=ko(w)(g);if(b.tag===1)return new d(1,[b.fields[0]]);{const y=b.fields[0]|0;return kt(y,St(h),{Equals:(k,_)=>k===_,GetHashCode:Je})?new d(0,[Ct(h,gt(y))]):new d(1,[[w,new A(1,[re(h),g,"Unkown value provided for the enum"])]])}};case"System.UInt32":return u=>p=>{const h=r,w=u,g=p,b=Ao(w)(g);if(b.tag===1)return new d(1,[b.fields[0]]);{const y=b.fields[0];return kt(y,St(h),{Equals:(k,_)=>k===_,GetHashCode:Je})?new d(0,[Ct(h,y.toString())]):new d(1,[[w,new A(1,[re(h),g,"Unkown value provided for the enum"])]])}};default:{const u=re(r),p=Fl(Ot(`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
|
-
`))(u);return h=>m(h)}}else if(cl(r))if(Ni(r)){const f=On(u=>Me(e,t,!1,u),pl(r));return u=>m=>Array.isArray(m)?je(h=>vl(un(h)),sa(0,f,u,m)):new d(1,[[u,new x(0,["an array",m])]])}else switch(te(dl(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=Me(e,t,!0,le(0,qe(r))),u=>m=>Od(G(o),u,m);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return s=Me(e,t,!1,le(0,qe(r))),u=>m=>hs(G(s),u,m);case"System.Collections.Generic.IEnumerable`1[System.Object]":return i=Me(e,t,!1,le(0,qe(r))),u=>m=>Vd(G(i),u,m);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const u=Me(e,t,!1,le(0,qe(r))),m=Me(e,t,!1,le(1,qe(r)));let h;const p=k([g=>_=>jd(G(u),G(m),g,_),(a=Dd(G(u),G(m)),g=>_=>hs(G(a),g,_))]);return h=g=>_=>Ld(p,g,_),g=>_=>Pd(Ud,G(h),g,_)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const u=Me(e,t,!1,le(0,qe(r)));return m=>h=>{const p=ms(G(u),m,h);return p.tag===0?new d(0,[zd(p.fields[0])]):new d(1,[p.fields[0]])}}default:return _s(e,t,n,r)}else switch(c){case"System.Boolean":return f=>u=>Fd(f,u);case"Microsoft.FSharp.Core.Unit":return f=>u=>Nd(f,u);case"System.String":return f=>u=>oa(f,u);case"System.Char":return f=>u=>Ad(f,u);case"System.SByte":return is;case"System.Byte":return as;case"System.Int16":return us;case"System.UInt16":return ls;case"System.Int32":return cs;case"System.UInt32":return ds;case"System.Double":return f=>u=>Md(f,u);case"System.Single":return f=>u=>Td(f,u);case"System.DateTime":return f=>u=>$d(f,u);case"System.DateTimeOffset":return f=>u=>Bd(f,u);case"System.TimeSpan":return f=>u=>Id(f,u);case"System.Guid":return f=>u=>Ed(f,u);case"System.Object":return f=>u=>new d(0,[u]);default:return _s(e,t,n,r)}else{const f=l;return u=>m=>f.contents(u)(m)}}function Gd(e){return qi({Compare:Hr})}function ar(e,t,n){const r=Wr(t,new gn(0,[]));return Me(Gd(),r,!1,e)}class Wd extends Y{constructor(t){super(),this.SmsfChoice=t}}function qd(){return sn("SuperSelection.UI.BackendService.SMSFChoiceResponse",[],Wd,()=>[["SmsfChoice",Jt(Jd())]])}class Zd extends Y{constructor(t,n,r,o,s,i,a,c,l){super(),this.Abn=t,this.FundName=n,this.FundAddress=r,this.Bsb=o,this.BankAccountName=s,this.BankAccountNumber=i,this.ElectronicServiceAddress=a,this.MemberFirstName=c,this.MemberFamilyName=l}}function Jd(){return sn("SuperSelection.UI.BackendService.SMSFChoiceDto",[],Zd,()=>[["Abn",oe],["FundName",oe],["FundAddress",Yd()],["Bsb",oe],["BankAccountName",oe],["BankAccountNumber",oe],["ElectronicServiceAddress",oe],["MemberFirstName",Jt(oe)],["MemberFamilyName",Jt(oe)]])}class Kd extends Y{constructor(t,n,r,o,s){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.State=o,this.Postcode=s}}function Yd(){return sn("SuperSelection.UI.BackendService.AustralianFundAddressDto",[],Kd,()=>[["AddressLine1",oe],["AddressLine2",Jt(oe)],["City",oe],["State",oe],["Postcode",oe]])}class Xd extends Y{constructor(t){super(),this.BankDetails=t}}function Qd(){return sn("SuperSelection.UI.BackendService.BsbLookupResponse",[],Xd,()=>[["BankDetails",Jt(tf())]])}class ef extends Y{constructor(t,n,r){super(),this.Bsb=t,this.Bank=n,this.Branch=r}}function tf(){return sn("SuperSelection.UI.BackendService.BankDetailsDto",[],ef,()=>[["Bsb",oe],["Bank",oe],["Branch",oe]])}class nf{constructor(t,n){this.accessToken=n,this.baseUrl=`${t}/super-selection/backend`}get GetSmsfChoice(){const t=this;return()=>of(t,5,K.Delay(()=>{let n;return K.Bind(or((n=nr(new wn(0,[]),tr(`${t.baseUrl}/v1.0/super-choice/smsf`)),rr(er(`Bearer ${t.accessToken}`),n))),r=>{const o=r;return o.statusCode===200?K.Return(ir(G(ar(qd(),new gn(1,[]))),o.responseText)):K.Return(new d(1,["Failed to retrieve SMSF choice"]))})}))}get BsbLookup(){const t=this;return n=>K.Delay(()=>{let r;return K.Bind(or((r=nr(new wn(0,[]),tr(`${t.baseUrl}/v1.0/bsb-lookup/${n}`)),rr(er(`Bearer ${t.accessToken}`),r))),o=>{const s=o;return s.statusCode===200?K.Return(ir(G(ar(Qd(),new gn(1,[]))),s.responseText)):K.Return(new d(1,["Failed to lookup BSB"]))})})}get IsRegulatedFundAbn(){const t=this;return n=>K.Delay(()=>{let r;return K.Bind(or((r=nr(new wn(0,[]),tr(`${t.baseUrl}/v1.0/super-choice/smsf/${n}/validate`)),rr(er(`Bearer ${t.accessToken}`),r))),o=>{const s=o;return s.statusCode===200?K.Return(je(i=>!i.Result,ir(G(ar(il(["Result",ul]),new gn(1,[]))),s.responseText))):K.Return(new d(1,["Failed to query ABN"]))})})}}function rf(e,t){return new nf(e,t)}function of(e,t,n){const r=o=>K.Delay(()=>K.Bind(n,s=>{const i=s;return i.tag===1?o>1?K.Bind(Jl(1e3),()=>K.ReturnFrom(r(o-1))):K.Return(new d(1,[i.fields[0]])):K.Return(new d(0,[i.fields[0]]))}));return r(t)}class sf{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function af(e,t){t.Subscribe(new sf(e))}class uf{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 cf(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const o=n===void 0?t:(r=t,n);this.delegates.forEach(s=>{s(r,o)})}}class lf extends uf{}function cf(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(o,s)=>n.OnNext(s);return e(r),{Dispose(){t(r)}}}}}class df{constructor(t){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=t&&t>0?t:100,this.AutoReset=!0,this._elapsed=new lf}Elapsed(){return this._elapsed.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 ff(e,t){console.error(Be(e),t)}function hf(e,t){let n,r=new df(e);r.AutoReset=!1,n=r,af(t,n.Elapsed()),n.Enabled=!0,n.Start()}function gs(e,t,n){Kt(r=>{try{r(t)}catch(o){e(o)}},n)}function T(){return ie()}function It(e,t){return Yr(n=>r=>{n(o=>{r(e(o))})},t)}function ia(e){return $l(e)}function to(e){return $(e)}function no(e,t,n,r){return $(o=>{e(K.Delay(()=>K.Bind(ql(t(n)),s=>{const i=s;return i.tag===0&&o(r(i.fields[0])),K.Zero()})))})}function ro(e){hf(1,t=>{Yl(e)})}class mf extends Y{constructor(t,n,r,o,s,i,a,c,l,f,u,m,h){super(),this.FundName=t,this.FundAbn=n,this.FundEsa=r,this.FundAddressLine1=o,this.FundAddressLine2=s,this.FundCity=i,this.FundState=a,this.FundPostcode=c,this.MemberFirstName=l,this.MemberLastName=f,this.BankAccountName=u,this.BankAccountBsb=m,this.BankAccountNumber=h}}function oo(e,t){const n={detail:t};return new CustomEvent(e,n)}const pf=oo("smsf-loaded",{sender:"super-smsf"}),wf=oo("smsf-cancelled",{sender:"super-smsf"});function _f(e){return oo("smsf-completed",{bankAccountName:e.BankAccountName,bankAccountNumber:e.BankAccountNumber,bankBsb:e.BankAccountBsb,fundAbn:e.FundAbn,fundAddressLine1:e.FundAddressLine1,fundAddressLine2:Ci(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 so extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loaded","Cancelled","Completed"]}}function io(e){let t;t=e.tag===1?wf:e.tag===2?_f(e.fields[0]):pf,document.dispatchEvent(t)}function gf(e){return to(t=>{io(new so(2,[e]))})}function bf(){return to(e=>{io(new so(0,[]))})}function yf(){return to(e=>{io(new so(1,[]))})}function vf(){return ie()}function ao(e){return q("/",e)}function Sf(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+ao(t),n])}function aa(e,t,n){try{W(n)}catch(r){e(["Error stopping subscription: "+ao(t),r])}}function xf(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+ao(n),o]);return}}function kf(e,t){Kt(n=>{aa(e,n[0],n[1])},t)}function bs(e,t,n,r,o,s){return Kt(i=>{Sf(e,i)},n),Kt(i=>{aa(e,i[0],i[1])},r),Kr(o,Ll(i=>xf(e,t,i[0],i[1]),s))}function Cf(){return[ie(),Sd({Compare:xe}),ie()]}function Af(e,t,n,r,o){return Sr(e,r)?[_e(e,n),r,o]:[n,vd(e,r),_e([e,t],o)]}function Ef(e){return Nl((t,n)=>Af(t[0],t[1],n[0],n[1],n[2]),e,Cf())}const Nf=ie();function ys(e,t){const n=xd(Yr(i=>i[0],e),{Compare:xe}),r=Ef(t),o=r[1],s=r[0];if(n.Equals(o))return[s,ie(),e,ie()];{const i=Vl(a=>Sr(a[0],o),e);return[s,i[1],i[0],Ol(a=>!Sr(a[0],n),r[2])]}}function Ff(e,t,n,r){const o=xe(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const s=o>0;return i=>{const a=xe(i,t)|0;return s&&a<=0||!s&&a>=0?[i,r(i,e)]:void 0}}function Mf(e,t,n,r,o){const s=Ff(t,n,r,o);return I(()=>hc(s,e))}function Tf(e,t,n){return Mf(e,t,n,0,(r,o)=>r+o)}class Et extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class $f{constructor(t){this.state=new Et(0,[Zr(new Array(zo(t,10)),0,zo(t,10),null),0])}}function Bf(e){return new $f(e)}function vs(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,o=t.fields[0],s=(r+1)%o.length|0;return s===n?e.state=new Et(0,[o,n]):e.state=new Et(1,[o,n,s]),Be(le(r,o))}else return}function If(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,o=n.fields[2]|0,s=n.fields[0];at(s,r,t);const i=(r+1)%s.length|0;i===o?e.state=new Et(1,[Of(e,o,s),s.length,0]):e.state=new Et(1,[s,i,o])}else{const r=n.fields[1]|0,o=n.fields[0];at(o,r,t);const s=(r+1)%o.length|0;e.state=new Et(1,[o,s,r])}}function Of(e,t,n){return Array.from(I(()=>fe(bc(t,n),I(()=>fe(yc(t,n),I(()=>vc(r=>z(Qe()),Tf(0,1,n.length))))))))}class uo extends Y{constructor(t,n,r,o,s,i,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=s,this.onError=i,this.termination=a}}function ua(e,t,n){return new uo(e,t,r=>vf(),n,G(r=>{const o=R(n)(r);return s=>{o(s)}}),r=>{ff(r[0],r[1])},[r=>!1,r=>{}])}function Vf(e,t){return new uo(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function Lf(e){return e.init}function Rf(e,t,n,r,o,s,i){const a=R(e)(i.init),c=Kn(t)(R(i.update)),l=Kn(n)(R(i.view)),f=Kn(r)(R(i.setState));return new uo(a,G(c),R(o)(i.subscribe),G(l),G(f),i.onError,s(i.termination))}function Pf(e,t,n){let r;const o=n.init(t),s=o[0],i=n.subscribe(s),a=n.termination,c=Bf(10);let l=!1,f=s,u=Nf,m=!1;const h=_=>{m||(If(c,_),l||(l=!0,g(),l=!1))},p=R(e)(h),g=()=>{let _,y=vs(c);for(;!m&&y!=null;){const S=v(y);if(a[0](S))kf(n.onError,u),a[1](f),m=!0;else{const b=n.update(S,f),H=b[0],ne=n.subscribe(H);n.setState(H,p),gs(ke=>{n.onError([qt(Mt("Error handling the message: %A"))(S),ke])},p,b[1]),f=H,u=(_=ys(u,ne),bs(n.onError,p,_[0],_[1],_[2],_[3])),y=vs(c)}}};l=!0,n.setState(s,p),gs(_=>{n.onError([qt(Mt("Error intitializing:")),_])},p,o[1]),u=(r=ys(u,i),bs(n.onError,p,r[0],r[1],r[2],r[3])),g(),l=!1}function Df(e,t){Pf(G(n=>n),e,t)}function Uf(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var la={exports:{}},ca={};const zf=Uf(lu);/**
|
|
23
|
+
`))(u);return h=>p(h)}}else if(zl(r))if(ji(r)){const f=Yn(u=>Le(e,t,!1,u),ql(r));return u=>p=>Array.isArray(p)?Ze(h=>Xl(Sn(h)),va(0,f,u,p)):new d(1,[[u,new A(0,["an array",p])]])}else switch(re(Hl(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return s=Le(e,t,!0,he(0,Ke(r))),u=>p=>hf(G(s),u,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return o=Le(e,t,!1,he(0,Ke(r))),u=>p=>Fo(G(o),u,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return i=Le(e,t,!1,he(0,Ke(r))),u=>p=>pf(G(i),u,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const u=Le(e,t,!1,he(0,Ke(r))),p=Le(e,t,!1,he(1,Ke(r)));let h;const w=x([g=>b=>Sf(G(u),G(p),g,b),(a=bf(G(u),G(p)),g=>b=>Fo(G(a),g,b))]);return h=g=>b=>wf(w,g,b),g=>b=>gf(yf,G(h),g,b)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const u=Le(e,t,!1,he(0,Ke(r)));return p=>h=>{const w=Mo(G(u),p,h);return w.tag===0?new d(0,[vf(w.fields[0])]):new d(1,[w.fields[0]])}}default:return To(e,t,n,r)}else switch(c){case"System.Boolean":return f=>u=>uf(f,u);case"Microsoft.FSharp.Core.Unit":return f=>u=>af(f,u);case"System.String":return f=>u=>ya(f,u);case"System.Char":return f=>u=>sf(f,u);case"System.SByte":return vo;case"System.Byte":return xo;case"System.Int16":return So;case"System.UInt16":return Co;case"System.Int32":return ko;case"System.UInt32":return Ao;case"System.Double":return f=>u=>lf(f,u);case"System.Single":return f=>u=>cf(f,u);case"System.DateTime":return f=>u=>df(f,u);case"System.DateTimeOffset":return f=>u=>ff(f,u);case"System.TimeSpan":return f=>u=>mf(f,u);case"System.Guid":return f=>u=>of(f,u);case"System.Object":return f=>u=>new d(0,[u]);default:return To(e,t,n,r)}else{const f=l;return u=>p=>f.contents(u)(p)}}function Cf(e){return la({Compare:ss})}function on(e,t,n){const r=Jn(t,new Ft(0,[]));return Le(Cf(),r,!1,e)}class kf extends H{constructor(t){super(),this.SmsfChoice=t}}function Af(){return st("SuperSelection.UI.BackendService.SMSFChoiceResponse",[],kf,()=>[["SmsfChoice",rt(Ff())]])}class Nf extends H{constructor(t,n,r,s,o,i,a,c,l){super(),this.Abn=t,this.FundName=n,this.FundAddress=r,this.Bsb=s,this.BankAccountName=o,this.BankAccountNumber=i,this.ElectronicServiceAddress=a,this.MemberFirstName=c,this.MemberFamilyName=l}}function Ff(){return st("SuperSelection.UI.BackendService.SMSFChoiceDto",[],Nf,()=>[["Abn",J],["FundName",J],["FundAddress",Ef()],["Bsb",J],["BankAccountName",J],["BankAccountNumber",J],["ElectronicServiceAddress",J],["MemberFirstName",rt(J)],["MemberFamilyName",rt(J)]])}class Mf 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 Ef(){return st("SuperSelection.UI.BackendService.AustralianFundAddressDto",[],Mf,()=>[["AddressLine1",J],["AddressLine2",rt(J)],["City",J],["State",J],["Postcode",J]])}class $f extends H{constructor(t){super(),this.BankDetails=t}}function Tf(){return st("SuperSelection.UI.BackendService.BsbLookupResponse",[],$f,()=>[["BankDetails",rt(If())]])}class Bf extends H{constructor(t,n,r){super(),this.Bsb=t,this.Bank=n,this.Branch=r}}function If(){return st("SuperSelection.UI.BackendService.BankDetailsDto",[],Bf,()=>[["Bsb",J],["Bank",J],["Branch",J]])}class Lf 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 Of(){return st("SuperSelection.UI.BackendService.OwnFundChoiceDto",[],Lf,()=>[["Usi",J],["FundName",J],["MemberNumber",J],["MemberFirstName",rt(J)],["MemberFamilyName",rt(J)]])}class Vf extends H{constructor(t){super(),this.OwnFundChoice=t}}function Rf(){return st("SuperSelection.UI.BackendService.OwnFundChoiceResponse",[],Vf,()=>[["OwnFundChoice",rt(Of())]])}class Df extends H{constructor(t,n){super(),this.Data=t,this.Result=n}}function Uf(){return st("SuperSelection.UI.BackendService.AustralianSuperFundListDto",[],Df,()=>[["Data",Dl(jf())],["Result",zf()]])}class Pf extends F{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","TooManyResults"]}}function zf(){return Rl("SuperSelection.UI.BackendService.AustralianSuperFundListResultDto",[],Pf,()=>[[],[]])}class Hf extends H{constructor(t,n,r,s,o,i,a,c){super(),this.Abn=t,this.FundName=n,this.Usi=r,this.ProductName=s,this.ContributionRestriction=o,this.DateFrom=i,this.DateTo=a,this.IsActive=c}}function jf(){return st("SuperSelection.UI.BackendService.AustralianSuperFundDto",[],Hf,()=>[["Abn",J],["FundName",J],["Usi",J],["ProductName",J],["ContributionRestriction",Br],["DateFrom",to("System.DateTimeOffset")],["DateTo",to("System.DateTimeOffset")],["IsActive",rt(Br)]])}class Gf{constructor(t,n){this.accessToken=n,this.baseUrl=`${t}/super-selection/backend`}get GetSmsfChoice(){const t=this;return()=>yr(t,5,D.Delay(()=>{let n;return D.Bind(nn((n=en(new At(0,[]),Xt(`${t.baseUrl}/v1.0/super-choice/smsf`)),tn(Qt(`Bearer ${t.accessToken}`),n))),r=>{const s=r;return s.statusCode===200?D.Return(sn(G(on(Af(),new Ft(1,[]))),s.responseText)):D.Return(new d(1,["Failed to retrieve SMSF choice"]))})}))}get BsbLookup(){const t=this;return n=>D.Delay(()=>{let r;return D.Bind(nn((r=en(new At(0,[]),Xt(`${t.baseUrl}/v1.0/bsb-lookup/${n}`)),tn(Qt(`Bearer ${t.accessToken}`),r))),s=>{const o=s;return o.statusCode===200?D.Return(sn(G(on(Tf(),new Ft(1,[]))),o.responseText)):D.Return(new d(1,["Failed to lookup BSB"]))})})}get IsRegulatedFundAbn(){const t=this;return n=>D.Delay(()=>{let r;return D.Bind(nn((r=en(new At(0,[]),Xt(`${t.baseUrl}/v1.0/super-choice/smsf/${n}/validate`)),tn(Qt(`Bearer ${t.accessToken}`),r))),s=>{const o=s;return o.statusCode===200?D.Return(Ze(i=>!i.Result,sn(G(on(Vl(["Result",Br]),new Ft(1,[]))),o.responseText))):D.Return(new d(1,["Failed to query ABN"]))})})}get GetOwnFundChoice(){const t=this;return()=>yr(t,5,D.Delay(()=>{let n;return D.Bind(nn((n=en(new At(0,[]),Xt(`${t.baseUrl}/v1.0/super-choice/byof`)),tn(Qt(`Bearer ${t.accessToken}`),n))),r=>{const s=r;return s.statusCode===200?D.Return(sn(G(on(Rf(),new Ft(1,[]))),s.responseText)):D.Return(new d(1,["Failed to retrieve own fund choice"]))})}))}get GetAustralianFundList(){const t=this;return(n,r)=>yr(t,5,D.Delay(()=>{let s;const o=r==null?"":`&maxRecordCount=${r}`;return D.Bind(nn((s=en(new At(0,[]),Xt(`${t.baseUrl}/v1.0/super-choice/australian-funds-v2?search=${n}${o}`)),tn(Qt(`Bearer ${t.accessToken}`),s))),i=>{const a=i;return a.statusCode===200?D.Return(sn(G(on(Uf(),new Ft(1,[]))),a.responseText)):D.Return(new d(1,["Failed to retrieve fund list"]))})}))}}function xa(e,t){return new Gf(e,t)}function yr(e,t,n){const r=s=>D.Delay(()=>D.Bind(n,o=>{const i=o;return i.tag===1?s>1?D.Bind(Nc(1e3),()=>D.ReturnFrom(r(s-1))):D.Return(new d(1,[i.fields[0]])):D.Return(new d(0,[i.fields[0]]))}));return r(t)}class Wf{constructor(t,n,r){this.OnNext=t,this.OnError=n||(s=>{}),this.OnCompleted=r||(()=>{})}}function qf(e,t){t.Subscribe(new Wf(e))}class Zf{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 Kf(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 Jf extends Zf{}function Kf(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 Yf{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 Jf}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 Qf(e,t){console.error(Re(e),t)}function Xf(e,t){let n,r=new Yf(e);r.AutoReset=!1,n=r,qf(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Bo(e,t,n){mn(r=>{try{r(t)}catch(s){e(s)}},n)}function $(){return le()}function Ut(e,t){return fs(n=>r=>{n(s=>{r(e(s))})},t)}function Sa(e){return cc(e)}function Pt(e){return M(e)}function sr(e,t,n,r){return M(s=>{e(D.Delay(()=>D.Bind(kc(t(n)),o=>{const i=o;return i.tag===0&&s(r(i.fields[0])),D.Zero()})))})}function or(e){Xf(1,t=>{Mc(e)})}class em extends H{constructor(t,n,r,s,o,i,a,c,l,f,u,p,h){super(),this.FundName=t,this.FundAbn=n,this.FundEsa=r,this.FundAddressLine1=s,this.FundAddressLine2=o,this.FundCity=i,this.FundState=a,this.FundPostcode=c,this.MemberFirstName=l,this.MemberLastName=f,this.BankAccountName=u,this.BankAccountBsb=p,this.BankAccountNumber=h}}function ws(e,t){const n={detail:t};return new CustomEvent(e,n)}const tm=ws("smsf-loaded",{sender:"super-smsf"}),nm=ws("smsf-cancelled",{sender:"super-smsf"});function rm(e){return ws("smsf-completed",{bankAccountName:e.BankAccountName,bankAccountNumber:e.BankAccountNumber,bankBsb:e.BankAccountBsb,fundAbn:e.FundAbn,fundAddressLine1:e.FundAddressLine1,fundAddressLine2:as(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 _s extends F{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loaded","Cancelled","Completed"]}}function gs(e){let t;t=e.tag===1?nm:e.tag===2?rm(e.fields[0]):tm,document.dispatchEvent(t)}function sm(e){return Pt(t=>{gs(new _s(2,[e]))})}function om(){return Pt(e=>{gs(new _s(0,[]))})}function im(){return Pt(e=>{gs(new _s(1,[]))})}function am(){return le()}function bs(e){return O("/",e)}function um(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+bs(t),n])}function Ca(e,t,n){try{K(n)}catch(r){e(["Error stopping subscription: "+bs(t),r])}}function lm(e,t,n,r){try{return[n,r(t)]}catch(s){e(["Error starting subscription: "+bs(n),s]);return}}function cm(e,t){mn(n=>{Ca(e,n[0],n[1])},t)}function Io(e,t,n,r,s,o){return mn(i=>{um(e,i)},n),mn(i=>{Ca(e,i[0],i[1])},r),ds(s,pc(i=>lm(e,t,i[0],i[1]),o))}function dm(){return[le(),ef({Compare:Me}),le()]}function fm(e,t,n,r,s){return Or(e,r)?[xe(e,n),r,s]:[n,Xd(e,r),xe([e,t],s)]}function mm(e){return ic((t,n)=>fm(t[0],t[1],n[0],n[1],n[2]),e,dm())}const hm=le();function Lo(e,t){const n=tf(fs(i=>i[0],e),{Compare:Me}),r=mm(t),s=r[1],o=r[0];if(n.Equals(s))return[o,le(),e,le()];{const i=hc(a=>Or(a[0],s),e);return[o,i[1],i[0],mc(a=>!Or(a[0],n),r[2])]}}function pm(e,t,n,r){const s=Me(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=Me(i,t)|0;return o&&a<=0||!o&&a>=0?[i,r(i,e)]:void 0}}function wm(e,t,n,r,s){const o=pm(t,n,r,s);return I(()=>Gc(o,e))}function _m(e,t,n){return wm(e,t,n,0,(r,s)=>r+s)}class Bt extends F{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class gm{constructor(t){this.state=new Bt(0,[ls(new Array(no(t,10)),0,no(t,10),null),0])}}function bm(e){return new gm(e)}function Oo(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 Bt(0,[s,n]):e.state=new Bt(1,[s,n,o]),Re(he(r,s))}else return}function ym(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];ft(o,r,t);const i=(r+1)%o.length|0;i===s?e.state=new Bt(1,[vm(e,s,o),o.length,0]):e.state=new Bt(1,[o,i,s])}else{const r=n.fields[1]|0,s=n.fields[0];ft(s,r,t);const o=(r+1)%s.length|0;e.state=new Bt(1,[s,o,r])}}function vm(e,t,n){return Array.from(I(()=>se(Yc(t,n),I(()=>se(Qc(t,n),I(()=>Xc(r=>z(qe()),_m(0,1,n.length))))))))}class ys 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 ir(e,t,n){return new ys(e,t,r=>am(),n,G(r=>{const s=T(n)(r);return o=>{s(o)}}),r=>{Qf(r[0],r[1])},[r=>!1,r=>{}])}function xm(e,t){return new ys(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function Sm(e){return e.init}function Cm(e,t,n,r,s,o,i){const a=T(e)(i.init),c=pr(t)(T(i.update)),l=pr(n)(T(i.view)),f=pr(r)(T(i.setState));return new ys(a,G(c),T(s)(i.subscribe),G(l),G(f),i.onError,o(i.termination))}function km(e,t,n){let r;const s=n.init(t),o=s[0],i=n.subscribe(o),a=n.termination,c=bm(10);let l=!1,f=o,u=hm,p=!1;const h=b=>{p||(ym(c,b),l||(l=!0,g(),l=!1))},w=T(e)(h),g=()=>{let b,y=Oo(c);for(;!p&&y!=null;){const k=S(y);if(a[0](k))cm(n.onError,u),a[1](f),p=!0;else{const _=n.update(k,f),V=_[0],oe=n.subscribe(V);n.setState(V,w),Bo(Ee=>{n.onError([dn(Ot("Error handling the message: %A"))(k),Ee])},w,_[1]),f=V,u=(b=Lo(u,oe),Io(n.onError,w,b[0],b[1],b[2],b[3])),y=Oo(c)}}};l=!0,n.setState(o,w),Bo(b=>{n.onError([dn(Ot("Error intitializing:")),b])},w,s[1]),u=(r=Lo(u,i),Io(n.onError,w,r[0],r[1],r[2],r[3])),g(),l=!1}function Am(e,t){km(G(n=>n),e,t)}function Nm(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 ka={exports:{}},Aa={};const Fm=Nm(Uu);/**
|
|
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 Ot=zf;function Hf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jf=typeof Object.is=="function"?Object.is:Hf,Gf=Ot.useState,Wf=Ot.useEffect,qf=Ot.useLayoutEffect,Zf=Ot.useDebugValue;function Jf(e,t){var n=t(),r=Gf({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return qf(function(){o.value=n,o.getSnapshot=t,ur(o)&&s({inst:o})},[e,n,t]),Wf(function(){return ur(o)&&s({inst:o}),e(function(){ur(o)&&s({inst:o})})},[e]),Zf(n),n}function ur(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jf(e,n)}catch{return!0}}function Kf(e,t){return t()}var Yf=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Kf:Jf;ca.useSyncExternalStore=Ot.useSyncExternalStore!==void 0?Ot.useSyncExternalStore:Yf;la.exports=ca;var Xf=la.exports;class Qf{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),s=[];this.finalDispatch=void 0;let i;const a=Lf(o)(this.arg);let c=a[0],l=a[1];i=[[c,f=>{const u=this.finalDispatch;u==null?s.push(f):u(f)},!1,s],l],this.state=i[0],this.cmd=i[1],this.subscribe=f=>{let u=!1;const m=pr(this.state[0]);return Df(this.arg,Vf((h,p)=>{const g=this.state;this.finalDispatch=p,this.state=[h,g[1],!0,s],h!==g[0]&&f()},Rf((h,p)=>{const g=this.cmd;return this.cmd=T(),[this.state[0],g]},(h,p,g)=>h(p)(this.state[0]),_r(h=>h),_r(h=>h),G(h=>h),h=>[p=>h[0](p)?!0:m&&u,p=>{const g=p;pr(g)?W(g):h[1](p)}],o))),()=>{u=!0}}}}function Ss(e,t,n){return new Qf(e,t,n)}function eh(e){return e.state}function th(e){return e.subscribe}function nh(e,t,n){return $e(e.arg,t)?!$e(e.dependencies,n):!0}function da(e,t,n){const r=Lt(()=>Ss(e,t,n)),o=r[0];nh(o,t,n)&&r[1](Ss(e,t,n));const s=Xf.useSyncExternalStore(th(o),()=>eh(o)),i=s[2],a=s[3],c=s[1];return en(()=>{if(i&&a.length>0){let l=Q(a);try{for(;l["System.Collections.IEnumerator.MoveNext"]();){const f=l["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{c(f)})}}finally{W(l)}xu(a)}},[i,a]),[s[0],c]}function Pe(e,t){return ki(t)?new d(1,[`${e} is required`]):new d(0,[t])}function ut(e,t,n){return n.length>=t?new d(0,[n]):new d(1,[`${e} requires a minimum length of ${t} characters`])}function lo(e,t,n){return n.length<=t?new d(0,[n]):new d(1,[`${e} exceeds maximum length of ${t} characters`])}function co(e){return e.trim()}function fo(e){return Gr(e,"\\s+","")}function zn(e,t,n){return Ku(bi(t),n)?new d(0,[n]):new d(1,[`${e} is invalid`])}function rh(e){return Gr(e,"[^0-9]","")}class Vt extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class ho extends Y{constructor(t,n,r,o){super(),this.Value=t,this.IsTouched=n,this.Validator=r,this.ErrorMessage=o}}class Ee extends Y{constructor(t,n,r){super(),this.Field=t,this.OnBlur=n,this.OnChange=r}}function De(e,t){return new ho(Wr(t,""),!1,e,void 0)}function oh(e,t){let n;return new ho(t,e.IsTouched,e.Validator,(n=e.Validator(t),n.tag===1&&e.IsTouched?n.fields[0]:void 0))}function ve(e){let t;return new ho(e.Value,!0,e.Validator,(t=e.Validator(e.Value),t.tag===1?t.fields[0]:void 0))}function Hn(e){const t=e.target,n=rh(t.value);return t.value=n,n}class sh extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundName"]}}function fa(e){let t;const n=Pe("Fund name",co(e));return t=n.tag===1?new d(1,[n.fields[0]]):ut("Fund name",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new sh(t.fields[0])])}function ha(e){return De(fa,e)}function ih(e){return e.fields[0]}class ah extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundAbn"]}}function jn(e){const t=ye(Ue(o=>~~o.charCodeAt(0)-48,e.split(""))),n=k([10,1,3,5,7,9,11,13,15,17,19]),r=Bi(o=>o>=0?o<=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 o=Ho(t)===Ho(n)?new d(0,[void 0]):new d(1,["Enter a valid fund ABN"]);if(o.tag===1)return new d(1,[o.fields[0]]);{const s=Ml((i,a,c)=>i+a*c,0,Bl((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 s.tag===1?new d(1,[s.fields[0]]):new d(0,[new ah(e)])}}}function uh(e){return e.fields[0]}class lh extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundEsa"]}}function ma(e){let t;const n=Pe("Fund ESA",co(e));return t=n.tag===1?new d(1,[n.fields[0]]):ut("Fund ESA",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new lh(t.fields[0])])}function pa(e){return De(ma,e)}function ch(e){return e.fields[0]}class dh extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AddressLine1"]}}function wa(e){let t;const n=Pe("Address Line 1",e);return t=n.tag===1?new d(1,[n.fields[0]]):ut("Address Line 1",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new dh(t.fields[0])])}function _a(e){return De(wa,e)}function fh(e){return e.fields[0]}class hh extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AddressLine2"]}}function ga(e){if(ki(e))return new d(0,[void 0]);{const t=ut("Address Line 2",2,e);return t.tag===1?new d(1,[t.fields[0]]):new d(0,[new hh(t.fields[0])])}}function ba(e){return De(ga,e)}function mh(e){if(e!=null)return e.fields[0]}class ph extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["City"]}}function ya(e){const t=Pe("City",e);return t.tag===1?new d(1,[t.fields[0]]):new d(0,[new ph(t.fields[0])])}function va(e){return De(ya,e)}function wh(e){return e.fields[0]}class rt extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NSW","QLD","ACT","VIC","TAS","WA","SA","NT"]}}function Sa(e){const t=Pe("State",e);if(t.tag===1)return new d(1,[t.fields[0]]);switch(t.fields[0]){case"NSW":return new d(0,[new rt(0,[])]);case"QLD":return new d(0,[new rt(1,[])]);case"ACT":return new d(0,[new rt(2,[])]);case"VIC":return new d(0,[new rt(3,[])]);case"TAS":return new d(0,[new rt(4,[])]);case"WA":return new d(0,[new rt(5,[])]);case"SA":return new d(0,[new rt(6,[])]);case"NT":return new d(0,[new rt(7,[])]);default:return new d(1,["Select a state'"])}}function xa(e){return De(Sa,e)}function _h(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 gh extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Postcode"]}}function ka(e){let t,n;const r=Pe("Postcode",fo(e));return n=r.tag===1?new d(1,[r.fields[0]]):ut("Postcode",4,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):lo("Postcode",4,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new gh(t.fields[0])])}function Ca(e){return De(ka,e)}function bh(e){return e.fields[0]}class yh extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberFirstName"]}}const vh="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function Aa(e){let t;const n=Pe("Member given name(s)",e);return t=n.tag===1?new d(1,[n.fields[0]]):zn("Member given name(s)",vh,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new yh(t.fields[0])])}function Ea(e){return De(Aa,e)}function Sh(e){return e.fields[0]}class xh extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberLastName"]}}const kh="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function Na(e){let t;const n=Pe("Last Name",e);return t=n.tag===1?new d(1,[n.fields[0]]):zn("Last Name",kh,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new xh(t.fields[0])])}function Fa(e){return De(Na,e)}function Ch(e){return e.fields[0]}class Ah extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountName"]}}function Ma(e){let t;const n=Pe("Account name",co(e));return t=n.tag===1?new d(1,[n.fields[0]]):ut("Account name",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Ah(t.fields[0])])}function Ta(e){return De(Ma,e)}function Eh(e){return e.fields[0]}class Nh extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountBsb"]}}function Gn(e){let t,n,r;const o=Pe("BSB",fo(e));return r=o.tag===1?new d(1,[o.fields[0]]):ut("BSB",6,o.fields[0]),n=r.tag===1?new d(1,[r.fields[0]]):lo("BSB",6,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):zn("BSB","^\\d{6}$",n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Nh(t.fields[0])])}function Fh(e){return e.fields[0]}class Mh extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountNumber"]}}function $a(e){let t,n,r;const o=Pe("Account Number",fo(e));return r=o.tag===1?new d(1,[o.fields[0]]):ut("Account Number",2,o.fields[0]),n=r.tag===1?new d(1,[r.fields[0]]):lo("Account Number",11,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):zn("Account Number","^\\d{2,11}$",n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Mh(t.fields[0])])}function Ba(e){return De($a,e)}function Th(e){return e.fields[0]}class $h extends Y{constructor(t,n,r,o,s){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.AddressState=o,this.Postcode=s}}class Bh extends Y{constructor(t,n,r,o,s,i,a,c,l,f,u,m,h){super(),this.FundName=t,this.FundAbn=n,this.FundEsa=r,this.FundAddressLine1=o,this.FundAddressLine2=s,this.FundCity=i,this.FundState=a,this.FundPostcode=c,this.MemberFirstName=l,this.MemberLastName=f,this.BankAccountName=u,this.BankAccountBsb=m,this.BankAccountNumber=h}}const Ih=w("svg",E(k([["fill","#facc15"],["className","h-5 w-5"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=$(w("path",E(k([["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",C.Children.toArray(Array.from(t))]})()]))),Oh=w("div",E(k([["className","bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"],(()=>{let e;const t=[w("div",E(k([["className","flex"],(e=[w("div",{className:"flex-shrink-0",children:C.Children.toArray([Ih])}),w("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",C.Children.toArray(Array.from(e))])])))];return["children",C.Children.toArray(Array.from(t))]})()])));function tt(e){if(e==null)return Qe();{const t=e;return w("div",{className:q(" ",["mt-2 text-sm text-red-600"]),children:t})}}function Wn(e){return ye(I(()=>fe(z("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"),I(()=>e?z("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Re()))))}function Vh(e){let t,n;return w("div",E(k([["className","mt-3"],(t=[w("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundName",children:"Fund name"}),w("div",E(k([["className","mt-1"],(n=[w("input",{type:"text",className:q(" ",Wn(e.Field.ErrorMessage!=null)),id:"fundName",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),tt(e.Field.ErrorMessage)],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}function Lh(e){let t,n;return w("div",E(k([["className","mt-3"],(t=[w("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundEsa",children:"Electronic service address alias (ESA)"}),w("div",E(k([["className","mt-1"],(n=[w("input",{id:"fundEsa",type:"text",value:e.Field.Value,className:q(" ",Wn(e.Field.ErrorMessage!=null)),onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),tt(e.Field.ErrorMessage)],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}function Rh(e,t){return w("input",{placeholder:"Address line 1",type:"text",className:q(" ",ye(I(()=>fe(z("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"),I(()=>e&&t.Field.ErrorMessage!=null?z("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Re()))))),required:!0,minLength:2,id:"addressLine1",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function Ph(e,t){return w("input",{placeholder:"Address line 2 (optional)",type:"text",className:q(" ",ye(I(()=>fe(z("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"),I(()=>e&&t.Field.ErrorMessage!=null?z("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Re()))))),id:"addressLine2",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function Dh(e,t){return w("input",{placeholder:"City/suburb",type:"text",className:q(" ",ye(I(()=>fe(z("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"),I(()=>e&&t.Field.ErrorMessage!=null?z("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Re()))))),required:!0,id:"city",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function Uh(e,t){let n;return w("div",E(k([["className","flex-1 min-w-0"],(n=[w("input",{placeholder:"Postcode",type:"text",required:!0,className:q(" ",ye(I(()=>fe(z("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"),I(()=>e&&t.Field.ErrorMessage!=null?z("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Re()))))),minLength:4,maxLength:4,pattern:"[0-9]{4}",inputMode:"numeric",id:"postcode",value:t.Field.Value,onKeyUp:r=>{t.OnChange(Hn(r))},onBlur:t.OnBlur,onChange:r=>{t.OnChange(r.target.value)}})],["children",C.Children.toArray(Array.from(n))])])))}function zh(e,t){let n;const r=w("option",{disabled:!0,value:"",children:"State",selected:t.Field.Value===""}),o=Yr(s=>w("option",{value:s,children:s,selected:t.Field.Value===s}),k(["NSW","QLD","ACT","VIC","TAS","WA","SA","NT"]));return w("div",E(k([["className","w-1/2 flex-1 min-w-0"],(n=[w("select",{className:q(" ",ye(I(()=>fe(z("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"),I(()=>e&&t.Field.ErrorMessage!=null?z("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Re()))))),id:"state",required:!0,children:C.Children.toArray(Array.from(_e(r,o))),onBlur:t.OnBlur,onChange:s=>{t.OnChange(s.target.value)}})],["children",C.Children.toArray(Array.from(n))])])))}function Hh(e){let t,n,r,o;const s=a=>a.IsTouched;o=Bi(a=>a,k([s(e.AddressLine1.Field),s(e.AddressLine2.Field),s(e.City.Field),s(e.AddressState.Field),s(e.Postcode.Field)]));const i=Il(a=>a,k([e.AddressLine1.Field.ErrorMessage,e.AddressLine2.Field.ErrorMessage,e.City.Field.ErrorMessage,e.AddressState.Field.ErrorMessage,e.Postcode.Field.ErrorMessage]));return w("div",E(k([["className","mt-3"],(t=[w("label",{className:"text-sm font-medium text-gray-700",children:"Fund address"}),w("div",E(k([["className","mt-1 rounded-md shadow-sm -space-y-px"],(n=[Rh(o,e.AddressLine1),Ph(o,e.AddressLine2),Dh(o,e.City),w("div",E(k([["className","flex -space-x-px"],(r=[Uh(o,e.Postcode),zh(o,e.AddressState)],["children",C.Children.toArray(Array.from(r))])])))],["children",C.Children.toArray(Array.from(n))])]))),tt(o?i:void 0)],["children",C.Children.toArray(Array.from(t))])])))}function jh(e){let t,n;return w("div",E(k([["className","mt-3 w-1/2"],(t=[w("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberGivenNames",children:"Given name(s)"}),w("div",E(k([["className","mt-1"],(n=[w("input",{type:"text",className:q(" ",Wn(e.Field.ErrorMessage!=null)),id:"memberGivenNames",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),tt(e.Field.ErrorMessage)],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}function Gh(e){let t,n;return w("div",E(k([["className","mt-3 w-1/2"],(t=[w("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberLastNames",children:"Last name"}),w("div",E(k([["className","mt-1"],(n=[w("input",{type:"text",className:q(" ",Wn(e.Field.ErrorMessage!=null)),id:"memberLastName",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),tt(e.Field.ErrorMessage)],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}function Wh(e){let t,n;const r=e.Field.IsTouched&&e.Field.ErrorMessage!=null;return w("div",E(k([["className","mt-3"],(t=[w("label",{className:"text-sm font-medium text-gray-700",htmlFor:"bankAccountName",children:"Account name"}),w("div",E(k([["className","mt-1"],(n=[w("input",{id:"bankAccountName",type:"text",value:e.Field.Value,className:q(" ",ye(I(()=>fe(z("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"),I(()=>r?z("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Re()))))),onBlur:e.OnBlur,onChange:o=>{e.OnChange(o.target.value)}}),tt(e.Field.ErrorMessage)],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}function qh(e){let t,n;const r=e.Field.IsTouched&&e.Field.ErrorMessage!=null;return w("div",E(k([["className","mt-3"],(t=[w("label",{className:"text-sm font-medium text-gray-700",htmlFor:"bankAccountNumber",children:"Account number"}),w("div",E(k([["className","mt-1"],(n=[w("input",{id:"bankAccountNumber",type:"text",value:e.Field.Value,inputMode:"numeric",className:q(" ",ye(I(()=>fe(z("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"),I(()=>r?z("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Re()))))),onKeyUp:o=>{e.OnChange(Hn(o))},onBlur:e.OnBlur,onChange:o=>{e.OnChange(o.target.value)}}),tt(e.Field.ErrorMessage)],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}function Zh(e,t){let n;return w("div",E(k([["className","mb-4"],(n=[w("div",E(ye(I(()=>fe(e?Re():z(["onClick",t]),I(()=>{let r;return z((r=[w("button",{className:q(" ",["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",C.Children.toArray(Array.from(r))]))}))))))],["children",C.Children.toArray(Array.from(n))])])))}function Jh(e){let t,n,r;return w("div",E($((t=[w("a",E(k([["href","/"],(n=[w("div",E($((r=[w("button",{className:q(" ",["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",C.Children.toArray(Array.from(r))]))))],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))]))))}let xs=class extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}},Yt=class extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFundAbn","RegulatedFundCheck"]}},ze=class extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotYetStarted","Pending","Valid","Invalid"]}},Se=class extends Y{constructor(t,n,r,o){super(),this.RawValue=t,this.IsTouched=n,this.Value=r,this.ErrorMessage=o}};function Ia(e,t){if(e==null)return[new Se("",!1,new ze(0,[]),void 0),T()];{const n=e,r=jn(n);return r.tag===1?[new Se(n,!1,new ze(3,[]),r.fields[0]),T()]:[new Se(n,!1,new ze(1,[]),void 0),$(o=>{o(new Yt(1,[new Vt(0,[])]))})]}}function Kh(e,t){const n=jn(e.RawValue);return n.tag===1?[new Se(e.RawValue,e.IsTouched,new ze(3,[]),n.fields[0]),T()]:t?[new Se(e.RawValue,e.IsTouched,new ze(3,[]),"The supplied ABN is for a regulated fund"),T()]:[new Se(e.RawValue,e.IsTouched,new ze(2,[n.fields[0]]),e.ErrorMessage),T()]}function Oa(e){const t=jn(e.RawValue);return t.tag===1?[new Se(e.RawValue,!0,e.Value,t.fields[0]),T()]:[new Se(e.RawValue,!0,e.Value,e.ErrorMessage),T()]}function Yh(e,t,n){if(t.tag===1)return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new Se(n.RawValue,n.IsTouched,new ze(3,[]),"Something went wrong when validating your fund ABN"),T()]:Kh(n,t.fields[0].fields[0].fields[0]):[n,no(r=>{ro(r)},e,n.RawValue,r=>new Yt(1,[new Vt(1,[r])]))];if(t.fields[0].tag===1)return Oa(n);{const r=jn(t.fields[0].fields[0]);return r.tag===1?n.IsTouched?[new Se(t.fields[0].fields[0],n.IsTouched,new ze(0,[]),r.fields[0]),T()]:[new Se(t.fields[0].fields[0],n.IsTouched,new ze(0,[]),void 0),T()]:t.fields[0].fields[0]===n.RawValue?[n,T()]:[new Se(t.fields[0].fields[0],n.IsTouched,new ze(1,[]),void 0),$(o=>{o(new Yt(1,[new Vt(0,[])]))})]}}function Xh(e){let t,n;const r=e.dispatch,o=e.state,s=c=>{r(new Yt(0,[new xs(0,[c])]))},i=o.IsTouched&&o.ErrorMessage!=null,a=[w("div",E(k([["className","mt-3"],(t=[w("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundAbn",children:"Fund ABN"}),w("div",E(k([["className","mt-1"],(n=[w("input",{id:"fundAbn",type:"text",value:o.RawValue,inputMode:"numeric",className:q(" ",ye(I(()=>fe(z("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"),I(()=>i?z("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Re()))))),onKeyUp:c=>{s(Hn(c))},onBlur:c=>{r(new Yt(0,[new xs(1,[])]))},onChange:c=>{s(c.target.value)}}),tt(o.ErrorMessage)],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))];return w(be,{},...a)}class Qh extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankName"]}}function e0(e){return e.fields[0]}function t0(e){return new Qh(`${e.Bank} - ${e.Branch}`)}let ks=class extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}},Xt=class extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateBankAccountBsb","BsbLookup"]}};class Ye extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotYetStarted","Pending","Valid","Invalid"]}}let He=class extends Y{constructor(t,n,r,o){super(),this.RawValue=t,this.IsTouched=n,this.Value=r,this.ErrorMessage=o}};function Va(e,t){if(e==null)return[new He("",!1,new Ye(0,[]),void 0),T()];{const n=e,r=Gn(n);return r.tag===1?[new He(n,!1,new Ye(3,[]),r.fields[0]),T()]:[new He(n,!1,new Ye(1,[]),void 0),$(o=>{o(new Xt(1,[new Vt(0,[])]))})]}}function Cs(e){return new He(e.RawValue,e.IsTouched,new Ye(3,[]),"Unable to identify the bank using the provided BSB number")}function n0(e,t){let n;const r=Gn(e.RawValue);return n=r.tag===1?[new Ye(3,[]),r.fields[0]]:[new Ye(2,[[r.fields[0],t0(t)]]),void 0],new He(e.RawValue,e.IsTouched,n[0],n[1])}function La(e){const t=Gn(e.RawValue);return t.tag===1?[new He(e.RawValue,!0,e.Value,t.fields[0]),T()]:[new He(e.RawValue,!0,e.Value,e.ErrorMessage),T()]}function r0(e,t,n){if(t.tag===1)if(t.fields[0].tag===1){if(t.fields[0].fields[0].tag===1)return[Cs(n),T()];{const r=t.fields[0].fields[0].fields[0].BankDetails;return r!=null?[n0(n,r),T()]:[Cs(n),T()]}}else return[n,no(r=>{ro(r)},e,n.RawValue,r=>new Xt(1,[new Vt(1,[r])]))];else{if(t.fields[0].tag===1)return La(n);{const r=Gn(t.fields[0].fields[0]);return r.tag===1?n.IsTouched?[new He(t.fields[0].fields[0],n.IsTouched,new Ye(0,[]),r.fields[0]),T()]:[new He(t.fields[0].fields[0],n.IsTouched,new Ye(0,[]),void 0),T()]:t.fields[0].fields[0]===n.RawValue?[n,T()]:[new He(t.fields[0].fields[0],n.IsTouched,new Ye(1,[]),void 0),$(o=>{o(new Xt(1,[new Vt(0,[])]))})]}}}function o0(e){let t;return w("div",E(k([["className","mt-3"],(t=[w("label",{className:"text-sm font-medium text-gray-700",children:"Bank name",htmlFor:"bankName"}),w("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:e0(e),"data-testid":"bank-name"})],["children",C.Children.toArray(Array.from(t))])])))}function s0(e){const t=e.dispatch,n=e.state,r=i=>{t(new Xt(0,[new ks(0,[i])]))},o=n.IsTouched&&n.ErrorMessage!=null,s=ye(I(()=>{let i,a;return fe(z(w("div",E(k([["className","mt-3"],(i=[w("label",{className:"text-sm font-medium text-gray-700",htmlFor:"bankAccountBsb",children:"BSB"}),w("div",E(k([["className","mt-1"],(a=[w("input",{id:"bankAccountBsb",type:"text",value:n.RawValue,inputMode:"numeric",className:q(" ",ye(I(()=>fe(z("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"),I(()=>o?z("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Re()))))),onKeyUp:c=>{r(Hn(c))},onBlur:c=>{t(new Xt(0,[new ks(1,[])]))},onChange:c=>{r(c.target.value)}}),tt(n.ErrorMessage)],["children",C.Children.toArray(Array.from(a))])])))],["children",C.Children.toArray(Array.from(i))])])))),I(()=>{const c=n.Value;switch(c.tag){case 2:return z(o0(c.fields[0][1]));default:return z(Qe())}}))}));return w(be,{},...s)}class As extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}}let B=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"]}},re=class extends Y{constructor(t,n,r,o,s,i,a,c,l,f){super(),this.FundName=t,this.FundAbn=n,this.FundEsa=r,this.FundAddress=o,this.MemberFirstName=s,this.MemberLastName=i,this.BankAccountName=a,this.BankAccountBsb=c,this.BankAccountNumber=l,this.BankName=f}};class ot extends Y{constructor(t,n,r,o,s){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.AddressState=o,this.Postcode=s}}const i0=(()=>{let e;const t=Ia(void 0);e=[t[0],It(o=>new B(1,[o]),t[1])];let n;const r=Va(void 0);return n=[r[0],It(o=>new B(11,[o]),r[1])],[new re(ha(void 0),e[0],pa(void 0),new ot(_a(void 0),ba(void 0),va(void 0),xa(void 0),Ca(void 0)),Ea(void 0),Fa(void 0),Ta(void 0),n[0],Ba(void 0),void 0),ia(k([e[1],n[1]]))]})();function a0(e){let t;const n=Ia(e.Abn);t=[n[0],It(s=>new B(1,[s]),n[1])];let r;const o=Va(e.Bsb);return r=[o[0],It(s=>new B(11,[s]),o[1])],[new re(ha(e.FundName),t[0],pa(e.ElectronicServiceAddress),new ot(_a(e.FundAddress.AddressLine1),ba(e.FundAddress.AddressLine2),va(e.FundAddress.City),xa(e.FundAddress.State),Ca(e.FundAddress.Postcode)),Ea(e.MemberFirstName),Fa(e.MemberFamilyName),Ta(e.BankAccountName),r[0],Ba(e.BankAccountNumber),void 0),ia(k([t[1],r[1]]))]}function u0(e){let t;return Wr((t=e,t==null?void 0:a0(t)),i0)}function Ra(e){let t;const n=fa(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 o=e.FundAbn.Value;if(r=o.tag===2?new d(0,[o.fields[0]]):new d(1,[$("Fund ABN is invalid")]),r.tag===1)return new d(1,[r.fields[0]]);{let s;const i=ma(e.FundEsa.Value);if(s=i.tag===1?new d(1,[$(i.fields[0])]):new d(0,[i.fields[0]]),s.tag===1)return new d(1,[s.fields[0]]);{let a;const c=wa(e.FundAddress.AddressLine1.Value);if(a=c.tag===1?new d(1,[$(c.fields[0])]):new d(0,[c.fields[0]]),a.tag===1)return new d(1,[a.fields[0]]);{let l;const f=ga(e.FundAddress.AddressLine2.Value);if(l=f.tag===1?new d(1,[$(f.fields[0])]):new d(0,[f.fields[0]]),l.tag===1)return new d(1,[l.fields[0]]);{let u;const m=ya(e.FundAddress.City.Value);if(u=m.tag===1?new d(1,[$(m.fields[0])]):new d(0,[m.fields[0]]),u.tag===1)return new d(1,[u.fields[0]]);{let h;const p=Sa(e.FundAddress.AddressState.Value);if(h=p.tag===1?new d(1,[$(p.fields[0])]):new d(0,[p.fields[0]]),h.tag===1)return new d(1,[h.fields[0]]);{let g;const _=ka(e.FundAddress.Postcode.Value);if(g=_.tag===1?new d(1,[$(_.fields[0])]):new d(0,[_.fields[0]]),g.tag===1)return new d(1,[g.fields[0]]);{let y;const S=Aa(e.MemberFirstName.Value);if(y=S.tag===1?new d(1,[$(S.fields[0])]):new d(0,[S.fields[0]]),y.tag===1)return new d(1,[y.fields[0]]);{let b;const H=Na(e.MemberLastName.Value);if(b=H.tag===1?new d(1,[$(H.fields[0])]):new d(0,[H.fields[0]]),b.tag===1)return new d(1,[b.fields[0]]);{let ne;const ke=Ma(e.BankAccountName.Value);if(ne=ke.tag===1?new d(1,[$(ke.fields[0])]):new d(0,[ke.fields[0]]),ne.tag===1)return new d(1,[ne.fields[0]]);{let lt;const ct=e.BankAccountBsb.Value;if(lt=ct.tag===2?new d(0,[ct.fields[0][0]]):new d(1,[$("Bank BSB is invalid")]),lt.tag===1)return new d(1,[lt.fields[0]]);{let nt;const he=$a(e.BankAccountNumber.Value);return nt=he.tag===1?new d(1,[$(he.fields[0])]):new d(0,[he.fields[0]]),nt.tag===1?new d(1,[nt.fields[0]]):new d(0,[new Bh(t.fields[0],r.fields[0],s.fields[0],a.fields[0],l.fields[0],u.fields[0],h.fields[0],g.fields[0],y.fields[0],b.fields[0],ne.fields[0],lt.fields[0],nt.fields[0])])}}}}}}}}}}}}}function l0(e){return new re(ve(e.FundName),Oa(e.FundAbn)[0],ve(e.FundEsa),new ot(ve(e.FundAddress.AddressLine1),ve(e.FundAddress.AddressLine2),ve(e.FundAddress.City),ve(e.FundAddress.AddressState),ve(e.FundAddress.Postcode)),ve(e.MemberFirstName),ve(e.MemberLastName),ve(e.BankAccountName),La(e.BankAccountBsb)[0],ve(e.BankAccountNumber),e.BankName)}function Ne(e,t,n){return n(e.tag===1?ve(t):oh(t,e.fields[0]))}function c0(e,t,n){switch(t.tag){case 1:{const r=Yh(e.IsRegulatedFundAbn,t.fields[0],n.FundAbn);return[new re(n.FundName,r[0],n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName),It(o=>new B(1,[o]),r[1])]}case 2:return[Ne(t.fields[0],n.FundEsa,r=>new re(n.FundName,n.FundAbn,r,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),T()];case 3:return[Ne(t.fields[0],n.FundAddress.AddressLine1,r=>{let o;return new re(n.FundName,n.FundAbn,n.FundEsa,(o=n.FundAddress,new ot(r,o.AddressLine2,o.City,o.AddressState,o.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),T()];case 4:return[Ne(t.fields[0],n.FundAddress.AddressLine2,r=>{let o;return new re(n.FundName,n.FundAbn,n.FundEsa,(o=n.FundAddress,new ot(o.AddressLine1,r,o.City,o.AddressState,o.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),T()];case 5:return[Ne(t.fields[0],n.FundAddress.City,r=>{let o;return new re(n.FundName,n.FundAbn,n.FundEsa,(o=n.FundAddress,new ot(o.AddressLine1,o.AddressLine2,r,o.AddressState,o.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),T()];case 6:return[Ne(t.fields[0],n.FundAddress.AddressState,r=>{let o;return new re(n.FundName,n.FundAbn,n.FundEsa,(o=n.FundAddress,new ot(o.AddressLine1,o.AddressLine2,o.City,r,o.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),T()];case 7:return[Ne(t.fields[0],n.FundAddress.Postcode,r=>{let o;return new re(n.FundName,n.FundAbn,n.FundEsa,(o=n.FundAddress,new ot(o.AddressLine1,o.AddressLine2,o.City,o.AddressState,r)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),T()];case 8:return[Ne(t.fields[0],n.MemberFirstName,r=>new re(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,r,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),T()];case 9:return[Ne(t.fields[0],n.MemberLastName,r=>new re(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,r,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),T()];case 10:return[Ne(t.fields[0],n.BankAccountName,r=>new re(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,r,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),T()];case 11:{const r=r0(e.BsbLookup,t.fields[0],n.BankAccountBsb);return[new re(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,r[0],n.BankAccountNumber,n.BankName),It(o=>new B(11,[o]),r[1])]}case 12:return[Ne(t.fields[0],n.BankAccountNumber,r=>new re(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,r,n.BankName)),T()];case 13:{const r=Ra(n);if(r.tag===1)return[l0(n),T()];{const o=r.fields[0];return[n,gf(new mf(ih(o.FundName),uh(o.FundAbn),ch(o.FundEsa),fh(o.FundAddressLine1),mh(o.FundAddressLine2),wh(o.FundCity),_h(o.FundState),bh(o.FundPostcode),Sh(o.MemberFirstName),Ch(o.MemberLastName),Eh(o.BankAccountName),Fh(o.BankAccountBsb),Th(o.BankAccountNumber)))]}}case 14:return[n,yf()];default:return[Ne(t.fields[0],n.FundName,r=>new re(r,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),T()]}}function d0(e){let t,n,r,o,s,i,a;const c=e.smsfChoice,l=e.backendService;let f;const u=u0(c);f=da(()=>ua(()=>u,(b,H)=>c0(l,b,H),(b,H)=>{}),void 0,void 0);const m=f[0],h=f[1],p=(b,H)=>{h(b(new As(1,[])))},g=(b,H)=>{h(b(new As(0,[H])))};let _;_=Ra(m).tag!==1;const S=$(w("form",E(k([["id","form"],["novalidate",""],(t=[w("div",E(k([["className","p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560"],(n=[w("p",{className:"sm:text-lg font-bold",children:"Fund details"}),Oh,w("div",E($((r=[(o=k([Vh(new Ee(m.FundName,R(p)(b=>new B(0,[b])),R(g)(b=>new B(0,[b])))),w(Xh,{state:m.FundAbn,dispatch:b=>{h(new B(1,[b]))}}),Lh(new Ee(m.FundEsa,R(p)(b=>new B(2,[b])),R(g)(b=>new B(2,[b])))),Hh(new $h(new Ee(m.FundAddress.AddressLine1,R(p)(b=>new B(3,[b])),R(g)(b=>new B(3,[b]))),new Ee(m.FundAddress.AddressLine2,R(p)(b=>new B(4,[b])),R(g)(b=>new B(4,[b]))),new Ee(m.FundAddress.City,R(p)(b=>new B(5,[b])),R(g)(b=>new B(5,[b]))),new Ee(m.FundAddress.AddressState,R(p)(b=>new B(6,[b])),R(g)(b=>new B(6,[b]))),new Ee(m.FundAddress.Postcode,R(p)(b=>new B(7,[b])),R(g)(b=>new B(7,[b]))))),w("div",E(k([["className","flex space-x-4"],(s=[jh(new Ee(m.MemberFirstName,R(p)(b=>new B(8,[b])),R(g)(b=>new B(8,[b])))),Gh(new Ee(m.MemberLastName,R(p)(b=>new B(9,[b])),R(g)(b=>new B(9,[b]))))],["children",C.Children.toArray(Array.from(s))])]))),w("h3",{className:"text-lg font-bold mt-6",children:"Fund bank details"}),Wh(new Ee(m.BankAccountName,R(p)(b=>new B(10,[b])),R(g)(b=>new B(10,[b])))),w(s0,{state:m.BankAccountBsb,dispatch:b=>{h(new B(11,[b]))}}),qh(new Ee(m.BankAccountNumber,R(p)(b=>new B(12,[b])),R(g)(b=>new B(12,[b]))))]),w("div",{children:C.Children.toArray(Array.from(o))}))],["children",C.Children.toArray(Array.from(r))]))))],["children",C.Children.toArray(Array.from(n))])]))),w("div",E(k([["className","flex justify-center mt-8"],(i=[w("div",E(k([["className","sm:max-w-320 w-full"],(a=[Zh(_,b=>{b.preventDefault(),h(new B(13,[]))}),Jh(b=>{b.preventDefault(),h(new B(14,[]))})],["children",C.Children.toArray(Array.from(a))])])))],["children",C.Children.toArray(Array.from(i))])])))],["children",C.Children.toArray(Array.from(t))])]))));return w("div",{children:C.Children.toArray(Array.from(S))})}const f0=w("svg",E(k([["fill","none"],["height",47],["viewBox","0 0 48 47"],["width",48],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e,t,n,r;const o=k([w("rect",{width:48,height:47,rx:8,fill:"#FEE2E2"}),w("g",E(k([["clipPath","url(#clip0_153_10600)"],(e=k([w("path",{d:"M24 15V27",stroke:"#DC2626",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),w("path",E(k([(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"]]))),w("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",C.Children.toArray(Array.from(e))])]))),(n=$(w("clipPath",E(k([["id","clip0_153_10600"],(r=$(w("rect",{width:32,height:32,fill:"white",transform:"translate(8,8)"})),["children",C.Children.toArray(Array.from(r))])])))),w("defs",{children:C.Children.toArray(Array.from(n))}))]);return["children",C.Children.toArray(Array.from(o))]})()])));function h0(e){return w("h1",{className:"mt-4 mb-4 sm:mb-8 text-2xl sm:text-3xl font-semibold text-gray-900",children:e})}function m0(){let e,t,n,r;return w("div",E(k([(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=[f0,h0("Something went wrong"),w("div",E(k([["className","justify-start items-center"],(n=[w("p",E(k([(r="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",r]),["children","We are unable to load the Self Managed Super Fund form at this time."]]))),w("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",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}function qn(e,t){let n;return w("div",E(k([["className",q(" ",["animate-pulse w-full relative",e,t])],(n=[w("div",{className:q(" ",["w-full left-0 top-0 absolute bg-gray-200 rounded",e])})],["children",C.Children.toArray(Array.from(n))])])))}const p0=qn("h-9","max-w-96"),Es=qn("h-6","max-w-96"),w0=qn("h-80","max-w-96"),_0=qn("h-10","max-w-48"),g0=(()=>{let e,t,n;const r=[w("div",E(k([(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=[w("div",E(k([["className","max-w-96 w-full flex-col justify-start items-center gap-6 flex"],(n=[p0,w("div",{className:"self-stretch h-14 flex-col justify-start items-center gap-2 flex",children:C.Children.toArray([Es,Es])})],["children",C.Children.toArray(Array.from(n))])]))),w0,_0],["children",C.Children.toArray(Array.from(t))])])))];return w(be,{},...r)})();function mo(){return(mo=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 b0=["context","children"];function y0(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var s,i,a={},c=Object.keys(r);for(i=0;i<c.length;i++)o.indexOf(s=c[i])>=0||(a[s]=r[s]);return a}(e,b0);return Nr(t,n)}function v0(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=w(y0,mo({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],s={},i=0,a=n.attributes,c=n.childNodes;for(i=a.length;i--;)a[i].name!=="slot"&&(s[a[i].name]=a[i].value,s[Pa(a[i].name)]=a[i].value);for(i=c.length;i--;){var l=t(c[i],null),f=c[i].slot;f?s[f]=w(Ns,{name:f},l):o[i]=l}var u=r?w(Ns,null,o):o;return w(r||n.nodeName.toLowerCase(),s,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Er:it)(this._vdom,this._root)}function Pa(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function S0(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Pa(e)]=n,this._vdom=Nr(this._vdom,r),it(this._vdom,this._root)}}function x0(){it(this._vdom=null,this._root)}function Ns(e,t){var n=this;return w("slot",mo({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function k0(e,t,n,r){function o(){var s=Reflect.construct(HTMLElement,[],o);return s._vdomComponent=e,s._root=r&&r.shadow?s.attachShadow({mode:r.mode||"open"}):s,s}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=v0,o.prototype.attributeChangedCallback=S0,o.prototype.disconnectedCallback=x0,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(s){Object.defineProperty(o.prototype,s,{get:function(){return this._vdom.props[s]},set:function(i){this._vdom?this.attributeChangedCallback(s,null,i):(this._props||(this._props={}),this._props[s]=i,this.connectedCallback());var a=typeof i;i!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(s,i)}})}),customElements.define(t,o)}function C0(e,t){k0(e,t,void 0,{shadow:!0})}function A0(e){let t;const n=k([w("style",{children:[Iu]}),w("div",E(k([["className","mx-auto max-w-7xl"],(t=[w("div",{className:"mx-auto max-w-3xl",children:C.Children.toArray([e])})],["children",C.Children.toArray(Array.from(t))])])))]);return w("div",{children:C.Children.toArray(Array.from(n))})}class Da extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialise","LoadedSmsfChoice"]}}class xr extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Failed"]}}function E0(){return[new xr(0,[]),$(e=>{e(new Da(0,[]))})]}function N0(e,t,n){return t.tag===1?t.fields[0].tag===1?[new xr(2,[]),T()]:[new xr(1,[t.fields[0].fields[0].SmsfChoice]),bf()]:[n,no(r=>{ro(r)},e,void 0,r=>new Da(1,[r]))]}function F0(e){let t,n;const r=rf(e.backendUrl,e.accessToken),o=(t=(n=r.GetSmsfChoice,s=>i=>N0(n,s,i)),da(()=>ua(E0,G(t),(s,i)=>{}),void 0,void 0))[0];return A0(o.tag===1?w(d0,{backendService:r,smsfChoice:Ci(o.fields[0])}):o.tag===2?m0():g0)}function M0(){C0(e=>w(F0,e),"apollo-super-smsf")}M0();
|
|
31
|
+
*/var zt=Fm;function Mm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Em=typeof Object.is=="function"?Object.is:Mm,$m=zt.useState,Tm=zt.useEffect,Bm=zt.useLayoutEffect,Im=zt.useDebugValue;function Lm(e,t){var n=t(),r=$m({inst:{value:n,getSnapshot:t}}),s=r[0].inst,o=r[1];return Bm(function(){s.value=n,s.getSnapshot=t,vr(s)&&o({inst:s})},[e,n,t]),Tm(function(){return vr(s)&&o({inst:s}),e(function(){vr(s)&&o({inst:s})})},[e]),Im(n),n}function vr(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Em(e,n)}catch{return!0}}function Om(e,t){return t()}var Vm=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Om:Lm;Aa.useSyncExternalStore=zt.useSyncExternalStore!==void 0?zt.useSyncExternalStore:Vm;ka.exports=Aa;var Rm=ka.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=Sm(s)(this.arg);let c=a[0],l=a[1];i=[[c,f=>{const u=this.finalDispatch;u==null?o.push(f):u(f)},!1,o],l],this.state=i[0],this.cmd=i[1],this.subscribe=f=>{let u=!1;const p=Fr(this.state[0]);return Am(this.arg,xm((h,w)=>{const g=this.state;this.finalDispatch=w,this.state=[h,g[1],!0,o],h!==g[0]&&f()},Cm((h,w)=>{const g=this.cmd;return this.cmd=$(),[this.state[0],g]},(h,w,g)=>h(w)(this.state[0]),Er(h=>h),Er(h=>h),G(h=>h),h=>[w=>h[0](w)?!0:p&&u,w=>{const g=w;Fr(g)?K(g):h[1](w)}],s))),()=>{u=!0}}}}function Vo(e,t,n){return new Dm(e,t,n)}function Um(e){return e.state}function Pm(e){return e.subscribe}function zm(e,t,n){return Ve(e.arg,t)?!Ve(e.dependencies,n):!0}function ar(e,t,n){const r=jt(()=>Vo(e,t,n)),s=r[0];zm(s,t,n)&&r[1](Vo(e,t,n));const o=Rm.useSyncExternalStore(Pm(s),()=>Um(s)),i=o[2],a=o[3],c=o[1];return _n(()=>{if(i&&a.length>0){let l=ee(a);try{for(;l["System.Collections.IEnumerator.MoveNext"]();){const f=l["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{c(f)})}}finally{K(l)}el(a)}},[i,a]),[o[0],c]}function ce(e,t){return Pi(t)?new d(1,[`${e} is required`]):new d(0,[t])}function He(e,t,n){return n.length>=t?new d(0,[n]):new d(1,[`${e} requires a minimum length of ${t} characters`])}function vs(e,t,n){return n.length<=t?new d(0,[n]):new d(1,[`${e} exceeds maximum length of ${t} characters`])}function Jt(e){return e.trim()}function xs(e){return is(e,"\\s+","")}function Kt(e,t,n){return Al(Oi(t),n)?new d(0,[n]):new d(1,[`${e} is invalid`])}function Hm(e){return is(e,"[^0-9]","")}class Ht extends F{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class Ss extends H{constructor(t,n,r,s){super(),this.Value=t,this.IsTouched=n,this.Validator=r,this.ErrorMessage=s}}class ae extends H{constructor(t,n,r){super(),this.Field=t,this.OnBlur=n,this.OnChange=r}}function de(e,t){return new Ss(Jn(t,""),!1,e,void 0)}function Na(e,t){let n;return new Ss(t,e.IsTouched,e.Validator,(n=e.Validator(t),n.tag===1&&e.IsTouched?n.fields[0]:void 0))}function ne(e){let t;return new Ss(e.Value,!0,e.Validator,(t=e.Validator(e.Value),t.tag===1?t.fields[0]:void 0))}function ur(e){const t=e.target,n=Hm(t.value);return t.value=n,n}let jm=class extends F{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundName"]}};function Fa(e){let t;const n=ce("Fund name",Jt(e));return t=n.tag===1?new d(1,[n.fields[0]]):He("Fund name",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new jm(t.fields[0])])}function Ma(e){return de(Fa,e)}function Gm(e){return e.fields[0]}class Wm extends F{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundAbn"]}}function lr(e){const t=_e(je(s=>~~s.charCodeAt(0)-48,e.split(""))),n=x([10,1,3,5,7,9,11,13,15,17,19]),r=Ji(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=ro(t)===ro(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=uc((i,a,c)=>i+a*c,0,dc((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 Wm(e)])}}}function qm(e){return e.fields[0]}class Zm extends F{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundEsa"]}}function Ea(e){let t;const n=ce("Fund ESA",Jt(e));return t=n.tag===1?new d(1,[n.fields[0]]):He("Fund ESA",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Zm(t.fields[0])])}function $a(e){return de(Ea,e)}function Jm(e){return e.fields[0]}class Km extends F{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AddressLine1"]}}function Ta(e){let t;const n=ce("Address Line 1",e);return t=n.tag===1?new d(1,[n.fields[0]]):He("Address Line 1",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Km(t.fields[0])])}function Ba(e){return de(Ta,e)}function Ym(e){return e.fields[0]}class Qm extends F{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AddressLine2"]}}function Ia(e){if(Pi(e))return new d(0,[void 0]);{const t=He("Address Line 2",2,e);return t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Qm(t.fields[0])])}}function La(e){return de(Ia,e)}function Xm(e){if(e!=null)return e.fields[0]}class eh extends F{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["City"]}}function Oa(e){const t=ce("City",e);return t.tag===1?new d(1,[t.fields[0]]):new d(0,[new eh(t.fields[0])])}function Va(e){return de(Oa,e)}function th(e){return e.fields[0]}class at extends F{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NSW","QLD","ACT","VIC","TAS","WA","SA","NT"]}}function Ra(e){const t=ce("State",e);if(t.tag===1)return new d(1,[t.fields[0]]);switch(t.fields[0]){case"NSW":return new d(0,[new at(0,[])]);case"QLD":return new d(0,[new at(1,[])]);case"ACT":return new d(0,[new at(2,[])]);case"VIC":return new d(0,[new at(3,[])]);case"TAS":return new d(0,[new at(4,[])]);case"WA":return new d(0,[new at(5,[])]);case"SA":return new d(0,[new at(6,[])]);case"NT":return new d(0,[new at(7,[])]);default:return new d(1,["Select a state'"])}}function Da(e){return de(Ra,e)}function nh(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 rh extends F{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Postcode"]}}function Ua(e){let t,n;const r=ce("Postcode",xs(e));return n=r.tag===1?new d(1,[r.fields[0]]):He("Postcode",4,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):vs("Postcode",4,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new rh(t.fields[0])])}function Pa(e){return de(Ua,e)}function sh(e){return e.fields[0]}let oh=class extends F{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberFirstName"]}};const ih="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function za(e){let t;const n=ce("Member given name(s)",e);return t=n.tag===1?new d(1,[n.fields[0]]):Kt("Member given name(s)",ih,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new oh(t.fields[0])])}function Ha(e){return de(za,e)}function ah(e){return e.fields[0]}let uh=class extends F{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberLastName"]}};const lh="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function ja(e){let t;const n=ce("Last Name",e);return t=n.tag===1?new d(1,[n.fields[0]]):Kt("Last Name",lh,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new uh(t.fields[0])])}function Ga(e){return de(ja,e)}function ch(e){return e.fields[0]}class dh extends F{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountName"]}}function Wa(e){let t;const n=ce("Account name",Jt(e));return t=n.tag===1?new d(1,[n.fields[0]]):He("Account name",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new dh(t.fields[0])])}function qa(e){return de(Wa,e)}function fh(e){return e.fields[0]}class mh extends F{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountBsb"]}}function cr(e){let t,n,r;const s=ce("BSB",xs(e));return r=s.tag===1?new d(1,[s.fields[0]]):He("BSB",6,s.fields[0]),n=r.tag===1?new d(1,[r.fields[0]]):vs("BSB",6,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):Kt("BSB","^\\d{6}$",n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new mh(t.fields[0])])}function hh(e){return e.fields[0]}class ph extends F{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountNumber"]}}function Za(e){let t,n,r;const s=ce("Account Number",xs(e));return r=s.tag===1?new d(1,[s.fields[0]]):He("Account Number",2,s.fields[0]),n=r.tag===1?new d(1,[r.fields[0]]):vs("Account Number",11,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):Kt("Account Number","^\\d{2,11}$",n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new ph(t.fields[0])])}function Ja(e){return de(Za,e)}function wh(e){return e.fields[0]}class _h 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 gh extends H{constructor(t,n,r,s,o,i,a,c,l,f,u,p,h){super(),this.FundName=t,this.FundAbn=n,this.FundEsa=r,this.FundAddressLine1=s,this.FundAddressLine2=o,this.FundCity=i,this.FundState=a,this.FundPostcode=c,this.MemberFirstName=l,this.MemberLastName=f,this.BankAccountName=u,this.BankAccountBsb=p,this.BankAccountNumber=h}}const bh=m("svg",C(x([["fill","#facc15"],["className","h-5 w-5"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=M(m("path",C(x([["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))]})()]))),yh=m("div",C(x([["className","bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"],(()=>{let e;const t=[m("div",C(x([["className","flex"],(e=[m("div",{className:"flex-shrink-0",children:v.Children.toArray([bh])}),m("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 ot(e){if(e==null)return qe();{const t=e;return m("div",{className:O(" ",["mt-2 text-sm text-red-600"]),children:t})}}function dr(e){return _e(I(()=>se(z("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"),I(()=>e?z("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Ae()))))}function vh(e){let t,n;return m("div",C(x([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundName",children:"Fund name"}),m("div",C(x([["className","mt-1"],(n=[m("input",{type:"text",className:O(" ",dr(e.Field.ErrorMessage!=null)),id:"fundName",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),ot(e.Field.ErrorMessage)],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function xh(e){let t,n;return m("div",C(x([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundEsa",children:"Electronic service address alias (ESA)"}),m("div",C(x([["className","mt-1"],(n=[m("input",{id:"fundEsa",type:"text",value:e.Field.Value,className:O(" ",dr(e.Field.ErrorMessage!=null)),onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),ot(e.Field.ErrorMessage)],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function Sh(e,t){return m("input",{placeholder:"Address line 1",type:"text",className:O(" ",_e(I(()=>se(z("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"),I(()=>e&&t.Field.ErrorMessage!=null?z("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Ae()))))),required:!0,minLength:2,id:"addressLine1",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function Ch(e,t){return m("input",{placeholder:"Address line 2 (optional)",type:"text",className:O(" ",_e(I(()=>se(z("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"),I(()=>e&&t.Field.ErrorMessage!=null?z("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Ae()))))),id:"addressLine2",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function kh(e,t){return m("input",{placeholder:"City/suburb",type:"text",className:O(" ",_e(I(()=>se(z("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"),I(()=>e&&t.Field.ErrorMessage!=null?z("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Ae()))))),required:!0,id:"city",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function Ah(e,t){let n;return m("div",C(x([["className","flex-1 min-w-0"],(n=[m("input",{placeholder:"Postcode",type:"text",required:!0,className:O(" ",_e(I(()=>se(z("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"),I(()=>e&&t.Field.ErrorMessage!=null?z("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Ae()))))),minLength:4,maxLength:4,pattern:"[0-9]{4}",inputMode:"numeric",id:"postcode",value:t.Field.Value,onKeyUp:r=>{t.OnChange(ur(r))},onBlur:t.OnBlur,onChange:r=>{t.OnChange(r.target.value)}})],["children",v.Children.toArray(Array.from(n))])])))}function Nh(e,t){let n;const r=m("option",{disabled:!0,value:"",children:"State",selected:t.Field.Value===""}),s=fs(o=>m("option",{value:o,children:o,selected:t.Field.Value===o}),x(["NSW","QLD","ACT","VIC","TAS","WA","SA","NT"]));return m("div",C(x([["className","w-1/2 flex-1 min-w-0"],(n=[m("select",{className:O(" ",_e(I(()=>se(z("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"),I(()=>e&&t.Field.ErrorMessage!=null?z("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Ae()))))),id:"state",required:!0,children:v.Children.toArray(Array.from(xe(r,s))),onBlur:t.OnBlur,onChange:o=>{t.OnChange(o.target.value)}})],["children",v.Children.toArray(Array.from(n))])])))}function Fh(e){let t,n,r,s;const o=a=>a.IsTouched;s=Ji(a=>a,x([o(e.AddressLine1.Field),o(e.AddressLine2.Field),o(e.City.Field),o(e.AddressState.Field),o(e.Postcode.Field)]));const i=fc(a=>a,x([e.AddressLine1.Field.ErrorMessage,e.AddressLine2.Field.ErrorMessage,e.City.Field.ErrorMessage,e.AddressState.Field.ErrorMessage,e.Postcode.Field.ErrorMessage]));return m("div",C(x([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",children:"Fund address"}),m("div",C(x([["className","mt-1 rounded-md shadow-sm -space-y-px"],(n=[Sh(s,e.AddressLine1),Ch(s,e.AddressLine2),kh(s,e.City),m("div",C(x([["className","flex -space-x-px"],(r=[Ah(s,e.Postcode),Nh(s,e.AddressState)],["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(n))])]))),ot(s?i:void 0)],["children",v.Children.toArray(Array.from(t))])])))}function Mh(e){let t,n;return m("div",C(x([["className","mt-3 w-1/2"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberGivenNames",children:"Given name(s)"}),m("div",C(x([["className","mt-1"],(n=[m("input",{type:"text",className:O(" ",dr(e.Field.ErrorMessage!=null)),id:"memberGivenNames",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),ot(e.Field.ErrorMessage)],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function Eh(e){let t,n;return m("div",C(x([["className","mt-3 w-1/2"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberLastNames",children:"Last name"}),m("div",C(x([["className","mt-1"],(n=[m("input",{type:"text",className:O(" ",dr(e.Field.ErrorMessage!=null)),id:"memberLastName",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),ot(e.Field.ErrorMessage)],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function $h(e){let t,n;const r=e.Field.IsTouched&&e.Field.ErrorMessage!=null;return m("div",C(x([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"bankAccountName",children:"Account name"}),m("div",C(x([["className","mt-1"],(n=[m("input",{id:"bankAccountName",type:"text",value:e.Field.Value,className:O(" ",_e(I(()=>se(z("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"),I(()=>r?z("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Ae()))))),onBlur:e.OnBlur,onChange:s=>{e.OnChange(s.target.value)}}),ot(e.Field.ErrorMessage)],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function Th(e){let t,n;const r=e.Field.IsTouched&&e.Field.ErrorMessage!=null;return m("div",C(x([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"bankAccountNumber",children:"Account number"}),m("div",C(x([["className","mt-1"],(n=[m("input",{id:"bankAccountNumber",type:"text",value:e.Field.Value,inputMode:"numeric",className:O(" ",_e(I(()=>se(z("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"),I(()=>r?z("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Ae()))))),onKeyUp:s=>{e.OnChange(ur(s))},onBlur:e.OnBlur,onChange:s=>{e.OnChange(s.target.value)}}),ot(e.Field.ErrorMessage)],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function Bh(e,t){let n;return m("div",C(x([["className","mb-4"],(n=[m("div",C(_e(I(()=>se(e?Ae():z(["onClick",t]),I(()=>{let r;return z((r=[m("button",{className:O(" ",["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 Ih(e){let t,n,r;return m("div",C(M((t=[m("a",C(x([["href","/"],(n=[m("div",C(M((r=[m("button",{className:O(" ",["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 Ro=class extends F{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}},hn=class extends F{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFundAbn","RegulatedFundCheck"]}},Ge=class extends F{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotYetStarted","Pending","Valid","Invalid"]}},Fe=class extends H{constructor(t,n,r,s){super(),this.RawValue=t,this.IsTouched=n,this.Value=r,this.ErrorMessage=s}};function Ka(e,t){if(e==null)return[new Fe("",!1,new Ge(0,[]),void 0),$()];{const n=e,r=lr(n);return r.tag===1?[new Fe(n,!1,new Ge(3,[]),r.fields[0]),$()]:[new Fe(n,!1,new Ge(1,[]),void 0),M(s=>{s(new hn(1,[new Ht(0,[])]))})]}}function Lh(e,t){const n=lr(e.RawValue);return n.tag===1?[new Fe(e.RawValue,e.IsTouched,new Ge(3,[]),n.fields[0]),$()]:t?[new Fe(e.RawValue,e.IsTouched,new Ge(3,[]),"The supplied ABN is for a regulated fund"),$()]:[new Fe(e.RawValue,e.IsTouched,new Ge(2,[n.fields[0]]),e.ErrorMessage),$()]}function Ya(e){const t=lr(e.RawValue);return t.tag===1?[new Fe(e.RawValue,!0,e.Value,t.fields[0]),$()]:[new Fe(e.RawValue,!0,e.Value,e.ErrorMessage),$()]}function Oh(e,t,n){if(t.tag===1)return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new Fe(n.RawValue,n.IsTouched,new Ge(3,[]),"Something went wrong when validating your fund ABN"),$()]:Lh(n,t.fields[0].fields[0].fields[0]):[n,sr(r=>{or(r)},e,n.RawValue,r=>new hn(1,[new Ht(1,[r])]))];if(t.fields[0].tag===1)return Ya(n);{const r=lr(t.fields[0].fields[0]);return r.tag===1?n.IsTouched?[new Fe(t.fields[0].fields[0],n.IsTouched,new Ge(0,[]),r.fields[0]),$()]:[new Fe(t.fields[0].fields[0],n.IsTouched,new Ge(0,[]),void 0),$()]:t.fields[0].fields[0]===n.RawValue?[n,$()]:[new Fe(t.fields[0].fields[0],n.IsTouched,new Ge(1,[]),void 0),M(s=>{s(new hn(1,[new Ht(0,[])]))})]}}function Vh(e){let t,n;const r=e.dispatch,s=e.state,o=c=>{r(new hn(0,[new Ro(0,[c])]))},i=s.IsTouched&&s.ErrorMessage!=null,a=[m("div",C(x([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundAbn",children:"Fund ABN"}),m("div",C(x([["className","mt-1"],(n=[m("input",{id:"fundAbn",type:"text",value:s.RawValue,inputMode:"numeric",className:O(" ",_e(I(()=>se(z("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"),I(()=>i?z("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Ae()))))),onKeyUp:c=>{o(ur(c))},onBlur:c=>{r(new hn(0,[new Ro(1,[])]))},onChange:c=>{o(c.target.value)}}),ot(s.ErrorMessage)],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))];return m(Ce,{},...a)}class Rh extends F{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankName"]}}function Dh(e){return e.fields[0]}function Uh(e){return new Rh(`${e.Bank} - ${e.Branch}`)}let Do=class extends F{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}},pn=class extends F{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateBankAccountBsb","BsbLookup"]}};class et extends F{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotYetStarted","Pending","Valid","Invalid"]}}let We=class extends H{constructor(t,n,r,s){super(),this.RawValue=t,this.IsTouched=n,this.Value=r,this.ErrorMessage=s}};function Qa(e,t){if(e==null)return[new We("",!1,new et(0,[]),void 0),$()];{const n=e,r=cr(n);return r.tag===1?[new We(n,!1,new et(3,[]),r.fields[0]),$()]:[new We(n,!1,new et(1,[]),void 0),M(s=>{s(new pn(1,[new Ht(0,[])]))})]}}function Uo(e){return new We(e.RawValue,e.IsTouched,new et(3,[]),"Unable to identify the bank using the provided BSB number")}function Ph(e,t){let n;const r=cr(e.RawValue);return n=r.tag===1?[new et(3,[]),r.fields[0]]:[new et(2,[[r.fields[0],Uh(t)]]),void 0],new We(e.RawValue,e.IsTouched,n[0],n[1])}function Xa(e){const t=cr(e.RawValue);return t.tag===1?[new We(e.RawValue,!0,e.Value,t.fields[0]),$()]:[new We(e.RawValue,!0,e.Value,e.ErrorMessage),$()]}function zh(e,t,n){if(t.tag===1)if(t.fields[0].tag===1){if(t.fields[0].fields[0].tag===1)return[Uo(n),$()];{const r=t.fields[0].fields[0].fields[0].BankDetails;return r!=null?[Ph(n,r),$()]:[Uo(n),$()]}}else return[n,sr(r=>{or(r)},e,n.RawValue,r=>new pn(1,[new Ht(1,[r])]))];else{if(t.fields[0].tag===1)return Xa(n);{const r=cr(t.fields[0].fields[0]);return r.tag===1?n.IsTouched?[new We(t.fields[0].fields[0],n.IsTouched,new et(0,[]),r.fields[0]),$()]:[new We(t.fields[0].fields[0],n.IsTouched,new et(0,[]),void 0),$()]:t.fields[0].fields[0]===n.RawValue?[n,$()]:[new We(t.fields[0].fields[0],n.IsTouched,new et(1,[]),void 0),M(s=>{s(new pn(1,[new Ht(0,[])]))})]}}}function Hh(e){let t;return m("div",C(x([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",children:"Bank name",htmlFor:"bankName"}),m("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:Dh(e),"data-testid":"bank-name"})],["children",v.Children.toArray(Array.from(t))])])))}function jh(e){const t=e.dispatch,n=e.state,r=i=>{t(new pn(0,[new Do(0,[i])]))},s=n.IsTouched&&n.ErrorMessage!=null,o=_e(I(()=>{let i,a;return se(z(m("div",C(x([["className","mt-3"],(i=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"bankAccountBsb",children:"BSB"}),m("div",C(x([["className","mt-1"],(a=[m("input",{id:"bankAccountBsb",type:"text",value:n.RawValue,inputMode:"numeric",className:O(" ",_e(I(()=>se(z("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"),I(()=>s?z("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Ae()))))),onKeyUp:c=>{r(ur(c))},onBlur:c=>{t(new pn(0,[new Do(1,[])]))},onChange:c=>{r(c.target.value)}}),ot(n.ErrorMessage)],["children",v.Children.toArray(Array.from(a))])])))],["children",v.Children.toArray(Array.from(i))])])))),I(()=>{const c=n.Value;switch(c.tag){case 2:return z(Hh(c.fields[0][1]));default:return z(qe())}}))}));return m(Ce,{},...o)}let Po=class extends F{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}},L=class extends F{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"]}},ie=class extends H{constructor(t,n,r,s,o,i,a,c,l,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=c,this.BankAccountNumber=l,this.BankName=f}};class ut 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 Gh=(()=>{let e;const t=Ka(void 0);e=[t[0],Ut(s=>new L(1,[s]),t[1])];let n;const r=Qa(void 0);return n=[r[0],Ut(s=>new L(11,[s]),r[1])],[new ie(Ma(void 0),e[0],$a(void 0),new ut(Ba(void 0),La(void 0),Va(void 0),Da(void 0),Pa(void 0)),Ha(void 0),Ga(void 0),qa(void 0),n[0],Ja(void 0),void 0),Sa(x([e[1],n[1]]))]})();function Wh(e){let t;const n=Ka(e.Abn);t=[n[0],Ut(o=>new L(1,[o]),n[1])];let r;const s=Qa(e.Bsb);return r=[s[0],Ut(o=>new L(11,[o]),s[1])],[new ie(Ma(e.FundName),t[0],$a(e.ElectronicServiceAddress),new ut(Ba(e.FundAddress.AddressLine1),La(e.FundAddress.AddressLine2),Va(e.FundAddress.City),Da(e.FundAddress.State),Pa(e.FundAddress.Postcode)),Ha(e.MemberFirstName),Ga(e.MemberFamilyName),qa(e.BankAccountName),r[0],Ja(e.BankAccountNumber),void 0),Sa(x([t[1],r[1]]))]}function qh(e){let t;return Jn((t=e,t==null?void 0:Wh(t)),Gh)}function eu(e){let t;const n=Fa(e.FundName.Value);if(t=n.tag===1?new d(1,[M(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,[M("Fund ABN is invalid")]),r.tag===1)return new d(1,[r.fields[0]]);{let o;const i=Ea(e.FundEsa.Value);if(o=i.tag===1?new d(1,[M(i.fields[0])]):new d(0,[i.fields[0]]),o.tag===1)return new d(1,[o.fields[0]]);{let a;const c=Ta(e.FundAddress.AddressLine1.Value);if(a=c.tag===1?new d(1,[M(c.fields[0])]):new d(0,[c.fields[0]]),a.tag===1)return new d(1,[a.fields[0]]);{let l;const f=Ia(e.FundAddress.AddressLine2.Value);if(l=f.tag===1?new d(1,[M(f.fields[0])]):new d(0,[f.fields[0]]),l.tag===1)return new d(1,[l.fields[0]]);{let u;const p=Oa(e.FundAddress.City.Value);if(u=p.tag===1?new d(1,[M(p.fields[0])]):new d(0,[p.fields[0]]),u.tag===1)return new d(1,[u.fields[0]]);{let h;const w=Ra(e.FundAddress.AddressState.Value);if(h=w.tag===1?new d(1,[M(w.fields[0])]):new d(0,[w.fields[0]]),h.tag===1)return new d(1,[h.fields[0]]);{let g;const b=Ua(e.FundAddress.Postcode.Value);if(g=b.tag===1?new d(1,[M(b.fields[0])]):new d(0,[b.fields[0]]),g.tag===1)return new d(1,[g.fields[0]]);{let y;const k=za(e.MemberFirstName.Value);if(y=k.tag===1?new d(1,[M(k.fields[0])]):new d(0,[k.fields[0]]),y.tag===1)return new d(1,[y.fields[0]]);{let _;const V=ja(e.MemberLastName.Value);if(_=V.tag===1?new d(1,[M(V.fields[0])]):new d(0,[V.fields[0]]),_.tag===1)return new d(1,[_.fields[0]]);{let oe;const Ee=Wa(e.BankAccountName.Value);if(oe=Ee.tag===1?new d(1,[M(Ee.fields[0])]):new d(0,[Ee.fields[0]]),oe.tag===1)return new d(1,[oe.fields[0]]);{let mt;const ht=e.BankAccountBsb.Value;if(mt=ht.tag===2?new d(0,[ht.fields[0][0]]):new d(1,[M("Bank BSB is invalid")]),mt.tag===1)return new d(1,[mt.fields[0]]);{let it;const ge=Za(e.BankAccountNumber.Value);return it=ge.tag===1?new d(1,[M(ge.fields[0])]):new d(0,[ge.fields[0]]),it.tag===1?new d(1,[it.fields[0]]):new d(0,[new gh(t.fields[0],r.fields[0],o.fields[0],a.fields[0],l.fields[0],u.fields[0],h.fields[0],g.fields[0],y.fields[0],_.fields[0],oe.fields[0],mt.fields[0],it.fields[0])])}}}}}}}}}}}}}function Zh(e){return new ie(ne(e.FundName),Ya(e.FundAbn)[0],ne(e.FundEsa),new ut(ne(e.FundAddress.AddressLine1),ne(e.FundAddress.AddressLine2),ne(e.FundAddress.City),ne(e.FundAddress.AddressState),ne(e.FundAddress.Postcode)),ne(e.MemberFirstName),ne(e.MemberLastName),ne(e.BankAccountName),Xa(e.BankAccountBsb)[0],ne(e.BankAccountNumber),e.BankName)}function Be(e,t,n){return n(e.tag===1?ne(t):Na(t,e.fields[0]))}function Jh(e,t,n){switch(t.tag){case 1:{const r=Oh(e.IsRegulatedFundAbn,t.fields[0],n.FundAbn);return[new ie(n.FundName,r[0],n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName),Ut(s=>new L(1,[s]),r[1])]}case 2:return[Be(t.fields[0],n.FundEsa,r=>new ie(n.FundName,n.FundAbn,r,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),$()];case 3:return[Be(t.fields[0],n.FundAddress.AddressLine1,r=>{let s;return new ie(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new ut(r,s.AddressLine2,s.City,s.AddressState,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),$()];case 4:return[Be(t.fields[0],n.FundAddress.AddressLine2,r=>{let s;return new ie(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new ut(s.AddressLine1,r,s.City,s.AddressState,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),$()];case 5:return[Be(t.fields[0],n.FundAddress.City,r=>{let s;return new ie(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new ut(s.AddressLine1,s.AddressLine2,r,s.AddressState,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),$()];case 6:return[Be(t.fields[0],n.FundAddress.AddressState,r=>{let s;return new ie(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new ut(s.AddressLine1,s.AddressLine2,s.City,r,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),$()];case 7:return[Be(t.fields[0],n.FundAddress.Postcode,r=>{let s;return new ie(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new ut(s.AddressLine1,s.AddressLine2,s.City,s.AddressState,r)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),$()];case 8:return[Be(t.fields[0],n.MemberFirstName,r=>new ie(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,r,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),$()];case 9:return[Be(t.fields[0],n.MemberLastName,r=>new ie(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,r,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),$()];case 10:return[Be(t.fields[0],n.BankAccountName,r=>new ie(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,r,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),$()];case 11:{const r=zh(e.BsbLookup,t.fields[0],n.BankAccountBsb);return[new ie(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,r[0],n.BankAccountNumber,n.BankName),Ut(s=>new L(11,[s]),r[1])]}case 12:return[Be(t.fields[0],n.BankAccountNumber,r=>new ie(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,r,n.BankName)),$()];case 13:{const r=eu(n);if(r.tag===1)return[Zh(n),$()];{const s=r.fields[0];return[n,sm(new em(Gm(s.FundName),qm(s.FundAbn),Jm(s.FundEsa),Ym(s.FundAddressLine1),Xm(s.FundAddressLine2),th(s.FundCity),nh(s.FundState),sh(s.FundPostcode),ah(s.MemberFirstName),ch(s.MemberLastName),fh(s.BankAccountName),hh(s.BankAccountBsb),wh(s.BankAccountNumber)))]}}case 14:return[n,im()];default:return[Be(t.fields[0],n.FundName,r=>new ie(r,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),$()]}}function Kh(e){let t,n,r,s,o,i,a;const c=e.smsfChoice,l=e.backendService;let f;const u=qh(c);f=ar(()=>ir(()=>u,(_,V)=>Jh(l,_,V),(_,V)=>{}),void 0,void 0);const p=f[0],h=f[1],w=(_,V)=>{h(_(new Po(1,[])))},g=(_,V)=>{h(_(new Po(0,[V])))};let b;b=eu(p).tag!==1;const k=M(m("form",C(x([["id","form"],["novalidate",""],(t=[m("div",C(x([["className","p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560"],(n=[m("p",{className:"sm:text-lg font-bold",children:"Fund details"}),yh,m("div",C(M((r=[(s=x([vh(new ae(p.FundName,T(w)(_=>new L(0,[_])),T(g)(_=>new L(0,[_])))),m(Vh,{state:p.FundAbn,dispatch:_=>{h(new L(1,[_]))}}),xh(new ae(p.FundEsa,T(w)(_=>new L(2,[_])),T(g)(_=>new L(2,[_])))),Fh(new _h(new ae(p.FundAddress.AddressLine1,T(w)(_=>new L(3,[_])),T(g)(_=>new L(3,[_]))),new ae(p.FundAddress.AddressLine2,T(w)(_=>new L(4,[_])),T(g)(_=>new L(4,[_]))),new ae(p.FundAddress.City,T(w)(_=>new L(5,[_])),T(g)(_=>new L(5,[_]))),new ae(p.FundAddress.AddressState,T(w)(_=>new L(6,[_])),T(g)(_=>new L(6,[_]))),new ae(p.FundAddress.Postcode,T(w)(_=>new L(7,[_])),T(g)(_=>new L(7,[_]))))),m("div",C(x([["className","flex space-x-4"],(o=[Mh(new ae(p.MemberFirstName,T(w)(_=>new L(8,[_])),T(g)(_=>new L(8,[_])))),Eh(new ae(p.MemberLastName,T(w)(_=>new L(9,[_])),T(g)(_=>new L(9,[_]))))],["children",v.Children.toArray(Array.from(o))])]))),m("h3",{className:"text-lg font-bold mt-6",children:"Fund bank details"}),$h(new ae(p.BankAccountName,T(w)(_=>new L(10,[_])),T(g)(_=>new L(10,[_])))),m(jh,{state:p.BankAccountBsb,dispatch:_=>{h(new L(11,[_]))}}),Th(new ae(p.BankAccountNumber,T(w)(_=>new L(12,[_])),T(g)(_=>new L(12,[_]))))]),m("div",{children:v.Children.toArray(Array.from(s))}))],["children",v.Children.toArray(Array.from(r))]))))],["children",v.Children.toArray(Array.from(n))])]))),m("div",C(x([["className","flex justify-center mt-8"],(i=[m("div",C(x([["className","sm:max-w-320 w-full"],(a=[Bh(b,_=>{_.preventDefault(),h(new L(13,[]))}),Ih(_=>{_.preventDefault(),h(new L(14,[]))})],["children",v.Children.toArray(Array.from(a))])])))],["children",v.Children.toArray(Array.from(i))])])))],["children",v.Children.toArray(Array.from(t))])]))));return m("div",{children:v.Children.toArray(Array.from(k))})}const Yh=m("svg",C(x([["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=x([m("rect",{width:48,height:47,rx:8,fill:"#FEE2E2"}),m("g",C(x([["clipPath","url(#clip0_153_10600)"],(e=x([m("path",{d:"M24 15V27",stroke:"#DC2626",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),m("path",C(x([(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"]]))),m("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=M(m("clipPath",C(x([["id","clip0_153_10600"],(r=M(m("rect",{width:32,height:32,fill:"white",transform:"translate(8,8)"})),["children",v.Children.toArray(Array.from(r))])])))),m("defs",{children:v.Children.toArray(Array.from(n))}))]);return["children",v.Children.toArray(Array.from(s))]})()])));function Qh(e){return m("h1",{className:"mt-4 mb-4 sm:mb-8 text-2xl sm:text-3xl font-semibold text-gray-900",children:e})}function tu(e){let t,n,r,s;return m("div",C(x([(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=[Yh,Qh("Something went wrong"),m("div",C(x([["className","justify-start items-center"],(r=[m("p",C(x([(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]]))),m("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 fr(e,t){let n;return m("div",C(x([["className",O(" ",["animate-pulse w-full relative",e,t])],(n=[m("div",{className:O(" ",["w-full left-0 top-0 absolute bg-gray-200 rounded",e])})],["children",v.Children.toArray(Array.from(n))])])))}const Xh=fr("h-9","max-w-96"),zo=fr("h-6","max-w-96"),e0=fr("h-80","max-w-96"),t0=fr("h-10","max-w-48"),nu=(()=>{let e,t,n;const r=[m("div",C(x([(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=[m("div",C(x([["className","max-w-96 w-full flex-col justify-start items-center gap-6 flex"],(n=[Xh,m("div",{className:"self-stretch h-14 flex-col justify-start items-center gap-2 flex",children:v.Children.toArray([zo,zo])})],["children",v.Children.toArray(Array.from(n))])]))),e0,t0],["children",v.Children.toArray(Array.from(t))])])))];return m(Ce,{},...r)})();function Cs(){return(Cs=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 r0(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,s){if(r==null)return{};var o,i,a={},c=Object.keys(r);for(i=0;i<c.length;i++)s.indexOf(o=c[i])>=0||(a[o]=r[o]);return a}(e,n0);return Hr(t,n)}function s0(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=m(r0,Cs({},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,c=n.childNodes;for(i=a.length;i--;)a[i].name!=="slot"&&(o[a[i].name]=a[i].value,o[ru(a[i].name)]=a[i].value);for(i=c.length;i--;){var l=t(c[i],null),f=c[i].slot;f?o[f]=m(Ho,{name:f},l):s[i]=l}var u=r?m(Ho,null,s):s;return m(r||n.nodeName.toLowerCase(),o,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?zr:dt)(this._vdom,this._root)}function ru(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function o0(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[ru(e)]=n,this._vdom=Hr(this._vdom,r),dt(this._vdom,this._root)}}function i0(){dt(this._vdom=null,this._root)}function Ho(e,t){var n=this;return m("slot",Cs({},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 a0(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=s0,s.prototype.attributeChangedCallback=o0,s.prototype.disconnectedCallback=i0,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 su(e,t){a0(e,t,void 0,{shadow:!0})}function u0(e){let t;const n=x([m("style",{children:[Ti]}),m("div",C(x([["className","mx-auto max-w-7xl"],(t=[m("div",{className:"mx-auto max-w-3xl",children:v.Children.toArray([e])})],["children",v.Children.toArray(Array.from(t))])])))]);return m("div",{children:v.Children.toArray(Array.from(n))})}let ou=class extends F{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialise","LoadedSmsfChoice"]}},Vr=class extends F{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Failed"]}};function l0(){return[new Vr(0,[]),M(e=>{e(new ou(0,[]))})]}function c0(e,t,n){return t.tag===1?t.fields[0].tag===1?[new Vr(2,[]),$()]:[new Vr(1,[t.fields[0].fields[0].SmsfChoice]),om()]:[n,sr(r=>{or(r)},e,void 0,r=>new ou(1,[r]))]}function d0(e){let t,n;const r=xa(e.backendUrl,e.accessToken),s=(t=(n=r.GetSmsfChoice,o=>i=>c0(n,o,i)),ar(()=>ir(l0,G(t),(o,i)=>{}),void 0,void 0))[0];return u0(s.tag===1?m(Kh,{backendService:r,smsfChoice:as(s.fields[0])}):s.tag===2?tu("We are unable to load the Self Managed Super Fund form at this time."):nu)}function f0(){su(e=>m(d0,e),"apollo-super-smsf")}class m0 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 ks(e,t){const n={detail:t};return new CustomEvent(e,n)}const h0=ks("byof-loaded",{sender:"super-byof"}),p0=ks("byof-cancelled",{sender:"super-byof"});function w0(e){return ks("byof-completed",{fundName:e.FundName,fundUsi:e.FundUsi,memberFirstName:e.MemberFirstName,memberLastName:e.MemberLastName,memberNumber:e.MemberNumber,sender:"super-byof"})}class As extends F{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loaded","Cancelled","Completed"]}}function Ns(e){let t;t=e.tag===1?p0:e.tag===2?w0(e.fields[0]):h0,document.dispatchEvent(t)}function _0(e,t){Ns(new As(2,[e]))}function g0(e){Ns(new As(0,[]))}function b0(e){Ns(new As(1,[]))}class y0 extends F{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundName"]}}function iu(e){let t;const n=ce("Fund name",Jt(e));return t=n.tag===1?new d(1,[n.fields[0]]):He("Fund name",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new y0(t.fields[0])])}function au(e){return de(iu,e)}function v0(e){return e.fields[0]}class x0 extends F{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundUsi"]}}function uu(e){let t;const n=ce("Fund USI",Jt(e));return t=n.tag===1?new d(1,[n.fields[0]]):He("Fund USI",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new x0(t.fields[0])])}function lu(e){return de(uu,e)}function S0(e){return e.fields[0]}class C0 extends F{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberNumber"]}}function cu(e){let t;const n=ce("Member number",Jt(e));return t=n.tag===1?new d(1,[n.fields[0]]):He("Member number",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new C0(t.fields[0])])}function du(e){return de(cu,e)}function k0(e){return e.fields[0]}class A0 extends F{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberFirstName"]}}const N0="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function fu(e){let t;const n=ce("Member given name(s)",e);return t=n.tag===1?new d(1,[n.fields[0]]):Kt("Member given name(s)",N0,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new A0(t.fields[0])])}function mu(e){return de(fu,e)}function F0(e){return e.fields[0]}class M0 extends F{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberLastName"]}}const E0="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function hu(e){let t;const n=ce("Last Name",e);return t=n.tag===1?new d(1,[n.fields[0]]):Kt("Last Name",E0,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new M0(t.fields[0])])}function pu(e){return de(hu,e)}function $0(e){return e.fields[0]}class T0 extends H{constructor(t,n,r,s,o){super(),this.FundName=t,this.FundUsi=n,this.MemberNumber=r,this.MemberFirstName=s,this.MemberLastName=o}}class jo extends F{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}}let Ne=class extends F{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFundName","UpdateFundUsi","UpdateMemberNumber","UpdateMemberFirstName","UpdateMemberLastName","Submit","Cancel"]}},lt=class 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 B0=new lt(au(void 0),lu(void 0),du(void 0),mu(void 0),pu(void 0));function I0(e){return new lt(au(e.FundName),lu(e.Usi),du(e.MemberNumber),mu(e.MemberFirstName),pu(e.MemberFamilyName))}function L0(e){let t;return[Jn((t=e,t==null?void 0:I0(t)),B0),$()]}function wu(e){let t;const n=iu(e.FundName.Value);if(t=n.tag===1?new d(1,[M(n.fields[0])]):new d(0,[n.fields[0]]),t.tag===1)return new d(1,[t.fields[0]]);{let r;const s=uu(e.FundUsi.Value);if(r=s.tag===1?new d(1,[M(s.fields[0])]):new d(0,[s.fields[0]]),r.tag===1)return new d(1,[r.fields[0]]);{let o;const i=cu(e.MemberNumber.Value);if(o=i.tag===1?new d(1,[M(i.fields[0])]):new d(0,[i.fields[0]]),o.tag===1)return new d(1,[o.fields[0]]);{let a;const c=fu(e.MemberFirstName.Value);if(a=c.tag===1?new d(1,[M(c.fields[0])]):new d(0,[c.fields[0]]),a.tag===1)return new d(1,[a.fields[0]]);{let l;const f=hu(e.MemberLastName.Value);return l=f.tag===1?new d(1,[M(f.fields[0])]):new d(0,[f.fields[0]]),l.tag===1?new d(1,[l.fields[0]]):new d(0,[new T0(t.fields[0],r.fields[0],o.fields[0],a.fields[0],l.fields[0])])}}}}}function O0(e){return new lt(ne(e.FundName),ne(e.FundUsi),ne(e.MemberNumber),ne(e.MemberFirstName),ne(e.MemberLastName))}function an(e,t,n){return n(e.tag===1?ne(t):Na(t,e.fields[0]))}function V0(e,t,n){switch(t.tag){case 1:return[an(t.fields[0],n.FundUsi,r=>new lt(n.FundName,r,n.MemberNumber,n.MemberFirstName,n.MemberLastName)),$()];case 2:return[an(t.fields[0],n.MemberNumber,r=>new lt(n.FundName,n.FundUsi,r,n.MemberFirstName,n.MemberLastName)),$()];case 3:return[an(t.fields[0],n.MemberFirstName,r=>new lt(n.FundName,n.FundUsi,n.MemberNumber,r,n.MemberLastName)),$()];case 4:return[an(t.fields[0],n.MemberLastName,r=>new lt(n.FundName,n.FundUsi,n.MemberNumber,n.MemberFirstName,r)),$()];case 5:{const r=wu(n);if(r.tag===1)return[O0(n),$()];{const s=r.fields[0],o=new m0(v0(s.FundName),S0(s.FundUsi),k0(s.MemberNumber),F0(s.MemberFirstName),$0(s.MemberLastName));return[n,Pt(i=>{_0(o)})]}}case 6:return[n,Pt(r=>{b0()})];default:return[an(t.fields[0],n.FundName,r=>new lt(r,n.FundUsi,n.MemberNumber,n.MemberFirstName,n.MemberLastName)),$()]}}const R0=m("svg",C(x([["fill","#facc15"],["className","h-5 w-5"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=M(m("path",C(x([["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))]})()]))),D0=m("div",C(x([["className","bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"],(()=>{let e,t,n;const r=[m("div",C(x([["className","flex"],(e=[m("div",{className:"flex-shrink-0",children:v.Children.toArray([R0])}),m("div",C(x([["className","ml-2"],(t=[m("ul",C(x([["className","list-disc list-outside ml-6 space-y-2 text-sm text-yellow-700 leading-5"],(n=[m("li",{children:["Make sure you are a current member of the fund before completing this step."]}),m("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 Cn(e){if(e==null)return qe();{const t=e;return m("div",{className:O(" ",["mt-2 text-sm text-red-600"]),children:t})}}function kn(e){return _e(I(()=>se(z("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"),I(()=>e?z("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Ae()))))}function U0(e){let t,n;return m("div",C(x([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundName",children:"Fund name"}),m("div",C(x([["className","mt-1"],(n=[m("input",{type:"text",className:O(" ",kn(e.Field.ErrorMessage!=null)),id:"fundName",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Cn(e.Field.ErrorMessage)],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function P0(e){let t,n;return m("div",C(x([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundUsi",children:"Fund USI"}),m("div",C(x([["className","mt-1"],(n=[m("input",{type:"text",className:O(" ",kn(e.Field.ErrorMessage!=null)),id:"fundUsi",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Cn(e.Field.ErrorMessage)],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function z0(e){let t,n;return m("div",C(x([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberNumber",children:"Member Number"}),m("div",C(x([["className","mt-1"],(n=[m("input",{id:"memberNumber",type:"text",value:e.Field.Value,className:O(" ",kn(e.Field.ErrorMessage!=null)),onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Cn(e.Field.ErrorMessage)],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function H0(e){let t,n;return m("div",C(x([["className","mt-3 w-1/2"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberGivenNames",children:"Given name(s)"}),m("div",C(x([["className","mt-1"],(n=[m("input",{type:"text",className:O(" ",kn(e.Field.ErrorMessage!=null)),id:"memberGivenNames",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Cn(e.Field.ErrorMessage)],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function j0(e){let t,n;return m("div",C(x([["className","mt-3 w-1/2"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberLastNames",children:"Last name"}),m("div",C(x([["className","mt-1"],(n=[m("input",{type:"text",className:O(" ",kn(e.Field.ErrorMessage!=null)),id:"memberLastName",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Cn(e.Field.ErrorMessage)],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function G0(e,t){let n;return m("div",C(x([["className","mb-4"],(n=[m("div",C(_e(I(()=>se(e?Ae():z(["onClick",t]),I(()=>{let r;return z((r=[m("button",{className:O(" ",["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 m("div",C(M((t=[m("a",C(x([["href","/"],(n=[m("div",C(M((r=[m("button",{className:O(" ",["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))]))))}function q0(e){let t,n,r,s,o,i,a;const c=e.byofChoice,l=e.backendService;let f;const u=L0(c);f=ar(()=>ir(()=>u,(_,V)=>V0(l,_,V),(_,V)=>{}),void 0,void 0);const p=f[0],h=f[1],w=(_,V)=>{h(_(new jo(1,[])))},g=(_,V)=>{h(_(new jo(0,[V])))};let b;b=wu(p).tag!==1;const k=M(m("form",C(x([["id","form"],["novalidate",""],(t=[m("div",C(x([["className","p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560"],(n=[m("p",{className:"sm:text-lg font-bold",children:"Fund details"}),D0,m("div",C(M((r=[(s=x([U0(new ae(p.FundName,T(w)(_=>new Ne(0,[_])),T(g)(_=>new Ne(0,[_])))),P0(new ae(p.FundUsi,T(w)(_=>new Ne(1,[_])),T(g)(_=>new Ne(1,[_])))),z0(new ae(p.MemberNumber,T(w)(_=>new Ne(2,[_])),T(g)(_=>new Ne(2,[_])))),m("div",C(x([["className","flex space-x-4"],(o=[H0(new ae(p.MemberFirstName,T(w)(_=>new Ne(3,[_])),T(g)(_=>new Ne(3,[_])))),j0(new ae(p.MemberLastName,T(w)(_=>new Ne(4,[_])),T(g)(_=>new Ne(4,[_]))))],["children",v.Children.toArray(Array.from(o))])])))]),m("div",{children:v.Children.toArray(Array.from(s))}))],["children",v.Children.toArray(Array.from(r))]))))],["children",v.Children.toArray(Array.from(n))])]))),m("div",C(x([["className","flex justify-center mt-8"],(i=[m("div",C(x([["className","sm:max-w-320 w-full"],(a=[G0(b,_=>{_.preventDefault(),h(new Ne(5,[]))}),W0(_=>{_.preventDefault(),h(new Ne(6,[]))})],["children",v.Children.toArray(Array.from(a))])])))],["children",v.Children.toArray(Array.from(i))])])))],["children",v.Children.toArray(Array.from(t))])]))));return m("div",{children:v.Children.toArray(Array.from(k))})}function Z0(e){let t;const n=x([m("style",{children:[Ti]}),m("div",C(x([["className","mx-auto max-w-7xl"],(t=[m("div",{className:"mx-auto max-w-3xl",children:v.Children.toArray([e])})],["children",v.Children.toArray(Array.from(t))])])))]);return m("div",{children:v.Children.toArray(Array.from(n))})}class _u extends F{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialise","LoadedByofChoice"]}}class Rr extends F{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Failed"]}}function J0(){return[new Rr(0,[]),M(e=>{e(new _u(0,[]))})]}function K0(e,t,n){return t.tag===1?t.fields[0].tag===1?[new Rr(2,[]),$()]:[new Rr(1,[t.fields[0].fields[0].OwnFundChoice]),Pt(r=>{g0()})]:[n,sr(r=>{or(r)},e,void 0,r=>new _u(1,[r]))]}function Y0(e){let t,n;const r=xa(e.backendUrl,e.accessToken),s=(t=(n=r.GetOwnFundChoice,o=>i=>K0(n,o,i)),ar(()=>ir(J0,G(t),(o,i)=>{}),void 0,void 0))[0];return Z0(s.tag===1?m(q0,{backendService:r,byofChoice:as(s.fields[0])}):s.tag===2?tu("We are unable to load the Existing Super Fund form at this time."):nu)}function Q0(){su(e=>m(Y0,e),"apollo-super-byof")}f0();Q0();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flarehr/apollo-super-selection-app",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.53.14680",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/"
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"postinstall": "dotnet tool restore",
|
|
10
10
|
"clean-win": "dotnet fable clean --yes & rmdir /s /q node_modules & rmdir /s /q .\\src\\bin & rmdir /s /q .\\src\\obj",
|
|
11
11
|
"start": "dotnet fable watch ./src -s --run npx vite",
|
|
12
|
+
"start-debug": "dotnet fable watch ./src -s --run npx vite --debug",
|
|
12
13
|
"build": "dotnet fable ./src -s --run vite build --emptyOutDir",
|
|
13
14
|
"test": "dotnet fable ./tests/SuperSelection.AppUI.Tests/ --define TEST && cross-env NODE_ENV=development vite build --config vite.tests.config.mjs --mode development && mocha ./dist-test/Program.fs.js -r jsdom-global/register"
|
|
14
15
|
},
|