@flarehr/apollo-super-selection-app 0.3.7640 → 0.3.7703

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,7 +1,7 @@
1
- var qt,F,ms,ct,eo,ps,qn,lr,Zn,Jn,_s,zt={},ws=[],Ia=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Cn=Array.isArray;function je(e,t){for(var n in t)e[n]=t[n];return e}function gs(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function _(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 Rt(e,i,r,o,null)}function Rt(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??++ms,__i:-1,__u:0};return o==null&&F.vnode!=null&&F.vnode(s),s}function bs(){return{current:null}}function xe(e){return e.children}function $e(e,t){this.props=e,this.context=t}function At(e,t){if(t==null)return e.__?At(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"?At(e):null}function ys(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 ys(e)}}function Kn(e){(!e.__d&&(e.__d=!0)&&ct.push(e)&&!fn.__r++||eo!==F.debounceRendering)&&((eo=F.debounceRendering)||ps)(fn)}function fn(){var e,t,n,r,o,s,i,a;for(ct.sort(qn);e=ct.shift();)e.__d&&(t=ct.length,r=void 0,s=(o=(n=e).__v).__e,i=[],a=[],n.__P&&((r=je({},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??At(o),!!(32&o.__u),a),r.__v=o.__v,r.__.__k[r.__i]=r,Ss(i,r,a),r.__e!=s&&ys(r)),ct.length>t&&ct.sort(qn));fn.__r=0}function vs(e,t,n,r,o,s,i,a,c,l,f){var u,m,h,p,g,w=r&&r.__k||ws,y=t.length;for(n.__d=c,Oa(n,t,w),c=n.__d,u=0;u<y;u++)(h=n.__k[u])!=null&&(m=h.__i===-1?zt:w[h.__i]||zt,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&&dr(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=xs(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 Oa(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?Rt(null,o,null,null,null):Cn(o)?Rt(xe,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?Rt(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=La(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=At(s)),ks(s,s))}function xs(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=xs(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=At(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function We(e,t){return t=t||[],e==null||typeof e=="boolean"||(Cn(e)?e.some(function(n){We(n,t)}):t.push(e)),t}function La(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 to(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Ia.test(t)?n:n+"px"}function on(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||to(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||to(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=lr,e.addEventListener(t,s?Jn:Zn,s)):e.removeEventListener(t,s?Jn:Zn,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 no(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=lr++;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,w,y,x,b,U,ne,Ae,at,ut,Qe,ce=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 ce=="function")try{if(y=t.props,x="prototype"in ce&&ce.prototype.render,b=(f=ce.contextType)&&r[f.__c],U=f?b?b.props.value:f.__:r,n.__c?w=(u=t.__c=n.__c).__=u.__E:(x?t.__c=u=new ce(y,U):(t.__c=u=new $e(y,U),u.constructor=ce,u.render=Pa),b&&b.sub(u),u.props=y,u.state||(u.state={}),u.context=U,u.__n=r,m=u.__d=!0,u.__h=[],u._sb=[]),x&&u.__s==null&&(u.__s=u.state),x&&ce.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=je({},u.__s)),je(u.__s,ce.getDerivedStateFromProps(y,u.__s))),h=u.props,p=u.state,u.__v=t,m)x&&ce.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),x&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(x&&ce.getDerivedStateFromProps==null&&y!==h&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(y,U),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(y,u.__s,U)===!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(rn){rn&&(rn.__=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,U),x&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(h,p,g)})}if(u.context=U,u.props=y,u.__P=e,u.__e=!1,Ae=F.__r,at=0,x){for(u.state=u.__s,u.__d=!1,Ae&&Ae(t),f=u.render(u.props,u.state,u.context),ut=0;ut<u._sb.length;ut++)u.__h.push(u._sb[ut]);u._sb=[]}else do u.__d=!1,Ae&&Ae(t),f=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++at<25);u.state=u.__s,u.getChildContext!=null&&(r=je(je({},r),u.getChildContext())),x&&!m&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(h,p)),vs(e,Cn(Qe=f!=null&&f.type===xe&&f.key==null?f.props.children:f)?Qe:[Qe],t,n,r,o,s,i,a,c,l),u.base=t.__e,t.__u&=-161,u.__h.length&&i.push(u),w&&(u.__E=u.__=null)}catch(rn){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(rn,t,n)}else s==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Va(n.__e,t,n,r,o,s,i,c,l);(f=F.diffed)&&f(t)}function Ss(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)dr(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 Va(e,t,n,r,o,s,i,a,c){var l,f,u,m,h,p,g,w=n.props,y=t.props,x=t.type;if(x==="svg"?o="http://www.w3.org/2000/svg":x==="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==!!x&&(x?h.localName===x:h.nodeType===3)){e=h,s[l]=null;break}}if(e==null){if(x===null)return document.createTextNode(y);e=document.createElementNS(o,x,y.is&&y),a&&(F.__m&&F.__m(t,s),a=!1),s=null}if(x===null)w===y||a&&e.data===y||(e.data=y);else{if(s=s&&qt.call(e.childNodes),w=n.props||zt,!a&&s!=null)for(w={},l=0;l<e.attributes.length;l++)w[(h=e.attributes[l]).name]=h.value;for(l in w)if(h=w[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;on(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"||w[l]===h||on(e,l,h,w[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,Cn(m)?m:[m],t,n,r,x==="foreignObject"?"http://www.w3.org/1999/xhtml":o,s,i,s?s[0]:n.__k&&At(n,0),a,c),s!=null)for(l=s.length;l--;)gs(s[l]);a||(l="value",x==="progress"&&p==null?e.removeAttribute("value"):p!==void 0&&(p!==e[l]||x==="progress"&&!p||x==="option"&&p!==w[l])&&on(e,l,p,w[l],o),l="checked",g!==void 0&&g!==e[l]&&on(e,l,g,w[l],o))}return e}function dr(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 ks(e,t,n){var r,o;if(F.unmount&&F.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||dr(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]&&ks(r[o],t,n||typeof e.type!="function");n||gs(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Pa(e,t,n){return this.constructor(e,n)}function rt(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=_(xe,null,[e]),o||zt,zt,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),Ss(s,e,i)}function fr(e,t){rt(e,t,fr)}function hr(e,t,n){var r,o,s,i,a=je({},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),Rt(e.type,a,r||e.key,o||e.ref,null)}function Cs(e,t){var n={__c:t="__cC"+_s++,__: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,Kn(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=ws.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}},ms=0,$e.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=je({},this.state),typeof e=="function"&&(e=e(je({},n),this.props)),e&&je(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Kn(this))},$e.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Kn(this))},$e.prototype.render=xe,ct=[],ps=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,qn=function(e,t){return e.__v.__b-t.__v.__b},fn.__r=0,lr=0,Zn=no(!1),Jn=no(!0),_s=0;var Ze,D,Dn,ro,Et=0,As=[],q=F,oo=q.__b,so=q.__r,io=q.diffed,ao=q.__c,uo=q.unmount,lo=q.__;function _t(e,t){q.__h&&q.__h(D,e,Et||t),Et=0;var n=D.__H||(D.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Bt(e){return Et=1,An(Es,e)}function An(e,t,n){var r=_t(Ze++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Es(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 Zt(e,t){var n=_t(Ze++,3);!q.__s&&yr(n.__H,t)&&(n.__=e,n.i=t,D.__H.__h.push(n))}function It(e,t){var n=_t(Ze++,4);!q.__s&&yr(n.__H,t)&&(n.__=e,n.i=t,D.__h.push(n))}function mr(e){return Et=5,Jt(function(){return{current:e}},[])}function pr(e,t,n){Et=6,It(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 Jt(e,t){var n=_t(Ze++,7);return yr(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function _r(e,t){return Et=8,Jt(function(){return e},t)}function wr(e){var t=D.context[e.__c],n=_t(Ze++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(D)),t.props.value):e.__}function gr(e,t){q.useDebugValue&&q.useDebugValue(t?t(e):e)}function Da(e){var t=_t(Ze++,10),n=Bt();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 br(){var e=_t(Ze++,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 Ra(){for(var e;e=As.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ln),e.__H.__h.forEach(Yn),e.__H.__h=[]}catch(t){e.__H.__h=[],q.__e(t,e.__v)}}q.__b=function(e){D=null,oo&&oo(e)},q.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),lo&&lo(e,t)},q.__r=function(e){so&&so(e),Ze=0;var t=(D=e.__c).__H;t&&(Dn===D?(t.__h=[],D.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(ln),t.__h.forEach(Yn),t.__h=[],Ze=0)),Dn=D},q.diffed=function(e){io&&io(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(As.push(t)!==1&&ro===q.requestAnimationFrame||((ro=q.requestAnimationFrame)||Ua)(Ra)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Dn=D=null},q.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ln),n.__h=n.__h.filter(function(r){return!r.__||Yn(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],q.__e(r,n.__v)}}),ao&&ao(e,t)},q.unmount=function(e){uo&&uo(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{ln(r)}catch(o){t=o}}),n.__H=void 0,t&&q.__e(t,n.__v))};var co=typeof requestAnimationFrame=="function";function Ua(e){var t,n=function(){clearTimeout(r),co&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);co&&(t=requestAnimationFrame(n))}function ln(e){var t=D,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),D=t}function Yn(e){var t=D;e.__c=e.__(),D=t}function yr(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Es(e,t){return typeof t=="function"?t(e):t}function Ns(e,t){for(var n in t)e[n]=t[n];return e}function Xn(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 hn(e,t){this.props=e,this.context=t}function Fs(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:Xn(this.props,o)}function r(o){return this.shouldComponentUpdate=n,_(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(hn.prototype=new $e).isPureReactComponent=!0,hn.prototype.shouldComponentUpdate=function(e,t){return Xn(this.props,e)||Xn(this.state,t)};var fo=F.__b;F.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),fo&&fo(e)};var za=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ms(e){function t(n){var r=Ns({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=za,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ho=function(e,t){return e==null?null:We(We(e).map(t))},Ts={map:ho,forEach:ho,count:function(e){return e?We(e).length:0},only:function(e){var t=We(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:We},Ha=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)}Ha(e,t,n,r)};var mo=F.unmount;function $s(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=Ns({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return $s(r,t,n)})),e}function Bs(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Bs(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 Ut(){this.__u=0,this.t=null,this.__b=null}function Is(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Os(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 _(n,s)}return o.displayName="Lazy",o.__f=!0,o}function vt(){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),mo&&mo(e)},(Ut.prototype=new $e).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Is(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]=Bs(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)},Ut.prototype.componentWillUnmount=function(){this.t=[]},Ut.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]=$s(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&_(xe,null,e.fallback);return o&&(o.__u&=-33),[_(xe,null,t.__a?null:e.children),o]};var po=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 ja(e){return this.getChildContext=function(){return e.context},e.children}function Ga(e){var t=this,n=e.i;t.componentWillUnmount=function(){rt(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)}}),rt(_(ja,{context:t.context},e.__v),t.l)}function Ls(e,t){var n=_(Ga,{__v:e,i:t});return n.containerInfo=t,n}(vt.prototype=new $e).__a=function(e){var t=this,n=Is(t.__v),r=t.o.get(e);return r[0]++,function(o){var s=function(){t.props.revealOrder?(r.push(o),po(t,e,r)):o()};n?n(s):s()}},vt.prototype.render=function(e){this.u=null,this.o=new Map;var t=We(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},vt.prototype.componentDidUpdate=vt.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){po(e,n,t)})};var Vs=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Wa=/^(?: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]/,qa=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Za=/[A-Z0-9]/g,Ja=typeof document<"u",Ka=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ps(e,t,n){return t.__k==null&&(t.textContent=""),rt(e,t),typeof n=="function"&&n(),e?e.__c:null}function Ds(e,t,n){return fr(e,t),typeof n=="function"&&n(),e?e.__c:null}$e.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty($e.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var _o=F.event;function Ya(){}function Xa(){return this.cancelBubble}function Qa(){return this.defaultPrevented}F.event=function(e){return _o&&(e=_o(e)),e.persist=Ya,e.isPropagationStopped=Xa,e.isDefaultPrevented=Qa,e.nativeEvent=e};var vr,eu={enumerable:!1,configurable:!0,get:function(){return this.class}},wo=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||Ja&&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"||Ka(n.type)?c==="onfocus"?i="onfocusin":c==="onblur"?i="onfocusout":qa.test(i)&&(i=c):c=i="oninput":s&&Wa.test(i)?i=i.replace(Za,"-$&").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=We(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=We(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",eu)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Vs,wo&&wo(e)};var go=F.__r;F.__r=function(e){go&&go(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 Rs={ReactCurrentDispatcher:{current:{readContext:function(e){return vr.__n[e.__c].props.value},useCallback:_r,useContext:wr,useDebugValue:gr,useDeferredValue:Sr,useEffect:Zt,useId:br,useImperativeHandle:pr,useInsertionEffect:Cr,useLayoutEffect:It,useMemo:Jt,useReducer:An,useRef:mr,useState:Bt,useSyncExternalStore:Ar,useTransition:kr}}},tu="18.3.1";function Us(e){return _.bind(null,e)}function Kt(e){return!!e&&e.$$typeof===Vs}function zs(e){return Kt(e)&&e.type===xe}function Hs(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function js(e){return Kt(e)?hr.apply(null,arguments):e}function Gs(e){return!!e.__k&&(rt(null,e),!0)}function Ws(e){return e&&(e.base||e.nodeType===1&&e)||null}var qs=function(e,t){return e(t)},Zs=function(e,t){return e(t)},Js=xe;function xr(e){e()}function Sr(e){return e}function kr(){return[!1,xr]}var Cr=It,Ks=Kt;function Ar(e,t){var n=t(),r=Bt({h:{__:n,v:t}}),o=r[0].h,s=r[1];return It(function(){o.__=n,o.v=t,Rn(o)&&s({h:o})},[e,n,t]),Zt(function(){return Rn(o)&&s({h:o}),e(function(){Rn(o)&&s({h:o})})},[e]),n}function Rn(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 Ys={useState:Bt,useId:br,useReducer:An,useEffect:Zt,useLayoutEffect:It,useInsertionEffect:Cr,useTransition:kr,useDeferredValue:Sr,useSyncExternalStore:Ar,startTransition:xr,useRef:mr,useImperativeHandle:pr,useMemo:Jt,useCallback:_r,useContext:wr,useDebugValue:gr,version:"18.3.1",Children:Ts,render:Ps,hydrate:Ds,unmountComponentAtNode:Gs,createPortal:Ls,createElement:_,createContext:Cs,createFactory:Us,cloneElement:js,createRef:bs,Fragment:xe,isValidElement:Kt,isElement:Ks,isFragment:zs,isMemo:Hs,findDOMNode:Ws,Component:$e,PureComponent:hn,memo:Fs,forwardRef:Ms,flushSync:Zs,unstable_batchedUpdates:qs,StrictMode:Js,Suspense:Ut,SuspenseList:vt,lazy:Os,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Rs};const nu=Object.freeze(Object.defineProperty({__proto__:null,Children:Ts,Component:$e,Fragment:xe,PureComponent:hn,StrictMode:Js,Suspense:Ut,SuspenseList:vt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Rs,cloneElement:js,createContext:Cs,createElement:_,createFactory:Us,createPortal:Ls,createRef:bs,default:Ys,findDOMNode:Ws,flushSync:Zs,forwardRef:Ms,hydrate:Ds,isElement:Ks,isFragment:zs,isMemo:Hs,isValidElement:Kt,lazy:Os,memo:Fs,render:Ps,startTransition:xr,unmountComponentAtNode:Gs,unstable_batchedUpdates:qs,useCallback:_r,useContext:wr,useDebugValue:gr,useDeferredValue:Sr,useEffect:Zt,useErrorBoundary:Da,useId:br,useImperativeHandle:pr,useInsertionEffect:Cr,useLayoutEffect:It,useMemo:Jt,useReducer:An,useRef:mr,useState:Bt,useSyncExternalStore:Ar,useTransition:kr,version:tu},Symbol.toStringTag,{value:"Module"})),ru=`*,: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\\: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 ou(e){return e!=null&&typeof e.GetEnumerator=="function"}function su(e){return e!=null&&typeof e.CompareTo=="function"}function iu(e){return e!=null&&typeof e.Equals=="function"}function au(e){return e!=null&&typeof e.GetHashCode=="function"}function Qn(e){return e!=null&&typeof e.Dispose=="function"}function Z(e){Qn(e)&&e.Dispose()}function Je(){return null}function mn(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 uu{constructor(t){this.iter=t,this.current=Je()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function X(e){return ou(e)?e.GetEnumerator():new uu(e[Symbol.iterator]())}function En(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 yo(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function lu(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function ft(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class nt{static id(t){return nt.idMap.has(t)||nt.idMap.set(t,++nt.count),nt.idMap.get(t)}}nt.idMap=new WeakMap;nt.count=0;function Er(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function ze(e){return e*2654435761|0}function cu(e){return Er(e.toString(32))}function Yt(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 du(e){return e.getTime()}function fu(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Ke(e[r]);return Yt(n)}function Ke(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return ze(e);case"bigint":return cu(e);case"string":return Er(e);default:{if(au(e))return e.GetHashCode();if(De(e))return fu(e);if(e instanceof Date)return du(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Ke(r));return Yt(n)}else return ze(nt.id(e))}}}function er(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 Xs(e,t){return er(e,t,Be)}function hu(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]||!Be(e[n[o]],t[r[o]]))return!1;return!0}function Be(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:iu(e)?e.Equals(t):De(e)?De(t)&&Xs(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Qs(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&hu(e,t)}function Qs(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+yo(e),r=t.getTime()+yo(t)),n===r?0:n<r?-1:1}function Nr(e,t){return e===t?0:e<t?-1:1}function mu(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 ei(e,t){return mu(e,t,Se)}function pu(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=Se(e[i],t[i]),s!==0)return s}return 0}function Se(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:su(e)?e.CompareTo(t):De(e)?De(t)?ei(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Qs(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?pu(e,t):-1}function E(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function _u(e){De(e)?e.splice(0):e.clear()}const Nn=new WeakMap;function J(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Nn.set(t,e),t}function $(e){return Nn.get(e)??(t=>n=>e(t,n))}function tr(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return Nn.set(t,e),t}function Un(e){return Nn.get(e)??(t=>n=>r=>e(t,n,r))}function wu(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 wu(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 gu(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Oe(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>Oe(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class M{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return gu(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>Ke(n));return t.splice(0,0,ze(this.tag)),Yt(t)}Equals(t){return this===t?!0:mn(this,t)&&this.tag===t.tag?Xs(this.fields,t.fields):!1}CompareTo(t){return this===t?0:mn(this,t)?this.tag===t.tag?ei(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function bu(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function yu(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Oe(n)).join(`
3
- `)+" }"}function vu(e){const t=Object.values(e).map(n=>Ke(n));return Yt(t)}function xu(e,t){if(e===t)return!0;if(mn(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!Be(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Su(e,t){if(e===t)return 0;if(mn(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=Se(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class K{toJSON(){return bu(this)}toString(){return yu(this)}GetHashCode(){return vu(this)}Equals(t){return xu(this,t)}CompareTo(t){return Su(this,t)}}class Le{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 ku{constructor(t){this.message=t}}function Cu(e){return e instanceof ku||e instanceof Error}function Au(e){return e instanceof Promise}function pn(e){return Cu(e)||Au(e)?e:new Error(String(e))}const Eu=Oe(ru),C=Ys,Ot=Symbol("numeric");function ti(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[Ot])}function Nu(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function nr(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Ot]().multiply(t)}function cn(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Ot]().toFixed(t)}function _n(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Ot]().toPrecision(t)}function wn(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Ot]().toExponential(t)}function gn(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Ot]().toHex()}const Fu=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Mu=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Tu=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],$u=["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 vo(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Bu(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 Fr(e,t,n){let r=0,o=0,s="";const i=n?Xt(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+=So(i);break;case 2:s+=z(So(i),2);break;case 3:s+=Fu[Ao(i)];break;case 4:s+=Mu[Ao(i)];break}break;case"f":if(o=me(t,r,"f"),r+=o,o<=3){const w=10**(3-o);s+=z(Math.floor(an(i)/w),o)}else o<=7&&(s+=(""+an(i)).padEnd(o,"0"));break;case"F":if(o=me(t,r,"F"),r+=o,o<=3){const w=10**(3-o),y=Math.floor(an(i)/w);y!=0&&(s+=z(y,o))}else if(o<=7){const w=an(i);w!=0&&(s+=z(w,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+=sn(i)%12;break;case 2:s+=z(sn(i)%12,2);break}break;case"H":switch(o=me(t,r,"H"),r+=o,o){case 1:s+=sn(i);break;case 2:s+=z(sn(i),2);break}break;case"K":switch(o=me(t,r,"K"),r+=o,o){case 1:switch(xo(i)){case 1:s+="Z";break;case 2:s+=St(i.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=me(t,r,"m"),r+=o,o){case 1:s+=ko(i);break;case 2:s+=z(ko(i),2);break}break;case"M":switch(o=me(t,r,"M"),r+=o,o){case 1:s+=un(i);break;case 2:s+=z(un(i),2);break;case 3:s+=Tu[un(i)-1];break;case 4:s+=$u[un(i)-1];break}break;case"s":switch(o=me(t,r,"s"),r+=o,o){case 1:s+=Co(i);break;case 2:s+=z(Co(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+=z(i.getFullYear()%100,2);break;case 3:s+=z(i.getFullYear(),3);break;case 4:s+=z(i.getFullYear(),4);break;case 5:s+=z(i.getFullYear(),5);break}break;case"z":o=me(t,r,"z"),r+=o;let c="";switch(xo(i)){case 1:c="+00:00";break;case 2:c=St(i.getTimezoneOffset()*-6e4);break;case 0:c=St(zu(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}${z(f,2)}`;break;default:s+=`${l}${z(f,2)}:${z(u,2)}`;break}break;case":":s+=":",r++;break;case"/":s+="/",r++;break;case"'":case'"':const[m,h]=Bu(t,r);s+=m,r+=h;break;case"%":const p=vo(t,r);if(p>=0&&p!==37)r+=2,s+=Fr(i,String.fromCharCode(p),n);else throw new Error("Invalid format string");break;case"\\":const g=vo(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 xo(e){return e.kind||0}function St(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 bn(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 Iu(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?St(e.getTimezoneOffset()*-6e4):"")}}function Ou(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+St(t)}function Lu(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," ")+St(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return bn(n,"first");case"T":case"t":return bn(n,"second");case"O":case"o":return Ou(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Fr(n,t,!0)}function Vu(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?bn(e,"first"):e.toLocaleDateString();case"T":case"t":return n?bn(e,"second"):e.toLocaleTimeString();case"O":case"o":return Iu(e,n);default:throw new Error("Unrecognized Date print format")}else return Fr(e,t,n)}function ni(e,t,n){return e.offset!=null?Lu(e,t):Vu(e,t)}function Xt(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Pu(){return Xt(-621355968e5,1)}function ri(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 Du(e,t=!1){const[n,r]=ri(e),o=r!=null?t&&r==="Z"?1:2:0;return Xt(n.getTime(),o)}function Ru(e,t){try{return t.contents=Du(e),!0}catch{return!1}}function Uu(e){return e.kind===1?e:Xt(e.getTime(),1)}function zu(e){return e.kind===2?e:Xt(e.getTime(),2)}function So(e){return e.kind===1?e.getUTCDate():e.getDate()}function sn(e){return e.kind===1?e.getUTCHours():e.getHours()}function an(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function ko(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function un(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function Co(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Ao(e){return e.kind===1?e.getUTCDay():e.getDay()}function 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 si(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Hu(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 o,s=-1;for(;(o=e.exec(t))!=null;)o.index===s?e.lastIndex++:(s=o.index,r.push(o));return r}function Mr(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=oi(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=Eo(e,a),l=Eo.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 Pt=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,ju=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function ii(e,t){return Nu(e,t)<0}function Nt(e){return{input:e,cont:qu(e)}}function ai(e,t){return typeof t=="string"?e(t):t.cont(e)}function Ht(e){return ai(t=>t,e)}function Gu(e){return ai(t=>{throw new Error(t)},e)}function Wu(e,t,n,r,o){let s="";if(t=t||"",o=o||"",ti(e))switch(o.toLowerCase()!=="x"&&(ii(e,0)?(e=nr(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=cn(e,r);break;case"g":case"G":e=r!=null?_n(e,r):_n(e);break;case"e":case"E":e=r!=null?wn(e,r):wn(e);break;case"x":e=gn(e);break;case"X":e=gn(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=ni(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=jt(e,n-s.length,c,a),e=s+e):e=jt(s+e,n,c,a)}return e}function ui(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+=Wu(l,f,p,m,h),a.splice(0,1),c.splice(0,1)}return c.length===0?(i+=a[0],e(i)):ui(e,a,c,i,o)}}function qu(e){return t=>{Pt.lastIndex=0;const n=[],r=[];let o=0,s=Pt.exec(e);for(;s;){const i=s.index+(s[1]||"").length;n.push(e.substring(o,i).replace(/%%/g,"%")),r.push(s),o=Pt.lastIndex,Pt.lastIndex-=1,s=Pt.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),ui(t,n,r))}}function Zu(e,...t){let n;return n=e,n.replace(ju,(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(ti(l))switch(a=a==null?null:parseInt(a,10),i){case"f":case"F":a=a??2,l=cn(l,a);break;case"g":case"G":l=a!=null?_n(l,a):_n(l);break;case"e":case"E":l=a!=null?wn(l,a):wn(l);break;case"p":case"P":a=a??2,l=cn(nr(l,100),a)+" %";break;case"d":case"D":l=a!=null?zn(String(l),a,"0"):String(l);break;case"x":case"X":l=a!=null?zn(gn(l),a,"0"):gn(l),i==="X"&&(l=l.toUpperCase());break;default:if(c){let f="";l=c.replace(/([0#,]+)(\.[0#]+)?/,(u,m,h)=>{ii(l,0)&&(l=nr(l,-1),f="-"),h=h==null?"":h.substring(1),l=cn(l,Math.max(h.length,0));let[p,g]=l.split(".");g||(g="");const w=m.replace(/,/g,"").replace(/^#+/,"").length;p=zn(p,w,"0");const y=h.replace(/#+$/,"").length;if(y>g.length?g=Ku(g,y,"0"):y<g.length&&(g=g.substring(0,y)+g.substring(y).replace(/0+$/,"")),m.indexOf(",")>0){const x=p.length%3,b=Math.floor(p.length/3);let U=x>0?p.substr(0,x)+(b>0?",":""):"";for(let ne=0;ne<b;ne++)U+=p.substr(x+ne*3,3)+(ne<b-1?",":"");p=U}return g.length>0?p+"."+g:p}),l=f+l}}else l instanceof Date?l=ni(l,c||i):l=Oe(l);return s=parseInt((s||" ").substring(1),10),isNaN(s)||(l=jt(String(l),Math.abs(s)," ",s<0)),l})}function Ju(e){return typeof e!="string"||e.length===0}function li(e){return typeof e!="string"||/^\s*$/.test(e)}function G(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function jt(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 zn(e,t,n){return jt(e,t,n)}function Ku(e,t,n){return jt(e,t,n,!0)}function Yu(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(si),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 Xu(e,...t){if(t.length===0)return e.trim();const n="["+si(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class ht{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Ke(this.value)}Equals(t){return t==null?!1:Be(this.value,t instanceof ht?t.value:t)}CompareTo(t){return t==null?1:Se(this.value,t instanceof ht?t.value:t)}}function v(e){if(e==null)throw new Error("Option has no value");return e instanceof ht?e.value:e}function ci(e){return e instanceof ht?e.value:e}function Ie(e){return e==null||e instanceof ht?new ht(e):e}function Tr(e,t){return e!=null?v(e):t}class st{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 di(this)}Equals(t){return rr(this,t)}}function He(e){return e.generics!=null?e.generics:[]}function di(e){const t=Er(e.fullname),n=He(e).map(di);return Yt([t,...n])}function rr(e,t){return e.fullname===""?t.fullname===""&&er(yn(e),yn(t),([n,r],[o,s])=>n===o&&rr(r,s)):e.fullname===t.fullname&&er(He(e),He(t),rr)}function Qt(e,t,n,r){return new st(e,t,n,void 0,r)}function Gt(e){return new st("Microsoft.FSharp.Core.FSharpOption`1",[e])}const Qu=new st("System.Object"),oe=new st("System.String");function $r(e){if(Array.isArray(e))return e[0];if(e instanceof st){const t=Fn(e);if(t!=null)return $r(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=Fn(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 el(e){return Fn(e)!=null}function Fn(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function tl(e){return e.generics!=null&&e.generics.length>0}function fi(e){return e.enumCases!=null&&e.enumCases.length>0}function nl(e){return e.generics==null?e:new st(e.fullname,e.generics.map(()=>Qu))}function rl(e){var t;return(t=e.generics)==null?void 0:t[0]}function wt(e){if(fi(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function ol(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 gt(e,t){const n=parseInt(t,10);return ol(e,isNaN(n)?t:n)[1]}function sl(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function yn(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function il(e){if(hi(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function al(e){return e instanceof st?e.cases!=null:e instanceof M}function ul(e){return e instanceof st?e.fields!=null:e instanceof K}function hi(e){return e.fullname.startsWith("System.Tuple")}function ll(e){return e.fields==null?[]:e.fields}function cl(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 dl(e,t){const n=yn(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 fl(e,t){return e}const mi="Collection was empty.";function pi(e,t){return new Array(t)}function No(e,t){return e>t?e:t}function Br(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function Mn(e,t,n){const r=t.length|0,o=pi(n,r);for(let s=0;s<=r-1;s++)ot(o,s,e(ue(s,t)));return o}function hl(e,t){const n=pi(t,1);return ot(n,0,e),n}function ml(e){return e.slice().reverse()}function pl(e,t){return t.find(e)}function _l(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const s=e(ue(o,t));if(s!=null){const i=v(s);r.push(i)}}return Be(n,Je())?r:Mn(o=>o,r,n)}function Tn(e,t,n){const r=e;return n.reduce(r,t)}function ue(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 ot(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 _i(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class de extends K{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+G("; ",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(Be(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)+Ke(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=Se(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 gl(this)}[Symbol.iterator](){return En(X(this))}"System.Collections.IEnumerable.GetEnumerator"(){return X(this)}}class wl{constructor(t){this.xs=t,this.it=this.xs,this.current=Je()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=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=Je()}Dispose(){}}function gl(e){return new wl(e)}function ee(){return new de(Je(),void 0)}function en(e,t){return new de(e,t)}function mt(e){return e.tail==null}function wi(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 Ft(e){if(e.tail!=null)return e.head;throw new Error(mi+"\\nParameter name: list")}function fe(e){const t=e.tail;if(t!=null)return v(t);throw new Error(mi+"\\nParameter name: list")}function se(){return ee()}function ge(e,t){return en(e,t)}function B(e){return en(e,ee())}function O(e){return mt(e)}function Fo(e){return wi(e)}function A(e){return Ft(e)}function T(e){return fe(e)}function tn(e){const t=wi(e)|0,n=Br(new Array(t),0,t,null);return((o,s)=>{e:for(;;){const i=o,a=s;if(!mt(a)){ot(n,i,Ft(a)),o=i+1,s=fe(a);continue e}break}})(0,e),n}function Re(e,t,n){let r=t,o=n;for(;!mt(o);)r=e(r,A(o)),o=fe(o);return r}function Ir(e){return Re((t,n)=>en(n,t),ee(),e)}function bl(e,t,n){return _i(e,tn(t),n)}function yl(e,t,n){return((o,s,i)=>{e:for(;;){const a=o,c=s,l=i;if(mt(l))return c;o=a+1,s=e(a,c,Ft(l)),i=fe(l);continue e}})(0,t,n)}function vl(e,t,n,r){let o=t,s=n,i=r;for(;!mt(s)&&!mt(i);)o=e(o,Ft(s),Ft(i)),s=fe(s),i=fe(i);return o}function vn(e,t){Re((n,r)=>{e(r)},void 0,t)}function W(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=en(ue(r,e),n);return n}function k(e){return W(e,ee())}function xl(e){let t,n;if(De(e))return k(e);if(e instanceof de)return e;{const r=ee();let o=r;const s=X(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();){const c=s["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new de(c,void 0),t.tail=n,n)}}finally{Z(s)}const i=o,a=ee();return i.tail=a,fe(r)}}function Or(e,t){return Re((n,r)=>en(r,n),t,Ir(e))}function Sl(e,t){const n=ee(),r=yl((s,i,a)=>{const c=new de(e(s,a),void 0);return i.tail=c,c},n,t),o=ee();return r.tail=o,fe(n)}function Lr(e,t){const n=ee(),r=Re((s,i)=>{const a=new de(e(i),void 0);return s.tail=a,a},n,t),o=ee();return r.tail=o,fe(n)}function kl(e,t){return(r=>{e:for(;;){const o=r;if(mt(o))return;{const s=e(Ft(o));if(s==null){r=fe(o);continue e}else return s}}})(t)}function Cl(e,t){const n=ee(),r=Re((s,i)=>{if(e(i)){const a=new de(i,void 0);return s.tail=a,a}else return s},n,t),o=ee();return r.tail=o,fe(n)}function Al(e,t){const n=ee(),r=ee(),o=n,s=Re((c,l)=>{let f,u;const m=c[0],h=c[1];return e(l)?[(f=new de(l,void 0),m.tail=f,f),h]:[m,(u=new de(l,void 0),h.tail=u,u)]},[o,r],t),i=ee();s[0].tail=i;const a=ee();return s[1].tail=a,[fe(o),fe(r)]}function El(e,t){const n=ee(),r=Re((s,i)=>{const a=e(i);if(a==null)return s;{const c=new de(v(a),void 0);return s.tail=c,c}},n,t),o=ee();return r.tail=o,fe(n)}function gi(e,t){return Re((n,r)=>n&&e(r),!0,t)}class Nl{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 $n extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,$n.prototype)}}class Vr{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Vr.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Ge(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new $n);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(pn(n))}});else try{e(t)}catch(n){t.onError(pn(n))}}}function Fl(e,t){return Ge(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(pn(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Ml(e){return Ge(t=>t.onSuccess(e))}class Tl{Bind(t,n){return Fl(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Ge(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 Ml(t)}ReturnFrom(t){return t}TryFinally(t,n){return Ge(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 Ge(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(s){r.onError(pn(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 Ge(t=>t.onSuccess(void 0))}}const Q=new Tl;function $l(e){return new bi(0,[e])}function Bl(e){return new bi(1,[e])}class bi extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function Il(e){return $l(e)}function Ol(e){return Bl(e)}function Hn(e){}const Ll=new Nl;function Vl(e){return Ge(t=>{e({onSuccess:n=>t.onSuccess(Il(n)),onError:n=>t.onSuccess(Ol(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Pl(e){return Ge(t=>e([t.onSuccess,t.onError,t.onCancel]))}function Dl(e){return Ge(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new $n)})})}function Rl(e,t){return zl(e,t)}function Ul(e,t){return Rl(e,t)}function zl(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const s=new Vr;e({onSuccess:t||Hn,onError:Hn,onCancel:Hn,cancelToken:o||Ll,trampoline:s})}class Pr extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Hl extends M{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class jl extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Bn extends K{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 yt extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class yi extends K{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 Gl(e){throw new Error(e)}const Wl="Enumeration already finished.",ql="Enumeration has not started. Call MoveNext.",vi="The input sequence has an insufficient number of elements.",Zl="Reset is not supported on this enumerator.";function Jl(){throw new Error(Zl)}function Dr(){throw new Error(ql)}function or(){throw new Error(Wl)}class Kl{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=X(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{Z(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return En(X(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Yl(e){return new Kl(e)}class Xl{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"(){Jl()}Dispose(){this.dispose()}}function In(e,t,n){return new Xl(e,t,n)}function Ql(e){let t,n,r=!1,o=!1,s;const i=()=>{if(o=!0,n!=null){const a=v(n);try{Z(a)}finally{n=void 0}}if(t!=null){const a=v(t);try{Z(a)}finally{t=void 0}}};return In(()=>(r?o&&or():Dr(),s!=null?v(s):or()),()=>{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=Ie(u["System.Collections.Generic.IEnumerator`1.get_Current"]()),c=!0;else try{Z(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"](),X(a)):(i(),c=!1)}else t=X(e)}return v(c)}},()=>{o||i()})}function ec(e,t){return In(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{Z(t)}finally{}})}function xi(e,t,n){let r=!1,o,s=Ie(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 In(()=>(r||Dr(),o!=null?v(o):or()),()=>{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 tc(e,t){let n,r=t;return In(()=>{if(n!=null){const o=v(n)[0];return v(n)[1],o}else return Dr()},()=>(n=e(r),n!=null?(v(n)[0],r=v(n)[1],!0):!1),()=>{})}function nc(e,t){t==null&&Gl(e)}function Lt(e){return Yl(e)}function pt(e){return nc("source",e),X(e)}function V(e){return Lt(()=>X(e()))}function Si(e){return Lt(()=>Ql(e))}function rc(e,t){return Lt(()=>tc(e,t))}function Ue(){return V(()=>new Array(0))}function j(e){return V(()=>hl(e))}function oc(e){return e instanceof de?tn(e):Array.from(e)}function ke(e){return De(e)?k(e):e instanceof de?e:xl(e)}function sc(e,t,n){return Lt(()=>xi(e,t,n))}function ic(e,t,n){return Lt(()=>{let r=-1;return xi(e,o=>(r=r+1|0,t(r,o)),n)})}function he(e,t){return Si([e,t])}function ac(e,t,n){const r=pt(t);try{const o=pt(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{Z(o)}}finally{Z(r)}}function bt(e,t,n){const r=pt(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{Z(r)}}function ki(e,t,n){const r=pt(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{Z(r)}}function Ci(e,t){ki((n,r)=>{e(r)},void 0,t)}function Pe(e,t){return sc(()=>pt(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?Ie(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Z(n)})}function uc(e){return V(()=>ml(oc(e)))}function lc(e,t){return Lt(()=>{const n=pt(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(vi+"\\nParameter name: source");return ec(()=>{},n)}catch(r){throw Z(n),r}})}function cc(e,t){return ic(()=>pt(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return Ie(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(vi+"\\nParameter name: source")}else return},n=>{Z(n)})}function dc(e,t){return V(()=>Si(Pe(e,t)))}class Ai{constructor(t,n){this.k=t,this.v=n}}function xn(e,t){return new Ai(e,t)}function le(e){return e.k}function be(e){return e.v}class Y extends Ai{constructor(t,n,r,o,s){super(t,n),this.left=r,this.right=o,this.h=s|0}}function dn(e,t,n,r,o){return new Y(e,t,n,r,o)}function ie(e){return e.left}function ae(e){return e.right}function dt(e){return e.h}function Ei(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=v(r);if(o instanceof Y){const s=o;e=Ei(n+1,ie(s)),t=ae(s);continue e}else return n+1|0}else return n|0}}function fc(e){return Ei(0,e)}function Ee(e,t,n,r){let o,s,i;const a=e;if(a!=null){const u=v(a);i=u instanceof Y?(o=u,dt(o)):1}else i=0;let c;const l=r;if(l!=null){const u=v(l);c=u instanceof Y?(s=u,dt(s)):1}else c=0;const f=(i<c?c:i)|0;return f===0?xn(t,n):dn(t,n,e,r,f+1)}function Mo(e,t,n,r){let o,s,i,a,c,l,f,u,m;const h=e;if(h!=null){const w=v(h);m=w instanceof Y?(o=w,dt(o)):1}else m=0;let p;const g=r;if(g!=null){const w=v(g);p=w instanceof Y?(s=w,dt(s)):1}else p=0;if(p>m+2){const w=v(r);if(w instanceof Y){const y=w;if(i=ie(y),(i!=null?(a=v(i),a instanceof Y?(c=a,dt(c)):1):0)>m+1){const x=v(ie(y));if(x instanceof Y){const b=x;return Ee(Ee(e,t,n,ie(b)),le(b),be(b),Ee(ae(b),le(y),be(y),ae(y)))}else throw new Error("internal error: Map.rebalance")}else return Ee(Ee(e,t,n,ie(y)),le(y),be(y),ae(y))}else throw new Error("internal error: Map.rebalance")}else if(m>p+2){const w=v(e);if(w instanceof Y){const y=w;if(l=ae(y),(l!=null?(f=v(l),f instanceof Y?(u=f,dt(u)):1):0)>p+1){const x=v(ae(y));if(x instanceof Y){const b=x;return Ee(Ee(ie(y),le(y),be(y),ie(b)),le(b),be(b),Ee(ae(b),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ee(ie(y),le(y),be(y),Ee(ae(y),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ee(e,t,n,r)}function Mt(e,t,n,r){if(r!=null){const o=v(r),s=e.Compare(t,le(o))|0;if(o instanceof Y){const i=o;return s<0?Mo(Mt(e,t,n,ie(i)),le(i),be(i),ae(i)):s===0?dn(t,n,ie(i),ae(i),dt(i)):Mo(ie(i),le(i),be(i),Mt(e,t,n,ae(i)))}else return s<0?dn(t,n,void 0,r,2):s===0?xn(t,n):dn(t,n,r,void 0,2)}else return xn(t,n)}function Ni(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=v(s),a=r.Compare(o,le(i))|0;if(a===0)return Ie(be(i));if(i instanceof Y){const c=i;e=r,t=o,n=a<0?ie(c):ae(c);continue e}else return}else return}}function hc(e,t,n){const r=Ni(e,t,n);if(r==null)throw new Error;return v(r)}function mc(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=v(s),a=r.Compare(o,le(i))|0;if(i instanceof Y){const c=i;if(a<0){e=r,t=o,n=ie(c);continue e}else{if(a===0)return!0;e=r,t=o,n=ae(c);continue e}}else return a===0}else return!1}}function Fi(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=v(r);if(o instanceof Y){const s=o;Fi(n,ie(s)),n(le(s),be(s)),e=n,t=ae(s);continue e}else n(le(o),be(o))}break}}function pc(e,t){Fi(e,t)}function _c(e,t,n){let r=n;pc((o,s)=>{ot(t,r,[o,s]),r=r+1|0},e)}function wc(e,t){return Re((n,r)=>Mt(e,r[0],r[1],n),void 0,t)}function gc(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=Mt(r,i[0],i[1],o),n=s;continue e}else return o}}function bc(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=ue(r,t);n=Mt(e,o[0],o[1],n)}return n}function Mi(e,t){if(De(t))return bc(e,t);if(t instanceof de)return wc(e,t);{const n=X(t);try{return gc(e,void 0,n)}finally{Z(n)}}}class yc extends K{constructor(t,n){super(),this.stack=t,this.started=n}}function Ti(e){e:for(;;){const t=e;if(O(t))return se();{const n=T(t),r=A(t);if(r!=null){const o=v(r);if(o instanceof Y){const s=o;e=W([ie(s),xn(le(s),be(s)),ae(s)],n);continue e}else return t}else{e=n;continue e}}}}function To(e){return new yc(Ti(B(e)),!1)}function vc(){throw new Error("enumeration not started")}function xc(){throw new Error("enumeration already finished")}function $o(e){if(e.started){const t=e.stack;if(O(t))return xc();if(A(t)!=null){const n=v(A(t));if(n instanceof Y)throw new Error("Please report error: Map iterator, unexpected stack for current");return[le(n),be(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return vc()}function Sc(e){if(e.started){const t=e.stack;if(O(t))return!1;if(A(t)!=null){if(v(A(t))instanceof Y)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Ti(T(t)),!O(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!O(e.stack)}function Bo(e){let t=To(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return $o(t)},"System.Collections.IEnumerator.get_Current"(){return $o(t)},"System.Collections.IEnumerator.MoveNext"(){return Sc(t)},"System.Collections.IEnumerator.Reset"(){t=To(e)},Dispose(){}}}class Sn{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Ec(this)|0}Equals(t){const n=this;if(t instanceof Sn){const r=t,o=X(n);try{const s=X(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 Be(c[0],l[0])&&Be(c[1],l[1])?i():!1}else return!0;else return!1};return i()}finally{Z(s)}}finally{Z(o)}}else return!1}toString(){return"map ["+G("; ",Pe(n=>Zu("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Bo(this.tree)}[Symbol.iterator](){return En(X(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Bo(this.tree)}CompareTo(t){const n=this;if(t instanceof Sn)return ac((o,s)=>{const i=n.comparer.Compare(o[0],s[0])|0;return(i!==0?i:Se(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 Oo(n,t[0])&&Be(Io(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){_c(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return jn(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return jn(this)|0}get size(){return jn(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Pe(n=>[n[0],n[1]],this)}get(t){return Io(this,t)}has(t){return Oo(this,t)}keys(){return Pe(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Pe(n=>n[1],this)}forEach(t,n){const r=this;Ci(o=>{t(o[1],o[0],r)},r)}}function On(e,t){return new Sn(e,t)}function kc(e){return On(e,void 0)}function Cc(e,t,n){return On(e.comparer,Mt(e.comparer,t,n,e.tree))}function Io(e,t){return hc(e.comparer,t,e.tree)}function jn(e){return fc(e.tree)}function Oo(e,t){return mc(e.comparer,t,e.tree)}function Ac(e,t){return Ni(e.comparer,t,e.tree)}function Ec(e){const t=(o,s)=>(o<<1)+s+631;let n=0;const r=X(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Ke(o[0]))|0,n=t(n,Ke(o[1]))|0}}finally{Z(r)}return n|0}function Nc(e,t,n){return Cc(n,e,t)}function Fc(e,t){return Ac(t,e)}function Mc(e,t){return On(t,Mi(t,e))}function Tc(e,t){return On(t,Mi(t,e))}function $i(e){return kc(e)}function Bi(e){return new Hl("Authorization",e)}const lt=new Bn("",new Pr(0,[]),se(),!1,void 0,void 0,void 0,new jl(0,[]));new yi(0,"","","",$i({Compare:Nr}),new yt(0,[""]));function Lo(e,t){return Ju(t)?new Array(0):Yu(t,[e],void 0,0)}function $c(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 Ii(e){return new Bn(e,lt.method,lt.headers,lt.withCredentials,lt.overridenMimeType,lt.overridenResponseType,lt.timeout,lt.content)}function Oi(e,t){return new Bn(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Li(e,t){return new Bn(t.url,t.method,Or(t.headers,B(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Vi(e){return Pl(t=>{const n=new XMLHttpRequest;n.open($c(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 yt(0,[n.responseText]):h==="text"?new yt(0,[n.responseText]):h==="arraybuffer"?new yt(2,[n.response]):h==="blob"?new yt(1,[n.response]):new yt(3,[n.response])),p=Tc(_l(g=>{const w=k(Lo(":",g));if(!O(w))return[A(w).toLocaleLowerCase(),G(":",T(w)).trim()]},Lo(`\r
4
- `,n.getAllResponseHeaders())),{Compare:Nr}),new yi(f,c,u,n.responseURL,p,m)))};const r=X(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{Z(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(Ie(a.fields[0]));break}case 3:{n.send(Ie(a.fields[0]));break}case 2:{n.send(Ie(a.fields[0]));break}default:n.send()}})}function Bc(e){return new d(0,[e])}function Pi(e){return new d(1,[e])}class d extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function Ye(e,t){return t.tag===0?Bc(e(t.fields[0])):Pi(t.fields[0])}function Ic(e,t){return t.tag===0?e(t.fields[0]):Pi(t.fields[0])}class S extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Rr extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Vo(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Oc(e,t){switch(e.tag){case 2:return Mr(Vo(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Vo(t)}}const Lc=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Po=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Vc=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Pc(e){function t(r){return r.replace(Po,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Lc.test(n))return Xu(n,"{","}","(",")");if(Po.test(n))return t(n);if(Vc.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 Dc(e,t){try{return t.contents=Pc(e),!0}catch{return!1}}var sr;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(sr||(sr={}));function Rc(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function Do(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 Uc(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 zc(e,t){if(t&sr.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 Hc(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||zc(s,t),!Uc(n).test(i))return Rc(o,n)}return null}function jc(e,t,n,r,o){const s=Hc(e,t,o);if(s!=null){let i=Number.parseInt(s.sign+s.digits,s.radix);if(!Number.isNaN(i)){const[a,c]=Do(!0,r);!n&&s.radix!==10&&i>=a&&i<=c&&(i=i<<32-r>>32-r);const[l,f]=Do(n,r);if(i>=l&&i<=f)return i}}throw new Error(`The input string ${e} was not in a correct format.`)}function Vt(e,t,n,r,o){try{return o.contents=jc(e,t,n,r),!0}catch{return!1}}function Di(e,t){Gc(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Gc(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 Wc(){return Di(-621355968e5,0)}function qc(e){const[t,n]=ri(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return Di(t.getTime(),r)}function Zc(e,t){try{return t.contents=qc(e),!0}catch{return!1}}function Ro(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Jc(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 Jc(e){return Number(BigInt(e)/10000n)}function Kc(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 Ro(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*Ro(o,c,l,i,s)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Yc(e,t){try{return t.contents=Kc(e),!0}catch{return!1}}class Ri{constructor(t){this.k=t}}function _e(e){return new Ri(e)}function N(e){return e.k}class L extends Ri{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 R(e){return e.left}function P(e){return e.right}function xt(e){return e.h}function Ui(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=v(n);if(o instanceof L){const s=o;e=R(s),t=Ui(P(s),r+1);continue e}else return r+1|0}else return r|0}}function Xc(e){return Ui(e,0)}function Ne(e,t,n){let r,o,s;const i=e;if(i!=null){const f=v(i);s=f instanceof L?(r=f,xt(r)):1}else s=0;let a;const c=n;if(c!=null){const f=v(c);a=f instanceof L?(o=f,xt(o)):1}else a=0;const l=(s<a?a:s)|0;return l===0?_e(t):we(t,e,n,l+1)}function Uo(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,xt(r)):1}else u=0;let h;const p=n;if(p!=null){const g=v(p);h=g instanceof L?(o=g,xt(o)):1}else h=0;if(h>u+2){const g=v(n);if(g instanceof L){const w=g;if(s=R(w),(s!=null?(i=v(s),i instanceof L?(a=i,xt(a)):1):0)>u+1){const y=v(R(w));if(y instanceof L){const x=y;return Ne(Ne(e,t,R(x)),N(x),Ne(P(x),N(w),P(w)))}else throw new Error("internal error: Set.rebalance")}else return Ne(Ne(e,t,R(w)),N(w),P(w))}else throw new Error("internal error: Set.rebalance")}else if(u>h+2){const g=v(e);if(g instanceof L){const w=g;if(c=P(w),(c!=null?(l=v(c),l instanceof L?(f=l,xt(f)):1):0)>h+1){const y=v(P(w));if(y instanceof L){const x=y;return Ne(Ne(R(w),N(w),R(x)),N(x),Ne(P(x),t,n))}else throw new Error("internal error: Set.rebalance")}else return Ne(R(w),N(w),Ne(P(w),t,n))}else throw new Error("internal error: Set.rebalance")}else return Ne(e,t,n)}function Tt(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?Uo(Tt(e,t,R(s)),N(s),P(s)):o===0?n:Uo(R(s),N(s),Tt(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 _e(t)}function zi(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=R(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 Hi(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=v(r);if(o instanceof L){const s=o;Hi(n,R(s)),n(N(s)),e=n,t=P(s);continue e}else n(N(o))}break}}class Qc extends K{constructor(t,n){super(),this.stack=t,this.started=n}}function ji(e){e:for(;;){const t=e;if(O(t))return se();{const n=A(t),r=T(t);if(n!=null){const o=v(n);if(o instanceof L){const s=o;e=W([R(s),_e(N(s)),P(s)],r);continue e}else return t}else{e=r;continue e}}}}function zo(e){return new Qc(ji(B(e)),!1)}function ed(){throw new Error("Enumeration not started")}function td(){throw new Error("Enumeration already started")}function Ho(e){if(e.started){const t=e.stack;if(O(t))return td();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 ed()}function nd(e){if(e.started){const t=e.stack;if(O(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=ji(T(t)),!O(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!O(e.stack)}function jo(e){let t=zo(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Ho(t)},"System.Collections.IEnumerator.get_Current"(){return Ho(t)},"System.Collections.IEnumerator.MoveNext"(){return nd(t)},"System.Collections.IEnumerator.Reset"(){t=zo(e)},Dispose(){}}}function rd(e,t,n){e:for(;;){const r=e,o=t,s=n;if(O(o))return O(s)?0:-1;if(O(s))return 1;if(A(s)!=null)if(A(o)!=null){const i=v(A(o)),a=v(A(s));if(i instanceof L){const c=i;if(R(c)==null)if(a instanceof L){const l=a;if(R(l)==null){const f=r.Compare(N(c),N(l))|0;if(f!==0)return f|0;e=r,t=ge(P(c),T(o)),n=ge(P(l),T(s));continue e}else{let f,u,m,h,p;switch(O(o)?O(s)?f=2:A(s)!=null?(f=1,h=T(s),p=v(A(s))):f=2:A(o)!=null?(f=0,u=T(o),m=v(A(o))):O(s)?f=2:A(s)!=null?(f=1,h=T(s),p=v(A(s))):f=2,f){case 0:if(m instanceof L){const g=m;e=r,t=W([R(g),we(N(g),void 0,P(g),0)],u),n=s;continue e}else{e=r,t=W([void 0,_e(N(m))],u),n=s;continue e}case 1:if(p instanceof L){const g=p;e=r,t=o,n=W([R(g),we(N(g),void 0,P(g),0)],h);continue e}else{e=r,t=o,n=W([void 0,_e(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=ge(P(c),T(o)),n=ge(void 0,T(s));continue e}else{let l,f,u,m,h;switch(O(o)?O(s)?l=2:A(s)!=null?(l=1,m=T(s),h=v(A(s))):l=2:A(o)!=null?(l=0,f=T(o),u=v(A(o))):O(s)?l=2:A(s)!=null?(l=1,m=T(s),h=v(A(s))):l=2,l){case 0:if(u instanceof L){const p=u;e=r,t=W([R(p),we(N(p),void 0,P(p),0)],f),n=s;continue e}else{e=r,t=W([void 0,_e(N(u))],f),n=s;continue e}case 1:if(h instanceof L){const p=h;e=r,t=o,n=W([R(p),we(N(p),void 0,P(p),0)],m);continue e}else{e=r,t=o,n=W([void 0,_e(N(h))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof L){const c=a;if(R(c)==null){const l=r.Compare(N(i),N(c))|0;if(l!==0)return l|0;e=r,t=ge(void 0,T(o)),n=ge(P(c),T(s));continue e}else{let l,f,u,m,h;switch(O(o)?O(s)?l=2:A(s)!=null?(l=1,m=T(s),h=v(A(s))):l=2:A(o)!=null?(l=0,f=T(o),u=v(A(o))):O(s)?l=2:A(s)!=null?(l=1,m=T(s),h=v(A(s))):l=2,l){case 0:if(u instanceof L){const p=u;e=r,t=W([R(p),we(N(p),void 0,P(p),0)],f),n=s;continue e}else{e=r,t=W([void 0,_e(N(u))],f),n=s;continue e}case 1:if(h instanceof L){const p=h;e=r,t=o,n=W([R(p),we(N(p),void 0,P(p),0)],m);continue e}else{e=r,t=o,n=W([void 0,_e(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=T(o),n=T(s);continue e}}else{v(A(s));let i,a,c,l,f;switch(O(o)?O(s)?i=2:A(s)!=null?(i=1,l=T(s),f=v(A(s))):i=2:A(o)!=null?(i=0,a=T(o),c=v(A(o))):O(s)?i=2:A(s)!=null?(i=1,l=T(s),f=v(A(s))):i=2,i){case 0:if(c instanceof L){const u=c;e=r,t=W([R(u),we(N(u),void 0,P(u),0)],a),n=s;continue e}else{e=r,t=W([void 0,_e(N(c))],a),n=s;continue e}case 1:if(f instanceof L){const u=f;e=r,t=o,n=W([R(u),we(N(u),void 0,P(u),0)],l);continue e}else{e=r,t=o,n=W([void 0,_e(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(O(o)?O(s)?i=2:A(s)!=null?(i=1,l=T(s),f=v(A(s))):i=2:A(o)!=null?(i=0,a=T(o),c=v(A(o))):O(s)?i=2:A(s)!=null?(i=1,l=T(s),f=v(A(s))):i=2,i){case 0:if(c instanceof L){const u=c;e=r,t=W([R(u),we(N(u),void 0,P(u),0)],a),n=s;continue e}else{e=r,t=W([void 0,_e(N(c))],a),n=s;continue e}case 1:if(f instanceof L){const u=f;e=r,t=o,n=W([R(u),we(N(u),void 0,P(u),0)],l);continue e}else{e=r,t=o,n=W([void 0,_e(N(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=T(o),n=T(s);continue e}}}function Go(e,t,n){return t==null?n==null?0:-1:n==null?1:rd(e,B(t),B(n))|0}function od(e,t,n){let r=n;Hi(o=>{ot(t,r,o),r=r+1|0},e)}function sd(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){e=r,t=Tt(r,s["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=s;continue e}else return o}}function id(e,t){return Tn((n,r)=>Tt(e,r,n),void 0,t)}function ad(e,t){return Re((n,r)=>Tt(e,r,n),void 0,t)}function Gi(e,t){if(De(t))return id(e,t);if(t instanceof de)return ad(e,t);{const n=X(t);try{return sd(e,void 0,n)}finally{Z(n)}}}class Ur{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return cd(this)|0}Equals(t){let n;const r=this;return t instanceof Ur&&(n=t,Go(kt(r),Fe(r),Fe(n))===0)}toString(){return"set ["+G("; ",Pe(n=>Oe(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Go(kt(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 zi(kt(n),t,Fe(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){od(Fe(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Gn(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Gn(this)|0}GetEnumerator(){return jo(Fe(this))}[Symbol.iterator](){return En(X(this))}"System.Collections.IEnumerable.GetEnumerator"(){return jo(Fe(this))}get size(){return Gn(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 Wi(this,t)}keys(){return Pe(n=>n,this)}values(){return Pe(n=>n,this)}entries(){return Pe(n=>[n,n],this)}forEach(t,n){const r=this;Ci(o=>{t(o,o,r)},r)}}function Ln(e,t){return new Ur(e,t)}function kt(e){return e.comparer}function Fe(e){return e.tree}function ud(e){return Ln(e,void 0)}function ld(e,t){return Ln(kt(e),Tt(kt(e),t,Fe(e)))}function Gn(e){return Xc(Fe(e))}function Wi(e,t){return zi(kt(e),t,Fe(e))}function cd(e){let t=0;const n=X(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+Ke(r)+631|0}}finally{Z(n)}return Math.abs(t)|0}function ir(e,t){return Wi(t,e)}function dd(e,t){return ld(t,e)}function fd(e){return ud(e)}function hd(e,t){return Ln(t,Gi(t,e))}function md(e,t){return Ln(t,Gi(t,e))}function Dt(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
1
+ var qt,F,ps,ct,to,_s,Zn,cr,Jn,Kn,ws,zt={},gs=[],Ia=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Cn=Array.isArray;function Ge(e,t){for(var n in t)e[n]=t[n];return e}function bs(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function _(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 Rt(e,i,r,o,null)}function Rt(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??++ps,__i:-1,__u:0};return o==null&&F.vnode!=null&&F.vnode(s),s}function ys(){return{current:null}}function xe(e){return e.children}function $e(e,t){this.props=e,this.context=t}function At(e,t){if(t==null)return e.__?At(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"?At(e):null}function vs(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return vs(e)}}function Yn(e){(!e.__d&&(e.__d=!0)&&ct.push(e)&&!fn.__r++||to!==F.debounceRendering)&&((to=F.debounceRendering)||_s)(fn)}function fn(){var e,t,n,r,o,s,i,a;for(ct.sort(Zn);e=ct.shift();)e.__d&&(t=ct.length,r=void 0,s=(o=(n=e).__v).__e,i=[],a=[],n.__P&&((r=Ge({},o)).__v=o.__v+1,F.vnode&&F.vnode(r),dr(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[s]:null,i,s??At(o),!!(32&o.__u),a),r.__v=o.__v,r.__.__k[r.__i]=r,ks(i,r,a),r.__e!=s&&vs(r)),ct.length>t&&ct.sort(Zn));fn.__r=0}function Ss(e,t,n,r,o,s,i,a,c,l,f){var u,m,h,p,g,w=r&&r.__k||gs,y=t.length;for(n.__d=c,Oa(n,t,w),c=n.__d,u=0;u<y;u++)(h=n.__k[u])!=null&&(m=h.__i===-1?zt:w[h.__i]||zt,h.__i=u,dr(e,h,m,o,s,i,a,c,l,f),p=h.__e,h.ref&&m.ref!=h.ref&&(m.ref&&fr(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=xs(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 Oa(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?Rt(null,o,null,null,null):Cn(o)?Rt(xe,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?Rt(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=La(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=At(s)),Cs(s,s))}function xs(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=xs(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=At(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function qe(e,t){return t=t||[],e==null||typeof e=="boolean"||(Cn(e)?e.some(function(n){qe(n,t)}):t.push(e)),t}function La(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 no(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Ia.test(t)?n:n+"px"}function on(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||no(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||no(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=cr,e.addEventListener(t,s?Kn:Jn,s)):e.removeEventListener(t,s?Kn:Jn,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 ro(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=cr++;else if(t.t<n.u)return;return n(F.event?F.event(t):t)}}}function dr(e,t,n,r,o,s,i,a,c,l){var f,u,m,h,p,g,w,y,S,b,U,ne,Ee,at,ut,Qe,ce=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 ce=="function")try{if(y=t.props,S="prototype"in ce&&ce.prototype.render,b=(f=ce.contextType)&&r[f.__c],U=f?b?b.props.value:f.__:r,n.__c?w=(u=t.__c=n.__c).__=u.__E:(S?t.__c=u=new ce(y,U):(t.__c=u=new $e(y,U),u.constructor=ce,u.render=Pa),b&&b.sub(u),u.props=y,u.state||(u.state={}),u.context=U,u.__n=r,m=u.__d=!0,u.__h=[],u._sb=[]),S&&u.__s==null&&(u.__s=u.state),S&&ce.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Ge({},u.__s)),Ge(u.__s,ce.getDerivedStateFromProps(y,u.__s))),h=u.props,p=u.state,u.__v=t,m)S&&ce.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),S&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(S&&ce.getDerivedStateFromProps==null&&y!==h&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(y,U),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(y,u.__s,U)===!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(rn){rn&&(rn.__=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,U),S&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(h,p,g)})}if(u.context=U,u.props=y,u.__P=e,u.__e=!1,Ee=F.__r,at=0,S){for(u.state=u.__s,u.__d=!1,Ee&&Ee(t),f=u.render(u.props,u.state,u.context),ut=0;ut<u._sb.length;ut++)u.__h.push(u._sb[ut]);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&&++at<25);u.state=u.__s,u.getChildContext!=null&&(r=Ge(Ge({},r),u.getChildContext())),S&&!m&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(h,p)),Ss(e,Cn(Qe=f!=null&&f.type===xe&&f.key==null?f.props.children:f)?Qe:[Qe],t,n,r,o,s,i,a,c,l),u.base=t.__e,t.__u&=-161,u.__h.length&&i.push(u),w&&(u.__E=u.__=null)}catch(rn){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(rn,t,n)}else s==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Va(n.__e,t,n,r,o,s,i,c,l);(f=F.diffed)&&f(t)}function ks(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)fr(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 Va(e,t,n,r,o,s,i,a,c){var l,f,u,m,h,p,g,w=n.props,y=t.props,S=t.type;if(S==="svg"?o="http://www.w3.org/2000/svg":S==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),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)w===y||a&&e.data===y||(e.data=y);else{if(s=s&&qt.call(e.childNodes),w=n.props||zt,!a&&s!=null)for(w={},l=0;l<e.attributes.length;l++)w[(h=e.attributes[l]).name]=h.value;for(l in w)if(h=w[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;on(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"||w[l]===h||on(e,l,h,w[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=""),Ss(e,Cn(m)?m:[m],t,n,r,S==="foreignObject"?"http://www.w3.org/1999/xhtml":o,s,i,s?s[0]:n.__k&&At(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!==w[l])&&on(e,l,p,w[l],o),l="checked",g!==void 0&&g!==e[l]&&on(e,l,g,w[l],o))}return e}function fr(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 Cs(e,t,n){var r,o;if(F.unmount&&F.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||fr(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]&&Cs(r[o],t,n||typeof e.type!="function");n||bs(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Pa(e,t,n){return this.constructor(e,n)}function rt(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=[],dr(t,e=(!r&&n||t).__k=_(xe,null,[e]),o||zt,zt,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),ks(s,e,i)}function hr(e,t){rt(e,t,hr)}function mr(e,t,n){var r,o,s,i,a=Ge({},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),Rt(e.type,a,r||e.key,o||e.ref,null)}function As(e,t){var n={__c:t="__cC"+ws++,__: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,Yn(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=gs.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}},ps=0,$e.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Ge({},this.state),typeof e=="function"&&(e=e(Ge({},n),this.props)),e&&Ge(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Yn(this))},$e.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Yn(this))},$e.prototype.render=xe,ct=[],_s=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Zn=function(e,t){return e.__v.__b-t.__v.__b},fn.__r=0,cr=0,Jn=ro(!1),Kn=ro(!0),ws=0;var Ze,D,Rn,oo,Et=0,Es=[],q=F,so=q.__b,io=q.__r,ao=q.diffed,uo=q.__c,lo=q.unmount,co=q.__;function _t(e,t){q.__h&&q.__h(D,e,Et||t),Et=0;var n=D.__H||(D.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Bt(e){return Et=1,An(Ns,e)}function An(e,t,n){var r=_t(Ze++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ns(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 Zt(e,t){var n=_t(Ze++,3);!q.__s&&vr(n.__H,t)&&(n.__=e,n.i=t,D.__H.__h.push(n))}function It(e,t){var n=_t(Ze++,4);!q.__s&&vr(n.__H,t)&&(n.__=e,n.i=t,D.__h.push(n))}function pr(e){return Et=5,Jt(function(){return{current:e}},[])}function _r(e,t,n){Et=6,It(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 Jt(e,t){var n=_t(Ze++,7);return vr(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function wr(e,t){return Et=8,Jt(function(){return e},t)}function gr(e){var t=D.context[e.__c],n=_t(Ze++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(D)),t.props.value):e.__}function br(e,t){q.useDebugValue&&q.useDebugValue(t?t(e):e)}function Da(e){var t=_t(Ze++,10),n=Bt();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 yr(){var e=_t(Ze++,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 Ra(){for(var e;e=Es.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ln),e.__H.__h.forEach(Xn),e.__H.__h=[]}catch(t){e.__H.__h=[],q.__e(t,e.__v)}}q.__b=function(e){D=null,so&&so(e)},q.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),co&&co(e,t)},q.__r=function(e){io&&io(e),Ze=0;var t=(D=e.__c).__H;t&&(Rn===D?(t.__h=[],D.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(ln),t.__h.forEach(Xn),t.__h=[],Ze=0)),Rn=D},q.diffed=function(e){ao&&ao(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Es.push(t)!==1&&oo===q.requestAnimationFrame||((oo=q.requestAnimationFrame)||Ua)(Ra)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Rn=D=null},q.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ln),n.__h=n.__h.filter(function(r){return!r.__||Xn(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],q.__e(r,n.__v)}}),uo&&uo(e,t)},q.unmount=function(e){lo&&lo(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{ln(r)}catch(o){t=o}}),n.__H=void 0,t&&q.__e(t,n.__v))};var fo=typeof requestAnimationFrame=="function";function Ua(e){var t,n=function(){clearTimeout(r),fo&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);fo&&(t=requestAnimationFrame(n))}function ln(e){var t=D,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),D=t}function Xn(e){var t=D;e.__c=e.__(),D=t}function vr(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Ns(e,t){return typeof t=="function"?t(e):t}function Fs(e,t){for(var n in t)e[n]=t[n];return e}function Qn(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 hn(e,t){this.props=e,this.context=t}function Ms(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:Qn(this.props,o)}function r(o){return this.shouldComponentUpdate=n,_(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(hn.prototype=new $e).isPureReactComponent=!0,hn.prototype.shouldComponentUpdate=function(e,t){return Qn(this.props,e)||Qn(this.state,t)};var ho=F.__b;F.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ho&&ho(e)};var za=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ts(e){function t(n){var r=Fs({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=za,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var mo=function(e,t){return e==null?null:qe(qe(e).map(t))},$s={map:mo,forEach:mo,count:function(e){return e?qe(e).length:0},only:function(e){var t=qe(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:qe},Ha=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)}Ha(e,t,n,r)};var po=F.unmount;function Bs(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=Fs({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Bs(r,t,n)})),e}function Is(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Is(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 Ut(){this.__u=0,this.t=null,this.__b=null}function Os(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ls(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 _(n,s)}return o.displayName="Lazy",o.__f=!0,o}function vt(){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),po&&po(e)},(Ut.prototype=new $e).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Os(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]=Is(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)},Ut.prototype.componentWillUnmount=function(){this.t=[]},Ut.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]=Bs(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&_(xe,null,e.fallback);return o&&(o.__u&=-33),[_(xe,null,t.__a?null:e.children),o]};var _o=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 ja(e){return this.getChildContext=function(){return e.context},e.children}function Ga(e){var t=this,n=e.i;t.componentWillUnmount=function(){rt(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)}}),rt(_(ja,{context:t.context},e.__v),t.l)}function Vs(e,t){var n=_(Ga,{__v:e,i:t});return n.containerInfo=t,n}(vt.prototype=new $e).__a=function(e){var t=this,n=Os(t.__v),r=t.o.get(e);return r[0]++,function(o){var s=function(){t.props.revealOrder?(r.push(o),_o(t,e,r)):o()};n?n(s):s()}},vt.prototype.render=function(e){this.u=null,this.o=new Map;var t=qe(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},vt.prototype.componentDidUpdate=vt.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){_o(e,n,t)})};var Ps=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Wa=/^(?: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]/,qa=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Za=/[A-Z0-9]/g,Ja=typeof document<"u",Ka=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ds(e,t,n){return t.__k==null&&(t.textContent=""),rt(e,t),typeof n=="function"&&n(),e?e.__c:null}function Rs(e,t,n){return hr(e,t),typeof n=="function"&&n(),e?e.__c:null}$e.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty($e.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var wo=F.event;function Ya(){}function Xa(){return this.cancelBubble}function Qa(){return this.defaultPrevented}F.event=function(e){return wo&&(e=wo(e)),e.persist=Ya,e.isPropagationStopped=Xa,e.isDefaultPrevented=Qa,e.nativeEvent=e};var Sr,eu={enumerable:!1,configurable:!0,get:function(){return this.class}},go=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||Ja&&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"||Ka(n.type)?c==="onfocus"?i="onfocusin":c==="onblur"?i="onfocusout":qa.test(i)&&(i=c):c=i="oninput":s&&Wa.test(i)?i=i.replace(Za,"-$&").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=qe(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=qe(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",eu)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Ps,go&&go(e)};var bo=F.__r;F.__r=function(e){bo&&bo(e),Sr=e.__c};var yo=F.diffed;F.diffed=function(e){yo&&yo(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),Sr=null};var Us={ReactCurrentDispatcher:{current:{readContext:function(e){return Sr.__n[e.__c].props.value},useCallback:wr,useContext:gr,useDebugValue:br,useDeferredValue:kr,useEffect:Zt,useId:yr,useImperativeHandle:_r,useInsertionEffect:Ar,useLayoutEffect:It,useMemo:Jt,useReducer:An,useRef:pr,useState:Bt,useSyncExternalStore:Er,useTransition:Cr}}},tu="18.3.1";function zs(e){return _.bind(null,e)}function Kt(e){return!!e&&e.$$typeof===Ps}function Hs(e){return Kt(e)&&e.type===xe}function js(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Gs(e){return Kt(e)?mr.apply(null,arguments):e}function Ws(e){return!!e.__k&&(rt(null,e),!0)}function qs(e){return e&&(e.base||e.nodeType===1&&e)||null}var Zs=function(e,t){return e(t)},Js=function(e,t){return e(t)},Ks=xe;function xr(e){e()}function kr(e){return e}function Cr(){return[!1,xr]}var Ar=It,Ys=Kt;function Er(e,t){var n=t(),r=Bt({h:{__:n,v:t}}),o=r[0].h,s=r[1];return It(function(){o.__=n,o.v=t,Un(o)&&s({h:o})},[e,n,t]),Zt(function(){return Un(o)&&s({h:o}),e(function(){Un(o)&&s({h:o})})},[e]),n}function Un(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 Xs={useState:Bt,useId:yr,useReducer:An,useEffect:Zt,useLayoutEffect:It,useInsertionEffect:Ar,useTransition:Cr,useDeferredValue:kr,useSyncExternalStore:Er,startTransition:xr,useRef:pr,useImperativeHandle:_r,useMemo:Jt,useCallback:wr,useContext:gr,useDebugValue:br,version:"18.3.1",Children:$s,render:Ds,hydrate:Rs,unmountComponentAtNode:Ws,createPortal:Vs,createElement:_,createContext:As,createFactory:zs,cloneElement:Gs,createRef:ys,Fragment:xe,isValidElement:Kt,isElement:Ys,isFragment:Hs,isMemo:js,findDOMNode:qs,Component:$e,PureComponent:hn,memo:Ms,forwardRef:Ts,flushSync:Js,unstable_batchedUpdates:Zs,StrictMode:Ks,Suspense:Ut,SuspenseList:vt,lazy:Ls,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Us};const nu=Object.freeze(Object.defineProperty({__proto__:null,Children:$s,Component:$e,Fragment:xe,PureComponent:hn,StrictMode:Ks,Suspense:Ut,SuspenseList:vt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Us,cloneElement:Gs,createContext:As,createElement:_,createFactory:zs,createPortal:Vs,createRef:ys,default:Xs,findDOMNode:qs,flushSync:Js,forwardRef:Ts,hydrate:Rs,isElement:Ys,isFragment:Hs,isMemo:js,isValidElement:Kt,lazy:Ls,memo:Ms,render:Ds,startTransition:xr,unmountComponentAtNode:Ws,unstable_batchedUpdates:Zs,useCallback:wr,useContext:gr,useDebugValue:br,useDeferredValue:kr,useEffect:Zt,useErrorBoundary:Da,useId:yr,useImperativeHandle:_r,useInsertionEffect:Ar,useLayoutEffect:It,useMemo:Jt,useReducer:An,useRef:pr,useState:Bt,useSyncExternalStore:Er,useTransition:Cr,version:tu},Symbol.toStringTag,{value:"Module"})),ru=`*,: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 Re(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function ou(e){return e!=null&&typeof e.GetEnumerator=="function"}function su(e){return e!=null&&typeof e.CompareTo=="function"}function iu(e){return e!=null&&typeof e.Equals=="function"}function au(e){return e!=null&&typeof e.GetHashCode=="function"}function er(e){return e!=null&&typeof e.Dispose=="function"}function Z(e){er(e)&&e.Dispose()}function Je(){return null}function mn(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 uu{constructor(t){this.iter=t,this.current=Je()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function X(e){return ou(e)?e.GetEnumerator():new uu(e[Symbol.iterator]())}function En(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 vo(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function lu(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function ft(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class nt{static id(t){return nt.idMap.has(t)||nt.idMap.set(t,++nt.count),nt.idMap.get(t)}}nt.idMap=new WeakMap;nt.count=0;function Nr(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function He(e){return e*2654435761|0}function cu(e){return Nr(e.toString(32))}function Yt(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 du(e){return e.getTime()}function fu(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Ke(e[r]);return Yt(n)}function Ke(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return He(e);case"bigint":return cu(e);case"string":return Nr(e);default:{if(au(e))return e.GetHashCode();if(Re(e))return fu(e);if(e instanceof Date)return du(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Ke(r));return Yt(n)}else return He(nt.id(e))}}}function tr(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 Qs(e,t){return tr(e,t,Be)}function hu(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]||!Be(e[n[o]],t[r[o]]))return!1;return!0}function Be(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:iu(e)?e.Equals(t):Re(e)?Re(t)&&Qs(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&&hu(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()+vo(e),r=t.getTime()+vo(t)),n===r?0:n<r?-1:1}function Fr(e,t){return e===t?0:e<t?-1:1}function mu(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 ti(e,t){return mu(e,t,ke)}function pu(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=ke(e[i],t[i]),s!==0)return s}return 0}function ke(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:su(e)?e.CompareTo(t):Re(e)?Re(t)?ti(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?pu(e,t):-1}function E(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function _u(e){Re(e)?e.splice(0):e.clear()}const Nn=new WeakMap;function J(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Nn.set(t,e),t}function $(e){return Nn.get(e)??(t=>n=>e(t,n))}function nr(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return Nn.set(t,e),t}function zn(e){return Nn.get(e)??(t=>n=>r=>e(t,n,r))}function wu(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 wu(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 gu(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Oe(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>Oe(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class M{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return gu(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>Ke(n));return t.splice(0,0,He(this.tag)),Yt(t)}Equals(t){return this===t?!0:mn(this,t)&&this.tag===t.tag?Qs(this.fields,t.fields):!1}CompareTo(t){return this===t?0:mn(this,t)?this.tag===t.tag?ti(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function bu(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function yu(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Oe(n)).join(`
3
+ `)+" }"}function vu(e){const t=Object.values(e).map(n=>Ke(n));return Yt(t)}function Su(e,t){if(e===t)return!0;if(mn(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!Be(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function xu(e,t){if(e===t)return 0;if(mn(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=ke(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class K{toJSON(){return bu(this)}toString(){return yu(this)}GetHashCode(){return vu(this)}Equals(t){return Su(this,t)}CompareTo(t){return xu(this,t)}}class Le{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 ku{constructor(t){this.message=t}}function Cu(e){return e instanceof ku||e instanceof Error}function Au(e){return e instanceof Promise}function pn(e){return Cu(e)||Au(e)?e:new Error(String(e))}const Eu=Oe(ru),C=Xs,Ot=Symbol("numeric");function ni(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[Ot])}function Nu(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function rr(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Ot]().multiply(t)}function cn(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Ot]().toFixed(t)}function _n(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Ot]().toPrecision(t)}function wn(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Ot]().toExponential(t)}function gn(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Ot]().toHex()}const Fu=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Mu=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Tu=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],$u=["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 So(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Bu(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 Mr(e,t,n){let r=0,o=0,s="";const i=n?Xt(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+=ko(i);break;case 2:s+=z(ko(i),2);break;case 3:s+=Fu[Eo(i)];break;case 4:s+=Mu[Eo(i)];break}break;case"f":if(o=me(t,r,"f"),r+=o,o<=3){const w=10**(3-o);s+=z(Math.floor(an(i)/w),o)}else o<=7&&(s+=(""+an(i)).padEnd(o,"0"));break;case"F":if(o=me(t,r,"F"),r+=o,o<=3){const w=10**(3-o),y=Math.floor(an(i)/w);y!=0&&(s+=z(y,o))}else if(o<=7){const w=an(i);w!=0&&(s+=z(w,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+=sn(i)%12;break;case 2:s+=z(sn(i)%12,2);break}break;case"H":switch(o=me(t,r,"H"),r+=o,o){case 1:s+=sn(i);break;case 2:s+=z(sn(i),2);break}break;case"K":switch(o=me(t,r,"K"),r+=o,o){case 1:switch(xo(i)){case 1:s+="Z";break;case 2:s+=xt(i.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=me(t,r,"m"),r+=o,o){case 1:s+=Co(i);break;case 2:s+=z(Co(i),2);break}break;case"M":switch(o=me(t,r,"M"),r+=o,o){case 1:s+=un(i);break;case 2:s+=z(un(i),2);break;case 3:s+=Tu[un(i)-1];break;case 4:s+=$u[un(i)-1];break}break;case"s":switch(o=me(t,r,"s"),r+=o,o){case 1:s+=Ao(i);break;case 2:s+=z(Ao(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+=z(i.getFullYear()%100,2);break;case 3:s+=z(i.getFullYear(),3);break;case 4:s+=z(i.getFullYear(),4);break;case 5:s+=z(i.getFullYear(),5);break}break;case"z":o=me(t,r,"z"),r+=o;let c="";switch(xo(i)){case 1:c="+00:00";break;case 2:c=xt(i.getTimezoneOffset()*-6e4);break;case 0:c=xt(zu(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}${z(f,2)}`;break;default:s+=`${l}${z(f,2)}:${z(u,2)}`;break}break;case":":s+=":",r++;break;case"/":s+="/",r++;break;case"'":case'"':const[m,h]=Bu(t,r);s+=m,r+=h;break;case"%":const p=So(t,r);if(p>=0&&p!==37)r+=2,s+=Mr(i,String.fromCharCode(p),n);else throw new Error("Invalid format string");break;case"\\":const g=So(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 xo(e){return e.kind||0}function xt(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 bn(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 Iu(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?xt(e.getTimezoneOffset()*-6e4):"")}}function Ou(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+xt(t)}function Lu(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," ")+xt(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return bn(n,"first");case"T":case"t":return bn(n,"second");case"O":case"o":return Ou(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Mr(n,t,!0)}function Vu(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?bn(e,"first"):e.toLocaleDateString();case"T":case"t":return n?bn(e,"second"):e.toLocaleTimeString();case"O":case"o":return Iu(e,n);default:throw new Error("Unrecognized Date print format")}else return Mr(e,t,n)}function ri(e,t,n){return e.offset!=null?Lu(e,t):Vu(e,t)}function Xt(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Pu(){return Xt(-621355968e5,1)}function oi(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 Du(e,t=!1){const[n,r]=oi(e),o=r!=null?t&&r==="Z"?1:2:0;return Xt(n.getTime(),o)}function Ru(e,t){try{return t.contents=Du(e),!0}catch{return!1}}function Uu(e){return e.kind===1?e:Xt(e.getTime(),1)}function zu(e){return e.kind===2?e:Xt(e.getTime(),2)}function ko(e){return e.kind===1?e.getUTCDate():e.getDate()}function sn(e){return e.kind===1?e.getUTCHours():e.getHours()}function an(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function Co(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function un(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function Ao(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Eo(e){return e.kind===1?e.getUTCDay():e.getDay()}function si(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 ii(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Hu(e,t,n=0){return e.lastIndex=n,e.test(t)}function No(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 Tr(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=si(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=No(e,a),l=No.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 Pt=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,ju=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function ai(e,t){return Nu(e,t)<0}function Nt(e){return{input:e,cont:qu(e)}}function ui(e,t){return typeof t=="string"?e(t):t.cont(e)}function Ht(e){return ui(t=>t,e)}function Gu(e){return ui(t=>{throw new Error(t)},e)}function Wu(e,t,n,r,o){let s="";if(t=t||"",o=o||"",ni(e))switch(o.toLowerCase()!=="x"&&(ai(e,0)?(e=rr(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=cn(e,r);break;case"g":case"G":e=r!=null?_n(e,r):_n(e);break;case"e":case"E":e=r!=null?wn(e,r):wn(e);break;case"x":e=gn(e);break;case"X":e=gn(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=ri(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=jt(e,n-s.length,c,a),e=s+e):e=jt(s+e,n,c,a)}return e}function li(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+=Wu(l,f,p,m,h),a.splice(0,1),c.splice(0,1)}return c.length===0?(i+=a[0],e(i)):li(e,a,c,i,o)}}function qu(e){return t=>{Pt.lastIndex=0;const n=[],r=[];let o=0,s=Pt.exec(e);for(;s;){const i=s.index+(s[1]||"").length;n.push(e.substring(o,i).replace(/%%/g,"%")),r.push(s),o=Pt.lastIndex,Pt.lastIndex-=1,s=Pt.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),li(t,n,r))}}function Zu(e,...t){let n;return n=e,n.replace(ju,(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(ni(l))switch(a=a==null?null:parseInt(a,10),i){case"f":case"F":a=a??2,l=cn(l,a);break;case"g":case"G":l=a!=null?_n(l,a):_n(l);break;case"e":case"E":l=a!=null?wn(l,a):wn(l);break;case"p":case"P":a=a??2,l=cn(rr(l,100),a)+" %";break;case"d":case"D":l=a!=null?Hn(String(l),a,"0"):String(l);break;case"x":case"X":l=a!=null?Hn(gn(l),a,"0"):gn(l),i==="X"&&(l=l.toUpperCase());break;default:if(c){let f="";l=c.replace(/([0#,]+)(\.[0#]+)?/,(u,m,h)=>{ai(l,0)&&(l=rr(l,-1),f="-"),h=h==null?"":h.substring(1),l=cn(l,Math.max(h.length,0));let[p,g]=l.split(".");g||(g="");const w=m.replace(/,/g,"").replace(/^#+/,"").length;p=Hn(p,w,"0");const y=h.replace(/#+$/,"").length;if(y>g.length?g=Ku(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 U=S>0?p.substr(0,S)+(b>0?",":""):"";for(let ne=0;ne<b;ne++)U+=p.substr(S+ne*3,3)+(ne<b-1?",":"");p=U}return g.length>0?p+"."+g:p}),l=f+l}}else l instanceof Date?l=ri(l,c||i):l=Oe(l);return s=parseInt((s||" ").substring(1),10),isNaN(s)||(l=jt(String(l),Math.abs(s)," ",s<0)),l})}function Ju(e){return typeof e!="string"||e.length===0}function ci(e){return typeof e!="string"||/^\s*$/.test(e)}function G(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function jt(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 Hn(e,t,n){return jt(e,t,n)}function Ku(e,t,n){return jt(e,t,n,!0)}function Yu(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(ii),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 Xu(e,...t){if(t.length===0)return e.trim();const n="["+ii(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class ht{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Ke(this.value)}Equals(t){return t==null?!1:Be(this.value,t instanceof ht?t.value:t)}CompareTo(t){return t==null?1:ke(this.value,t instanceof ht?t.value:t)}}function v(e){if(e==null)throw new Error("Option has no value");return e instanceof ht?e.value:e}function di(e){return e instanceof ht?e.value:e}function Ie(e){return e==null||e instanceof ht?new ht(e):e}function $r(e,t){return e!=null?v(e):t}class st{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 fi(this)}Equals(t){return or(this,t)}}function je(e){return e.generics!=null?e.generics:[]}function fi(e){const t=Nr(e.fullname),n=je(e).map(fi);return Yt([t,...n])}function or(e,t){return e.fullname===""?t.fullname===""&&tr(yn(e),yn(t),([n,r],[o,s])=>n===o&&or(r,s)):e.fullname===t.fullname&&tr(je(e),je(t),or)}function Qt(e,t,n,r){return new st(e,t,n,void 0,r)}function Gt(e){return new st("Microsoft.FSharp.Core.FSharpOption`1",[e])}const Qu=new st("System.Object"),oe=new st("System.String");function Br(e){if(Array.isArray(e))return e[0];if(e instanceof st){const t=Fn(e);if(t!=null)return Br(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=Fn(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 el(e){return Fn(e)!=null}function Fn(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function tl(e){return e.generics!=null&&e.generics.length>0}function hi(e){return e.enumCases!=null&&e.enumCases.length>0}function nl(e){return e.generics==null?e:new st(e.fullname,e.generics.map(()=>Qu))}function rl(e){var t;return(t=e.generics)==null?void 0:t[0]}function wt(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 ol(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 gt(e,t){const n=parseInt(t,10);return ol(e,isNaN(n)?t:n)[1]}function sl(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function yn(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function il(e){if(mi(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function al(e){return e instanceof st?e.cases!=null:e instanceof M}function ul(e){return e instanceof st?e.fields!=null:e instanceof K}function mi(e){return e.fullname.startsWith("System.Tuple")}function ll(e){return e.fields==null?[]:e.fields}function cl(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 dl(e,t){const n=yn(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 fl(e,t){return e}const pi="Collection was empty.";function _i(e,t){return new Array(t)}function Fo(e,t){return e>t?e:t}function Ir(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function Mn(e,t,n){const r=t.length|0,o=_i(n,r);for(let s=0;s<=r-1;s++)ot(o,s,e(ue(s,t)));return o}function hl(e,t){const n=_i(t,1);return ot(n,0,e),n}function ml(e){return e.slice().reverse()}function pl(e,t){return t.find(e)}function _l(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const s=e(ue(o,t));if(s!=null){const i=v(s);r.push(i)}}return Be(n,Je())?r:Mn(o=>o,r,n)}function Tn(e,t,n){const r=e;return n.reduce(r,t)}function ue(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 ot(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 wi(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class de extends K{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+G("; ",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(Be(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)+Ke(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=ke(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 gl(this)}[Symbol.iterator](){return En(X(this))}"System.Collections.IEnumerable.GetEnumerator"(){return X(this)}}class wl{constructor(t){this.xs=t,this.it=this.xs,this.current=Je()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=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=Je()}Dispose(){}}function gl(e){return new wl(e)}function ee(){return new de(Je(),void 0)}function en(e,t){return new de(e,t)}function mt(e){return e.tail==null}function gi(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 Ft(e){if(e.tail!=null)return e.head;throw new Error(pi+"\\nParameter name: list")}function fe(e){const t=e.tail;if(t!=null)return v(t);throw new Error(pi+"\\nParameter name: list")}function se(){return ee()}function ge(e,t){return en(e,t)}function B(e){return en(e,ee())}function O(e){return mt(e)}function Mo(e){return gi(e)}function A(e){return Ft(e)}function T(e){return fe(e)}function tn(e){const t=gi(e)|0,n=Ir(new Array(t),0,t,null);return((o,s)=>{e:for(;;){const i=o,a=s;if(!mt(a)){ot(n,i,Ft(a)),o=i+1,s=fe(a);continue e}break}})(0,e),n}function Ue(e,t,n){let r=t,o=n;for(;!mt(o);)r=e(r,A(o)),o=fe(o);return r}function Or(e){return Ue((t,n)=>en(n,t),ee(),e)}function bl(e,t,n){return wi(e,tn(t),n)}function yl(e,t,n){return((o,s,i)=>{e:for(;;){const a=o,c=s,l=i;if(mt(l))return c;o=a+1,s=e(a,c,Ft(l)),i=fe(l);continue e}})(0,t,n)}function vl(e,t,n,r){let o=t,s=n,i=r;for(;!mt(s)&&!mt(i);)o=e(o,Ft(s),Ft(i)),s=fe(s),i=fe(i);return o}function vn(e,t){Ue((n,r)=>{e(r)},void 0,t)}function W(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=en(ue(r,e),n);return n}function k(e){return W(e,ee())}function Sl(e){let t,n;if(Re(e))return k(e);if(e instanceof de)return e;{const r=ee();let o=r;const s=X(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();){const c=s["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new de(c,void 0),t.tail=n,n)}}finally{Z(s)}const i=o,a=ee();return i.tail=a,fe(r)}}function Lr(e,t){return Ue((n,r)=>en(r,n),t,Or(e))}function xl(e,t){const n=ee(),r=yl((s,i,a)=>{const c=new de(e(s,a),void 0);return i.tail=c,c},n,t),o=ee();return r.tail=o,fe(n)}function Vr(e,t){const n=ee(),r=Ue((s,i)=>{const a=new de(e(i),void 0);return s.tail=a,a},n,t),o=ee();return r.tail=o,fe(n)}function kl(e,t){return(r=>{e:for(;;){const o=r;if(mt(o))return;{const s=e(Ft(o));if(s==null){r=fe(o);continue e}else return s}}})(t)}function Cl(e,t){const n=ee(),r=Ue((s,i)=>{if(e(i)){const a=new de(i,void 0);return s.tail=a,a}else return s},n,t),o=ee();return r.tail=o,fe(n)}function Al(e,t){const n=ee(),r=ee(),o=n,s=Ue((c,l)=>{let f,u;const m=c[0],h=c[1];return e(l)?[(f=new de(l,void 0),m.tail=f,f),h]:[m,(u=new de(l,void 0),h.tail=u,u)]},[o,r],t),i=ee();s[0].tail=i;const a=ee();return s[1].tail=a,[fe(o),fe(r)]}function El(e,t){const n=ee(),r=Ue((s,i)=>{const a=e(i);if(a==null)return s;{const c=new de(v(a),void 0);return s.tail=c,c}},n,t),o=ee();return r.tail=o,fe(n)}function bi(e,t){return Ue((n,r)=>n&&e(r),!0,t)}class Nl{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 $n extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,$n.prototype)}}class Pr{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Pr.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function We(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new $n);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(pn(n))}});else try{e(t)}catch(n){t.onError(pn(n))}}}function Fl(e,t){return We(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(pn(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Ml(e){return We(t=>t.onSuccess(e))}class Tl{Bind(t,n){return Fl(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return We(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 Ml(t)}ReturnFrom(t){return t}TryFinally(t,n){return We(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 We(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(s){r.onError(pn(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 We(t=>t.onSuccess(void 0))}}const Q=new Tl;function $l(e){return new yi(0,[e])}function Bl(e){return new yi(1,[e])}class yi extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function Il(e){return $l(e)}function Ol(e){return Bl(e)}function jn(e){}const Ll=new Nl;function Vl(e){return We(t=>{e({onSuccess:n=>t.onSuccess(Il(n)),onError:n=>t.onSuccess(Ol(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Pl(e){return We(t=>e([t.onSuccess,t.onError,t.onCancel]))}function Dl(e){return We(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new $n)})})}function Rl(e,t){return zl(e,t)}function Ul(e,t){return Rl(e,t)}function zl(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const s=new Pr;e({onSuccess:t||jn,onError:jn,onCancel:jn,cancelToken:o||Ll,trampoline:s})}class Dr extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Hl extends M{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class jl extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Bn extends K{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 yt extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class vi extends K{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 Gl(e){throw new Error(e)}const Wl="Enumeration already finished.",ql="Enumeration has not started. Call MoveNext.",Si="The input sequence has an insufficient number of elements.",Zl="Reset is not supported on this enumerator.";function Jl(){throw new Error(Zl)}function Rr(){throw new Error(ql)}function sr(){throw new Error(Wl)}class Kl{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=X(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{Z(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return En(X(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Yl(e){return new Kl(e)}class Xl{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"(){Jl()}Dispose(){this.dispose()}}function In(e,t,n){return new Xl(e,t,n)}function Ql(e){let t,n,r=!1,o=!1,s;const i=()=>{if(o=!0,n!=null){const a=v(n);try{Z(a)}finally{n=void 0}}if(t!=null){const a=v(t);try{Z(a)}finally{t=void 0}}};return In(()=>(r?o&&sr():Rr(),s!=null?v(s):sr()),()=>{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=Ie(u["System.Collections.Generic.IEnumerator`1.get_Current"]()),c=!0;else try{Z(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"](),X(a)):(i(),c=!1)}else t=X(e)}return v(c)}},()=>{o||i()})}function ec(e,t){return In(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{Z(t)}finally{}})}function xi(e,t,n){let r=!1,o,s=Ie(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 In(()=>(r||Rr(),o!=null?v(o):sr()),()=>{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 tc(e,t){let n,r=t;return In(()=>{if(n!=null){const o=v(n)[0];return v(n)[1],o}else return Rr()},()=>(n=e(r),n!=null?(v(n)[0],r=v(n)[1],!0):!1),()=>{})}function nc(e,t){t==null&&Gl(e)}function Lt(e){return Yl(e)}function pt(e){return nc("source",e),X(e)}function V(e){return Lt(()=>X(e()))}function ki(e){return Lt(()=>Ql(e))}function rc(e,t){return Lt(()=>tc(e,t))}function ze(){return V(()=>new Array(0))}function j(e){return V(()=>hl(e))}function oc(e){return e instanceof de?tn(e):Array.from(e)}function Ce(e){return Re(e)?k(e):e instanceof de?e:Sl(e)}function sc(e,t,n){return Lt(()=>xi(e,t,n))}function ic(e,t,n){return Lt(()=>{let r=-1;return xi(e,o=>(r=r+1|0,t(r,o)),n)})}function he(e,t){return ki([e,t])}function ac(e,t,n){const r=pt(t);try{const o=pt(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{Z(o)}}finally{Z(r)}}function bt(e,t,n){const r=pt(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{Z(r)}}function Ci(e,t,n){const r=pt(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{Z(r)}}function Ai(e,t){Ci((n,r)=>{e(r)},void 0,t)}function Pe(e,t){return sc(()=>pt(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?Ie(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Z(n)})}function uc(e){return V(()=>ml(oc(e)))}function lc(e,t){return Lt(()=>{const n=pt(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Si+"\\nParameter name: source");return ec(()=>{},n)}catch(r){throw Z(n),r}})}function cc(e,t){return ic(()=>pt(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return Ie(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Si+"\\nParameter name: source")}else return},n=>{Z(n)})}function dc(e,t){return V(()=>ki(Pe(e,t)))}class Ei{constructor(t,n){this.k=t,this.v=n}}function Sn(e,t){return new Ei(e,t)}function le(e){return e.k}function be(e){return e.v}class Y extends Ei{constructor(t,n,r,o,s){super(t,n),this.left=r,this.right=o,this.h=s|0}}function dn(e,t,n,r,o){return new Y(e,t,n,r,o)}function ie(e){return e.left}function ae(e){return e.right}function dt(e){return e.h}function Ni(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=v(r);if(o instanceof Y){const s=o;e=Ni(n+1,ie(s)),t=ae(s);continue e}else return n+1|0}else return n|0}}function fc(e){return Ni(0,e)}function Ne(e,t,n,r){let o,s,i;const a=e;if(a!=null){const u=v(a);i=u instanceof Y?(o=u,dt(o)):1}else i=0;let c;const l=r;if(l!=null){const u=v(l);c=u instanceof Y?(s=u,dt(s)):1}else c=0;const f=(i<c?c:i)|0;return f===0?Sn(t,n):dn(t,n,e,r,f+1)}function To(e,t,n,r){let o,s,i,a,c,l,f,u,m;const h=e;if(h!=null){const w=v(h);m=w instanceof Y?(o=w,dt(o)):1}else m=0;let p;const g=r;if(g!=null){const w=v(g);p=w instanceof Y?(s=w,dt(s)):1}else p=0;if(p>m+2){const w=v(r);if(w instanceof Y){const y=w;if(i=ie(y),(i!=null?(a=v(i),a instanceof Y?(c=a,dt(c)):1):0)>m+1){const S=v(ie(y));if(S instanceof Y){const b=S;return Ne(Ne(e,t,n,ie(b)),le(b),be(b),Ne(ae(b),le(y),be(y),ae(y)))}else throw new Error("internal error: Map.rebalance")}else return Ne(Ne(e,t,n,ie(y)),le(y),be(y),ae(y))}else throw new Error("internal error: Map.rebalance")}else if(m>p+2){const w=v(e);if(w instanceof Y){const y=w;if(l=ae(y),(l!=null?(f=v(l),f instanceof Y?(u=f,dt(u)):1):0)>p+1){const S=v(ae(y));if(S instanceof Y){const b=S;return Ne(Ne(ie(y),le(y),be(y),ie(b)),le(b),be(b),Ne(ae(b),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ne(ie(y),le(y),be(y),Ne(ae(y),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ne(e,t,n,r)}function Mt(e,t,n,r){if(r!=null){const o=v(r),s=e.Compare(t,le(o))|0;if(o instanceof Y){const i=o;return s<0?To(Mt(e,t,n,ie(i)),le(i),be(i),ae(i)):s===0?dn(t,n,ie(i),ae(i),dt(i)):To(ie(i),le(i),be(i),Mt(e,t,n,ae(i)))}else return s<0?dn(t,n,void 0,r,2):s===0?Sn(t,n):dn(t,n,r,void 0,2)}else return Sn(t,n)}function Fi(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=v(s),a=r.Compare(o,le(i))|0;if(a===0)return Ie(be(i));if(i instanceof Y){const c=i;e=r,t=o,n=a<0?ie(c):ae(c);continue e}else return}else return}}function hc(e,t,n){const r=Fi(e,t,n);if(r==null)throw new Error;return v(r)}function mc(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=v(s),a=r.Compare(o,le(i))|0;if(i instanceof Y){const c=i;if(a<0){e=r,t=o,n=ie(c);continue e}else{if(a===0)return!0;e=r,t=o,n=ae(c);continue e}}else return a===0}else return!1}}function Mi(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=v(r);if(o instanceof Y){const s=o;Mi(n,ie(s)),n(le(s),be(s)),e=n,t=ae(s);continue e}else n(le(o),be(o))}break}}function pc(e,t){Mi(e,t)}function _c(e,t,n){let r=n;pc((o,s)=>{ot(t,r,[o,s]),r=r+1|0},e)}function wc(e,t){return Ue((n,r)=>Mt(e,r[0],r[1],n),void 0,t)}function gc(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=Mt(r,i[0],i[1],o),n=s;continue e}else return o}}function bc(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=ue(r,t);n=Mt(e,o[0],o[1],n)}return n}function Ti(e,t){if(Re(t))return bc(e,t);if(t instanceof de)return wc(e,t);{const n=X(t);try{return gc(e,void 0,n)}finally{Z(n)}}}class yc extends K{constructor(t,n){super(),this.stack=t,this.started=n}}function $i(e){e:for(;;){const t=e;if(O(t))return se();{const n=T(t),r=A(t);if(r!=null){const o=v(r);if(o instanceof Y){const s=o;e=W([ie(s),Sn(le(s),be(s)),ae(s)],n);continue e}else return t}else{e=n;continue e}}}}function $o(e){return new yc($i(B(e)),!1)}function vc(){throw new Error("enumeration not started")}function Sc(){throw new Error("enumeration already finished")}function Bo(e){if(e.started){const t=e.stack;if(O(t))return Sc();if(A(t)!=null){const n=v(A(t));if(n instanceof Y)throw new Error("Please report error: Map iterator, unexpected stack for current");return[le(n),be(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return vc()}function xc(e){if(e.started){const t=e.stack;if(O(t))return!1;if(A(t)!=null){if(v(A(t))instanceof Y)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=$i(T(t)),!O(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!O(e.stack)}function Io(e){let t=$o(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Bo(t)},"System.Collections.IEnumerator.get_Current"(){return Bo(t)},"System.Collections.IEnumerator.MoveNext"(){return xc(t)},"System.Collections.IEnumerator.Reset"(){t=$o(e)},Dispose(){}}}class xn{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Ec(this)|0}Equals(t){const n=this;if(t instanceof xn){const r=t,o=X(n);try{const s=X(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 Be(c[0],l[0])&&Be(c[1],l[1])?i():!1}else return!0;else return!1};return i()}finally{Z(s)}}finally{Z(o)}}else return!1}toString(){return"map ["+G("; ",Pe(n=>Zu("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Io(this.tree)}[Symbol.iterator](){return En(X(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Io(this.tree)}CompareTo(t){const n=this;if(t instanceof xn)return ac((o,s)=>{const i=n.comparer.Compare(o[0],s[0])|0;return(i!==0?i:ke(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 Lo(n,t[0])&&Be(Oo(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){_c(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Gn(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Gn(this)|0}get size(){return Gn(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Pe(n=>[n[0],n[1]],this)}get(t){return Oo(this,t)}has(t){return Lo(this,t)}keys(){return Pe(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Pe(n=>n[1],this)}forEach(t,n){const r=this;Ai(o=>{t(o[1],o[0],r)},r)}}function On(e,t){return new xn(e,t)}function kc(e){return On(e,void 0)}function Cc(e,t,n){return On(e.comparer,Mt(e.comparer,t,n,e.tree))}function Oo(e,t){return hc(e.comparer,t,e.tree)}function Gn(e){return fc(e.tree)}function Lo(e,t){return mc(e.comparer,t,e.tree)}function Ac(e,t){return Fi(e.comparer,t,e.tree)}function Ec(e){const t=(o,s)=>(o<<1)+s+631;let n=0;const r=X(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Ke(o[0]))|0,n=t(n,Ke(o[1]))|0}}finally{Z(r)}return n|0}function Nc(e,t,n){return Cc(n,e,t)}function Fc(e,t){return Ac(t,e)}function Mc(e,t){return On(t,Ti(t,e))}function Tc(e,t){return On(t,Ti(t,e))}function Bi(e){return kc(e)}function Ii(e){return new Hl("Authorization",e)}const lt=new Bn("",new Dr(0,[]),se(),!1,void 0,void 0,void 0,new jl(0,[]));new vi(0,"","","",Bi({Compare:Fr}),new yt(0,[""]));function Vo(e,t){return Ju(t)?new Array(0):Yu(t,[e],void 0,0)}function $c(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 Oi(e){return new Bn(e,lt.method,lt.headers,lt.withCredentials,lt.overridenMimeType,lt.overridenResponseType,lt.timeout,lt.content)}function Li(e,t){return new Bn(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Vi(e,t){return new Bn(t.url,t.method,Lr(t.headers,B(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Pi(e){return Pl(t=>{const n=new XMLHttpRequest;n.open($c(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 yt(0,[n.responseText]):h==="text"?new yt(0,[n.responseText]):h==="arraybuffer"?new yt(2,[n.response]):h==="blob"?new yt(1,[n.response]):new yt(3,[n.response])),p=Tc(_l(g=>{const w=k(Vo(":",g));if(!O(w))return[A(w).toLocaleLowerCase(),G(":",T(w)).trim()]},Vo(`\r
4
+ `,n.getAllResponseHeaders())),{Compare:Fr}),new vi(f,c,u,n.responseURL,p,m)))};const r=X(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{Z(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(Ie(a.fields[0]));break}case 3:{n.send(Ie(a.fields[0]));break}case 2:{n.send(Ie(a.fields[0]));break}default:n.send()}})}function Bc(e){return new d(0,[e])}function Di(e){return new d(1,[e])}class d extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function Ye(e,t){return t.tag===0?Bc(e(t.fields[0])):Di(t.fields[0])}function Ic(e,t){return t.tag===0?e(t.fields[0]):Di(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 Ur extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Po(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Oc(e,t){switch(e.tag){case 2:return Tr(Po(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Po(t)}}const Lc=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Do=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Vc=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Pc(e){function t(r){return r.replace(Do,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Lc.test(n))return Xu(n,"{","}","(",")");if(Do.test(n))return t(n);if(Vc.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 Dc(e,t){try{return t.contents=Pc(e),!0}catch{return!1}}var ir;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(ir||(ir={}));function Rc(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function Ro(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 Uc(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 zc(e,t){if(t&ir.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 Hc(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||zc(s,t),!Uc(n).test(i))return Rc(o,n)}return null}function jc(e,t,n,r,o){const s=Hc(e,t,o);if(s!=null){let i=Number.parseInt(s.sign+s.digits,s.radix);if(!Number.isNaN(i)){const[a,c]=Ro(!0,r);!n&&s.radix!==10&&i>=a&&i<=c&&(i=i<<32-r>>32-r);const[l,f]=Ro(n,r);if(i>=l&&i<=f)return i}}throw new Error(`The input string ${e} was not in a correct format.`)}function Vt(e,t,n,r,o){try{return o.contents=jc(e,t,n,r),!0}catch{return!1}}function Ri(e,t){Gc(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Gc(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 Wc(){return Ri(-621355968e5,0)}function qc(e){const[t,n]=oi(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return Ri(t.getTime(),r)}function Zc(e,t){try{return t.contents=qc(e),!0}catch{return!1}}function Uo(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Jc(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 Jc(e){return Number(BigInt(e)/10000n)}function Kc(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 Uo(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*Uo(o,c,l,i,s)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Yc(e,t){try{return t.contents=Kc(e),!0}catch{return!1}}class Ui{constructor(t){this.k=t}}function _e(e){return new Ui(e)}function N(e){return e.k}class L extends Ui{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 R(e){return e.left}function P(e){return e.right}function St(e){return e.h}function zi(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=v(n);if(o instanceof L){const s=o;e=R(s),t=zi(P(s),r+1);continue e}else return r+1|0}else return r|0}}function Xc(e){return zi(e,0)}function Fe(e,t,n){let r,o,s;const i=e;if(i!=null){const f=v(i);s=f instanceof L?(r=f,St(r)):1}else s=0;let a;const c=n;if(c!=null){const f=v(c);a=f instanceof L?(o=f,St(o)):1}else a=0;const l=(s<a?a:s)|0;return l===0?_e(t):we(t,e,n,l+1)}function zo(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,St(r)):1}else u=0;let h;const p=n;if(p!=null){const g=v(p);h=g instanceof L?(o=g,St(o)):1}else h=0;if(h>u+2){const g=v(n);if(g instanceof L){const w=g;if(s=R(w),(s!=null?(i=v(s),i instanceof L?(a=i,St(a)):1):0)>u+1){const y=v(R(w));if(y instanceof L){const S=y;return Fe(Fe(e,t,R(S)),N(S),Fe(P(S),N(w),P(w)))}else throw new Error("internal error: Set.rebalance")}else return Fe(Fe(e,t,R(w)),N(w),P(w))}else throw new Error("internal error: Set.rebalance")}else if(u>h+2){const g=v(e);if(g instanceof L){const w=g;if(c=P(w),(c!=null?(l=v(c),l instanceof L?(f=l,St(f)):1):0)>h+1){const y=v(P(w));if(y instanceof L){const S=y;return Fe(Fe(R(w),N(w),R(S)),N(S),Fe(P(S),t,n))}else throw new Error("internal error: Set.rebalance")}else return Fe(R(w),N(w),Fe(P(w),t,n))}else throw new Error("internal error: Set.rebalance")}else return Fe(e,t,n)}function Tt(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?zo(Tt(e,t,R(s)),N(s),P(s)):o===0?n:zo(R(s),N(s),Tt(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 _e(t)}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,N(i))|0;if(i instanceof L){const c=i;if(a<0){e=r,t=o,n=R(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 ji(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=v(r);if(o instanceof L){const s=o;ji(n,R(s)),n(N(s)),e=n,t=P(s);continue e}else n(N(o))}break}}class Qc extends K{constructor(t,n){super(),this.stack=t,this.started=n}}function Gi(e){e:for(;;){const t=e;if(O(t))return se();{const n=A(t),r=T(t);if(n!=null){const o=v(n);if(o instanceof L){const s=o;e=W([R(s),_e(N(s)),P(s)],r);continue e}else return t}else{e=r;continue e}}}}function Ho(e){return new Qc(Gi(B(e)),!1)}function ed(){throw new Error("Enumeration not started")}function td(){throw new Error("Enumeration already started")}function jo(e){if(e.started){const t=e.stack;if(O(t))return td();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 ed()}function nd(e){if(e.started){const t=e.stack;if(O(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=Gi(T(t)),!O(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!O(e.stack)}function Go(e){let t=Ho(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return jo(t)},"System.Collections.IEnumerator.get_Current"(){return jo(t)},"System.Collections.IEnumerator.MoveNext"(){return nd(t)},"System.Collections.IEnumerator.Reset"(){t=Ho(e)},Dispose(){}}}function rd(e,t,n){e:for(;;){const r=e,o=t,s=n;if(O(o))return O(s)?0:-1;if(O(s))return 1;if(A(s)!=null)if(A(o)!=null){const i=v(A(o)),a=v(A(s));if(i instanceof L){const c=i;if(R(c)==null)if(a instanceof L){const l=a;if(R(l)==null){const f=r.Compare(N(c),N(l))|0;if(f!==0)return f|0;e=r,t=ge(P(c),T(o)),n=ge(P(l),T(s));continue e}else{let f,u,m,h,p;switch(O(o)?O(s)?f=2:A(s)!=null?(f=1,h=T(s),p=v(A(s))):f=2:A(o)!=null?(f=0,u=T(o),m=v(A(o))):O(s)?f=2:A(s)!=null?(f=1,h=T(s),p=v(A(s))):f=2,f){case 0:if(m instanceof L){const g=m;e=r,t=W([R(g),we(N(g),void 0,P(g),0)],u),n=s;continue e}else{e=r,t=W([void 0,_e(N(m))],u),n=s;continue e}case 1:if(p instanceof L){const g=p;e=r,t=o,n=W([R(g),we(N(g),void 0,P(g),0)],h);continue e}else{e=r,t=o,n=W([void 0,_e(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=ge(P(c),T(o)),n=ge(void 0,T(s));continue e}else{let l,f,u,m,h;switch(O(o)?O(s)?l=2:A(s)!=null?(l=1,m=T(s),h=v(A(s))):l=2:A(o)!=null?(l=0,f=T(o),u=v(A(o))):O(s)?l=2:A(s)!=null?(l=1,m=T(s),h=v(A(s))):l=2,l){case 0:if(u instanceof L){const p=u;e=r,t=W([R(p),we(N(p),void 0,P(p),0)],f),n=s;continue e}else{e=r,t=W([void 0,_e(N(u))],f),n=s;continue e}case 1:if(h instanceof L){const p=h;e=r,t=o,n=W([R(p),we(N(p),void 0,P(p),0)],m);continue e}else{e=r,t=o,n=W([void 0,_e(N(h))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof L){const c=a;if(R(c)==null){const l=r.Compare(N(i),N(c))|0;if(l!==0)return l|0;e=r,t=ge(void 0,T(o)),n=ge(P(c),T(s));continue e}else{let l,f,u,m,h;switch(O(o)?O(s)?l=2:A(s)!=null?(l=1,m=T(s),h=v(A(s))):l=2:A(o)!=null?(l=0,f=T(o),u=v(A(o))):O(s)?l=2:A(s)!=null?(l=1,m=T(s),h=v(A(s))):l=2,l){case 0:if(u instanceof L){const p=u;e=r,t=W([R(p),we(N(p),void 0,P(p),0)],f),n=s;continue e}else{e=r,t=W([void 0,_e(N(u))],f),n=s;continue e}case 1:if(h instanceof L){const p=h;e=r,t=o,n=W([R(p),we(N(p),void 0,P(p),0)],m);continue e}else{e=r,t=o,n=W([void 0,_e(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=T(o),n=T(s);continue e}}else{v(A(s));let i,a,c,l,f;switch(O(o)?O(s)?i=2:A(s)!=null?(i=1,l=T(s),f=v(A(s))):i=2:A(o)!=null?(i=0,a=T(o),c=v(A(o))):O(s)?i=2:A(s)!=null?(i=1,l=T(s),f=v(A(s))):i=2,i){case 0:if(c instanceof L){const u=c;e=r,t=W([R(u),we(N(u),void 0,P(u),0)],a),n=s;continue e}else{e=r,t=W([void 0,_e(N(c))],a),n=s;continue e}case 1:if(f instanceof L){const u=f;e=r,t=o,n=W([R(u),we(N(u),void 0,P(u),0)],l);continue e}else{e=r,t=o,n=W([void 0,_e(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(O(o)?O(s)?i=2:A(s)!=null?(i=1,l=T(s),f=v(A(s))):i=2:A(o)!=null?(i=0,a=T(o),c=v(A(o))):O(s)?i=2:A(s)!=null?(i=1,l=T(s),f=v(A(s))):i=2,i){case 0:if(c instanceof L){const u=c;e=r,t=W([R(u),we(N(u),void 0,P(u),0)],a),n=s;continue e}else{e=r,t=W([void 0,_e(N(c))],a),n=s;continue e}case 1:if(f instanceof L){const u=f;e=r,t=o,n=W([R(u),we(N(u),void 0,P(u),0)],l);continue e}else{e=r,t=o,n=W([void 0,_e(N(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=T(o),n=T(s);continue e}}}function Wo(e,t,n){return t==null?n==null?0:-1:n==null?1:rd(e,B(t),B(n))|0}function od(e,t,n){let r=n;ji(o=>{ot(t,r,o),r=r+1|0},e)}function sd(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){e=r,t=Tt(r,s["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=s;continue e}else return o}}function id(e,t){return Tn((n,r)=>Tt(e,r,n),void 0,t)}function ad(e,t){return Ue((n,r)=>Tt(e,r,n),void 0,t)}function Wi(e,t){if(Re(t))return id(e,t);if(t instanceof de)return ad(e,t);{const n=X(t);try{return sd(e,void 0,n)}finally{Z(n)}}}class zr{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return cd(this)|0}Equals(t){let n;const r=this;return t instanceof zr&&(n=t,Wo(kt(r),Me(r),Me(n))===0)}toString(){return"set ["+G("; ",Pe(n=>Oe(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Wo(kt(n),Me(n),Me(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 Hi(kt(n),t,Me(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){od(Me(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Wn(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Wn(this)|0}GetEnumerator(){return Go(Me(this))}[Symbol.iterator](){return En(X(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Go(Me(this))}get size(){return Wn(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 qi(this,t)}keys(){return Pe(n=>n,this)}values(){return Pe(n=>n,this)}entries(){return Pe(n=>[n,n],this)}forEach(t,n){const r=this;Ai(o=>{t(o,o,r)},r)}}function Ln(e,t){return new zr(e,t)}function kt(e){return e.comparer}function Me(e){return e.tree}function ud(e){return Ln(e,void 0)}function ld(e,t){return Ln(kt(e),Tt(kt(e),t,Me(e)))}function Wn(e){return Xc(Me(e))}function qi(e,t){return Hi(kt(e),t,Me(e))}function cd(e){let t=0;const n=X(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+Ke(r)+631|0}}finally{Z(n)}return Math.abs(t)|0}function ar(e,t){return qi(t,e)}function dd(e,t){return ld(t,e)}function fd(e){return ud(e)}function hd(e,t){return Ln(t,Wi(t,e))}function md(e,t){return Ln(t,Wi(t,e))}function Dt(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
6
  `:" ")}}function pd(e,t){const n=t.tag===2?Dt(t.fields[0],t.fields[1],!0):t.tag===1?Dt(t.fields[0],t.fields[1],!1)+`
7
7
  Reason: `+t.fields[2]:t.tag===3?Dt(t.fields[0],t.fields[1],!0):t.tag===4?Dt(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
@@ -9,9 +9,9 @@ Reason: `+t.fields[2]:t.tag===3?Dt(t.fields[0],t.fields[1],!0):t.tag===4?Dt(t.fi
9
9
 
10
10
  `+G(`
11
11
 
12
- `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Dt(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function qi(e,t,n){const r=t(e,n);if(r.tag===1){const o=r.fields[0];return new d(1,[pd(o[0],o[1])])}else return new d(0,[r.fields[0]])}function Zi(e,t){try{return qi("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new d(1,["Given an invalid JSON: "+n.message]);throw n}}function Ji(e,t){return typeof t=="string"?new d(0,[t]):new d(1,[[e,new S(0,["a string",t])]])}function _d(e,t){if(typeof t=="string"){const n=t;return n.length===1?new d(0,[n[0]]):new d(1,[[e,new S(0,["a single character string",t])]])}else return new d(1,[[e,new S(0,["a char",t])]])}function wd(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Dc(t,new Le(()=>r,o=>{r=o})),r],n[0]?new d(0,[n[1]]):new d(1,[[e,new S(0,["a guid",t])]])}else return new d(1,[[e,new S(0,["a guid",t])]])}function gd(e,t){return t==null?new d(0,[void 0]):new d(1,[[e,new S(0,["null",t])]])}const Wo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-128<=o&&o<=127?new d(0,[(o+128&255)-128]):new d(1,[[n,new S(1,["a sbyte",o,"Value was either too large or too small for a sbyte"])]]):new d(1,[[n,new S(1,["a sbyte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Vt(r,511,!1,8,new Le(()=>s,i=>{s=i|0})),s],o[0]?new d(0,[o[1]]):new d(1,[[n,new S(0,["a sbyte",r])]])}else return new d(1,[[n,new S(0,["a sbyte",r])]])},qo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=255?new d(0,[o&255]):new d(1,[[n,new S(1,["a byte",o,"Value was either too large or too small for a byte"])]]):new d(1,[[n,new S(1,["a byte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Vt(r,511,!0,8,new Le(()=>s,i=>{s=i})),s],o[0]?new d(0,[o[1]]):new d(1,[[n,new S(0,["a byte",r])]])}else return new d(1,[[n,new S(0,["a byte",r])]])},Zo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-32768<=o&&o<=32767?new d(0,[(o+32768&65535)-32768]):new d(1,[[n,new S(1,["an int16",o,"Value was either too large or too small for an int16"])]]):new d(1,[[n,new S(1,["an int16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Vt(r,511,!1,16,new Le(()=>s,i=>{s=i|0})),s],o[0]?new d(0,[o[1]]):new d(1,[[n,new S(0,["an int16",r])]])}else return new d(1,[[n,new S(0,["an int16",r])]])},Jo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=65535?new d(0,[o&65535]):new d(1,[[n,new S(1,["an uint16",o,"Value was either too large or too small for an uint16"])]]):new d(1,[[n,new S(1,["an uint16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Vt(r,511,!0,16,new Le(()=>s,i=>{s=i})),s],o[0]?new d(0,[o[1]]):new d(1,[[n,new S(0,["an uint16",r])]])}else return new d(1,[[n,new S(0,["an uint16",r])]])},Ko=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-2147483648<=o&&o<=2147483647?new d(0,[~~o]):new d(1,[[n,new S(1,["an int",o,"Value was either too large or too small for an int"])]]):new d(1,[[n,new S(1,["an int",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Vt(r,511,!1,32,new Le(()=>s,i=>{s=i|0})),s],o[0]?new d(0,[o[1]]):new d(1,[[n,new S(0,["an int",r])]])}else return new d(1,[[n,new S(0,["an int",r])]])},Yo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=4294967295?new d(0,[o>>>0]):new d(1,[[n,new S(1,["an uint32",o,"Value was either too large or too small for an uint32"])]]):new d(1,[[n,new S(1,["an uint32",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Vt(r,511,!0,32,new Le(()=>s,i=>{s=i})),s],o[0]?new d(0,[o[1]]):new d(1,[[n,new S(0,["an uint32",r])]])}else return new d(1,[[n,new S(0,["an uint32",r])]])};function bd(e,t){return typeof t=="boolean"?new d(0,[t]):new d(1,[[e,new S(0,["a boolean",t])]])}function yd(e,t){return typeof t=="number"?new d(0,[t]):new d(1,[[e,new S(0,["a float",t])]])}function vd(e,t){return typeof t=="number"?new d(0,[t]):new d(1,[[e,new S(0,["a float32",t])]])}function xd(e,t){if(typeof t=="string"){let n,r=Pu();return n=[Ru(t,new Le(()=>r,o=>{r=o})),r],n[0]?new d(0,[Uu(n[1])]):new d(1,[[e,new S(0,["a datetime",t])]])}else return new d(1,[[e,new S(0,["a datetime",t])]])}function Sd(e,t){if(typeof t=="string"){let n,r=Wc();return n=[Zc(t,new Le(()=>r,o=>{r=o})),r],n[0]?new d(0,[n[1]]):new d(1,[[e,new S(0,["a datetimeoffset",t])]])}else return new d(1,[[e,new S(0,["a datetime",t])]])}function kd(e,t){if(typeof t=="string"){let n,r=0;return n=[Yc(t,new Le(()=>r,o=>{r=o})),r],n[0]?new d(0,[n[1]]):new d(1,[[e,new S(0,["a timespan",t])]])}else return new d(1,[[e,new S(0,["a timespan",t])]])}function Xo(e,t,n,r){let o;const s=n+".["+ft(e)+"]";if(Array.isArray(r)){const i=r;return e<i.length?t(s,ue(e,i)):new d(1,[[s,new S(5,["a longer array. Need index `"+ft(e)+"` but there are only `"+(o=i.length,ft(o))+"` entries",r])]])}else return new d(1,[[s,new S(0,["an array",r])]])}function Cd(e,t,n){return n==null?new d(0,[void 0]):Ye(Ie,e(t,n))}function Qo(e,t,n){if(Array.isArray(n)){let r=-1;return Ye(Ir,Tn((o,s)=>{if(r=r+1|0,o.tag===0){const i=e(t+".["+ft(r)+"]",s);return i.tag===0?new d(0,[ge(i.fields[0],o.fields[0])]):new d(1,[i.fields[0]])}else return o},new d(0,[se()]),n))}else return new d(1,[[t,new S(0,["a list",n])]])}function Ad(e,t,n){if(Array.isArray(n)){let r=-1;return Ye(uc,Tn((o,s)=>{if(r=r+1|0,o.tag===0){const i=e(t+".["+ft(r)+"]",s);return i.tag===0?new d(0,[he([i.fields[0]],o.fields[0])]):new d(1,[i.fields[0]])}else return o},new d(0,[[]]),n))}else return new d(1,[[t,new S(0,["a seq",n])]])}function es(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Tn((s,i)=>{if(r=r+1|0,s.tag===0){const a=s.fields[0],c=e(t+".["+ft(r)+"]",i);return c.tag===0?(ot(a,r,c.fields[0]),new d(0,[a])):new d(1,[c.fields[0]])}else return s},new d(0,[Br(new Array(o.length),0,o.length,null)]),o)}else return new d(1,[[t,new S(0,["an array",n])]])}function Ed(e,t,n){return((o,s)=>{e:for(;;){const i=o,a=s;if(O(i))return new d(1,[[t,new S(7,[a])]]);{const c=qi(t,J(A(i)),n);if(c.tag===1){o=T(i),s=Or(a,B(c.fields[0]));continue e}else return new d(0,[c.fields[0]])}}})(e,se())}function Nd(e,t,n){return new d(0,[e])}function ts(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new d(1,[o.fields[0]])}function Fd(e,t,n,r){const o=t(n,r);return o.tag===1?new d(1,[o.fields[0]]):new d(0,[e(o.fields[0])])}function Md(e,t){let n;const r=e;return n=o=>s=>Xo(0,r,o,s),o=>s=>ts(tr(i=>{let a;const c=t;return a=l=>f=>Xo(1,c,l,f),l=>f=>ts((u,m,h)=>Nd([i,u]),J(a),l,f)}),J(n),o,s)}function Td(e){return Mc(e,{Compare:Se})}function $d(e){return md(e,{Compare:Se})}function Bd(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?_i((r,o)=>{const s=r[0];return o.tag===0?Ye(i=>ge(i,o.fields[0]),r[1](t+"."+s)(n[s])):o},e,new d(0,[se()])):new d(1,[[t,new S(0,["an object",n])]])}function Id(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?ki((o,s)=>{if(o.tag===0){const i=e(n,s);if(i.tag===0){const a=t(n+"."+s,r[s]);return a.tag===0?new d(0,[ge([i.fields[0],a.fields[0]],o.fields[0])]):new d(1,[a.fields[0]])}else return new d(1,[i.fields[0]])}else return o},new d(0,[se()]),Object.keys(r)):new d(1,[[n,new S(0,["an object",r])]])}function Ki(e,t,n,r){let o;const s=t.length+e|0;if(s!==r.length)return new d(1,[[n,new S(6,[(o=r.length|0,Ht(Nt("Expected array of length %i but got %i"))(s)(o))])]]);{let i=new d(0,[se()]);for(let a=e;a<=r.length-1;a++)if(i.tag===0){const c=i.fields[0],l=Ht(Nt("%s[%i]"))(n)(a),f=ue(a-e,t),u=ue(a,r);i=Ye(m=>ge(m,c),f(l)(u))}return Ye(Ir,i)}}function ns(e,t,n,r,o,s){const i=pl(a=>$r(a)===r,sl(n));if(i!=null){const a=i,c=Mn(l=>Me(e,t,!1,l[1]),ll(a));return Ye(l=>cl(a,tn(l)),c.length===0&&s.length<=1?new d(0,[se()]):Ki(1,c,o,s))}else return new d(1,[[o,new S(6,["Cannot find case "+r+" in "+te(n)])]])}function rs(e,t,n,r){let o;const s=new Le(Je());let i;const a=te(r);i=a===""?e:Nc(a,s,e);let c;if(ul(r)){const l=Mn(f=>[Oc(t,$r(f)),Me(i,t,!1,f[1])],yn(r));c=f=>u=>Ye(m=>dl(r,tn(m)),Bd(l,f,u))}else if(al(r))c=l=>f=>{if(typeof f=="string")return ns(i,t,r,f,l,[]);if(Array.isArray(f)){const u=f;return Ic(m=>ns(i,t,r,m,l,u),Ji(l+"[0]",ue(0,u)))}else return new d(1,[[l,new S(0,["a string or array",f])]])};else if(n)c=l=>f=>new d(1,[[l,new S(2,["an extra coder for "+te(r),f])]]);else throw new Error((o=te(r),Ht(Nt(`Cannot generate auto decoder for %s. Please pass an extra decoder.
12
+ `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Dt(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function Zi(e,t,n){const r=t(e,n);if(r.tag===1){const o=r.fields[0];return new d(1,[pd(o[0],o[1])])}else return new d(0,[r.fields[0]])}function Ji(e,t){try{return Zi("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new d(1,["Given an invalid JSON: "+n.message]);throw n}}function Ki(e,t){return typeof t=="string"?new d(0,[t]):new d(1,[[e,new x(0,["a string",t])]])}function _d(e,t){if(typeof t=="string"){const n=t;return n.length===1?new d(0,[n[0]]):new d(1,[[e,new x(0,["a single character string",t])]])}else return new d(1,[[e,new x(0,["a char",t])]])}function wd(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Dc(t,new Le(()=>r,o=>{r=o})),r],n[0]?new d(0,[n[1]]):new d(1,[[e,new x(0,["a guid",t])]])}else return new d(1,[[e,new x(0,["a guid",t])]])}function gd(e,t){return t==null?new d(0,[void 0]):new d(1,[[e,new x(0,["null",t])]])}const qo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-128<=o&&o<=127?new d(0,[(o+128&255)-128]):new d(1,[[n,new x(1,["a sbyte",o,"Value was either too large or too small for a sbyte"])]]):new d(1,[[n,new x(1,["a sbyte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Vt(r,511,!1,8,new Le(()=>s,i=>{s=i|0})),s],o[0]?new d(0,[o[1]]):new d(1,[[n,new x(0,["a sbyte",r])]])}else return new d(1,[[n,new x(0,["a sbyte",r])]])},Zo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=255?new d(0,[o&255]):new d(1,[[n,new x(1,["a byte",o,"Value was either too large or too small for a byte"])]]):new d(1,[[n,new x(1,["a byte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Vt(r,511,!0,8,new Le(()=>s,i=>{s=i})),s],o[0]?new d(0,[o[1]]):new d(1,[[n,new x(0,["a byte",r])]])}else return new d(1,[[n,new x(0,["a byte",r])]])},Jo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-32768<=o&&o<=32767?new d(0,[(o+32768&65535)-32768]):new d(1,[[n,new x(1,["an int16",o,"Value was either too large or too small for an int16"])]]):new d(1,[[n,new x(1,["an int16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Vt(r,511,!1,16,new Le(()=>s,i=>{s=i|0})),s],o[0]?new d(0,[o[1]]):new d(1,[[n,new x(0,["an int16",r])]])}else return new d(1,[[n,new x(0,["an int16",r])]])},Ko=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=65535?new d(0,[o&65535]):new d(1,[[n,new x(1,["an uint16",o,"Value was either too large or too small for an uint16"])]]):new d(1,[[n,new x(1,["an uint16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Vt(r,511,!0,16,new Le(()=>s,i=>{s=i})),s],o[0]?new d(0,[o[1]]):new d(1,[[n,new x(0,["an uint16",r])]])}else return new d(1,[[n,new x(0,["an uint16",r])]])},Yo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-2147483648<=o&&o<=2147483647?new d(0,[~~o]):new d(1,[[n,new x(1,["an int",o,"Value was either too large or too small for an int"])]]):new d(1,[[n,new x(1,["an int",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Vt(r,511,!1,32,new Le(()=>s,i=>{s=i|0})),s],o[0]?new d(0,[o[1]]):new d(1,[[n,new x(0,["an int",r])]])}else return new d(1,[[n,new x(0,["an int",r])]])},Xo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=4294967295?new d(0,[o>>>0]):new d(1,[[n,new x(1,["an uint32",o,"Value was either too large or too small for an uint32"])]]):new d(1,[[n,new x(1,["an uint32",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Vt(r,511,!0,32,new Le(()=>s,i=>{s=i})),s],o[0]?new d(0,[o[1]]):new d(1,[[n,new x(0,["an uint32",r])]])}else return new d(1,[[n,new x(0,["an uint32",r])]])};function bd(e,t){return typeof t=="boolean"?new d(0,[t]):new d(1,[[e,new x(0,["a boolean",t])]])}function yd(e,t){return typeof t=="number"?new d(0,[t]):new d(1,[[e,new x(0,["a float",t])]])}function vd(e,t){return typeof t=="number"?new d(0,[t]):new d(1,[[e,new x(0,["a float32",t])]])}function Sd(e,t){if(typeof t=="string"){let n,r=Pu();return n=[Ru(t,new Le(()=>r,o=>{r=o})),r],n[0]?new d(0,[Uu(n[1])]):new d(1,[[e,new x(0,["a datetime",t])]])}else return new d(1,[[e,new x(0,["a datetime",t])]])}function xd(e,t){if(typeof t=="string"){let n,r=Wc();return n=[Zc(t,new Le(()=>r,o=>{r=o})),r],n[0]?new d(0,[n[1]]):new d(1,[[e,new x(0,["a datetimeoffset",t])]])}else return new d(1,[[e,new x(0,["a datetime",t])]])}function kd(e,t){if(typeof t=="string"){let n,r=0;return n=[Yc(t,new Le(()=>r,o=>{r=o})),r],n[0]?new d(0,[n[1]]):new d(1,[[e,new x(0,["a timespan",t])]])}else return new d(1,[[e,new x(0,["a timespan",t])]])}function Qo(e,t,n,r){let o;const s=n+".["+ft(e)+"]";if(Array.isArray(r)){const i=r;return e<i.length?t(s,ue(e,i)):new d(1,[[s,new x(5,["a longer array. Need index `"+ft(e)+"` but there are only `"+(o=i.length,ft(o))+"` entries",r])]])}else return new d(1,[[s,new x(0,["an array",r])]])}function Cd(e,t,n){return n==null?new d(0,[void 0]):Ye(Ie,e(t,n))}function es(e,t,n){if(Array.isArray(n)){let r=-1;return Ye(Or,Tn((o,s)=>{if(r=r+1|0,o.tag===0){const i=e(t+".["+ft(r)+"]",s);return i.tag===0?new d(0,[ge(i.fields[0],o.fields[0])]):new d(1,[i.fields[0]])}else return o},new d(0,[se()]),n))}else return new d(1,[[t,new x(0,["a list",n])]])}function Ad(e,t,n){if(Array.isArray(n)){let r=-1;return Ye(uc,Tn((o,s)=>{if(r=r+1|0,o.tag===0){const i=e(t+".["+ft(r)+"]",s);return i.tag===0?new d(0,[he([i.fields[0]],o.fields[0])]):new d(1,[i.fields[0]])}else return o},new d(0,[[]]),n))}else return new d(1,[[t,new x(0,["a seq",n])]])}function ts(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Tn((s,i)=>{if(r=r+1|0,s.tag===0){const a=s.fields[0],c=e(t+".["+ft(r)+"]",i);return c.tag===0?(ot(a,r,c.fields[0]),new d(0,[a])):new d(1,[c.fields[0]])}else return s},new d(0,[Ir(new Array(o.length),0,o.length,null)]),o)}else return new d(1,[[t,new x(0,["an array",n])]])}function Ed(e,t,n){return((o,s)=>{e:for(;;){const i=o,a=s;if(O(i))return new d(1,[[t,new x(7,[a])]]);{const c=Zi(t,J(A(i)),n);if(c.tag===1){o=T(i),s=Lr(a,B(c.fields[0]));continue e}else return new d(0,[c.fields[0]])}}})(e,se())}function Nd(e,t,n){return new d(0,[e])}function ns(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new d(1,[o.fields[0]])}function Fd(e,t,n,r){const o=t(n,r);return o.tag===1?new d(1,[o.fields[0]]):new d(0,[e(o.fields[0])])}function Md(e,t){let n;const r=e;return n=o=>s=>Qo(0,r,o,s),o=>s=>ns(nr(i=>{let a;const c=t;return a=l=>f=>Qo(1,c,l,f),l=>f=>ns((u,m,h)=>Nd([i,u]),J(a),l,f)}),J(n),o,s)}function Td(e){return Mc(e,{Compare:ke})}function $d(e){return md(e,{Compare:ke})}function Bd(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?wi((r,o)=>{const s=r[0];return o.tag===0?Ye(i=>ge(i,o.fields[0]),r[1](t+"."+s)(n[s])):o},e,new d(0,[se()])):new d(1,[[t,new x(0,["an object",n])]])}function Id(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Ci((o,s)=>{if(o.tag===0){const i=e(n,s);if(i.tag===0){const a=t(n+"."+s,r[s]);return a.tag===0?new d(0,[ge([i.fields[0],a.fields[0]],o.fields[0])]):new d(1,[a.fields[0]])}else return new d(1,[i.fields[0]])}else return o},new d(0,[se()]),Object.keys(r)):new d(1,[[n,new x(0,["an object",r])]])}function Yi(e,t,n,r){let o;const s=t.length+e|0;if(s!==r.length)return new d(1,[[n,new x(6,[(o=r.length|0,Ht(Nt("Expected array of length %i but got %i"))(s)(o))])]]);{let i=new d(0,[se()]);for(let a=e;a<=r.length-1;a++)if(i.tag===0){const c=i.fields[0],l=Ht(Nt("%s[%i]"))(n)(a),f=ue(a-e,t),u=ue(a,r);i=Ye(m=>ge(m,c),f(l)(u))}return Ye(Or,i)}}function rs(e,t,n,r,o,s){const i=pl(a=>Br(a)===r,sl(n));if(i!=null){const a=i,c=Mn(l=>Te(e,t,!1,l[1]),ll(a));return Ye(l=>cl(a,tn(l)),c.length===0&&s.length<=1?new d(0,[se()]):Yi(1,c,o,s))}else return new d(1,[[o,new x(6,["Cannot find case "+r+" in "+te(n)])]])}function os(e,t,n,r){let o;const s=new Le(Je());let i;const a=te(r);i=a===""?e:Nc(a,s,e);let c;if(ul(r)){const l=Mn(f=>[Oc(t,Br(f)),Te(i,t,!1,f[1])],yn(r));c=f=>u=>Ye(m=>dl(r,tn(m)),Bd(l,f,u))}else if(al(r))c=l=>f=>{if(typeof f=="string")return rs(i,t,r,f,l,[]);if(Array.isArray(f)){const u=f;return Ic(m=>rs(i,t,r,m,l,u),Ki(l+"[0]",ue(0,u)))}else return new d(1,[[l,new x(0,["a string or array",f])]])};else if(n)c=l=>f=>new d(1,[[l,new x(2,["an extra coder for "+te(r),f])]]);else throw new Error((o=te(r),Ht(Nt(`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`))(o)));return s.contents=c,c}function Me(e,t,n,r){let o,s,i,a;const c=te(r),l=Fc(c,e);if(l==null)if(el(r)){const f=Me(e,t,!1,Fn(r));return u=>m=>es(J(f),u,m)}else if(fi(r))switch(te(rl(r))){case"System.SByte":return u=>m=>{const h=r,p=u,g=m,w=Wo(p)(g);if(w.tag===1)return new d(1,[w.fields[0]]);{const y=w.fields[0]|0;return bt(y,wt(h),{Equals:(x,b)=>x===b,GetHashCode:ze})?new d(0,[gt(h,y.toString())]):new d(1,[[p,new S(1,[te(h),g,"Unkown value provided for the enum"])]])}};case"System.Byte":return u=>m=>{const h=r,p=u,g=m,w=qo(p)(g);if(w.tag===1)return new d(1,[w.fields[0]]);{const y=w.fields[0];return bt(y,wt(h),{Equals:(x,b)=>x===b,GetHashCode:ze})?new d(0,[gt(h,y.toString())]):new d(1,[[p,new S(1,[te(h),g,"Unkown value provided for the enum"])]])}};case"System.Int16":return u=>m=>{const h=r,p=u,g=m,w=Zo(p)(g);if(w.tag===1)return new d(1,[w.fields[0]]);{const y=w.fields[0]|0;return bt(y,wt(h),{Equals:(x,b)=>x===b,GetHashCode:ze})?new d(0,[gt(h,lu(y))]):new d(1,[[p,new S(1,[te(h),g,"Unkown value provided for the enum"])]])}};case"System.UInt16":return u=>m=>{const h=r,p=u,g=m,w=Jo(p)(g);if(w.tag===1)return new d(1,[w.fields[0]]);{const y=w.fields[0];return bt(y,wt(h),{Equals:(x,b)=>x===b,GetHashCode:ze})?new d(0,[gt(h,y.toString())]):new d(1,[[p,new S(1,[te(h),g,"Unkown value provided for the enum"])]])}};case"System.Int32":return u=>m=>{const h=r,p=u,g=m,w=Ko(p)(g);if(w.tag===1)return new d(1,[w.fields[0]]);{const y=w.fields[0]|0;return bt(y,wt(h),{Equals:(x,b)=>x===b,GetHashCode:ze})?new d(0,[gt(h,ft(y))]):new d(1,[[p,new S(1,[te(h),g,"Unkown value provided for the enum"])]])}};case"System.UInt32":return u=>m=>{const h=r,p=u,g=m,w=Yo(p)(g);if(w.tag===1)return new d(1,[w.fields[0]]);{const y=w.fields[0];return bt(y,wt(h),{Equals:(x,b)=>x===b,GetHashCode:ze})?new d(0,[gt(h,y.toString())]):new d(1,[[p,new S(1,[te(h),g,"Unkown value provided for the enum"])]])}};default:{const u=te(r),m=Gu(Nt(`Cannot generate auto decoder for %s.
14
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return s.contents=c,c}function Te(e,t,n,r){let o,s,i,a;const c=te(r),l=Fc(c,e);if(l==null)if(el(r)){const f=Te(e,t,!1,Fn(r));return u=>m=>ts(J(f),u,m)}else if(hi(r))switch(te(rl(r))){case"System.SByte":return u=>m=>{const h=r,p=u,g=m,w=qo(p)(g);if(w.tag===1)return new d(1,[w.fields[0]]);{const y=w.fields[0]|0;return bt(y,wt(h),{Equals:(S,b)=>S===b,GetHashCode:He})?new d(0,[gt(h,y.toString())]):new d(1,[[p,new x(1,[te(h),g,"Unkown value provided for the enum"])]])}};case"System.Byte":return u=>m=>{const h=r,p=u,g=m,w=Zo(p)(g);if(w.tag===1)return new d(1,[w.fields[0]]);{const y=w.fields[0];return bt(y,wt(h),{Equals:(S,b)=>S===b,GetHashCode:He})?new d(0,[gt(h,y.toString())]):new d(1,[[p,new x(1,[te(h),g,"Unkown value provided for the enum"])]])}};case"System.Int16":return u=>m=>{const h=r,p=u,g=m,w=Jo(p)(g);if(w.tag===1)return new d(1,[w.fields[0]]);{const y=w.fields[0]|0;return bt(y,wt(h),{Equals:(S,b)=>S===b,GetHashCode:He})?new d(0,[gt(h,lu(y))]):new d(1,[[p,new x(1,[te(h),g,"Unkown value provided for the enum"])]])}};case"System.UInt16":return u=>m=>{const h=r,p=u,g=m,w=Ko(p)(g);if(w.tag===1)return new d(1,[w.fields[0]]);{const y=w.fields[0];return bt(y,wt(h),{Equals:(S,b)=>S===b,GetHashCode:He})?new d(0,[gt(h,y.toString())]):new d(1,[[p,new x(1,[te(h),g,"Unkown value provided for the enum"])]])}};case"System.Int32":return u=>m=>{const h=r,p=u,g=m,w=Yo(p)(g);if(w.tag===1)return new d(1,[w.fields[0]]);{const y=w.fields[0]|0;return bt(y,wt(h),{Equals:(S,b)=>S===b,GetHashCode:He})?new d(0,[gt(h,ft(y))]):new d(1,[[p,new x(1,[te(h),g,"Unkown value provided for the enum"])]])}};case"System.UInt32":return u=>m=>{const h=r,p=u,g=m,w=Xo(p)(g);if(w.tag===1)return new d(1,[w.fields[0]]);{const y=w.fields[0];return bt(y,wt(h),{Equals:(S,b)=>S===b,GetHashCode:He})?new d(0,[gt(h,y.toString())]):new d(1,[[p,new x(1,[te(h),g,"Unkown value provided for the enum"])]])}};default:{const u=te(r),m=Gu(Nt(`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(tl(r))if(hi(r)){const f=Mn(u=>Me(e,t,!1,u),il(r));return u=>m=>Array.isArray(m)?Ye(h=>fl(tn(h)),Ki(0,f,u,m)):new d(1,[[u,new S(0,["an array",m])]])}else switch(te(nl(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=Me(e,t,!0,ue(0,He(r))),u=>m=>Cd(J(o),u,m);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return s=Me(e,t,!1,ue(0,He(r))),u=>m=>Qo(J(s),u,m);case"System.Collections.Generic.IEnumerable`1[System.Object]":return i=Me(e,t,!1,ue(0,He(r))),u=>m=>Ad(J(i),u,m);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const u=Me(e,t,!1,ue(0,He(r))),m=Me(e,t,!1,ue(1,He(r)));let h;const p=k([g=>w=>Id(J(u),J(m),g,w),(a=Md(J(u),J(m)),g=>w=>Qo(J(a),g,w))]);return h=g=>w=>Ed(p,g,w),g=>w=>Fd(Td,J(h),g,w)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const u=Me(e,t,!1,ue(0,He(r)));return m=>h=>{const p=es(J(u),m,h);return p.tag===0?new d(0,[$d(p.fields[0])]):new d(1,[p.fields[0]])}}default:return rs(e,t,n,r)}else switch(c){case"System.Boolean":return f=>u=>bd(f,u);case"Microsoft.FSharp.Core.Unit":return f=>u=>gd(f,u);case"System.String":return f=>u=>Ji(f,u);case"System.Char":return f=>u=>_d(f,u);case"System.SByte":return Wo;case"System.Byte":return qo;case"System.Int16":return Zo;case"System.UInt16":return Jo;case"System.Int32":return Ko;case"System.UInt32":return Yo;case"System.Double":return f=>u=>yd(f,u);case"System.Single":return f=>u=>vd(f,u);case"System.DateTime":return f=>u=>xd(f,u);case"System.DateTimeOffset":return f=>u=>Sd(f,u);case"System.TimeSpan":return f=>u=>kd(f,u);case"System.Guid":return f=>u=>wd(f,u);case"System.Object":return f=>u=>new d(0,[u]);default:return rs(e,t,n,r)}else{const f=l;return u=>m=>f.contents(u)(m)}}function Od(e){return $i({Compare:Nr})}function Yi(e,t,n){const r=Tr(t,new Rr(0,[]));return Me(Od(),r,!1,e)}class Ld extends K{constructor(t){super(),this.SmsfChoice=t}}function Vd(){return Qt("SuperSelection.UI.BackendService.SMSFChoiceResponse",[],Ld,()=>[["SmsfChoice",Gt(Dd())]])}class Pd extends K{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 Dd(){return Qt("SuperSelection.UI.BackendService.SMSFChoiceDto",[],Pd,()=>[["Abn",oe],["FundName",oe],["FundAddress",Ud()],["Bsb",oe],["BankAccountName",oe],["BankAccountNumber",oe],["ElectronicServiceAddress",oe],["MemberFirstName",Gt(oe)],["MemberFamilyName",Gt(oe)]])}class Rd extends K{constructor(t,n,r,o,s){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.State=o,this.Postcode=s}}function Ud(){return Qt("SuperSelection.UI.BackendService.AustralianFundAddressDto",[],Rd,()=>[["AddressLine1",oe],["AddressLine2",Gt(oe)],["City",oe],["State",oe],["Postcode",oe]])}class zd extends K{constructor(t){super(),this.BankDetails=t}}function Hd(){return Qt("SuperSelection.UI.BackendService.BsbLookupResponse",[],zd,()=>[["BankDetails",Gt(Gd())]])}class jd extends K{constructor(t,n,r){super(),this.Bsb=t,this.Bank=n,this.Branch=r}}function Gd(){return Qt("SuperSelection.UI.BackendService.BankDetailsDto",[],jd,()=>[["Bsb",oe],["Bank",oe],["Branch",oe]])}class Wd{constructor(t,n){this.accessToken=n,this.baseUrl=`${t}/super-selection/backend`}}function qd(e,t){return new Wd(e,t)}function Zd(e){return Kd(e,5,Q.Delay(()=>{let t;return Q.Bind(Vi((t=Oi(new Pr(0,[]),Ii(`${e.baseUrl}/v1.0/super-choice/smsf`)),Li(Bi(`Bearer ${e.accessToken}`),t))),n=>{const r=n;return r.statusCode===200?Q.Return(Zi(J(Yi(Vd(),new Rr(1,[]))),r.responseText)):Q.Return(new d(1,["Failed to retrieve SMSF choice"]))})}))}function Jd(e,t){return Q.Delay(()=>{let n;return Q.Bind(Vi((n=Oi(new Pr(0,[]),Ii(`${e.baseUrl}/v1.0/bsb-lookup/${t}`)),Li(Bi(`Bearer ${e.accessToken}`),n))),r=>{const o=r;return o.statusCode===200?Q.Return(Zi(J(Yi(Hd(),new Rr(1,[]))),o.responseText)):Q.Return(new d(1,["Failed to lookup BSB"]))})})}function Kd(e,t,n){const r=o=>Q.Delay(()=>Q.Bind(n,s=>{const i=s;return i.tag===1?o>1?Q.Bind(Dl(1e3),()=>Q.ReturnFrom(r(o-1))):Q.Return(new d(1,[i.fields[0]])):Q.Return(new d(0,[i.fields[0]]))}));return r(t)}class Yd{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function Xd(e,t){t.Subscribe(new Yd(e))}class Qd{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 tf(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 ef extends Qd{}function tf(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 nf{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 ef}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 rf(e,t){console.error(Ie(e),t)}function of(e,t){let n,r=new nf(e);r.AutoReset=!1,n=r,Xd(t,n.Elapsed()),n.Enabled=!0,n.Start()}function os(e,t,n){vn(r=>{try{r(t)}catch(o){e(o)}},n)}function H(){return se()}function zr(e,t){return Lr(n=>r=>{n(o=>{r(e(o))})},t)}function Hr(e){return B(e)}function Xi(e,t,n,r){return B(o=>{e(Q.Delay(()=>Q.Bind(Vl(t(n)),s=>{const i=s;return i.tag===0&&o(r(i.fields[0])),Q.Zero()})))})}function Qi(e){of(1,t=>{Ul(e)})}class sf extends K{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 jr(e,t){const n={detail:t};return new CustomEvent(e,n)}const af=jr("smsf-loaded",{sender:"super-smsf"}),uf=jr("smsf-cancelled",{sender:"super-smsf"});function lf(e){return jr("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 Gr extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loaded","Cancelled","Completed"]}}function Wr(e){let t;t=e.tag===1?uf:e.tag===2?lf(e.fields[0]):af,document.dispatchEvent(t)}function cf(e){return Hr(t=>{Wr(new Gr(2,[e]))})}function df(){return Hr(e=>{Wr(new Gr(0,[]))})}function ff(){return Hr(e=>{Wr(new Gr(1,[]))})}function hf(){return se()}function qr(e){return G("/",e)}function mf(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+qr(t),n])}function ea(e,t,n){try{Z(n)}catch(r){e(["Error stopping subscription: "+qr(t),r])}}function pf(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+qr(n),o]);return}}function _f(e,t){vn(n=>{ea(e,n[0],n[1])},t)}function ss(e,t,n,r,o,s){return vn(i=>{mf(e,i)},n),vn(i=>{ea(e,i[0],i[1])},r),Or(o,El(i=>pf(e,t,i[0],i[1]),s))}function wf(){return[se(),fd({Compare:Se}),se()]}function gf(e,t,n,r,o){return ir(e,r)?[ge(e,n),r,o]:[n,dd(e,r),ge([e,t],o)]}function bf(e){return bl((t,n)=>gf(t[0],t[1],n[0],n[1],n[2]),e,wf())}const yf=se();function is(e,t){const n=hd(Lr(i=>i[0],e),{Compare:Se}),r=bf(t),o=r[1],s=r[0];if(n.Equals(o))return[s,se(),e,se()];{const i=Al(a=>ir(a[0],o),e);return[s,i[1],i[0],Cl(a=>!ir(a[0],n),r[2])]}}function vf(e,t,n,r){const o=Se(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=Se(i,t)|0;return s&&a<=0||!s&&a>=0?[i,r(i,e)]:void 0}}function xf(e,t,n,r,o){const s=vf(t,n,r,o);return V(()=>rc(s,e))}function Sf(e,t,n){return xf(e,t,n,0,(r,o)=>r+o)}class Ct extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class kf{constructor(t){this.state=new Ct(0,[Br(new Array(No(t,10)),0,No(t,10),null),0])}}function Cf(e){return new kf(e)}function as(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 Ct(0,[o,n]):e.state=new Ct(1,[o,n,s]),Ie(ue(r,o))}else return}function Af(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];ot(s,r,t);const i=(r+1)%s.length|0;i===o?e.state=new Ct(1,[Ef(e,o,s),s.length,0]):e.state=new Ct(1,[s,i,o])}else{const r=n.fields[1]|0,o=n.fields[0];ot(o,r,t);const s=(r+1)%o.length|0;e.state=new Ct(1,[o,s,r])}}function Ef(e,t,n){return Array.from(V(()=>he(lc(t,n),V(()=>he(cc(t,n),V(()=>dc(r=>j(Je()),Sf(0,1,n.length))))))))}class Zr extends K{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 ta(e,t,n){return new Zr(e,t,r=>hf(),n,J(r=>{const o=$(n)(r);return s=>{o(s)}}),r=>{rf(r[0],r[1])},[r=>!1,r=>{}])}function Nf(e,t){return new Zr(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function Ff(e){return e.init}function Mf(e,t,n,r,o,s,i){const a=$(e)(i.init),c=Un(t)($(i.update)),l=Un(n)($(i.view)),f=Un(r)($(i.setState));return new Zr(a,J(c),$(o)(i.subscribe),J(l),J(f),i.onError,s(i.termination))}function Tf(e,t,n){let r;const o=n.init(t),s=o[0],i=n.subscribe(s),a=n.termination,c=Cf(10);let l=!1,f=s,u=yf,m=!1;const h=w=>{m||(Af(c,w),l||(l=!0,g(),l=!1))},p=$(e)(h),g=()=>{let w,y=as(c);for(;!m&&y!=null;){const x=v(y);if(a[0](x))_f(n.onError,u),a[1](f),m=!0;else{const b=n.update(x,f),U=b[0],ne=n.subscribe(U);n.setState(U,p),os(Ae=>{n.onError([Ht(Nt("Error handling the message: %A"))(x),Ae])},p,b[1]),f=U,u=(w=is(u,ne),ss(n.onError,p,w[0],w[1],w[2],w[3])),y=as(c)}}};l=!0,n.setState(s,p),os(w=>{n.onError([Ht(Nt("Error intitializing:")),w])},p,o[1]),u=(r=is(u,i),ss(n.onError,p,r[0],r[1],r[2],r[3])),g(),l=!1}function $f(e,t){Tf(J(n=>n),e,t)}function Bf(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 na={exports:{}},ra={};const If=Bf(nu);/**
23
+ `))(u);return h=>m(h)}}else if(tl(r))if(mi(r)){const f=Mn(u=>Te(e,t,!1,u),il(r));return u=>m=>Array.isArray(m)?Ye(h=>fl(tn(h)),Yi(0,f,u,m)):new d(1,[[u,new x(0,["an array",m])]])}else switch(te(nl(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=Te(e,t,!0,ue(0,je(r))),u=>m=>Cd(J(o),u,m);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return s=Te(e,t,!1,ue(0,je(r))),u=>m=>es(J(s),u,m);case"System.Collections.Generic.IEnumerable`1[System.Object]":return i=Te(e,t,!1,ue(0,je(r))),u=>m=>Ad(J(i),u,m);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const u=Te(e,t,!1,ue(0,je(r))),m=Te(e,t,!1,ue(1,je(r)));let h;const p=k([g=>w=>Id(J(u),J(m),g,w),(a=Md(J(u),J(m)),g=>w=>es(J(a),g,w))]);return h=g=>w=>Ed(p,g,w),g=>w=>Fd(Td,J(h),g,w)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const u=Te(e,t,!1,ue(0,je(r)));return m=>h=>{const p=ts(J(u),m,h);return p.tag===0?new d(0,[$d(p.fields[0])]):new d(1,[p.fields[0]])}}default:return os(e,t,n,r)}else switch(c){case"System.Boolean":return f=>u=>bd(f,u);case"Microsoft.FSharp.Core.Unit":return f=>u=>gd(f,u);case"System.String":return f=>u=>Ki(f,u);case"System.Char":return f=>u=>_d(f,u);case"System.SByte":return qo;case"System.Byte":return Zo;case"System.Int16":return Jo;case"System.UInt16":return Ko;case"System.Int32":return Yo;case"System.UInt32":return Xo;case"System.Double":return f=>u=>yd(f,u);case"System.Single":return f=>u=>vd(f,u);case"System.DateTime":return f=>u=>Sd(f,u);case"System.DateTimeOffset":return f=>u=>xd(f,u);case"System.TimeSpan":return f=>u=>kd(f,u);case"System.Guid":return f=>u=>wd(f,u);case"System.Object":return f=>u=>new d(0,[u]);default:return os(e,t,n,r)}else{const f=l;return u=>m=>f.contents(u)(m)}}function Od(e){return Bi({Compare:Fr})}function Xi(e,t,n){const r=$r(t,new Ur(0,[]));return Te(Od(),r,!1,e)}class Ld extends K{constructor(t){super(),this.SmsfChoice=t}}function Vd(){return Qt("SuperSelection.UI.BackendService.SMSFChoiceResponse",[],Ld,()=>[["SmsfChoice",Gt(Dd())]])}class Pd extends K{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 Dd(){return Qt("SuperSelection.UI.BackendService.SMSFChoiceDto",[],Pd,()=>[["Abn",oe],["FundName",oe],["FundAddress",Ud()],["Bsb",oe],["BankAccountName",oe],["BankAccountNumber",oe],["ElectronicServiceAddress",oe],["MemberFirstName",Gt(oe)],["MemberFamilyName",Gt(oe)]])}class Rd extends K{constructor(t,n,r,o,s){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.State=o,this.Postcode=s}}function Ud(){return Qt("SuperSelection.UI.BackendService.AustralianFundAddressDto",[],Rd,()=>[["AddressLine1",oe],["AddressLine2",Gt(oe)],["City",oe],["State",oe],["Postcode",oe]])}class zd extends K{constructor(t){super(),this.BankDetails=t}}function Hd(){return Qt("SuperSelection.UI.BackendService.BsbLookupResponse",[],zd,()=>[["BankDetails",Gt(Gd())]])}class jd extends K{constructor(t,n,r){super(),this.Bsb=t,this.Bank=n,this.Branch=r}}function Gd(){return Qt("SuperSelection.UI.BackendService.BankDetailsDto",[],jd,()=>[["Bsb",oe],["Bank",oe],["Branch",oe]])}class Wd{constructor(t,n){this.accessToken=n,this.baseUrl=`${t}/super-selection/backend`}}function qd(e,t){return new Wd(e,t)}function Zd(e){return Kd(e,5,Q.Delay(()=>{let t;return Q.Bind(Pi((t=Li(new Dr(0,[]),Oi(`${e.baseUrl}/v1.0/super-choice/smsf`)),Vi(Ii(`Bearer ${e.accessToken}`),t))),n=>{const r=n;return r.statusCode===200?Q.Return(Ji(J(Xi(Vd(),new Ur(1,[]))),r.responseText)):Q.Return(new d(1,["Failed to retrieve SMSF choice"]))})}))}function Jd(e,t){return Q.Delay(()=>{let n;return Q.Bind(Pi((n=Li(new Dr(0,[]),Oi(`${e.baseUrl}/v1.0/bsb-lookup/${t}`)),Vi(Ii(`Bearer ${e.accessToken}`),n))),r=>{const o=r;return o.statusCode===200?Q.Return(Ji(J(Xi(Hd(),new Ur(1,[]))),o.responseText)):Q.Return(new d(1,["Failed to lookup BSB"]))})})}function Kd(e,t,n){const r=o=>Q.Delay(()=>Q.Bind(n,s=>{const i=s;return i.tag===1?o>1?Q.Bind(Dl(1e3),()=>Q.ReturnFrom(r(o-1))):Q.Return(new d(1,[i.fields[0]])):Q.Return(new d(0,[i.fields[0]]))}));return r(t)}class Yd{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function Xd(e,t){t.Subscribe(new Yd(e))}class Qd{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 tf(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 ef extends Qd{}function tf(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 nf{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 ef}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 rf(e,t){console.error(Ie(e),t)}function of(e,t){let n,r=new nf(e);r.AutoReset=!1,n=r,Xd(t,n.Elapsed()),n.Enabled=!0,n.Start()}function ss(e,t,n){vn(r=>{try{r(t)}catch(o){e(o)}},n)}function H(){return se()}function Hr(e,t){return Vr(n=>r=>{n(o=>{r(e(o))})},t)}function jr(e){return B(e)}function Qi(e,t,n,r){return B(o=>{e(Q.Delay(()=>Q.Bind(Vl(t(n)),s=>{const i=s;return i.tag===0&&o(r(i.fields[0])),Q.Zero()})))})}function ea(e){of(1,t=>{Ul(e)})}class sf extends K{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 Gr(e,t){const n={detail:t};return new CustomEvent(e,n)}const af=Gr("smsf-loaded",{sender:"super-smsf"}),uf=Gr("smsf-cancelled",{sender:"super-smsf"});function lf(e){return Gr("smsf-completed",{bankAccountName:e.BankAccountName,bankAccountNumber:e.BankAccountNumber,bankBsb:e.BankAccountBsb,fundAbn:e.FundAbn,fundAddressLine1:e.FundAddressLine1,fundAddressLine2:di(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 Wr extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loaded","Cancelled","Completed"]}}function qr(e){let t;t=e.tag===1?uf:e.tag===2?lf(e.fields[0]):af,document.dispatchEvent(t)}function cf(e){return jr(t=>{qr(new Wr(2,[e]))})}function df(){return jr(e=>{qr(new Wr(0,[]))})}function ff(){return jr(e=>{qr(new Wr(1,[]))})}function hf(){return se()}function Zr(e){return G("/",e)}function mf(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Zr(t),n])}function ta(e,t,n){try{Z(n)}catch(r){e(["Error stopping subscription: "+Zr(t),r])}}function pf(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+Zr(n),o]);return}}function _f(e,t){vn(n=>{ta(e,n[0],n[1])},t)}function is(e,t,n,r,o,s){return vn(i=>{mf(e,i)},n),vn(i=>{ta(e,i[0],i[1])},r),Lr(o,El(i=>pf(e,t,i[0],i[1]),s))}function wf(){return[se(),fd({Compare:ke}),se()]}function gf(e,t,n,r,o){return ar(e,r)?[ge(e,n),r,o]:[n,dd(e,r),ge([e,t],o)]}function bf(e){return bl((t,n)=>gf(t[0],t[1],n[0],n[1],n[2]),e,wf())}const yf=se();function as(e,t){const n=hd(Vr(i=>i[0],e),{Compare:ke}),r=bf(t),o=r[1],s=r[0];if(n.Equals(o))return[s,se(),e,se()];{const i=Al(a=>ar(a[0],o),e);return[s,i[1],i[0],Cl(a=>!ar(a[0],n),r[2])]}}function vf(e,t,n,r){const o=ke(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const s=o>0;return i=>{const a=ke(i,t)|0;return s&&a<=0||!s&&a>=0?[i,r(i,e)]:void 0}}function Sf(e,t,n,r,o){const s=vf(t,n,r,o);return V(()=>rc(s,e))}function xf(e,t,n){return Sf(e,t,n,0,(r,o)=>r+o)}class Ct extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class kf{constructor(t){this.state=new Ct(0,[Ir(new Array(Fo(t,10)),0,Fo(t,10),null),0])}}function Cf(e){return new kf(e)}function us(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 Ct(0,[o,n]):e.state=new Ct(1,[o,n,s]),Ie(ue(r,o))}else return}function Af(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];ot(s,r,t);const i=(r+1)%s.length|0;i===o?e.state=new Ct(1,[Ef(e,o,s),s.length,0]):e.state=new Ct(1,[s,i,o])}else{const r=n.fields[1]|0,o=n.fields[0];ot(o,r,t);const s=(r+1)%o.length|0;e.state=new Ct(1,[o,s,r])}}function Ef(e,t,n){return Array.from(V(()=>he(lc(t,n),V(()=>he(cc(t,n),V(()=>dc(r=>j(Je()),xf(0,1,n.length))))))))}class Jr extends K{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 na(e,t,n){return new Jr(e,t,r=>hf(),n,J(r=>{const o=$(n)(r);return s=>{o(s)}}),r=>{rf(r[0],r[1])},[r=>!1,r=>{}])}function Nf(e,t){return new Jr(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function Ff(e){return e.init}function Mf(e,t,n,r,o,s,i){const a=$(e)(i.init),c=zn(t)($(i.update)),l=zn(n)($(i.view)),f=zn(r)($(i.setState));return new Jr(a,J(c),$(o)(i.subscribe),J(l),J(f),i.onError,s(i.termination))}function Tf(e,t,n){let r;const o=n.init(t),s=o[0],i=n.subscribe(s),a=n.termination,c=Cf(10);let l=!1,f=s,u=yf,m=!1;const h=w=>{m||(Af(c,w),l||(l=!0,g(),l=!1))},p=$(e)(h),g=()=>{let w,y=us(c);for(;!m&&y!=null;){const S=v(y);if(a[0](S))_f(n.onError,u),a[1](f),m=!0;else{const b=n.update(S,f),U=b[0],ne=n.subscribe(U);n.setState(U,p),ss(Ee=>{n.onError([Ht(Nt("Error handling the message: %A"))(S),Ee])},p,b[1]),f=U,u=(w=as(u,ne),is(n.onError,p,w[0],w[1],w[2],w[3])),y=us(c)}}};l=!0,n.setState(s,p),ss(w=>{n.onError([Ht(Nt("Error intitializing:")),w])},p,o[1]),u=(r=as(u,i),is(n.onError,p,r[0],r[1],r[2],r[3])),g(),l=!1}function $f(e,t){Tf(J(n=>n),e,t)}function Bf(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 ra={exports:{}},oa={};const If=Bf(nu);/**
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 $t=If;function Of(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Lf=typeof Object.is=="function"?Object.is:Of,Vf=$t.useState,Pf=$t.useEffect,Df=$t.useLayoutEffect,Rf=$t.useDebugValue;function Uf(e,t){var n=t(),r=Vf({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return Df(function(){o.value=n,o.getSnapshot=t,Wn(o)&&s({inst:o})},[e,n,t]),Pf(function(){return Wn(o)&&s({inst:o}),e(function(){Wn(o)&&s({inst:o})})},[e]),Rf(n),n}function Wn(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Lf(e,n)}catch{return!0}}function zf(e,t){return t()}var Hf=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?zf:Uf;ra.useSyncExternalStore=$t.useSyncExternalStore!==void 0?$t.useSyncExternalStore:Hf;na.exports=ra;var jf=na.exports;class Gf{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),s=[];this.finalDispatch=void 0;let i;const a=Ff(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=Qn(this.state[0]);return $f(this.arg,Nf((h,p)=>{const g=this.state;this.finalDispatch=p,this.state=[h,g[1],!0,s],h!==g[0]&&f()},Mf((h,p)=>{const g=this.cmd;return this.cmd=H(),[this.state[0],g]},(h,p,g)=>h(p)(this.state[0]),tr(h=>h),tr(h=>h),J(h=>h),h=>[p=>h[0](p)?!0:m&&u,p=>{const g=p;Qn(g)?Z(g):h[1](p)}],o))),()=>{u=!0}}}}function us(e,t,n){return new Gf(e,t,n)}function Wf(e){return e.state}function qf(e){return e.subscribe}function Zf(e,t,n){return Be(e.arg,t)?!Be(e.dependencies,n):!0}function oa(e,t,n){const r=Bt(()=>us(e,t,n)),o=r[0];Zf(o,t,n)&&r[1](us(e,t,n));const s=jf.useSyncExternalStore(qf(o),()=>Wf(o)),i=s[2],a=s[3],c=s[1];return Zt(()=>{if(i&&a.length>0){let l=X(a);try{for(;l["System.Collections.IEnumerator.MoveNext"]();){const f=l["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{c(f)})}}finally{Z(l)}_u(a)}},[i,a]),[s[0],c]}function Ve(e,t){return li(t)?new d(1,[`${e} is required`]):new d(0,[t])}function it(e,t,n){return n.length>=t?new d(0,[n]):new d(1,[`${e} requires a minimum length of ${t} characters`])}function Jr(e,t,n){return n.length<=t?new d(0,[n]):new d(1,[`${e} exceeds maximum length of ${t} characters`])}function Kr(e){return e.trim()}function sa(e){return Mr(e,"\\s+","")}function Vn(e,t,n){return Hu(oi(t),n)?new d(0,[n]):new d(1,[`${e} is invalid`])}function Jf(e){return Mr(e,"[^0-9]","")}class ar extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class Yr extends K{constructor(t,n,r,o){super(),this.Value=t,this.IsTouched=n,this.Validator=r,this.ErrorMessage=o}}class ye extends K{constructor(t,n,r){super(),this.Field=t,this.OnBlur=n,this.OnChange=r}}function Ce(e,t){return new Yr(Tr(t,""),!1,e,void 0)}function Kf(e,t){let n;return new Yr(t,e.IsTouched,e.Validator,(n=e.Validator(t),n.tag===1&&e.IsTouched?n.fields[0]:void 0))}function pe(e){let t;return new Yr(e.Value,!0,e.Validator,(t=e.Validator(e.Value),t.tag===1?t.fields[0]:void 0))}function Xr(e){const t=e.target,n=Jf(t.value);return t.value=n,n}class Yf extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundName"]}}function ia(e){let t;const n=Ve("Fund name",Kr(e));return t=n.tag===1?new d(1,[n.fields[0]]):it("Fund name",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Yf(t.fields[0])])}function aa(e){return Ce(ia,e)}function Xf(e){return e.fields[0]}class Qf extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundAbn"]}}function ua(e){const t=ke(Pe(o=>~~o.charCodeAt(0)-48,e.split(""))),n=k([10,1,3,5,7,9,11,13,15,17,19]),r=gi(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=Fo(t)===Fo(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=vl((i,a,c)=>i+a*c,0,Sl((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 Qf(e)])}}}function la(e){return Ce(ua,e)}function eh(e){return e.fields[0]}class th extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundEsa"]}}function ca(e){let t;const n=Ve("Fund ESA",Kr(e));return t=n.tag===1?new d(1,[n.fields[0]]):it("Fund ESA",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new th(t.fields[0])])}function da(e){return Ce(ca,e)}function nh(e){return e.fields[0]}class rh extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AddressLine1"]}}function fa(e){let t;const n=Ve("Address Line 1",e);return t=n.tag===1?new d(1,[n.fields[0]]):it("Address Line 1",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new rh(t.fields[0])])}function ha(e){return Ce(fa,e)}function oh(e){return e.fields[0]}class sh extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AddressLine2"]}}function ma(e){if(li(e))return new d(0,[void 0]);{const t=it("Address Line 1",2,e);return t.tag===1?new d(1,[t.fields[0]]):new d(0,[new sh(t.fields[0])])}}function pa(e){return Ce(ma,e)}function ih(e){if(e!=null)return e.fields[0]}class ah extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["City"]}}function _a(e){const t=Ve("City",e);return t.tag===1?new d(1,[t.fields[0]]):new d(0,[new ah(t.fields[0])])}function wa(e){return Ce(_a,e)}function uh(e){return e.fields[0]}class et extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NSW","QLD","ACT","VIC","TAS","WA","SA","NT"]}}function ga(e){const t=Ve("State",e);if(t.tag===1)return new d(1,[t.fields[0]]);switch(t.fields[0]){case"NSW":return new d(0,[new et(0,[])]);case"QLD":return new d(0,[new et(1,[])]);case"ACT":return new d(0,[new et(2,[])]);case"VIC":return new d(0,[new et(3,[])]);case"TAS":return new d(0,[new et(4,[])]);case"WA":return new d(0,[new et(5,[])]);case"SA":return new d(0,[new et(6,[])]);case"NT":return new d(0,[new et(7,[])]);default:return new d(1,["Select a state'"])}}function ba(e){return Ce(ga,e)}function lh(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 ch extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Postcode"]}}function ya(e){let t,n;const r=Ve("Postcode",e);return n=r.tag===1?new d(1,[r.fields[0]]):it("Postcode",4,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):Jr("Postcode",4,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new ch(t.fields[0])])}function va(e){return Ce(ya,e)}function dh(e){return e.fields[0]}class fh extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberFirstName"]}}const hh="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function xa(e){let t;const n=Ve("Member given name(s)",e);return t=n.tag===1?new d(1,[n.fields[0]]):Vn("Member given name(s)",hh,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new fh(t.fields[0])])}function Sa(e){return Ce(xa,e)}function mh(e){return e.fields[0]}class ph extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberLastName"]}}const _h="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function ka(e){let t;const n=Ve("Last Name",e);return t=n.tag===1?new d(1,[n.fields[0]]):Vn("Last Name",_h,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new ph(t.fields[0])])}function Ca(e){return Ce(ka,e)}function wh(e){return e.fields[0]}class gh extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountName"]}}function Aa(e){let t;const n=Ve("Account name",Kr(e));return t=n.tag===1?new d(1,[n.fields[0]]):it("Account name",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new gh(t.fields[0])])}function Ea(e){return Ce(Aa,e)}function bh(e){return e.fields[0]}class yh extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountBsb"]}}function kn(e){let t,n,r;const o=Ve("BSB",sa(e));return r=o.tag===1?new d(1,[o.fields[0]]):it("BSB",6,o.fields[0]),n=r.tag===1?new d(1,[r.fields[0]]):Jr("BSB",6,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):Vn("BSB","^\\d{6}$",n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new yh(t.fields[0])])}function vh(e){return e.fields[0]}class xh extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountNumber"]}}function Na(e){let t,n,r;const o=Ve("Account Number",sa(e));return r=o.tag===1?new d(1,[o.fields[0]]):it("Account Number",2,o.fields[0]),n=r.tag===1?new d(1,[r.fields[0]]):Jr("Account Number",11,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):Vn("Account Number","^\\d{2,11}$",n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new xh(t.fields[0])])}function Fa(e){return Ce(Na,e)}function Sh(e){return e.fields[0]}class kh extends K{constructor(t,n,r,o,s){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.AddressState=o,this.Postcode=s}}const Ch=_("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=B(_("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))]})()]))),Ah=_("div",E(k([["className","bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"],(()=>{let e;const t=[_("div",E(k([["className","flex"],(e=[_("div",{className:"flex-shrink-0",children:C.Children.toArray([Ch])}),_("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 Xe(e){if(e==null)return Je();{const t=e;return _("div",{className:G(" ",["mt-2 text-sm text-red-600"]),children:t})}}function nn(e){return ke(V(()=>he(j("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"),V(()=>e?j("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Ue()))))}function Eh(e){let t,n;return _("div",E(k([["className","mt-3"],(t=[_("label",{className:"text-sm font-medium text-gray-700",for:"fundName",children:"Fund name"}),_("div",E(k([["className","mt-1"],(n=[_("input",{type:"text",className:G(" ",nn(e.Field.ErrorMessage!=null)),id:"fundName",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Xe(e.Field.ErrorMessage)],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}function Nh(e){let t,n;return _("div",E(k([["className","mt-3"],(t=[_("label",{className:"text-sm font-medium text-gray-700",for:"fundAbn",children:"Fund ABN"}),_("div",E(k([["className","mt-1"],(n=[_("input",{id:"fundAbn",type:"text",inputmode:"numeric",value:e.Field.Value,className:G(" ",nn(e.Field.ErrorMessage!=null)),onKeyUp:r=>{e.OnChange(Xr(r))},onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Xe(e.Field.ErrorMessage)],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}function Fh(e){let t,n;return _("div",E(k([["className","mt-3"],(t=[_("label",{className:"text-sm font-medium text-gray-700",for:"fundEsa",children:"Electronic service address alias (ESA)"}),_("div",E(k([["className","mt-1"],(n=[_("input",{id:"fundEsa",type:"text",value:e.Field.Value,className:G(" ",nn(e.Field.ErrorMessage!=null)),onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Xe(e.Field.ErrorMessage)],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}function Mh(e,t){return _("input",{placeholder:"Address line 1",type:"text",className:G(" ",ke(V(()=>he(j("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"),V(()=>e&&t.Field.ErrorMessage!=null?j("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Ue()))))),required:!0,minLength:2,id:"addressLine1",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function Th(e,t){return _("input",{placeholder:"Address line 2 (optional)",type:"text",className:G(" ",ke(V(()=>he(j("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"),V(()=>e&&t.Field.ErrorMessage!=null?j("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Ue()))))),id:"addressLine2",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function $h(e,t){return _("input",{placeholder:"City/suburb",type:"text",className:G(" ",ke(V(()=>he(j("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"),V(()=>e&&t.Field.ErrorMessage!=null?j("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Ue()))))),required:!0,id:"city",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function Bh(e,t){let n;return _("div",E(k([["className","flex-1 min-w-0"],(n=[_("input",{placeholder:"Postcode",type:"text",required:!0,className:G(" ",ke(V(()=>he(j("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"),V(()=>e&&t.Field.ErrorMessage!=null?j("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Ue()))))),minLength:4,maxLength:4,pattern:"[0-9]{4}",inputmode:"numeric",id:"postcode",value:t.Field.Value,onBlur:t.OnBlur,onChange:r=>{t.OnChange(r.target.value)}})],["children",C.Children.toArray(Array.from(n))])])))}function Ih(e,t){let n;const r=_("option",{disabled:!0,value:"",children:"State",selected:t.Field.Value===""}),o=Lr(s=>_("option",{value:s,children:s,selected:t.Field.Value===s}),k(["NSW","QLD","ACT","VIC","TAS","WA","SA","NT"]));return _("div",E(k([["className","w-1/2 flex-1 min-w-0"],(n=[_("select",{className:G(" ",ke(V(()=>he(j("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"),V(()=>e&&t.Field.ErrorMessage!=null?j("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Ue()))))),id:"state",required:!0,children:C.Children.toArray(Array.from(ge(r,o))),onBlur:t.OnBlur,onChange:s=>{t.OnChange(s.target.value)}})],["children",C.Children.toArray(Array.from(n))])])))}function Oh(e){let t,n,r,o;const s=a=>a.IsTouched;o=gi(a=>a,k([s(e.AddressLine1.Field),s(e.City.Field),s(e.AddressState.Field),s(e.Postcode.Field)]));const i=kl(a=>a,k([e.AddressLine1.Field.ErrorMessage,e.City.Field.ErrorMessage,e.AddressState.Field.ErrorMessage,e.Postcode.Field.ErrorMessage]));return _("div",E(k([["className","mt-3"],(t=[_("label",{className:"text-sm font-medium text-gray-700",children:"Fund address"}),_("div",E(k([["className","mt-1 rounded-md shadow-sm -space-y-px"],(n=[Mh(o,e.AddressLine1),Th(o,e.AddressLine2),$h(o,e.City),_("div",E(k([["className","flex -space-x-px"],(r=[Bh(o,e.Postcode),Ih(o,e.AddressState)],["children",C.Children.toArray(Array.from(r))])])))],["children",C.Children.toArray(Array.from(n))])]))),Xe(o?i:void 0)],["children",C.Children.toArray(Array.from(t))])])))}function Lh(e){let t,n;return _("div",E(k([["className","mt-3 w-1/2"],(t=[_("label",{className:"text-sm font-medium text-gray-700",for:"memberGivenNames",children:"Given name(s)"}),_("div",E(k([["className","mt-1"],(n=[_("input",{type:"text",className:G(" ",nn(e.Field.ErrorMessage!=null)),id:"memberGivenNames",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Xe(e.Field.ErrorMessage)],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}function Vh(e){let t,n;return _("div",E(k([["className","mt-3 w-1/2"],(t=[_("label",{className:"text-sm font-medium text-gray-700",for:"memberLastNames",children:"Last name"}),_("div",E(k([["className","mt-1"],(n=[_("input",{type:"text",className:G(" ",nn(e.Field.ErrorMessage!=null)),id:"memberLastName",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Xe(e.Field.ErrorMessage)],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}function Ph(e){let t,n;const r=e.Field.IsTouched&&e.Field.ErrorMessage!=null;return _("div",E(k([["className","mt-3"],(t=[_("label",{className:"text-sm font-medium text-gray-700",for:"bankAccountName",children:"Account name"}),_("div",E(k([["className","mt-1"],(n=[_("input",{id:"bankAccountName",type:"text",value:e.Field.Value,className:G(" ",ke(V(()=>he(j("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"),V(()=>r?j("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Ue()))))),onBlur:e.OnBlur,onChange:o=>{e.OnChange(o.target.value)}}),Xe(e.Field.ErrorMessage)],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}function Dh(e){let t,n;const r=e.Field.IsTouched&&e.Field.ErrorMessage!=null;return _("div",E(k([["className","mt-3"],(t=[_("label",{className:"text-sm font-medium text-gray-700",for:"bankAccountNumber",children:"Account number"}),_("div",E(k([["className","mt-1"],(n=[_("input",{id:"bankAccountNumber",type:"text",value:e.Field.Value,inputmode:"numeric",className:G(" ",ke(V(()=>he(j("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"),V(()=>r?j("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Ue()))))),onKeyUp:o=>{e.OnChange(Xr(o))},onBlur:e.OnBlur,onChange:o=>{e.OnChange(o.target.value)}}),Xe(e.Field.ErrorMessage)],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}function Rh(e,t){let n;return _("div",E(k([["className","mb-4"],(n=[_("div",E(ke(V(()=>he(e?Ue():j(["onClick",t]),V(()=>{let r;return j((r=[_("button",{className:G(" ",["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 Uh(e){let t,n,r;return _("div",E(B((t=[_("a",E(k([["href","/"],(n=[_("div",E(B((r=[_("button",{className:G(" ",["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))]))))}class zh extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankName"]}}function Hh(e){return e.fields[0]}function jh(e){return new zh(`${e.Bank} - ${e.Branch}`)}let ls=class extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}},Wt=class extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateBankAccountBsb","BsbLookup"]}};class qe extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotYetStarted","Pending","Valid","Invalid"]}}let Te=class extends K{constructor(t,n,r,o){super(),this.RawValue=t,this.IsTouched=n,this.Value=r,this.ErrorMessage=o}};function Ma(e,t){if(e==null)return[new Te("",!1,new qe(0,[]),void 0),H()];{const n=e,r=kn(n);return r.tag===1?[new Te(n,!1,new qe(3,[]),r.fields[0]),H()]:[new Te(n,!1,new qe(1,[]),void 0),B(o=>{o(new Wt(1,[new ar(0,[])]))})]}}function cs(e){return new Te(e.RawValue,e.IsTouched,new qe(3,[]),"Unable to identify the bank using the provided BSB number")}function Gh(e,t){let n;const r=kn(e.RawValue);return n=r.tag===1?[new qe(3,[]),r.fields[0]]:[new qe(2,[[r.fields[0],jh(t)]]),void 0],new Te(e.RawValue,e.IsTouched,n[0],n[1])}function Wh(e,t,n){if(t.tag===1)if(t.fields[0].tag===1){if(t.fields[0].fields[0].tag===1)return[cs(n),H()];{const r=t.fields[0].fields[0].fields[0].BankDetails;return r!=null?[Gh(n,r),H()]:[cs(n),H()]}}else return[n,Xi(r=>{Qi(r)},r=>Jd(e,r),n.RawValue,r=>new Wt(1,[new ar(1,[r])]))];else if(t.fields[0].tag===1){const r=kn(n.RawValue);return r.tag===1?[new Te(n.RawValue,!0,n.Value,r.fields[0]),H()]:[new Te(n.RawValue,!0,n.Value,void 0),H()]}else{const r=kn(t.fields[0].fields[0]);return r.tag===1?n.IsTouched?[new Te(t.fields[0].fields[0],n.IsTouched,new qe(0,[]),r.fields[0]),H()]:[new Te(t.fields[0].fields[0],n.IsTouched,new qe(0,[]),void 0),H()]:[new Te(t.fields[0].fields[0],n.IsTouched,new qe(1,[]),void 0),B(o=>{o(new Wt(1,[new ar(0,[])]))})]}}function qh(e){let t;return _("div",E(k([["className","mt-3"],(t=[_("label",{className:"text-sm font-medium text-gray-700",children:"Bank name"}),_("div",{className:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-sm",children:Hh(e)})],["children",C.Children.toArray(Array.from(t))])])))}function Zh(e){const t=e.dispatch,n=e.state,r=i=>{t(new Wt(0,[new ls(0,[i])]))},o=n.IsTouched&&n.ErrorMessage!=null,s=ke(V(()=>{let i,a;return he(j(_("div",E(k([["className","mt-3"],(i=[_("label",{className:"text-sm font-medium text-gray-700",for:"bankAccountBsb",children:"BSB"}),_("div",E(k([["className","mt-1"],(a=[_("input",{id:"bankAccountBsb",type:"text",value:n.RawValue,inputmode:"numeric",className:G(" ",ke(V(()=>he(j("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"),V(()=>o?j("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):Ue()))))),onKeyUp:c=>{r(Xr(c))},onBlur:c=>{t(new Wt(0,[new ls(1,[])]))},onChange:c=>{r(c.target.value)}}),Xe(n.ErrorMessage)],["children",C.Children.toArray(Array.from(a))])])))],["children",C.Children.toArray(Array.from(i))])])))),V(()=>{const c=n.Value;switch(c.tag){case 2:return j(qh(c.fields[0][1]));default:return j(Je())}}))}));return _(xe,{},...s)}class ds extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}}let I=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"]}};class Jh extends K{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}}let re=class extends K{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 tt extends K{constructor(t,n,r,o,s){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.AddressState=o,this.Postcode=s}}const Kh=(()=>{let e;const t=Ma(void 0);return e=[t[0],zr(n=>new I(11,[n]),t[1])],[new re(aa(void 0),la(void 0),da(void 0),new tt(ha(void 0),pa(void 0),wa(void 0),ba(void 0),va(void 0)),Sa(void 0),Ca(void 0),Ea(void 0),e[0],Fa(void 0),void 0),e[1]]})();function Yh(e){let t;const n=Ma(e.Bsb);return t=[n[0],zr(r=>new I(11,[r]),n[1])],[new re(aa(e.FundName),la(e.Abn),da(e.ElectronicServiceAddress),new tt(ha(e.FundAddress.AddressLine1),pa(e.FundAddress.AddressLine2),wa(e.FundAddress.City),ba(e.FundAddress.State),va(e.FundAddress.Postcode)),Sa(e.MemberFirstName),Ca(e.MemberFamilyName),Ea(e.BankAccountName),t[0],Fa(e.BankAccountNumber),void 0),t[1]]}function Xh(e){let t;return Tr((t=e,t==null?void 0:Yh(t)),Kh)}function Ta(e){let t;const n=ia(e.FundName.Value);if(t=n.tag===1?new d(1,[B(n.fields[0])]):new d(0,[n.fields[0]]),t.tag===1)return new d(1,[t.fields[0]]);{let r;const o=ua(e.FundAbn.Value);if(r=o.tag===1?new d(1,[B(o.fields[0])]):new d(0,[o.fields[0]]),r.tag===1)return new d(1,[r.fields[0]]);{let s;const i=ca(e.FundEsa.Value);if(s=i.tag===1?new d(1,[B(i.fields[0])]):new d(0,[i.fields[0]]),s.tag===1)return new d(1,[s.fields[0]]);{let a;const c=fa(e.FundAddress.AddressLine1.Value);if(a=c.tag===1?new d(1,[B(c.fields[0])]):new d(0,[c.fields[0]]),a.tag===1)return new d(1,[a.fields[0]]);{let l;const f=ma(e.FundAddress.AddressLine2.Value);if(l=f.tag===1?new d(1,[B(f.fields[0])]):new d(0,[f.fields[0]]),l.tag===1)return new d(1,[l.fields[0]]);{let u;const m=_a(e.FundAddress.City.Value);if(u=m.tag===1?new d(1,[B(m.fields[0])]):new d(0,[m.fields[0]]),u.tag===1)return new d(1,[u.fields[0]]);{let h;const p=ga(e.FundAddress.AddressState.Value);if(h=p.tag===1?new d(1,[B(p.fields[0])]):new d(0,[p.fields[0]]),h.tag===1)return new d(1,[h.fields[0]]);{let g;const w=ya(e.FundAddress.Postcode.Value);if(g=w.tag===1?new d(1,[B(w.fields[0])]):new d(0,[w.fields[0]]),g.tag===1)return new d(1,[g.fields[0]]);{let y;const x=xa(e.MemberFirstName.Value);if(y=x.tag===1?new d(1,[B(x.fields[0])]):new d(0,[x.fields[0]]),y.tag===1)return new d(1,[y.fields[0]]);{let b;const U=ka(e.MemberLastName.Value);if(b=U.tag===1?new d(1,[B(U.fields[0])]):new d(0,[U.fields[0]]),b.tag===1)return new d(1,[b.fields[0]]);{let ne;const Ae=Aa(e.BankAccountName.Value);if(ne=Ae.tag===1?new d(1,[B(Ae.fields[0])]):new d(0,[Ae.fields[0]]),ne.tag===1)return new d(1,[ne.fields[0]]);{let at;const ut=e.BankAccountBsb.Value;if(at=ut.tag===2?new d(0,[ut.fields[0][0]]):new d(1,[B("Bank BSB is invalid")]),at.tag===1)return new d(1,[at.fields[0]]);{let Qe;const ce=Na(e.BankAccountNumber.Value);return Qe=ce.tag===1?new d(1,[B(ce.fields[0])]):new d(0,[ce.fields[0]]),Qe.tag===1?new d(1,[Qe.fields[0]]):new d(0,[new Jh(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],at.fields[0],Qe.fields[0])])}}}}}}}}}}}}}function Qh(e){let t;return new re(pe(e.FundName),pe(e.FundAbn),pe(e.FundEsa),new tt(pe(e.FundAddress.AddressLine1),pe(e.FundAddress.AddressLine2),pe(e.FundAddress.City),pe(e.FundAddress.AddressState),pe(e.FundAddress.Postcode)),pe(e.MemberFirstName),pe(e.MemberLastName),pe(e.BankAccountName),(t=e.BankAccountBsb,new Te(t.RawValue,!0,t.Value,t.ErrorMessage)),pe(e.BankAccountNumber),e.BankName)}function ve(e,t,n){return n(e.tag===1?pe(t):Kf(t,e.fields[0]))}function e0(e,t,n){switch(t.tag){case 1:return[ve(t.fields[0],n.FundAbn,r=>new re(n.FundName,r,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),H()];case 2:return[ve(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)),H()];case 3:return[ve(t.fields[0],n.FundAddress.AddressLine1,r=>{let o;return new re(n.FundName,n.FundAbn,n.FundEsa,(o=n.FundAddress,new tt(r,o.AddressLine2,o.City,o.AddressState,o.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),H()];case 4:return[ve(t.fields[0],n.FundAddress.AddressLine2,r=>{let o;return new re(n.FundName,n.FundAbn,n.FundEsa,(o=n.FundAddress,new tt(o.AddressLine1,r,o.City,o.AddressState,o.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),H()];case 5:return[ve(t.fields[0],n.FundAddress.City,r=>{let o;return new re(n.FundName,n.FundAbn,n.FundEsa,(o=n.FundAddress,new tt(o.AddressLine1,o.AddressLine2,r,o.AddressState,o.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),H()];case 6:return[ve(t.fields[0],n.FundAddress.AddressState,r=>{let o;return new re(n.FundName,n.FundAbn,n.FundEsa,(o=n.FundAddress,new tt(o.AddressLine1,o.AddressLine2,o.City,r,o.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),H()];case 7:return[ve(t.fields[0],n.FundAddress.Postcode,r=>{let o;return new re(n.FundName,n.FundAbn,n.FundEsa,(o=n.FundAddress,new tt(o.AddressLine1,o.AddressLine2,o.City,o.AddressState,r)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),H()];case 8:return[ve(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)),H()];case 9:return[ve(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)),H()];case 10:return[ve(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)),H()];case 11:{const r=Wh(e,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),zr(o=>new I(11,[o]),r[1])]}case 12:return[ve(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)),H()];case 13:{const r=Ta(n);if(r.tag===1)return[Qh(n),H()];{const o=r.fields[0];return[n,cf(new sf(Xf(o.FundName),eh(o.FundAbn),nh(o.FundEsa),oh(o.FundAddressLine1),ih(o.FundAddressLine2),uh(o.FundCity),lh(o.FundState),dh(o.FundPostcode),mh(o.MemberFirstName),wh(o.MemberLastName),bh(o.BankAccountName),vh(o.BankAccountBsb),Sh(o.BankAccountNumber)))]}}case 14:return[n,ff()];default:return[ve(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)),H()]}}function t0(e){let t,n,r,o,s,i,a;const c=e.smsfChoice,l=e.backendService;let f;const u=Xh(c);f=oa(()=>ta(()=>u,(b,U)=>e0(l,b,U),(b,U)=>{}),void 0,void 0);const m=f[0],h=f[1],p=(b,U)=>{h(b(new ds(1,[])))},g=(b,U)=>{h(b(new ds(0,[U])))};let w;w=Ta(m).tag!==1;const x=B(_("form",E(k([["id","form"],["novalidate",""],(t=[_("div",E(k([["className","p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560"],(n=[_("p",{className:"sm:text-lg font-bold",children:"Fund details"}),Ah,_("div",E(B((r=[(o=k([Eh(new ye(m.FundName,$(p)(b=>new I(0,[b])),$(g)(b=>new I(0,[b])))),Nh(new ye(m.FundAbn,$(p)(b=>new I(1,[b])),$(g)(b=>new I(1,[b])))),Fh(new ye(m.FundEsa,$(p)(b=>new I(2,[b])),$(g)(b=>new I(2,[b])))),Oh(new kh(new ye(m.FundAddress.AddressLine1,$(p)(b=>new I(3,[b])),$(g)(b=>new I(3,[b]))),new ye(m.FundAddress.AddressLine2,$(p)(b=>new I(4,[b])),$(g)(b=>new I(4,[b]))),new ye(m.FundAddress.City,$(p)(b=>new I(5,[b])),$(g)(b=>new I(5,[b]))),new ye(m.FundAddress.AddressState,$(p)(b=>new I(6,[b])),$(g)(b=>new I(6,[b]))),new ye(m.FundAddress.Postcode,$(p)(b=>new I(7,[b])),$(g)(b=>new I(7,[b]))))),_("div",E(k([["className","flex space-x-4"],(s=[Lh(new ye(m.MemberFirstName,$(p)(b=>new I(8,[b])),$(g)(b=>new I(8,[b])))),Vh(new ye(m.MemberLastName,$(p)(b=>new I(9,[b])),$(g)(b=>new I(9,[b]))))],["children",C.Children.toArray(Array.from(s))])]))),_("h3",{className:"text-lg font-bold mt-6",children:"Fund bank details"}),Ph(new ye(m.BankAccountName,$(p)(b=>new I(10,[b])),$(g)(b=>new I(10,[b])))),_(Zh,{state:m.BankAccountBsb,dispatch:b=>{h(new I(11,[b]))}}),Dh(new ye(m.BankAccountNumber,$(p)(b=>new I(12,[b])),$(g)(b=>new I(12,[b]))))]),_("div",{children:C.Children.toArray(Array.from(o))}))],["children",C.Children.toArray(Array.from(r))]))))],["children",C.Children.toArray(Array.from(n))])]))),_("div",E(k([["className","flex justify-center mt-8"],(i=[_("div",E(k([["className","sm:max-w-320 w-full"],(a=[Rh(w,b=>{b.preventDefault(),h(new I(13,[]))}),Uh(b=>{b.preventDefault(),h(new I(14,[]))})],["children",C.Children.toArray(Array.from(a))])])))],["children",C.Children.toArray(Array.from(i))])])))],["children",C.Children.toArray(Array.from(t))])]))));return _("div",{children:C.Children.toArray(Array.from(x))})}const n0=_("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([_("rect",{width:48,height:47,rx:8,fill:"#FEE2E2"}),_("g",E(k([["clipPath","url(#clip0_153_10600)"],(e=k([_("path",{d:"M24 15V27",stroke:"#DC2626",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),_("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"]]))),_("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=B(_("clipPath",E(k([["id","clip0_153_10600"],(r=B(_("rect",{width:32,height:32,fill:"white",transform:"translate(8,8)"})),["children",C.Children.toArray(Array.from(r))])])))),_("defs",{children:C.Children.toArray(Array.from(n))}))]);return["children",C.Children.toArray(Array.from(o))]})()])));function r0(e){return _("h1",{className:"mt-4 mb-4 sm:mb-8 text-2xl sm:text-3xl font-semibold text-gray-900",children:e})}function o0(){let e,t,n,r;return _("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=[n0,r0("Something went wrong"),_("div",E(k([["className","justify-start items-center"],(n=[_("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."]]))),_("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 Pn(e,t){let n;return _("div",E(k([["className",G(" ",["animate-pulse w-full relative",e,t])],(n=[_("div",{className:G(" ",["w-full left-0 top-0 absolute bg-gray-200 rounded",e])})],["children",C.Children.toArray(Array.from(n))])])))}const s0=Pn("h-9","max-w-96"),fs=Pn("h-6","max-w-96"),i0=Pn("h-80","max-w-96"),a0=Pn("h-10","max-w-48"),u0=(()=>{let e,t,n;const r=[_("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=[_("div",E(k([["className","max-w-96 w-full flex-col justify-start items-center gap-6 flex"],(n=[s0,_("div",{className:"self-stretch h-14 flex-col justify-start items-center gap-2 flex",children:C.Children.toArray([fs,fs])})],["children",C.Children.toArray(Array.from(n))])]))),i0,a0],["children",C.Children.toArray(Array.from(t))])])))];return _(xe,{},...r)})();function Qr(){return(Qr=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 l0=["context","children"];function c0(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,l0);return hr(t,n)}function d0(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=_(c0,Qr({},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[$a(a[i].name)]=a[i].value);for(i=c.length;i--;){var l=t(c[i],null),f=c[i].slot;f?s[f]=_(hs,{name:f},l):o[i]=l}var u=r?_(hs,null,o):o;return _(r||n.nodeName.toLowerCase(),s,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?fr:rt)(this._vdom,this._root)}function $a(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function f0(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[$a(e)]=n,this._vdom=hr(this._vdom,r),rt(this._vdom,this._root)}}function h0(){rt(this._vdom=null,this._root)}function hs(e,t){var n=this;return _("slot",Qr({},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 m0(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=d0,o.prototype.attributeChangedCallback=f0,o.prototype.disconnectedCallback=h0,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 p0(e,t){m0(e,t,void 0,{shadow:!0})}function _0(e){let t;const n=k([_("style",{children:[Eu]}),_("div",E(k([["className","mx-auto max-w-7xl px-4 sm:px-6 lg:px-8"],(t=[_("div",{className:"mx-auto max-w-3xl",children:C.Children.toArray([e])})],["children",C.Children.toArray(Array.from(t))])])))]);return _("div",{children:C.Children.toArray(Array.from(n))})}class Ba extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialise","LoadedSmsfChoice"]}}class ur extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Failed"]}}function w0(){return[new ur(0,[]),B(e=>{e(new Ba(0,[]))})]}function g0(e,t,n){return t.tag===1?t.fields[0].tag===1?[new ur(2,[]),H()]:[new ur(1,[t.fields[0].fields[0].SmsfChoice]),df()]:[n,Xi(r=>{Qi(r)},()=>Zd(e),void 0,r=>new Ba(1,[r]))]}function b0(e){const t=qd(e.backendUrl,e.accessToken),n=oa(()=>ta(w0,(r,o)=>g0(t,r,o),(r,o)=>{}),void 0,void 0)[0];return _0(n.tag===1?_(t0,{backendService:t,smsfChoice:ci(n.fields[0])}):n.tag===2?o0():u0)}function y0(){p0(e=>_(b0,e),"apollo-super-smsf")}y0();
31
+ */var $t=If;function Of(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Lf=typeof Object.is=="function"?Object.is:Of,Vf=$t.useState,Pf=$t.useEffect,Df=$t.useLayoutEffect,Rf=$t.useDebugValue;function Uf(e,t){var n=t(),r=Vf({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return Df(function(){o.value=n,o.getSnapshot=t,qn(o)&&s({inst:o})},[e,n,t]),Pf(function(){return qn(o)&&s({inst:o}),e(function(){qn(o)&&s({inst:o})})},[e]),Rf(n),n}function qn(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Lf(e,n)}catch{return!0}}function zf(e,t){return t()}var Hf=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?zf:Uf;oa.useSyncExternalStore=$t.useSyncExternalStore!==void 0?$t.useSyncExternalStore:Hf;ra.exports=oa;var jf=ra.exports;class Gf{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),s=[];this.finalDispatch=void 0;let i;const a=Ff(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=er(this.state[0]);return $f(this.arg,Nf((h,p)=>{const g=this.state;this.finalDispatch=p,this.state=[h,g[1],!0,s],h!==g[0]&&f()},Mf((h,p)=>{const g=this.cmd;return this.cmd=H(),[this.state[0],g]},(h,p,g)=>h(p)(this.state[0]),nr(h=>h),nr(h=>h),J(h=>h),h=>[p=>h[0](p)?!0:m&&u,p=>{const g=p;er(g)?Z(g):h[1](p)}],o))),()=>{u=!0}}}}function ls(e,t,n){return new Gf(e,t,n)}function Wf(e){return e.state}function qf(e){return e.subscribe}function Zf(e,t,n){return Be(e.arg,t)?!Be(e.dependencies,n):!0}function sa(e,t,n){const r=Bt(()=>ls(e,t,n)),o=r[0];Zf(o,t,n)&&r[1](ls(e,t,n));const s=jf.useSyncExternalStore(qf(o),()=>Wf(o)),i=s[2],a=s[3],c=s[1];return Zt(()=>{if(i&&a.length>0){let l=X(a);try{for(;l["System.Collections.IEnumerator.MoveNext"]();){const f=l["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{c(f)})}}finally{Z(l)}_u(a)}},[i,a]),[s[0],c]}function Ve(e,t){return ci(t)?new d(1,[`${e} is required`]):new d(0,[t])}function it(e,t,n){return n.length>=t?new d(0,[n]):new d(1,[`${e} requires a minimum length of ${t} characters`])}function Kr(e,t,n){return n.length<=t?new d(0,[n]):new d(1,[`${e} exceeds maximum length of ${t} characters`])}function Yr(e){return e.trim()}function Xr(e){return Tr(e,"\\s+","")}function Vn(e,t,n){return Hu(si(t),n)?new d(0,[n]):new d(1,[`${e} is invalid`])}function Jf(e){return Tr(e,"[^0-9]","")}class ur extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class Qr extends K{constructor(t,n,r,o){super(),this.Value=t,this.IsTouched=n,this.Validator=r,this.ErrorMessage=o}}class ye extends K{constructor(t,n,r){super(),this.Field=t,this.OnBlur=n,this.OnChange=r}}function Ae(e,t){return new Qr($r(t,""),!1,e,void 0)}function Kf(e,t){let n;return new Qr(t,e.IsTouched,e.Validator,(n=e.Validator(t),n.tag===1&&e.IsTouched?n.fields[0]:void 0))}function pe(e){let t;return new Qr(e.Value,!0,e.Validator,(t=e.Validator(e.Value),t.tag===1?t.fields[0]:void 0))}function Pn(e){const t=e.target,n=Jf(t.value);return t.value=n,n}class Yf extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundName"]}}function ia(e){let t;const n=Ve("Fund name",Yr(e));return t=n.tag===1?new d(1,[n.fields[0]]):it("Fund name",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Yf(t.fields[0])])}function aa(e){return Ae(ia,e)}function Xf(e){return e.fields[0]}class Qf extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundAbn"]}}function ua(e){const t=Ce(Pe(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=Mo(t)===Mo(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=vl((i,a,c)=>i+a*c,0,xl((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 Qf(e)])}}}function la(e){return Ae(ua,e)}function eh(e){return e.fields[0]}class th extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundEsa"]}}function ca(e){let t;const n=Ve("Fund ESA",Yr(e));return t=n.tag===1?new d(1,[n.fields[0]]):it("Fund ESA",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new th(t.fields[0])])}function da(e){return Ae(ca,e)}function nh(e){return e.fields[0]}class rh extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AddressLine1"]}}function fa(e){let t;const n=Ve("Address Line 1",e);return t=n.tag===1?new d(1,[n.fields[0]]):it("Address Line 1",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new rh(t.fields[0])])}function ha(e){return Ae(fa,e)}function oh(e){return e.fields[0]}class sh extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AddressLine2"]}}function ma(e){if(ci(e))return new d(0,[void 0]);{const t=it("Address Line 2",2,e);return t.tag===1?new d(1,[t.fields[0]]):new d(0,[new sh(t.fields[0])])}}function pa(e){return Ae(ma,e)}function ih(e){if(e!=null)return e.fields[0]}class ah extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["City"]}}function _a(e){const t=Ve("City",e);return t.tag===1?new d(1,[t.fields[0]]):new d(0,[new ah(t.fields[0])])}function wa(e){return Ae(_a,e)}function uh(e){return e.fields[0]}class et extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NSW","QLD","ACT","VIC","TAS","WA","SA","NT"]}}function ga(e){const t=Ve("State",e);if(t.tag===1)return new d(1,[t.fields[0]]);switch(t.fields[0]){case"NSW":return new d(0,[new et(0,[])]);case"QLD":return new d(0,[new et(1,[])]);case"ACT":return new d(0,[new et(2,[])]);case"VIC":return new d(0,[new et(3,[])]);case"TAS":return new d(0,[new et(4,[])]);case"WA":return new d(0,[new et(5,[])]);case"SA":return new d(0,[new et(6,[])]);case"NT":return new d(0,[new et(7,[])]);default:return new d(1,["Select a state'"])}}function ba(e){return Ae(ga,e)}function lh(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 ch extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Postcode"]}}function ya(e){let t,n;const r=Ve("Postcode",Xr(e));return n=r.tag===1?new d(1,[r.fields[0]]):it("Postcode",4,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):Kr("Postcode",4,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new ch(t.fields[0])])}function va(e){return Ae(ya,e)}function dh(e){return e.fields[0]}class fh extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberFirstName"]}}const hh="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function Sa(e){let t;const n=Ve("Member given name(s)",e);return t=n.tag===1?new d(1,[n.fields[0]]):Vn("Member given name(s)",hh,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new fh(t.fields[0])])}function xa(e){return Ae(Sa,e)}function mh(e){return e.fields[0]}class ph extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberLastName"]}}const _h="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function ka(e){let t;const n=Ve("Last Name",e);return t=n.tag===1?new d(1,[n.fields[0]]):Vn("Last Name",_h,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new ph(t.fields[0])])}function Ca(e){return Ae(ka,e)}function wh(e){return e.fields[0]}class gh extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountName"]}}function Aa(e){let t;const n=Ve("Account name",Yr(e));return t=n.tag===1?new d(1,[n.fields[0]]):it("Account name",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new gh(t.fields[0])])}function Ea(e){return Ae(Aa,e)}function bh(e){return e.fields[0]}class yh extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountBsb"]}}function kn(e){let t,n,r;const o=Ve("BSB",Xr(e));return r=o.tag===1?new d(1,[o.fields[0]]):it("BSB",6,o.fields[0]),n=r.tag===1?new d(1,[r.fields[0]]):Kr("BSB",6,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):Vn("BSB","^\\d{6}$",n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new yh(t.fields[0])])}function vh(e){return e.fields[0]}class Sh extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountNumber"]}}function Na(e){let t,n,r;const o=Ve("Account Number",Xr(e));return r=o.tag===1?new d(1,[o.fields[0]]):it("Account Number",2,o.fields[0]),n=r.tag===1?new d(1,[r.fields[0]]):Kr("Account Number",11,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):Vn("Account Number","^\\d{2,11}$",n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Sh(t.fields[0])])}function Fa(e){return Ae(Na,e)}function xh(e){return e.fields[0]}class kh extends K{constructor(t,n,r,o,s){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.AddressState=o,this.Postcode=s}}const Ch=_("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=B(_("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))]})()]))),Ah=_("div",E(k([["className","bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"],(()=>{let e;const t=[_("div",E(k([["className","flex"],(e=[_("div",{className:"flex-shrink-0",children:C.Children.toArray([Ch])}),_("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 Xe(e){if(e==null)return Je();{const t=e;return _("div",{className:G(" ",["mt-2 text-sm text-red-600"]),children:t})}}function nn(e){return Ce(V(()=>he(j("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"),V(()=>e?j("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ze()))))}function Eh(e){let t,n;return _("div",E(k([["className","mt-3"],(t=[_("label",{className:"text-sm font-medium text-gray-700",for:"fundName",children:"Fund name"}),_("div",E(k([["className","mt-1"],(n=[_("input",{type:"text",className:G(" ",nn(e.Field.ErrorMessage!=null)),id:"fundName",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Xe(e.Field.ErrorMessage)],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}function Nh(e){let t,n;return _("div",E(k([["className","mt-3"],(t=[_("label",{className:"text-sm font-medium text-gray-700",for:"fundAbn",children:"Fund ABN"}),_("div",E(k([["className","mt-1"],(n=[_("input",{id:"fundAbn",type:"text",inputmode:"numeric",value:e.Field.Value,className:G(" ",nn(e.Field.ErrorMessage!=null)),onKeyUp:r=>{e.OnChange(Pn(r))},onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Xe(e.Field.ErrorMessage)],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}function Fh(e){let t,n;return _("div",E(k([["className","mt-3"],(t=[_("label",{className:"text-sm font-medium text-gray-700",for:"fundEsa",children:"Electronic service address alias (ESA)"}),_("div",E(k([["className","mt-1"],(n=[_("input",{id:"fundEsa",type:"text",value:e.Field.Value,className:G(" ",nn(e.Field.ErrorMessage!=null)),onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Xe(e.Field.ErrorMessage)],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}function Mh(e,t){return _("input",{placeholder:"Address line 1",type:"text",className:G(" ",Ce(V(()=>he(j("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"),V(()=>e&&t.Field.ErrorMessage!=null?j("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ze()))))),required:!0,minLength:2,id:"addressLine1",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function Th(e,t){return _("input",{placeholder:"Address line 2 (optional)",type:"text",className:G(" ",Ce(V(()=>he(j("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"),V(()=>e&&t.Field.ErrorMessage!=null?j("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ze()))))),id:"addressLine2",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function $h(e,t){return _("input",{placeholder:"City/suburb",type:"text",className:G(" ",Ce(V(()=>he(j("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"),V(()=>e&&t.Field.ErrorMessage!=null?j("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ze()))))),required:!0,id:"city",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function Bh(e,t){let n;return _("div",E(k([["className","flex-1 min-w-0"],(n=[_("input",{placeholder:"Postcode",type:"text",required:!0,className:G(" ",Ce(V(()=>he(j("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"),V(()=>e&&t.Field.ErrorMessage!=null?j("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ze()))))),minLength:4,maxLength:4,pattern:"[0-9]{4}",inputmode:"numeric",id:"postcode",value:t.Field.Value,onKeyUp:r=>{t.OnChange(Pn(r))},onBlur:t.OnBlur,onChange:r=>{t.OnChange(r.target.value)}})],["children",C.Children.toArray(Array.from(n))])])))}function Ih(e,t){let n;const r=_("option",{disabled:!0,value:"",children:"State",selected:t.Field.Value===""}),o=Vr(s=>_("option",{value:s,children:s,selected:t.Field.Value===s}),k(["NSW","QLD","ACT","VIC","TAS","WA","SA","NT"]));return _("div",E(k([["className","w-1/2 flex-1 min-w-0"],(n=[_("select",{className:G(" ",Ce(V(()=>he(j("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"),V(()=>e&&t.Field.ErrorMessage!=null?j("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ze()))))),id:"state",required:!0,children:C.Children.toArray(Array.from(ge(r,o))),onBlur:t.OnBlur,onChange:s=>{t.OnChange(s.target.value)}})],["children",C.Children.toArray(Array.from(n))])])))}function Oh(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=kl(a=>a,k([e.AddressLine1.Field.ErrorMessage,e.AddressLine2.Field.ErrorMessage,e.City.Field.ErrorMessage,e.AddressState.Field.ErrorMessage,e.Postcode.Field.ErrorMessage]));return _("div",E(k([["className","mt-3"],(t=[_("label",{className:"text-sm font-medium text-gray-700",children:"Fund address"}),_("div",E(k([["className","mt-1 rounded-md shadow-sm -space-y-px"],(n=[Mh(o,e.AddressLine1),Th(o,e.AddressLine2),$h(o,e.City),_("div",E(k([["className","flex -space-x-px"],(r=[Bh(o,e.Postcode),Ih(o,e.AddressState)],["children",C.Children.toArray(Array.from(r))])])))],["children",C.Children.toArray(Array.from(n))])]))),Xe(o?i:void 0)],["children",C.Children.toArray(Array.from(t))])])))}function Lh(e){let t,n;return _("div",E(k([["className","mt-3 w-1/2"],(t=[_("label",{className:"text-sm font-medium text-gray-700",for:"memberGivenNames",children:"Given name(s)"}),_("div",E(k([["className","mt-1"],(n=[_("input",{type:"text",className:G(" ",nn(e.Field.ErrorMessage!=null)),id:"memberGivenNames",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Xe(e.Field.ErrorMessage)],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}function Vh(e){let t,n;return _("div",E(k([["className","mt-3 w-1/2"],(t=[_("label",{className:"text-sm font-medium text-gray-700",for:"memberLastNames",children:"Last name"}),_("div",E(k([["className","mt-1"],(n=[_("input",{type:"text",className:G(" ",nn(e.Field.ErrorMessage!=null)),id:"memberLastName",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Xe(e.Field.ErrorMessage)],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}function Ph(e){let t,n;const r=e.Field.IsTouched&&e.Field.ErrorMessage!=null;return _("div",E(k([["className","mt-3"],(t=[_("label",{className:"text-sm font-medium text-gray-700",for:"bankAccountName",children:"Account name"}),_("div",E(k([["className","mt-1"],(n=[_("input",{id:"bankAccountName",type:"text",value:e.Field.Value,className:G(" ",Ce(V(()=>he(j("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"),V(()=>r?j("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ze()))))),onBlur:e.OnBlur,onChange:o=>{e.OnChange(o.target.value)}}),Xe(e.Field.ErrorMessage)],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}function Dh(e){let t,n;const r=e.Field.IsTouched&&e.Field.ErrorMessage!=null;return _("div",E(k([["className","mt-3"],(t=[_("label",{className:"text-sm font-medium text-gray-700",for:"bankAccountNumber",children:"Account number"}),_("div",E(k([["className","mt-1"],(n=[_("input",{id:"bankAccountNumber",type:"text",value:e.Field.Value,inputmode:"numeric",className:G(" ",Ce(V(()=>he(j("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"),V(()=>r?j("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ze()))))),onKeyUp:o=>{e.OnChange(Pn(o))},onBlur:e.OnBlur,onChange:o=>{e.OnChange(o.target.value)}}),Xe(e.Field.ErrorMessage)],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}function Rh(e,t){let n;return _("div",E(k([["className","mb-4"],(n=[_("div",E(Ce(V(()=>he(e?ze():j(["onClick",t]),V(()=>{let r;return j((r=[_("button",{className:G(" ",["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 Uh(e){let t,n,r;return _("div",E(B((t=[_("a",E(k([["href","/"],(n=[_("div",E(B((r=[_("button",{className:G(" ",["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))]))))}class zh extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankName"]}}function Hh(e){return e.fields[0]}function jh(e){return new zh(`${e.Bank} - ${e.Branch}`)}let cs=class extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}},Wt=class extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateBankAccountBsb","BsbLookup"]}};class De extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotYetStarted","Pending","Valid","Invalid"]}}let Se=class extends K{constructor(t,n,r,o){super(),this.RawValue=t,this.IsTouched=n,this.Value=r,this.ErrorMessage=o}};function Ma(e,t){if(e==null)return[new Se("",!1,new De(0,[]),void 0),H()];{const n=e,r=kn(n);return r.tag===1?[new Se(n,!1,new De(3,[]),r.fields[0]),H()]:[new Se(n,!1,new De(1,[]),void 0),B(o=>{o(new Wt(1,[new ur(0,[])]))})]}}function ds(e){return new Se(e.RawValue,e.IsTouched,new De(3,[]),"Unable to identify the bank using the provided BSB number")}function Gh(e,t){let n;const r=kn(e.RawValue);return n=r.tag===1?[new De(3,[]),r.fields[0]]:[new De(2,[[r.fields[0],jh(t)]]),void 0],new Se(e.RawValue,e.IsTouched,n[0],n[1])}function Wh(e,t,n){if(t.tag===1)if(t.fields[0].tag===1){if(t.fields[0].fields[0].tag===1)return[ds(n),H()];{const r=t.fields[0].fields[0].fields[0].BankDetails;return r!=null?[Gh(n,r),H()]:[ds(n),H()]}}else return[n,Qi(r=>{ea(r)},r=>Jd(e,r),n.RawValue,r=>new Wt(1,[new ur(1,[r])]))];else if(t.fields[0].tag===1){const r=kn(n.RawValue);return r.tag===1?[new Se(n.RawValue,!0,n.Value,r.fields[0]),H()]:[new Se(n.RawValue,!0,n.Value,n.ErrorMessage),H()]}else{const r=kn(t.fields[0].fields[0]);return r.tag===1?n.IsTouched?[new Se(t.fields[0].fields[0],n.IsTouched,new De(0,[]),r.fields[0]),H()]:[new Se(t.fields[0].fields[0],n.IsTouched,new De(0,[]),void 0),H()]:t.fields[0].fields[0]!==n.RawValue?[new Se(t.fields[0].fields[0],n.IsTouched,new De(1,[]),void 0),B(o=>{o(new Wt(1,[new ur(0,[])]))})]:[new Se(t.fields[0].fields[0],n.IsTouched,new De(1,[]),n.ErrorMessage),H()]}}function qh(e){let t;return _("div",E(k([["className","mt-3"],(t=[_("label",{className:"text-sm font-medium text-gray-700",children:"Bank name"}),_("div",{className:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-sm",children:Hh(e)})],["children",C.Children.toArray(Array.from(t))])])))}function Zh(e){const t=e.dispatch,n=e.state,r=i=>{t(new Wt(0,[new cs(0,[i])]))},o=n.IsTouched&&n.ErrorMessage!=null,s=Ce(V(()=>{let i,a;return he(j(_("div",E(k([["className","mt-3"],(i=[_("label",{className:"text-sm font-medium text-gray-700",for:"bankAccountBsb",children:"BSB"}),_("div",E(k([["className","mt-1"],(a=[_("input",{id:"bankAccountBsb",type:"text",value:n.RawValue,inputmode:"numeric",className:G(" ",Ce(V(()=>he(j("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"),V(()=>o?j("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ze()))))),onKeyUp:c=>{r(Pn(c))},onBlur:c=>{t(new Wt(0,[new cs(1,[])]))},onChange:c=>{r(c.target.value)}}),Xe(n.ErrorMessage)],["children",C.Children.toArray(Array.from(a))])])))],["children",C.Children.toArray(Array.from(i))])])))),V(()=>{const c=n.Value;switch(c.tag){case 2:return j(qh(c.fields[0][1]));default:return j(Je())}}))}));return _(xe,{},...s)}class fs extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}}let I=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"]}};class Jh extends K{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}}let re=class extends K{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 tt extends K{constructor(t,n,r,o,s){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.AddressState=o,this.Postcode=s}}const Kh=(()=>{let e;const t=Ma(void 0);return e=[t[0],Hr(n=>new I(11,[n]),t[1])],[new re(aa(void 0),la(void 0),da(void 0),new tt(ha(void 0),pa(void 0),wa(void 0),ba(void 0),va(void 0)),xa(void 0),Ca(void 0),Ea(void 0),e[0],Fa(void 0),void 0),e[1]]})();function Yh(e){let t;const n=Ma(e.Bsb);return t=[n[0],Hr(r=>new I(11,[r]),n[1])],[new re(aa(e.FundName),la(e.Abn),da(e.ElectronicServiceAddress),new tt(ha(e.FundAddress.AddressLine1),pa(e.FundAddress.AddressLine2),wa(e.FundAddress.City),ba(e.FundAddress.State),va(e.FundAddress.Postcode)),xa(e.MemberFirstName),Ca(e.MemberFamilyName),Ea(e.BankAccountName),t[0],Fa(e.BankAccountNumber),void 0),t[1]]}function Xh(e){let t;return $r((t=e,t==null?void 0:Yh(t)),Kh)}function Ta(e){let t;const n=ia(e.FundName.Value);if(t=n.tag===1?new d(1,[B(n.fields[0])]):new d(0,[n.fields[0]]),t.tag===1)return new d(1,[t.fields[0]]);{let r;const o=ua(e.FundAbn.Value);if(r=o.tag===1?new d(1,[B(o.fields[0])]):new d(0,[o.fields[0]]),r.tag===1)return new d(1,[r.fields[0]]);{let s;const i=ca(e.FundEsa.Value);if(s=i.tag===1?new d(1,[B(i.fields[0])]):new d(0,[i.fields[0]]),s.tag===1)return new d(1,[s.fields[0]]);{let a;const c=fa(e.FundAddress.AddressLine1.Value);if(a=c.tag===1?new d(1,[B(c.fields[0])]):new d(0,[c.fields[0]]),a.tag===1)return new d(1,[a.fields[0]]);{let l;const f=ma(e.FundAddress.AddressLine2.Value);if(l=f.tag===1?new d(1,[B(f.fields[0])]):new d(0,[f.fields[0]]),l.tag===1)return new d(1,[l.fields[0]]);{let u;const m=_a(e.FundAddress.City.Value);if(u=m.tag===1?new d(1,[B(m.fields[0])]):new d(0,[m.fields[0]]),u.tag===1)return new d(1,[u.fields[0]]);{let h;const p=ga(e.FundAddress.AddressState.Value);if(h=p.tag===1?new d(1,[B(p.fields[0])]):new d(0,[p.fields[0]]),h.tag===1)return new d(1,[h.fields[0]]);{let g;const w=ya(e.FundAddress.Postcode.Value);if(g=w.tag===1?new d(1,[B(w.fields[0])]):new d(0,[w.fields[0]]),g.tag===1)return new d(1,[g.fields[0]]);{let y;const S=Sa(e.MemberFirstName.Value);if(y=S.tag===1?new d(1,[B(S.fields[0])]):new d(0,[S.fields[0]]),y.tag===1)return new d(1,[y.fields[0]]);{let b;const U=ka(e.MemberLastName.Value);if(b=U.tag===1?new d(1,[B(U.fields[0])]):new d(0,[U.fields[0]]),b.tag===1)return new d(1,[b.fields[0]]);{let ne;const Ee=Aa(e.BankAccountName.Value);if(ne=Ee.tag===1?new d(1,[B(Ee.fields[0])]):new d(0,[Ee.fields[0]]),ne.tag===1)return new d(1,[ne.fields[0]]);{let at;const ut=e.BankAccountBsb.Value;if(at=ut.tag===2?new d(0,[ut.fields[0][0]]):new d(1,[B("Bank BSB is invalid")]),at.tag===1)return new d(1,[at.fields[0]]);{let Qe;const ce=Na(e.BankAccountNumber.Value);return Qe=ce.tag===1?new d(1,[B(ce.fields[0])]):new d(0,[ce.fields[0]]),Qe.tag===1?new d(1,[Qe.fields[0]]):new d(0,[new Jh(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],at.fields[0],Qe.fields[0])])}}}}}}}}}}}}}function Qh(e){let t;return new re(pe(e.FundName),pe(e.FundAbn),pe(e.FundEsa),new tt(pe(e.FundAddress.AddressLine1),pe(e.FundAddress.AddressLine2),pe(e.FundAddress.City),pe(e.FundAddress.AddressState),pe(e.FundAddress.Postcode)),pe(e.MemberFirstName),pe(e.MemberLastName),pe(e.BankAccountName),(t=e.BankAccountBsb,new Se(t.RawValue,!0,t.Value,t.ErrorMessage)),pe(e.BankAccountNumber),e.BankName)}function ve(e,t,n){return n(e.tag===1?pe(t):Kf(t,e.fields[0]))}function e0(e,t,n){switch(t.tag){case 1:return[ve(t.fields[0],n.FundAbn,r=>new re(n.FundName,r,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),H()];case 2:return[ve(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)),H()];case 3:return[ve(t.fields[0],n.FundAddress.AddressLine1,r=>{let o;return new re(n.FundName,n.FundAbn,n.FundEsa,(o=n.FundAddress,new tt(r,o.AddressLine2,o.City,o.AddressState,o.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),H()];case 4:return[ve(t.fields[0],n.FundAddress.AddressLine2,r=>{let o;return new re(n.FundName,n.FundAbn,n.FundEsa,(o=n.FundAddress,new tt(o.AddressLine1,r,o.City,o.AddressState,o.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),H()];case 5:return[ve(t.fields[0],n.FundAddress.City,r=>{let o;return new re(n.FundName,n.FundAbn,n.FundEsa,(o=n.FundAddress,new tt(o.AddressLine1,o.AddressLine2,r,o.AddressState,o.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),H()];case 6:return[ve(t.fields[0],n.FundAddress.AddressState,r=>{let o;return new re(n.FundName,n.FundAbn,n.FundEsa,(o=n.FundAddress,new tt(o.AddressLine1,o.AddressLine2,o.City,r,o.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),H()];case 7:return[ve(t.fields[0],n.FundAddress.Postcode,r=>{let o;return new re(n.FundName,n.FundAbn,n.FundEsa,(o=n.FundAddress,new tt(o.AddressLine1,o.AddressLine2,o.City,o.AddressState,r)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),H()];case 8:return[ve(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)),H()];case 9:return[ve(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)),H()];case 10:return[ve(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)),H()];case 11:{const r=Wh(e,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),Hr(o=>new I(11,[o]),r[1])]}case 12:return[ve(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)),H()];case 13:{const r=Ta(n);if(r.tag===1)return[Qh(n),H()];{const o=r.fields[0];return[n,cf(new sf(Xf(o.FundName),eh(o.FundAbn),nh(o.FundEsa),oh(o.FundAddressLine1),ih(o.FundAddressLine2),uh(o.FundCity),lh(o.FundState),dh(o.FundPostcode),mh(o.MemberFirstName),wh(o.MemberLastName),bh(o.BankAccountName),vh(o.BankAccountBsb),xh(o.BankAccountNumber)))]}}case 14:return[n,ff()];default:return[ve(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)),H()]}}function t0(e){let t,n,r,o,s,i,a;const c=e.smsfChoice,l=e.backendService;let f;const u=Xh(c);f=sa(()=>na(()=>u,(b,U)=>e0(l,b,U),(b,U)=>{}),void 0,void 0);const m=f[0],h=f[1],p=(b,U)=>{h(b(new fs(1,[])))},g=(b,U)=>{h(b(new fs(0,[U])))};let w;w=Ta(m).tag!==1;const S=B(_("form",E(k([["id","form"],["novalidate",""],(t=[_("div",E(k([["className","p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560"],(n=[_("p",{className:"sm:text-lg font-bold",children:"Fund details"}),Ah,_("div",E(B((r=[(o=k([Eh(new ye(m.FundName,$(p)(b=>new I(0,[b])),$(g)(b=>new I(0,[b])))),Nh(new ye(m.FundAbn,$(p)(b=>new I(1,[b])),$(g)(b=>new I(1,[b])))),Fh(new ye(m.FundEsa,$(p)(b=>new I(2,[b])),$(g)(b=>new I(2,[b])))),Oh(new kh(new ye(m.FundAddress.AddressLine1,$(p)(b=>new I(3,[b])),$(g)(b=>new I(3,[b]))),new ye(m.FundAddress.AddressLine2,$(p)(b=>new I(4,[b])),$(g)(b=>new I(4,[b]))),new ye(m.FundAddress.City,$(p)(b=>new I(5,[b])),$(g)(b=>new I(5,[b]))),new ye(m.FundAddress.AddressState,$(p)(b=>new I(6,[b])),$(g)(b=>new I(6,[b]))),new ye(m.FundAddress.Postcode,$(p)(b=>new I(7,[b])),$(g)(b=>new I(7,[b]))))),_("div",E(k([["className","flex space-x-4"],(s=[Lh(new ye(m.MemberFirstName,$(p)(b=>new I(8,[b])),$(g)(b=>new I(8,[b])))),Vh(new ye(m.MemberLastName,$(p)(b=>new I(9,[b])),$(g)(b=>new I(9,[b]))))],["children",C.Children.toArray(Array.from(s))])]))),_("h3",{className:"text-lg font-bold mt-6",children:"Fund bank details"}),Ph(new ye(m.BankAccountName,$(p)(b=>new I(10,[b])),$(g)(b=>new I(10,[b])))),_(Zh,{state:m.BankAccountBsb,dispatch:b=>{h(new I(11,[b]))}}),Dh(new ye(m.BankAccountNumber,$(p)(b=>new I(12,[b])),$(g)(b=>new I(12,[b]))))]),_("div",{children:C.Children.toArray(Array.from(o))}))],["children",C.Children.toArray(Array.from(r))]))))],["children",C.Children.toArray(Array.from(n))])]))),_("div",E(k([["className","flex justify-center mt-8"],(i=[_("div",E(k([["className","sm:max-w-320 w-full"],(a=[Rh(w,b=>{b.preventDefault(),h(new I(13,[]))}),Uh(b=>{b.preventDefault(),h(new I(14,[]))})],["children",C.Children.toArray(Array.from(a))])])))],["children",C.Children.toArray(Array.from(i))])])))],["children",C.Children.toArray(Array.from(t))])]))));return _("div",{children:C.Children.toArray(Array.from(S))})}const n0=_("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([_("rect",{width:48,height:47,rx:8,fill:"#FEE2E2"}),_("g",E(k([["clipPath","url(#clip0_153_10600)"],(e=k([_("path",{d:"M24 15V27",stroke:"#DC2626",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),_("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"]]))),_("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=B(_("clipPath",E(k([["id","clip0_153_10600"],(r=B(_("rect",{width:32,height:32,fill:"white",transform:"translate(8,8)"})),["children",C.Children.toArray(Array.from(r))])])))),_("defs",{children:C.Children.toArray(Array.from(n))}))]);return["children",C.Children.toArray(Array.from(o))]})()])));function r0(e){return _("h1",{className:"mt-4 mb-4 sm:mb-8 text-2xl sm:text-3xl font-semibold text-gray-900",children:e})}function o0(){let e,t,n,r;return _("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=[n0,r0("Something went wrong"),_("div",E(k([["className","justify-start items-center"],(n=[_("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."]]))),_("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 Dn(e,t){let n;return _("div",E(k([["className",G(" ",["animate-pulse w-full relative",e,t])],(n=[_("div",{className:G(" ",["w-full left-0 top-0 absolute bg-gray-200 rounded",e])})],["children",C.Children.toArray(Array.from(n))])])))}const s0=Dn("h-9","max-w-96"),hs=Dn("h-6","max-w-96"),i0=Dn("h-80","max-w-96"),a0=Dn("h-10","max-w-48"),u0=(()=>{let e,t,n;const r=[_("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=[_("div",E(k([["className","max-w-96 w-full flex-col justify-start items-center gap-6 flex"],(n=[s0,_("div",{className:"self-stretch h-14 flex-col justify-start items-center gap-2 flex",children:C.Children.toArray([hs,hs])})],["children",C.Children.toArray(Array.from(n))])]))),i0,a0],["children",C.Children.toArray(Array.from(t))])])))];return _(xe,{},...r)})();function eo(){return(eo=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 l0=["context","children"];function c0(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,l0);return mr(t,n)}function d0(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=_(c0,eo({},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[$a(a[i].name)]=a[i].value);for(i=c.length;i--;){var l=t(c[i],null),f=c[i].slot;f?s[f]=_(ms,{name:f},l):o[i]=l}var u=r?_(ms,null,o):o;return _(r||n.nodeName.toLowerCase(),s,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?hr:rt)(this._vdom,this._root)}function $a(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function f0(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[$a(e)]=n,this._vdom=mr(this._vdom,r),rt(this._vdom,this._root)}}function h0(){rt(this._vdom=null,this._root)}function ms(e,t){var n=this;return _("slot",eo({},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 m0(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=d0,o.prototype.attributeChangedCallback=f0,o.prototype.disconnectedCallback=h0,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 p0(e,t){m0(e,t,void 0,{shadow:!0})}function _0(e){let t;const n=k([_("style",{children:[Eu]}),_("div",E(k([["className","mx-auto max-w-7xl"],(t=[_("div",{className:"mx-auto max-w-3xl",children:C.Children.toArray([e])})],["children",C.Children.toArray(Array.from(t))])])))]);return _("div",{children:C.Children.toArray(Array.from(n))})}class Ba extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialise","LoadedSmsfChoice"]}}class lr extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Failed"]}}function w0(){return[new lr(0,[]),B(e=>{e(new Ba(0,[]))})]}function g0(e,t,n){return t.tag===1?t.fields[0].tag===1?[new lr(2,[]),H()]:[new lr(1,[t.fields[0].fields[0].SmsfChoice]),df()]:[n,Qi(r=>{ea(r)},()=>Zd(e),void 0,r=>new Ba(1,[r]))]}function b0(e){const t=qd(e.backendUrl,e.accessToken),n=sa(()=>na(w0,(r,o)=>g0(t,r,o),(r,o)=>{}),void 0,void 0)[0];return _0(n.tag===1?_(t0,{backendService:t,smsfChoice:di(n.fields[0])}):n.tag===2?o0():u0)}function y0(){p0(e=>_(b0,e),"apollo-super-smsf")}y0();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/apollo-super-selection-app",
3
- "version": "0.3.7640",
3
+ "version": "0.3.7703",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist/"