@flarehr/workflows-app 4.38.0 → 4.39.0

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,12 +1,12 @@
1
- (function(){"use strict";var Nr,Z,Pl,Cn,Ml,Ol,Ki,Qi,eo,to,Dl,Rr={},Nl=[],Wh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ts=Array.isArray;function Wt(e,t){for(var n in t)e[n]=t[n];return e}function Rl(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function d(e,t,n){var r,s,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?s=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?Nr.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return Lr(e,o,r,s,null)}function Lr(e,t,n,r,s){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:s??++Pl,__i:-1,__u:0};return s==null&&Z.vnode!=null&&Z.vnode(i),i}function Ll(){return{current:null}}function Oe(e){return e.children}function dt(e,t){this.props=e,this.context=t}function Xn(e,t){if(t==null)return e.__?Xn(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"?Xn(e):null}function Bl(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 Bl(e)}}function no(e){(!e.__d&&(e.__d=!0)&&Cn.push(e)&&!Ps.__r++||Ml!==Z.debounceRendering)&&((Ml=Z.debounceRendering)||Ol)(Ps)}function Ps(){var e,t,n,r,s,i,o,a;for(Cn.sort(Ki);e=Cn.shift();)e.__d&&(t=Cn.length,r=void 0,i=(s=(n=e).__v).__e,o=[],a=[],n.__P&&((r=Wt({},s)).__v=s.__v+1,Z.vnode&&Z.vnode(r),ro(n.__P,r,s,n.__n,n.__P.namespaceURI,32&s.__u?[i]:null,o,i??Xn(s),!!(32&s.__u),a),r.__v=s.__v,r.__.__k[r.__i]=r,Ul(o,r,a),r.__e!=i&&Bl(r)),Cn.length>t&&Cn.sort(Ki));Ps.__r=0}function Vl(e,t,n,r,s,i,o,a,l,u,f){var c,p,m,$,g,w=r&&r.__k||Nl,v=t.length;for(n.__d=l,jh(n,t,w),l=n.__d,c=0;c<v;c++)(m=n.__k[c])!=null&&(p=m.__i===-1?Rr:w[m.__i]||Rr,m.__i=c,ro(e,m,p,s,i,o,a,l,u,f),$=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&so(p.ref,null,m),f.push(m.ref,m.__c||$,m)),g==null&&$!=null&&(g=$),65536&m.__u||p.__k===m.__k?l=Fl(m,l,e):typeof m.type=="function"&&m.__d!==void 0?l=m.__d:$&&(l=$.nextSibling),m.__d=void 0,m.__u&=-196609);n.__d=l,n.__e=g}function jh(e,t,n){var r,s,i,o,a,l=t.length,u=n.length,f=u,c=0;for(e.__k=[],r=0;r<l;r++)(s=t[r])!=null&&typeof s!="boolean"&&typeof s!="function"?(o=r+c,(s=e.__k[r]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?Lr(null,s,null,null,null):Ts(s)?Lr(Oe,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?Lr(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,i=null,(a=s.__i=Uh(s,n,o,f))!==-1&&(f--,(i=n[a])&&(i.__u|=131072)),i==null||i.__v===null?(a==-1&&c--,typeof s.type!="function"&&(s.__u|=65536)):a!==o&&(a==o-1?c--:a==o+1?c++:(a>o?c--:c++,s.__u|=65536))):s=e.__k[r]=null;if(f)for(r=0;r<u;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=Xn(i)),zl(i,i))}function Fl(e,t,n){var r,s;if(typeof e.type=="function"){for(r=e.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=e,t=Fl(r[s],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Xn(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function jt(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ts(e)?e.some(function(n){jt(n,t)}):t.push(e)),t}function Uh(e,t,n,r){var s=e.key,i=e.type,o=n-1,a=n+1,l=t[n];if(l===null||l&&s==l.key&&i===l.type&&!(131072&l.__u))return n;if(r>(l!=null&&!(131072&l.__u)?1:0))for(;o>=0||a<t.length;){if(o>=0){if((l=t[o])&&!(131072&l.__u)&&s==l.key&&i===l.type)return o;o--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&s==l.key&&i===l.type)return a;a++}}return-1}function Wl(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Wh.test(t)?n:n+"px"}function Ms(e,t,n,r,s){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Wl(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Wl(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Qi,e.addEventListener(t,i?to:eo,i)):e.removeEventListener(t,i?to:eo,i);else{if(s=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function jl(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Qi++;else if(t.t<n.u)return;return n(Z.event?Z.event(t):t)}}}function ro(e,t,n,r,s,i,o,a,l,u){var f,c,p,m,$,g,w,v,S,N,ee,J,Ae,it,Me,Ve,Qe=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),i=[a=t.__e=n.__e]),(f=Z.__b)&&f(t);e:if(typeof Qe=="function")try{if(v=t.props,S="prototype"in Qe&&Qe.prototype.render,N=(f=Qe.contextType)&&r[f.__c],ee=f?N?N.props.value:f.__:r,n.__c?w=(c=t.__c=n.__c).__=c.__E:(S?t.__c=c=new Qe(v,ee):(t.__c=c=new dt(v,ee),c.constructor=Qe,c.render=Hh),N&&N.sub(c),c.props=v,c.state||(c.state={}),c.context=ee,c.__n=r,p=c.__d=!0,c.__h=[],c._sb=[]),S&&c.__s==null&&(c.__s=c.state),S&&Qe.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=Wt({},c.__s)),Wt(c.__s,Qe.getDerivedStateFromProps(v,c.__s))),m=c.props,$=c.state,c.__v=t,p)S&&Qe.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),S&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(S&&Qe.getDerivedStateFromProps==null&&v!==m&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(v,ee),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(v,c.__s,ee)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=v,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(T){T&&(T.__=t)}),J=0;J<c._sb.length;J++)c.__h.push(c._sb[J]);c._sb=[],c.__h.length&&o.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(v,c.__s,ee),S&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(m,$,g)})}if(c.context=ee,c.props=v,c.__P=e,c.__e=!1,Ae=Z.__r,it=0,S){for(c.state=c.__s,c.__d=!1,Ae&&Ae(t),f=c.render(c.props,c.state,c.context),Me=0;Me<c._sb.length;Me++)c.__h.push(c._sb[Me]);c._sb=[]}else do c.__d=!1,Ae&&Ae(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++it<25);c.state=c.__s,c.getChildContext!=null&&(r=Wt(Wt({},r),c.getChildContext())),S&&!p&&c.getSnapshotBeforeUpdate!=null&&(g=c.getSnapshotBeforeUpdate(m,$)),Vl(e,Ts(Ve=f!=null&&f.type===Oe&&f.key==null?f.props.children:f)?Ve:[Ve],t,n,r,s,i,o,a,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&o.push(c),w&&(c.__E=c.__=null)}catch(T){if(t.__v=null,l||i!=null){for(t.__u|=l?160:32;a&&a.nodeType===8&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,t.__e=a}else t.__e=n.__e,t.__k=n.__k;Z.__e(T,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=zh(n.__e,t,n,r,s,i,o,l,u);(f=Z.diffed)&&f(t)}function Ul(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)so(n[r],n[++r],n[++r]);Z.__c&&Z.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(i){i.call(s)})}catch(i){Z.__e(i,s.__v)}})}function zh(e,t,n,r,s,i,o,a,l){var u,f,c,p,m,$,g,w=n.props,v=t.props,S=t.type;if(S==="svg"?s="http://www.w3.org/2000/svg":S==="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((m=i[u])&&"setAttribute"in m==!!S&&(S?m.localName===S:m.nodeType===3)){e=m,i[u]=null;break}}if(e==null){if(S===null)return document.createTextNode(v);e=document.createElementNS(s,S,v.is&&v),a&&(Z.__m&&Z.__m(t,i),a=!1),i=null}if(S===null)w===v||a&&e.data===v||(e.data=v);else{if(i=i&&Nr.call(e.childNodes),w=n.props||Rr,!a&&i!=null)for(w={},u=0;u<e.attributes.length;u++)w[(m=e.attributes[u]).name]=m.value;for(u in w)if(m=w[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=m;else if(!(u in v)){if(u=="value"&&"defaultValue"in v||u=="checked"&&"defaultChecked"in v)continue;Ms(e,u,null,m,s)}}for(u in v)m=v[u],u=="children"?p=m:u=="dangerouslySetInnerHTML"?f=m:u=="value"?$=m:u=="checked"?g=m:a&&typeof m!="function"||w[u]===m||Ms(e,u,m,w[u],s);if(f)a||c&&(f.__html===c.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),Vl(e,Ts(p)?p:[p],t,n,r,S==="foreignObject"?"http://www.w3.org/1999/xhtml":s,i,o,i?i[0]:n.__k&&Xn(n,0),a,l),i!=null)for(u=i.length;u--;)Rl(i[u]);a||(u="value",S==="progress"&&$==null?e.removeAttribute("value"):$!==void 0&&($!==e[u]||S==="progress"&&!$||S==="option"&&$!==w[u])&&Ms(e,u,$,w[u],s),u="checked",g!==void 0&&g!==e[u]&&Ms(e,u,g,w[u],s))}return e}function so(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(s){Z.__e(s,n)}}function zl(e,t,n){var r,s;if(Z.unmount&&Z.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||so(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){Z.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&zl(r[s],t,n||typeof e.type!="function");n||Rl(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Hh(e,t,n){return this.constructor(e,n)}function Br(e,t,n){var r,s,i,o;Z.__&&Z.__(e,t),s=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],o=[],ro(t,e=(!r&&n||t).__k=d(Oe,null,[e]),s||Rr,Rr,t.namespaceURI,!r&&n?[n]:s?null:t.firstChild?Nr.call(t.childNodes):null,i,!r&&n?n:s?s.__e:t.firstChild,r,o),Ul(i,e,o)}function Hl(e,t){Br(e,t,Hl)}function Gh(e,t,n){var r,s,i,o,a=Wt({},e.props);for(i in e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?s=t[i]:a[i]=t[i]===void 0&&o!==void 0?o[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?Nr.call(arguments,2):n),Lr(e.type,a,r||e.key,s||e.ref,null)}function Gl(e,t){var n={__c:t="__cC"+Dl++,__:e,Consumer:function(r,s){return r.children(s)},Provider:function(r){var s,i;return this.getChildContext||(s=[],(i={})[t]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){s=null},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&s.some(function(a){a.__e=!0,no(a)})},this.sub=function(o){s.push(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){s&&s.splice(s.indexOf(o),1),a&&a.call(o)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Nr=Nl.slice,Z={__e:function(e,t,n,r){for(var s,i,o;t=t.__;)if((s=t.__c)&&!s.__)try{if((i=s.constructor)&&i.getDerivedStateFromError!=null&&(s.setState(i.getDerivedStateFromError(e)),o=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,r||{}),o=s.__d),o)return s.__E=s}catch(a){e=a}throw e}},Pl=0,dt.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Wt({},this.state),typeof e=="function"&&(e=e(Wt({},n),this.props)),e&&Wt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),no(this))},dt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),no(this))},dt.prototype.render=Oe,Cn=[],Ol=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ki=function(e,t){return e.__v.__b-t.__v.__b},Ps.__r=0,Qi=0,eo=jl(!1),to=jl(!0),Dl=0;var Ut,he,io,ql,Kn=0,Yl=[],Ce=Z,Jl=Ce.__b,Zl=Ce.__r,Xl=Ce.diffed,Kl=Ce.__c,Ql=Ce.unmount,eu=Ce.__;function Sn(e,t){Ce.__h&&Ce.__h(he,e,Kn||t),Kn=0;var n=he.__H||(he.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Qn(e){return Kn=1,Os(nu,e)}function Os(e,t,n){var r=Sn(Ut++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):nu(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,a);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=he,!he.u)){var s=function(a,l,u){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(p){return!!p.__c});if(f.every(function(p){return!p.__N}))return!i||i.call(this,a,l,u);var c=!1;return f.forEach(function(p){if(p.__N){var m=p.__[0];p.__=p.__N,p.__N=void 0,m!==p.__[0]&&(c=!0)}}),!(!c&&r.__c.props===a)&&(!i||i.call(this,a,l,u))};he.u=!0;var i=he.shouldComponentUpdate,o=he.componentWillUpdate;he.componentWillUpdate=function(a,l,u){if(this.__e){var f=i;i=void 0,s(a,l,u),i=f}o&&o.call(this,a,l,u)},he.shouldComponentUpdate=s}return r.__N||r.__}function kn(e,t){var n=Sn(Ut++,3);!Ce.__s&&mo(n.__H,t)&&(n.__=e,n.i=t,he.__H.__h.push(n))}function xn(e,t){var n=Sn(Ut++,4);!Ce.__s&&mo(n.__H,t)&&(n.__=e,n.i=t,he.__h.push(n))}function oo(e){return Kn=5,Vr(function(){return{current:e}},[])}function ao(e,t,n){Kn=6,xn(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function Vr(e,t){var n=Sn(Ut++,7);return mo(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function lo(e,t){return Kn=8,Vr(function(){return e},t)}function uo(e){var t=he.context[e.__c],n=Sn(Ut++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(he)),t.props.value):e.__}function co(e,t){Ce.useDebugValue&&Ce.useDebugValue(t?t(e):e)}function qh(e){var t=Sn(Ut++,10),n=Qn();return t.__=e,he.componentDidCatch||(he.componentDidCatch=function(r,s){t.__&&t.__(r,s),n[1](r)}),[n[0],function(){n[1](void 0)}]}function fo(){var e=Sn(Ut++,11);if(!e.__){for(var t=he.__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 Yh(){for(var e;e=Yl.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ds),e.__H.__h.forEach(ho),e.__H.__h=[]}catch(t){e.__H.__h=[],Ce.__e(t,e.__v)}}Ce.__b=function(e){he=null,Jl&&Jl(e)},Ce.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),eu&&eu(e,t)},Ce.__r=function(e){Zl&&Zl(e),Ut=0;var t=(he=e.__c).__H;t&&(io===he?(t.__h=[],he.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Ds),t.__h.forEach(ho),t.__h=[],Ut=0)),io=he},Ce.diffed=function(e){Xl&&Xl(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Yl.push(t)!==1&&ql===Ce.requestAnimationFrame||((ql=Ce.requestAnimationFrame)||Jh)(Yh)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),io=he=null},Ce.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Ds),n.__h=n.__h.filter(function(r){return!r.__||ho(r)})}catch(r){t.some(function(s){s.__h&&(s.__h=[])}),t=[],Ce.__e(r,n.__v)}}),Kl&&Kl(e,t)},Ce.unmount=function(e){Ql&&Ql(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Ds(r)}catch(s){t=s}}),n.__H=void 0,t&&Ce.__e(t,n.__v))};var tu=typeof requestAnimationFrame=="function";function Jh(e){var t,n=function(){clearTimeout(r),tu&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);tu&&(t=requestAnimationFrame(n))}function Ds(e){var t=he,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),he=t}function ho(e){var t=he;e.__c=e.__(),he=t}function mo(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function nu(e,t){return typeof t=="function"?t(e):t}function po(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 Ns(e,t){this.props=e,this.context=t}function ru(e,t){function n(s){var i=this.props.ref,o=i==s.ref;return!o&&i&&(i.call?i(null):i.current=null),t?!t(this.props,s)||!o:po(this.props,s)}function r(s){return this.shouldComponentUpdate=n,d(e,s)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Ns.prototype=new dt).isPureReactComponent=!0,Ns.prototype.shouldComponentUpdate=function(e,t){return po(this.props,e)||po(this.state,t)};var su=Z.__b;Z.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),su&&su(e)};var Zh=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function iu(e){function t(n){if(!("ref"in n))return e(n,null);var r=n.ref;delete n.ref;var s=e(n,r);return n.ref=r,s}return t.$$typeof=Zh,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ou=function(e,t){return e==null?null:jt(jt(e).map(t))},au={map:ou,forEach:ou,count:function(e){return e?jt(e).length:0},only:function(e){var t=jt(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:jt},Xh=Z.__e;Z.__e=function(e,t,n,r){if(e.then){for(var s,i=t;i=i.__;)if((s=i.__c)&&s.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),s.__c(e,t)}Xh(e,t,n,r)};var lu=Z.unmount;function uu(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=function(r,s){for(var i in s)r[i]=s[i];return r}({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return uu(r,t,n)})),e}function cu(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return cu(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 Fr(){this.__u=0,this.t=null,this.__b=null}function fu(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function du(e){var t,n,r;function s(i){if(t||(t=e()).then(function(o){n=o.default||o},function(o){r=o}),r)throw r;if(!n)throw t;return d(n,i)}return s.displayName="Lazy",s.__f=!0,s}function er(){this.u=null,this.o=null}Z.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),lu&&lu(e)},(Fr.prototype=new dt).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var s=fu(r.__v),i=!1,o=function(){i||(i=!0,n.__R=null,s?s(a):a())};n.__R=o;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=cu(l,l.__c.__P,l.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.t.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},Fr.prototype.componentWillUnmount=function(){this.t=[]},Fr.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]=uu(this.__b,n,r.__O=r.__P)}this.__b=null}var s=t.__a&&d(Oe,null,e.fallback);return s&&(s.__u&=-33),[d(Oe,null,t.__a?null:e.children),s]};var hu=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 Kh(e){return this.getChildContext=function(){return e.context},e.children}function Qh(e){var t=this,n=e.i;t.componentWillUnmount=function(){Br(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,s){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Br(d(Kh,{context:t.context},e.__v),t.l)}function mu(e,t){var n=d(Qh,{__v:e,i:t});return n.containerInfo=t,n}(er.prototype=new dt).__a=function(e){var t=this,n=fu(t.__v),r=t.o.get(e);return r[0]++,function(s){var i=function(){t.props.revealOrder?(r.push(s),hu(t,e,r)):s()};n?n(i):i()}},er.prototype.render=function(e){this.u=null,this.o=new Map;var t=jt(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},er.prototype.componentDidUpdate=er.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){hu(e,n,t)})};var pu=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,em=/^(?: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]/,tm=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,nm=/[A-Z0-9]/g,rm=typeof document<"u",sm=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Rs(e,t,n){return t.__k==null&&(t.textContent=""),Br(e,t),typeof n=="function"&&n(),e?e.__c:null}function $u(e,t,n){return Hl(e,t),typeof n=="function"&&n(),e?e.__c:null}dt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(dt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var gu=Z.event;function im(){}function om(){return this.cancelBubble}function am(){return this.defaultPrevented}Z.event=function(e){return gu&&(e=gu(e)),e.persist=im,e.isPropagationStopped=om,e.isDefaultPrevented=am,e.nativeEvent=e};var $o,lm={enumerable:!1,configurable:!0,get:function(){return this.class}},wu=Z.vnode;Z.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,s={},i=r.indexOf("-")===-1;for(var o in n){var a=n[o];if(!(o==="value"&&"defaultValue"in n&&a==null||rm&&o==="children"&&r==="noscript"||o==="class"||o==="className")){var l=o.toLowerCase();o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?o="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||sm(n.type)?l==="onfocus"?o="onfocusin":l==="onblur"?o="onfocusout":tm.test(o)&&(o=l):l=o="oninput":i&&em.test(o)?o=o.replace(nm,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&s[o=l]&&(o="oninputCapture"),s[o]=a}}r=="select"&&s.multiple&&Array.isArray(s.value)&&(s.value=jt(n.children).forEach(function(u){u.props.selected=s.value.indexOf(u.props.value)!=-1})),r=="select"&&s.defaultValue!=null&&(s.value=jt(n.children).forEach(function(u){u.props.selected=s.multiple?s.defaultValue.indexOf(u.props.value)!=-1:s.defaultValue==u.props.value})),n.class&&!n.className?(s.class=n.class,Object.defineProperty(s,"className",lm)):(n.className&&!n.class||n.class&&n.className)&&(s.class=s.className=n.className),t.props=s}(e),e.$$typeof=pu,wu&&wu(e)};var yu=Z.__r;Z.__r=function(e){yu&&yu(e),$o=e.__c};var _u=Z.diffed;Z.diffed=function(e){_u&&_u(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),$o=null};var vu={ReactCurrentDispatcher:{current:{readContext:function(e){return $o.__n[e.__c].props.value},useCallback:lo,useContext:uo,useDebugValue:co,useDeferredValue:yo,useEffect:kn,useId:fo,useImperativeHandle:ao,useInsertionEffect:vo,useLayoutEffect:xn,useMemo:Vr,useReducer:Os,useRef:oo,useState:Qn,useSyncExternalStore:bo,useTransition:_o}}},bu="18.3.1";function Cu(e){return d.bind(null,e)}function Wr(e){return!!e&&e.$$typeof===pu}function Su(e){return Wr(e)&&e.type===Oe}function ku(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function xu(e){return Wr(e)?Gh.apply(null,arguments):e}function go(e){return!!e.__k&&(Br(null,e),!0)}function Iu(e){return e&&(e.base||e.nodeType===1&&e)||null}var Au=function(e,t){return e(t)},Eu=function(e,t){return e(t)},Tu=Oe;function wo(e){e()}function yo(e){return e}function _o(){return[!1,wo]}var vo=xn,Pu=Wr;function bo(e,t){var n=t(),r=Qn({h:{__:n,v:t}}),s=r[0].h,i=r[1];return xn(function(){s.__=n,s.v=t,Co(s)&&i({h:s})},[e,n,t]),kn(function(){return Co(s)&&i({h:s}),e(function(){Co(s)&&i({h:s})})},[e]),n}function Co(e){var t,n,r=e.v,s=e.__;try{var i=r();return!((t=s)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var Ls={useState:Qn,useId:fo,useReducer:Os,useEffect:kn,useLayoutEffect:xn,useInsertionEffect:vo,useTransition:_o,useDeferredValue:yo,useSyncExternalStore:bo,startTransition:wo,useRef:oo,useImperativeHandle:ao,useMemo:Vr,useCallback:lo,useContext:uo,useDebugValue:co,version:"18.3.1",Children:au,render:Rs,hydrate:$u,unmountComponentAtNode:go,createPortal:mu,createElement:d,createContext:Gl,createFactory:Cu,cloneElement:xu,createRef:Ll,Fragment:Oe,isValidElement:Wr,isElement:Pu,isFragment:Su,isMemo:ku,findDOMNode:Iu,Component:dt,PureComponent:Ns,memo:ru,forwardRef:iu,flushSync:Eu,unstable_batchedUpdates:Au,StrictMode:Tu,Suspense:Fr,SuspenseList:er,lazy:du,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:vu};const um=Object.freeze(Object.defineProperty({__proto__:null,Children:au,Component:dt,Fragment:Oe,PureComponent:Ns,StrictMode:Tu,Suspense:Fr,SuspenseList:er,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:vu,cloneElement:xu,createContext:Gl,createElement:d,createFactory:Cu,createPortal:mu,createRef:Ll,default:Ls,findDOMNode:Iu,flushSync:Eu,forwardRef:iu,hydrate:$u,isElement:Pu,isFragment:Su,isMemo:ku,isValidElement:Wr,lazy:du,memo:ru,render:Rs,startTransition:wo,unmountComponentAtNode:go,unstable_batchedUpdates:Au,useCallback:lo,useContext:uo,useDebugValue:co,useDeferredValue:yo,useEffect:kn,useErrorBoundary:qh,useId:fo,useImperativeHandle:ao,useInsertionEffect:vo,useLayoutEffect:xn,useMemo:Vr,useReducer:Os,useRef:oo,useState:Qn,useSyncExternalStore:bo,useTransition:_o,version:bu},Symbol.toStringTag,{value:"Module"}));function wt(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function cm(e){return e!=null&&typeof e.GetEnumerator=="function"}function fm(e){return e!=null&&typeof e.CompareTo=="function"}function dm(e){return e!=null&&typeof e.Equals=="function"}function Mu(e){return e!=null&&typeof e.GetHashCode=="function"}function So(e){return e!=null&&typeof e.Dispose=="function"}function ue(e){So(e)&&e.Dispose()}function te(){return null}function Bs(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 hm{constructor(t){this.iter=t,this.current=te()}"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 pe(e){return cm(e)?e.GetEnumerator():new hm(e[Symbol.iterator]())}function jr(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}}}}class mm{constructor(t){this.factory=t,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function ce(e,t){return e.toString(10).padStart(t,"0")}function pm(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function Ou(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function $m(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function un(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class zt{static id(t){return zt.idMap.has(t)||zt.idMap.set(t,++zt.count),zt.idMap.get(t)}}zt.idMap=new WeakMap,zt.count=0;function Vs(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function yt(e){return e*2654435761|0}function Du(e){return Vs(e.toString(32))}function Ur(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const s=e[r];t=(t<<5)+t^s}return t}function gm(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return yt(e);case"bigint":return Du(e);case"string":return Vs(e);default:return yt(zt.id(e))}}function wm(e){return Mu(e)?e.GetHashCode():gm(e)}function ym(e){return e.getTime()}function _m(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Ht(e[r]);return Ur(n)}function Ht(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return yt(e);case"bigint":return Du(e);case"string":return Vs(e);default:{if(Mu(e))return e.GetHashCode();if(wt(e))return _m(e);if(e instanceof Date)return ym(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Ht(r));return Ur(n)}else return yt(zt.id(e))}}}function ko(e){return wm(e)}function xo(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 Nu(e,t){return xo(e,t,O)}function vm(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let s=0;s<n.length;s++)if(n[s]!==r[s]||!O(e[n[s]],t[r[s]]))return!1;return!0}function O(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:dm(e)?e.Equals(t):wt(e)?wt(t)&&Nu(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Ru(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&vm(e,t)}function Ru(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Ou(e),r=t.getTime()+Ou(t)),n===r?0:n<r?-1:1}function Fs(e,t){return e===t?0:e<t?-1:1}function bm(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,s=0;r<e.length;r++)if(s=n(e[r],t[r]),s!==0)return s;return 0}function Lu(e,t){return bm(e,t,ht)}function Cm(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let s=0,i=0;s<n.length;s++){const o=n[s];if(o!==r[s])return o<r[s]?-1:1;if(i=ht(e[o],t[o]),i!==0)return i}return 0}function ht(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:fm(e)?e.CompareTo(t):wt(e)?wt(t)?Lu(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Ru(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?Cm(e,t):-1}function C(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function Sm(e){wt(e)?e.splice(0):e.clear()}const Ws=new WeakMap;function ne(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Ws.set(t,e),t}function Pt(e){return Ws.get(e)??(t=>n=>e(t,n))}function Io(e){if(e==null)return null;const t=(n,r,s)=>e(n)(r)(s);return Ws.set(t,e),t}function js(e){return Ws.get(e)??(t=>n=>r=>e(t,n,r))}function km(e){let t=0,n="[";for(const r of e){if(t===0)n+=Mt(r);else if(t===100){n+="; ...";break}else n+="; "+Mt(r);t++}return n+"]"}function Mt(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 km(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([s,i])=>s+" = "+Mt(i,t+1)).join(`
2
- `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function xm(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Mt(t[0]),r=n.indexOf(" ")>=0):n=t.map(s=>Mt(s)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class R{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return xm(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>Ht(n));return t.splice(0,0,yt(this.tag)),Ur(t)}Equals(t){return this===t?!0:Bs(this,t)&&this.tag===t.tag?Nu(this.fields,t.fields):!1}CompareTo(t){return this===t?0:Bs(this,t)?this.tag===t.tag?Lu(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function Im(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function Am(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Mt(n)).join(`
3
- `)+" }"}function Em(e){const t=Object.values(e).map(n=>Ht(n));return Ur(t)}function Tm(e,t){if(e===t)return!0;if(Bs(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!O(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Pm(e,t){if(e===t)return 0;if(Bs(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const s=ht(e[n[r]],t[n[r]]);if(s!==0)return s}return 0}else return-1}class B{toJSON(){return Im(this)}toString(){return Am(this)}GetHashCode(){return Em(this)}Equals(t){return Tm(this,t)}CompareTo(t){return Pm(this,t)}}class et{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 Mm{constructor(t){this.message=t}}function Om(e){return e instanceof Mm||e instanceof Error}function Dm(e){return e instanceof Promise}function Us(e){return Om(e)||Dm(e)?e:new Error(String(e))}const tr=Symbol("numeric");function Bu(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[tr])}function Nm(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Ao(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[tr]().multiply(t)}function zs(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[tr]().toFixed(t)}function Hs(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[tr]().toPrecision(t)}function Gs(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[tr]().toExponential(t)}function qs(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[tr]().toHex()}class Rm{constructor(t,n,r,s){this.declaringType=t,this.tag=n,this.name=r,this.fields=s}}class je{constructor(t,n,r,s,i,o,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=s,this.fields=i,this.cases=o,this.enumCases=a}toString(){return ye(this)}GetHashCode(){return Vu(this)}Equals(t){return Eo(this,t)}}function ot(e){return e.generics!=null?e.generics:[]}function Vu(e){const t=Vs(e.fullname),n=ot(e).map(Vu);return Ur([t,...n])}function Eo(e,t){return e.fullname===""?t.fullname===""&&xo(Hr(e),Hr(t),([n,r],[s,i])=>n===s&&Eo(r,i)):e.fullname===t.fullname&&xo(ot(e),ot(t),Eo)}function Gt(e,t,n,r){return new je(e,t,n,r)}function fe(e,t,n,r){return new je(e,t,n,void 0,r)}function tt(...e){return new je("",void 0,void 0,void 0,()=>e)}function _t(e,t,n,r){const s=new je(e,t,n,void 0,void 0,()=>{const i=n.prototype.cases();return r().map((o,a)=>new Rm(s,a,i[a],o))});return s}function Lm(...e){return new je("System.Tuple`"+e.length,e)}function K(e){return new je("Microsoft.FSharp.Core.FSharpOption`1",[e])}function cn(e){return new je("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Bm=new je("System.Object"),G=new je("System.String"),mt=new je("System.Boolean"),Ys=new je("System.Int32"),Vm=new je("System.Double");function nr(e){if(Array.isArray(e))return e[0];if(e instanceof je){const t=zr(e);if(t!=null)return nr(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function ye(e){const t=zr(e);return t!=null?ye(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>ye(n)).join(",")+"]"}function Fu(e){return zr(e)!=null}function zr(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Wu(e){return e.generics!=null&&e.generics.length>0}function To(e){return e.enumCases!=null&&e.enumCases.length>0}function ju(e){return e.generics==null?e:new je(e.fullname,e.generics.map(()=>Bm))}function Uu(e){var t;return(t=e.generics)==null?void 0:t[0]}function rr(e){if(To(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Fm(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 sr(e,t){const n=parseInt(t,10);return Fm(e,isNaN(n)?t:n)[1]}function zu(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Hr(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Hu(e){if(Po(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Gu(e){return e instanceof je?e.cases!=null:e instanceof R}function qu(e){return e instanceof je?e.fields!=null:e instanceof B}function Po(e){return e.fullname.startsWith("System.Tuple")}function Wm(e,t){const r=zu(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function Yu(e){return e.fields==null?[]:e.fields}function jm(e,t){return e[t[0]]}function G3(e){return e}function Um(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 zm(e,t){const n=Hr(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[s,i],o)=>(r[s]=t[o],r),{})}function Hm(e,t){return e}class In{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Ht(this.value)}Equals(t){return t==null?!1:O(this.value,t instanceof In?t.value:t)}CompareTo(t){return t==null?1:ht(this.value,t instanceof In?t.value:t)}}function x(e){if(e==null)throw new Error("Option has no value");return e instanceof In?e.value:e}function Js(e){return e instanceof In?e.value:e}function Ee(e){return e==null||e instanceof In?new In(e):e}function Ju(e){return e??void 0}function Zs(e){return e==null?[]:[x(e)]}function Te(e,t){return e!=null?x(e):t}function Gm(e,t){return e!=null?x(e):t()}function Zu(e,t){return e??t}function Fe(e,t){return t!=null?Ee(e(x(t))):void 0}function fn(e,t){return t!=null?e(x(t)):void 0}const qm=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Ym=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Jm=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Zm=["January","February","March","April","May","June","July","August","September","October","November","December"];function at(e,t,n){let r=0,s=t;for(;s<e.length&&e[s]===n;)s++,r++;return r}function Xu(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Xm(e,t){let n=t;const r=e[t];let s="",i=!1;for(;t<e.length;){t++;const o=e[t];if(o===r){i=!0;break}else if(o==="\\")if(t<e.length)t++,s+=e[t];else throw new Error("Invalid string format");else s+=o}if(!i)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[s,t-n+1]}function Mo(e,t,n){let r=0,s=0,i="";const o=n?An(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(s=at(t,r,"d"),r+=s,s){case 1:i+=Oo(o);break;case 2:i+=ce(Oo(o),2);break;case 3:i+=qm[rc(o)];break;case 4:i+=Ym[rc(o)];break}break;case"f":if(s=at(t,r,"f"),r+=s,s<=3){const w=10**(3-s);i+=ce(Math.floor(ei(o)/w),s)}else s<=7&&(i+=(""+ei(o)).padEnd(s,"0"));break;case"F":if(s=at(t,r,"F"),r+=s,s<=3){const w=10**(3-s),v=Math.floor(ei(o)/w);v!=0&&(i+=ce(v,s))}else if(s<=7){const w=ei(o);w!=0&&(i+=ce(w,3))}break;case"g":s=at(t,r,"g"),r+=s,s<=2&&(i+="A.D.");break;case"h":switch(s=at(t,r,"h"),r+=s,s){case 1:i+=Qs(o)%12;break;case 2:i+=ce(Qs(o)%12,2);break}break;case"H":switch(s=at(t,r,"H"),r+=s,s){case 1:i+=Qs(o);break;case 2:i+=ce(Qs(o),2);break}break;case"K":switch(s=at(t,r,"K"),r+=s,s){case 1:switch(Ku(o)){case 1:i+="Z";break;case 2:i+=ir(o.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(s=at(t,r,"m"),r+=s,s){case 1:i+=tc(o);break;case 2:i+=ce(tc(o),2);break}break;case"M":switch(s=at(t,r,"M"),r+=s,s){case 1:i+=Gr(o);break;case 2:i+=ce(Gr(o),2);break;case 3:i+=Jm[Gr(o)-1];break;case 4:i+=Zm[Gr(o)-1];break}break;case"s":switch(s=at(t,r,"s"),r+=s,s){case 1:i+=nc(o);break;case 2:i+=ce(nc(o),2);break}break;case"t":switch(s=at(t,r,"t"),r+=s,s){case 1:i+=o.getHours()<12?"A":"P";break;case 2:i+=o.getHours()<12?"AM":"PM";break}break;case"y":switch(s=at(t,r,"y"),r+=s,s){case 1:i+=o.getFullYear()%100;break;case 2:i+=ce(o.getFullYear()%100,2);break;case 3:i+=ce(o.getFullYear(),3);break;case 4:i+=ce(o.getFullYear(),4);break;case 5:i+=ce(o.getFullYear(),5);break}break;case"z":s=at(t,r,"z"),r+=s;let l="";switch(Ku(o)){case 1:l="+00:00";break;case 2:l=ir(o.getTimezoneOffset()*-6e4);break;case 0:l=ir(l1(o).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),c=parseInt(l.substring(4,6),10);switch(s){case 1:i+=`${u}${f}`;break;case 2:i+=`${u}${ce(f,2)}`;break;default:i+=`${u}${ce(f,2)}:${ce(c,2)}`;break}break;case":":i+=":",r++;break;case"/":i+="/",r++;break;case"'":case'"':const[p,m]=Xm(t,r);i+=p,r+=m;break;case"%":const $=Xu(t,r);if($>=0&&$!==37)r+=2,i+=Mo(o,String.fromCharCode($),n);else throw new Error("Invalid format string");break;case"\\":const g=Xu(t,r);if(g>=0)r+=2,i+=String.fromCharCode(g);else throw new Error("Invalid format string");break;default:r++,i+=a;break}}return i}function Ku(e){return e.kind||0}function ir(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+ce(n,2)+":"+ce(r,2)}function Xs(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 Km(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return ce(e.getFullYear(),4)+"-"+ce(e.getMonth()+1,2)+"-"+ce(e.getDate(),2)+"T"+ce(e.getHours(),2)+":"+ce(e.getMinutes(),2)+":"+ce(e.getSeconds(),2)+"."+ce(e.getMilliseconds(),3)+(n?ir(e.getTimezoneOffset()*-6e4):"")}}function Qm(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+ir(t)}function e1(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," ")+ir(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return Xs(n,"first");case"T":case"t":return Xs(n,"second");case"O":case"o":return Qm(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Mo(n,t,!0)}function t1(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?Xs(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Xs(e,"second"):e.toLocaleTimeString();case"O":case"o":return Km(e,n);default:throw new Error("Unrecognized Date print format")}else return Mo(e,t,n)}function Ks(e,t,n){return e.offset!=null?e1(e,t):t1(e,t)}function An(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function n1(){return An(-621355968e5,1)}function Qu(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const s=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(s!=null){let i,o=0;if(s[2]!=null){const a=s[2].split(":"),l=parseInt(a[0],10);o=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),s[3]!=null&&s[3].toUpperCase()==="PM"&&l<12&&(o+=720)}if(s[4]!=null){if(s[1]!=null)i=new Date(s[1]+" UTC");else{const a=new Date;i=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(s[4]==="Z")r="Z";else{let a=parseInt(s[5],10)*60+parseInt(s[6]||"0",10);s[4][0]==="-"&&(a*=-1),r=a,o-=a*60}}else if(s[1]!=null)i=new Date(s[1]);else{const a=new Date;i=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(i.getTime()+o*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-i.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function r1(e,t=!1){const[n,r]=Qu(e),s=r!=null?t&&r==="Z"?1:2:0;return An(n.getTime(),s)}function s1(e,t){try{return t.contents=r1(e),!0}catch{return!1}}function i1(e,t,n,r=0,s=0,i=0,o=0,a){const l=a===1?new Date(Date.UTC(e,t-1,n,r,s,i,o)):new Date(e,t-1,n,r,s,i,o);e<=99&&(a===1?l.setUTCFullYear(e,t-1,n):l.setFullYear(e,t-1,n));const u=l.getTime();if(isNaN(u))throw new Error("The parameters describe an unrepresentable Date.");return An(u,a)}function o1(){return An(Date.now(),2)}function ec(){return u1(o1())}function a1(e){return e.kind===1?e:An(e.getTime(),1)}function l1(e){return e.kind===2?e:An(e.getTime(),2)}function u1(e){return i1(Do(e),Gr(e),Oo(e),0,0,0,0,e.kind)}function Oo(e){return e.kind===1?e.getUTCDate():e.getDate()}function Qs(e){return e.kind===1?e.getUTCHours():e.getHours()}function ei(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function tc(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Gr(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function nc(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Do(e){return e.kind===1?e.getUTCFullYear():e.getFullYear()}function rc(e){return e.kind===1?e.getUTCDay():e.getDay()}function sc(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 ti(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function c1(e,t,n=0){return e.lastIndex=n,e.exec(t)}function ic(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let s,i=-1;for(;(s=e.exec(t))!=null;)s.index===i?e.lastIndex++:(i=s.index,r.push(s));return r}function f1(e,t,n,r,s=0){function i(){let o=arguments[0];if(r){r--;const a=[],l=arguments.length,u=typeof arguments[l-1]!="string";let f=u?l-3:l-2;for(let c=0;c<f;c++)a.push(arguments[c]);a.index=arguments[f++],a.input=arguments[f++],u&&(a.groups=arguments[f]),o=n(a)}return o}if(typeof e=="string"){const o=e;e=sc(t,r??0),t=o,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,s)+t.substring(s).replace(e,i);if(n=n.replace(/\$0/g,o=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let o;const a=t.substring(s),l=ic(e,a),u=ic.length>r?(o=l[r-1],a.substring(0,o.index+o[0].length)):a;return t.substring(0,s)+u.replace(e,n)+t.substring(s+u.length)}else return t.replace(e,n)}const qr=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Yr=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,d1=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function oc(e,t){return Nm(e,t)<0}function or(e,t,n){function r(i){return i===!0||i===1||i===3||i===5}function s(i){return i===4||i===5}return e==null?t==null?0:-1:t==null?1:s(n)?(r(n)&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t?0:e<t?-1:1):(r(n)&&(e=e.toLocaleLowerCase(),t=t.toLocaleLowerCase()),e.localeCompare(t))}function h1(...e){switch(e.length){case 2:return or(e[0],e[1],!1);case 3:return or(e[0],e[1],e[2]);case 4:return or(e[0],e[1],e[2]===!0);case 5:return or(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),!1);case 6:return or(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),e[5]);case 7:return or(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),e[5]===!0);default:throw new Error("String.compare: Unsupported number of parameters")}}function Ue(e){return{input:e,cont:m1(e)}}function ac(e,t){let n=0,r=0,s="";Yr.lastIndex=0;let i=Yr.exec(e);for(;i;){const o=i.index+(i[1]||"").length;s+=e.substring(r,o).replace(/%%/g,"%");const[,,a,l,u,f]=i;r=Yr.lastIndex,s+=cc(t[n++],a,l,u,f),Yr.lastIndex=r-1,i=Yr.exec(e)}return s+=e.substring(r).replace(/%%/g,"%"),s}function lc(e,t){return typeof t=="string"?e(t):t.cont(e)}function ze(e){return lc(t=>t,e)}function uc(e){return lc(t=>{throw new Error(t)},e)}function cc(e,t,n,r,s){let i="";if(t=t||"",s=s||"",Bu(e))switch(s.toLowerCase()!=="x"&&(oc(e,0)?(e=Ao(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=r==null?null:parseInt(r,10),s){case"f":case"F":r=r??6,e=zs(e,r);break;case"g":case"G":e=r!=null?Hs(e,r):Hs(e);break;case"e":case"E":e=r!=null?Gs(e,r):Gs(e);break;case"x":e=qs(e);break;case"X":e=qs(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Ks(e):e=Mt(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=i+e;else{const o=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!o?" ":"0";l==="0"?(e=Zr(e,n-i.length,l,a),e=i+e):e=Zr(i+e,n,l,a)}return e}function fc(e,t,n,r="",s=-1){return(...i)=>{let o=r;const a=t.slice(),l=n.slice();for(const u of i){const[,,f,c,p,m]=l[0];let $=c;if(s>=0)$=s,s=-1;else if($==="*"){if(u<0)throw new Error("Non-negative number required");s=u;continue}o+=a[0],o+=cc(u,f,$,p,m),a.splice(0,1),l.splice(0,1)}return l.length===0?(o+=a[0],e(o)):fc(e,a,l,o,s)}}function m1(e){return t=>{qr.lastIndex=0;const n=[],r=[];let s=0,i=qr.exec(e);for(;i;){const o=i.index+(i[1]||"").length;n.push(e.substring(s,o).replace(/%%/g,"%")),r.push(i),s=qr.lastIndex,qr.lastIndex-=1,i=qr.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(s).replace(/%%/g,"%")),fc(t,n,r))}}function dc(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(d1,(r,s,i,o,a,l)=>{if(s<0||s>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[s];if(Bu(u))switch(a=a==null?null:parseInt(a,10),o){case"f":case"F":a=a??2,u=zs(u,a);break;case"g":case"G":u=a!=null?Hs(u,a):Hs(u);break;case"e":case"E":u=a!=null?Gs(u,a):Gs(u);break;case"p":case"P":a=a??2,u=zs(Ao(u,100),a)+" %";break;case"d":case"D":u=a!=null?No(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?No(qs(u),a,"0"):qs(u),o==="X"&&(u=u.toUpperCase());break;default:if(l){let f="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(c,p,m)=>{oc(u,0)&&(u=Ao(u,-1),f="-"),m=m==null?"":m.substring(1),u=zs(u,Math.max(m.length,0));let[$,g]=u.split(".");g||(g="");const w=p.replace(/,/g,"").replace(/^#+/,"").length;$=No($,w,"0");const v=m.replace(/#+$/,"").length;if(v>g.length?g=p1(g,v,"0"):v<g.length&&(g=g.substring(0,v)+g.substring(v).replace(/0+$/,"")),p.indexOf(",")>0){const S=$.length%3,N=Math.floor($.length/3);let ee=S>0?$.substr(0,S)+(N>0?",":""):"";for(let J=0;J<N;J++)ee+=$.substr(S+J*3,3)+(J<N-1?",":"");$=ee}return g.length>0?$+"."+g:$}),u=f+u}}else u instanceof Date?u=Ks(u,l||o):u=Mt(u);return i=parseInt((i||" ").substring(1),10),isNaN(i)||(u=Zr(String(u),Math.abs(i)," ",i<0)),u})}function hc(e){return typeof e!="string"||e.length===0}function Jr(e){return typeof e!="string"||/^\s*$/.test(e)}function be(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Zr(e,t,n,r){n=n||" ",t=t-e.length;for(let s=0;s<t;s++)e=r?e+n:n+e;return e}function No(e,t,n){return Zr(e,t,n)}function p1(e,t,n){return Zr(e,t,n,!0)}function mc(e,t,n){return e.replace(new RegExp(ti(t),"g"),n)}function ni(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const s=(r&1)===1,i=(r&2)===2;t=t||[],t=t.filter(f=>f).map(ti),t=t.length>0?t:["\\s"];const o=[],a=new RegExp(t.join("|"),"g");let l=!0,u=0;do{const f=a.exec(e);if(f===null){const c=i?e.substring(u).trim():e.substring(u);(!s||c.length>0)&&o.push(c),l=!1}else{const c=i?e.substring(u,f.index).trim():e.substring(u,f.index);(!s||c.length>0)&&(n!=null&&o.length+1===n?(o.push(i?e.substring(u).trim():e.substring(u)),l=!1):o.push(c)),u=a.lastIndex}}while(l);return o}function $1(e,...t){if(t.length===0)return e.trim();const n="["+ti(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function g1(e,...t){return t.length===0?e.trimEnd():e.replace(new RegExp("["+ti(t.join(""))+"]+$"),"")}function Ro(e,t){return t.split("").filter(n=>e(n)).join("")}function w1(e,t,n){if(t+(n||0)>e.length)throw new Error("Invalid startIndex and/or length");return n!=null?e.substr(t,n):e.substr(t)}function y1(e){throw new Error(e)}function pc(e,t){return new Array(t)}function $c(e,t){return e>t?e:t}const Lo="Collection was empty.",_1="An index satisfying the predicate was not found in the collection.";function ri(e,t,n,r){const s=t|0;return e.fill(r,s,s+n)}function ar(e,t,n){const r=t.length|0,s=pc(n,r);for(let i=0;i<=r-1;i++)vt(s,i,e(re(i,t)));return s}function v1(e,t){const n=pc(t,1);return vt(n,0,e),n}function b1(e){return e.slice().reverse()}function C1(e,t){return t.find(e)}function S1(e,t){return(r=>{e:for(;;){const s=r;if(s<0)return;if(e(re(s,t)))return s;r=s-1;continue e}})(t.length-1)}function k1(e,t,n){const r=[];for(let s=0;s<=t.length-1;s++){const i=e(re(s,t));if(i!=null){const o=x(i);r.push(o)}}return O(n,te())?r:ar(s=>s,r,n)}function si(e,t,n){const r=e;return n.reduce(r,t)}function Bo(e,t,n){return t==null}function re(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 vt(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 gc(e,t){if(!(e<0||e>=t.length))return Ee(t[e])}function wc(e,t,n){return t.reduceRight((r,s)=>e(s,r),n)}class He extends B{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+be("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((s,i)=>{e:for(;;){const o=s,a=i,l=o.tail,u=a.tail;if(l!=null)if(u!=null){const f=x(l),c=x(u);if(O(o.head,a.head)){s=f,i=c;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,s,i)=>{e:for(;;){const o=r,a=s,l=i,u=l.tail;if(u!=null){const f=x(u);if(o>18)return a|0;r=o+1,s=(a<<1)+Ht(l.head)+631*o,i=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((s,i)=>{e:for(;;){const o=s,a=i,l=o.tail,u=a.tail;if(l!=null)if(u!=null){const f=x(l),c=x(u),p=ht(o.head,a.head)|0;if(p===0){s=f,i=c;continue e}else return p|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return I1(this)}[Symbol.iterator](){return jr(pe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return pe(this)}}class x1{constructor(t){this.xs=t,this.it=this.xs,this.current=te()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=x(n);return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=te()}Dispose(){}}function I1(e){return new x1(e)}function Pe(){return new He(te(),void 0)}function Xr(e,t){return new He(e,t)}function Ot(e){return e.tail==null}function yc(e){return((n,r)=>{e:for(;;){const s=n,o=r.tail;if(o!=null){n=s+1,r=x(o);continue e}else return s|0}})(0,e)|0}function dn(e){if(e.tail!=null)return e.head;throw new Error(Lo+"\\nParameter name: list")}function We(e){const t=e.tail;if(t!=null)return x(t);throw new Error(Lo+"\\nParameter name: list")}function _c(){throw new Error(_1)}function de(){return Pe()}function nt(e,t){return Xr(e,t)}function A(e){return Xr(e,Pe())}function M(e){return Ot(e)}function lr(e){return yc(e)}function k(e){return dn(e)}function P(e){return We(e)}function A1(e){e:for(;;){const t=e;if(Ot(t))return;{const n=We(t);if(Ot(n))return Ee(dn(t));e=n;continue e}}}function E1(e){const t=A1(e);if(t==null)throw new Error(Lo);return x(t)}function ur(e){const t=yc(e)|0,n=ri(new Array(t),0,t,null);return((s,i)=>{e:for(;;){const o=s,a=i;if(!Ot(a)){vt(n,o,dn(a)),s=o+1,i=We(a);continue e}break}})(0,e),n}function Dt(e,t,n){let r=t,s=n;for(;!Ot(s);)r=e(r,k(s)),s=We(s);return r}function cr(e){return Dt((t,n)=>Xr(n,t),Pe(),e)}function T1(e,t,n){return wc(e,ur(t),n)}function Kr(e,t){Dt((n,r)=>{e(r)},void 0,t)}function Se(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Xr(re(r,e),n);return n}function y(e){return Se(e,Pe())}function P1(e){let t,n;if(wt(e))return y(e);if(e instanceof He)return e;{const r=Pe();let s=r;const i=pe(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"]();s=(t=s,n=new He(l,void 0),t.tail=n,n)}}finally{ue(i)}const o=s,a=Pe();return o.tail=a,We(r)}}function Vo(e){const t=Pe();let n=t;const r=o=>{n=Dt((a,l)=>{const u=new He(l,void 0);return a.tail=u,u},n,o)};if(wt(e))e.forEach(r);else if(e instanceof He)Kr(r,e);else{const o=pe(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();)r(o["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{ue(o)}}const s=n,i=Pe();return s.tail=i,We(t)}function bt(e,t){return Dt((n,r)=>Xr(r,n),t,cr(e))}function M1(e,t){let n,r;const s=Pe();let i=s,o=t;for(;!Ot(o);){let u=e(dn(o));for(;!Ot(u);)i=(n=i,r=new He(dn(u),void 0),n.tail=r,r),u=We(u);o=We(o)}const a=i,l=Pe();return a.tail=l,We(s)}function rt(e,t){const n=Pe(),r=Dt((i,o)=>{const a=new He(e(o),void 0);return i.tail=a,a},n,t),s=Pe();return r.tail=s,We(n)}function O1(e,t){return(r=>{e:for(;;){const s=r;if(Ot(s))return;{const i=e(dn(s));if(i==null){r=We(s);continue e}else return i}}})(t)}function Qr(e,t){return O1(n=>e(n)?Ee(n):void 0,t)}function ii(e,t){return((r,s)=>{e:for(;;){const i=r,o=s;if(Ot(o))return;if(e(dn(o)))return i;r=i+1,s=We(o);continue e}})(0,t)}function D1(e,t){const n=ii(e,t);return n==null?(_c(),-1):x(n)|0}function N1(e,t){return S1(e,ur(t))}function R1(e,t){const n=N1(e,t);return n==null?(_c(),-1):x(n)|0}function L1(e,t){return((r,s)=>{e:for(;;){const i=r,o=s;if(Ot(o))return;if(i===e)return Ee(dn(o));r=i+1,s=We(o);continue e}})(0,t)}function Fo(e,t){const n=Pe(),r=Dt((i,o)=>{if(e(o)){const a=new He(o,void 0);return i.tail=a,a}else return i},n,t),s=Pe();return r.tail=s,We(n)}function B1(e,t){const n=Pe(),r=Pe(),s=n,i=Dt((l,u)=>{let f,c;const p=l[0],m=l[1];return e(u)?[(f=new He(u,void 0),p.tail=f,f),m]:[p,(c=new He(u,void 0),m.tail=c,c)]},[s,r],t),o=Pe();i[0].tail=o;const a=Pe();return i[1].tail=a,[We(s),We(r)]}function V1(e,t){const n=Pe(),r=Dt((i,o)=>{const a=e(o);if(a==null)return i;{const l=new He(x(a),void 0);return i.tail=l,l}},n,t),s=Pe();return r.tail=s,We(n)}function F1(e,t,n){return ii(r=>n.Equals(e,r),t)!=null}function vc(e,t){return ii(e,t)!=null}const W1="Enumeration already finished.",j1="Enumeration has not started. Call MoveNext.",bc="The input sequence has an insufficient number of elements.",U1="Reset is not supported on this enumerator.";function z1(){throw new Error(U1)}function Wo(){throw new Error(j1)}function jo(){throw new Error(W1)}class H1{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const s=pe(t);try{for(;n<4&&s["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Mt(s["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{ue(s)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return jr(pe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function G1(e){return new H1(e)}class q1{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"(){z1()}Dispose(){this.dispose()}}function oi(e,t,n){return new q1(e,t,n)}function Y1(e){let t,n,r=!1,s=!1,i;const o=()=>{if(s=!0,n!=null){const a=x(n);try{ue(a)}finally{n=void 0}}if(t!=null){const a=x(t);try{ue(a)}finally{t=void 0}}};return oi(()=>(r?s&&jo():Wo(),i!=null?x(i):jo()),()=>{let a;if(r||(r=!0),s)return!1;{let l;for(;l==null;){const u=t,f=n;if(u!=null)if(f!=null){const c=x(f);if(c["System.Collections.IEnumerator.MoveNext"]())i=Ee(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{ue(c)}finally{n=void 0}}else{const c=x(u);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),pe(a)):(o(),l=!1)}else t=pe(e)}return x(l)}},()=>{s||o()})}function J1(e,t){return oi(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{ue(t)}finally{}})}function Cc(e,t,n){let r=!1,s,i=Ee(e());const o=()=>{if(i!=null){const l=x(i);try{n(l)}finally{i=void 0}}},a=()=>{try{o()}finally{s=void 0}};return oi(()=>(r||Wo(),s!=null?x(s):jo()),()=>{if(r||(r=!0),i!=null){const l=x(i);let u;try{u=t(l)}catch(f){throw a(),f}return u!=null?(s=u,!0):(a(),!1)}else return!1},o)}function Z1(e,t){let n,r=t;return oi(()=>{if(n!=null){const s=x(n)[0];return x(n)[1],s}else return Wo()},()=>(n=e(r),n!=null?(x(n)[0],r=x(n)[1],!0):!1),()=>{})}function X1(e,t){t==null&&y1(e)}function fr(e){return G1(e)}function hn(e){return X1("source",e),pe(e)}function E(e){return fr(()=>pe(e()))}function Uo(e){return fr(()=>Y1(e))}function K1(e,t){return fr(()=>Z1(e,t))}function dr(){return E(()=>new Array(0))}function _(e){return E(()=>v1(e))}function q3(e){return e}function zo(e){return e instanceof He?ur(e):Array.from(e)}function $e(e){return wt(e)?y(e):e instanceof He?e:P1(e)}function Q1(e,t,n){return fr(()=>Cc(e,t,n))}function Sc(e,t,n){return fr(()=>{let r=-1;return Cc(e,s=>(r=r+1|0,t(r,s)),n)})}function V(e,t){return Uo([e,t])}function ep(e,t,n){const r=hn(t);try{const s=hn(n);try{let i=0,o=r["System.Collections.IEnumerator.MoveNext"](),a=s["System.Collections.IEnumerator.MoveNext"]();for(;i===0&&o&&a;)i=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),s["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,i===0&&(o=r["System.Collections.IEnumerator.MoveNext"](),a=s["System.Collections.IEnumerator.MoveNext"]());return(i!==0?i:o?1:a?-1:0)|0}finally{ue(s)}}finally{ue(r)}}function En(e,t,n){const r=hn(t);try{let s=!1;for(;!s&&r["System.Collections.IEnumerator.MoveNext"]();)s=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return s}finally{ue(r)}}function es(e,t,n){const r=hn(n);try{let s=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)s=e(s,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return s}finally{ue(r)}}function Tn(e,t){es((n,r)=>{e(r)},void 0,t)}function tp(e,t){es((n,r)=>(e(n,r),n+1|0),0,t)}function Ie(e,t){return Q1(()=>hn(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?Ee(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{ue(n)})}function np(e,t){return Sc(()=>hn(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?Ee(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{ue(n)})}function rp(e){return E(()=>b1(zo(e)))}function sp(e,t){return fr(()=>{const n=hn(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(bc+"\\nParameter name: source");return J1(()=>{},n)}catch(r){throw ue(n),r}})}function ip(e,t){return Sc(()=>hn(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return Ee(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(bc+"\\nParameter name: source")}else return},n=>{ue(n)})}function kc(e,t){return E(()=>Uo(Ie(e,t)))}const Pn={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Ho(e,t){return e.replace(/[a-z]?[A-Z]/g,n=>n.length===1?n.toLowerCase():n.charAt(0)+t+n.charAt(1).toLowerCase())}function op(e,t){switch(t){case Pn.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Pn.SnakeCase:return Ho(e,"_");case Pn.SnakeCaseAllCaps:return Ho(e,"_").toUpperCase();case Pn.KebabCase:return Ho(e,"-");case Pn.None:default:return e}}function Ct(e,t=Pn.None){const n={},r=t;function s(o){throw new Error("Cannot infer key and value of "+String(o))}function i(o,a,l){o=op(o,a),n[o]=l}for(let o of e){let a=Pn.None;if(o==null&&s(o),o instanceof R){const l=o.cases()[o.tag];o=o.fields.length===0?l:[l].concat(o.fields),a=r}if(Array.isArray(o))switch(o.length){case 0:s(o);break;case 1:i(o[0],a,!0);break;case 2:const l=o[1];i(o[0],a,l);break;default:i(o[0],a,o.slice(1))}else typeof o=="string"?i(o,a,!0):s(o)}return n}function ap(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function ts(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}const lp=e=>d("svg",{width:48,height:47,viewBox:"0 0 48 47",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("rect",{width:48,height:47,rx:8,fill:"currentColor",fillOpacity:"10%"}),d("path",{d:"M9 24H30",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M23 17L30 24L23 31",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M23 9H35C35.7956 9 36.5587 9.31607 37.1213 9.87868C37.6839 10.4413 38 11.2044 38 12V36C38 36.7956 37.6839 37.5587 37.1213 38.1213C36.5587 38.6839 35.7956 39 35 39H23",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),up=e=>d("svg",{width:48,height:47,viewBox:"0 0 48 47",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("rect",{width:48,height:47,rx:8,fill:"currentColor",fillOpacity:"10%"}),d("path",{d:"M18 18.782V15C18.0047 13.4102 18.6384 11.8868 19.7626 10.7626C20.8868 9.63841 22.4102 9.00475 24 9C25.5898 9.00475 27.1132 9.63841 28.2374 10.7626C29.3616 11.8868 29.9953 13.4102 30 15V18.783",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M24 39C30.0751 39 35 34.0751 35 28C35 21.9249 30.0751 17 24 17C17.9249 17 13 21.9249 13 28C13 34.0751 17.9249 39 24 39Z",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M24 30V33",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M24 30C25.6569 30 27 28.6569 27 27C27 25.3431 25.6569 24 24 24C22.3431 24 21 25.3431 21 27C21 28.6569 22.3431 30 24 30Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),cp=e=>d("svg",{width:48,height:47,viewBox:"0 0 48 47",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("rect",{width:48,height:47,rx:8,fill:"currentColor",fillOpacity:"10%"}),d("path",{d:"M24 9V22",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M32 19H32.235C32.7699 19.0001 33.2951 19.1432 33.7561 19.4145C34.2171 19.6858 34.5972 20.0754 34.857 20.543L39 28V35C39 35.7956 38.6839 36.5587 38.1213 37.1213C37.5587 37.6839 36.7956 38 36 38H12C11.2044 38 10.4413 37.6839 9.87868 37.1213C9.31607 36.5587 9 35.7956 9 35V28L13.143 20.543C13.4028 20.0754 13.7829 19.6858 14.2439 19.4145C14.7049 19.1432 15.2301 19.0001 15.765 19H16",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M29 17L24 22L19 17",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M39 28H29V31H19V28H9",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),fp=e=>d("svg",{width:48,height:47,viewBox:"0 0 48 47",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("rect",{width:48,height:47,rx:8,fill:"currentColor",fillOpacity:"10%"}),d("path",{d:"M24 18V24H18",stroke:"#212121",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M32 39C35.866 39 39 35.866 39 32C39 28.134 35.866 25 32 25C28.134 25 25 28.134 25 32C25 35.866 28.134 39 32 39Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M21.9816 35.8395C21.8897 36.3783 21.3771 36.7444 20.8469 36.6118C18.8631 36.1159 17.0195 35.1576 15.4695 33.8097C13.6699 32.2448 12.3355 30.215 11.6122 27.9425C10.889 25.67 10.8048 23.2424 11.3689 20.9252C11.9329 18.6081 13.1235 16.4907 14.8103 14.8049C16.4971 13.1191 18.6151 11.9298 20.9326 11.3671C23.2501 10.8044 25.6777 10.89 27.9498 11.6145C30.2218 12.3391 32.2508 13.6747 33.8147 15.4752C35.1617 17.026 36.1189 18.8702 36.6137 20.8543C36.7459 21.3846 36.3795 21.8969 35.8407 21.9885C35.3018 22.08 34.7952 21.7157 34.6557 21.1873C34.2264 19.5608 33.4291 18.0497 32.3203 16.7731C30.9946 15.2468 29.2745 14.1146 27.3484 13.5003C25.4222 12.8861 23.3643 12.8135 21.3996 13.2905C19.435 13.7675 17.6395 14.7758 16.2095 16.2049C14.7795 17.6341 13.7702 19.429 13.292 21.3934C12.8139 23.3577 12.8852 25.4158 13.4984 27.3422C14.1115 29.2687 15.2427 30.9895 16.7683 32.3161C18.0442 33.4256 19.5549 34.2238 21.181 34.654C21.7094 34.7938 22.0734 35.3007 21.9816 35.8395Z",fill:"#111827"}),d("line",{x1:32,y1:29,x2:32,y2:32,stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),d("circle",{cx:32,cy:35,r:1,fill:"currentColor"})),dp=e=>d("svg",{width:48,height:47,viewBox:"0 0 48 47",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("rect",{width:48,height:47,rx:8,fill:"#FEE2E2"}),d("g",{clipPath:"url(#clip0_153_10600)"},d("path",{d:"M24 15V27",stroke:"#DC2626",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"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",fill:"#DC2626"}),d("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"})),d("defs",null,d("clipPath",{id:"clip0_153_10600"},d("rect",{width:32,height:32,fill:"white",transform:"translate(8 8)"})))),hp=e=>d("svg",{width:48,height:47,viewBox:"0 0 48 47",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("rect",{width:48,height:47,rx:8,fill:"currentColor",fillOpacity:"10%"}),d("g",{clipPath:"url(#clip0_261_2289)"},d("path",{d:"M17 25L21 29L31 19",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M24 39C32.2843 39 39 32.2843 39 24C39 15.7157 32.2843 9 24 9C15.7157 9 9 15.7157 9 24C9 32.2843 15.7157 39 24 39Z",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),d("defs",null,d("clipPath",{id:"clip0_261_2289"},d("rect",{width:32,height:32,fill:"white",transform:"translate(8 8)"}))));function hr(e){return $e(E(()=>V(_(["className","text-primary-base"]),E(()=>e))))}function xc(e){const t=Ct(hr(e),1);return d(lp,t)}function mp(e){const t=Ct(hr(e),1);return d(up,t)}function pp(e){const t=Ct(hr(e),1);return d(cp,t)}function $p(e){const t=Ct(hr(e),1);return d(fp,t)}function gp(e){const t=Ct(hr(e),1);return d(dp,t)}function Ic(e){const t=Ct(hr(e),1);return d(hp,t)}var Go;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Go||(Go={}));function wp(e,t){const[,n,r,s]=e;return{sign:n||"",prefix:r||"",digits:s,radix:t}}function Ac(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 yp(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 _p(e,t){if(t&Go.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 vp(e,t,n){const s=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(s!=null){const[,,i,o]=s;if(n=n||_p(i,t),!yp(n).test(o))return wp(s,n)}return null}function qo(e,t,n,r,s){const i=vp(e,t,s);if(i!=null){let o=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(o)){const[a,l]=Ac(!0,r);!n&&i.radix!==10&&o>=a&&o<=l&&(o=o<<32-r>>32-r);const[u,f]=Ac(n,r);if(o>=u&&o<=f)return o}}throw new Error(`The input string ${e} was not in a correct format.`)}function mr(e,t,n,r,s){try{return s.contents=qo(e,t,n,r),!0}catch{return!1}}const b=Ls,bp=e=>d("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("path",{d:"M21.6004 11.9999C21.6004 17.3018 17.3023 21.5999 12.0004 21.5999C6.69846 21.5999 2.40039 17.3018 2.40039 11.9999C2.40039 6.69797 6.69846 2.3999 12.0004 2.3999C17.3023 2.3999 21.6004 6.69797 21.6004 11.9999ZM4.7973 11.9999C4.7973 15.9781 8.02224 19.203 12.0004 19.203C15.9785 19.203 19.2035 15.9781 19.2035 11.9999C19.2035 8.02175 15.9785 4.79681 12.0004 4.79681C8.02224 4.79681 4.7973 8.02175 4.7973 11.9999Z",fill:"white",fillOpacity:.3}),d("path",{d:"M12.0004 3.5999C12.0004 2.93716 12.5397 2.39218 13.1973 2.47481C14.0467 2.58154 14.8799 2.80166 15.6742 3.13066C16.8389 3.6131 17.8972 4.32024 18.7886 5.21168C19.6801 6.10312 20.3872 7.16142 20.8696 8.32614C21.1986 9.12042 21.4188 9.95357 21.5255 10.803C21.6081 11.4606 21.0631 11.9999 20.4004 11.9999V11.9999C19.7377 11.9999 19.2106 11.459 19.1006 10.8054C19.0107 10.2712 18.8606 9.74748 18.6523 9.24458C18.2905 8.37104 17.7601 7.57732 17.0916 6.90873C16.423 6.24015 15.6293 5.7098 14.7557 5.34797C14.2528 5.13966 13.7291 4.98955 13.1949 4.89967C12.5413 4.78973 12.0004 4.26264 12.0004 3.5999V3.5999Z",fill:"white"})),Cp=e=>d("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 0 48 48",fill:"none",...e},d("g",{clipPath:"url(#clip0_389_3293)"},d("path",{d:"M48 24C48 37.2548 37.2548 48 24 48C10.7452 48 0 37.2548 0 24C0 10.7452 10.7452 0 24 0C37.2548 0 48 10.7452 48 24ZM2.99705 24C2.99705 35.5996 12.4004 45.0029 24 45.0029C35.5996 45.0029 45.0029 35.5996 45.0029 24C45.0029 12.4004 35.5996 2.99705 24 2.99705C12.4004 2.99705 2.99705 12.4004 2.99705 24Z",fill:"currentColor",fillOpacity:.3}),d("path",{d:"M24 1.5C24 0.671573 24.6722 -0.00488373 25.499 0.0468592C28.138 0.212012 30.7352 0.812387 33.1844 1.82689C36.0962 3.033 38.742 4.80083 40.9706 7.02944C43.1992 9.25805 44.967 11.9038 46.1731 14.8156C47.1876 17.2648 47.788 19.862 47.9531 22.501C48.0049 23.3278 47.3284 24 46.5 24C45.6716 24 45.0056 23.3276 44.9465 22.5013C44.7858 20.2565 44.2652 18.0488 43.4015 15.9637C42.3461 13.4158 40.7993 11.1008 38.8492 9.15076C36.8992 7.20073 34.5842 5.65388 32.0364 4.59853C29.9512 3.73482 27.7435 3.21416 25.4987 3.05355C24.6724 2.99443 24 2.32843 24 1.5Z",fill:"currentColor"})),d("defs",null,d("clipPath",{id:"clip0_389_3293"},d("rect",{width:48,height:48,fill:"white"}))));function Sp(e){const t=Ct(e,1);return d(bp,t)}function Ec(e){const t=Ct(e,1);return d(Cp,t)}function Mn(e){return d("h1",{className:"mt-4 mb-4 sm:mb-8 text-2xl sm:text-3xl font-semibold text-gray-900",children:e})}function ai(e){let t;const n=fn(s=>s.Phone,e.Support),r=fn(s=>s.Email,e.Support);return d("p",C(y([["className","text-sm text-gray-900 whitespace-pre-wrap leading-5"],(t=$e(E(()=>V(_(d("span",{children:[`Need help? Contact ${Te(e.CompanyName,"your employer")}`]})),E(()=>V(n==null?r==null?_(d("span",{children:[" for assistance"]})):V(_(d("span",{children:[" at "]})),E(()=>{let s;return V((s=n,s==null?_(te()):_(d("span",{children:[`${s}`]}))),E(()=>V(n!=null&&r!=null?_(d("span",{children:[" or "]})):_(te()),E(()=>{const i=r;if(i==null)return _(te());{const o=i;return _(d("a",{className:"text-primary-base underline underline-offset-3 cursor-pointer",href:`mailto:${o}`,children:o}))}}))))})):V(_(d("span",{children:[" at "]})),E(()=>{let s;return V((s=n,s==null?_(te()):_(d("span",{children:[`${s}`]}))),E(()=>V(n!=null&&r!=null?_(d("span",{children:[" or "]})):_(te()),E(()=>{const i=r;if(i==null)return _(te());{const o=i;return _(d("a",{className:"text-primary-base underline underline-offset-3 cursor-pointer",href:`mailto:${o}`,children:o}))}}))))})),E(()=>_(d("span",{children:["."]})))))))),["children",b.Children.toArray(Array.from(t))])])))}function Yo(e,t,n,r){let s;return d("button",C(y([["className",`w-full sm:w-[240px] ${n?"bg-primary-dark":"bg-primary-base"} text-primary-text font-semibold text-base rounded-md flex items-center justify-center h-[42px] hover:bg-primary-hover ${Te(e,"")}`],["type","button"],["onClick",i=>{t()}],["disabled",n],(s=$e(E(()=>n?_(Sp([["className","animate-spin"]])):r)),["children",b.Children.toArray(Array.from(s))])])))}const kp=Ec([["className","text-primary-base animate-spin"]]),xp=e=>{kn(()=>{const t=e();return()=>{t.Dispose()}})},Ip=(e,t)=>{kn(()=>{const n=e();return()=>{n.Dispose()}},t)},Ap=e=>{xn(()=>{const t=e();return()=>{t.Dispose()}})},Ep=xp,Tc=Ip,Tp=Ap;function Pp(e,t,n,r){const s=b.memo(e,ne(Te(Fe(Pt,n),te())));return Tn(i=>{e.displayName=i},Zs(t)),i=>{const o=Mp(r,i);return b.createElement(s,o)}}function Mp(e,t){if(e==null)return t;{const n=e;return t.key=n(t),t}}function ns(e){return{Dispose(){e()}}}function Op(e){return b.useState(e)}function Dp(e){Ep(e)}function Jo(e,t){Tc(e,t)}function Np(e){Tp(t=>(e(),ns(()=>{})))}function pr(e){const t=b.useRef(!1);li(()=>{t.current||(t.current=!0,e())},[])}function Pc(e){const t=b.useRef(void 0),n=b.useRef(!1),r=b.useRef(!1);n.current&&(r.current=!0),Jo(()=>{let s;return n.current?s=void 0:(n.current=!0,t.current=Ee(e()),s=r.current?t.current:void 0),{Dispose(){Tn(i=>{ue(i)},Zs(s))}}},[])}function li(e,t){Tc(n=>(e(),ns(()=>{})),t)}function Rp(e,t){const n=Te(t,[]);return b.useCallback(e,n)}function Zo(e){return b.useRef(e)}function Lp(e,t,n){return Pp(e,void 0,Js(n),Js(t))}function Mc(e){const t=Zo(e),n=Rp(r=>t.current(r),[]);return Np(()=>{t.current=e}),n}function ui(e){return b.useState(e)}function ci(e,t,n){const r=[gp([]),Mn(e),d("p",{className:"text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4 mb-8",children:t}),Te(n,te())];return d(Oe,{},...r)}function Xo(e,t,n){return ci(e,t,Fe(r=>{let s;return d("div",C(y([["className","mt-8"],(s=[ai(r)],["children",b.Children.toArray(Array.from(s))])])))},n))}function Bp(e){let t;const n=e.reissueMagicLink,r=ui(!1);return ci("Too many Invalid Codes","We’ve temporarily locked mobile authentication for your account because you made too many attempts with an invalid security code.",d("div",C(y([["className","mt-1 sm:mt-8 text-base leading-7 text-gray-900 whitespace-pre-wrap"],(t=[d("span",{children:["Please wait 30 minutes before trying again, or "]}),d("a",{className:"text-primary-base underline underline-offset-3 cursor-pointer",onClick:i=>{r[0]||(r[1](!0),n())},children:"sign in with email instead"}),d("span",{children:["."]})],["children",b.Children.toArray(Array.from(t))])]))))}function Vp(){return ci("You don’t have access","It seems that you’re not authorised to access our application. If you believe this is an error, please contact your employer for assistance.",void 0)}function Oc(e){return Xo("That link doesn’t look right","It looks like the link is incorrect or incomplete. We recommend going back to your invitation email and trying again.",e)}function Fp(e){return Xo("Invite no longer active","It looks like your employer may have cancelled your invite, and you no longer have access.",e)}function Wp(e){return Xo("Invite expired","Your invite has now expired and you no longer have access.",e)}function fi(){return ci("Something went wrong","We are unable to load our application at this time. Please wait a few minutes before trying again.",void 0)}const jp="workflows-app",Ko="fade-in",Qo=d("div",C(y([["className","w-full sm:max-w-[640px] mt-10 sm:mt-14 text-xs text-gray-500 text-center whitespace-pre-wrap space-y-4"],(()=>{let e,t;const n=[(e=y([(t="Flare provides workplace solutions to Australian businesses and their employees. All information collected is treated in accordance with our ",d("span",{children:[t]})),d("a",{className:"text-primary-base underline underline-offset-3 cursor-pointer",href:"https://www.flarehr.com/security",target:"_blank",rel:"noreferrer",children:"security standards"}),d("span",{children:[" and "]}),d("a",{className:"text-primary-base underline underline-offset-3 cursor-pointer",href:"https://www.flarehr.com/privacy-policy",target:"_blank",rel:"noreferrer",children:"Privacy Policy"}),d("span",{children:["."]})]),d("p",{children:b.Children.toArray(Array.from(e))})),d("p",{children:[`Copyright © ${Do(ec())} Flare. ABN 46 607 120 892.`]})];return["children",b.Children.toArray(Array.from(n))]})()])));function Up(){let e,t;return d("div",C(y([["className",be(" ",[Ko,"min-h-full flex flex-col justify-between w-full sm:w-[640px] mx-auto text-center"])],(e=[d("div",C(y([["className","flex flex-col mt-10 mx-4 sm:mt-20 justify-center items-center"],(t=[Ec([["className","h-12 w-12 text-primary-base animate-spin"]]),d("h1",{className:"mt-4 font-bold text-2xl leading-7 sm:text-3xl text-gray-900",children:"Authenticating your account"}),d("p",{className:"mt-6 sm:mt-8 text-lg leading-7 text-gray-900",children:"This may take a few seconds, please don’t close this window."})],["children",b.Children.toArray(Array.from(t))])]))),d("div",{className:"mb-6 sm:mb-8 px-4",children:b.Children.toArray([Qo])})],["children",b.Children.toArray(Array.from(e))])])))}const zp=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Dc=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Hp=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Ne(e){function t(r){return r.replace(Dc,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(zp.test(n))return $1(n,"{","}","(",")");if(Dc.test(n))return t(n);if(Hp.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 Gp(e,t){try{return t.contents=Ne(e),!0}catch{return!1}}class qp{constructor(t,n){const r=new et(te());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const s=pe(t);try{for(;s["System.Collections.IEnumerator.MoveNext"]();){const i=s["System.Collections.Generic.IEnumerator`1.get_Current"]();ea(r.contents,i[0],i[1])}}finally{ue(s)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return pe(this)}GetEnumerator(){return pe(Uo(this.hashMap.values()))}[Symbol.iterator](){return jr(pe(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){ea(this,t[0],t[1])}"System.Collections.Generic.ICollection`1.Clear"(){Nc(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const r=di(this,t[0]);let s;switch(r!=null&&O(x(r)[1],t[1])?(s=0,x(r)):s=1,s){case 0:return!0;default:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){tp((s,i)=>{vt(t,n+s,i)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return Rc(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){const n=this,r=di(n,t[0]);return r!=null?(O(x(r)[1],t[1])&&ta(n,t[0]),!0):!1}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(t,n){ea(this,t,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(t){return Vc(this,t)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(t){return Lc(this,t)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(t,n){Bc(this,t,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const t=this;return zo(E(()=>Ie(n=>n[0],t)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(t){return ta(this,t)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(t,n){const s=di(this,t);if(s!=null){const i=x(s);return n.contents=i[1],!0}else return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const t=this;return zo(E(()=>Ie(n=>n[1],t)))}get size(){return Rc(this)|0}clear(){Nc(this)}delete(t){return ta(this,t)}entries(){return Ie(n=>[n[0],n[1]],this)}get(t){return Lc(this,t)}has(t){return Vc(this,t)}keys(){return Ie(n=>n[0],this)}set(t,n){const r=this;return Bc(r,t,n),r}values(){return Ie(n=>n[1],this)}forEach(t,n){const r=this;Tn(s=>{t(s[1],s[0],r)},r)}}function rs(e,t){const n=e.comparer.GetHashCode(t)|0;let r,s=te();return r=[ap(e.hashMap,n,new et(()=>s,i=>{s=i})),s],r[0]?[!0,n,r[1].findIndex(i=>e.comparer.Equals(t,i[0]))]:[!1,n,-1]}function di(e,t){const n=rs(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return ts(e.hashMap,n[1])[n[2]];default:return}}function Nc(e){e.hashMap.clear()}function Rc(e){let t=0,n=pe(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=t+r.length|0}}finally{ue(n)}return t|0}function Lc(e,t){const n=di(e,t);if(n!=null)return x(n)[1];throw new Error("The item was not found in collection")}function Bc(e,t,n){const r=rs(e,t);r[0]?r[2]>-1?ts(e.hashMap,r[1])[r[2]]=[t,n]:ts(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function ea(e,t,n){const r=rs(e,t);if(r[0]){if(r[2]>-1)throw new Error(dc("An item with the same key has already been added. Key: {0}",t));ts(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function Vc(e,t){const n=rs(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function ta(e,t){const n=rs(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return ts(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}function Yp(e){return new h(0,[e])}function Fc(e){return new h(1,[e])}class h extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function St(e,t){return t.tag===0?Yp(e(t.fields[0])):Fc(t.fields[0])}function Wc(e,t){return t.tag===0?e(t.fields[0]):Fc(t.fields[0])}const Jp="#C$&$&$$$$$$%-%&%=$$$$$$=$$$$D$$'$$$$$$$$$$$$%$$%$$$$&$:$*;$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$&%$$$%$&%'$%$&&%$%$$$$$%$$%$$%$&$$$%%$$&'$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$%$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*%$%%$$'$$$$$$$$h$>5'/1(*$$$4“$$$$$$$$%$&$$'%$$&$$$%$4$,F$%&&$$$$$$$$$$$$$$$$$$$$$$$($$$$$%%VS$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$(%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$I%$)L$$%%$$P$$$%$%$$+>''%.)&%$%%.$$$%C$-8-'%$†$$*$$)%%$'%-&%$1$$$$A>%|.$1-D,%$&$%$%9'$,$&$(%2$<&%$$.X8$5.2$C$Y$$$$&+'$%$*-%%-$$2$%$+%%%9$*$$&'%$$&'%%%%$$+$'%$&%%-%%)$$$$$%%$$)'%%9$*$%$%$%%$$&%'%%&&$*'$$*-%&$$-%$$,$&$9$*$%$(%$$&($%$$%$%$2%%%-$$*$)$$%$+%%%9$*$%$(%$$$$$'%%%%$*%$'%$&%%-$$)-$$$)&&$'&%$$$%&%&&&/'%$%&&$&$%$)$1-&)$$($&$+$&$:$3&$&'$&$'*%$&(%%%-*$*$$$%$+$&$:$-$(%$$$$($$%$%%*%*$$%%%-$%0%%,$&$L%$&'$&$&$$$'&$*&%%-,$)$$%$5&;$,$$%*&$'&&$$$+)-%%$/S$%*'$)$+$-%H%$$$($;$$$-$%,$%($$$)%-%'C$&2$$&%)--$$$$$$$$$$%+$G'1$($%(.$G$+$)$%('%HN%'$)$%%%$-))%%'&$&%*&'0$%%)$$$-&$%I$$($%N$$&Ŭ$'%*$$$'%L$'%D$'%*$$$'%2$\\$'%f%&,7&3-)y%)%$ʏ$$4$=$$&n&&+*0$'&.5&%,5%/0$&$%/W%$*+$%.&$&$$$%-)-))$'&$$-)F$X*(%E$$(i-B$&'%&'%$)&'$&%-A%(.O'=)-$&E:%%$%%X$$$*$$$$%+)-%$-)-)*$)%1$%b'$R$$($$($%*'-*-,,&%$A$'%%$&%-O$$%&$$&%+'G++%%&(-&&-A)%,*N%&++&$0$*'$)$%$%$(Ob0$EH]$($$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,+)%)%++++)%)%+$$$$$$$$++1%++++++($%'$$$&&$%'$&'%%'$&+(&%&$%'$%$.()%$$$%$$$+$$($,$$'%&$$$.$$$-$($-$$%)&$$$-&$$$0&C30'$&/2%$'$%$&%&$$$%$()$$$$$$'$$'$'$%%%($'$$%$$3F$$'$%'((%'$%$%$*$B%%$$$Bį+$$$$7%*$$t$A<K)h<.8_q9Ú$,$Y+’$ě$$$$$$$$$$$$$$AO($$B$$$$$$$$$$3ģ¦$$$$$$$$$$$$$$$$$$$$$$b$$$$C$$ĥS8%)J%C$ŒR$R$$$&%$$$$$$'$$%$)%&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%)$$$$&$$('$%I$$($%[*$$1$:,*$*$*$*$*$*$*$*$C%$$$$&$$$$$,$%$$$$%$$$$$$$$$$($-%'$$$0%$P=$|/ù=/'$&$$$$$$$$$$$$$$%$$$$$$$$$$%$,'%$(%&$$$%$y%%%%$$}$&$(N$$%'-CG/3B$-A+$2C-J2ţ᧣c删&8$Қ&Z,K)%į$&3-%7$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$&$-$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%%i-%)+:,%$$$$$$$$$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$+$$$$%$$$$$$$$$$%$$$$$$$$&$$$$$$$$$$$$$$$$$$$$($($$$$$$$$$$$%$$'$$$M$$$%$*$&$'$:%%$'$&)%$$)W'+%U3%+%-)5)&$$%$-?+%:.%.$@&&$R$%'%%&0$$-'%($$,-($L)%%%%,&$+$$%-%'3$)&$$$$U$$&%%(%$$$;%$%.$%%%$%$$-)%)%),*$*$N$',$%'sF%$%$%$$$%-)⯇/:'T'ࠣᤣƑ%I*/(($$-$0$($$$%$%$34Ǝ$$3c%YK/$$%3*$$$)3$%%$$$$$$$$$$$$$$$$%$$'&&$'$$$$$$$&$$&$$$%'($ª%$$&$&$$$$$$%-%&%=$$$$$$=$$$$$$$$$%-$P%B&)%)%)%&&%$$$%$$'%-&%%/$=$6$%$2%1Ež(&'P&,X'4%&$0&$RP$¥@&T2$>'C',7$+$(I((A$$G'+$(MKKq%-)G'G'K+W.$³Ś,9-+»)%$$O$%&$%:$$+:%*B+,S6$%((9)&$=($c['%%3%Q$&$%(''$&$@%&'$,*,*@%$@&C+$?%'(*,Y&*9%+6(+5*'/*slZV0V*)G'+-ʼnB$M$%$%%q@-$+9.'(y8*7:,$$$X2*'7-2&$P&'%%%$'.$%<*-)&G($+$-'$%$+F$%$,%$S&,%'''$$$-$$$&$7.5$<&&%$$%)$d*$$$'$2$-$)R$&+(-)%%$+%%%9$*$%$($%$%$'%%%&%$)$((%%*&(®X&+%&$$'(-%$$$&AS&)$$'%$%%$$+-ÉR&'%'%$%:'%ES&+%$$%&$.-)06N$$$%)$$$*-Y>%&%'$('-%&$ãO&,$%$‡CC-,/+%$%+$%$;)$%%%$$$$$$$&,-i+%J&'%%'$$$$$>$-K)$$'+$+$)%&Q0$%&$(@\\Ī,$H$*$)$$$(--6&%A%9$$*$%$%l*$%$I)&$$%$*$$+-))$%$C($%$%$$$$*-ř6%%%Ú$28+'40$ν‰’$(.ç૟ђ$,࿪ɪ⇜ɜ*B$-'%ƒA%($-S*(''$$--$*$8(6˓CC:'ˆn'$$Z*'0c%$$$.%1᠛+ӹM,⌚łT&4'+ƯधŽ(0&,*-%$%$'፿ę-J%_%&&)++%*A'^:e&$½7/z,<ª===*$5==$$%%$%%%'$+'$$$*$.==%$'%+$*$=%$'$($$&*$============?%<$<$)<$<$)<$<$)<$<$)<$<$)$$%UȣZ'U+$1$%(2($2ճ*$4%*$%$(øP&**%-'$$ƓO'-($ԣè%,*LEE*$'-'%̴^$&$'oP$2å'$>$%$$%$$-$'$$$$)$'$$$$$$&$%$$%$$$$$$$$$$%$$%'$*$'$'$$$-$4(&$($4W%ıO'‡/2%2$2$H-0Ä[@0O',*%1)½Ğ(˻+0&0&—/|*/7/'[+-)K+A%%qœ$u$ª/1%(&&(*,<**,&0*L¶$ZH-Щ꜁Eၘ.ā%ᚥ1ᵔూɁ؅፮򮳙$Aƒ£ē︳𐀡%𐀡",Zp="1.;=;78;<;6;+;<;#7;8>5>$7<8<1.;=?;>?'9<2?>?<->$;>-':-;#<#$<$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'#$'#%$#%$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'$&>&>&>&>&>(#$#$&>#$@&$;#@>#;#@#@#$#@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$<#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?(*#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@&;$;6@?=@(6(;(;(;(@'@';@2<;=;?(;2@;'&'(+;'(';'(2?(&(?('+'?';@2'('(@'('@+'(&?;&@(='(&(&(&(@;@'(@;@'@'@'@(2()'()(')()()'('(;+;&'()@'@'@'@'@'@'@(')(@)@)('@)@'@'(@+'=-?=';(@()@'@'@'@'@'@'@'@(@)(@(@(@(@'@'@+('(;@()@'@'@'@'@'@'@(')(@()@)(@'@'(@+;=@'(@()@'@'@'@'@'@'@(')()(@)@)(@()@'@'(@+?'-@('@'@'@'@'@'@'@'@'@'@)()@)@)(@'@)@+-?=?@()('@'@'@'@'()@(@(@(@'@'(@+@;-?'();'@'@'@'@'@(')()@()@)(@)@'@'(@+@'@()'@'@'(')(@)@)('?@')-'(@+-?'@()@'@'@'@'@'@(@)(@(@)@+@);@'('(@='&(;+;@'@'@'@'@'@'('('@'@&@(@+@'@'?;?;?(?+-?(?(?(7878)'@'@()(;('(@(@?(?@?;?;@')()()()('+;')('(')')'('()()(')+)(?#@#@#@$;&$'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@(;-@'?@#@$@6'?;'.'78@';,'@'@'(@'(;@'(@'@'@(@'()()()(;&;='(@+@-@;6;(2@+@'&'@'('('@'@'@()()@)()(@?@;+'@'@'@'@+-@?'()(@;')()(@()()()(@(+@+@;&;@(*(@()'()()()()'@+;?(?@()')()()('+'()()()()@;')()(@;+@'+'&;$@#@#;@(;()('('(')('@$&$&$&(@(#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@$#$#$@#@$@#@#@#@#$#$@$%$%$%$@$#%>$>$@$#%>$@$#@>$#>@$@$#%>@.26;9:79:79;/02.;9:;5;<78;<;5;.2@2-&@-<78&-<78@&@=@(*(*(@?#?#?$#$#$?#?<#?#?#?#?#?$#$'$?$#<#$?<?$?-,#$,-?@<?<?<?<?<?<?<?<?<?<?7878?<?78?<?<?<?@?@-?-?<?<?<?<?78787878787878-?<78<7878787878<?<7878787878787878787878<7878<78<?<?<?@?@?#@$@#$#$#$#$#$#$#$#$&#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?#$#$(#$@;-;$@$@$@'@&;@('@'@'@'@'@'@'@'@'@(;9:9:;9:;9:;6;6;9:;9:78787878;&;6;6;7;?;@?@?@?@?@.;?&',7878787878?78787878678?,()6&?,&';?@'@(>&'6';&'@'@'@?-?'?@'?@-?-?-?-?-?'?'@'&'@?@'&;'&;'+'@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'(*;(;&#$#$#$#$#$#$#$#$#$#$#$#$#$#$&(',(;@>&>#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$&$#$#$#$#$#$#$#$&>#$#$'#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#$#$#$@#$'&$'('('(')()?(@-?=?@';@)')(@;+@(';';'(+'(;'()@;'@()'()()();@&+@;'(&'+'@'()()(@'('()@+@;'&'?')()'('('('('('@'&;')();'&)(@'@'@'@'@'@$>&$&>@$')()();)(@+@'@'@'@34'@'@$@$@'('<'@'@'@'@'@'>@'87@'@'@'=?@(;78;@(;657878787878787878;78;5;@;6787878;<6<@;=;@'@'@2@;=;78;<;6;+;<;#7;8>5>$7<8<78;78;'&'&'@'@'@'@'@=<>?=@?<?@2?@'@'@'@'@'@'@'@;@-@?,-?-?@?@?@?(@'@'@(-@'-@',',@'(@'@;'@';,@#$'@+@#@$@'@'@;@'@'@'@'@'@'@'@'@'@;-'?-'@-@'@'@-'-@;'@;@'@-'-@-'(@(@('@'@'@(@(-@;@'-;'-@'?'(@-;@'@;'@-'@-'@;@-@'@#@$@-'(@+@-@'@(6@'@'-'@'(-;@'-@'@)()'(;@-+@()')()(;2;@2@'@+@('()(@+;')'@'(;'@()')()';(;)(+';';@-@'@')()()(;(@'@'@'@'@';@'()(@+@()@'@'@'@'@'@'@(')()@)@)@'@)@')@(@(@')()()(';+;@;('@')()()()(';'@+@')(@)()(;'(@')()()(;'@+@;@'()()()('@+@'@()()(@+-;?@')()(;@#$+-@'@'@'@'@')@)@()(')')(;@+@'@')(@()(';')@'('()'(;(@'()('()(;';@'@'@')(@()(';@+-@;'@(@)()()(@'@'@'(@(@(@('(@+@'@'@')@(@)()('@+@'();@'@-?=?@;'@,@;@'@'@2@'@'@'@+@;@'@(;@'(;?&;?@+@-@'@'@#$-;@'@(')@(&@&;&(@)@'@'@'@'@'@'@'@'@'@'@'@?(;2@?@?@?)(?)2(?(?(?@?(?@-@?@-@#$#$@$#$#@#@#@#@#@#$@$@$@$#$#@#@#@#@$#@#@#@#@#@$#$#$#$#$#$#$@#<$<$#<$<$#<$<$#<$<$#<$<$#$@+?(?(?(?(?;@(@(@(@(@(@(@(@'@(&@+@'?@'(+@=@'@-(@#$(&@+@;@-?-=-@-?-@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@<@?@?@?@?@?@?@-?@?@?@?@?@?@?>?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@+@'@'@'@'@'@'@'@2@2@(@4@4@";function Xp(){const t=[...Jp].map(i=>(i.codePointAt(0)??0)-35),n=[...Zp].map(i=>(i.codePointAt(0)??0)-35),r=new Uint32Array(t),s=new Uint8Array(n);for(let i=1;i<r.length;++i)r[i]+=r[i-1];return i=>{let o=r.length,a=0;for(;o-a>1;){const l=Math.floor((o+a)/2),u=r[l];if(i<u)o=l;else if(i===u){o=a=l;break}else u<i&&(a=l)}return s[a]}}const Kp=256,Qp=Xp();function e$(e,t){if(t<e.length)return e.charCodeAt(t);throw new Error("Index out of range.")}const na=e=>n$(e,0);function t$(e,t){const n=e$(e,t);return Qp(n)}function n$(e,t){return(1<<t$(e,t)&Kp)!==0}function r$(e,t){const n=c1(sc(e),t);if(n!=null)return P($e(E(()=>Ie(r=>r||"",n))))}function s$(e){let t;const n=r$(".*?@(.*)",e);switch(n!=null?M(n)?t=1:M(P(n))?t=0:t=1:t=1,t){case 0:return e;default:return}}function jc(e,t){return hc(t)?new h(1,[ze(Ue("%s cannot be null or empty"))(e)]):new h(0,[t])}function i$(e){const t=s$(e);if(t!=null){const n=t;return new h(0,[n])}else return new h(1,["Email is not in the correct format"])}const On=e=>({tag:"ok",value:e}),ss=e=>({tag:"error",error:e});class Ge{constructor(t){this.uri=t}static isAbsoluteUri(t){try{return new URL(t),!0}catch{return!1}}static tryCreateWithKind(t,n){switch(n){case 1:return Ge.isAbsoluteUri(t)?On(new Ge({original:t,value:new URL(t),kind:n})):ss("Invalid URI: The format of the URI could not be determined.");case 2:return Ge.isAbsoluteUri(t)?ss("URI is not a relative path."):On(new Ge({original:t,value:t,kind:n}));case 0:return Ge.isAbsoluteUri(t)?On(new Ge({original:t,value:new URL(t),kind:1})):On(new Ge({original:t,value:t,kind:2}));default:return n}}static tryCreateWithBase(t,n){return t.uri.kind!==1?ss("Base URI should have Absolute kind"):typeof n=="string"?On(new Ge({original:new URL(n,t.uri.value).toString(),value:new URL(n,t.uri.value),kind:1})):n.uri.kind===2?On(new Ge({original:new URL(n.uri.value,t.uri.value).toString(),value:new URL(n.uri.value,t.uri.value),kind:1})):On(t)}static tryCreateImpl(t,n=1){return typeof t=="string"?typeof n!="number"?ss("Kind must be specified when the baseUri is a string."):Ge.tryCreateWithKind(t,n):typeof n=="number"?ss("Kind should not be specified when the baseUri is an absolute Uri."):Ge.tryCreateWithBase(t,n)}static create(t,n=1){const r=Ge.tryCreateImpl(t,n);switch(r.tag){case"ok":return r.value;case"error":throw new Error(r.error);default:return r}}static tryCreate(t,n=1,r){const s=Ge.tryCreateImpl(t,n);switch(s.tag){case"ok":return r.contents=s.value,!0;case"error":return!1;default:return s}}toString(){switch(this.uri.kind){case 1:return decodeURIComponent(this.asUrl().toString());case 2:return this.uri.value;default:return this.uri}}asUrl(){switch(this.uri.kind){case 1:return this.uri.value;case 2:throw new Error("This operation is not supported for a relative URI.");default:return this.uri}}get isAbsoluteUri(){return this.uri.kind===1}get absoluteUri(){return this.asUrl().href}get scheme(){const t=this.asUrl().protocol;return t.slice(0,t.length-1)}get host(){const t=this.asUrl().host;return t.includes(":")?t.split(":")[0]:t}get absolutePath(){return this.asUrl().pathname}get query(){return this.asUrl().search}get isDefaultPort(){return this.port===80}get port(){const t=this.asUrl().port;return t===""?80:parseInt(t)}get pathAndQuery(){const t=this.asUrl();return t.pathname+t.search}get fragment(){return this.asUrl().hash}get originalString(){return this.uri.original}}class o$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ProfileId"]}}function Uc(e){return new o$(e)}function zc(e){return e.fields[0]}class a$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["InviteCode"]}}function l$(e){return!Jr(e)}function Hc(e){return l$(e)?new h(0,[new a$(e)]):new h(1,["Invalid invite code format."])}class Gc extends B{constructor(t,n,r){super(),this.CompanyName=t,this.Logo=n,this.Support=r}}class u$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Logo"]}}class c$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CompanyName"]}}class qc extends B{constructor(t,n){super(),this.Email=t,this.Phone=n}}class f$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Email"]}}class d$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Phone"]}}const Yc=e=>St(t=>new f$(t),Wc(i$,jc("Email",e)));function h$(e){return e.fields[0]}const Jc=e=>St(t=>new d$(t),jc("Phone",e));function m$(e){return e.fields[0]}function Zc(e){return Jr(e)?new h(1,["Invalid company name."]):new h(0,[new c$(e)])}function is(e){return e.fields[0]}function p$(e){try{const t=Ge.create(e);return t.isAbsoluteUri?[!0,t]:[!1,void 0]}catch{return[!1,void 0]}}function Xc(e){return p$(e)[0]?new h(0,[new u$(e)]):new h(1,["Invalid logo url."])}function $$(e){return e.fields[0]}class g$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SecondFactorCode"]}}function w$(e){return new g$(e)}class y$ extends B{constructor(t,n,r,s){super(),this.Code=t,this.DateIssued=n,this.NumberOfAttempts=r|0,this.DateOfLastAttempt=s}}class _$ extends B{constructor(t,n,r,s){super(),this.Code=t,this.DateIssued=n,this.SecondFactor=r,this.Branding=s}}class Nt extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ProcessStepId"]}}class Rt extends B{constructor(t,n,r){super(),this.Id=t,this.DisplayName=n,this.ComponentTagName=r}}const Ye=new Rt(new Nt("personal-details"),"Personal Details","apollo-personal-details-app"),pt=new Rt(new Nt("emergency-contacts"),"Emergency Contacts","apollo-emergency-contacts-app"),$t=new Rt(new Nt("bank"),"Bank","bank-component"),gt=new Rt(new Nt("tax"),"Tax","tax-component"),Re=new Rt(new Nt("super"),"Super","super-selection-app"),Dn=new Rt(new Nt("app-workplace-linking"),"App Workplace Linking","workplace-link"),v$=new Nt("benefits-onboarding"),hi=new Rt(v$,"Benefits","benefits-onboarding"),qt=new Rt(new Nt("workplace-policy"),"Workplace-policy","apollo-workplace-policies-app"),Nn=new Rt(new Nt("Benefits-Discrete"),"Benefits","benefits-onboarding");function Kc(e){return new Nt(e)}function mi(e){return e.fields[0]}class Le extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ProcessConfigId"]}}class Be extends B{constructor(t,n,r){super(),this.Id=t,this.Name=n,this.Steps=r}}const Qc=new Be(new Le(Ne("00000000-0000-0000-0000-000000000000")),"onboarding-default",y([$t,gt,Re])),ef=new Be(new Le(Ne("00000000-0000-0000-0000-000000000001")),"PEBTS",y([Ye,pt,$t,gt,Re])),tf=new Be(new Le(Ne("00000000-0000-0000-0000-000000000002")),"PS",y([Ye,Re])),nf=new Be(new Le(Ne("00000000-0000-0000-0000-000000000003")),"BS",y([$t,Re])),rf=new Be(new Le(Ne("00000000-0000-0000-0000-000000000004")),"Super",A(Re)),ra=new Be(new Le(Ne("00000000-0000-0000-0001-000000000000")),"App Workplace Linking",A(Dn)),sf=new Be(new Le(Ne("00000000-0000-0000-0000-000000000005")),"Tax",A(gt)),of=new Be(new Le(Ne("00000000-0000-0000-0000-000000000006")),"PBTS",y([Ye,$t,gt,Re])),af=new Be(new Le(Ne("00000000-0000-0000-0000-000000000007")),"PEBTSPo",y([Ye,pt,$t,gt,Re,qt])),lf=new Be(new Le(Ne("00000000-0000-0000-0000-000000000008")),"PEBSPo",y([Ye,pt,$t,Re,qt])),uf=new Be(new Le(Ne("00000000-0000-0000-0000-000000000009")),"PESPo",y([Ye,pt,Re,qt])),cf=new Be(new Le(Ne("00000000-0000-0000-0000-000000000010")),"PETSPo",y([Ye,pt,gt,Re,qt])),sa=new Be(new Le(Ne("00000000-0000-0000-0002-000000000000")),"Bo",A(Nn)),ff=new Be(new Le(Ne("00000000-0000-0000-0000-000000000011")),"PETS",y([Ye,pt,gt,Re])),df=new Be(new Le(Ne("00000000-0000-0000-0000-000000000012")),"PEBS",y([Ye,pt,$t,Re])),hf=new Be(new Le(Ne("00000000-0000-0000-0000-000000000013")),"PES",y([Ye,pt,Re])),mf=new Be(new Le(Ne("00000000-0000-0000-0000-000000000014")),"PBTSPo",y([Ye,$t,gt,Re,qt])),b$=new qp([[Qc.Id,Qc],[ef.Id,ef],[tf.Id,tf],[nf.Id,nf],[rf.Id,rf],[ra.Id,ra],[sf.Id,sf],[of.Id,of],[af.Id,af],[lf.Id,lf],[uf.Id,uf],[cf.Id,cf],[sa.Id,sa],[ff.Id,ff],[df.Id,df],[hf.Id,hf],[mf.Id,mf]],{Equals:O,GetHashCode:ko});function C$(e){return O(e,sa)?!1:!O(e,ra)}function S$(e){const t=new Le(e);return En(t,b$.keys(),{Equals:O,GetHashCode:ko})?new h(0,[t]):new h(1,[ze(ac("Invalid Type %A%P()",[e]))])}function pf(e){return e.fields[0]}class $f extends B{constructor(t,n){super(),this.ActivatedDates=t,this.CompletedSteps=n}}class os extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Inactive","Active","Complete","Abandoned"]}}function ia(e){return e.tag===2}class k$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ProcessInstanceId"]}}function gf(e){return new k$(e)}function $r(e){return e.fields[0]}class x$ extends B{constructor(t,n){super(),this.Name=t,this.Value=n}}class I$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["TagName"]}}class A$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["TagValue"]}}function E$(e){return Jr(e)?new h(1,["Tag name is empty"]):e.length<100?new h(0,[new I$(e)]):new h(1,["Tag name is too long"])}function T$(e){return Jr(e)?new h(1,["Tag value is empty"]):e.length<100?new h(0,[new A$(e)]):new h(1,["Tag value is too long"])}function P$(e,t){const n=E$(e);if(n.tag===1)return new h(1,[n.fields[0]]);{const r=T$(t);return r.tag===1?new h(1,[r.fields[0]]):new h(0,[new x$(n.fields[0],r.fields[0])])}}class M$ extends B{constructor(t,n,r,s,i,o,a,l,u,f,c){super(),this.Id=t,this.Configuration=n,this.DateCreated=r,this.Status=s,this.Invite=i,this.Tags=o,this.Creator=a,this.StepsConfiguration=l,this.JourneyType=u,this.IsBenefitsStepEnabled=f,this.PaySetupComplete=c}}class O$ extends B{constructor(t){super(),this.BenefitsOnboarding=t}}class gr extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","InfoRequest","AppInvite","BenefitsExisting","BenefitsOnboarding"]}}class wf extends B{constructor(t){super(),this.Category=t}}class yf extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WhenEnabled","Always"]}}function D$(e,t){const n=Qr(i=>O(i.Id,e),t.Configuration.Steps),r=ze(ac("Invalid ProcessStep Id %A%P()",[e])),s=n;return s==null?new h(1,[r]):new h(0,[s])}function N$(e){const t=e.Status;switch(t.tag){case 2:return e.Configuration.Steps;case 3:case 0:return de();default:{const n=rt(r=>r[0],t.fields[0].CompletedSteps);return Fo(r=>F1(r.Id,n,{Equals:O,GetHashCode:ko}),e.Configuration.Steps)}}}function _f(){return Ju(document.getElementById("external-loading-page-container"))}function vf(){return _f()!=null}function R$(){let e,t;const n=_f();Tn((e=(t=document.body,r=>t.removeChild(r)),r=>{e(r)}),Zs(n))}var Rn=[],L$=function(){return Rn.some(function(e){return e.activeTargets.length>0})},B$=function(){return Rn.some(function(e){return e.skippedTargets.length>0})},bf="ResizeObserver loop completed with undelivered notifications.",V$=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:bf}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=bf),window.dispatchEvent(e)},as;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(as||(as={}));var Ln=function(e){return Object.freeze(e)},F$=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Ln(this)}return e}(),Cf=function(){function e(t,n,r,s){return this.x=t,this.y=n,this.width=r,this.height=s,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ln(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,s=t.top,i=t.right,o=t.bottom,a=t.left,l=t.width,u=t.height;return{x:n,y:r,top:s,right:i,bottom:o,left:a,width:l,height:u}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),oa=function(e){return e instanceof SVGElement&&"getBBox"in e},Sf=function(e){if(oa(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var s=e,i=s.offsetWidth,o=s.offsetHeight;return!(i||o||e.getClientRects().length)},kf=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},W$=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},ls=typeof window<"u"?window:{},pi=new WeakMap,xf=/auto|scroll/,j$=/^tb|vertical/,U$=/msie|trident/i.test(ls.navigator&&ls.navigator.userAgent),Lt=function(e){return parseFloat(e||"0")},wr=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new F$((n?t:e)||0,(n?e:t)||0)},If=Ln({devicePixelContentBoxSize:wr(),borderBoxSize:wr(),contentBoxSize:wr(),contentRect:new Cf(0,0,0,0)}),Af=function(e,t){if(t===void 0&&(t=!1),pi.has(e)&&!t)return pi.get(e);if(Sf(e))return pi.set(e,If),If;var n=getComputedStyle(e),r=oa(e)&&e.ownerSVGElement&&e.getBBox(),s=!U$&&n.boxSizing==="border-box",i=j$.test(n.writingMode||""),o=!r&&xf.test(n.overflowY||""),a=!r&&xf.test(n.overflowX||""),l=r?0:Lt(n.paddingTop),u=r?0:Lt(n.paddingRight),f=r?0:Lt(n.paddingBottom),c=r?0:Lt(n.paddingLeft),p=r?0:Lt(n.borderTopWidth),m=r?0:Lt(n.borderRightWidth),$=r?0:Lt(n.borderBottomWidth),g=r?0:Lt(n.borderLeftWidth),w=c+u,v=l+f,S=g+m,N=p+$,ee=a?e.offsetHeight-N-e.clientHeight:0,J=o?e.offsetWidth-S-e.clientWidth:0,Ae=s?w+S:0,it=s?v+N:0,Me=r?r.width:Lt(n.width)-Ae-J,Ve=r?r.height:Lt(n.height)-it-ee,Qe=Me+w+J+S,T=Ve+v+ee+N,z=Ln({devicePixelContentBoxSize:wr(Math.round(Me*devicePixelRatio),Math.round(Ve*devicePixelRatio),i),borderBoxSize:wr(Qe,T,i),contentBoxSize:wr(Me,Ve,i),contentRect:new Cf(c,l,Me,Ve)});return pi.set(e,z),z},Ef=function(e,t,n){var r=Af(e,n),s=r.borderBoxSize,i=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case as.DEVICE_PIXEL_CONTENT_BOX:return o;case as.BORDER_BOX:return s;default:return i}},z$=function(){function e(t){var n=Af(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Ln([n.borderBoxSize]),this.contentBoxSize=Ln([n.contentBoxSize]),this.devicePixelContentBoxSize=Ln([n.devicePixelContentBoxSize])}return e}(),Tf=function(e){if(Sf(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},H$=function(){var e=1/0,t=[];Rn.forEach(function(o){if(o.activeTargets.length!==0){var a=[];o.activeTargets.forEach(function(u){var f=new z$(u.target),c=Tf(u.target);a.push(f),u.lastReportedSize=Ef(u.target,u.observedBox),c<e&&(e=c)}),t.push(function(){o.callback.call(o.observer,a,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var s=r[n];s()}return e},Pf=function(e){Rn.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(s){s.isActive()&&(Tf(s.target)>e?n.activeTargets.push(s):n.skippedTargets.push(s))})})},G$=function(){var e=0;for(Pf(e);L$();)e=H$(),Pf(e);return B$()&&V$(),e>0},aa,Mf=[],q$=function(){return Mf.splice(0).forEach(function(e){return e()})},Y$=function(e){if(!aa){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return q$()}).observe(n,r),aa=function(){n.textContent="".concat(t?t--:t++)}}Mf.push(e),aa()},J$=function(e){Y$(function(){requestAnimationFrame(e)})},$i=0,Z$=function(){return!!$i},X$=250,K$={attributes:!0,characterData:!0,childList:!0,subtree:!0},Of=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Df=function(e){return e===void 0&&(e=0),Date.now()+e},la=!1,Q$=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=X$),!la){la=!0;var r=Df(t);J$(function(){var s=!1;try{s=G$()}finally{if(la=!1,t=r-Df(),!Z$())return;s?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,K$)};document.body?n():ls.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Of.forEach(function(n){return ls.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Of.forEach(function(n){return ls.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),ua=new Q$,Nf=function(e){!$i&&e>0&&ua.start(),$i+=e,!$i&&ua.stop()},eg=function(e){return!oa(e)&&!W$(e)&&getComputedStyle(e).display==="inline"},tg=function(){function e(t,n){this.target=t,this.observedBox=n||as.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Ef(this.target,this.observedBox,!0);return eg(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),ng=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),gi=new WeakMap,Rf=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},wi=function(){function e(){}return e.connect=function(t,n){var r=new ng(t,n);gi.set(t,r)},e.observe=function(t,n,r){var s=gi.get(t),i=s.observationTargets.length===0;Rf(s.observationTargets,n)<0&&(i&&Rn.push(s),s.observationTargets.push(new tg(n,r&&r.box)),Nf(1),ua.schedule())},e.unobserve=function(t,n){var r=gi.get(t),s=Rf(r.observationTargets,n),i=r.observationTargets.length===1;s>=0&&(i&&Rn.splice(Rn.indexOf(r),1),r.observationTargets.splice(s,1),Nf(-1))},e.disconnect=function(t){var n=this,r=gi.get(t);r.observationTargets.slice().forEach(function(s){return n.unobserve(t,s.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),Lf=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");wi.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!kf(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");wi.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!kf(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");wi.unobserve(this,t)},e.prototype.disconnect=function(){wi.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class Bf{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,s=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(s)}}}Dispose(){}}class us extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,us.prototype)}}class ca{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>ca.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Bt(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new us);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Us(n))}});else try{e(t)}catch(n){t.onError(Us(n))}}}function rg(e,t){return Bt(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(s){n.onError(Us(s))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function sg(e){return Bt(t=>t.onSuccess(e))}class ig{Bind(t,n){return rg(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Bt(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let s=r.next();return this.While(()=>!s.done,this.Delay(()=>{const i=n(s.value);return s=r.next(),i}))}Return(t){return sg(t)}ReturnFrom(t){return t}TryFinally(t,n){return Bt(r=>{t({onSuccess:s=>{n(),r.onSuccess(s)},onError:s=>{n(),r.onError(s)},onCancel:s=>{n(),r.onCancel(s)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return Bt(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:s=>{try{n(s)(r)}catch(i){r.onError(Us(i))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return Bt(t=>t.onSuccess(void 0))}}const I=new ig;function og(e){return new Vf(0,[e])}function ag(e){return new Vf(1,[e])}class Vf extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}class fa extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of3","Choice2Of3","Choice3Of3"]}}function lg(e){return og(e)}function ug(e){return ag(e)}function da(e){}function cg(e){return Bt(t=>e()(t))}function fg(e){return new Bf(!1)}function dg(e){e.cancel()}function hg(e){return e!=null&&e.isCancelled}function mg(e){return jf(t=>e.then(t[0]).catch(n=>(n instanceof us?t[2]:t[1])(n)))}const Ff=new Bf;function Wf(e){return Bt(t=>{e({onSuccess:n=>t.onSuccess(lg(n)),onError:n=>t.onSuccess(ug(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function jf(e){return Bt(t=>e([t.onSuccess,t.onError,t.onCancel]))}function pg(e){return cg(()=>mg(Promise.all(Array.from(e,t=>gg(t)))))}function yi(e){return Bt(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new us)})})}function $g(e,t){return Uf(e,t)}function ha(e,t){return $g(e,t)}function Uf(e,t,n,r,s){typeof t!="function"&&(s=t,t=void 0);const i=new ca;e({onSuccess:t||da,onError:n||da,onCancel:r||da,cancelToken:s||Ff,trampoline:i})}function gg(e,t){return new Promise((n,r)=>Uf(e,n,r,r,Ff))}class zf extends B{constructor(t,n,r){super(),this.instanceId=t|0,this.name=n,this.type=r}}function wg(e){return new zf($r(e.Id),e.Configuration.Name,pf(e.Configuration.Id))}function yg(e,t){const n={};return n.type="contentResized",n.sender="flare",n.height=e,n.width=t,n}function _g(e,t,n,r){const s={};return s.type="workflowSubmitSuccess",s.sender="flare",s.workflow=new zf($r(e),t,pf(n)),s.profileId=zc(r),s}function vg(e,t,n,r){const s={};return s.type="stepSubmitSuccess",s.sender="flare",s.workflow=wg(n),s.profileId=zc(r),s.step={name:t,type:mi(e)},s}function bg(){const e={};return e.type="appReady",e.sender="flare",e}function _i(e){vf()||window.parent.postMessage(e,"*")}function Cg(e,t){ha(I.Delay(()=>I.Bind(yi(e),()=>(t(),I.Zero()))))}function ma(){_i(yg(document.body.offsetHeight,-1))}function Sg(){(window.ResizeObserver?new window.ResizeObserver(()=>{ma()}):new Lf(()=>{ma()})).observe(document.body)}function kg(e,t,n){const r=D$(e,t);r.tag===1||_i(vg(e,r.fields[0].DisplayName,t,n))}function pa(e,t,n,r){_i(_g(e,t,n,r))}function Yt(e){vf()&&Cg(e,()=>{R$(),_i(bg()),ma()})}/*!
1
+ (function(){"use strict";var Mr,J,kl,yn,xl,Il,Yi,Ji,Zi,Xi,Al,Or={},El=[],Rh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ks=Array.isArray;function Bt(e,t){for(var n in t)e[n]=t[n];return e}function Tl(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function d(e,t,n){var r,s,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?s=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?Mr.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return Dr(e,o,r,s,null)}function Dr(e,t,n,r,s){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:s??++kl,__i:-1,__u:0};return s==null&&J.vnode!=null&&J.vnode(i),i}function Pl(){return{current:null}}function Pe(e){return e.children}function lt(e,t){this.props=e,this.context=t}function Yn(e,t){if(t==null)return e.__?Yn(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"?Yn(e):null}function Ml(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 Ml(e)}}function Ki(e){(!e.__d&&(e.__d=!0)&&yn.push(e)&&!xs.__r++||xl!==J.debounceRendering)&&((xl=J.debounceRendering)||Il)(xs)}function xs(){var e,t,n,r,s,i,o,a;for(yn.sort(Yi);e=yn.shift();)e.__d&&(t=yn.length,r=void 0,i=(s=(n=e).__v).__e,o=[],a=[],n.__P&&((r=Bt({},s)).__v=s.__v+1,J.vnode&&J.vnode(r),Qi(n.__P,r,s,n.__n,n.__P.namespaceURI,32&s.__u?[i]:null,o,i??Yn(s),!!(32&s.__u),a),r.__v=s.__v,r.__.__k[r.__i]=r,Ll(o,r,a),r.__e!=i&&Ml(r)),yn.length>t&&yn.sort(Yi));xs.__r=0}function Ol(e,t,n,r,s,i,o,a,l,u,f){var c,p,h,$,g,w=r&&r.__k||El,v=t.length;for(n.__d=l,Lh(n,t,w),l=n.__d,c=0;c<v;c++)(h=n.__k[c])!=null&&(p=h.__i===-1?Or:w[h.__i]||Or,h.__i=c,Qi(e,h,p,s,i,o,a,l,u,f),$=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&eo(p.ref,null,h),f.push(h.ref,h.__c||$,h)),g==null&&$!=null&&(g=$),65536&h.__u||p.__k===h.__k?l=Dl(h,l,e):typeof h.type=="function"&&h.__d!==void 0?l=h.__d:$&&(l=$.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=l,n.__e=g}function Lh(e,t,n){var r,s,i,o,a,l=t.length,u=n.length,f=u,c=0;for(e.__k=[],r=0;r<l;r++)(s=t[r])!=null&&typeof s!="boolean"&&typeof s!="function"?(o=r+c,(s=e.__k[r]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?Dr(null,s,null,null,null):ks(s)?Dr(Pe,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?Dr(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,i=null,(a=s.__i=Bh(s,n,o,f))!==-1&&(f--,(i=n[a])&&(i.__u|=131072)),i==null||i.__v===null?(a==-1&&c--,typeof s.type!="function"&&(s.__u|=65536)):a!==o&&(a==o-1?c--:a==o+1?c++:(a>o?c--:c++,s.__u|=65536))):s=e.__k[r]=null;if(f)for(r=0;r<u;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=Yn(i)),Bl(i,i))}function Dl(e,t,n){var r,s;if(typeof e.type=="function"){for(r=e.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=e,t=Dl(r[s],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Yn(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Vt(e,t){return t=t||[],e==null||typeof e=="boolean"||(ks(e)?e.some(function(n){Vt(n,t)}):t.push(e)),t}function Bh(e,t,n,r){var s=e.key,i=e.type,o=n-1,a=n+1,l=t[n];if(l===null||l&&s==l.key&&i===l.type&&!(131072&l.__u))return n;if(r>(l!=null&&!(131072&l.__u)?1:0))for(;o>=0||a<t.length;){if(o>=0){if((l=t[o])&&!(131072&l.__u)&&s==l.key&&i===l.type)return o;o--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&s==l.key&&i===l.type)return a;a++}}return-1}function Nl(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Rh.test(t)?n:n+"px"}function Is(e,t,n,r,s){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Nl(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Nl(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Ji,e.addEventListener(t,i?Xi:Zi,i)):e.removeEventListener(t,i?Xi:Zi,i);else{if(s=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Rl(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Ji++;else if(t.t<n.u)return;return n(J.event?J.event(t):t)}}}function Qi(e,t,n,r,s,i,o,a,l,u){var f,c,p,h,$,g,w,v,S,N,Q,ee,xe,at,I,j,Y=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),i=[a=t.__e=n.__e]),(f=J.__b)&&f(t);e:if(typeof Y=="function")try{if(v=t.props,S="prototype"in Y&&Y.prototype.render,N=(f=Y.contextType)&&r[f.__c],Q=f?N?N.props.value:f.__:r,n.__c?w=(c=t.__c=n.__c).__=c.__E:(S?t.__c=c=new Y(v,Q):(t.__c=c=new lt(v,Q),c.constructor=Y,c.render=Fh),N&&N.sub(c),c.props=v,c.state||(c.state={}),c.context=Q,c.__n=r,p=c.__d=!0,c.__h=[],c._sb=[]),S&&c.__s==null&&(c.__s=c.state),S&&Y.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=Bt({},c.__s)),Bt(c.__s,Y.getDerivedStateFromProps(v,c.__s))),h=c.props,$=c.state,c.__v=t,p)S&&Y.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),S&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(S&&Y.getDerivedStateFromProps==null&&v!==h&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(v,Q),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(v,c.__s,Q)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=v,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(Ie){Ie&&(Ie.__=t)}),ee=0;ee<c._sb.length;ee++)c.__h.push(c._sb[ee]);c._sb=[],c.__h.length&&o.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(v,c.__s,Q),S&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(h,$,g)})}if(c.context=Q,c.props=v,c.__P=e,c.__e=!1,xe=J.__r,at=0,S){for(c.state=c.__s,c.__d=!1,xe&&xe(t),f=c.render(c.props,c.state,c.context),I=0;I<c._sb.length;I++)c.__h.push(c._sb[I]);c._sb=[]}else do c.__d=!1,xe&&xe(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++at<25);c.state=c.__s,c.getChildContext!=null&&(r=Bt(Bt({},r),c.getChildContext())),S&&!p&&c.getSnapshotBeforeUpdate!=null&&(g=c.getSnapshotBeforeUpdate(h,$)),Ol(e,ks(j=f!=null&&f.type===Pe&&f.key==null?f.props.children:f)?j:[j],t,n,r,s,i,o,a,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&o.push(c),w&&(c.__E=c.__=null)}catch(Ie){if(t.__v=null,l||i!=null){for(t.__u|=l?160:32;a&&a.nodeType===8&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,t.__e=a}else t.__e=n.__e,t.__k=n.__k;J.__e(Ie,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Vh(n.__e,t,n,r,s,i,o,l,u);(f=J.diffed)&&f(t)}function Ll(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)eo(n[r],n[++r],n[++r]);J.__c&&J.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(i){i.call(s)})}catch(i){J.__e(i,s.__v)}})}function Vh(e,t,n,r,s,i,o,a,l){var u,f,c,p,h,$,g,w=n.props,v=t.props,S=t.type;if(S==="svg"?s="http://www.w3.org/2000/svg":S==="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((h=i[u])&&"setAttribute"in h==!!S&&(S?h.localName===S:h.nodeType===3)){e=h,i[u]=null;break}}if(e==null){if(S===null)return document.createTextNode(v);e=document.createElementNS(s,S,v.is&&v),a&&(J.__m&&J.__m(t,i),a=!1),i=null}if(S===null)w===v||a&&e.data===v||(e.data=v);else{if(i=i&&Mr.call(e.childNodes),w=n.props||Or,!a&&i!=null)for(w={},u=0;u<e.attributes.length;u++)w[(h=e.attributes[u]).name]=h.value;for(u in w)if(h=w[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=h;else if(!(u in v)){if(u=="value"&&"defaultValue"in v||u=="checked"&&"defaultChecked"in v)continue;Is(e,u,null,h,s)}}for(u in v)h=v[u],u=="children"?p=h:u=="dangerouslySetInnerHTML"?f=h:u=="value"?$=h:u=="checked"?g=h:a&&typeof h!="function"||w[u]===h||Is(e,u,h,w[u],s);if(f)a||c&&(f.__html===c.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),Ol(e,ks(p)?p:[p],t,n,r,S==="foreignObject"?"http://www.w3.org/1999/xhtml":s,i,o,i?i[0]:n.__k&&Yn(n,0),a,l),i!=null)for(u=i.length;u--;)Tl(i[u]);a||(u="value",S==="progress"&&$==null?e.removeAttribute("value"):$!==void 0&&($!==e[u]||S==="progress"&&!$||S==="option"&&$!==w[u])&&Is(e,u,$,w[u],s),u="checked",g!==void 0&&g!==e[u]&&Is(e,u,g,w[u],s))}return e}function eo(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(s){J.__e(s,n)}}function Bl(e,t,n){var r,s;if(J.unmount&&J.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||eo(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){J.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&Bl(r[s],t,n||typeof e.type!="function");n||Tl(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Fh(e,t,n){return this.constructor(e,n)}function Nr(e,t,n){var r,s,i,o;J.__&&J.__(e,t),s=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],o=[],Qi(t,e=(!r&&n||t).__k=d(Pe,null,[e]),s||Or,Or,t.namespaceURI,!r&&n?[n]:s?null:t.firstChild?Mr.call(t.childNodes):null,i,!r&&n?n:s?s.__e:t.firstChild,r,o),Ll(i,e,o)}function Vl(e,t){Nr(e,t,Vl)}function Wh(e,t,n){var r,s,i,o,a=Bt({},e.props);for(i in e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?s=t[i]:a[i]=t[i]===void 0&&o!==void 0?o[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?Mr.call(arguments,2):n),Dr(e.type,a,r||e.key,s||e.ref,null)}function Fl(e,t){var n={__c:t="__cC"+Al++,__:e,Consumer:function(r,s){return r.children(s)},Provider:function(r){var s,i;return this.getChildContext||(s=[],(i={})[t]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){s=null},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&s.some(function(a){a.__e=!0,Ki(a)})},this.sub=function(o){s.push(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){s&&s.splice(s.indexOf(o),1),a&&a.call(o)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Mr=El.slice,J={__e:function(e,t,n,r){for(var s,i,o;t=t.__;)if((s=t.__c)&&!s.__)try{if((i=s.constructor)&&i.getDerivedStateFromError!=null&&(s.setState(i.getDerivedStateFromError(e)),o=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,r||{}),o=s.__d),o)return s.__E=s}catch(a){e=a}throw e}},kl=0,lt.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Bt({},this.state),typeof e=="function"&&(e=e(Bt({},n),this.props)),e&&Bt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ki(this))},lt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ki(this))},lt.prototype.render=Pe,yn=[],Il=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Yi=function(e,t){return e.__v.__b-t.__v.__b},xs.__r=0,Ji=0,Zi=Rl(!1),Xi=Rl(!0),Al=0;var Ft,de,to,Wl,Jn=0,jl=[],ve=J,Ul=ve.__b,zl=ve.__r,Hl=ve.diffed,Gl=ve.__c,ql=ve.unmount,Yl=ve.__;function _n(e,t){ve.__h&&ve.__h(de,e,Jn||t),Jn=0;var n=de.__H||(de.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Zn(e){return Jn=1,As(Zl,e)}function As(e,t,n){var r=_n(Ft++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Zl(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,a);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=de,!de.u)){var s=function(a,l,u){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(p){return!!p.__c});if(f.every(function(p){return!p.__N}))return!i||i.call(this,a,l,u);var c=!1;return f.forEach(function(p){if(p.__N){var h=p.__[0];p.__=p.__N,p.__N=void 0,h!==p.__[0]&&(c=!0)}}),!(!c&&r.__c.props===a)&&(!i||i.call(this,a,l,u))};de.u=!0;var i=de.shouldComponentUpdate,o=de.componentWillUpdate;de.componentWillUpdate=function(a,l,u){if(this.__e){var f=i;i=void 0,s(a,l,u),i=f}o&&o.call(this,a,l,u)},de.shouldComponentUpdate=s}return r.__N||r.__}function vn(e,t){var n=_n(Ft++,3);!ve.__s&&uo(n.__H,t)&&(n.__=e,n.i=t,de.__H.__h.push(n))}function bn(e,t){var n=_n(Ft++,4);!ve.__s&&uo(n.__H,t)&&(n.__=e,n.i=t,de.__h.push(n))}function no(e){return Jn=5,Rr(function(){return{current:e}},[])}function ro(e,t,n){Jn=6,bn(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 Rr(e,t){var n=_n(Ft++,7);return uo(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function so(e,t){return Jn=8,Rr(function(){return e},t)}function io(e){var t=de.context[e.__c],n=_n(Ft++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(de)),t.props.value):e.__}function oo(e,t){ve.useDebugValue&&ve.useDebugValue(t?t(e):e)}function jh(e){var t=_n(Ft++,10),n=Zn();return t.__=e,de.componentDidCatch||(de.componentDidCatch=function(r,s){t.__&&t.__(r,s),n[1](r)}),[n[0],function(){n[1](void 0)}]}function ao(){var e=_n(Ft++,11);if(!e.__){for(var t=de.__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 Uh(){for(var e;e=jl.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Es),e.__H.__h.forEach(lo),e.__H.__h=[]}catch(t){e.__H.__h=[],ve.__e(t,e.__v)}}ve.__b=function(e){de=null,Ul&&Ul(e)},ve.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Yl&&Yl(e,t)},ve.__r=function(e){zl&&zl(e),Ft=0;var t=(de=e.__c).__H;t&&(to===de?(t.__h=[],de.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Es),t.__h.forEach(lo),t.__h=[],Ft=0)),to=de},ve.diffed=function(e){Hl&&Hl(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(jl.push(t)!==1&&Wl===ve.requestAnimationFrame||((Wl=ve.requestAnimationFrame)||zh)(Uh)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),to=de=null},ve.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Es),n.__h=n.__h.filter(function(r){return!r.__||lo(r)})}catch(r){t.some(function(s){s.__h&&(s.__h=[])}),t=[],ve.__e(r,n.__v)}}),Gl&&Gl(e,t)},ve.unmount=function(e){ql&&ql(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Es(r)}catch(s){t=s}}),n.__H=void 0,t&&ve.__e(t,n.__v))};var Jl=typeof requestAnimationFrame=="function";function zh(e){var t,n=function(){clearTimeout(r),Jl&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Jl&&(t=requestAnimationFrame(n))}function Es(e){var t=de,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),de=t}function lo(e){var t=de;e.__c=e.__(),de=t}function uo(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Zl(e,t){return typeof t=="function"?t(e):t}function co(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 Ts(e,t){this.props=e,this.context=t}function Xl(e,t){function n(s){var i=this.props.ref,o=i==s.ref;return!o&&i&&(i.call?i(null):i.current=null),t?!t(this.props,s)||!o:co(this.props,s)}function r(s){return this.shouldComponentUpdate=n,d(e,s)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Ts.prototype=new lt).isPureReactComponent=!0,Ts.prototype.shouldComponentUpdate=function(e,t){return co(this.props,e)||co(this.state,t)};var Kl=J.__b;J.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Kl&&Kl(e)};var Hh=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ql(e){function t(n){if(!("ref"in n))return e(n,null);var r=n.ref;delete n.ref;var s=e(n,r);return n.ref=r,s}return t.$$typeof=Hh,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var eu=function(e,t){return e==null?null:Vt(Vt(e).map(t))},tu={map:eu,forEach:eu,count:function(e){return e?Vt(e).length:0},only:function(e){var t=Vt(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Vt},Gh=J.__e;J.__e=function(e,t,n,r){if(e.then){for(var s,i=t;i=i.__;)if((s=i.__c)&&s.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),s.__c(e,t)}Gh(e,t,n,r)};var nu=J.unmount;function ru(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=function(r,s){for(var i in s)r[i]=s[i];return r}({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return ru(r,t,n)})),e}function su(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return su(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 Lr(){this.__u=0,this.t=null,this.__b=null}function iu(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ou(e){var t,n,r;function s(i){if(t||(t=e()).then(function(o){n=o.default||o},function(o){r=o}),r)throw r;if(!n)throw t;return d(n,i)}return s.displayName="Lazy",s.__f=!0,s}function Xn(){this.u=null,this.o=null}J.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),nu&&nu(e)},(Lr.prototype=new lt).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var s=iu(r.__v),i=!1,o=function(){i||(i=!0,n.__R=null,s?s(a):a())};n.__R=o;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=su(l,l.__c.__P,l.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.t.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},Lr.prototype.componentWillUnmount=function(){this.t=[]},Lr.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]=ru(this.__b,n,r.__O=r.__P)}this.__b=null}var s=t.__a&&d(Pe,null,e.fallback);return s&&(s.__u&=-33),[d(Pe,null,t.__a?null:e.children),s]};var au=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 qh(e){return this.getChildContext=function(){return e.context},e.children}function Yh(e){var t=this,n=e.i;t.componentWillUnmount=function(){Nr(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,s){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Nr(d(qh,{context:t.context},e.__v),t.l)}function lu(e,t){var n=d(Yh,{__v:e,i:t});return n.containerInfo=t,n}(Xn.prototype=new lt).__a=function(e){var t=this,n=iu(t.__v),r=t.o.get(e);return r[0]++,function(s){var i=function(){t.props.revealOrder?(r.push(s),au(t,e,r)):s()};n?n(i):i()}},Xn.prototype.render=function(e){this.u=null,this.o=new Map;var t=Vt(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},Xn.prototype.componentDidUpdate=Xn.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){au(e,n,t)})};var uu=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Jh=/^(?: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]/,Zh=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Xh=/[A-Z0-9]/g,Kh=typeof document<"u",Qh=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=""),Nr(e,t),typeof n=="function"&&n(),e?e.__c:null}function cu(e,t,n){return Vl(e,t),typeof n=="function"&&n(),e?e.__c:null}lt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(lt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var fu=J.event;function em(){}function tm(){return this.cancelBubble}function nm(){return this.defaultPrevented}J.event=function(e){return fu&&(e=fu(e)),e.persist=em,e.isPropagationStopped=tm,e.isDefaultPrevented=nm,e.nativeEvent=e};var fo,rm={enumerable:!1,configurable:!0,get:function(){return this.class}},du=J.vnode;J.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,s={},i=r.indexOf("-")===-1;for(var o in n){var a=n[o];if(!(o==="value"&&"defaultValue"in n&&a==null||Kh&&o==="children"&&r==="noscript"||o==="class"||o==="className")){var l=o.toLowerCase();o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?o="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Qh(n.type)?l==="onfocus"?o="onfocusin":l==="onblur"?o="onfocusout":Zh.test(o)&&(o=l):l=o="oninput":i&&Jh.test(o)?o=o.replace(Xh,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&s[o=l]&&(o="oninputCapture"),s[o]=a}}r=="select"&&s.multiple&&Array.isArray(s.value)&&(s.value=Vt(n.children).forEach(function(u){u.props.selected=s.value.indexOf(u.props.value)!=-1})),r=="select"&&s.defaultValue!=null&&(s.value=Vt(n.children).forEach(function(u){u.props.selected=s.multiple?s.defaultValue.indexOf(u.props.value)!=-1:s.defaultValue==u.props.value})),n.class&&!n.className?(s.class=n.class,Object.defineProperty(s,"className",rm)):(n.className&&!n.class||n.class&&n.className)&&(s.class=s.className=n.className),t.props=s}(e),e.$$typeof=uu,du&&du(e)};var hu=J.__r;J.__r=function(e){hu&&hu(e),fo=e.__c};var mu=J.diffed;J.diffed=function(e){mu&&mu(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),fo=null};var pu={ReactCurrentDispatcher:{current:{readContext:function(e){return fo.__n[e.__c].props.value},useCallback:so,useContext:io,useDebugValue:oo,useDeferredValue:po,useEffect:vn,useId:ao,useImperativeHandle:ro,useInsertionEffect:go,useLayoutEffect:bn,useMemo:Rr,useReducer:As,useRef:no,useState:Zn,useSyncExternalStore:wo,useTransition:$o}}},$u="18.3.1";function gu(e){return d.bind(null,e)}function Br(e){return!!e&&e.$$typeof===uu}function wu(e){return Br(e)&&e.type===Pe}function yu(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function _u(e){return Br(e)?Wh.apply(null,arguments):e}function ho(e){return!!e.__k&&(Nr(null,e),!0)}function vu(e){return e&&(e.base||e.nodeType===1&&e)||null}var bu=function(e,t){return e(t)},Cu=function(e,t){return e(t)},Su=Pe;function mo(e){e()}function po(e){return e}function $o(){return[!1,mo]}var go=bn,ku=Br;function wo(e,t){var n=t(),r=Zn({h:{__:n,v:t}}),s=r[0].h,i=r[1];return bn(function(){s.__=n,s.v=t,yo(s)&&i({h:s})},[e,n,t]),vn(function(){return yo(s)&&i({h:s}),e(function(){yo(s)&&i({h:s})})},[e]),n}function yo(e){var t,n,r=e.v,s=e.__;try{var i=r();return!((t=s)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var Ms={useState:Zn,useId:ao,useReducer:As,useEffect:vn,useLayoutEffect:bn,useInsertionEffect:go,useTransition:$o,useDeferredValue:po,useSyncExternalStore:wo,startTransition:mo,useRef:no,useImperativeHandle:ro,useMemo:Rr,useCallback:so,useContext:io,useDebugValue:oo,version:"18.3.1",Children:tu,render:Ps,hydrate:cu,unmountComponentAtNode:ho,createPortal:lu,createElement:d,createContext:Fl,createFactory:gu,cloneElement:_u,createRef:Pl,Fragment:Pe,isValidElement:Br,isElement:ku,isFragment:wu,isMemo:yu,findDOMNode:vu,Component:lt,PureComponent:Ts,memo:Xl,forwardRef:Ql,flushSync:Cu,unstable_batchedUpdates:bu,StrictMode:Su,Suspense:Lr,SuspenseList:Xn,lazy:ou,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:pu};const sm=Object.freeze(Object.defineProperty({__proto__:null,Children:tu,Component:lt,Fragment:Pe,PureComponent:Ts,StrictMode:Su,Suspense:Lr,SuspenseList:Xn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:pu,cloneElement:_u,createContext:Fl,createElement:d,createFactory:gu,createPortal:lu,createRef:Pl,default:Ms,findDOMNode:vu,flushSync:Cu,forwardRef:Ql,hydrate:cu,isElement:ku,isFragment:wu,isMemo:yu,isValidElement:Br,lazy:ou,memo:Xl,render:Ps,startTransition:mo,unmountComponentAtNode:ho,unstable_batchedUpdates:bu,useCallback:so,useContext:io,useDebugValue:oo,useDeferredValue:po,useEffect:vn,useErrorBoundary:jh,useId:ao,useImperativeHandle:ro,useInsertionEffect:go,useLayoutEffect:bn,useMemo:Rr,useReducer:As,useRef:no,useState:Zn,useSyncExternalStore:wo,useTransition:$o,version:$u},Symbol.toStringTag,{value:"Module"}));function mt(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function im(e){return e!=null&&typeof e.GetEnumerator=="function"}function om(e){return e!=null&&typeof e.CompareTo=="function"}function am(e){return e!=null&&typeof e.Equals=="function"}function xu(e){return e!=null&&typeof e.GetHashCode=="function"}function _o(e){return e!=null&&typeof e.Dispose=="function"}function ae(e){_o(e)&&e.Dispose()}function te(){return null}function Os(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 lm{constructor(t){this.iter=t,this.current=te()}"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 pe(e){return im(e)?e.GetEnumerator():new lm(e[Symbol.iterator]())}function Vr(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}}}}class um{constructor(t){this.factory=t,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function le(e,t){return e.toString(10).padStart(t,"0")}function cm(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function Iu(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function fm(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function sn(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class Wt{static id(t){return Wt.idMap.has(t)||Wt.idMap.set(t,++Wt.count),Wt.idMap.get(t)}}Wt.idMap=new WeakMap,Wt.count=0;function Ds(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function pt(e){return e*2654435761|0}function Au(e){return Ds(e.toString(32))}function Fr(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const s=e[r];t=(t<<5)+t^s}return t}function dm(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return pt(e);case"bigint":return Au(e);case"string":return Ds(e);default:return pt(Wt.id(e))}}function hm(e){return xu(e)?e.GetHashCode():dm(e)}function mm(e){return e.getTime()}function pm(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=jt(e[r]);return Fr(n)}function jt(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return pt(e);case"bigint":return Au(e);case"string":return Ds(e);default:{if(xu(e))return e.GetHashCode();if(mt(e))return pm(e);if(e instanceof Date)return mm(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>jt(r));return Fr(n)}else return pt(Wt.id(e))}}}function vo(e){return hm(e)}function bo(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 Eu(e,t){return bo(e,t,O)}function $m(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let s=0;s<n.length;s++)if(n[s]!==r[s]||!O(e[n[s]],t[r[s]]))return!1;return!0}function O(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:am(e)?e.Equals(t):mt(e)?mt(t)&&Eu(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Tu(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&$m(e,t)}function Tu(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Iu(e),r=t.getTime()+Iu(t)),n===r?0:n<r?-1:1}function Ns(e,t){return e===t?0:e<t?-1:1}function gm(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,s=0;r<e.length;r++)if(s=n(e[r],t[r]),s!==0)return s;return 0}function Pu(e,t){return gm(e,t,ut)}function wm(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let s=0,i=0;s<n.length;s++){const o=n[s];if(o!==r[s])return o<r[s]?-1:1;if(i=ut(e[o],t[o]),i!==0)return i}return 0}function ut(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:om(e)?e.CompareTo(t):mt(e)?mt(t)?Pu(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Tu(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?wm(e,t):-1}function C(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function ym(e){mt(e)?e.splice(0):e.clear()}const Rs=new WeakMap;function ne(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Rs.set(t,e),t}function At(e){return Rs.get(e)??(t=>n=>e(t,n))}function Co(e){if(e==null)return null;const t=(n,r,s)=>e(n)(r)(s);return Rs.set(t,e),t}function Ls(e){return Rs.get(e)??(t=>n=>r=>e(t,n,r))}function _m(e){let t=0,n="[";for(const r of e){if(t===0)n+=Et(r);else if(t===100){n+="; ...";break}else n+="; "+Et(r);t++}return n+"]"}function Et(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 _m(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([s,i])=>s+" = "+Et(i,t+1)).join(`
2
+ `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function vm(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Et(t[0]),r=n.indexOf(" ")>=0):n=t.map(s=>Et(s)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class R{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return vm(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>jt(n));return t.splice(0,0,pt(this.tag)),Fr(t)}Equals(t){return this===t?!0:Os(this,t)&&this.tag===t.tag?Eu(this.fields,t.fields):!1}CompareTo(t){return this===t?0:Os(this,t)?this.tag===t.tag?Pu(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function bm(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function Cm(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Et(n)).join(`
3
+ `)+" }"}function Sm(e){const t=Object.values(e).map(n=>jt(n));return Fr(t)}function km(e,t){if(e===t)return!0;if(Os(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!O(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function xm(e,t){if(e===t)return 0;if(Os(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const s=ut(e[n[r]],t[n[r]]);if(s!==0)return s}return 0}else return-1}class B{toJSON(){return bm(this)}toString(){return Cm(this)}GetHashCode(){return Sm(this)}Equals(t){return km(this,t)}CompareTo(t){return xm(this,t)}}class Ze{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 Im{constructor(t){this.message=t}}function Am(e){return e instanceof Im||e instanceof Error}function Em(e){return e instanceof Promise}function Bs(e){return Am(e)||Em(e)?e:new Error(String(e))}const Kn=Symbol("numeric");function Mu(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[Kn])}function Tm(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function So(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Kn]().multiply(t)}function Vs(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Kn]().toFixed(t)}function Fs(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Kn]().toPrecision(t)}function Ws(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Kn]().toExponential(t)}function js(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Kn]().toHex()}class Pm{constructor(t,n,r,s){this.declaringType=t,this.tag=n,this.name=r,this.fields=s}}class Ve{constructor(t,n,r,s,i,o,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=s,this.fields=i,this.cases=o,this.enumCases=a}toString(){return we(this)}GetHashCode(){return Ou(this)}Equals(t){return ko(this,t)}}function tt(e){return e.generics!=null?e.generics:[]}function Ou(e){const t=Ds(e.fullname),n=tt(e).map(Ou);return Fr([t,...n])}function ko(e,t){return e.fullname===""?t.fullname===""&&bo(jr(e),jr(t),([n,r],[s,i])=>n===s&&ko(r,i)):e.fullname===t.fullname&&bo(tt(e),tt(t),ko)}function Ut(e,t,n,r){return new Ve(e,t,n,r)}function ue(e,t,n,r){return new Ve(e,t,n,void 0,r)}function Xe(...e){return new Ve("",void 0,void 0,void 0,()=>e)}function $t(e,t,n,r){const s=new Ve(e,t,n,void 0,void 0,()=>{const i=n.prototype.cases();return r().map((o,a)=>new Pm(s,a,i[a],o))});return s}function Mm(...e){return new Ve("System.Tuple`"+e.length,e)}function X(e){return new Ve("Microsoft.FSharp.Core.FSharpOption`1",[e])}function on(e){return new Ve("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Om=new Ve("System.Object"),H=new Ve("System.String"),ct=new Ve("System.Boolean"),Us=new Ve("System.Int32"),Dm=new Ve("System.Double");function Qn(e){if(Array.isArray(e))return e[0];if(e instanceof Ve){const t=Wr(e);if(t!=null)return Qn(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function we(e){const t=Wr(e);return t!=null?we(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>we(n)).join(",")+"]"}function Du(e){return Wr(e)!=null}function Wr(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Nu(e){return e.generics!=null&&e.generics.length>0}function xo(e){return e.enumCases!=null&&e.enumCases.length>0}function Ru(e){return e.generics==null?e:new Ve(e.fullname,e.generics.map(()=>Om))}function Lu(e){var t;return(t=e.generics)==null?void 0:t[0]}function er(e){if(xo(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Nm(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 tr(e,t){const n=parseInt(t,10);return Nm(e,isNaN(n)?t:n)[1]}function Bu(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function jr(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Vu(e){if(Io(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Fu(e){return e instanceof Ve?e.cases!=null:e instanceof R}function Wu(e){return e instanceof Ve?e.fields!=null:e instanceof B}function Io(e){return e.fullname.startsWith("System.Tuple")}function Rm(e,t){const r=Bu(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function ju(e){return e.fields==null?[]:e.fields}function Lm(e,t){return e[t[0]]}function F3(e){return e}function Bm(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 Vm(e,t){const n=jr(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[s,i],o)=>(r[s]=t[o],r),{})}function Fm(e,t){return e}class Cn{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return jt(this.value)}Equals(t){return t==null?!1:O(this.value,t instanceof Cn?t.value:t)}CompareTo(t){return t==null?1:ut(this.value,t instanceof Cn?t.value:t)}}function x(e){if(e==null)throw new Error("Option has no value");return e instanceof Cn?e.value:e}function zs(e){return e instanceof Cn?e.value:e}function Ae(e){return e==null||e instanceof Cn?new Cn(e):e}function Uu(e){return e??void 0}function Hs(e){return e==null?[]:[x(e)]}function Ee(e,t){return e!=null?x(e):t}function Wm(e,t){return e!=null?x(e):t()}function zu(e,t){return e??t}function Le(e,t){return t!=null?Ae(e(x(t))):void 0}function an(e,t){return t!=null?e(x(t)):void 0}const jm=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Um=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],zm=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Hm=["January","February","March","April","May","June","July","August","September","October","November","December"];function nt(e,t,n){let r=0,s=t;for(;s<e.length&&e[s]===n;)s++,r++;return r}function Hu(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Gm(e,t){let n=t;const r=e[t];let s="",i=!1;for(;t<e.length;){t++;const o=e[t];if(o===r){i=!0;break}else if(o==="\\")if(t<e.length)t++,s+=e[t];else throw new Error("Invalid string format");else s+=o}if(!i)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[s,t-n+1]}function Ao(e,t,n){let r=0,s=0,i="";const o=n?Sn(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(s=nt(t,r,"d"),r+=s,s){case 1:i+=Eo(o);break;case 2:i+=le(Eo(o),2);break;case 3:i+=jm[Xu(o)];break;case 4:i+=Um[Xu(o)];break}break;case"f":if(s=nt(t,r,"f"),r+=s,s<=3){const w=10**(3-s);i+=le(Math.floor(Js(o)/w),s)}else s<=7&&(i+=(""+Js(o)).padEnd(s,"0"));break;case"F":if(s=nt(t,r,"F"),r+=s,s<=3){const w=10**(3-s),v=Math.floor(Js(o)/w);v!=0&&(i+=le(v,s))}else if(s<=7){const w=Js(o);w!=0&&(i+=le(w,3))}break;case"g":s=nt(t,r,"g"),r+=s,s<=2&&(i+="A.D.");break;case"h":switch(s=nt(t,r,"h"),r+=s,s){case 1:i+=Ys(o)%12;break;case 2:i+=le(Ys(o)%12,2);break}break;case"H":switch(s=nt(t,r,"H"),r+=s,s){case 1:i+=Ys(o);break;case 2:i+=le(Ys(o),2);break}break;case"K":switch(s=nt(t,r,"K"),r+=s,s){case 1:switch(Gu(o)){case 1:i+="Z";break;case 2:i+=nr(o.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(s=nt(t,r,"m"),r+=s,s){case 1:i+=Ju(o);break;case 2:i+=le(Ju(o),2);break}break;case"M":switch(s=nt(t,r,"M"),r+=s,s){case 1:i+=Ur(o);break;case 2:i+=le(Ur(o),2);break;case 3:i+=zm[Ur(o)-1];break;case 4:i+=Hm[Ur(o)-1];break}break;case"s":switch(s=nt(t,r,"s"),r+=s,s){case 1:i+=Zu(o);break;case 2:i+=le(Zu(o),2);break}break;case"t":switch(s=nt(t,r,"t"),r+=s,s){case 1:i+=o.getHours()<12?"A":"P";break;case 2:i+=o.getHours()<12?"AM":"PM";break}break;case"y":switch(s=nt(t,r,"y"),r+=s,s){case 1:i+=o.getFullYear()%100;break;case 2:i+=le(o.getFullYear()%100,2);break;case 3:i+=le(o.getFullYear(),3);break;case 4:i+=le(o.getFullYear(),4);break;case 5:i+=le(o.getFullYear(),5);break}break;case"z":s=nt(t,r,"z"),r+=s;let l="";switch(Gu(o)){case 1:l="+00:00";break;case 2:l=nr(o.getTimezoneOffset()*-6e4);break;case 0:l=nr(r1(o).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),c=parseInt(l.substring(4,6),10);switch(s){case 1:i+=`${u}${f}`;break;case 2:i+=`${u}${le(f,2)}`;break;default:i+=`${u}${le(f,2)}:${le(c,2)}`;break}break;case":":i+=":",r++;break;case"/":i+="/",r++;break;case"'":case'"':const[p,h]=Gm(t,r);i+=p,r+=h;break;case"%":const $=Hu(t,r);if($>=0&&$!==37)r+=2,i+=Ao(o,String.fromCharCode($),n);else throw new Error("Invalid format string");break;case"\\":const g=Hu(t,r);if(g>=0)r+=2,i+=String.fromCharCode(g);else throw new Error("Invalid format string");break;default:r++,i+=a;break}}return i}function Gu(e){return e.kind||0}function nr(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+le(n,2)+":"+le(r,2)}function Gs(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 qm(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return le(e.getFullYear(),4)+"-"+le(e.getMonth()+1,2)+"-"+le(e.getDate(),2)+"T"+le(e.getHours(),2)+":"+le(e.getMinutes(),2)+":"+le(e.getSeconds(),2)+"."+le(e.getMilliseconds(),3)+(n?nr(e.getTimezoneOffset()*-6e4):"")}}function Ym(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+nr(t)}function Jm(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," ")+nr(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return Gs(n,"first");case"T":case"t":return Gs(n,"second");case"O":case"o":return Ym(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Ao(n,t,!0)}function Zm(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?Gs(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Gs(e,"second"):e.toLocaleTimeString();case"O":case"o":return qm(e,n);default:throw new Error("Unrecognized Date print format")}else return Ao(e,t,n)}function qs(e,t,n){return e.offset!=null?Jm(e,t):Zm(e,t)}function Sn(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Xm(){return Sn(-621355968e5,1)}function qu(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const s=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(s!=null){let i,o=0;if(s[2]!=null){const a=s[2].split(":"),l=parseInt(a[0],10);o=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),s[3]!=null&&s[3].toUpperCase()==="PM"&&l<12&&(o+=720)}if(s[4]!=null){if(s[1]!=null)i=new Date(s[1]+" UTC");else{const a=new Date;i=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(s[4]==="Z")r="Z";else{let a=parseInt(s[5],10)*60+parseInt(s[6]||"0",10);s[4][0]==="-"&&(a*=-1),r=a,o-=a*60}}else if(s[1]!=null)i=new Date(s[1]);else{const a=new Date;i=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(i.getTime()+o*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-i.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function Km(e,t=!1){const[n,r]=qu(e),s=r!=null?t&&r==="Z"?1:2:0;return Sn(n.getTime(),s)}function Qm(e,t){try{return t.contents=Km(e),!0}catch{return!1}}function e1(e,t,n,r=0,s=0,i=0,o=0,a){const l=a===1?new Date(Date.UTC(e,t-1,n,r,s,i,o)):new Date(e,t-1,n,r,s,i,o);e<=99&&(a===1?l.setUTCFullYear(e,t-1,n):l.setFullYear(e,t-1,n));const u=l.getTime();if(isNaN(u))throw new Error("The parameters describe an unrepresentable Date.");return Sn(u,a)}function t1(){return Sn(Date.now(),2)}function Yu(){return s1(t1())}function n1(e){return e.kind===1?e:Sn(e.getTime(),1)}function r1(e){return e.kind===2?e:Sn(e.getTime(),2)}function s1(e){return e1(To(e),Ur(e),Eo(e),0,0,0,0,e.kind)}function Eo(e){return e.kind===1?e.getUTCDate():e.getDate()}function Ys(e){return e.kind===1?e.getUTCHours():e.getHours()}function Js(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function Ju(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Ur(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function Zu(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function To(e){return e.kind===1?e.getUTCFullYear():e.getFullYear()}function Xu(e){return e.kind===1?e.getUTCDay():e.getDay()}function Ku(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 Zs(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function i1(e,t,n=0){return e.lastIndex=n,e.exec(t)}function Qu(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let s,i=-1;for(;(s=e.exec(t))!=null;)s.index===i?e.lastIndex++:(i=s.index,r.push(s));return r}function o1(e,t,n,r,s=0){function i(){let o=arguments[0];if(r){r--;const a=[],l=arguments.length,u=typeof arguments[l-1]!="string";let f=u?l-3:l-2;for(let c=0;c<f;c++)a.push(arguments[c]);a.index=arguments[f++],a.input=arguments[f++],u&&(a.groups=arguments[f]),o=n(a)}return o}if(typeof e=="string"){const o=e;e=Ku(t,r??0),t=o,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,s)+t.substring(s).replace(e,i);if(n=n.replace(/\$0/g,o=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let o;const a=t.substring(s),l=Qu(e,a),u=Qu.length>r?(o=l[r-1],a.substring(0,o.index+o[0].length)):a;return t.substring(0,s)+u.replace(e,n)+t.substring(s+u.length)}else return t.replace(e,n)}const zr=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Hr=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,a1=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function ec(e,t){return Tm(e,t)<0}function rr(e,t,n){function r(i){return i===!0||i===1||i===3||i===5}function s(i){return i===4||i===5}return e==null?t==null?0:-1:t==null?1:s(n)?(r(n)&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t?0:e<t?-1:1):(r(n)&&(e=e.toLocaleLowerCase(),t=t.toLocaleLowerCase()),e.localeCompare(t))}function l1(...e){switch(e.length){case 2:return rr(e[0],e[1],!1);case 3:return rr(e[0],e[1],e[2]);case 4:return rr(e[0],e[1],e[2]===!0);case 5:return rr(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),!1);case 6:return rr(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),e[5]);case 7:return rr(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),e[5]===!0);default:throw new Error("String.compare: Unsupported number of parameters")}}function Fe(e){return{input:e,cont:u1(e)}}function tc(e,t){let n=0,r=0,s="";Hr.lastIndex=0;let i=Hr.exec(e);for(;i;){const o=i.index+(i[1]||"").length;s+=e.substring(r,o).replace(/%%/g,"%");const[,,a,l,u,f]=i;r=Hr.lastIndex,s+=sc(t[n++],a,l,u,f),Hr.lastIndex=r-1,i=Hr.exec(e)}return s+=e.substring(r).replace(/%%/g,"%"),s}function nc(e,t){return typeof t=="string"?e(t):t.cont(e)}function We(e){return nc(t=>t,e)}function rc(e){return nc(t=>{throw new Error(t)},e)}function sc(e,t,n,r,s){let i="";if(t=t||"",s=s||"",Mu(e))switch(s.toLowerCase()!=="x"&&(ec(e,0)?(e=So(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=r==null?null:parseInt(r,10),s){case"f":case"F":r=r??6,e=Vs(e,r);break;case"g":case"G":e=r!=null?Fs(e,r):Fs(e);break;case"e":case"E":e=r!=null?Ws(e,r):Ws(e);break;case"x":e=js(e);break;case"X":e=js(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=qs(e):e=Et(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=i+e;else{const o=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!o?" ":"0";l==="0"?(e=qr(e,n-i.length,l,a),e=i+e):e=qr(i+e,n,l,a)}return e}function ic(e,t,n,r="",s=-1){return(...i)=>{let o=r;const a=t.slice(),l=n.slice();for(const u of i){const[,,f,c,p,h]=l[0];let $=c;if(s>=0)$=s,s=-1;else if($==="*"){if(u<0)throw new Error("Non-negative number required");s=u;continue}o+=a[0],o+=sc(u,f,$,p,h),a.splice(0,1),l.splice(0,1)}return l.length===0?(o+=a[0],e(o)):ic(e,a,l,o,s)}}function u1(e){return t=>{zr.lastIndex=0;const n=[],r=[];let s=0,i=zr.exec(e);for(;i;){const o=i.index+(i[1]||"").length;n.push(e.substring(s,o).replace(/%%/g,"%")),r.push(i),s=zr.lastIndex,zr.lastIndex-=1,i=zr.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(s).replace(/%%/g,"%")),ic(t,n,r))}}function oc(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(a1,(r,s,i,o,a,l)=>{if(s<0||s>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[s];if(Mu(u))switch(a=a==null?null:parseInt(a,10),o){case"f":case"F":a=a??2,u=Vs(u,a);break;case"g":case"G":u=a!=null?Fs(u,a):Fs(u);break;case"e":case"E":u=a!=null?Ws(u,a):Ws(u);break;case"p":case"P":a=a??2,u=Vs(So(u,100),a)+" %";break;case"d":case"D":u=a!=null?Po(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?Po(js(u),a,"0"):js(u),o==="X"&&(u=u.toUpperCase());break;default:if(l){let f="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(c,p,h)=>{ec(u,0)&&(u=So(u,-1),f="-"),h=h==null?"":h.substring(1),u=Vs(u,Math.max(h.length,0));let[$,g]=u.split(".");g||(g="");const w=p.replace(/,/g,"").replace(/^#+/,"").length;$=Po($,w,"0");const v=h.replace(/#+$/,"").length;if(v>g.length?g=c1(g,v,"0"):v<g.length&&(g=g.substring(0,v)+g.substring(v).replace(/0+$/,"")),p.indexOf(",")>0){const S=$.length%3,N=Math.floor($.length/3);let Q=S>0?$.substr(0,S)+(N>0?",":""):"";for(let ee=0;ee<N;ee++)Q+=$.substr(S+ee*3,3)+(ee<N-1?",":"");$=Q}return g.length>0?$+"."+g:$}),u=f+u}}else u instanceof Date?u=qs(u,l||o):u=Et(u);return i=parseInt((i||" ").substring(1),10),isNaN(i)||(u=qr(String(u),Math.abs(i)," ",i<0)),u})}function ac(e){return typeof e!="string"||e.length===0}function Gr(e){return typeof e!="string"||/^\s*$/.test(e)}function _e(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function qr(e,t,n,r){n=n||" ",t=t-e.length;for(let s=0;s<t;s++)e=r?e+n:n+e;return e}function Po(e,t,n){return qr(e,t,n)}function c1(e,t,n){return qr(e,t,n,!0)}function lc(e,t,n){return e.replace(new RegExp(Zs(t),"g"),n)}function Xs(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const s=(r&1)===1,i=(r&2)===2;t=t||[],t=t.filter(f=>f).map(Zs),t=t.length>0?t:["\\s"];const o=[],a=new RegExp(t.join("|"),"g");let l=!0,u=0;do{const f=a.exec(e);if(f===null){const c=i?e.substring(u).trim():e.substring(u);(!s||c.length>0)&&o.push(c),l=!1}else{const c=i?e.substring(u,f.index).trim():e.substring(u,f.index);(!s||c.length>0)&&(n!=null&&o.length+1===n?(o.push(i?e.substring(u).trim():e.substring(u)),l=!1):o.push(c)),u=a.lastIndex}}while(l);return o}function f1(e,...t){if(t.length===0)return e.trim();const n="["+Zs(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function d1(e,...t){return t.length===0?e.trimEnd():e.replace(new RegExp("["+Zs(t.join(""))+"]+$"),"")}function Mo(e,t){return t.split("").filter(n=>e(n)).join("")}function h1(e,t,n){if(t+(n||0)>e.length)throw new Error("Invalid startIndex and/or length");return n!=null?e.substr(t,n):e.substr(t)}function m1(e){throw new Error(e)}function uc(e,t){return new Array(t)}function cc(e,t){return e>t?e:t}const Oo="Collection was empty.",p1="An index satisfying the predicate was not found in the collection.";function Ks(e,t,n,r){const s=t|0;return e.fill(r,s,s+n)}function sr(e,t,n){const r=t.length|0,s=uc(n,r);for(let i=0;i<=r-1;i++)gt(s,i,e(re(i,t)));return s}function $1(e,t){const n=uc(t,1);return gt(n,0,e),n}function g1(e){return e.slice().reverse()}function w1(e,t){return t.find(e)}function y1(e,t){return(r=>{e:for(;;){const s=r;if(s<0)return;if(e(re(s,t)))return s;r=s-1;continue e}})(t.length-1)}function _1(e,t,n){const r=[];for(let s=0;s<=t.length-1;s++){const i=e(re(s,t));if(i!=null){const o=x(i);r.push(o)}}return O(n,te())?r:sr(s=>s,r,n)}function Qs(e,t,n){const r=e;return n.reduce(r,t)}function Do(e,t,n){return t==null}function re(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 gt(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 fc(e,t){if(!(e<0||e>=t.length))return Ae(t[e])}function dc(e,t,n){return t.reduceRight((r,s)=>e(s,r),n)}class je extends B{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+_e("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((s,i)=>{e:for(;;){const o=s,a=i,l=o.tail,u=a.tail;if(l!=null)if(u!=null){const f=x(l),c=x(u);if(O(o.head,a.head)){s=f,i=c;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,s,i)=>{e:for(;;){const o=r,a=s,l=i,u=l.tail;if(u!=null){const f=x(u);if(o>18)return a|0;r=o+1,s=(a<<1)+jt(l.head)+631*o,i=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((s,i)=>{e:for(;;){const o=s,a=i,l=o.tail,u=a.tail;if(l!=null)if(u!=null){const f=x(l),c=x(u),p=ut(o.head,a.head)|0;if(p===0){s=f,i=c;continue e}else return p|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return b1(this)}[Symbol.iterator](){return Vr(pe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return pe(this)}}class v1{constructor(t){this.xs=t,this.it=this.xs,this.current=te()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=x(n);return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=te()}Dispose(){}}function b1(e){return new v1(e)}function Te(){return new je(te(),void 0)}function Yr(e,t){return new je(e,t)}function Tt(e){return e.tail==null}function hc(e){return((n,r)=>{e:for(;;){const s=n,o=r.tail;if(o!=null){n=s+1,r=x(o);continue e}else return s|0}})(0,e)|0}function ln(e){if(e.tail!=null)return e.head;throw new Error(Oo+"\\nParameter name: list")}function Be(e){const t=e.tail;if(t!=null)return x(t);throw new Error(Oo+"\\nParameter name: list")}function mc(){throw new Error(p1)}function ce(){return Te()}function Ke(e,t){return Yr(e,t)}function E(e){return Yr(e,Te())}function M(e){return Tt(e)}function ir(e){return hc(e)}function k(e){return ln(e)}function P(e){return Be(e)}function C1(e){e:for(;;){const t=e;if(Tt(t))return;{const n=Be(t);if(Tt(n))return Ae(ln(t));e=n;continue e}}}function S1(e){const t=C1(e);if(t==null)throw new Error(Oo);return x(t)}function or(e){const t=hc(e)|0,n=Ks(new Array(t),0,t,null);return((s,i)=>{e:for(;;){const o=s,a=i;if(!Tt(a)){gt(n,o,ln(a)),s=o+1,i=Be(a);continue e}break}})(0,e),n}function Pt(e,t,n){let r=t,s=n;for(;!Tt(s);)r=e(r,k(s)),s=Be(s);return r}function ar(e){return Pt((t,n)=>Yr(n,t),Te(),e)}function k1(e,t,n){return dc(e,or(t),n)}function Jr(e,t){Pt((n,r)=>{e(r)},void 0,t)}function be(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Yr(re(r,e),n);return n}function y(e){return be(e,Te())}function x1(e){let t,n;if(mt(e))return y(e);if(e instanceof je)return e;{const r=Te();let s=r;const i=pe(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"]();s=(t=s,n=new je(l,void 0),t.tail=n,n)}}finally{ae(i)}const o=s,a=Te();return o.tail=a,Be(r)}}function No(e){const t=Te();let n=t;const r=o=>{n=Pt((a,l)=>{const u=new je(l,void 0);return a.tail=u,u},n,o)};if(mt(e))e.forEach(r);else if(e instanceof je)Jr(r,e);else{const o=pe(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();)r(o["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{ae(o)}}const s=n,i=Te();return s.tail=i,Be(t)}function wt(e,t){return Pt((n,r)=>Yr(r,n),t,ar(e))}function I1(e,t){let n,r;const s=Te();let i=s,o=t;for(;!Tt(o);){let u=e(ln(o));for(;!Tt(u);)i=(n=i,r=new je(ln(u),void 0),n.tail=r,r),u=Be(u);o=Be(o)}const a=i,l=Te();return a.tail=l,Be(s)}function Qe(e,t){const n=Te(),r=Pt((i,o)=>{const a=new je(e(o),void 0);return i.tail=a,a},n,t),s=Te();return r.tail=s,Be(n)}function A1(e,t){return(r=>{e:for(;;){const s=r;if(Tt(s))return;{const i=e(ln(s));if(i==null){r=Be(s);continue e}else return i}}})(t)}function Zr(e,t){return A1(n=>e(n)?Ae(n):void 0,t)}function ei(e,t){return((r,s)=>{e:for(;;){const i=r,o=s;if(Tt(o))return;if(e(ln(o)))return i;r=i+1,s=Be(o);continue e}})(0,t)}function E1(e,t){const n=ei(e,t);return n==null?(mc(),-1):x(n)|0}function T1(e,t){return y1(e,or(t))}function P1(e,t){const n=T1(e,t);return n==null?(mc(),-1):x(n)|0}function M1(e,t){return((r,s)=>{e:for(;;){const i=r,o=s;if(Tt(o))return;if(i===e)return Ae(ln(o));r=i+1,s=Be(o);continue e}})(0,t)}function Ro(e,t){const n=Te(),r=Pt((i,o)=>{if(e(o)){const a=new je(o,void 0);return i.tail=a,a}else return i},n,t),s=Te();return r.tail=s,Be(n)}function O1(e,t){const n=Te(),r=Te(),s=n,i=Pt((l,u)=>{let f,c;const p=l[0],h=l[1];return e(u)?[(f=new je(u,void 0),p.tail=f,f),h]:[p,(c=new je(u,void 0),h.tail=c,c)]},[s,r],t),o=Te();i[0].tail=o;const a=Te();return i[1].tail=a,[Be(s),Be(r)]}function D1(e,t){const n=Te(),r=Pt((i,o)=>{const a=e(o);if(a==null)return i;{const l=new je(x(a),void 0);return i.tail=l,l}},n,t),s=Te();return r.tail=s,Be(n)}function N1(e,t,n){return ei(r=>n.Equals(e,r),t)!=null}function pc(e,t){return ei(e,t)!=null}const R1="Enumeration already finished.",L1="Enumeration has not started. Call MoveNext.",$c="The input sequence has an insufficient number of elements.",B1="Reset is not supported on this enumerator.";function V1(){throw new Error(B1)}function Lo(){throw new Error(L1)}function Bo(){throw new Error(R1)}class F1{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const s=pe(t);try{for(;n<4&&s["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Et(s["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{ae(s)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Vr(pe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function W1(e){return new F1(e)}class j1{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"(){V1()}Dispose(){this.dispose()}}function ti(e,t,n){return new j1(e,t,n)}function U1(e){let t,n,r=!1,s=!1,i;const o=()=>{if(s=!0,n!=null){const a=x(n);try{ae(a)}finally{n=void 0}}if(t!=null){const a=x(t);try{ae(a)}finally{t=void 0}}};return ti(()=>(r?s&&Bo():Lo(),i!=null?x(i):Bo()),()=>{let a;if(r||(r=!0),s)return!1;{let l;for(;l==null;){const u=t,f=n;if(u!=null)if(f!=null){const c=x(f);if(c["System.Collections.IEnumerator.MoveNext"]())i=Ae(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{ae(c)}finally{n=void 0}}else{const c=x(u);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),pe(a)):(o(),l=!1)}else t=pe(e)}return x(l)}},()=>{s||o()})}function z1(e,t){return ti(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{ae(t)}finally{}})}function gc(e,t,n){let r=!1,s,i=Ae(e());const o=()=>{if(i!=null){const l=x(i);try{n(l)}finally{i=void 0}}},a=()=>{try{o()}finally{s=void 0}};return ti(()=>(r||Lo(),s!=null?x(s):Bo()),()=>{if(r||(r=!0),i!=null){const l=x(i);let u;try{u=t(l)}catch(f){throw a(),f}return u!=null?(s=u,!0):(a(),!1)}else return!1},o)}function H1(e,t){let n,r=t;return ti(()=>{if(n!=null){const s=x(n)[0];return x(n)[1],s}else return Lo()},()=>(n=e(r),n!=null?(x(n)[0],r=x(n)[1],!0):!1),()=>{})}function G1(e,t){t==null&&m1(e)}function lr(e){return W1(e)}function un(e){return G1("source",e),pe(e)}function A(e){return lr(()=>pe(e()))}function Vo(e){return lr(()=>U1(e))}function q1(e,t){return lr(()=>H1(e,t))}function ur(){return A(()=>new Array(0))}function _(e){return A(()=>$1(e))}function W3(e){return e}function Fo(e){return e instanceof je?or(e):Array.from(e)}function $e(e){return mt(e)?y(e):e instanceof je?e:x1(e)}function Y1(e,t,n){return lr(()=>gc(e,t,n))}function wc(e,t,n){return lr(()=>{let r=-1;return gc(e,s=>(r=r+1|0,t(r,s)),n)})}function V(e,t){return Vo([e,t])}function J1(e,t,n){const r=un(t);try{const s=un(n);try{let i=0,o=r["System.Collections.IEnumerator.MoveNext"](),a=s["System.Collections.IEnumerator.MoveNext"]();for(;i===0&&o&&a;)i=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),s["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,i===0&&(o=r["System.Collections.IEnumerator.MoveNext"](),a=s["System.Collections.IEnumerator.MoveNext"]());return(i!==0?i:o?1:a?-1:0)|0}finally{ae(s)}}finally{ae(r)}}function kn(e,t,n){const r=un(t);try{let s=!1;for(;!s&&r["System.Collections.IEnumerator.MoveNext"]();)s=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return s}finally{ae(r)}}function Xr(e,t,n){const r=un(n);try{let s=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)s=e(s,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return s}finally{ae(r)}}function xn(e,t){Xr((n,r)=>{e(r)},void 0,t)}function Z1(e,t){Xr((n,r)=>(e(n,r),n+1|0),0,t)}function ke(e,t){return Y1(()=>un(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?Ae(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{ae(n)})}function X1(e,t){return wc(()=>un(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?Ae(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{ae(n)})}function K1(e){return A(()=>g1(Fo(e)))}function Q1(e,t){return lr(()=>{const n=un(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error($c+"\\nParameter name: source");return z1(()=>{},n)}catch(r){throw ae(n),r}})}function ep(e,t){return wc(()=>un(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return Ae(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error($c+"\\nParameter name: source")}else return},n=>{ae(n)})}function yc(e,t){return A(()=>Vo(ke(e,t)))}const In={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Wo(e,t){return e.replace(/[a-z]?[A-Z]/g,n=>n.length===1?n.toLowerCase():n.charAt(0)+t+n.charAt(1).toLowerCase())}function tp(e,t){switch(t){case In.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case In.SnakeCase:return Wo(e,"_");case In.SnakeCaseAllCaps:return Wo(e,"_").toUpperCase();case In.KebabCase:return Wo(e,"-");case In.None:default:return e}}function yt(e,t=In.None){const n={},r=t;function s(o){throw new Error("Cannot infer key and value of "+String(o))}function i(o,a,l){o=tp(o,a),n[o]=l}for(let o of e){let a=In.None;if(o==null&&s(o),o instanceof R){const l=o.cases()[o.tag];o=o.fields.length===0?l:[l].concat(o.fields),a=r}if(Array.isArray(o))switch(o.length){case 0:s(o);break;case 1:i(o[0],a,!0);break;case 2:const l=o[1];i(o[0],a,l);break;default:i(o[0],a,o.slice(1))}else typeof o=="string"?i(o,a,!0):s(o)}return n}function np(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function Kr(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}const rp=e=>d("svg",{width:48,height:47,viewBox:"0 0 48 47",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("rect",{width:48,height:47,rx:8,fill:"currentColor",fillOpacity:"10%"}),d("path",{d:"M9 24H30",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M23 17L30 24L23 31",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M23 9H35C35.7956 9 36.5587 9.31607 37.1213 9.87868C37.6839 10.4413 38 11.2044 38 12V36C38 36.7956 37.6839 37.5587 37.1213 38.1213C36.5587 38.6839 35.7956 39 35 39H23",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),sp=e=>d("svg",{width:48,height:47,viewBox:"0 0 48 47",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("rect",{width:48,height:47,rx:8,fill:"currentColor",fillOpacity:"10%"}),d("path",{d:"M18 18.782V15C18.0047 13.4102 18.6384 11.8868 19.7626 10.7626C20.8868 9.63841 22.4102 9.00475 24 9C25.5898 9.00475 27.1132 9.63841 28.2374 10.7626C29.3616 11.8868 29.9953 13.4102 30 15V18.783",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M24 39C30.0751 39 35 34.0751 35 28C35 21.9249 30.0751 17 24 17C17.9249 17 13 21.9249 13 28C13 34.0751 17.9249 39 24 39Z",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M24 30V33",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M24 30C25.6569 30 27 28.6569 27 27C27 25.3431 25.6569 24 24 24C22.3431 24 21 25.3431 21 27C21 28.6569 22.3431 30 24 30Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ip=e=>d("svg",{width:48,height:47,viewBox:"0 0 48 47",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("rect",{width:48,height:47,rx:8,fill:"currentColor",fillOpacity:"10%"}),d("path",{d:"M24 9V22",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M32 19H32.235C32.7699 19.0001 33.2951 19.1432 33.7561 19.4145C34.2171 19.6858 34.5972 20.0754 34.857 20.543L39 28V35C39 35.7956 38.6839 36.5587 38.1213 37.1213C37.5587 37.6839 36.7956 38 36 38H12C11.2044 38 10.4413 37.6839 9.87868 37.1213C9.31607 36.5587 9 35.7956 9 35V28L13.143 20.543C13.4028 20.0754 13.7829 19.6858 14.2439 19.4145C14.7049 19.1432 15.2301 19.0001 15.765 19H16",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M29 17L24 22L19 17",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M39 28H29V31H19V28H9",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),op=e=>d("svg",{width:48,height:47,viewBox:"0 0 48 47",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("rect",{width:48,height:47,rx:8,fill:"currentColor",fillOpacity:"10%"}),d("path",{d:"M24 18V24H18",stroke:"#212121",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M32 39C35.866 39 39 35.866 39 32C39 28.134 35.866 25 32 25C28.134 25 25 28.134 25 32C25 35.866 28.134 39 32 39Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M21.9816 35.8395C21.8897 36.3783 21.3771 36.7444 20.8469 36.6118C18.8631 36.1159 17.0195 35.1576 15.4695 33.8097C13.6699 32.2448 12.3355 30.215 11.6122 27.9425C10.889 25.67 10.8048 23.2424 11.3689 20.9252C11.9329 18.6081 13.1235 16.4907 14.8103 14.8049C16.4971 13.1191 18.6151 11.9298 20.9326 11.3671C23.2501 10.8044 25.6777 10.89 27.9498 11.6145C30.2218 12.3391 32.2508 13.6747 33.8147 15.4752C35.1617 17.026 36.1189 18.8702 36.6137 20.8543C36.7459 21.3846 36.3795 21.8969 35.8407 21.9885C35.3018 22.08 34.7952 21.7157 34.6557 21.1873C34.2264 19.5608 33.4291 18.0497 32.3203 16.7731C30.9946 15.2468 29.2745 14.1146 27.3484 13.5003C25.4222 12.8861 23.3643 12.8135 21.3996 13.2905C19.435 13.7675 17.6395 14.7758 16.2095 16.2049C14.7795 17.6341 13.7702 19.429 13.292 21.3934C12.8139 23.3577 12.8852 25.4158 13.4984 27.3422C14.1115 29.2687 15.2427 30.9895 16.7683 32.3161C18.0442 33.4256 19.5549 34.2238 21.181 34.654C21.7094 34.7938 22.0734 35.3007 21.9816 35.8395Z",fill:"#111827"}),d("line",{x1:32,y1:29,x2:32,y2:32,stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),d("circle",{cx:32,cy:35,r:1,fill:"currentColor"})),ap=e=>d("svg",{width:48,height:47,viewBox:"0 0 48 47",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("rect",{width:48,height:47,rx:8,fill:"#FEE2E2"}),d("g",{clipPath:"url(#clip0_153_10600)"},d("path",{d:"M24 15V27",stroke:"#DC2626",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"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",fill:"#DC2626"}),d("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"})),d("defs",null,d("clipPath",{id:"clip0_153_10600"},d("rect",{width:32,height:32,fill:"white",transform:"translate(8 8)"})))),lp=e=>d("svg",{width:48,height:47,viewBox:"0 0 48 47",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("rect",{width:48,height:47,rx:8,fill:"currentColor",fillOpacity:"10%"}),d("g",{clipPath:"url(#clip0_261_2289)"},d("path",{d:"M17 25L21 29L31 19",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M24 39C32.2843 39 39 32.2843 39 24C39 15.7157 32.2843 9 24 9C15.7157 9 9 15.7157 9 24C9 32.2843 15.7157 39 24 39Z",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),d("defs",null,d("clipPath",{id:"clip0_261_2289"},d("rect",{width:32,height:32,fill:"white",transform:"translate(8 8)"}))));function cr(e){return $e(A(()=>V(_(["className","text-primary-base"]),A(()=>e))))}function _c(e){const t=yt(cr(e),1);return d(rp,t)}function up(e){const t=yt(cr(e),1);return d(sp,t)}function cp(e){const t=yt(cr(e),1);return d(ip,t)}function fp(e){const t=yt(cr(e),1);return d(op,t)}function dp(e){const t=yt(cr(e),1);return d(ap,t)}function vc(e){const t=yt(cr(e),1);return d(lp,t)}var jo;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(jo||(jo={}));function hp(e,t){const[,n,r,s]=e;return{sign:n||"",prefix:r||"",digits:s,radix:t}}function bc(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 mp(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 pp(e,t){if(t&jo.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 $p(e,t,n){const s=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(s!=null){const[,,i,o]=s;if(n=n||pp(i,t),!mp(n).test(o))return hp(s,n)}return null}function Uo(e,t,n,r,s){const i=$p(e,t,s);if(i!=null){let o=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(o)){const[a,l]=bc(!0,r);!n&&i.radix!==10&&o>=a&&o<=l&&(o=o<<32-r>>32-r);const[u,f]=bc(n,r);if(o>=u&&o<=f)return o}}throw new Error(`The input string ${e} was not in a correct format.`)}function fr(e,t,n,r,s){try{return s.contents=Uo(e,t,n,r),!0}catch{return!1}}const b=Ms,gp=e=>d("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("path",{d:"M21.6004 11.9999C21.6004 17.3018 17.3023 21.5999 12.0004 21.5999C6.69846 21.5999 2.40039 17.3018 2.40039 11.9999C2.40039 6.69797 6.69846 2.3999 12.0004 2.3999C17.3023 2.3999 21.6004 6.69797 21.6004 11.9999ZM4.7973 11.9999C4.7973 15.9781 8.02224 19.203 12.0004 19.203C15.9785 19.203 19.2035 15.9781 19.2035 11.9999C19.2035 8.02175 15.9785 4.79681 12.0004 4.79681C8.02224 4.79681 4.7973 8.02175 4.7973 11.9999Z",fill:"white",fillOpacity:.3}),d("path",{d:"M12.0004 3.5999C12.0004 2.93716 12.5397 2.39218 13.1973 2.47481C14.0467 2.58154 14.8799 2.80166 15.6742 3.13066C16.8389 3.6131 17.8972 4.32024 18.7886 5.21168C19.6801 6.10312 20.3872 7.16142 20.8696 8.32614C21.1986 9.12042 21.4188 9.95357 21.5255 10.803C21.6081 11.4606 21.0631 11.9999 20.4004 11.9999V11.9999C19.7377 11.9999 19.2106 11.459 19.1006 10.8054C19.0107 10.2712 18.8606 9.74748 18.6523 9.24458C18.2905 8.37104 17.7601 7.57732 17.0916 6.90873C16.423 6.24015 15.6293 5.7098 14.7557 5.34797C14.2528 5.13966 13.7291 4.98955 13.1949 4.89967C12.5413 4.78973 12.0004 4.26264 12.0004 3.5999V3.5999Z",fill:"white"})),wp=e=>d("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 0 48 48",fill:"none",...e},d("g",{clipPath:"url(#clip0_389_3293)"},d("path",{d:"M48 24C48 37.2548 37.2548 48 24 48C10.7452 48 0 37.2548 0 24C0 10.7452 10.7452 0 24 0C37.2548 0 48 10.7452 48 24ZM2.99705 24C2.99705 35.5996 12.4004 45.0029 24 45.0029C35.5996 45.0029 45.0029 35.5996 45.0029 24C45.0029 12.4004 35.5996 2.99705 24 2.99705C12.4004 2.99705 2.99705 12.4004 2.99705 24Z",fill:"currentColor",fillOpacity:.3}),d("path",{d:"M24 1.5C24 0.671573 24.6722 -0.00488373 25.499 0.0468592C28.138 0.212012 30.7352 0.812387 33.1844 1.82689C36.0962 3.033 38.742 4.80083 40.9706 7.02944C43.1992 9.25805 44.967 11.9038 46.1731 14.8156C47.1876 17.2648 47.788 19.862 47.9531 22.501C48.0049 23.3278 47.3284 24 46.5 24C45.6716 24 45.0056 23.3276 44.9465 22.5013C44.7858 20.2565 44.2652 18.0488 43.4015 15.9637C42.3461 13.4158 40.7993 11.1008 38.8492 9.15076C36.8992 7.20073 34.5842 5.65388 32.0364 4.59853C29.9512 3.73482 27.7435 3.21416 25.4987 3.05355C24.6724 2.99443 24 2.32843 24 1.5Z",fill:"currentColor"})),d("defs",null,d("clipPath",{id:"clip0_389_3293"},d("rect",{width:48,height:48,fill:"white"}))));function yp(e){const t=yt(e,1);return d(gp,t)}function Cc(e){const t=yt(e,1);return d(wp,t)}function An(e){return d("h1",{className:"mt-4 mb-4 sm:mb-8 text-2xl sm:text-3xl font-semibold text-gray-900",children:e})}function ni(e){let t;const n=an(s=>s.Phone,e.Support),r=an(s=>s.Email,e.Support);return d("p",C(y([["className","text-sm text-gray-900 whitespace-pre-wrap leading-5"],(t=$e(A(()=>V(_(d("span",{children:[`Need help? Contact ${Ee(e.CompanyName,"your employer")}`]})),A(()=>V(n==null?r==null?_(d("span",{children:[" for assistance"]})):V(_(d("span",{children:[" at "]})),A(()=>{let s;return V((s=n,s==null?_(te()):_(d("span",{children:[`${s}`]}))),A(()=>V(n!=null&&r!=null?_(d("span",{children:[" or "]})):_(te()),A(()=>{const i=r;if(i==null)return _(te());{const o=i;return _(d("a",{className:"text-primary-base underline underline-offset-3 cursor-pointer",href:`mailto:${o}`,children:o}))}}))))})):V(_(d("span",{children:[" at "]})),A(()=>{let s;return V((s=n,s==null?_(te()):_(d("span",{children:[`${s}`]}))),A(()=>V(n!=null&&r!=null?_(d("span",{children:[" or "]})):_(te()),A(()=>{const i=r;if(i==null)return _(te());{const o=i;return _(d("a",{className:"text-primary-base underline underline-offset-3 cursor-pointer",href:`mailto:${o}`,children:o}))}}))))})),A(()=>_(d("span",{children:["."]})))))))),["children",b.Children.toArray(Array.from(t))])])))}function zo(e,t,n,r){let s;return d("button",C(y([["className",`w-full sm:w-[240px] ${n?"bg-primary-dark":"bg-primary-base"} text-primary-text font-semibold text-base rounded-md flex items-center justify-center h-[42px] hover:bg-primary-hover ${Ee(e,"")}`],["type","button"],["onClick",i=>{t()}],["disabled",n],(s=$e(A(()=>n?_(yp([["className","animate-spin"]])):r)),["children",b.Children.toArray(Array.from(s))])])))}const _p=Cc([["className","text-primary-base animate-spin"]]),vp=e=>{vn(()=>{const t=e();return()=>{t.Dispose()}})},bp=(e,t)=>{vn(()=>{const n=e();return()=>{n.Dispose()}},t)},Cp=e=>{bn(()=>{const t=e();return()=>{t.Dispose()}})},Sp=vp,Sc=bp,kp=Cp;function xp(e,t,n,r){const s=b.memo(e,ne(Ee(Le(At,n),te())));return xn(i=>{e.displayName=i},Hs(t)),i=>{const o=Ip(r,i);return b.createElement(s,o)}}function Ip(e,t){if(e==null)return t;{const n=e;return t.key=n(t),t}}function ri(e){return{Dispose(){e()}}}function Ap(e){return b.useState(e)}function Ep(e){Sp(e)}function Ho(e,t){Sc(e,t)}function Tp(e){kp(t=>(e(),ri(()=>{})))}function dr(e){const t=b.useRef(!1);Go(()=>{t.current||(t.current=!0,e())},[])}function Pp(e){const t=b.useRef(void 0),n=b.useRef(!1),r=b.useRef(!1);n.current&&(r.current=!0),Ho(()=>{let s;return n.current?s=void 0:(n.current=!0,t.current=Ae(e()),s=r.current?t.current:void 0),{Dispose(){xn(i=>{ae(i)},Hs(s))}}},[])}function Go(e,t){Sc(n=>(e(),ri(()=>{})),t)}function Mp(e,t){const n=Ee(t,[]);return b.useCallback(e,n)}function kc(e){return b.useRef(e)}function Op(e,t,n){return xp(e,void 0,zs(n),zs(t))}function Dp(e){const t=kc(e),n=Mp(r=>t.current(r),[]);return Tp(()=>{t.current=e}),n}function si(e){return b.useState(e)}function ii(e,t,n){const r=[dp([]),An(e),d("p",{className:"text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4 mb-8",children:t}),Ee(n,te())];return d(Pe,{},...r)}function qo(e,t,n){return ii(e,t,Le(r=>{let s;return d("div",C(y([["className","mt-8"],(s=[ni(r)],["children",b.Children.toArray(Array.from(s))])])))},n))}function Np(e){let t;const n=e.reissueMagicLink,r=si(!1);return ii("Too many Invalid Codes","We’ve temporarily locked mobile authentication for your account because you made too many attempts with an invalid security code.",d("div",C(y([["className","mt-1 sm:mt-8 text-base leading-7 text-gray-900 whitespace-pre-wrap"],(t=[d("span",{children:["Please wait 30 minutes before trying again, or "]}),d("a",{className:"text-primary-base underline underline-offset-3 cursor-pointer",onClick:i=>{r[0]||(r[1](!0),n())},children:"sign in with email instead"}),d("span",{children:["."]})],["children",b.Children.toArray(Array.from(t))])]))))}function Rp(){return ii("You don’t have access","It seems that you’re not authorised to access our application. If you believe this is an error, please contact your employer for assistance.",void 0)}function xc(e){return qo("That link doesn’t look right","It looks like the link is incorrect or incomplete. We recommend going back to your invitation email and trying again.",e)}function Lp(e){return qo("Invite no longer active","It looks like your employer may have cancelled your invite, and you no longer have access.",e)}function Bp(e){return qo("Invite expired","Your invite has now expired and you no longer have access.",e)}function oi(){return ii("Something went wrong","We are unable to load our application at this time. Please wait a few minutes before trying again.",void 0)}const Vp="workflows-app",Yo="fade-in",Jo=d("div",C(y([["className","w-full sm:max-w-[640px] mt-10 sm:mt-14 text-xs text-gray-500 text-center whitespace-pre-wrap space-y-4"],(()=>{let e,t;const n=[(e=y([(t="Flare provides workplace solutions to Australian businesses and their employees. All information collected is treated in accordance with our ",d("span",{children:[t]})),d("a",{className:"text-primary-base underline underline-offset-3 cursor-pointer",href:"https://www.flarehr.com/security",target:"_blank",rel:"noreferrer",children:"security standards"}),d("span",{children:[" and "]}),d("a",{className:"text-primary-base underline underline-offset-3 cursor-pointer",href:"https://www.flarehr.com/privacy-policy",target:"_blank",rel:"noreferrer",children:"Privacy Policy"}),d("span",{children:["."]})]),d("p",{children:b.Children.toArray(Array.from(e))})),d("p",{children:[`Copyright © ${To(Yu())} Flare. ABN 46 607 120 892.`]})];return["children",b.Children.toArray(Array.from(n))]})()])));function Fp(){let e,t;return d("div",C(y([["className",_e(" ",[Yo,"min-h-full flex flex-col justify-between w-full sm:w-[640px] mx-auto text-center"])],(e=[d("div",C(y([["className","flex flex-col mt-10 mx-4 sm:mt-20 justify-center items-center"],(t=[Cc([["className","h-12 w-12 text-primary-base animate-spin"]]),d("h1",{className:"mt-4 font-bold text-2xl leading-7 sm:text-3xl text-gray-900",children:"Authenticating your account"}),d("p",{className:"mt-6 sm:mt-8 text-lg leading-7 text-gray-900",children:"This may take a few seconds, please don’t close this window."})],["children",b.Children.toArray(Array.from(t))])]))),d("div",{className:"mb-6 sm:mb-8 px-4",children:b.Children.toArray([Jo])})],["children",b.Children.toArray(Array.from(e))])])))}const Wp=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Ic=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,jp=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Oe(e){function t(r){return r.replace(Ic,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Wp.test(n))return f1(n,"{","}","(",")");if(Ic.test(n))return t(n);if(jp.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 Up(e,t){try{return t.contents=Oe(e),!0}catch{return!1}}class zp{constructor(t,n){const r=new Ze(te());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const s=pe(t);try{for(;s["System.Collections.IEnumerator.MoveNext"]();){const i=s["System.Collections.Generic.IEnumerator`1.get_Current"]();Zo(r.contents,i[0],i[1])}}finally{ae(s)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return pe(this)}GetEnumerator(){return pe(Vo(this.hashMap.values()))}[Symbol.iterator](){return Vr(pe(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){Zo(this,t[0],t[1])}"System.Collections.Generic.ICollection`1.Clear"(){Ac(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const r=ai(this,t[0]);let s;switch(r!=null&&O(x(r)[1],t[1])?(s=0,x(r)):s=1,s){case 0:return!0;default:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Z1((s,i)=>{gt(t,n+s,i)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return Ec(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){const n=this,r=ai(n,t[0]);return r!=null?(O(x(r)[1],t[1])&&Xo(n,t[0]),!0):!1}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(t,n){Zo(this,t,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(t){return Mc(this,t)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(t){return Tc(this,t)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(t,n){Pc(this,t,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const t=this;return Fo(A(()=>ke(n=>n[0],t)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(t){return Xo(this,t)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(t,n){const s=ai(this,t);if(s!=null){const i=x(s);return n.contents=i[1],!0}else return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const t=this;return Fo(A(()=>ke(n=>n[1],t)))}get size(){return Ec(this)|0}clear(){Ac(this)}delete(t){return Xo(this,t)}entries(){return ke(n=>[n[0],n[1]],this)}get(t){return Tc(this,t)}has(t){return Mc(this,t)}keys(){return ke(n=>n[0],this)}set(t,n){const r=this;return Pc(r,t,n),r}values(){return ke(n=>n[1],this)}forEach(t,n){const r=this;xn(s=>{t(s[1],s[0],r)},r)}}function Qr(e,t){const n=e.comparer.GetHashCode(t)|0;let r,s=te();return r=[np(e.hashMap,n,new Ze(()=>s,i=>{s=i})),s],r[0]?[!0,n,r[1].findIndex(i=>e.comparer.Equals(t,i[0]))]:[!1,n,-1]}function ai(e,t){const n=Qr(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Kr(e.hashMap,n[1])[n[2]];default:return}}function Ac(e){e.hashMap.clear()}function Ec(e){let t=0,n=pe(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=t+r.length|0}}finally{ae(n)}return t|0}function Tc(e,t){const n=ai(e,t);if(n!=null)return x(n)[1];throw new Error("The item was not found in collection")}function Pc(e,t,n){const r=Qr(e,t);r[0]?r[2]>-1?Kr(e.hashMap,r[1])[r[2]]=[t,n]:Kr(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function Zo(e,t,n){const r=Qr(e,t);if(r[0]){if(r[2]>-1)throw new Error(oc("An item with the same key has already been added. Key: {0}",t));Kr(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function Mc(e,t){const n=Qr(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function Xo(e,t){const n=Qr(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Kr(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}function Hp(e){return new m(0,[e])}function Oc(e){return new m(1,[e])}class m extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function _t(e,t){return t.tag===0?Hp(e(t.fields[0])):Oc(t.fields[0])}function Dc(e,t){return t.tag===0?e(t.fields[0]):Oc(t.fields[0])}const Gp="#C$&$&$$$$$$%-%&%=$$$$$$=$$$$D$$'$$$$$$$$$$$$%$$%$$$$&$:$*;$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$&%$$$%$&%'$%$&&%$%$$$$$%$$%$$%$&$$$%%$$&'$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$%$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*%$%%$$'$$$$$$$$h$>5'/1(*$$$4“$$$$$$$$%$&$$'%$$&$$$%$4$,F$%&&$$$$$$$$$$$$$$$$$$$$$$$($$$$$%%VS$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$(%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$I%$)L$$%%$$P$$$%$%$$+>''%.)&%$%%.$$$%C$-8-'%$†$$*$$)%%$'%-&%$1$$$$A>%|.$1-D,%$&$%$%9'$,$&$(%2$<&%$$.X8$5.2$C$Y$$$$&+'$%$*-%%-$$2$%$+%%%9$*$$&'%$$&'%%%%$$+$'%$&%%-%%)$$$$$%%$$)'%%9$*$%$%$%%$$&%'%%&&$*'$$*-%&$$-%$$,$&$9$*$%$(%$$&($%$$%$%$2%%%-$$*$)$$%$+%%%9$*$%$(%$$$$$'%%%%$*%$'%$&%%-$$)-$$$)&&$'&%$$$%&%&&&/'%$%&&$&$%$)$1-&)$$($&$+$&$:$3&$&'$&$'*%$&(%%%-*$*$$$%$+$&$:$-$(%$$$$($$%$%%*%*$$%%%-$%0%%,$&$L%$&'$&$&$$$'&$*&%%-,$)$$%$5&;$,$$%*&$'&&$$$+)-%%$/S$%*'$)$+$-%H%$$$($;$$$-$%,$%($$$)%-%'C$&2$$&%)--$$$$$$$$$$%+$G'1$($%(.$G$+$)$%('%HN%'$)$%%%$-))%%'&$&%*&'0$%%)$$$-&$%I$$($%N$$&Ŭ$'%*$$$'%L$'%D$'%*$$$'%2$\\$'%f%&,7&3-)y%)%$ʏ$$4$=$$&n&&+*0$'&.5&%,5%/0$&$%/W%$*+$%.&$&$$$%-)-))$'&$$-)F$X*(%E$$(i-B$&'%&'%$)&'$&%-A%(.O'=)-$&E:%%$%%X$$$*$$$$%+)-%$-)-)*$)%1$%b'$R$$($$($%*'-*-,,&%$A$'%%$&%-O$$%&$$&%+'G++%%&(-&&-A)%,*N%&++&$0$*'$)$%$%$(Ob0$EH]$($$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,+)%)%++++)%)%+$$$$$$$$++1%++++++($%'$$$&&$%'$&'%%'$&+(&%&$%'$%$.()%$$$%$$$+$$($,$$'%&$$$.$$$-$($-$$%)&$$$-&$$$0&C30'$&/2%$'$%$&%&$$$%$()$$$$$$'$$'$'$%%%($'$$%$$3F$$'$%'((%'$%$%$*$B%%$$$Bį+$$$$7%*$$t$A<K)h<.8_q9Ú$,$Y+’$ě$$$$$$$$$$$$$$AO($$B$$$$$$$$$$3ģ¦$$$$$$$$$$$$$$$$$$$$$$b$$$$C$$ĥS8%)J%C$ŒR$R$$$&%$$$$$$'$$%$)%&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%)$$$$&$$('$%I$$($%[*$$1$:,*$*$*$*$*$*$*$*$C%$$$$&$$$$$,$%$$$$%$$$$$$$$$$($-%'$$$0%$P=$|/ù=/'$&$$$$$$$$$$$$$$%$$$$$$$$$$%$,'%$(%&$$$%$y%%%%$$}$&$(N$$%'-CG/3B$-A+$2C-J2ţ᧣c删&8$Қ&Z,K)%į$&3-%7$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$&$-$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%%i-%)+:,%$$$$$$$$$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$+$$$$%$$$$$$$$$$%$$$$$$$$&$$$$$$$$$$$$$$$$$$$$($($$$$$$$$$$$%$$'$$$M$$$%$*$&$'$:%%$'$&)%$$)W'+%U3%+%-)5)&$$%$-?+%:.%.$@&&$R$%'%%&0$$-'%($$,-($L)%%%%,&$+$$%-%'3$)&$$$$U$$&%%(%$$$;%$%.$%%%$%$$-)%)%),*$*$N$',$%'sF%$%$%$$$%-)⯇/:'T'ࠣᤣƑ%I*/(($$-$0$($$$%$%$34Ǝ$$3c%YK/$$%3*$$$)3$%%$$$$$$$$$$$$$$$$%$$'&&$'$$$$$$$&$$&$$$%'($ª%$$&$&$$$$$$%-%&%=$$$$$$=$$$$$$$$$%-$P%B&)%)%)%&&%$$$%$$'%-&%%/$=$6$%$2%1Ež(&'P&,X'4%&$0&$RP$¥@&T2$>'C',7$+$(I((A$$G'+$(MKKq%-)G'G'K+W.$³Ś,9-+»)%$$O$%&$%:$$+:%*B+,S6$%((9)&$=($c['%%3%Q$&$%(''$&$@%&'$,*,*@%$@&C+$?%'(*,Y&*9%+6(+5*'/*slZV0V*)G'+-ʼnB$M$%$%%q@-$+9.'(y8*7:,$$$X2*'7-2&$P&'%%%$'.$%<*-)&G($+$-'$%$+F$%$,%$S&,%'''$$$-$$$&$7.5$<&&%$$%)$d*$$$'$2$-$)R$&+(-)%%$+%%%9$*$%$($%$%$'%%%&%$)$((%%*&(®X&+%&$$'(-%$$$&AS&)$$'%$%%$$+-ÉR&'%'%$%:'%ES&+%$$%&$.-)06N$$$%)$$$*-Y>%&%'$('-%&$ãO&,$%$‡CC-,/+%$%+$%$;)$%%%$$$$$$$&,-i+%J&'%%'$$$$$>$-K)$$'+$+$)%&Q0$%&$(@\\Ī,$H$*$)$$$(--6&%A%9$$*$%$%l*$%$I)&$$%$*$$+-))$%$C($%$%$$$$*-ř6%%%Ú$28+'40$ν‰’$(.ç૟ђ$,࿪ɪ⇜ɜ*B$-'%ƒA%($-S*(''$$--$*$8(6˓CC:'ˆn'$$Z*'0c%$$$.%1᠛+ӹM,⌚łT&4'+ƯधŽ(0&,*-%$%$'፿ę-J%_%&&)++%*A'^:e&$½7/z,<ª===*$5==$$%%$%%%'$+'$$$*$.==%$'%+$*$=%$'$($$&*$============?%<$<$)<$<$)<$<$)<$<$)<$<$)$$%UȣZ'U+$1$%(2($2ճ*$4%*$%$(øP&**%-'$$ƓO'-($ԣè%,*LEE*$'-'%̴^$&$'oP$2å'$>$%$$%$$-$'$$$$)$'$$$$$$&$%$$%$$$$$$$$$$%$$%'$*$'$'$$$-$4(&$($4W%ıO'‡/2%2$2$H-0Ä[@0O',*%1)½Ğ(˻+0&0&—/|*/7/'[+-)K+A%%qœ$u$ª/1%(&&(*,<**,&0*L¶$ZH-Щ꜁Eၘ.ā%ᚥ1ᵔూɁ؅፮򮳙$Aƒ£ē︳𐀡%𐀡",qp="1.;=;78;<;6;+;<;#7;8>5>$7<8<1.;=?;>?'9<2?>?<->$;>-':-;#<#$<$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'#$'#%$#%$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'$&>&>&>&>&>(#$#$&>#$@&$;#@>#;#@#@#$#@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$<#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?(*#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@&;$;6@?=@(6(;(;(;(@'@';@2<;=;?(;2@;'&'(+;'(';'(2?(&(?('+'?';@2'('(@'('@+'(&?;&@(='(&(&(&(@;@'(@;@'@'@'@(2()'()(')()()'('(;+;&'()@'@'@'@'@'@'@(')(@)@)('@)@'@'(@+'=-?=';(@()@'@'@'@'@'@'@'@(@)(@(@(@(@'@'@+('(;@()@'@'@'@'@'@'@(')(@()@)(@'@'(@+;=@'(@()@'@'@'@'@'@'@(')()(@)@)(@()@'@'(@+?'-@('@'@'@'@'@'@'@'@'@'@)()@)@)(@'@)@+-?=?@()('@'@'@'@'()@(@(@(@'@'(@+@;-?'();'@'@'@'@'@(')()@()@)(@)@'@'(@+@'@()'@'@'(')(@)@)('?@')-'(@+-?'@()@'@'@'@'@'@(@)(@(@)@+@);@'('(@='&(;+;@'@'@'@'@'@'('('@'@&@(@+@'@'?;?;?(?+-?(?(?(7878)'@'@()(;('(@(@?(?@?;?;@')()()()('+;')('(')')'('()()(')+)(?#@#@#@$;&$'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@(;-@'?@#@$@6'?;'.'78@';,'@'@'(@'(;@'(@'@'@(@'()()()(;&;='(@+@-@;6;(2@+@'&'@'('('@'@'@()()@)()(@?@;+'@'@'@'@+-@?'()(@;')()(@()()()(@(+@+@;&;@(*(@()'()()()()'@+;?(?@()')()()('+'()()()()@;')()(@;+@'+'&;$@#@#;@(;()('('(')('@$&$&$&(@(#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@$#$#$@#@$@#@#@#@#$#$@$%$%$%$@$#%>$>$@$#%>$@$#@>$#>@$@$#%>@.26;9:79:79;/02.;9:;5;<78;<;5;.2@2-&@-<78&-<78@&@=@(*(*(@?#?#?$#$#$?#?<#?#?#?#?#?$#$'$?$#<#$?<?$?-,#$,-?@<?<?<?<?<?<?<?<?<?<?7878?<?78?<?<?<?@?@-?-?<?<?<?<?78787878787878-?<78<7878787878<?<7878787878787878787878<7878<78<?<?<?@?@?#@$@#$#$#$#$#$#$#$#$&#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?#$#$(#$@;-;$@$@$@'@&;@('@'@'@'@'@'@'@'@'@(;9:9:;9:;9:;6;6;9:;9:78787878;&;6;6;7;?;@?@?@?@?@.;?&',7878787878?78787878678?,()6&?,&';?@'@(>&'6';&'@'@'@?-?'?@'?@-?-?-?-?-?'?'@'&'@?@'&;'&;'+'@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'(*;(;&#$#$#$#$#$#$#$#$#$#$#$#$#$#$&(',(;@>&>#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$&$#$#$#$#$#$#$#$&>#$#$'#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#$#$#$@#$'&$'('('(')()?(@-?=?@';@)')(@;+@(';';'(+'(;'()@;'@()'()()();@&+@;'(&'+'@'()()(@'('()@+@;'&'?')()'('('('('('@'&;')();'&)(@'@'@'@'@'@$>&$&>@$')()();)(@+@'@'@'@34'@'@$@$@'('<'@'@'@'@'@'>@'87@'@'@'=?@(;78;@(;657878787878787878;78;5;@;6787878;<6<@;=;@'@'@2@;=;78;<;6;+;<;#7;8>5>$7<8<78;78;'&'&'@'@'@'@'@=<>?=@?<?@2?@'@'@'@'@'@'@'@;@-@?,-?-?@?@?@?(@'@'@(-@'-@',',@'(@'@;'@';,@#$'@+@#@$@'@'@;@'@'@'@'@'@'@'@'@'@;-'?-'@-@'@'@-'-@;'@;@'@-'-@-'(@(@('@'@'@(@(-@;@'-;'-@'?'(@-;@'@;'@-'@-'@;@-@'@#@$@-'(@+@-@'@(6@'@'-'@'(-;@'-@'@)()'(;@-+@()')()(;2;@2@'@+@('()(@+;')'@'(;'@()')()';(;)(+';';@-@'@')()()(;(@'@'@'@'@';@'()(@+@()@'@'@'@'@'@'@(')()@)@)@'@)@')@(@(@')()()(';+;@;('@')()()()(';'@+@')(@)()(;'(@')()()(;'@+@;@'()()()('@+@'@()()(@+-;?@')()(;@#$+-@'@'@'@'@')@)@()(')')(;@+@'@')(@()(';')@'('()'(;(@'()('()(;';@'@'@')(@()(';@+-@;'@(@)()()(@'@'@'(@(@(@('(@+@'@'@')@(@)()('@+@'();@'@-?=?@;'@,@;@'@'@2@'@'@'@+@;@'@(;@'(;?&;?@+@-@'@'@#$-;@'@(')@(&@&;&(@)@'@'@'@'@'@'@'@'@'@'@'@?(;2@?@?@?)(?)2(?(?(?@?(?@-@?@-@#$#$@$#$#@#@#@#@#@#$@$@$@$#$#@#@#@#@$#@#@#@#@#@$#$#$#$#$#$#$@#<$<$#<$<$#<$<$#<$<$#<$<$#$@+?(?(?(?(?;@(@(@(@(@(@(@(@'@(&@+@'?@'(+@=@'@-(@#$(&@+@;@-?-=-@-?-@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@<@?@?@?@?@?@?@-?@?@?@?@?@?@?>?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@+@'@'@'@'@'@'@'@2@2@(@4@4@";function Yp(){const t=[...Gp].map(i=>(i.codePointAt(0)??0)-35),n=[...qp].map(i=>(i.codePointAt(0)??0)-35),r=new Uint32Array(t),s=new Uint8Array(n);for(let i=1;i<r.length;++i)r[i]+=r[i-1];return i=>{let o=r.length,a=0;for(;o-a>1;){const l=Math.floor((o+a)/2),u=r[l];if(i<u)o=l;else if(i===u){o=a=l;break}else u<i&&(a=l)}return s[a]}}const Jp=256,Zp=Yp();function Xp(e,t){if(t<e.length)return e.charCodeAt(t);throw new Error("Index out of range.")}const Ko=e=>Qp(e,0);function Kp(e,t){const n=Xp(e,t);return Zp(n)}function Qp(e,t){return(1<<Kp(e,t)&Jp)!==0}function e$(e,t){const n=i1(Ku(e),t);if(n!=null)return P($e(A(()=>ke(r=>r||"",n))))}function t$(e){let t;const n=e$(".*?@(.*)",e);switch(n!=null?M(n)?t=1:M(P(n))?t=0:t=1:t=1,t){case 0:return e;default:return}}function Nc(e,t){return ac(t)?new m(1,[We(Fe("%s cannot be null or empty"))(e)]):new m(0,[t])}function n$(e){const t=t$(e);if(t!=null){const n=t;return new m(0,[n])}else return new m(1,["Email is not in the correct format"])}const En=e=>({tag:"ok",value:e}),es=e=>({tag:"error",error:e});class Ue{constructor(t){this.uri=t}static isAbsoluteUri(t){try{return new URL(t),!0}catch{return!1}}static tryCreateWithKind(t,n){switch(n){case 1:return Ue.isAbsoluteUri(t)?En(new Ue({original:t,value:new URL(t),kind:n})):es("Invalid URI: The format of the URI could not be determined.");case 2:return Ue.isAbsoluteUri(t)?es("URI is not a relative path."):En(new Ue({original:t,value:t,kind:n}));case 0:return Ue.isAbsoluteUri(t)?En(new Ue({original:t,value:new URL(t),kind:1})):En(new Ue({original:t,value:t,kind:2}));default:return n}}static tryCreateWithBase(t,n){return t.uri.kind!==1?es("Base URI should have Absolute kind"):typeof n=="string"?En(new Ue({original:new URL(n,t.uri.value).toString(),value:new URL(n,t.uri.value),kind:1})):n.uri.kind===2?En(new Ue({original:new URL(n.uri.value,t.uri.value).toString(),value:new URL(n.uri.value,t.uri.value),kind:1})):En(t)}static tryCreateImpl(t,n=1){return typeof t=="string"?typeof n!="number"?es("Kind must be specified when the baseUri is a string."):Ue.tryCreateWithKind(t,n):typeof n=="number"?es("Kind should not be specified when the baseUri is an absolute Uri."):Ue.tryCreateWithBase(t,n)}static create(t,n=1){const r=Ue.tryCreateImpl(t,n);switch(r.tag){case"ok":return r.value;case"error":throw new Error(r.error);default:return r}}static tryCreate(t,n=1,r){const s=Ue.tryCreateImpl(t,n);switch(s.tag){case"ok":return r.contents=s.value,!0;case"error":return!1;default:return s}}toString(){switch(this.uri.kind){case 1:return decodeURIComponent(this.asUrl().toString());case 2:return this.uri.value;default:return this.uri}}asUrl(){switch(this.uri.kind){case 1:return this.uri.value;case 2:throw new Error("This operation is not supported for a relative URI.");default:return this.uri}}get isAbsoluteUri(){return this.uri.kind===1}get absoluteUri(){return this.asUrl().href}get scheme(){const t=this.asUrl().protocol;return t.slice(0,t.length-1)}get host(){const t=this.asUrl().host;return t.includes(":")?t.split(":")[0]:t}get absolutePath(){return this.asUrl().pathname}get query(){return this.asUrl().search}get isDefaultPort(){return this.port===80}get port(){const t=this.asUrl().port;return t===""?80:parseInt(t)}get pathAndQuery(){const t=this.asUrl();return t.pathname+t.search}get fragment(){return this.asUrl().hash}get originalString(){return this.uri.original}}class r$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ProfileId"]}}function Rc(e){return new r$(e)}function Lc(e){return e.fields[0]}class s$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["InviteCode"]}}function i$(e){return!Gr(e)}function Bc(e){return i$(e)?new m(0,[new s$(e)]):new m(1,["Invalid invite code format."])}class Vc extends B{constructor(t,n,r){super(),this.CompanyName=t,this.Logo=n,this.Support=r}}class o$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Logo"]}}class a$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CompanyName"]}}class Fc extends B{constructor(t,n){super(),this.Email=t,this.Phone=n}}class l$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Email"]}}class u$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Phone"]}}const Wc=e=>_t(t=>new l$(t),Dc(n$,Nc("Email",e)));function c$(e){return e.fields[0]}const jc=e=>_t(t=>new u$(t),Nc("Phone",e));function f$(e){return e.fields[0]}function Uc(e){return Gr(e)?new m(1,["Invalid company name."]):new m(0,[new a$(e)])}function ts(e){return e.fields[0]}function d$(e){try{const t=Ue.create(e);return t.isAbsoluteUri?[!0,t]:[!1,void 0]}catch{return[!1,void 0]}}function zc(e){return d$(e)[0]?new m(0,[new o$(e)]):new m(1,["Invalid logo url."])}function h$(e){return e.fields[0]}class m$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SecondFactorCode"]}}function p$(e){return new m$(e)}class $$ extends B{constructor(t,n,r,s){super(),this.Code=t,this.DateIssued=n,this.NumberOfAttempts=r|0,this.DateOfLastAttempt=s}}class g$ extends B{constructor(t,n,r,s){super(),this.Code=t,this.DateIssued=n,this.SecondFactor=r,this.Branding=s}}class Mt extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ProcessStepId"]}}class Ot extends B{constructor(t,n,r){super(),this.Id=t,this.DisplayName=n,this.ComponentTagName=r}}const Ge=new Ot(new Mt("personal-details"),"Personal Details","apollo-personal-details-app"),ft=new Ot(new Mt("emergency-contacts"),"Emergency Contacts","apollo-emergency-contacts-app"),dt=new Ot(new Mt("bank"),"Bank","bank-component"),ht=new Ot(new Mt("tax"),"Tax","tax-component"),De=new Ot(new Mt("super"),"Super","super-selection-app"),Tn=new Ot(new Mt("app-workplace-linking"),"App Workplace Linking","workplace-link"),w$=new Mt("benefits-onboarding"),li=new Ot(w$,"Benefits","benefits-onboarding"),zt=new Ot(new Mt("workplace-policy"),"Workplace-policy","apollo-workplace-policies-app"),Pn=new Ot(new Mt("Benefits-Discrete"),"Benefits","benefits-onboarding");function Hc(e){return new Mt(e)}function ui(e){return e.fields[0]}class Ne extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ProcessConfigId"]}}class Re extends B{constructor(t,n,r){super(),this.Id=t,this.Name=n,this.Steps=r}}const Gc=new Re(new Ne(Oe("00000000-0000-0000-0000-000000000000")),"onboarding-default",y([dt,ht,De])),qc=new Re(new Ne(Oe("00000000-0000-0000-0000-000000000001")),"PEBTS",y([Ge,ft,dt,ht,De])),Yc=new Re(new Ne(Oe("00000000-0000-0000-0000-000000000002")),"PS",y([Ge,De])),Jc=new Re(new Ne(Oe("00000000-0000-0000-0000-000000000003")),"BS",y([dt,De])),Zc=new Re(new Ne(Oe("00000000-0000-0000-0000-000000000004")),"Super",E(De)),Qo=new Re(new Ne(Oe("00000000-0000-0000-0001-000000000000")),"App Workplace Linking",E(Tn)),Xc=new Re(new Ne(Oe("00000000-0000-0000-0000-000000000005")),"Tax",E(ht)),Kc=new Re(new Ne(Oe("00000000-0000-0000-0000-000000000006")),"PBTS",y([Ge,dt,ht,De])),Qc=new Re(new Ne(Oe("00000000-0000-0000-0000-000000000007")),"PEBTSPo",y([Ge,ft,dt,ht,De,zt])),ef=new Re(new Ne(Oe("00000000-0000-0000-0000-000000000008")),"PEBSPo",y([Ge,ft,dt,De,zt])),tf=new Re(new Ne(Oe("00000000-0000-0000-0000-000000000009")),"PESPo",y([Ge,ft,De,zt])),nf=new Re(new Ne(Oe("00000000-0000-0000-0000-000000000010")),"PETSPo",y([Ge,ft,ht,De,zt])),ea=new Re(new Ne(Oe("00000000-0000-0000-0002-000000000000")),"Bo",E(Pn)),rf=new Re(new Ne(Oe("00000000-0000-0000-0000-000000000011")),"PETS",y([Ge,ft,ht,De])),sf=new Re(new Ne(Oe("00000000-0000-0000-0000-000000000012")),"PEBS",y([Ge,ft,dt,De])),of=new Re(new Ne(Oe("00000000-0000-0000-0000-000000000013")),"PES",y([Ge,ft,De])),af=new Re(new Ne(Oe("00000000-0000-0000-0000-000000000014")),"PBTSPo",y([Ge,dt,ht,De,zt])),y$=new zp([[Gc.Id,Gc],[qc.Id,qc],[Yc.Id,Yc],[Jc.Id,Jc],[Zc.Id,Zc],[Qo.Id,Qo],[Xc.Id,Xc],[Kc.Id,Kc],[Qc.Id,Qc],[ef.Id,ef],[tf.Id,tf],[nf.Id,nf],[ea.Id,ea],[rf.Id,rf],[sf.Id,sf],[of.Id,of],[af.Id,af]],{Equals:O,GetHashCode:vo});function _$(e){return O(e,ea)?!1:!O(e,Qo)}function v$(e){const t=new Ne(e);return kn(t,y$.keys(),{Equals:O,GetHashCode:vo})?new m(0,[t]):new m(1,[We(tc("Invalid Type %A%P()",[e]))])}function lf(e){return e.fields[0]}class uf extends B{constructor(t,n){super(),this.ActivatedDates=t,this.CompletedSteps=n}}class ns extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Inactive","Active","Complete","Abandoned"]}}function ta(e){return e.tag===2}class b$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ProcessInstanceId"]}}function cf(e){return new b$(e)}function hr(e){return e.fields[0]}class C$ extends B{constructor(t,n){super(),this.Name=t,this.Value=n}}class S$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["TagName"]}}class k$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["TagValue"]}}function x$(e){return Gr(e)?new m(1,["Tag name is empty"]):e.length<100?new m(0,[new S$(e)]):new m(1,["Tag name is too long"])}function I$(e){return Gr(e)?new m(1,["Tag value is empty"]):e.length<100?new m(0,[new k$(e)]):new m(1,["Tag value is too long"])}function A$(e,t){const n=x$(e);if(n.tag===1)return new m(1,[n.fields[0]]);{const r=I$(t);return r.tag===1?new m(1,[r.fields[0]]):new m(0,[new C$(n.fields[0],r.fields[0])])}}class E$ extends B{constructor(t,n,r,s,i,o,a,l,u,f,c){super(),this.Id=t,this.Configuration=n,this.DateCreated=r,this.Status=s,this.Invite=i,this.Tags=o,this.Creator=a,this.StepsConfiguration=l,this.JourneyType=u,this.IsBenefitsStepEnabled=f,this.PaySetupComplete=c}}class T$ extends B{constructor(t){super(),this.BenefitsOnboarding=t}}class mr extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","InfoRequest","AppInvite","BenefitsExisting","BenefitsOnboarding"]}}class ff extends B{constructor(t){super(),this.Category=t}}class df extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WhenEnabled","Always"]}}function P$(e,t){const n=Zr(i=>O(i.Id,e),t.Configuration.Steps),r=We(tc("Invalid ProcessStep Id %A%P()",[e])),s=n;return s==null?new m(1,[r]):new m(0,[s])}function M$(e){const t=e.Status;switch(t.tag){case 2:return e.Configuration.Steps;case 3:case 0:return ce();default:{const n=Qe(r=>r[0],t.fields[0].CompletedSteps);return Ro(r=>N1(r.Id,n,{Equals:O,GetHashCode:vo}),e.Configuration.Steps)}}}function hf(){return Uu(document.getElementById("external-loading-page-container"))}function mf(){return hf()!=null}function O$(){let e,t;const n=hf();xn((e=(t=document.body,r=>t.removeChild(r)),r=>{e(r)}),Hs(n))}var Mn=[],D$=function(){return Mn.some(function(e){return e.activeTargets.length>0})},N$=function(){return Mn.some(function(e){return e.skippedTargets.length>0})},pf="ResizeObserver loop completed with undelivered notifications.",R$=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:pf}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=pf),window.dispatchEvent(e)},rs;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(rs||(rs={}));var On=function(e){return Object.freeze(e)},L$=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,On(this)}return e}(),$f=function(){function e(t,n,r,s){return this.x=t,this.y=n,this.width=r,this.height=s,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,On(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,s=t.top,i=t.right,o=t.bottom,a=t.left,l=t.width,u=t.height;return{x:n,y:r,top:s,right:i,bottom:o,left:a,width:l,height:u}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),na=function(e){return e instanceof SVGElement&&"getBBox"in e},gf=function(e){if(na(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var s=e,i=s.offsetWidth,o=s.offsetHeight;return!(i||o||e.getClientRects().length)},wf=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},B$=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},ss=typeof window<"u"?window:{},ci=new WeakMap,yf=/auto|scroll/,V$=/^tb|vertical/,F$=/msie|trident/i.test(ss.navigator&&ss.navigator.userAgent),Dt=function(e){return parseFloat(e||"0")},pr=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new L$((n?t:e)||0,(n?e:t)||0)},_f=On({devicePixelContentBoxSize:pr(),borderBoxSize:pr(),contentBoxSize:pr(),contentRect:new $f(0,0,0,0)}),vf=function(e,t){if(t===void 0&&(t=!1),ci.has(e)&&!t)return ci.get(e);if(gf(e))return ci.set(e,_f),_f;var n=getComputedStyle(e),r=na(e)&&e.ownerSVGElement&&e.getBBox(),s=!F$&&n.boxSizing==="border-box",i=V$.test(n.writingMode||""),o=!r&&yf.test(n.overflowY||""),a=!r&&yf.test(n.overflowX||""),l=r?0:Dt(n.paddingTop),u=r?0:Dt(n.paddingRight),f=r?0:Dt(n.paddingBottom),c=r?0:Dt(n.paddingLeft),p=r?0:Dt(n.borderTopWidth),h=r?0:Dt(n.borderRightWidth),$=r?0:Dt(n.borderBottomWidth),g=r?0:Dt(n.borderLeftWidth),w=c+u,v=l+f,S=g+h,N=p+$,Q=a?e.offsetHeight-N-e.clientHeight:0,ee=o?e.offsetWidth-S-e.clientWidth:0,xe=s?w+S:0,at=s?v+N:0,I=r?r.width:Dt(n.width)-xe-ee,j=r?r.height:Dt(n.height)-at-Q,Y=I+w+ee+S,Ie=j+v+Q+N,me=On({devicePixelContentBoxSize:pr(Math.round(I*devicePixelRatio),Math.round(j*devicePixelRatio),i),borderBoxSize:pr(Y,Ie,i),contentBoxSize:pr(I,j,i),contentRect:new $f(c,l,I,j)});return ci.set(e,me),me},bf=function(e,t,n){var r=vf(e,n),s=r.borderBoxSize,i=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case rs.DEVICE_PIXEL_CONTENT_BOX:return o;case rs.BORDER_BOX:return s;default:return i}},W$=function(){function e(t){var n=vf(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=On([n.borderBoxSize]),this.contentBoxSize=On([n.contentBoxSize]),this.devicePixelContentBoxSize=On([n.devicePixelContentBoxSize])}return e}(),Cf=function(e){if(gf(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},j$=function(){var e=1/0,t=[];Mn.forEach(function(o){if(o.activeTargets.length!==0){var a=[];o.activeTargets.forEach(function(u){var f=new W$(u.target),c=Cf(u.target);a.push(f),u.lastReportedSize=bf(u.target,u.observedBox),c<e&&(e=c)}),t.push(function(){o.callback.call(o.observer,a,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var s=r[n];s()}return e},Sf=function(e){Mn.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(s){s.isActive()&&(Cf(s.target)>e?n.activeTargets.push(s):n.skippedTargets.push(s))})})},U$=function(){var e=0;for(Sf(e);D$();)e=j$(),Sf(e);return N$()&&R$(),e>0},ra,kf=[],z$=function(){return kf.splice(0).forEach(function(e){return e()})},H$=function(e){if(!ra){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return z$()}).observe(n,r),ra=function(){n.textContent="".concat(t?t--:t++)}}kf.push(e),ra()},G$=function(e){H$(function(){requestAnimationFrame(e)})},fi=0,q$=function(){return!!fi},Y$=250,J$={attributes:!0,characterData:!0,childList:!0,subtree:!0},xf=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],If=function(e){return e===void 0&&(e=0),Date.now()+e},sa=!1,Z$=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=Y$),!sa){sa=!0;var r=If(t);G$(function(){var s=!1;try{s=U$()}finally{if(sa=!1,t=r-If(),!q$())return;s?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,J$)};document.body?n():ss.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),xf.forEach(function(n){return ss.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),xf.forEach(function(n){return ss.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),ia=new Z$,Af=function(e){!fi&&e>0&&ia.start(),fi+=e,!fi&&ia.stop()},X$=function(e){return!na(e)&&!B$(e)&&getComputedStyle(e).display==="inline"},K$=function(){function e(t,n){this.target=t,this.observedBox=n||rs.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=bf(this.target,this.observedBox,!0);return X$(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Q$=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),di=new WeakMap,Ef=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},hi=function(){function e(){}return e.connect=function(t,n){var r=new Q$(t,n);di.set(t,r)},e.observe=function(t,n,r){var s=di.get(t),i=s.observationTargets.length===0;Ef(s.observationTargets,n)<0&&(i&&Mn.push(s),s.observationTargets.push(new K$(n,r&&r.box)),Af(1),ia.schedule())},e.unobserve=function(t,n){var r=di.get(t),s=Ef(r.observationTargets,n),i=r.observationTargets.length===1;s>=0&&(i&&Mn.splice(Mn.indexOf(r),1),r.observationTargets.splice(s,1),Af(-1))},e.disconnect=function(t){var n=this,r=di.get(t);r.observationTargets.slice().forEach(function(s){return n.unobserve(t,s.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),Tf=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");hi.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!wf(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");hi.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!wf(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");hi.unobserve(this,t)},e.prototype.disconnect=function(){hi.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class eg{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,s=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(s)}}}Dispose(){}}class is extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,is.prototype)}}class oa{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>oa.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Nt(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new is);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Bs(n))}});else try{e(t)}catch(n){t.onError(Bs(n))}}}function tg(e,t){return Nt(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(s){n.onError(Bs(s))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function ng(e){return Nt(t=>t.onSuccess(e))}class rg{Bind(t,n){return tg(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Nt(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let s=r.next();return this.While(()=>!s.done,this.Delay(()=>{const i=n(s.value);return s=r.next(),i}))}Return(t){return ng(t)}ReturnFrom(t){return t}TryFinally(t,n){return Nt(r=>{t({onSuccess:s=>{n(),r.onSuccess(s)},onError:s=>{n(),r.onError(s)},onCancel:s=>{n(),r.onCancel(s)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return Nt(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:s=>{try{n(s)(r)}catch(i){r.onError(Bs(i))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return Nt(t=>t.onSuccess(void 0))}}const T=new rg;function sg(e){return new Pf(0,[e])}function ig(e){return new Pf(1,[e])}class Pf extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}class aa extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of3","Choice2Of3","Choice3Of3"]}}function og(e){return sg(e)}function ag(e){return ig(e)}function la(e){}function lg(e){return Nt(t=>e()(t))}function ug(e){return Df(t=>e.then(t[0]).catch(n=>(n instanceof is?t[2]:t[1])(n)))}const Mf=new eg;function Of(e){return Nt(t=>{e({onSuccess:n=>t.onSuccess(og(n)),onError:n=>t.onSuccess(ag(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Df(e){return Nt(t=>e([t.onSuccess,t.onError,t.onCancel]))}function cg(e){return lg(()=>ug(Promise.all(Array.from(e,t=>dg(t)))))}function mi(e){return Nt(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new is)})})}function fg(e,t){return Rf(e,t)}function Nf(e,t){return fg(e,t)}function Rf(e,t,n,r,s){typeof t!="function"&&(s=t,t=void 0);const i=new oa;e({onSuccess:t||la,onError:n||la,onCancel:r||la,cancelToken:s||Mf,trampoline:i})}function dg(e,t){return new Promise((n,r)=>Rf(e,n,r,r,Mf))}class Lf extends B{constructor(t,n,r){super(),this.instanceId=t|0,this.name=n,this.type=r}}function hg(e){return new Lf(hr(e.Id),e.Configuration.Name,lf(e.Configuration.Id))}function mg(e,t){const n={};return n.type="contentResized",n.sender="flare",n.height=e,n.width=t,n}function pg(e,t,n,r){const s={};return s.type="workflowSubmitSuccess",s.sender="flare",s.workflow=new Lf(hr(e),t,lf(n)),s.profileId=Lc(r),s}function $g(e,t,n,r){const s={};return s.type="stepSubmitSuccess",s.sender="flare",s.workflow=hg(n),s.profileId=Lc(r),s.step={name:t,type:ui(e)},s}function gg(){const e={};return e.type="appReady",e.sender="flare",e}function pi(e){mf()||window.parent.postMessage(e,"*")}function wg(e,t){Nf(T.Delay(()=>T.Bind(mi(e),()=>(t(),T.Zero()))))}function ua(){pi(mg(document.body.offsetHeight,-1))}function yg(){(window.ResizeObserver?new window.ResizeObserver(()=>{ua()}):new Tf(()=>{ua()})).observe(document.body)}function _g(e,t,n){const r=P$(e,t);r.tag===1||pi($g(e,r.fields[0].DisplayName,t,n))}function ca(e,t,n,r){pi(pg(e,t,n,r))}function Ht(e){mf()&&wg(e,()=>{O$(),pi(gg()),ua()})}/*!
4
4
  * Font Awesome Free 6.1.2 by @fontawesome - https://fontawesome.com
5
5
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
6
6
  * Copyright 2022 Fonticons, Inc.
7
- */function Hf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hf(Object(n),!0).forEach(function(r){Eg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vi(e){"@babel/helpers - typeof";return vi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vi(e)}function xg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ig(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ag(e,t,n){return t&&Ig(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Eg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $a(e,t){return Pg(e)||Og(e,t)||Gf(e,t)||Ng()}function bi(e){return Tg(e)||Mg(e)||Gf(e)||Dg()}function Tg(e){if(Array.isArray(e))return ga(e)}function Pg(e){if(Array.isArray(e))return e}function Mg(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Og(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],s=!0,i=!1,o,a;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));s=!0);}catch(l){i=!0,a=l}finally{try{!s&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function Gf(e,t){if(e){if(typeof e=="string")return ga(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ga(e,t)}}function ga(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Dg(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
8
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ng(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
9
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var qf=function(){},wa={},Yf={},Jf=null,Zf={mark:qf,measure:qf};try{typeof window<"u"&&(wa=window),typeof document<"u"&&(Yf=document),typeof MutationObserver<"u"&&(Jf=MutationObserver),typeof performance<"u"&&(Zf=performance)}catch{}var Rg=wa.navigator||{},Xf=Rg.userAgent,Kf=Xf===void 0?"":Xf,mn=wa,_e=Yf,Qf=Jf,Ci=Zf;mn.document;var Jt=!!_e.documentElement&&!!_e.head&&typeof _e.addEventListener=="function"&&typeof _e.createElement=="function",ed=~Kf.indexOf("MSIE")||~Kf.indexOf("Trident/"),Zt="___FONT_AWESOME___",ya=16,td="fa",nd="svg-inline--fa",Bn="data-fa-i2svg",_a="data-fa-pseudo-element",Lg="data-fa-pseudo-element-pending",va="data-prefix",ba="data-icon",rd="fontawesome-i2svg",Bg="async",Vg=["HTML","HEAD","STYLE","SCRIPT"],sd=function(){try{return!0}catch{return!1}}(),Ca={fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit",fa:"solid"},Si={solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"},id={fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},Fg={"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},Wg=/fa[srltdbk]?[\-\ ]/,od="fa-layers-text",jg=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Kit)?.*/i,Ug={900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},ad=[1,2,3,4,5,6,7,8,9,10],zg=ad.concat([11,12,13,14,15,16,17,18,19,20]),Hg=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Vn={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Gg=[].concat(bi(Object.keys(Si)),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Vn.GROUP,Vn.SWAP_OPACITY,Vn.PRIMARY,Vn.SECONDARY]).concat(ad.map(function(e){return"".concat(e,"x")})).concat(zg.map(function(e){return"w-".concat(e)})),ld=mn.FontAwesomeConfig||{};function qg(e){var t=_e.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Yg(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(_e&&typeof _e.querySelector=="function"){var Jg=[["data-family-prefix","familyPrefix"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];Jg.forEach(function(e){var t=$a(e,2),n=t[0],r=t[1],s=Yg(qg(n));s!=null&&(ld[r]=s)})}var Zg={familyPrefix:td,styleDefault:"solid",replacementClass:nd,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},cs=D(D({},Zg),ld);cs.autoReplaceSvg||(cs.observeMutations=!1);var F={};Object.keys(cs).forEach(function(e){Object.defineProperty(F,e,{enumerable:!0,set:function(n){cs[e]=n,ki.forEach(function(r){return r(F)})},get:function(){return cs[e]}})}),mn.FontAwesomeConfig=F;var ki=[];function Xg(e){return ki.push(e),function(){ki.splice(ki.indexOf(e),1)}}var pn=ya,Vt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Kg(e){if(!(!e||!Jt)){var t=_e.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=_e.head.childNodes,r=null,s=n.length-1;s>-1;s--){var i=n[s],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=i)}return _e.head.insertBefore(t,r),e}}var Qg="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function fs(){for(var e=12,t="";e-- >0;)t+=Qg[Math.random()*62|0];return t}function yr(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Sa(e){return e.classList?yr(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function ud(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ew(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(ud(e[n]),'" ')},"").trim()}function xi(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function ka(e){return e.size!==Vt.size||e.x!==Vt.x||e.y!==Vt.y||e.rotate!==Vt.rotate||e.flipX||e.flipY}function tw(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,s={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(i," ").concat(o," ").concat(a)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:s,inner:l,path:u}}function nw(e){var t=e.transform,n=e.width,r=n===void 0?ya:n,s=e.height,i=s===void 0?ya:s,o=e.startCentered,a=o===void 0?!1:o,l="";return a&&ed?l+="translate(".concat(t.x/pn-r/2,"em, ").concat(t.y/pn-i/2,"em) "):a?l+="translate(calc(-50% + ".concat(t.x/pn,"em), calc(-50% + ").concat(t.y/pn,"em)) "):l+="translate(".concat(t.x/pn,"em, ").concat(t.y/pn,"em) "),l+="scale(".concat(t.size/pn*(t.flipX?-1:1),", ").concat(t.size/pn*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var rw=`:root, :host {
7
+ */function Bf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bf(Object(n),!0).forEach(function(r){Sg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $i(e){"@babel/helpers - typeof";return $i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$i(e)}function vg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cg(e,t,n){return t&&bg(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fa(e,t){return xg(e)||Ag(e,t)||Vf(e,t)||Tg()}function gi(e){return kg(e)||Ig(e)||Vf(e)||Eg()}function kg(e){if(Array.isArray(e))return da(e)}function xg(e){if(Array.isArray(e))return e}function Ig(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ag(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],s=!0,i=!1,o,a;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));s=!0);}catch(l){i=!0,a=l}finally{try{!s&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function Vf(e,t){if(e){if(typeof e=="string")return da(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return da(e,t)}}function da(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Eg(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
8
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tg(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
9
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ff=function(){},ha={},Wf={},jf=null,Uf={mark:Ff,measure:Ff};try{typeof window<"u"&&(ha=window),typeof document<"u"&&(Wf=document),typeof MutationObserver<"u"&&(jf=MutationObserver),typeof performance<"u"&&(Uf=performance)}catch{}var Pg=ha.navigator||{},zf=Pg.userAgent,Hf=zf===void 0?"":zf,cn=ha,ye=Wf,Gf=jf,wi=Uf;cn.document;var Gt=!!ye.documentElement&&!!ye.head&&typeof ye.addEventListener=="function"&&typeof ye.createElement=="function",qf=~Hf.indexOf("MSIE")||~Hf.indexOf("Trident/"),qt="___FONT_AWESOME___",ma=16,Yf="fa",Jf="svg-inline--fa",Dn="data-fa-i2svg",pa="data-fa-pseudo-element",Mg="data-fa-pseudo-element-pending",$a="data-prefix",ga="data-icon",Zf="fontawesome-i2svg",Og="async",Dg=["HTML","HEAD","STYLE","SCRIPT"],Xf=function(){try{return!0}catch{return!1}}(),wa={fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit",fa:"solid"},yi={solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"},Kf={fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},Ng={"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},Rg=/fa[srltdbk]?[\-\ ]/,Qf="fa-layers-text",Lg=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Kit)?.*/i,Bg={900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},ed=[1,2,3,4,5,6,7,8,9,10],Vg=ed.concat([11,12,13,14,15,16,17,18,19,20]),Fg=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Nn={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Wg=[].concat(gi(Object.keys(yi)),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Nn.GROUP,Nn.SWAP_OPACITY,Nn.PRIMARY,Nn.SECONDARY]).concat(ed.map(function(e){return"".concat(e,"x")})).concat(Vg.map(function(e){return"w-".concat(e)})),td=cn.FontAwesomeConfig||{};function jg(e){var t=ye.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Ug(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(ye&&typeof ye.querySelector=="function"){var zg=[["data-family-prefix","familyPrefix"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];zg.forEach(function(e){var t=fa(e,2),n=t[0],r=t[1],s=Ug(jg(n));s!=null&&(td[r]=s)})}var Hg={familyPrefix:Yf,styleDefault:"solid",replacementClass:Jf,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},os=D(D({},Hg),td);os.autoReplaceSvg||(os.observeMutations=!1);var F={};Object.keys(os).forEach(function(e){Object.defineProperty(F,e,{enumerable:!0,set:function(n){os[e]=n,_i.forEach(function(r){return r(F)})},get:function(){return os[e]}})}),cn.FontAwesomeConfig=F;var _i=[];function Gg(e){return _i.push(e),function(){_i.splice(_i.indexOf(e),1)}}var fn=ma,Rt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function qg(e){if(!(!e||!Gt)){var t=ye.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=ye.head.childNodes,r=null,s=n.length-1;s>-1;s--){var i=n[s],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=i)}return ye.head.insertBefore(t,r),e}}var Yg="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function as(){for(var e=12,t="";e-- >0;)t+=Yg[Math.random()*62|0];return t}function $r(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function ya(e){return e.classList?$r(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function nd(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Jg(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(nd(e[n]),'" ')},"").trim()}function vi(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function _a(e){return e.size!==Rt.size||e.x!==Rt.x||e.y!==Rt.y||e.rotate!==Rt.rotate||e.flipX||e.flipY}function Zg(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,s={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(i," ").concat(o," ").concat(a)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:s,inner:l,path:u}}function Xg(e){var t=e.transform,n=e.width,r=n===void 0?ma:n,s=e.height,i=s===void 0?ma:s,o=e.startCentered,a=o===void 0?!1:o,l="";return a&&qf?l+="translate(".concat(t.x/fn-r/2,"em, ").concat(t.y/fn-i/2,"em) "):a?l+="translate(calc(-50% + ".concat(t.x/fn,"em), calc(-50% + ").concat(t.y/fn,"em)) "):l+="translate(".concat(t.x/fn,"em, ").concat(t.y/fn,"em) "),l+="scale(".concat(t.size/fn*(t.flipX?-1:1),", ").concat(t.size/fn*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var Kg=`:root, :host {
10
10
  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
11
11
  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
12
12
  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
@@ -757,14 +757,14 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
757
757
  .fad.fa-inverse,
758
758
  .fa-duotone.fa-inverse {
759
759
  color: var(--fa-inverse, #fff);
760
- }`;function cd(){var e=td,t=nd,n=F.familyPrefix,r=F.replacementClass,s=rw;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");s=s.replace(i,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(a,".".concat(r))}return s}var fd=!1;function xa(){F.autoAddCss&&!fd&&(Kg(cd()),fd=!0)}var sw={mixout:function(){return{dom:{css:cd,insertCss:xa}}},hooks:function(){return{beforeDOMElementCreation:function(){xa()},beforeI2svg:function(){xa()}}}},Xt=mn||{};Xt[Zt]||(Xt[Zt]={}),Xt[Zt].styles||(Xt[Zt].styles={}),Xt[Zt].hooks||(Xt[Zt].hooks={}),Xt[Zt].shims||(Xt[Zt].shims=[]);var kt=Xt[Zt],dd=[],iw=function e(){_e.removeEventListener("DOMContentLoaded",e),Ii=1,dd.map(function(t){return t()})},Ii=!1;Jt&&(Ii=(_e.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(_e.readyState),Ii||_e.addEventListener("DOMContentLoaded",iw));function ow(e){Jt&&(Ii?setTimeout(e,0):dd.push(e))}function ds(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,s=e.children,i=s===void 0?[]:s;return typeof e=="string"?ud(e):"<".concat(t," ").concat(ew(r),">").concat(i.map(ds).join(""),"</").concat(t,">")}function hd(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Ia=function(t,n,r,s){var i=Object.keys(t),o=i.length,a=n,l,u,f;for(r===void 0?(l=1,f=t[i[0]]):(l=0,f=r);l<o;l++)u=i[l],f=a(f,t[u],u,t);return f};function aw(e){for(var t=[],n=0,r=e.length;n<r;){var s=e.charCodeAt(n++);if(s>=55296&&s<=56319&&n<r){var i=e.charCodeAt(n++);(i&64512)==56320?t.push(((s&1023)<<10)+(i&1023)+65536):(t.push(s),n--)}else t.push(s)}return t}function Aa(e){var t=aw(e);return t.length===1?t[0].toString(16):null}function lw(e,t){var n=e.length,r=e.charCodeAt(t),s;return r>=55296&&r<=56319&&n>t+1&&(s=e.charCodeAt(t+1),s>=56320&&s<=57343)?(r-55296)*1024+s-56320+65536:r}function md(e){return Object.keys(e).reduce(function(t,n){var r=e[n],s=!!r.icon;return s?t[r.iconName]=r.icon:t[n]=r,t},{})}function Ea(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,s=r===void 0?!1:r,i=md(t);typeof kt.hooks.addPack=="function"&&!s?kt.hooks.addPack(e,md(t)):kt.styles[e]=D(D({},kt.styles[e]||{}),i),e==="fas"&&Ea("fa",t)}var hs=kt.styles,uw=kt.shims,cw=Object.values(id),Ta=null,pd={},$d={},gd={},wd={},yd={},fw=Object.keys(Ca);function dw(e){return~Gg.indexOf(e)}function hw(e,t){var n=t.split("-"),r=n[0],s=n.slice(1).join("-");return r===e&&s!==""&&!dw(s)?s:null}var _d=function(){var t=function(i){return Ia(hs,function(o,a,l){return o[l]=Ia(a,i,{}),o},{})};pd=t(function(s,i,o){if(i[3]&&(s[i[3]]=o),i[2]){var a=i[2].filter(function(l){return typeof l=="number"});a.forEach(function(l){s[l.toString(16)]=o})}return s}),$d=t(function(s,i,o){if(s[o]=o,i[2]){var a=i[2].filter(function(l){return typeof l=="string"});a.forEach(function(l){s[l]=o})}return s}),yd=t(function(s,i,o){var a=i[2];return s[o]=o,a.forEach(function(l){s[l]=o}),s});var n="far"in hs||F.autoFetchSvg,r=Ia(uw,function(s,i){var o=i[0],a=i[1],l=i[2];return a==="far"&&!n&&(a="fas"),typeof o=="string"&&(s.names[o]={prefix:a,iconName:l}),typeof o=="number"&&(s.unicodes[o.toString(16)]={prefix:a,iconName:l}),s},{names:{},unicodes:{}});gd=r.names,wd=r.unicodes,Ta=Ai(F.styleDefault)};Xg(function(e){Ta=Ai(e.styleDefault)}),_d();function Pa(e,t){return(pd[e]||{})[t]}function mw(e,t){return($d[e]||{})[t]}function _r(e,t){return(yd[e]||{})[t]}function vd(e){return gd[e]||{prefix:null,iconName:null}}function pw(e){var t=wd[e],n=Pa("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function $n(){return Ta}var Ma=function(){return{prefix:null,iconName:null,rest:[]}};function Ai(e){var t=Ca[e],n=Si[e]||Si[t],r=e in kt.styles?e:null;return n||r||null}function Ei(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,r=n===void 0?!1:n,s=null,i=e.reduce(function(o,a){var l=hw(F.familyPrefix,a);if(hs[a]?(a=cw.includes(a)?Fg[a]:a,s=a,o.prefix=a):fw.indexOf(a)>-1?(s=a,o.prefix=Ai(a)):l?o.iconName=l:a!==F.replacementClass&&o.rest.push(a),!r&&o.prefix&&o.iconName){var u=s==="fa"?vd(o.iconName):{},f=_r(o.prefix,o.iconName);u.prefix&&(s=null),o.iconName=u.iconName||f||o.iconName,o.prefix=u.prefix||o.prefix,o.prefix==="far"&&!hs.far&&hs.fas&&!F.autoFetchSvg&&(o.prefix="fas")}return o},Ma());return(i.prefix==="fa"||s==="fa")&&(i.prefix=$n()||"fas"),i}var $w=function(){function e(){xg(this,e),this.definitions={}}return Ag(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,s=new Array(r),i=0;i<r;i++)s[i]=arguments[i];var o=s.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(a){n.definitions[a]=D(D({},n.definitions[a]||{}),o[a]),Ea(a,o[a]);var l=id[a];l&&Ea(l,o[a]),_d()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var s=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(s).map(function(i){var o=s[i],a=o.prefix,l=o.iconName,u=o.icon,f=u[2];n[a]||(n[a]={}),f.length>0&&f.forEach(function(c){typeof c=="string"&&(n[a][c]=u)}),n[a][l]=u}),n}}]),e}(),bd=[],vr={},br={},gw=Object.keys(br);function ww(e,t){var n=t.mixoutsTo;return bd=e,vr={},Object.keys(br).forEach(function(r){gw.indexOf(r)===-1&&delete br[r]}),bd.forEach(function(r){var s=r.mixout?r.mixout():{};if(Object.keys(s).forEach(function(o){typeof s[o]=="function"&&(n[o]=s[o]),vi(s[o])==="object"&&Object.keys(s[o]).forEach(function(a){n[o]||(n[o]={}),n[o][a]=s[o][a]})}),r.hooks){var i=r.hooks();Object.keys(i).forEach(function(o){vr[o]||(vr[o]=[]),vr[o].push(i[o])})}r.provides&&r.provides(br)}),n}function Oa(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),s=2;s<n;s++)r[s-2]=arguments[s];var i=vr[e]||[];return i.forEach(function(o){t=o.apply(null,[t].concat(r))}),t}function Fn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var s=vr[e]||[];s.forEach(function(i){i.apply(null,n)})}function Kt(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return br[e]?br[e].apply(null,t):void 0}function Da(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||$n();if(t)return t=_r(n,t)||t,hd(Cd.definitions,n,t)||hd(kt.styles,n,t)}var Cd=new $w,yw=function(){F.autoReplaceSvg=!1,F.observeMutations=!1,Fn("noAuto")},_w={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Jt?(Fn("beforeI2svg",t),Kt("pseudoElements2svg",t),Kt("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;F.autoReplaceSvg===!1&&(F.autoReplaceSvg=!0),F.observeMutations=!0,ow(function(){bw({autoReplaceSvgRoot:n}),Fn("watch",t)})}},vw={icon:function(t){if(t===null)return null;if(vi(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:_r(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=Ai(t[0]);return{prefix:r,iconName:_r(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(F.familyPrefix,"-"))>-1||t.match(Wg))){var s=Ei(t.split(" "),{skipLookups:!0});return{prefix:s.prefix||$n(),iconName:_r(s.prefix,s.iconName)||s.iconName}}if(typeof t=="string"){var i=$n();return{prefix:i,iconName:_r(i,t)||t}}}},lt={noAuto:yw,config:F,dom:_w,parse:vw,library:Cd,findIconDefinition:Da,toHtml:ds},bw=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?_e:n;(Object.keys(kt.styles).length>0||F.autoFetchSvg)&&Jt&&F.autoReplaceSvg&&lt.dom.i2svg({node:r})};function Ti(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return ds(r)})}}),Object.defineProperty(e,"node",{get:function(){if(Jt){var r=_e.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function Cw(e){var t=e.children,n=e.main,r=e.mask,s=e.attributes,i=e.styles,o=e.transform;if(ka(o)&&n.found&&!r.found){var a=n.width,l=n.height,u={x:a/l/2,y:.5};s.style=xi(D(D({},i),{},{"transform-origin":"".concat(u.x+o.x/16,"em ").concat(u.y+o.y/16,"em")}))}return[{tag:"svg",attributes:s,children:t}]}function Sw(e){var t=e.prefix,n=e.iconName,r=e.children,s=e.attributes,i=e.symbol,o=i===!0?"".concat(t,"-").concat(F.familyPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:D(D({},s),{},{id:o}),children:r}]}]}function Na(e){var t=e.icons,n=t.main,r=t.mask,s=e.prefix,i=e.iconName,o=e.transform,a=e.symbol,l=e.title,u=e.maskId,f=e.titleId,c=e.extra,p=e.watchable,m=p===void 0?!1:p,$=r.found?r:n,g=$.width,w=$.height,v=s==="fak",S=[F.replacementClass,i?"".concat(F.familyPrefix,"-").concat(i):""].filter(function(Ve){return c.classes.indexOf(Ve)===-1}).filter(function(Ve){return Ve!==""||!!Ve}).concat(c.classes).join(" "),N={children:[],attributes:D(D({},c.attributes),{},{"data-prefix":s,"data-icon":i,class:S,role:c.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(w)})},ee=v&&!~c.classes.indexOf("fa-fw")?{width:"".concat(g/w*16*.0625,"em")}:{};m&&(N.attributes[Bn]=""),l&&(N.children.push({tag:"title",attributes:{id:N.attributes["aria-labelledby"]||"title-".concat(f||fs())},children:[l]}),delete N.attributes.title);var J=D(D({},N),{},{prefix:s,iconName:i,main:n,mask:r,maskId:u,transform:o,symbol:a,styles:D(D({},ee),c.styles)}),Ae=r.found&&n.found?Kt("generateAbstractMask",J)||{children:[],attributes:{}}:Kt("generateAbstractIcon",J)||{children:[],attributes:{}},it=Ae.children,Me=Ae.attributes;return J.children=it,J.attributes=Me,a?Sw(J):Cw(J)}function Sd(e){var t=e.content,n=e.width,r=e.height,s=e.transform,i=e.title,o=e.extra,a=e.watchable,l=a===void 0?!1:a,u=D(D(D({},o.attributes),i?{title:i}:{}),{},{class:o.classes.join(" ")});l&&(u[Bn]="");var f=D({},o.styles);ka(s)&&(f.transform=nw({transform:s,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);var c=xi(f);c.length>0&&(u.style=c);var p=[];return p.push({tag:"span",attributes:u,children:[t]}),i&&p.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),p}function kw(e){var t=e.content,n=e.title,r=e.extra,s=D(D(D({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=xi(r.styles);i.length>0&&(s.style=i);var o=[];return o.push({tag:"span",attributes:s,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var Ra=kt.styles;function La(e){var t=e[0],n=e[1],r=e.slice(4),s=$a(r,1),i=s[0],o=null;return Array.isArray(i)?o={tag:"g",attributes:{class:"".concat(F.familyPrefix,"-").concat(Vn.GROUP)},children:[{tag:"path",attributes:{class:"".concat(F.familyPrefix,"-").concat(Vn.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(F.familyPrefix,"-").concat(Vn.PRIMARY),fill:"currentColor",d:i[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:o}}var xw={found:!1,width:512,height:512};function Iw(e,t){!sd&&!F.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Ba(e,t){var n=t;return t==="fa"&&F.styleDefault!==null&&(t=$n()),new Promise(function(r,s){if(Kt("missingIconAbstract"),n==="fa"){var i=vd(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&Ra[t]&&Ra[t][e]){var o=Ra[t][e];return r(La(o))}Iw(e,t),r(D(D({},xw),{},{icon:F.showMissingIcons&&e?Kt("missingIconAbstract")||{}:{}}))})}var kd=function(){},Va=F.measurePerformance&&Ci&&Ci.mark&&Ci.measure?Ci:{mark:kd,measure:kd},ms='FA "6.1.2"',Aw=function(t){return Va.mark("".concat(ms," ").concat(t," begins")),function(){return xd(t)}},xd=function(t){Va.mark("".concat(ms," ").concat(t," ends")),Va.measure("".concat(ms," ").concat(t),"".concat(ms," ").concat(t," begins"),"".concat(ms," ").concat(t," ends"))},Fa={begin:Aw,end:xd},Pi=function(){};function Id(e){var t=e.getAttribute?e.getAttribute(Bn):null;return typeof t=="string"}function Ew(e){var t=e.getAttribute?e.getAttribute(va):null,n=e.getAttribute?e.getAttribute(ba):null;return t&&n}function Tw(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(F.replacementClass)}function Pw(){if(F.autoReplaceSvg===!0)return Mi.replace;var e=Mi[F.autoReplaceSvg];return e||Mi.replace}function Mw(e){return _e.createElementNS("http://www.w3.org/2000/svg",e)}function Ow(e){return _e.createElement(e)}function Ad(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?Mw:Ow:n;if(typeof e=="string")return _e.createTextNode(e);var s=r(e.tag);Object.keys(e.attributes||[]).forEach(function(o){s.setAttribute(o,e.attributes[o])});var i=e.children||[];return i.forEach(function(o){s.appendChild(Ad(o,{ceFn:r}))}),s}function Dw(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Mi={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(s){n.parentNode.insertBefore(Ad(s),n)}),n.getAttribute(Bn)===null&&F.keepOriginalSource){var r=_e.createComment(Dw(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~Sa(n).indexOf(F.replacementClass))return Mi.replace(t);var s=new RegExp("".concat(F.familyPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var i=r[0].attributes.class.split(" ").reduce(function(a,l){return l===F.replacementClass||l.match(s)?a.toSvg.push(l):a.toNode.push(l),a},{toNode:[],toSvg:[]});r[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",i.toNode.join(" "))}var o=r.map(function(a){return ds(a)}).join(`
761
- `);n.setAttribute(Bn,""),n.innerHTML=o}};function Ed(e){e()}function Td(e,t){var n=typeof t=="function"?t:Pi;if(e.length===0)n();else{var r=Ed;F.mutateApproach===Bg&&(r=mn.requestAnimationFrame||Ed),r(function(){var s=Pw(),i=Fa.begin("mutate");e.map(s),i(),n()})}}var Wa=!1;function Pd(){Wa=!0}function ja(){Wa=!1}var Oi=null;function Md(e){if(Qf&&F.observeMutations){var t=e.treeCallback,n=t===void 0?Pi:t,r=e.nodeCallback,s=r===void 0?Pi:r,i=e.pseudoElementsCallback,o=i===void 0?Pi:i,a=e.observeMutationsRoot,l=a===void 0?_e:a;Oi=new Qf(function(u){if(!Wa){var f=$n();yr(u).forEach(function(c){if(c.type==="childList"&&c.addedNodes.length>0&&!Id(c.addedNodes[0])&&(F.searchPseudoElements&&o(c.target),n(c.target)),c.type==="attributes"&&c.target.parentNode&&F.searchPseudoElements&&o(c.target.parentNode),c.type==="attributes"&&Id(c.target)&&~Hg.indexOf(c.attributeName))if(c.attributeName==="class"&&Ew(c.target)){var p=Ei(Sa(c.target)),m=p.prefix,$=p.iconName;c.target.setAttribute(va,m||f),$&&c.target.setAttribute(ba,$)}else Tw(c.target)&&s(c.target)})}}),Jt&&Oi.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Nw(){Oi&&Oi.disconnect()}function Rw(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,s){var i=s.split(":"),o=i[0],a=i.slice(1);return o&&a.length>0&&(r[o]=a.join(":").trim()),r},{})),n}function Lw(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",s=Ei(Sa(e));return s.prefix||(s.prefix=$n()),t&&n&&(s.prefix=t,s.iconName=n),s.iconName&&s.prefix||(s.prefix&&r.length>0&&(s.iconName=mw(s.prefix,e.innerText)||Pa(s.prefix,Aa(e.innerText))),!s.iconName&&F.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(s.iconName=e.firstChild.data)),s}function Bw(e){var t=yr(e.attributes).reduce(function(s,i){return s.name!=="class"&&s.name!=="style"&&(s[i.name]=i.value),s},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return F.autoA11y&&(n?t["aria-labelledby"]="".concat(F.replacementClass,"-title-").concat(r||fs()):(t["aria-hidden"]="true",t.focusable="false")),t}function Vw(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Vt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Od(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=Lw(e),r=n.iconName,s=n.prefix,i=n.rest,o=Bw(e),a=Oa("parseNodeAttributes",{},e),l=t.styleParser?Rw(e):[];return D({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:s,transform:Vt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:l,attributes:o}},a)}var Fw=kt.styles;function Dd(e){var t=F.autoReplaceSvg==="nest"?Od(e,{styleParser:!1}):Od(e);return~t.extra.classes.indexOf(od)?Kt("generateLayersText",e,t):Kt("generateSvgReplacementMutation",e,t)}function Nd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Jt)return Promise.resolve();var n=_e.documentElement.classList,r=function(c){return n.add("".concat(rd,"-").concat(c))},s=function(c){return n.remove("".concat(rd,"-").concat(c))},i=F.autoFetchSvg?Object.keys(Ca):Object.keys(Fw);i.includes("fa")||i.push("fa");var o=[".".concat(od,":not([").concat(Bn,"])")].concat(i.map(function(f){return".".concat(f,":not([").concat(Bn,"])")})).join(", ");if(o.length===0)return Promise.resolve();var a=[];try{a=yr(e.querySelectorAll(o))}catch{}if(a.length>0)r("pending"),s("complete");else return Promise.resolve();var l=Fa.begin("onTree"),u=a.reduce(function(f,c){try{var p=Dd(c);p&&f.push(p)}catch(m){sd||m.name==="MissingIcon"&&console.error(m)}return f},[]);return new Promise(function(f,c){Promise.all(u).then(function(p){Td(p,function(){r("active"),r("complete"),s("pending"),typeof t=="function"&&t(),l(),f()})}).catch(function(p){l(),c(p)})})}function Ww(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Dd(e).then(function(n){n&&Td([n],t)})}function jw(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Da(t||{}),s=n.mask;return s&&(s=(s||{}).icon?s:Da(s||{})),e(r,D(D({},n),{},{mask:s}))}}var Uw=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,s=r===void 0?Vt:r,i=n.symbol,o=i===void 0?!1:i,a=n.mask,l=a===void 0?null:a,u=n.maskId,f=u===void 0?null:u,c=n.title,p=c===void 0?null:c,m=n.titleId,$=m===void 0?null:m,g=n.classes,w=g===void 0?[]:g,v=n.attributes,S=v===void 0?{}:v,N=n.styles,ee=N===void 0?{}:N;if(t){var J=t.prefix,Ae=t.iconName,it=t.icon;return Ti(D({type:"icon"},t),function(){return Fn("beforeDOMElementCreation",{iconDefinition:t,params:n}),F.autoA11y&&(p?S["aria-labelledby"]="".concat(F.replacementClass,"-title-").concat($||fs()):(S["aria-hidden"]="true",S.focusable="false")),Na({icons:{main:La(it),mask:l?La(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:J,iconName:Ae,transform:D(D({},Vt),s),symbol:o,title:p,maskId:f,titleId:$,extra:{attributes:S,styles:ee,classes:w}})})}},zw={mixout:function(){return{icon:jw(Uw)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Nd,n.nodeCallback=Ww,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,s=r===void 0?_e:r,i=n.callback,o=i===void 0?function(){}:i;return Nd(s,o)},t.generateSvgReplacementMutation=function(n,r){var s=r.iconName,i=r.title,o=r.titleId,a=r.prefix,l=r.transform,u=r.symbol,f=r.mask,c=r.maskId,p=r.extra;return new Promise(function(m,$){Promise.all([Ba(s,a),f.iconName?Ba(f.iconName,f.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(g){var w=$a(g,2),v=w[0],S=w[1];m([n,Na({icons:{main:v,mask:S},prefix:a,iconName:s,transform:l,symbol:u,maskId:c,title:i,titleId:o,extra:p,watchable:!0})])}).catch($)})},t.generateAbstractIcon=function(n){var r=n.children,s=n.attributes,i=n.main,o=n.transform,a=n.styles,l=xi(a);l.length>0&&(s.style=l);var u;return ka(o)&&(u=Kt("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),r.push(u||i.icon),{children:r,attributes:s}}}},Hw={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=r.classes,i=s===void 0?[]:s;return Ti({type:"layer"},function(){Fn("beforeDOMElementCreation",{assembler:n,params:r});var o=[];return n(function(a){Array.isArray(a)?a.map(function(l){o=o.concat(l.abstract)}):o=o.concat(a.abstract)}),[{tag:"span",attributes:{class:["".concat(F.familyPrefix,"-layers")].concat(bi(i)).join(" ")},children:o}]})}}}},Gw={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=r.title,i=s===void 0?null:s,o=r.classes,a=o===void 0?[]:o,l=r.attributes,u=l===void 0?{}:l,f=r.styles,c=f===void 0?{}:f;return Ti({type:"counter",content:n},function(){return Fn("beforeDOMElementCreation",{content:n,params:r}),kw({content:n.toString(),title:i,extra:{attributes:u,styles:c,classes:["".concat(F.familyPrefix,"-layers-counter")].concat(bi(a))}})})}}}},qw={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=r.transform,i=s===void 0?Vt:s,o=r.title,a=o===void 0?null:o,l=r.classes,u=l===void 0?[]:l,f=r.attributes,c=f===void 0?{}:f,p=r.styles,m=p===void 0?{}:p;return Ti({type:"text",content:n},function(){return Fn("beforeDOMElementCreation",{content:n,params:r}),Sd({content:n,transform:D(D({},Vt),i),title:a,extra:{attributes:c,styles:m,classes:["".concat(F.familyPrefix,"-layers-text")].concat(bi(u))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var s=r.title,i=r.transform,o=r.extra,a=null,l=null;if(ed){var u=parseInt(getComputedStyle(n).fontSize,10),f=n.getBoundingClientRect();a=f.width/u,l=f.height/u}return F.autoA11y&&!s&&(o.attributes["aria-hidden"]="true"),Promise.resolve([n,Sd({content:n.innerHTML,width:a,height:l,transform:i,title:s,extra:o,watchable:!0})])}}},Yw=new RegExp('"',"ug"),Rd=[1105920,1112319];function Jw(e){var t=e.replace(Yw,""),n=lw(t,0),r=n>=Rd[0]&&n<=Rd[1],s=t.length===2?t[0]===t[1]:!1;return{value:Aa(s?t[0]:t),isSecondary:r||s}}function Ld(e,t){var n="".concat(Lg).concat(t.replace(":","-"));return new Promise(function(r,s){if(e.getAttribute(n)!==null)return r();var i=yr(e.children),o=i.filter(function(Ae){return Ae.getAttribute(_a)===t})[0],a=mn.getComputedStyle(e,t),l=a.getPropertyValue("font-family").match(jg),u=a.getPropertyValue("font-weight"),f=a.getPropertyValue("content");if(o&&!l)return e.removeChild(o),r();if(l&&f!=="none"&&f!==""){var c=a.getPropertyValue("content"),p=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?Si[l[2].toLowerCase()]:Ug[u],m=Jw(c),$=m.value,g=m.isSecondary,w=l[0].startsWith("FontAwesome"),v=Pa(p,$),S=v;if(w){var N=pw($);N.iconName&&N.prefix&&(v=N.iconName,p=N.prefix)}if(v&&!g&&(!o||o.getAttribute(va)!==p||o.getAttribute(ba)!==S)){e.setAttribute(n,S),o&&e.removeChild(o);var ee=Vw(),J=ee.extra;J.attributes[_a]=t,Ba(v,p).then(function(Ae){var it=Na(D(D({},ee),{},{icons:{main:Ae,mask:Ma()},prefix:p,iconName:S,extra:J,watchable:!0})),Me=_e.createElement("svg");t==="::before"?e.insertBefore(Me,e.firstChild):e.appendChild(Me),Me.outerHTML=it.map(function(Ve){return ds(Ve)}).join(`
762
- `),e.removeAttribute(n),r()}).catch(s)}else r()}else r()})}function Zw(e){return Promise.all([Ld(e,"::before"),Ld(e,"::after")])}function Xw(e){return e.parentNode!==document.head&&!~Vg.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(_a)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Bd(e){if(Jt)return new Promise(function(t,n){var r=yr(e.querySelectorAll("*")).filter(Xw).map(Zw),s=Fa.begin("searchPseudoElements");Pd(),Promise.all(r).then(function(){s(),ja(),t()}).catch(function(){s(),ja(),n()})})}var Kw={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Bd,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,s=r===void 0?_e:r;F.searchPseudoElements&&Bd(s)}}},Vd=!1,Qw={mixout:function(){return{dom:{unwatch:function(){Pd(),Vd=!0}}}},hooks:function(){return{bootstrap:function(){Md(Oa("mutationObserverCallbacks",{}))},noAuto:function(){Nw()},watch:function(n){var r=n.observeMutationsRoot;Vd?ja():Md(Oa("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},Fd=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,s){var i=s.toLowerCase().split("-"),o=i[0],a=i.slice(1).join("-");if(o&&a==="h")return r.flipX=!0,r;if(o&&a==="v")return r.flipY=!0,r;if(a=parseFloat(a),isNaN(a))return r;switch(o){case"grow":r.size=r.size+a;break;case"shrink":r.size=r.size-a;break;case"left":r.x=r.x-a;break;case"right":r.x=r.x+a;break;case"up":r.y=r.y-a;break;case"down":r.y=r.y+a;break;case"rotate":r.rotate=r.rotate+a;break}return r},n)},ey={mixout:function(){return{parse:{transform:function(n){return Fd(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var s=r.getAttribute("data-fa-transform");return s&&(n.transform=Fd(s)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,s=n.transform,i=n.containerWidth,o=n.iconWidth,a={transform:"translate(".concat(i/2," 256)")},l="translate(".concat(s.x*32,", ").concat(s.y*32,") "),u="scale(".concat(s.size/16*(s.flipX?-1:1),", ").concat(s.size/16*(s.flipY?-1:1),") "),f="rotate(".concat(s.rotate," 0 0)"),c={transform:"".concat(l," ").concat(u," ").concat(f)},p={transform:"translate(".concat(o/2*-1," -256)")},m={outer:a,inner:c,path:p};return{tag:"g",attributes:D({},m.outer),children:[{tag:"g",attributes:D({},m.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:D(D({},r.icon.attributes),m.path)}]}]}}}},Ua={x:0,y:0,width:"100%",height:"100%"};function Wd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function ty(e){return e.tag==="g"?e.children:[e]}var ny={hooks:function(){return{parseNodeAttributes:function(n,r){var s=r.getAttribute("data-fa-mask"),i=s?Ei(s.split(" ").map(function(o){return o.trim()})):Ma();return i.prefix||(i.prefix=$n()),n.mask=i,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,s=n.attributes,i=n.main,o=n.mask,a=n.maskId,l=n.transform,u=i.width,f=i.icon,c=o.width,p=o.icon,m=tw({transform:l,containerWidth:c,iconWidth:u}),$={tag:"rect",attributes:D(D({},Ua),{},{fill:"white"})},g=f.children?{children:f.children.map(Wd)}:{},w={tag:"g",attributes:D({},m.inner),children:[Wd(D({tag:f.tag,attributes:D(D({},f.attributes),m.path)},g))]},v={tag:"g",attributes:D({},m.outer),children:[w]},S="mask-".concat(a||fs()),N="clip-".concat(a||fs()),ee={tag:"mask",attributes:D(D({},Ua),{},{id:S,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[$,v]},J={tag:"defs",children:[{tag:"clipPath",attributes:{id:N},children:ty(p)},ee]};return r.push(J,{tag:"rect",attributes:D({fill:"currentColor","clip-path":"url(#".concat(N,")"),mask:"url(#".concat(S,")")},Ua)}),{children:r,attributes:s}}}},ry={provides:function(t){var n=!1;mn.matchMedia&&(n=mn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],s={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:D(D({},s),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=D(D({},i),{},{attributeName:"opacity"}),a={tag:"circle",attributes:D(D({},s),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||a.children.push({tag:"animate",attributes:D(D({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:D(D({},o),{},{values:"1;0;1;1;0;1;"})}),r.push(a),r.push({tag:"path",attributes:D(D({},s),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:D(D({},o),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:D(D({},s),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:D(D({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},sy={hooks:function(){return{parseNodeAttributes:function(n,r){var s=r.getAttribute("data-fa-symbol"),i=s===null?!1:s===""?!0:s;return n.symbol=i,n}}}},iy=[sw,zw,Hw,Gw,qw,Kw,Qw,ey,ny,ry,sy];ww(iy,{mixoutsTo:lt}),lt.noAuto,lt.config,lt.library,lt.dom;var za=lt.parse;lt.findIconDefinition,lt.toHtml;var oy=lt.icon;lt.layer,lt.text,lt.counter;function ay(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ly(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var jd={exports:{}},uy="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",cy=uy,fy=cy;function Ud(){}function zd(){}zd.resetWarningCache=Ud;var dy=function(){function e(r,s,i,o,a,l){if(l!==fy){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:zd,resetWarningCache:Ud};return n.PropTypes=n,n};jd.exports=dy();var hy=jd.exports;const Q=ay(hy);function Hd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hd(Object(n),!0).forEach(function(r){Cr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hd(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Di(e){"@babel/helpers - typeof";return Di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Di(e)}function Cr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function my(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function py(e,t){if(e==null)return{};var n=my(e,t),r,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)r=i[s],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ha(e){return $y(e)||gy(e)||wy(e)||yy()}function $y(e){if(Array.isArray(e))return Ga(e)}function gy(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wy(e,t){if(e){if(typeof e=="string")return Ga(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ga(e,t)}}function Ga(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yy(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
763
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _y(e){var t,n=e.beat,r=e.fade,s=e.beatFade,i=e.bounce,o=e.shake,a=e.flash,l=e.spin,u=e.spinPulse,f=e.spinReverse,c=e.pulse,p=e.fixedWidth,m=e.inverse,$=e.border,g=e.listItem,w=e.flip,v=e.size,S=e.rotation,N=e.pull,ee=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":s,"fa-bounce":i,"fa-shake":o,"fa-flash":a,"fa-spin":l,"fa-spin-reverse":f,"fa-spin-pulse":u,"fa-pulse":c,"fa-fw":p,"fa-inverse":m,"fa-border":$,"fa-li":g,"fa-flip":w===!0,"fa-flip-horizontal":w==="horizontal"||w==="both","fa-flip-vertical":w==="vertical"||w==="both"},Cr(t,"fa-".concat(v),typeof v<"u"&&v!==null),Cr(t,"fa-rotate-".concat(S),typeof S<"u"&&S!==null&&S!==0),Cr(t,"fa-pull-".concat(N),typeof N<"u"&&N!==null),Cr(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(ee).map(function(J){return ee[J]?J:null}).filter(function(J){return J})}function vy(e){return e=e-0,e===e}function Gd(e){return vy(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var by=["style"];function Cy(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Sy(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),s=Gd(n.slice(0,r)),i=n.slice(r+1).trim();return s.startsWith("webkit")?t[Cy(s)]=i:t[s]=i,t},{})}function qd(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return qd(e,l)}),s=Object.keys(t.attributes||{}).reduce(function(l,u){var f=t.attributes[u];switch(u){case"class":l.attrs.className=f,delete t.attributes.class;break;case"style":l.attrs.style=Sy(f);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?l.attrs[u.toLowerCase()]=f:l.attrs[Gd(u)]=f}return l},{attrs:{}}),i=n.style,o=i===void 0?{}:i,a=py(n,by);return s.attrs.style=gn(gn({},s.attrs.style),o),e.apply(void 0,[t.tag,gn(gn({},s.attrs),a)].concat(Ha(r)))}var Yd=!1;try{Yd=!0}catch{}function ky(){if(!Yd&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Jd(e){if(e&&Di(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(za.icon)return za.icon(e);if(e===null)return null;if(e&&Di(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function qa(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Cr({},e,t):{}}var ps=Ls.forwardRef(function(e,t){var n=e.icon,r=e.mask,s=e.symbol,i=e.className,o=e.title,a=e.titleId,l=e.maskId,u=Jd(n),f=qa("classes",[].concat(Ha(_y(e)),Ha(i.split(" ")))),c=qa("transform",typeof e.transform=="string"?za.transform(e.transform):e.transform),p=qa("mask",Jd(r)),m=oy(u,gn(gn(gn(gn({},f),c),p),{},{symbol:s,title:o,titleId:a,maskId:l}));if(!m)return ky("Could not find icon",u),null;var $=m.abstract,g={ref:t};return Object.keys(e).forEach(function(w){ps.defaultProps.hasOwnProperty(w)||(g[w]=e[w])}),xy($[0],g)});ps.displayName="FontAwesomeIcon",ps.propTypes={beat:Q.bool,border:Q.bool,beatFade:Q.bool,bounce:Q.bool,className:Q.string,fade:Q.bool,flash:Q.bool,mask:Q.oneOfType([Q.object,Q.array,Q.string]),maskId:Q.string,fixedWidth:Q.bool,inverse:Q.bool,flip:Q.oneOf([!0,!1,"horizontal","vertical","both"]),icon:Q.oneOfType([Q.object,Q.array,Q.string]),listItem:Q.bool,pull:Q.oneOf(["right","left"]),pulse:Q.bool,rotation:Q.oneOf([0,90,180,270]),shake:Q.bool,size:Q.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Q.bool,spinPulse:Q.bool,spinReverse:Q.bool,symbol:Q.oneOfType([Q.bool,Q.string]),title:Q.string,titleId:Q.string,transform:Q.oneOfType([Q.string,Q.object]),swapOpacity:Q.bool},ps.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var xy=qd.bind(null,Ls.createElement);/*!
760
+ }`;function rd(){var e=Yf,t=Jf,n=F.familyPrefix,r=F.replacementClass,s=Kg;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");s=s.replace(i,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(a,".".concat(r))}return s}var sd=!1;function va(){F.autoAddCss&&!sd&&(qg(rd()),sd=!0)}var Qg={mixout:function(){return{dom:{css:rd,insertCss:va}}},hooks:function(){return{beforeDOMElementCreation:function(){va()},beforeI2svg:function(){va()}}}},Yt=cn||{};Yt[qt]||(Yt[qt]={}),Yt[qt].styles||(Yt[qt].styles={}),Yt[qt].hooks||(Yt[qt].hooks={}),Yt[qt].shims||(Yt[qt].shims=[]);var vt=Yt[qt],id=[],ew=function e(){ye.removeEventListener("DOMContentLoaded",e),bi=1,id.map(function(t){return t()})},bi=!1;Gt&&(bi=(ye.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(ye.readyState),bi||ye.addEventListener("DOMContentLoaded",ew));function tw(e){Gt&&(bi?setTimeout(e,0):id.push(e))}function ls(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,s=e.children,i=s===void 0?[]:s;return typeof e=="string"?nd(e):"<".concat(t," ").concat(Jg(r),">").concat(i.map(ls).join(""),"</").concat(t,">")}function od(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var ba=function(t,n,r,s){var i=Object.keys(t),o=i.length,a=n,l,u,f;for(r===void 0?(l=1,f=t[i[0]]):(l=0,f=r);l<o;l++)u=i[l],f=a(f,t[u],u,t);return f};function nw(e){for(var t=[],n=0,r=e.length;n<r;){var s=e.charCodeAt(n++);if(s>=55296&&s<=56319&&n<r){var i=e.charCodeAt(n++);(i&64512)==56320?t.push(((s&1023)<<10)+(i&1023)+65536):(t.push(s),n--)}else t.push(s)}return t}function Ca(e){var t=nw(e);return t.length===1?t[0].toString(16):null}function rw(e,t){var n=e.length,r=e.charCodeAt(t),s;return r>=55296&&r<=56319&&n>t+1&&(s=e.charCodeAt(t+1),s>=56320&&s<=57343)?(r-55296)*1024+s-56320+65536:r}function ad(e){return Object.keys(e).reduce(function(t,n){var r=e[n],s=!!r.icon;return s?t[r.iconName]=r.icon:t[n]=r,t},{})}function Sa(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,s=r===void 0?!1:r,i=ad(t);typeof vt.hooks.addPack=="function"&&!s?vt.hooks.addPack(e,ad(t)):vt.styles[e]=D(D({},vt.styles[e]||{}),i),e==="fas"&&Sa("fa",t)}var us=vt.styles,sw=vt.shims,iw=Object.values(Kf),ka=null,ld={},ud={},cd={},fd={},dd={},ow=Object.keys(wa);function aw(e){return~Wg.indexOf(e)}function lw(e,t){var n=t.split("-"),r=n[0],s=n.slice(1).join("-");return r===e&&s!==""&&!aw(s)?s:null}var hd=function(){var t=function(i){return ba(us,function(o,a,l){return o[l]=ba(a,i,{}),o},{})};ld=t(function(s,i,o){if(i[3]&&(s[i[3]]=o),i[2]){var a=i[2].filter(function(l){return typeof l=="number"});a.forEach(function(l){s[l.toString(16)]=o})}return s}),ud=t(function(s,i,o){if(s[o]=o,i[2]){var a=i[2].filter(function(l){return typeof l=="string"});a.forEach(function(l){s[l]=o})}return s}),dd=t(function(s,i,o){var a=i[2];return s[o]=o,a.forEach(function(l){s[l]=o}),s});var n="far"in us||F.autoFetchSvg,r=ba(sw,function(s,i){var o=i[0],a=i[1],l=i[2];return a==="far"&&!n&&(a="fas"),typeof o=="string"&&(s.names[o]={prefix:a,iconName:l}),typeof o=="number"&&(s.unicodes[o.toString(16)]={prefix:a,iconName:l}),s},{names:{},unicodes:{}});cd=r.names,fd=r.unicodes,ka=Ci(F.styleDefault)};Gg(function(e){ka=Ci(e.styleDefault)}),hd();function xa(e,t){return(ld[e]||{})[t]}function uw(e,t){return(ud[e]||{})[t]}function gr(e,t){return(dd[e]||{})[t]}function md(e){return cd[e]||{prefix:null,iconName:null}}function cw(e){var t=fd[e],n=xa("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function dn(){return ka}var Ia=function(){return{prefix:null,iconName:null,rest:[]}};function Ci(e){var t=wa[e],n=yi[e]||yi[t],r=e in vt.styles?e:null;return n||r||null}function Si(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,r=n===void 0?!1:n,s=null,i=e.reduce(function(o,a){var l=lw(F.familyPrefix,a);if(us[a]?(a=iw.includes(a)?Ng[a]:a,s=a,o.prefix=a):ow.indexOf(a)>-1?(s=a,o.prefix=Ci(a)):l?o.iconName=l:a!==F.replacementClass&&o.rest.push(a),!r&&o.prefix&&o.iconName){var u=s==="fa"?md(o.iconName):{},f=gr(o.prefix,o.iconName);u.prefix&&(s=null),o.iconName=u.iconName||f||o.iconName,o.prefix=u.prefix||o.prefix,o.prefix==="far"&&!us.far&&us.fas&&!F.autoFetchSvg&&(o.prefix="fas")}return o},Ia());return(i.prefix==="fa"||s==="fa")&&(i.prefix=dn()||"fas"),i}var fw=function(){function e(){vg(this,e),this.definitions={}}return Cg(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,s=new Array(r),i=0;i<r;i++)s[i]=arguments[i];var o=s.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(a){n.definitions[a]=D(D({},n.definitions[a]||{}),o[a]),Sa(a,o[a]);var l=Kf[a];l&&Sa(l,o[a]),hd()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var s=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(s).map(function(i){var o=s[i],a=o.prefix,l=o.iconName,u=o.icon,f=u[2];n[a]||(n[a]={}),f.length>0&&f.forEach(function(c){typeof c=="string"&&(n[a][c]=u)}),n[a][l]=u}),n}}]),e}(),pd=[],wr={},yr={},dw=Object.keys(yr);function hw(e,t){var n=t.mixoutsTo;return pd=e,wr={},Object.keys(yr).forEach(function(r){dw.indexOf(r)===-1&&delete yr[r]}),pd.forEach(function(r){var s=r.mixout?r.mixout():{};if(Object.keys(s).forEach(function(o){typeof s[o]=="function"&&(n[o]=s[o]),$i(s[o])==="object"&&Object.keys(s[o]).forEach(function(a){n[o]||(n[o]={}),n[o][a]=s[o][a]})}),r.hooks){var i=r.hooks();Object.keys(i).forEach(function(o){wr[o]||(wr[o]=[]),wr[o].push(i[o])})}r.provides&&r.provides(yr)}),n}function Aa(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),s=2;s<n;s++)r[s-2]=arguments[s];var i=wr[e]||[];return i.forEach(function(o){t=o.apply(null,[t].concat(r))}),t}function Rn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var s=wr[e]||[];s.forEach(function(i){i.apply(null,n)})}function Jt(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return yr[e]?yr[e].apply(null,t):void 0}function Ea(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||dn();if(t)return t=gr(n,t)||t,od($d.definitions,n,t)||od(vt.styles,n,t)}var $d=new fw,mw=function(){F.autoReplaceSvg=!1,F.observeMutations=!1,Rn("noAuto")},pw={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Gt?(Rn("beforeI2svg",t),Jt("pseudoElements2svg",t),Jt("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;F.autoReplaceSvg===!1&&(F.autoReplaceSvg=!0),F.observeMutations=!0,tw(function(){gw({autoReplaceSvgRoot:n}),Rn("watch",t)})}},$w={icon:function(t){if(t===null)return null;if($i(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:gr(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=Ci(t[0]);return{prefix:r,iconName:gr(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(F.familyPrefix,"-"))>-1||t.match(Rg))){var s=Si(t.split(" "),{skipLookups:!0});return{prefix:s.prefix||dn(),iconName:gr(s.prefix,s.iconName)||s.iconName}}if(typeof t=="string"){var i=dn();return{prefix:i,iconName:gr(i,t)||t}}}},rt={noAuto:mw,config:F,dom:pw,parse:$w,library:$d,findIconDefinition:Ea,toHtml:ls},gw=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?ye:n;(Object.keys(vt.styles).length>0||F.autoFetchSvg)&&Gt&&F.autoReplaceSvg&&rt.dom.i2svg({node:r})};function ki(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return ls(r)})}}),Object.defineProperty(e,"node",{get:function(){if(Gt){var r=ye.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function ww(e){var t=e.children,n=e.main,r=e.mask,s=e.attributes,i=e.styles,o=e.transform;if(_a(o)&&n.found&&!r.found){var a=n.width,l=n.height,u={x:a/l/2,y:.5};s.style=vi(D(D({},i),{},{"transform-origin":"".concat(u.x+o.x/16,"em ").concat(u.y+o.y/16,"em")}))}return[{tag:"svg",attributes:s,children:t}]}function yw(e){var t=e.prefix,n=e.iconName,r=e.children,s=e.attributes,i=e.symbol,o=i===!0?"".concat(t,"-").concat(F.familyPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:D(D({},s),{},{id:o}),children:r}]}]}function Ta(e){var t=e.icons,n=t.main,r=t.mask,s=e.prefix,i=e.iconName,o=e.transform,a=e.symbol,l=e.title,u=e.maskId,f=e.titleId,c=e.extra,p=e.watchable,h=p===void 0?!1:p,$=r.found?r:n,g=$.width,w=$.height,v=s==="fak",S=[F.replacementClass,i?"".concat(F.familyPrefix,"-").concat(i):""].filter(function(j){return c.classes.indexOf(j)===-1}).filter(function(j){return j!==""||!!j}).concat(c.classes).join(" "),N={children:[],attributes:D(D({},c.attributes),{},{"data-prefix":s,"data-icon":i,class:S,role:c.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(w)})},Q=v&&!~c.classes.indexOf("fa-fw")?{width:"".concat(g/w*16*.0625,"em")}:{};h&&(N.attributes[Dn]=""),l&&(N.children.push({tag:"title",attributes:{id:N.attributes["aria-labelledby"]||"title-".concat(f||as())},children:[l]}),delete N.attributes.title);var ee=D(D({},N),{},{prefix:s,iconName:i,main:n,mask:r,maskId:u,transform:o,symbol:a,styles:D(D({},Q),c.styles)}),xe=r.found&&n.found?Jt("generateAbstractMask",ee)||{children:[],attributes:{}}:Jt("generateAbstractIcon",ee)||{children:[],attributes:{}},at=xe.children,I=xe.attributes;return ee.children=at,ee.attributes=I,a?yw(ee):ww(ee)}function gd(e){var t=e.content,n=e.width,r=e.height,s=e.transform,i=e.title,o=e.extra,a=e.watchable,l=a===void 0?!1:a,u=D(D(D({},o.attributes),i?{title:i}:{}),{},{class:o.classes.join(" ")});l&&(u[Dn]="");var f=D({},o.styles);_a(s)&&(f.transform=Xg({transform:s,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);var c=vi(f);c.length>0&&(u.style=c);var p=[];return p.push({tag:"span",attributes:u,children:[t]}),i&&p.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),p}function _w(e){var t=e.content,n=e.title,r=e.extra,s=D(D(D({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=vi(r.styles);i.length>0&&(s.style=i);var o=[];return o.push({tag:"span",attributes:s,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var Pa=vt.styles;function Ma(e){var t=e[0],n=e[1],r=e.slice(4),s=fa(r,1),i=s[0],o=null;return Array.isArray(i)?o={tag:"g",attributes:{class:"".concat(F.familyPrefix,"-").concat(Nn.GROUP)},children:[{tag:"path",attributes:{class:"".concat(F.familyPrefix,"-").concat(Nn.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(F.familyPrefix,"-").concat(Nn.PRIMARY),fill:"currentColor",d:i[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:o}}var vw={found:!1,width:512,height:512};function bw(e,t){!Xf&&!F.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Oa(e,t){var n=t;return t==="fa"&&F.styleDefault!==null&&(t=dn()),new Promise(function(r,s){if(Jt("missingIconAbstract"),n==="fa"){var i=md(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&Pa[t]&&Pa[t][e]){var o=Pa[t][e];return r(Ma(o))}bw(e,t),r(D(D({},vw),{},{icon:F.showMissingIcons&&e?Jt("missingIconAbstract")||{}:{}}))})}var wd=function(){},Da=F.measurePerformance&&wi&&wi.mark&&wi.measure?wi:{mark:wd,measure:wd},cs='FA "6.1.2"',Cw=function(t){return Da.mark("".concat(cs," ").concat(t," begins")),function(){return yd(t)}},yd=function(t){Da.mark("".concat(cs," ").concat(t," ends")),Da.measure("".concat(cs," ").concat(t),"".concat(cs," ").concat(t," begins"),"".concat(cs," ").concat(t," ends"))},Na={begin:Cw,end:yd},xi=function(){};function _d(e){var t=e.getAttribute?e.getAttribute(Dn):null;return typeof t=="string"}function Sw(e){var t=e.getAttribute?e.getAttribute($a):null,n=e.getAttribute?e.getAttribute(ga):null;return t&&n}function kw(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(F.replacementClass)}function xw(){if(F.autoReplaceSvg===!0)return Ii.replace;var e=Ii[F.autoReplaceSvg];return e||Ii.replace}function Iw(e){return ye.createElementNS("http://www.w3.org/2000/svg",e)}function Aw(e){return ye.createElement(e)}function vd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?Iw:Aw:n;if(typeof e=="string")return ye.createTextNode(e);var s=r(e.tag);Object.keys(e.attributes||[]).forEach(function(o){s.setAttribute(o,e.attributes[o])});var i=e.children||[];return i.forEach(function(o){s.appendChild(vd(o,{ceFn:r}))}),s}function Ew(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Ii={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(s){n.parentNode.insertBefore(vd(s),n)}),n.getAttribute(Dn)===null&&F.keepOriginalSource){var r=ye.createComment(Ew(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~ya(n).indexOf(F.replacementClass))return Ii.replace(t);var s=new RegExp("".concat(F.familyPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var i=r[0].attributes.class.split(" ").reduce(function(a,l){return l===F.replacementClass||l.match(s)?a.toSvg.push(l):a.toNode.push(l),a},{toNode:[],toSvg:[]});r[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",i.toNode.join(" "))}var o=r.map(function(a){return ls(a)}).join(`
761
+ `);n.setAttribute(Dn,""),n.innerHTML=o}};function bd(e){e()}function Cd(e,t){var n=typeof t=="function"?t:xi;if(e.length===0)n();else{var r=bd;F.mutateApproach===Og&&(r=cn.requestAnimationFrame||bd),r(function(){var s=xw(),i=Na.begin("mutate");e.map(s),i(),n()})}}var Ra=!1;function Sd(){Ra=!0}function La(){Ra=!1}var Ai=null;function kd(e){if(Gf&&F.observeMutations){var t=e.treeCallback,n=t===void 0?xi:t,r=e.nodeCallback,s=r===void 0?xi:r,i=e.pseudoElementsCallback,o=i===void 0?xi:i,a=e.observeMutationsRoot,l=a===void 0?ye:a;Ai=new Gf(function(u){if(!Ra){var f=dn();$r(u).forEach(function(c){if(c.type==="childList"&&c.addedNodes.length>0&&!_d(c.addedNodes[0])&&(F.searchPseudoElements&&o(c.target),n(c.target)),c.type==="attributes"&&c.target.parentNode&&F.searchPseudoElements&&o(c.target.parentNode),c.type==="attributes"&&_d(c.target)&&~Fg.indexOf(c.attributeName))if(c.attributeName==="class"&&Sw(c.target)){var p=Si(ya(c.target)),h=p.prefix,$=p.iconName;c.target.setAttribute($a,h||f),$&&c.target.setAttribute(ga,$)}else kw(c.target)&&s(c.target)})}}),Gt&&Ai.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Tw(){Ai&&Ai.disconnect()}function Pw(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,s){var i=s.split(":"),o=i[0],a=i.slice(1);return o&&a.length>0&&(r[o]=a.join(":").trim()),r},{})),n}function Mw(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",s=Si(ya(e));return s.prefix||(s.prefix=dn()),t&&n&&(s.prefix=t,s.iconName=n),s.iconName&&s.prefix||(s.prefix&&r.length>0&&(s.iconName=uw(s.prefix,e.innerText)||xa(s.prefix,Ca(e.innerText))),!s.iconName&&F.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(s.iconName=e.firstChild.data)),s}function Ow(e){var t=$r(e.attributes).reduce(function(s,i){return s.name!=="class"&&s.name!=="style"&&(s[i.name]=i.value),s},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return F.autoA11y&&(n?t["aria-labelledby"]="".concat(F.replacementClass,"-title-").concat(r||as()):(t["aria-hidden"]="true",t.focusable="false")),t}function Dw(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Rt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function xd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=Mw(e),r=n.iconName,s=n.prefix,i=n.rest,o=Ow(e),a=Aa("parseNodeAttributes",{},e),l=t.styleParser?Pw(e):[];return D({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:s,transform:Rt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:l,attributes:o}},a)}var Nw=vt.styles;function Id(e){var t=F.autoReplaceSvg==="nest"?xd(e,{styleParser:!1}):xd(e);return~t.extra.classes.indexOf(Qf)?Jt("generateLayersText",e,t):Jt("generateSvgReplacementMutation",e,t)}function Ad(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Gt)return Promise.resolve();var n=ye.documentElement.classList,r=function(c){return n.add("".concat(Zf,"-").concat(c))},s=function(c){return n.remove("".concat(Zf,"-").concat(c))},i=F.autoFetchSvg?Object.keys(wa):Object.keys(Nw);i.includes("fa")||i.push("fa");var o=[".".concat(Qf,":not([").concat(Dn,"])")].concat(i.map(function(f){return".".concat(f,":not([").concat(Dn,"])")})).join(", ");if(o.length===0)return Promise.resolve();var a=[];try{a=$r(e.querySelectorAll(o))}catch{}if(a.length>0)r("pending"),s("complete");else return Promise.resolve();var l=Na.begin("onTree"),u=a.reduce(function(f,c){try{var p=Id(c);p&&f.push(p)}catch(h){Xf||h.name==="MissingIcon"&&console.error(h)}return f},[]);return new Promise(function(f,c){Promise.all(u).then(function(p){Cd(p,function(){r("active"),r("complete"),s("pending"),typeof t=="function"&&t(),l(),f()})}).catch(function(p){l(),c(p)})})}function Rw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Id(e).then(function(n){n&&Cd([n],t)})}function Lw(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Ea(t||{}),s=n.mask;return s&&(s=(s||{}).icon?s:Ea(s||{})),e(r,D(D({},n),{},{mask:s}))}}var Bw=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,s=r===void 0?Rt:r,i=n.symbol,o=i===void 0?!1:i,a=n.mask,l=a===void 0?null:a,u=n.maskId,f=u===void 0?null:u,c=n.title,p=c===void 0?null:c,h=n.titleId,$=h===void 0?null:h,g=n.classes,w=g===void 0?[]:g,v=n.attributes,S=v===void 0?{}:v,N=n.styles,Q=N===void 0?{}:N;if(t){var ee=t.prefix,xe=t.iconName,at=t.icon;return ki(D({type:"icon"},t),function(){return Rn("beforeDOMElementCreation",{iconDefinition:t,params:n}),F.autoA11y&&(p?S["aria-labelledby"]="".concat(F.replacementClass,"-title-").concat($||as()):(S["aria-hidden"]="true",S.focusable="false")),Ta({icons:{main:Ma(at),mask:l?Ma(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:ee,iconName:xe,transform:D(D({},Rt),s),symbol:o,title:p,maskId:f,titleId:$,extra:{attributes:S,styles:Q,classes:w}})})}},Vw={mixout:function(){return{icon:Lw(Bw)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Ad,n.nodeCallback=Rw,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,s=r===void 0?ye:r,i=n.callback,o=i===void 0?function(){}:i;return Ad(s,o)},t.generateSvgReplacementMutation=function(n,r){var s=r.iconName,i=r.title,o=r.titleId,a=r.prefix,l=r.transform,u=r.symbol,f=r.mask,c=r.maskId,p=r.extra;return new Promise(function(h,$){Promise.all([Oa(s,a),f.iconName?Oa(f.iconName,f.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(g){var w=fa(g,2),v=w[0],S=w[1];h([n,Ta({icons:{main:v,mask:S},prefix:a,iconName:s,transform:l,symbol:u,maskId:c,title:i,titleId:o,extra:p,watchable:!0})])}).catch($)})},t.generateAbstractIcon=function(n){var r=n.children,s=n.attributes,i=n.main,o=n.transform,a=n.styles,l=vi(a);l.length>0&&(s.style=l);var u;return _a(o)&&(u=Jt("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),r.push(u||i.icon),{children:r,attributes:s}}}},Fw={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=r.classes,i=s===void 0?[]:s;return ki({type:"layer"},function(){Rn("beforeDOMElementCreation",{assembler:n,params:r});var o=[];return n(function(a){Array.isArray(a)?a.map(function(l){o=o.concat(l.abstract)}):o=o.concat(a.abstract)}),[{tag:"span",attributes:{class:["".concat(F.familyPrefix,"-layers")].concat(gi(i)).join(" ")},children:o}]})}}}},Ww={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=r.title,i=s===void 0?null:s,o=r.classes,a=o===void 0?[]:o,l=r.attributes,u=l===void 0?{}:l,f=r.styles,c=f===void 0?{}:f;return ki({type:"counter",content:n},function(){return Rn("beforeDOMElementCreation",{content:n,params:r}),_w({content:n.toString(),title:i,extra:{attributes:u,styles:c,classes:["".concat(F.familyPrefix,"-layers-counter")].concat(gi(a))}})})}}}},jw={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=r.transform,i=s===void 0?Rt:s,o=r.title,a=o===void 0?null:o,l=r.classes,u=l===void 0?[]:l,f=r.attributes,c=f===void 0?{}:f,p=r.styles,h=p===void 0?{}:p;return ki({type:"text",content:n},function(){return Rn("beforeDOMElementCreation",{content:n,params:r}),gd({content:n,transform:D(D({},Rt),i),title:a,extra:{attributes:c,styles:h,classes:["".concat(F.familyPrefix,"-layers-text")].concat(gi(u))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var s=r.title,i=r.transform,o=r.extra,a=null,l=null;if(qf){var u=parseInt(getComputedStyle(n).fontSize,10),f=n.getBoundingClientRect();a=f.width/u,l=f.height/u}return F.autoA11y&&!s&&(o.attributes["aria-hidden"]="true"),Promise.resolve([n,gd({content:n.innerHTML,width:a,height:l,transform:i,title:s,extra:o,watchable:!0})])}}},Uw=new RegExp('"',"ug"),Ed=[1105920,1112319];function zw(e){var t=e.replace(Uw,""),n=rw(t,0),r=n>=Ed[0]&&n<=Ed[1],s=t.length===2?t[0]===t[1]:!1;return{value:Ca(s?t[0]:t),isSecondary:r||s}}function Td(e,t){var n="".concat(Mg).concat(t.replace(":","-"));return new Promise(function(r,s){if(e.getAttribute(n)!==null)return r();var i=$r(e.children),o=i.filter(function(xe){return xe.getAttribute(pa)===t})[0],a=cn.getComputedStyle(e,t),l=a.getPropertyValue("font-family").match(Lg),u=a.getPropertyValue("font-weight"),f=a.getPropertyValue("content");if(o&&!l)return e.removeChild(o),r();if(l&&f!=="none"&&f!==""){var c=a.getPropertyValue("content"),p=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?yi[l[2].toLowerCase()]:Bg[u],h=zw(c),$=h.value,g=h.isSecondary,w=l[0].startsWith("FontAwesome"),v=xa(p,$),S=v;if(w){var N=cw($);N.iconName&&N.prefix&&(v=N.iconName,p=N.prefix)}if(v&&!g&&(!o||o.getAttribute($a)!==p||o.getAttribute(ga)!==S)){e.setAttribute(n,S),o&&e.removeChild(o);var Q=Dw(),ee=Q.extra;ee.attributes[pa]=t,Oa(v,p).then(function(xe){var at=Ta(D(D({},Q),{},{icons:{main:xe,mask:Ia()},prefix:p,iconName:S,extra:ee,watchable:!0})),I=ye.createElement("svg");t==="::before"?e.insertBefore(I,e.firstChild):e.appendChild(I),I.outerHTML=at.map(function(j){return ls(j)}).join(`
762
+ `),e.removeAttribute(n),r()}).catch(s)}else r()}else r()})}function Hw(e){return Promise.all([Td(e,"::before"),Td(e,"::after")])}function Gw(e){return e.parentNode!==document.head&&!~Dg.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(pa)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Pd(e){if(Gt)return new Promise(function(t,n){var r=$r(e.querySelectorAll("*")).filter(Gw).map(Hw),s=Na.begin("searchPseudoElements");Sd(),Promise.all(r).then(function(){s(),La(),t()}).catch(function(){s(),La(),n()})})}var qw={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Pd,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,s=r===void 0?ye:r;F.searchPseudoElements&&Pd(s)}}},Md=!1,Yw={mixout:function(){return{dom:{unwatch:function(){Sd(),Md=!0}}}},hooks:function(){return{bootstrap:function(){kd(Aa("mutationObserverCallbacks",{}))},noAuto:function(){Tw()},watch:function(n){var r=n.observeMutationsRoot;Md?La():kd(Aa("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},Od=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,s){var i=s.toLowerCase().split("-"),o=i[0],a=i.slice(1).join("-");if(o&&a==="h")return r.flipX=!0,r;if(o&&a==="v")return r.flipY=!0,r;if(a=parseFloat(a),isNaN(a))return r;switch(o){case"grow":r.size=r.size+a;break;case"shrink":r.size=r.size-a;break;case"left":r.x=r.x-a;break;case"right":r.x=r.x+a;break;case"up":r.y=r.y-a;break;case"down":r.y=r.y+a;break;case"rotate":r.rotate=r.rotate+a;break}return r},n)},Jw={mixout:function(){return{parse:{transform:function(n){return Od(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var s=r.getAttribute("data-fa-transform");return s&&(n.transform=Od(s)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,s=n.transform,i=n.containerWidth,o=n.iconWidth,a={transform:"translate(".concat(i/2," 256)")},l="translate(".concat(s.x*32,", ").concat(s.y*32,") "),u="scale(".concat(s.size/16*(s.flipX?-1:1),", ").concat(s.size/16*(s.flipY?-1:1),") "),f="rotate(".concat(s.rotate," 0 0)"),c={transform:"".concat(l," ").concat(u," ").concat(f)},p={transform:"translate(".concat(o/2*-1," -256)")},h={outer:a,inner:c,path:p};return{tag:"g",attributes:D({},h.outer),children:[{tag:"g",attributes:D({},h.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:D(D({},r.icon.attributes),h.path)}]}]}}}},Ba={x:0,y:0,width:"100%",height:"100%"};function Dd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function Zw(e){return e.tag==="g"?e.children:[e]}var Xw={hooks:function(){return{parseNodeAttributes:function(n,r){var s=r.getAttribute("data-fa-mask"),i=s?Si(s.split(" ").map(function(o){return o.trim()})):Ia();return i.prefix||(i.prefix=dn()),n.mask=i,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,s=n.attributes,i=n.main,o=n.mask,a=n.maskId,l=n.transform,u=i.width,f=i.icon,c=o.width,p=o.icon,h=Zg({transform:l,containerWidth:c,iconWidth:u}),$={tag:"rect",attributes:D(D({},Ba),{},{fill:"white"})},g=f.children?{children:f.children.map(Dd)}:{},w={tag:"g",attributes:D({},h.inner),children:[Dd(D({tag:f.tag,attributes:D(D({},f.attributes),h.path)},g))]},v={tag:"g",attributes:D({},h.outer),children:[w]},S="mask-".concat(a||as()),N="clip-".concat(a||as()),Q={tag:"mask",attributes:D(D({},Ba),{},{id:S,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[$,v]},ee={tag:"defs",children:[{tag:"clipPath",attributes:{id:N},children:Zw(p)},Q]};return r.push(ee,{tag:"rect",attributes:D({fill:"currentColor","clip-path":"url(#".concat(N,")"),mask:"url(#".concat(S,")")},Ba)}),{children:r,attributes:s}}}},Kw={provides:function(t){var n=!1;cn.matchMedia&&(n=cn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],s={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:D(D({},s),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=D(D({},i),{},{attributeName:"opacity"}),a={tag:"circle",attributes:D(D({},s),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||a.children.push({tag:"animate",attributes:D(D({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:D(D({},o),{},{values:"1;0;1;1;0;1;"})}),r.push(a),r.push({tag:"path",attributes:D(D({},s),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:D(D({},o),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:D(D({},s),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:D(D({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},Qw={hooks:function(){return{parseNodeAttributes:function(n,r){var s=r.getAttribute("data-fa-symbol"),i=s===null?!1:s===""?!0:s;return n.symbol=i,n}}}},ey=[Qg,Vw,Fw,Ww,jw,qw,Yw,Jw,Xw,Kw,Qw];hw(ey,{mixoutsTo:rt}),rt.noAuto,rt.config,rt.library,rt.dom;var Va=rt.parse;rt.findIconDefinition,rt.toHtml;var ty=rt.icon;rt.layer,rt.text,rt.counter;function ny(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ry(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var Nd={exports:{}},sy="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",iy=sy,oy=iy;function Rd(){}function Ld(){}Ld.resetWarningCache=Rd;var ay=function(){function e(r,s,i,o,a,l){if(l!==oy){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ld,resetWarningCache:Rd};return n.PropTypes=n,n};Nd.exports=ay();var ly=Nd.exports;const K=ny(ly);function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function hn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bd(Object(n),!0).forEach(function(r){_r(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bd(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ei(e){"@babel/helpers - typeof";return Ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ei(e)}function _r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uy(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function cy(e,t){if(e==null)return{};var n=uy(e,t),r,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)r=i[s],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Fa(e){return fy(e)||dy(e)||hy(e)||my()}function fy(e){if(Array.isArray(e))return Wa(e)}function dy(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hy(e,t){if(e){if(typeof e=="string")return Wa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wa(e,t)}}function Wa(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function my(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
763
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function py(e){var t,n=e.beat,r=e.fade,s=e.beatFade,i=e.bounce,o=e.shake,a=e.flash,l=e.spin,u=e.spinPulse,f=e.spinReverse,c=e.pulse,p=e.fixedWidth,h=e.inverse,$=e.border,g=e.listItem,w=e.flip,v=e.size,S=e.rotation,N=e.pull,Q=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":s,"fa-bounce":i,"fa-shake":o,"fa-flash":a,"fa-spin":l,"fa-spin-reverse":f,"fa-spin-pulse":u,"fa-pulse":c,"fa-fw":p,"fa-inverse":h,"fa-border":$,"fa-li":g,"fa-flip":w===!0,"fa-flip-horizontal":w==="horizontal"||w==="both","fa-flip-vertical":w==="vertical"||w==="both"},_r(t,"fa-".concat(v),typeof v<"u"&&v!==null),_r(t,"fa-rotate-".concat(S),typeof S<"u"&&S!==null&&S!==0),_r(t,"fa-pull-".concat(N),typeof N<"u"&&N!==null),_r(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(Q).map(function(ee){return Q[ee]?ee:null}).filter(function(ee){return ee})}function $y(e){return e=e-0,e===e}function Vd(e){return $y(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var gy=["style"];function wy(e){return e.charAt(0).toUpperCase()+e.slice(1)}function yy(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),s=Vd(n.slice(0,r)),i=n.slice(r+1).trim();return s.startsWith("webkit")?t[wy(s)]=i:t[s]=i,t},{})}function Fd(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return Fd(e,l)}),s=Object.keys(t.attributes||{}).reduce(function(l,u){var f=t.attributes[u];switch(u){case"class":l.attrs.className=f,delete t.attributes.class;break;case"style":l.attrs.style=yy(f);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?l.attrs[u.toLowerCase()]=f:l.attrs[Vd(u)]=f}return l},{attrs:{}}),i=n.style,o=i===void 0?{}:i,a=cy(n,gy);return s.attrs.style=hn(hn({},s.attrs.style),o),e.apply(void 0,[t.tag,hn(hn({},s.attrs),a)].concat(Fa(r)))}var Wd=!1;try{Wd=!0}catch{}function _y(){if(!Wd&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function jd(e){if(e&&Ei(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Va.icon)return Va.icon(e);if(e===null)return null;if(e&&Ei(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function ja(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?_r({},e,t):{}}var fs=Ms.forwardRef(function(e,t){var n=e.icon,r=e.mask,s=e.symbol,i=e.className,o=e.title,a=e.titleId,l=e.maskId,u=jd(n),f=ja("classes",[].concat(Fa(py(e)),Fa(i.split(" ")))),c=ja("transform",typeof e.transform=="string"?Va.transform(e.transform):e.transform),p=ja("mask",jd(r)),h=ty(u,hn(hn(hn(hn({},f),c),p),{},{symbol:s,title:o,titleId:a,maskId:l}));if(!h)return _y("Could not find icon",u),null;var $=h.abstract,g={ref:t};return Object.keys(e).forEach(function(w){fs.defaultProps.hasOwnProperty(w)||(g[w]=e[w])}),vy($[0],g)});fs.displayName="FontAwesomeIcon",fs.propTypes={beat:K.bool,border:K.bool,beatFade:K.bool,bounce:K.bool,className:K.string,fade:K.bool,flash:K.bool,mask:K.oneOfType([K.object,K.array,K.string]),maskId:K.string,fixedWidth:K.bool,inverse:K.bool,flip:K.oneOf([!0,!1,"horizontal","vertical","both"]),icon:K.oneOfType([K.object,K.array,K.string]),listItem:K.bool,pull:K.oneOf(["right","left"]),pulse:K.bool,rotation:K.oneOf([0,90,180,270]),shake:K.bool,size:K.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:K.bool,spinPulse:K.bool,spinReverse:K.bool,symbol:K.oneOfType([K.bool,K.string]),title:K.string,titleId:K.string,transform:K.oneOfType([K.string,K.object]),swapOpacity:K.bool},fs.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var vy=Fd.bind(null,Ms.createElement);/*!
764
764
  * Font Awesome Free 6.1.2 by @fontawesome - https://fontawesome.com
765
765
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
766
766
  * Copyright 2022 Fonticons, Inc.
767
- */var Iy={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M224 480c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L77.25 256l169.4 169.4c12.5 12.5 12.5 32.75 0 45.25C240.4 476.9 232.2 480 224 480z"]},Ay={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z"]},Ey=Ay,Ty={prefix:"fas",iconName:"shield-halved",icon:[512,512,["shield-alt"],"f3ed","M256-.0078C260.7-.0081 265.2 1.008 269.4 2.913L457.7 82.79C479.7 92.12 496.2 113.8 496 139.1C495.5 239.2 454.7 420.7 282.4 503.2C265.7 511.1 246.3 511.1 229.6 503.2C57.25 420.7 16.49 239.2 15.1 139.1C15.87 113.8 32.32 92.12 54.3 82.79L242.7 2.913C246.8 1.008 251.4-.0081 256-.0078V-.0078zM256 444.8C393.1 378 431.1 230.1 432 141.4L256 66.77L256 444.8z"]},Py=Ty;function Ya(e,t){return d(ps,e,...t)}Ya({icon:Iy},[]),Ya({icon:Py,size:"5x"},[]);const My=Ya({icon:Ey,size:"5x"},[]);function Oy(){let e,t,n,r,s,i;return pr(()=>{Yt(0)}),d("div",C(y([["className",be(" ",["h-screen",Ko])],(e=[d("div",C(y([["className","h-full flex justify-center items-center"],(t=[d("div",C(y([["className","border rounded-lg shadow-md sm:max-w-md p-8 text-center"],(n=[d("div",C(A((r=[d("div",C(y([["className",be(" ",[Ko])],(s=[d("i",{className:"text-red-600",children:b.Children.toArray([My])}),d("h4",{className:"text-2xl my-4 text-red-600",children:"This doesn't look right"}),d("p",{className:"mt-3 mb-5 text-gray-500",children:"Your invite has expired. Reach out to your employer to get another one."})],["children",b.Children.toArray(Array.from(s))])]))),d("p",C(y([["className","mt-16 text-gray-400 text-right text-x"],(i=[d("small",{children:[`Flare HR Pty Ltd © 2015-${Do(ec())}`]})],["children",b.Children.toArray(Array.from(i))])])))],["children",b.Children.toArray(Array.from(r))]))))],["children",b.Children.toArray(Array.from(n))])])))],["children",b.Children.toArray(Array.from(t))])])))],["children",b.Children.toArray(Array.from(e))])])))}class Zd{constructor(t){this.k=t}}function ut(e){return new Zd(e)}function Y(e){return e.k}class ae extends Zd{constructor(t,n,r,s){super(t),this.left=n,this.right=r,this.h=s|0}}function ct(e,t,n,r){return new ae(e,t,n,r)}function ge(e){return e.left}function me(e){return e.right}function Sr(e){return e.h}function Y3(){}function Xd(e,t){e:for(;;){const n=e,r=t;if(n!=null){const s=x(n);if(s instanceof ae){const i=s;e=ge(i),t=Xd(me(i),r+1);continue e}else return r+1|0}else return r|0}}function Dy(e){return Xd(e,0)}function xt(e,t,n){let r,s,i;const o=e;if(o!=null){const f=x(o);i=f instanceof ae?(r=f,Sr(r)):1}else i=0;let a;const l=n;if(l!=null){const f=x(l);a=f instanceof ae?(s=f,Sr(s)):1}else a=0;const u=(i<a?a:i)|0;return u===0?ut(t):ct(t,e,n,u+1)}function Kd(e,t,n){let r,s,i,o,a,l,u,f,c;const p=e;if(p!=null){const g=x(p);c=g instanceof ae?(r=g,Sr(r)):1}else c=0;let m;const $=n;if($!=null){const g=x($);m=g instanceof ae?(s=g,Sr(s)):1}else m=0;if(m>c+2){const g=x(n);if(g instanceof ae){const w=g;if(i=ge(w),(i!=null?(o=x(i),o instanceof ae?(a=o,Sr(a)):1):0)>c+1){const v=x(ge(w));if(v instanceof ae){const S=v;return xt(xt(e,t,ge(S)),Y(S),xt(me(S),Y(w),me(w)))}else throw new Error("internal error: Set.rebalance")}else return xt(xt(e,t,ge(w)),Y(w),me(w))}else throw new Error("internal error: Set.rebalance")}else if(c>m+2){const g=x(e);if(g instanceof ae){const w=g;if(l=me(w),(l!=null?(u=x(l),u instanceof ae?(f=u,Sr(f)):1):0)>m+1){const v=x(me(w));if(v instanceof ae){const S=v;return xt(xt(ge(w),Y(w),ge(S)),Y(S),xt(me(S),t,n))}else throw new Error("internal error: Set.rebalance")}else return xt(ge(w),Y(w),xt(me(w),t,n))}else throw new Error("internal error: Set.rebalance")}else return xt(e,t,n)}function kr(e,t,n){if(n!=null){const r=x(n),s=e.Compare(t,Y(r))|0;if(r instanceof ae){const i=r;return s<0?Kd(kr(e,t,ge(i)),Y(i),me(i)):s===0?n:Kd(ge(i),Y(i),kr(e,t,me(i)))}else{const i=e.Compare(t,Y(r))|0;return i<0?ct(t,void 0,n,2):i===0?n:ct(t,n,void 0,2)}}else return ut(t)}function Qd(e,t,n){e:for(;;){const r=e,s=t,i=n;if(i!=null){const o=x(i),a=r.Compare(s,Y(o))|0;if(o instanceof ae){const l=o;if(a<0){e=r,t=s,n=ge(l);continue e}else{if(a===0)return!0;e=r,t=s,n=me(l);continue e}}else return a===0}else return!1}}function e0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=x(r);if(s instanceof ae){const i=s;e0(n,ge(i)),n(Y(i)),e=n,t=me(i);continue e}else n(Y(s))}break}}class Ny extends B{constructor(t,n){super(),this.stack=t,this.started=n}}function t0(e){e:for(;;){const t=e;if(M(t))return de();{const n=k(t),r=P(t);if(n!=null){const s=x(n);if(s instanceof ae){const i=s;e=Se([ge(i),ut(Y(i)),me(i)],r);continue e}else return t}else{e=r;continue e}}}}function n0(e){return new Ny(t0(A(e)),!1)}function Ry(){throw new Error("Enumeration not started")}function Ly(){throw new Error("Enumeration already started")}function r0(e){if(e.started){const t=e.stack;if(M(t))return Ly();if(k(t)!=null){const n=x(k(t));return Y(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Ry()}function By(e){if(e.started){const t=e.stack;if(M(t))return!1;if(k(t)!=null){if(x(k(t))instanceof ae)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=t0(P(t)),!M(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!M(e.stack)}function s0(e){let t=n0(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return r0(t)},"System.Collections.IEnumerator.get_Current"(){return r0(t)},"System.Collections.IEnumerator.MoveNext"(){return By(t)},"System.Collections.IEnumerator.Reset"(){t=n0(e)},Dispose(){}}}function Vy(e,t,n){e:for(;;){const r=e,s=t,i=n;if(M(s))return M(i)?0:-1;if(M(i))return 1;if(k(i)!=null)if(k(s)!=null){const o=x(k(s)),a=x(k(i));if(o instanceof ae){const l=o;if(ge(l)==null)if(a instanceof ae){const u=a;if(ge(u)==null){const f=r.Compare(Y(l),Y(u))|0;if(f!==0)return f|0;e=r,t=nt(me(l),P(s)),n=nt(me(u),P(i));continue e}else{let f,c,p,m,$;switch(M(s)?M(i)?f=2:k(i)!=null?(f=1,m=P(i),$=x(k(i))):f=2:k(s)!=null?(f=0,c=P(s),p=x(k(s))):M(i)?f=2:k(i)!=null?(f=1,m=P(i),$=x(k(i))):f=2,f){case 0:if(p instanceof ae){const g=p;e=r,t=Se([ge(g),ct(Y(g),void 0,me(g),0)],c),n=i;continue e}else{e=r,t=Se([void 0,ut(Y(p))],c),n=i;continue e}case 1:if($ instanceof ae){const g=$;e=r,t=s,n=Se([ge(g),ct(Y(g),void 0,me(g),0)],m);continue e}else{e=r,t=s,n=Se([void 0,ut(Y($))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(Y(l),Y(a))|0;if(u!==0)return u|0;e=r,t=nt(me(l),P(s)),n=nt(void 0,P(i));continue e}else{let u,f,c,p,m;switch(M(s)?M(i)?u=2:k(i)!=null?(u=1,p=P(i),m=x(k(i))):u=2:k(s)!=null?(u=0,f=P(s),c=x(k(s))):M(i)?u=2:k(i)!=null?(u=1,p=P(i),m=x(k(i))):u=2,u){case 0:if(c instanceof ae){const $=c;e=r,t=Se([ge($),ct(Y($),void 0,me($),0)],f),n=i;continue e}else{e=r,t=Se([void 0,ut(Y(c))],f),n=i;continue e}case 1:if(m instanceof ae){const $=m;e=r,t=s,n=Se([ge($),ct(Y($),void 0,me($),0)],p);continue e}else{e=r,t=s,n=Se([void 0,ut(Y(m))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof ae){const l=a;if(ge(l)==null){const u=r.Compare(Y(o),Y(l))|0;if(u!==0)return u|0;e=r,t=nt(void 0,P(s)),n=nt(me(l),P(i));continue e}else{let u,f,c,p,m;switch(M(s)?M(i)?u=2:k(i)!=null?(u=1,p=P(i),m=x(k(i))):u=2:k(s)!=null?(u=0,f=P(s),c=x(k(s))):M(i)?u=2:k(i)!=null?(u=1,p=P(i),m=x(k(i))):u=2,u){case 0:if(c instanceof ae){const $=c;e=r,t=Se([ge($),ct(Y($),void 0,me($),0)],f),n=i;continue e}else{e=r,t=Se([void 0,ut(Y(c))],f),n=i;continue e}case 1:if(m instanceof ae){const $=m;e=r,t=s,n=Se([ge($),ct(Y($),void 0,me($),0)],p);continue e}else{e=r,t=s,n=Se([void 0,ut(Y(m))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(Y(o),Y(a))|0;if(l!==0)return l|0;e=r,t=P(s),n=P(i);continue e}}else{x(k(i));let o,a,l,u,f;switch(M(s)?M(i)?o=2:k(i)!=null?(o=1,u=P(i),f=x(k(i))):o=2:k(s)!=null?(o=0,a=P(s),l=x(k(s))):M(i)?o=2:k(i)!=null?(o=1,u=P(i),f=x(k(i))):o=2,o){case 0:if(l instanceof ae){const c=l;e=r,t=Se([ge(c),ct(Y(c),void 0,me(c),0)],a),n=i;continue e}else{e=r,t=Se([void 0,ut(Y(l))],a),n=i;continue e}case 1:if(f instanceof ae){const c=f;e=r,t=s,n=Se([ge(c),ct(Y(c),void 0,me(c),0)],u);continue e}else{e=r,t=s,n=Se([void 0,ut(Y(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(k(s)!=null){x(k(s));let o,a,l,u,f;switch(M(s)?M(i)?o=2:k(i)!=null?(o=1,u=P(i),f=x(k(i))):o=2:k(s)!=null?(o=0,a=P(s),l=x(k(s))):M(i)?o=2:k(i)!=null?(o=1,u=P(i),f=x(k(i))):o=2,o){case 0:if(l instanceof ae){const c=l;e=r,t=Se([ge(c),ct(Y(c),void 0,me(c),0)],a),n=i;continue e}else{e=r,t=Se([void 0,ut(Y(l))],a),n=i;continue e}case 1:if(f instanceof ae){const c=f;e=r,t=s,n=Se([ge(c),ct(Y(c),void 0,me(c),0)],u);continue e}else{e=r,t=s,n=Se([void 0,ut(Y(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=P(s),n=P(i);continue e}}}function i0(e,t,n){return t==null?n==null?0:-1:n==null?1:Vy(e,A(t),A(n))|0}function Fy(e,t,n){let r=n;e0(s=>{vt(t,r,s),r=r+1|0},e)}function Wy(e,t,n){e:for(;;){const r=e,s=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=kr(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),s),n=i;continue e}else return s}}function jy(e,t){return si((n,r)=>kr(e,r,n),void 0,t)}function Uy(e,t){return Dt((n,r)=>kr(e,r,n),void 0,t)}function o0(e,t){if(wt(t))return jy(e,t);if(t instanceof He)return Uy(e,t);{const n=pe(t);try{return Wy(e,void 0,n)}finally{ue(n)}}}class Ja{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Gy(this)|0}Equals(t){let n;const r=this;return t instanceof Ja&&(n=t,i0(xr(r),It(r),It(n))===0)}toString(){return"set ["+be("; ",Ie(n=>Mt(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return i0(xr(n),It(n),It(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 Qd(xr(n),t,It(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Fy(It(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Za(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Za(this)|0}GetEnumerator(){return s0(It(this))}[Symbol.iterator](){return jr(pe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return s0(It(this))}get size(){return Za(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 a0(this,t)}keys(){return Ie(n=>n,this)}values(){return Ie(n=>n,this)}entries(){return Ie(n=>[n,n],this)}forEach(t,n){const r=this;Tn(s=>{t(s,s,r)},r)}}function Ni(e,t){return new Ja(e,t)}function xr(e){return e.comparer}function It(e){return e.tree}function zy(e){return Ni(e,void 0)}function Hy(e,t){return Ni(xr(e),kr(xr(e),t,It(e)))}function Za(e){return Dy(It(e))}function a0(e,t){return Qd(xr(e),t,It(e))}function Gy(e){let t=0;const n=pe(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+Ht(r)+631|0}}finally{ue(n)}return Math.abs(t)|0}function Xa(e,t){return a0(t,e)}function qy(e,t){return Hy(t,e)}function Yy(e){return zy(e)}function Jy(e,t){return Ni(t,o0(t,e))}function Zy(e,t){return Ni(t,o0(t,e))}function Xy(){return de()}function Ka(e){return be("/",e)}function Ky(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Ka(t),n])}function l0(e,t,n){try{ue(n)}catch(r){e(["Error stopping subscription: "+Ka(t),r])}}function Qy(e,t,n,r){try{return[n,r(t)]}catch(s){e(["Error starting subscription: "+Ka(n),s]);return}}function e_(e,t){Kr(n=>{l0(e,n[0],n[1])},t)}function u0(e,t,n,r,s,i){return Kr(o=>{Ky(e,o)},n),Kr(o=>{l0(e,o[0],o[1])},r),bt(s,V1(o=>Qy(e,t,o[0],o[1]),i))}function t_(){return[de(),Yy({Compare:ht}),de()]}function n_(e,t,n,r,s){return Xa(e,r)?[nt(e,n),r,s]:[n,qy(e,r),nt([e,t],s)]}function r_(e){return T1((t,n)=>n_(t[0],t[1],n[0],n[1],n[2]),e,t_())}const s_=de();function c0(e,t){const n=Jy(rt(o=>o[0],e),{Compare:ht}),r=r_(t),s=r[1],i=r[0];if(n.Equals(s))return[i,de(),e,de()];{const o=B1(a=>Xa(a[0],s),e);return[i,o[1],o[0],Fo(a=>!Xa(a[0],n),r[2])]}}class i_{constructor(t,n,r){this.OnNext=t,this.OnError=n||(s=>{}),this.OnCompleted=r||(()=>{})}}function o_(e,t){t.Subscribe(new i_(e))}class a_{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 u_(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const s=n===void 0?t:(r=t,n);this.delegates.forEach(i=>{i(r,s)})}}class l_ extends a_{}function u_(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(s,i)=>n.OnNext(i);return e(r),{Dispose(){t(r)}}}}}class c_{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 l_}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 f_(e,t){console.error(Ee(e),t)}function d_(e,t){let n,r=new c_(e);r.AutoReset=!1,n=r,o_(t,n.Elapsed()),n.Enabled=!0,n.Start()}function f0(e,t,n){Kr(r=>{try{r(t)}catch(s){e(s)}},n)}function X(){return de()}function Qa(e,t){return rt(n=>r=>{n(s=>{r(e(s))})},t)}function d0(e){return Vo(e)}function h0(e){return A(e)}function At(e,t,n,r,s){return A(i=>{e(I.Delay(()=>I.Bind(Wf(t(n)),o=>{const a=o;return i(a.tag===1?s(a.fields[0]):r(a.fields[0])),I.Zero()})))})}function el(e,t,n,r){return A(s=>{e(I.Delay(()=>I.Bind(Wf(t(n)),i=>{const o=i;return o.tag===0&&s(r(o.fields[0])),I.Zero()})))})}function Je(e){d_(1,t=>{ha(e)})}function h_(e,t,n,r){const s=ht(e,n)|0;if(s===0)throw new Error("The step of a range cannot be zero");const i=s>0;return o=>{const a=ht(o,t)|0;return i&&a<=0||!i&&a>=0?[o,r(o,e)]:void 0}}function m_(e,t,n,r,s){const i=h_(t,n,r,s);return E(()=>K1(i,e))}function m0(e,t,n){return m_(e,t,n,0,(r,s)=>r+s)}class Ir extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class p_{constructor(t){this.state=new Ir(0,[ri(new Array($c(t,10)),0,$c(t,10),null),0])}}function $_(e){return new p_(e)}function p0(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,s=t.fields[0],i=(r+1)%s.length|0;return i===n?e.state=new Ir(0,[s,n]):e.state=new Ir(1,[s,n,i]),Ee(re(r,s))}else return}function g_(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,s=n.fields[2]|0,i=n.fields[0];vt(i,r,t);const o=(r+1)%i.length|0;o===s?e.state=new Ir(1,[w_(e,s,i),i.length,0]):e.state=new Ir(1,[i,o,s])}else{const r=n.fields[1]|0,s=n.fields[0];vt(s,r,t);const i=(r+1)%s.length|0;e.state=new Ir(1,[s,i,r])}}function w_(e,t,n){return Array.from(E(()=>V(sp(t,n),E(()=>V(ip(t,n),E(()=>kc(r=>_(te()),m0(0,1,n.length))))))))}class tl extends B{constructor(t,n,r,s,i,o,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=s,this.setState=i,this.onError=o,this.termination=a}}function Ri(e,t,n){return new tl(e,t,r=>Xy(),n,ne(r=>{const s=Pt(n)(r);return i=>{s(i)}}),r=>{f_(r[0],r[1])},[r=>!1,r=>{}])}function $0(e,t){return new tl(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function g0(e){return Pt(e.view)}function y_(e){return e.init}function __(e,t,n,r,s,i,o){const a=Pt(e)(o.init),l=js(t)(Pt(o.update)),u=js(n)(Pt(o.view)),f=js(r)(Pt(o.setState));return new tl(a,ne(l),Pt(s)(o.subscribe),ne(u),ne(f),o.onError,i(o.termination))}function v_(e,t,n){let r;const s=n.init(t),i=s[0],o=n.subscribe(i),a=n.termination,l=$_(10);let u=!1,f=i,c=s_,p=!1;const m=w=>{p||(g_(l,w),u||(u=!0,g(),u=!1))},$=Pt(e)(m),g=()=>{let w,v=p0(l);for(;!p&&v!=null;){const S=x(v);if(a[0](S))e_(n.onError,c),a[1](f),p=!0;else{const N=n.update(S,f),ee=N[0],J=n.subscribe(ee);n.setState(ee,$),f0(Ae=>{n.onError([ze(Ue("Error handling the message: %A"))(S),Ae])},$,N[1]),f=ee,c=(w=c0(c,J),u0(n.onError,$,w[0],w[1],w[2],w[3])),v=p0(l)}}};u=!0,n.setState(i,$),f0(w=>{n.onError([ze(Ue("Error intitializing:")),w])},$,s[1]),c=(r=c0(c,o),u0(n.onError,$,r[0],r[1],r[2],r[3])),g(),u=!1}function w0(e,t){v_(ne(n=>n),e,t)}function b_(e){w0(void 0,e)}var y0={exports:{}},_0={};const C_=ly(um);/**
767
+ */var by={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M224 480c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L77.25 256l169.4 169.4c12.5 12.5 12.5 32.75 0 45.25C240.4 476.9 232.2 480 224 480z"]},Cy={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z"]},Sy=Cy,ky={prefix:"fas",iconName:"shield-halved",icon:[512,512,["shield-alt"],"f3ed","M256-.0078C260.7-.0081 265.2 1.008 269.4 2.913L457.7 82.79C479.7 92.12 496.2 113.8 496 139.1C495.5 239.2 454.7 420.7 282.4 503.2C265.7 511.1 246.3 511.1 229.6 503.2C57.25 420.7 16.49 239.2 15.1 139.1C15.87 113.8 32.32 92.12 54.3 82.79L242.7 2.913C246.8 1.008 251.4-.0081 256-.0078V-.0078zM256 444.8C393.1 378 431.1 230.1 432 141.4L256 66.77L256 444.8z"]},xy=ky;function Ua(e,t){return d(fs,e,...t)}Ua({icon:by},[]),Ua({icon:xy,size:"5x"},[]);const Iy=Ua({icon:Sy,size:"5x"},[]);function Ay(){let e,t,n,r,s,i;return dr(()=>{Ht(0)}),d("div",C(y([["className",_e(" ",["h-screen",Yo])],(e=[d("div",C(y([["className","h-full flex justify-center items-center"],(t=[d("div",C(y([["className","border rounded-lg shadow-md sm:max-w-md p-8 text-center"],(n=[d("div",C(E((r=[d("div",C(y([["className",_e(" ",[Yo])],(s=[d("i",{className:"text-red-600",children:b.Children.toArray([Iy])}),d("h4",{className:"text-2xl my-4 text-red-600",children:"This doesn't look right"}),d("p",{className:"mt-3 mb-5 text-gray-500",children:"Your invite has expired. Reach out to your employer to get another one."})],["children",b.Children.toArray(Array.from(s))])]))),d("p",C(y([["className","mt-16 text-gray-400 text-right text-x"],(i=[d("small",{children:[`Flare HR Pty Ltd © 2015-${To(Yu())}`]})],["children",b.Children.toArray(Array.from(i))])])))],["children",b.Children.toArray(Array.from(r))]))))],["children",b.Children.toArray(Array.from(n))])])))],["children",b.Children.toArray(Array.from(t))])])))],["children",b.Children.toArray(Array.from(e))])])))}class Ud{constructor(t){this.k=t}}function st(e){return new Ud(e)}function q(e){return e.k}class ie extends Ud{constructor(t,n,r,s){super(t),this.left=n,this.right=r,this.h=s|0}}function it(e,t,n,r){return new ie(e,t,n,r)}function ge(e){return e.left}function he(e){return e.right}function vr(e){return e.h}function j3(){}function zd(e,t){e:for(;;){const n=e,r=t;if(n!=null){const s=x(n);if(s instanceof ie){const i=s;e=ge(i),t=zd(he(i),r+1);continue e}else return r+1|0}else return r|0}}function Ey(e){return zd(e,0)}function bt(e,t,n){let r,s,i;const o=e;if(o!=null){const f=x(o);i=f instanceof ie?(r=f,vr(r)):1}else i=0;let a;const l=n;if(l!=null){const f=x(l);a=f instanceof ie?(s=f,vr(s)):1}else a=0;const u=(i<a?a:i)|0;return u===0?st(t):it(t,e,n,u+1)}function Hd(e,t,n){let r,s,i,o,a,l,u,f,c;const p=e;if(p!=null){const g=x(p);c=g instanceof ie?(r=g,vr(r)):1}else c=0;let h;const $=n;if($!=null){const g=x($);h=g instanceof ie?(s=g,vr(s)):1}else h=0;if(h>c+2){const g=x(n);if(g instanceof ie){const w=g;if(i=ge(w),(i!=null?(o=x(i),o instanceof ie?(a=o,vr(a)):1):0)>c+1){const v=x(ge(w));if(v instanceof ie){const S=v;return bt(bt(e,t,ge(S)),q(S),bt(he(S),q(w),he(w)))}else throw new Error("internal error: Set.rebalance")}else return bt(bt(e,t,ge(w)),q(w),he(w))}else throw new Error("internal error: Set.rebalance")}else if(c>h+2){const g=x(e);if(g instanceof ie){const w=g;if(l=he(w),(l!=null?(u=x(l),u instanceof ie?(f=u,vr(f)):1):0)>h+1){const v=x(he(w));if(v instanceof ie){const S=v;return bt(bt(ge(w),q(w),ge(S)),q(S),bt(he(S),t,n))}else throw new Error("internal error: Set.rebalance")}else return bt(ge(w),q(w),bt(he(w),t,n))}else throw new Error("internal error: Set.rebalance")}else return bt(e,t,n)}function br(e,t,n){if(n!=null){const r=x(n),s=e.Compare(t,q(r))|0;if(r instanceof ie){const i=r;return s<0?Hd(br(e,t,ge(i)),q(i),he(i)):s===0?n:Hd(ge(i),q(i),br(e,t,he(i)))}else{const i=e.Compare(t,q(r))|0;return i<0?it(t,void 0,n,2):i===0?n:it(t,n,void 0,2)}}else return st(t)}function Gd(e,t,n){e:for(;;){const r=e,s=t,i=n;if(i!=null){const o=x(i),a=r.Compare(s,q(o))|0;if(o instanceof ie){const l=o;if(a<0){e=r,t=s,n=ge(l);continue e}else{if(a===0)return!0;e=r,t=s,n=he(l);continue e}}else return a===0}else return!1}}function qd(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=x(r);if(s instanceof ie){const i=s;qd(n,ge(i)),n(q(i)),e=n,t=he(i);continue e}else n(q(s))}break}}class Ty extends B{constructor(t,n){super(),this.stack=t,this.started=n}}function Yd(e){e:for(;;){const t=e;if(M(t))return ce();{const n=k(t),r=P(t);if(n!=null){const s=x(n);if(s instanceof ie){const i=s;e=be([ge(i),st(q(i)),he(i)],r);continue e}else return t}else{e=r;continue e}}}}function Jd(e){return new Ty(Yd(E(e)),!1)}function Py(){throw new Error("Enumeration not started")}function My(){throw new Error("Enumeration already started")}function Zd(e){if(e.started){const t=e.stack;if(M(t))return My();if(k(t)!=null){const n=x(k(t));return q(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Py()}function Oy(e){if(e.started){const t=e.stack;if(M(t))return!1;if(k(t)!=null){if(x(k(t))instanceof ie)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Yd(P(t)),!M(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!M(e.stack)}function Xd(e){let t=Jd(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Zd(t)},"System.Collections.IEnumerator.get_Current"(){return Zd(t)},"System.Collections.IEnumerator.MoveNext"(){return Oy(t)},"System.Collections.IEnumerator.Reset"(){t=Jd(e)},Dispose(){}}}function Dy(e,t,n){e:for(;;){const r=e,s=t,i=n;if(M(s))return M(i)?0:-1;if(M(i))return 1;if(k(i)!=null)if(k(s)!=null){const o=x(k(s)),a=x(k(i));if(o instanceof ie){const l=o;if(ge(l)==null)if(a instanceof ie){const u=a;if(ge(u)==null){const f=r.Compare(q(l),q(u))|0;if(f!==0)return f|0;e=r,t=Ke(he(l),P(s)),n=Ke(he(u),P(i));continue e}else{let f,c,p,h,$;switch(M(s)?M(i)?f=2:k(i)!=null?(f=1,h=P(i),$=x(k(i))):f=2:k(s)!=null?(f=0,c=P(s),p=x(k(s))):M(i)?f=2:k(i)!=null?(f=1,h=P(i),$=x(k(i))):f=2,f){case 0:if(p instanceof ie){const g=p;e=r,t=be([ge(g),it(q(g),void 0,he(g),0)],c),n=i;continue e}else{e=r,t=be([void 0,st(q(p))],c),n=i;continue e}case 1:if($ instanceof ie){const g=$;e=r,t=s,n=be([ge(g),it(q(g),void 0,he(g),0)],h);continue e}else{e=r,t=s,n=be([void 0,st(q($))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(q(l),q(a))|0;if(u!==0)return u|0;e=r,t=Ke(he(l),P(s)),n=Ke(void 0,P(i));continue e}else{let u,f,c,p,h;switch(M(s)?M(i)?u=2:k(i)!=null?(u=1,p=P(i),h=x(k(i))):u=2:k(s)!=null?(u=0,f=P(s),c=x(k(s))):M(i)?u=2:k(i)!=null?(u=1,p=P(i),h=x(k(i))):u=2,u){case 0:if(c instanceof ie){const $=c;e=r,t=be([ge($),it(q($),void 0,he($),0)],f),n=i;continue e}else{e=r,t=be([void 0,st(q(c))],f),n=i;continue e}case 1:if(h instanceof ie){const $=h;e=r,t=s,n=be([ge($),it(q($),void 0,he($),0)],p);continue e}else{e=r,t=s,n=be([void 0,st(q(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof ie){const l=a;if(ge(l)==null){const u=r.Compare(q(o),q(l))|0;if(u!==0)return u|0;e=r,t=Ke(void 0,P(s)),n=Ke(he(l),P(i));continue e}else{let u,f,c,p,h;switch(M(s)?M(i)?u=2:k(i)!=null?(u=1,p=P(i),h=x(k(i))):u=2:k(s)!=null?(u=0,f=P(s),c=x(k(s))):M(i)?u=2:k(i)!=null?(u=1,p=P(i),h=x(k(i))):u=2,u){case 0:if(c instanceof ie){const $=c;e=r,t=be([ge($),it(q($),void 0,he($),0)],f),n=i;continue e}else{e=r,t=be([void 0,st(q(c))],f),n=i;continue e}case 1:if(h instanceof ie){const $=h;e=r,t=s,n=be([ge($),it(q($),void 0,he($),0)],p);continue e}else{e=r,t=s,n=be([void 0,st(q(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(q(o),q(a))|0;if(l!==0)return l|0;e=r,t=P(s),n=P(i);continue e}}else{x(k(i));let o,a,l,u,f;switch(M(s)?M(i)?o=2:k(i)!=null?(o=1,u=P(i),f=x(k(i))):o=2:k(s)!=null?(o=0,a=P(s),l=x(k(s))):M(i)?o=2:k(i)!=null?(o=1,u=P(i),f=x(k(i))):o=2,o){case 0:if(l instanceof ie){const c=l;e=r,t=be([ge(c),it(q(c),void 0,he(c),0)],a),n=i;continue e}else{e=r,t=be([void 0,st(q(l))],a),n=i;continue e}case 1:if(f instanceof ie){const c=f;e=r,t=s,n=be([ge(c),it(q(c),void 0,he(c),0)],u);continue e}else{e=r,t=s,n=be([void 0,st(q(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(k(s)!=null){x(k(s));let o,a,l,u,f;switch(M(s)?M(i)?o=2:k(i)!=null?(o=1,u=P(i),f=x(k(i))):o=2:k(s)!=null?(o=0,a=P(s),l=x(k(s))):M(i)?o=2:k(i)!=null?(o=1,u=P(i),f=x(k(i))):o=2,o){case 0:if(l instanceof ie){const c=l;e=r,t=be([ge(c),it(q(c),void 0,he(c),0)],a),n=i;continue e}else{e=r,t=be([void 0,st(q(l))],a),n=i;continue e}case 1:if(f instanceof ie){const c=f;e=r,t=s,n=be([ge(c),it(q(c),void 0,he(c),0)],u);continue e}else{e=r,t=s,n=be([void 0,st(q(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=P(s),n=P(i);continue e}}}function Kd(e,t,n){return t==null?n==null?0:-1:n==null?1:Dy(e,E(t),E(n))|0}function Ny(e,t,n){let r=n;qd(s=>{gt(t,r,s),r=r+1|0},e)}function Ry(e,t,n){e:for(;;){const r=e,s=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=br(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),s),n=i;continue e}else return s}}function Ly(e,t){return Qs((n,r)=>br(e,r,n),void 0,t)}function By(e,t){return Pt((n,r)=>br(e,r,n),void 0,t)}function Qd(e,t){if(mt(t))return Ly(e,t);if(t instanceof je)return By(e,t);{const n=pe(t);try{return Ry(e,void 0,n)}finally{ae(n)}}}class za{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Wy(this)|0}Equals(t){let n;const r=this;return t instanceof za&&(n=t,Kd(Cr(r),Ct(r),Ct(n))===0)}toString(){return"set ["+_e("; ",ke(n=>Et(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Kd(Cr(n),Ct(n),Ct(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 Gd(Cr(n),t,Ct(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Ny(Ct(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Ha(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Ha(this)|0}GetEnumerator(){return Xd(Ct(this))}[Symbol.iterator](){return Vr(pe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Xd(Ct(this))}get size(){return Ha(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 e0(this,t)}keys(){return ke(n=>n,this)}values(){return ke(n=>n,this)}entries(){return ke(n=>[n,n],this)}forEach(t,n){const r=this;xn(s=>{t(s,s,r)},r)}}function Ti(e,t){return new za(e,t)}function Cr(e){return e.comparer}function Ct(e){return e.tree}function Vy(e){return Ti(e,void 0)}function Fy(e,t){return Ti(Cr(e),br(Cr(e),t,Ct(e)))}function Ha(e){return Ey(Ct(e))}function e0(e,t){return Gd(Cr(e),t,Ct(e))}function Wy(e){let t=0;const n=pe(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+jt(r)+631|0}}finally{ae(n)}return Math.abs(t)|0}function Ga(e,t){return e0(t,e)}function jy(e,t){return Fy(t,e)}function Uy(e){return Vy(e)}function zy(e,t){return Ti(t,Qd(t,e))}function Hy(e,t){return Ti(t,Qd(t,e))}function Gy(){return ce()}function qa(e){return _e("/",e)}function qy(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+qa(t),n])}function t0(e,t,n){try{ae(n)}catch(r){e(["Error stopping subscription: "+qa(t),r])}}function Yy(e,t,n,r){try{return[n,r(t)]}catch(s){e(["Error starting subscription: "+qa(n),s]);return}}function Jy(e,t){Jr(n=>{t0(e,n[0],n[1])},t)}function n0(e,t,n,r,s,i){return Jr(o=>{qy(e,o)},n),Jr(o=>{t0(e,o[0],o[1])},r),wt(s,D1(o=>Yy(e,t,o[0],o[1]),i))}function Zy(){return[ce(),Uy({Compare:ut}),ce()]}function Xy(e,t,n,r,s){return Ga(e,r)?[Ke(e,n),r,s]:[n,jy(e,r),Ke([e,t],s)]}function Ky(e){return k1((t,n)=>Xy(t[0],t[1],n[0],n[1],n[2]),e,Zy())}const Qy=ce();function r0(e,t){const n=zy(Qe(o=>o[0],e),{Compare:ut}),r=Ky(t),s=r[1],i=r[0];if(n.Equals(s))return[i,ce(),e,ce()];{const o=O1(a=>Ga(a[0],s),e);return[i,o[1],o[0],Ro(a=>!Ga(a[0],n),r[2])]}}class e_{constructor(t,n,r){this.OnNext=t,this.OnError=n||(s=>{}),this.OnCompleted=r||(()=>{})}}function t_(e,t){t.Subscribe(new e_(e))}class n_{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 s_(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const s=n===void 0?t:(r=t,n);this.delegates.forEach(i=>{i(r,s)})}}class r_ extends n_{}function s_(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(s,i)=>n.OnNext(i);return e(r),{Dispose(){t(r)}}}}}class i_{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 r_}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 o_(e,t){console.error(Ae(e),t)}function a_(e,t){let n,r=new i_(e);r.AutoReset=!1,n=r,t_(t,n.Elapsed()),n.Enabled=!0,n.Start()}function s0(e,t,n){Jr(r=>{try{r(t)}catch(s){e(s)}},n)}function Z(){return ce()}function Ya(e,t){return Qe(n=>r=>{n(s=>{r(e(s))})},t)}function i0(e){return No(e)}function o0(e){return E(e)}function St(e,t,n,r,s){return E(i=>{e(T.Delay(()=>T.Bind(Of(t(n)),o=>{const a=o;return i(a.tag===1?s(a.fields[0]):r(a.fields[0])),T.Zero()})))})}function Pi(e,t,n,r){return E(s=>{e(T.Delay(()=>T.Bind(Of(t(n)),i=>{const o=i;return o.tag===0&&s(r(o.fields[0])),T.Zero()})))})}function ze(e){a_(1,t=>{Nf(e)})}function l_(e,t,n,r){const s=ut(e,n)|0;if(s===0)throw new Error("The step of a range cannot be zero");const i=s>0;return o=>{const a=ut(o,t)|0;return i&&a<=0||!i&&a>=0?[o,r(o,e)]:void 0}}function u_(e,t,n,r,s){const i=l_(t,n,r,s);return A(()=>q1(i,e))}function a0(e,t,n){return u_(e,t,n,0,(r,s)=>r+s)}class Sr extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class c_{constructor(t){this.state=new Sr(0,[Ks(new Array(cc(t,10)),0,cc(t,10),null),0])}}function f_(e){return new c_(e)}function l0(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,s=t.fields[0],i=(r+1)%s.length|0;return i===n?e.state=new Sr(0,[s,n]):e.state=new Sr(1,[s,n,i]),Ae(re(r,s))}else return}function d_(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,s=n.fields[2]|0,i=n.fields[0];gt(i,r,t);const o=(r+1)%i.length|0;o===s?e.state=new Sr(1,[h_(e,s,i),i.length,0]):e.state=new Sr(1,[i,o,s])}else{const r=n.fields[1]|0,s=n.fields[0];gt(s,r,t);const i=(r+1)%s.length|0;e.state=new Sr(1,[s,i,r])}}function h_(e,t,n){return Array.from(A(()=>V(Q1(t,n),A(()=>V(ep(t,n),A(()=>yc(r=>_(te()),a0(0,1,n.length))))))))}class Ja extends B{constructor(t,n,r,s,i,o,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=s,this.setState=i,this.onError=o,this.termination=a}}function Mi(e,t,n){return new Ja(e,t,r=>Gy(),n,ne(r=>{const s=At(n)(r);return i=>{s(i)}}),r=>{o_(r[0],r[1])},[r=>!1,r=>{}])}function u0(e,t){return new Ja(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function c0(e){return At(e.view)}function m_(e){return e.init}function p_(e,t,n,r,s,i,o){const a=At(e)(o.init),l=Ls(t)(At(o.update)),u=Ls(n)(At(o.view)),f=Ls(r)(At(o.setState));return new Ja(a,ne(l),At(s)(o.subscribe),ne(u),ne(f),o.onError,i(o.termination))}function $_(e,t,n){let r;const s=n.init(t),i=s[0],o=n.subscribe(i),a=n.termination,l=f_(10);let u=!1,f=i,c=Qy,p=!1;const h=w=>{p||(d_(l,w),u||(u=!0,g(),u=!1))},$=At(e)(h),g=()=>{let w,v=l0(l);for(;!p&&v!=null;){const S=x(v);if(a[0](S))Jy(n.onError,c),a[1](f),p=!0;else{const N=n.update(S,f),Q=N[0],ee=n.subscribe(Q);n.setState(Q,$),s0(xe=>{n.onError([We(Fe("Error handling the message: %A"))(S),xe])},$,N[1]),f=Q,c=(w=r0(c,ee),n0(n.onError,$,w[0],w[1],w[2],w[3])),v=l0(l)}}};u=!0,n.setState(i,$),s0(w=>{n.onError([We(Fe("Error intitializing:")),w])},$,s[1]),c=(r=r0(c,o),n0(n.onError,$,r[0],r[1],r[2],r[3])),g(),u=!1}function f0(e,t){$_(ne(n=>n),e,t)}function g_(e){f0(void 0,e)}var d0={exports:{}},h0={};const w_=ry(sm);/**
768
768
  * @license React
769
769
  * use-sync-external-store-shim.production.min.js
770
770
  *
@@ -772,10 +772,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
772
772
  *
773
773
  * This source code is licensed under the MIT license found in the
774
774
  * LICENSE file in the root directory of this source tree.
775
- */var Ar=C_;function S_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var k_=typeof Object.is=="function"?Object.is:S_,x_=Ar.useState,I_=Ar.useEffect,A_=Ar.useLayoutEffect,E_=Ar.useDebugValue;function T_(e,t){var n=t(),r=x_({inst:{value:n,getSnapshot:t}}),s=r[0].inst,i=r[1];return A_(function(){s.value=n,s.getSnapshot=t,nl(s)&&i({inst:s})},[e,n,t]),I_(function(){return nl(s)&&i({inst:s}),e(function(){nl(s)&&i({inst:s})})},[e]),E_(n),n}function nl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!k_(e,n)}catch{return!0}}function P_(e,t){return t()}var M_=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?P_:T_;_0.useSyncExternalStore=Ar.useSyncExternalStore!==void 0?Ar.useSyncExternalStore:M_,y0.exports=_0;var O_=y0.exports;class D_{constructor(t,n,r){this.arg=n,this.dependencies=r;const s=t(),i=[];this.finalDispatch=void 0;let o;const a=y_(s)(this.arg);let l=a[0],u=a[1];o=[[l,f=>{const c=this.finalDispatch;c==null?i.push(f):c(f)},!1,i],u],this.state=o[0],this.cmd=o[1],this.subscribe=f=>{let c=!1;const p=So(this.state[0]);return w0(this.arg,$0((m,$)=>{const g=this.state;this.finalDispatch=$,this.state=[m,g[1],!0,i],m!==g[0]&&f()},__((m,$)=>{const g=this.cmd;return this.cmd=X(),[this.state[0],g]},(m,$,g)=>m($)(this.state[0]),Io(m=>m),Io(m=>m),ne(m=>m),m=>[$=>m[0]($)?!0:p&&c,$=>{const g=$;So(g)?ue(g):m[1]($)}],s))),()=>{c=!0}}}}function v0(e,t,n){return new D_(e,t,n)}function N_(e){return e.state}function R_(e){return e.subscribe}function L_(e,t,n){return O(e.arg,t)?!O(e.dependencies,n):!0}function rl(e,t,n){const r=Qn(()=>v0(e,t,n)),s=r[0];L_(s,t,n)&&r[1](v0(e,t,n));const i=O_.useSyncExternalStore(R_(s),()=>N_(s)),o=i[2],a=i[3],l=i[1];return kn(()=>{if(o&&a.length>0){let u=pe(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const f=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{ue(u)}Sm(a)}},[o,a]),[i[0],l]}let b0=class extends B{constructor(t,n){super(),this.Email=t,this.Phone=n}};function B_(){return fe("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.SupportDto",[],b0,()=>[["Email",K(G)],["Phone",K(G)]])}function V_(e){return new b0(Fe(h$,e.Email),Fe(m$,e.Phone))}let C0=class extends B{constructor(t,n,r){super(),this.CompanyName=t,this.Logo=n,this.Support=r}};function Wn(){return fe("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.InviteBrandingDto",[],C0,()=>[["CompanyName",K(G)],["Logo",K(G)],["Support",K(B_())]])}function F_(e){return new C0(Fe(is,e.CompanyName),Fe($$,e.Logo),Fe(V_,e.Support))}class S0 extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","InfoRequest","AppInvite"]}}function jn(){return _t("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.InviteJourneyTypeDto",[],S0,()=>[[["Item",sl()]],[["Item",sl()]],[["Item",sl()]]])}let k0=class extends B{constructor(t){super(),this.Category=t}};function sl(){return fe("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.JourneyTypeDetailsDto",[],k0,()=>[["Category",K(G)]])}class x0 extends B{constructor(t){super(),this.MagicCode=t}}function W_(){return fe("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateMagicCodeRequestDto",[],x0,()=>[["MagicCode",G]])}class j_ extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PassThrough","MagicCodeExpired","MagicCodeNotRecognised","InviteExpired","WorkflowCompleted","WorkflowAbandoned","ProfileStateInvalidForWorkflowCompletion","InviteNotFound"]}}function U_(){return _t("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateMagicCodeOutcomeDto",[],j_,()=>[[["Item",tt(["AuthCode",G],["Branding",K(Wn())],["FirstName",G],["IsInitialMagicLinkUsed",mt],["JourneyType",jn()])]],[["Item",tt(["Branding",K(Wn())],["FirstName",G],["IsInitialMagicLinkUsed",mt],["JourneyType",jn()],["OneTimeCodeOptionAvailable",mt])]],[["Item",tt(["Branding",K(Wn())],["JourneyType",jn()])]],[["Item",tt(["Branding",K(Wn())],["JourneyType",jn()])]],[["Item",tt(["Branding",K(Wn())],["JourneyType",jn()])]],[["Item",tt(["Branding",K(Wn())],["JourneyType",jn()])]],[["Item",tt(["Branding",K(Wn())],["JourneyType",jn()])]],[]])}function z_(e){switch(e.tag){case 1:return e.fields[0].Branding;case 2:return e.fields[0].Branding;case 3:return e.fields[0].Branding;case 4:return e.fields[0].Branding;case 5:return e.fields[0].Branding;case 6:return e.fields[0].Branding;case 7:return;default:return e.fields[0].Branding}}function H_(e){switch(e.tag){case 1:return e.fields[0].JourneyType;case 2:return e.fields[0].JourneyType;case 3:return e.fields[0].JourneyType;case 4:return e.fields[0].JourneyType;case 5:return e.fields[0].JourneyType;case 6:return e.fields[0].JourneyType;case 7:return;default:return e.fields[0].JourneyType}}class G_ extends B{constructor(t,n){super(),this.CssOverrides=t,this.Outcome=n}}function q_(){return fe("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateMagicCodeResponseDto",[],G_,()=>[["CssOverrides",cn(G)],["Outcome",U_()]])}class I0 extends B{constructor(t,n){super(),this.MagicCode=t,this.IsChange=n}}function Y_(){return fe("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ReissueMagicCodeRequestDto",[],I0,()=>[["MagicCode",G],["IsChange",mt]])}class J_ extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["MagicCodeIssued","MagicCodeNotRecognised","MagicCodeIssuingThrottled","InviteExpired","ProfileStateInvalidForWorkflowCompletion","InviteNotFound","WorkflowCompleted","WorkflowAbandoned"]}}function Z_(){return _t("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ReissueMagicCodeOutcomeDto",[],J_,()=>[[["Item",tt(["MaskedEmail",G])]],[],[["Item",tt(["MaskedEmail",G])]],[],[],[],[],[]])}class X_ extends B{constructor(t){super(),this.Outcome=t}}function K_(){return fe("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ReissueMagicCodeResponseDto",[],X_,()=>[["Outcome",Z_()]])}class A0 extends B{constructor(t,n){super(),this.MagicCode=t,this.IsResend=n}}function Q_(){return fe("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.IssueOneTimeCodeRequestDto",[],A0,()=>[["MagicCode",G],["IsResend",mt]])}class e2 extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["OneTimeCodeIssued","OneTimeCodeOptionNotAvailable","OneTimeCodeLocked","OneTimeCodeIssuingThrottled","MagicCodeNotRecognised","InviteExpired","ProfileStateInvalidForWorkflowCompletion","InviteNotFound","WorkflowCompleted","WorkflowAbandoned"]}}function t2(){return _t("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.IssueOneTimeCodeOutcomeDto",[],e2,()=>[[["Item",tt(["MaskedPhone",G])]],[],[],[["Item",tt(["MaskedPhone",G])]],[],[],[],[],[],[]])}class n2 extends B{constructor(t){super(),this.Outcome=t}}function r2(){return fe("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.IssueOneTimeCodeResponseDto",[],n2,()=>[["Outcome",t2()]])}class E0 extends B{constructor(t){super(),this.OneTimeCode=t|0}}function s2(){return fe("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateOneTimeCodeRequestDto",[],E0,()=>[["OneTimeCode",Ys]])}class i2 extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["OneTimeCodeMatched","OneTimeCodeFailed","OneTimeCodeExpired","OneTimeCodeNotCurrentlyIssued","OneTimeCodeAlreadyUsed","OneTimeCodeLocked","InviteExpired","ProfileStateInvalidForWorkflowCompletion","InviteNotFound","WorkflowCompleted","WorkflowAbandoned"]}}function o2(){return _t("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateOneTimeCodeOutcomeDto",[],i2,()=>[[["Item",tt(["AuthCode",G])]],[["Item",tt(["RemainingAttempts",Ys])]],[],[],[],[],[],[],[],[],[]])}class a2 extends B{constructor(t){super(),this.Outcome=t}}function l2(){return fe("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateOneTimeCodeResponseDto",[],a2,()=>[["Outcome",o2()]])}class T0 extends B{constructor(t,n){super(),this.MagicCode=t,this.IsPassThrough=n}}function u2(){return fe("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ProgressRequestDto",[],T0,()=>[["MagicCode",G],["IsPassThrough",mt]])}class c2 extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Progressed","MagicCodeNotRecognised","InviteExpired","ProfileStateInvalidForWorkflowCompletion","InviteNotFound","WorkflowCompleted","WorkflowAbandoned"]}}function f2(){return _t("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ProgressOutcomeDto",[],c2,()=>[[],[],[],[],[],[],[]])}class d2 extends B{constructor(t){super(),this.Outcome=t}}function h2(){return fe("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ProgressResponseDto",[],d2,()=>[["Outcome",f2()]])}let Er=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved"]}};class ke extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class m2 extends B{constructor(t,n){super(),this.InviteToken=t,this.MagicCode=n}}function p2(e){const t=ni(e,["."],void 0,0);if(!Bo((n,r)=>n===r,t)&&t.length===2){const n=re(1,t);return new h(0,[new m2(re(0,t),n)])}else return new h(1,["Invalid link"])}class ie extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["OneTimeCodeLocked","NoAccess","UnrecognisedLink","WorkflowAbandoned","InviteExpired","SomethingWentWrong"]}}let q=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Welcome","CheckYourInbox","CodeEntry","AccessLinkExpired","WorkflowCompleted","Error"]}};class il extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["CheckYourInbox","CodeEntry","Onboarding"]}}let ol=class extends B{constructor(t,n,r,s){super(),this.CssOverrides=t,this.Page=n,this.Branding=r,this.JourneyType=s}},j=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NavigatePage","ValidateMagicLink","ReissueMagicLink","IssueOneTimeCode","ValidateOneTimeCode","ProgressFromWelcome","NavigateToAuthCodeExchange"]}};function al(e,t){if(t.startsWith(e))return t}function P0(e,t){if(t.endsWith(e))return t}function $2(e){return t=>{let n,r;return n=al("/",t),n!=null?(r=n,r):"/"+t}}function Li(e,t){return $2()(be("/",rt(n=>n.indexOf("?")>=0||n.startsWith("#")||n.startsWith("/")?n:encodeURIComponent(n),e)))}function ll(e,t,n){t===1?history.pushState(void 0,"",Li(e)):history.replaceState(void 0,"",Li(e));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function M0(e,t){return M1(n=>{if(Jr(n))return de();{const r=g1(n,"#");if(r==="?")return de();if(al("?",r)!=null)return A(r);{const s=r.split("?");if(!Bo((i,o)=>i===o,s)&&s.length===1){const i=re(0,s);return A(decodeURIComponent(i))}else if(!Bo((i,o)=>i===o,s)&&s.length===2)if(re(1,s)===""){const i=re(0,s);return A(decodeURIComponent(i))}else{const i=re(0,s),o=re(1,s);return y([decodeURIComponent(i),"?"+o])}else return de()}}},y(ni(al("#",e)!=null?w1(e,1,e.length-1):t===1&&(P0("#",e)!=null||P0("#/",e)!=null)?"":e,["/"],void 0,0)))}function g2(e,t,n){return t(M0(e===2?window.location.pathname+window.location.search:window.location.hash,e))}const w2=Lp(e=>{const t=Mc(r=>{const s=Te(e.onUrlChanged,i=>{});g2(Te(e.hashMode,1),s)});Pc(()=>(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.addEventListener("hashchange",t):window.addEventListener("popstate",t),window.addEventListener("CUSTOM_NAVIGATION_EVENT",t),ns(()=>{window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.removeEventListener("hashchange",t):window.removeEventListener("popstate",t),window.removeEventListener("CUSTOM_NAVIGATION_EVENT",t)}))),pr(()=>{const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)});const n=e.application;return n??te()});function wn(e){try{const t=new URLSearchParams(e);return $e(E(()=>Ie(n=>[re(0,n),re(1,n)],t.entries())))}catch{return}}class Bi extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Autodev","Test","Prod","Sandbox"]}}function y2(e){const t=y(ni(e,["."],void 0,0));let n;if(M(t))n=4;else switch(k(t)){case"autodev-partner":{n=0;break}case"test-partner":{n=1;break}case"partner":{n=2;break}case"sandbox-partner":{n=3;break}default:n=4}switch(n){case 0:return new h(0,[new Bi(0,[])]);case 1:return new h(0,[new Bi(1,[])]);case 2:return new h(0,[new Bi(2,[])]);case 3:return new h(0,[new Bi(3,[])]);default:return new h(1,["Invalid environment"])}}const ul=document.getElementById("workflows-app"),_2=ul.getAttribute("data-identity-url"),Un=ul.getAttribute("data-backend-url"),v2=y(["workflows","app"]),b2=y(["workflows","embed","v1.0","app"]),C2="apollo-workflows-app";class Tr extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Embedded","Standalone","Unknown"]}}function cl(e){switch(e.tag){case 1:return Li(v2);default:return Li(b2)}}function S2(e){return`${window.location.protocol}//${window.location.host}${cl(e)}`}y2(Ge.create(Un).host);class Ft extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class O0 extends R{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class Qt extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class $s extends B{constructor(t,n,r,s,i,o,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=s,this.overridenMimeType=i,this.overridenResponseType=o,this.timeout=a,this.content=l}}class Pr extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class D0 extends B{constructor(t,n,r,s,i,o){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=s,this.responseHeaders=i,this.content=o}}class N0{constructor(t,n){this.k=t,this.v=n}}function Vi(e,t){return new N0(e,t)}function Ze(e){return e.k}function ft(e){return e.v}class De extends N0{constructor(t,n,r,s,i){super(t,n),this.left=r,this.right=s,this.h=i|0}}function Fi(e,t,n,r,s){return new De(e,t,n,r,s)}function Xe(e){return e.left}function Ke(e){return e.right}function zn(e){return e.h}function J3(){}function R0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=x(r);if(s instanceof De){const i=s;e=R0(n+1,Xe(i)),t=Ke(i);continue e}else return n+1|0}else return n|0}}function k2(e){return R0(0,e)}function Et(e,t,n,r){let s,i,o;const a=e;if(a!=null){const c=x(a);o=c instanceof De?(s=c,zn(s)):1}else o=0;let l;const u=r;if(u!=null){const c=x(u);l=c instanceof De?(i=c,zn(i)):1}else l=0;const f=(o<l?l:o)|0;return f===0?Vi(t,n):Fi(t,n,e,r,f+1)}function L0(e,t,n,r){let s,i,o,a,l,u,f,c,p;const m=e;if(m!=null){const w=x(m);p=w instanceof De?(s=w,zn(s)):1}else p=0;let $;const g=r;if(g!=null){const w=x(g);$=w instanceof De?(i=w,zn(i)):1}else $=0;if($>p+2){const w=x(r);if(w instanceof De){const v=w;if(o=Xe(v),(o!=null?(a=x(o),a instanceof De?(l=a,zn(l)):1):0)>p+1){const S=x(Xe(v));if(S instanceof De){const N=S;return Et(Et(e,t,n,Xe(N)),Ze(N),ft(N),Et(Ke(N),Ze(v),ft(v),Ke(v)))}else throw new Error("internal error: Map.rebalance")}else return Et(Et(e,t,n,Xe(v)),Ze(v),ft(v),Ke(v))}else throw new Error("internal error: Map.rebalance")}else if(p>$+2){const w=x(e);if(w instanceof De){const v=w;if(u=Ke(v),(u!=null?(f=x(u),f instanceof De?(c=f,zn(c)):1):0)>$+1){const S=x(Ke(v));if(S instanceof De){const N=S;return Et(Et(Xe(v),Ze(v),ft(v),Xe(N)),Ze(N),ft(N),Et(Ke(N),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Et(Xe(v),Ze(v),ft(v),Et(Ke(v),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Et(e,t,n,r)}function Mr(e,t,n,r){if(r!=null){const s=x(r),i=e.Compare(t,Ze(s))|0;if(s instanceof De){const o=s;return i<0?L0(Mr(e,t,n,Xe(o)),Ze(o),ft(o),Ke(o)):i===0?Fi(t,n,Xe(o),Ke(o),zn(o)):L0(Xe(o),Ze(o),ft(o),Mr(e,t,n,Ke(o)))}else return i<0?Fi(t,n,void 0,r,2):i===0?Vi(t,n):Fi(t,n,r,void 0,2)}else return Vi(t,n)}function B0(e,t,n){e:for(;;){const r=e,s=t,i=n;if(i!=null){const o=x(i),a=r.Compare(s,Ze(o))|0;if(a===0)return Ee(ft(o));if(o instanceof De){const l=o;e=r,t=s,n=a<0?Xe(l):Ke(l);continue e}else return}else return}}function x2(e,t,n){const r=B0(e,t,n);if(r==null)throw new Error;return x(r)}function I2(e,t,n){e:for(;;){const r=e,s=t,i=n;if(i!=null){const o=x(i),a=r.Compare(s,Ze(o))|0;if(o instanceof De){const l=o;if(a<0){e=r,t=s,n=Xe(l);continue e}else{if(a===0)return!0;e=r,t=s,n=Ke(l);continue e}}else return a===0}else return!1}}function V0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=x(r);if(s instanceof De){const i=s;V0(n,Xe(i)),n(Ze(i),ft(i)),e=n,t=Ke(i);continue e}else n(Ze(s),ft(s))}break}}function A2(e,t){V0(e,t)}function E2(e,t,n){let r=n;A2((s,i)=>{vt(t,r,[s,i]),r=r+1|0},e)}function T2(e,t){return Dt((n,r)=>Mr(e,r[0],r[1],n),void 0,t)}function P2(e,t,n){e:for(;;){const r=e,s=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=Mr(r,o[0],o[1],s),n=i;continue e}else return s}}function M2(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const s=re(r,t);n=Mr(e,s[0],s[1],n)}return n}function F0(e,t){if(wt(t))return M2(e,t);if(t instanceof He)return T2(e,t);{const n=pe(t);try{return P2(e,void 0,n)}finally{ue(n)}}}class O2 extends B{constructor(t,n){super(),this.stack=t,this.started=n}}function W0(e){e:for(;;){const t=e;if(M(t))return de();{const n=P(t),r=k(t);if(r!=null){const s=x(r);if(s instanceof De){const i=s;e=Se([Xe(i),Vi(Ze(i),ft(i)),Ke(i)],n);continue e}else return t}else{e=n;continue e}}}}function j0(e){return new O2(W0(A(e)),!1)}function D2(){throw new Error("enumeration not started")}function N2(){throw new Error("enumeration already finished")}function U0(e){if(e.started){const t=e.stack;if(M(t))return N2();if(k(t)!=null){const n=x(k(t));if(n instanceof De)throw new Error("Please report error: Map iterator, unexpected stack for current");return[Ze(n),ft(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return D2()}function R2(e){if(e.started){const t=e.stack;if(M(t))return!1;if(k(t)!=null){if(x(k(t))instanceof De)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=W0(P(t)),!M(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!M(e.stack)}function z0(e){let t=j0(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return U0(t)},"System.Collections.IEnumerator.get_Current"(){return U0(t)},"System.Collections.IEnumerator.MoveNext"(){return R2(t)},"System.Collections.IEnumerator.Reset"(){t=j0(e)},Dispose(){}}}class Wi{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return F2(this)|0}Equals(t){const n=this;if(t instanceof Wi){const r=t,s=pe(n);try{const i=pe(r);try{const o=()=>{const a=s["System.Collections.IEnumerator.MoveNext"]();if(a===i["System.Collections.IEnumerator.MoveNext"]())if(a){const l=s["System.Collections.Generic.IEnumerator`1.get_Current"](),u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();return O(l[0],u[0])&&O(l[1],u[1])?o():!1}else return!0;else return!1};return o()}finally{ue(i)}}finally{ue(s)}}else return!1}toString(){return"map ["+be("; ",Ie(n=>dc("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return z0(this.tree)}[Symbol.iterator](){return jr(pe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return z0(this.tree)}CompareTo(t){const n=this;if(t instanceof Wi)return ep((s,i)=>{const o=n.comparer.Compare(s[0],i[0])|0;return(o!==0?o:ht(s[1],i[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 G0(n,t[0])&&O(H0(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){E2(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return fl(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return fl(this)|0}get size(){return fl(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Ie(n=>[n[0],n[1]],this)}get(t){return H0(this,t)}has(t){return G0(this,t)}keys(){return Ie(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Ie(n=>n[1],this)}forEach(t,n){const r=this;Tn(s=>{t(s[1],s[0],r)},r)}}function ji(e,t){return new Wi(e,t)}function L2(e){return ji(e,void 0)}function B2(e,t,n){return ji(e.comparer,Mr(e.comparer,t,n,e.tree))}function H0(e,t){return x2(e.comparer,t,e.tree)}function fl(e){return k2(e.tree)}function G0(e,t){return I2(e.comparer,t,e.tree)}function V2(e,t){return B0(e.comparer,t,e.tree)}function F2(e){const t=(s,i)=>(s<<1)+i+631;let n=0;const r=pe(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const s=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Ht(s[0]))|0,n=t(n,Ht(s[1]))|0}}finally{ue(r)}return n|0}function q0(e,t,n){return B2(n,e,t)}function Y0(e,t){return V2(t,e)}function W2(e,t){return ji(t,F0(t,e))}function j2(e,t){return ji(t,F0(t,e))}function dl(e){return L2(e)}function hl(e){return new O0("Content-Type",e)}function U2(e){return new O0("Authorization",e)}const Hn=new $s("",new Ft(0,[]),de(),!1,void 0,void 0,void 0,new Qt(0,[]));new D0(0,"","","",dl({Compare:Fs}),new Pr(0,[""]));function J0(e,t){return hc(t)?new Array(0):ni(t,[e],void 0,0)}function z2(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 en(e){return new $s(e,Hn.method,Hn.headers,Hn.withCredentials,Hn.overridenMimeType,Hn.overridenResponseType,Hn.timeout,Hn.content)}function tn(e,t){return new $s(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Ui(e,t){return new $s(t.url,t.method,bt(t.headers,A(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function yn(e,t){return new $s(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function gs(e){return jf(t=>{const n=new XMLHttpRequest;n.open(z2(e.method),e.url),n.onreadystatechange=()=>{let l,u,f,c,p,m,$;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),f=n.status|0,c=n.responseType,p=(m=n.responseType,m===""?new Pr(0,[n.responseText]):m==="text"?new Pr(0,[n.responseText]):m==="arraybuffer"?new Pr(2,[n.response]):m==="blob"?new Pr(1,[n.response]):new Pr(3,[n.response])),$=j2(k1(g=>{const w=y(J0(":",g));if(!M(w))return[k(w).toLocaleLowerCase(),be(":",P(w)).trim()]},J0(`\r
776
- `,n.getAllResponseHeaders())),{Compare:Fs}),new D0(f,l,c,n.responseURL,$,p)))};const r=pe(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(l.fields[0],l.fields[1])}}finally{ue(r)}n.withCredentials=e.withCredentials;const s=e.overridenMimeType;if(s!=null){const l=s;n.overrideMimeType(l)}const i=e.overridenResponseType;if(i!=null)switch(i.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const o=e.timeout;if(o!=null){const l=o|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send(Ee(a.fields[0]));break}case 3:{n.send(Ee(a.fields[0]));break}case 2:{n.send(Ee(a.fields[0]));break}default:n.send()}})}function ws(e){return e<0?Math.ceil(e):Math.floor(e)}function Z0(e=0,t=0,n=0,r=0,s=0){switch(arguments.length){case 1:return H2(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],s=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+s}function H2(e){return Number(BigInt(e)/10000n)}function G2(e){return ws(e/864e5)}function q2(e){return ws(e%864e5/36e5)}function Y2(e){return ws(e%36e5/6e4)}function J2(e){return ws(e%6e4/1e3)}function Z2(e){return ws(e%1e3)}function X2(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(G2(e)),s=Math.abs(q2(e)),i=Math.abs(Y2(e)),o=Math.abs(J2(e)),a=Math.abs(Z2(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?s:ce(s,2)}:${ce(i,2)}:${ce(o,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+ce(a,3):"."+pm(a,3,7)}`}function K2(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 Z0(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let s=0,i=0,o=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],u=+r[5];if(r[3]!=null&&(s=+r[3]),r[7]!=null&&(o=+r[7]),r[8]!=null)switch(r[8].length){case 1:i=+r[8]*100;break;case 2:i=+r[8]*10;break;case 3:i=+r[8];break;case 4:i=+r[8]/10;break;case 5:i=+r[8]/100;break;case 6:i=+r[8]/1e3;break;case 7:i=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*Z0(s,l,u,o,i)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Q2(e,t){try{return t.contents=K2(e),!0}catch{return!1}}class L extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class qe extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function X0(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function K0(e,t){switch(e.tag){case 2:return f1(X0(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return X0(t)}}function ev(e){return e}const Q0=te();function zi(e){return Array.from(e)}function tv(e){return Ks(e,"O")}function nv(e){return X2(e)}function rv(){return te()}function sv(e){return Ks(e,"O")}function _n(e,t){return JSON.stringify(t,void 0,Ee(e))}function iv(e){return t=>Gm(Fe(e,t),()=>Q0)}function eh(e,t,n,r){let s;const i=new et(te());let o;const a=ye(r);o=a===""?e:q0(a,i,e);let l;if(qu(r)){const u=ar(f=>{const c=K0(t,nr(f)),p=nn(o,t,n,f[1]);return m=>$=>{const g=jm(m,f);return(!n||n&&g!=null)&&($[c]=p(g)),$}},Hr(r));l=f=>es((c,p)=>p(f)(c),{},u)}else if(Gu(r))l=u=>{const f=Wm(u,r),c=f[0],p=f[1],m=p.length|0;if(m===0)return nr(c);{const $=m|0,g=Yu(c),w=ri(new Array($+1),0,$+1,null);vt(w,0,nr(c));for(let v=1;v<=$;v++){const S=nn(o,t,n,re(v-1,g)[1]);vt(w,v,S(re(v-1,p)))}return w}};else throw new Error((s=ye(r),ze(Ue(`Cannot generate auto encoder for %s. Please pass an extra encoder.
775
+ */var kr=w_;function y_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var __=typeof Object.is=="function"?Object.is:y_,v_=kr.useState,b_=kr.useEffect,C_=kr.useLayoutEffect,S_=kr.useDebugValue;function k_(e,t){var n=t(),r=v_({inst:{value:n,getSnapshot:t}}),s=r[0].inst,i=r[1];return C_(function(){s.value=n,s.getSnapshot=t,Za(s)&&i({inst:s})},[e,n,t]),b_(function(){return Za(s)&&i({inst:s}),e(function(){Za(s)&&i({inst:s})})},[e]),S_(n),n}function Za(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!__(e,n)}catch{return!0}}function x_(e,t){return t()}var I_=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?x_:k_;h0.useSyncExternalStore=kr.useSyncExternalStore!==void 0?kr.useSyncExternalStore:I_,d0.exports=h0;var A_=d0.exports;class E_{constructor(t,n,r){this.arg=n,this.dependencies=r;const s=t(),i=[];this.finalDispatch=void 0;let o;const a=m_(s)(this.arg);let l=a[0],u=a[1];o=[[l,f=>{const c=this.finalDispatch;c==null?i.push(f):c(f)},!1,i],u],this.state=o[0],this.cmd=o[1],this.subscribe=f=>{let c=!1;const p=_o(this.state[0]);return f0(this.arg,u0((h,$)=>{const g=this.state;this.finalDispatch=$,this.state=[h,g[1],!0,i],h!==g[0]&&f()},p_((h,$)=>{const g=this.cmd;return this.cmd=Z(),[this.state[0],g]},(h,$,g)=>h($)(this.state[0]),Co(h=>h),Co(h=>h),ne(h=>h),h=>[$=>h[0]($)?!0:p&&c,$=>{const g=$;_o(g)?ae(g):h[1]($)}],s))),()=>{c=!0}}}}function m0(e,t,n){return new E_(e,t,n)}function T_(e){return e.state}function P_(e){return e.subscribe}function M_(e,t,n){return O(e.arg,t)?!O(e.dependencies,n):!0}function Xa(e,t,n){const r=Zn(()=>m0(e,t,n)),s=r[0];M_(s,t,n)&&r[1](m0(e,t,n));const i=A_.useSyncExternalStore(P_(s),()=>T_(s)),o=i[2],a=i[3],l=i[1];return vn(()=>{if(o&&a.length>0){let u=pe(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const f=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{ae(u)}ym(a)}},[o,a]),[i[0],l]}let p0=class extends B{constructor(t,n){super(),this.Email=t,this.Phone=n}};function O_(){return ue("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.SupportDto",[],p0,()=>[["Email",X(H)],["Phone",X(H)]])}function D_(e){return new p0(Le(c$,e.Email),Le(f$,e.Phone))}let $0=class extends B{constructor(t,n,r){super(),this.CompanyName=t,this.Logo=n,this.Support=r}};function Ln(){return ue("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.InviteBrandingDto",[],$0,()=>[["CompanyName",X(H)],["Logo",X(H)],["Support",X(O_())]])}function N_(e){return new $0(Le(ts,e.CompanyName),Le(h$,e.Logo),Le(D_,e.Support))}class g0 extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","InfoRequest","AppInvite"]}}function Bn(){return $t("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.InviteJourneyTypeDto",[],g0,()=>[[["Item",Ka()]],[["Item",Ka()]],[["Item",Ka()]]])}let w0=class extends B{constructor(t){super(),this.Category=t}};function Ka(){return ue("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.JourneyTypeDetailsDto",[],w0,()=>[["Category",X(H)]])}class y0 extends B{constructor(t){super(),this.MagicCode=t}}function R_(){return ue("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateMagicCodeRequestDto",[],y0,()=>[["MagicCode",H]])}class L_ extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PassThrough","MagicCodeExpired","MagicCodeNotRecognised","InviteExpired","WorkflowCompleted","WorkflowAbandoned","ProfileStateInvalidForWorkflowCompletion","InviteNotFound"]}}function B_(){return $t("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateMagicCodeOutcomeDto",[],L_,()=>[[["Item",Xe(["AuthCode",H],["Branding",X(Ln())],["FirstName",H],["IsInitialMagicLinkUsed",ct],["JourneyType",Bn()])]],[["Item",Xe(["Branding",X(Ln())],["FirstName",H],["IsInitialMagicLinkUsed",ct],["JourneyType",Bn()],["OneTimeCodeOptionAvailable",ct])]],[["Item",Xe(["Branding",X(Ln())],["JourneyType",Bn()])]],[["Item",Xe(["Branding",X(Ln())],["JourneyType",Bn()])]],[["Item",Xe(["Branding",X(Ln())],["JourneyType",Bn()])]],[["Item",Xe(["Branding",X(Ln())],["JourneyType",Bn()])]],[["Item",Xe(["Branding",X(Ln())],["JourneyType",Bn()])]],[]])}function V_(e){switch(e.tag){case 1:return e.fields[0].Branding;case 2:return e.fields[0].Branding;case 3:return e.fields[0].Branding;case 4:return e.fields[0].Branding;case 5:return e.fields[0].Branding;case 6:return e.fields[0].Branding;case 7:return;default:return e.fields[0].Branding}}function F_(e){switch(e.tag){case 1:return e.fields[0].JourneyType;case 2:return e.fields[0].JourneyType;case 3:return e.fields[0].JourneyType;case 4:return e.fields[0].JourneyType;case 5:return e.fields[0].JourneyType;case 6:return e.fields[0].JourneyType;case 7:return;default:return e.fields[0].JourneyType}}class W_ extends B{constructor(t,n){super(),this.CssOverrides=t,this.Outcome=n}}function j_(){return ue("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateMagicCodeResponseDto",[],W_,()=>[["CssOverrides",on(H)],["Outcome",B_()]])}class _0 extends B{constructor(t,n){super(),this.MagicCode=t,this.IsChange=n}}function U_(){return ue("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ReissueMagicCodeRequestDto",[],_0,()=>[["MagicCode",H],["IsChange",ct]])}class z_ extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["MagicCodeIssued","MagicCodeNotRecognised","MagicCodeIssuingThrottled","InviteExpired","ProfileStateInvalidForWorkflowCompletion","InviteNotFound","WorkflowCompleted","WorkflowAbandoned"]}}function H_(){return $t("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ReissueMagicCodeOutcomeDto",[],z_,()=>[[["Item",Xe(["MaskedEmail",H])]],[],[["Item",Xe(["MaskedEmail",H])]],[],[],[],[],[]])}class G_ extends B{constructor(t){super(),this.Outcome=t}}function q_(){return ue("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ReissueMagicCodeResponseDto",[],G_,()=>[["Outcome",H_()]])}class v0 extends B{constructor(t,n){super(),this.MagicCode=t,this.IsResend=n}}function Y_(){return ue("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.IssueOneTimeCodeRequestDto",[],v0,()=>[["MagicCode",H],["IsResend",ct]])}class J_ extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["OneTimeCodeIssued","OneTimeCodeOptionNotAvailable","OneTimeCodeLocked","OneTimeCodeIssuingThrottled","MagicCodeNotRecognised","InviteExpired","ProfileStateInvalidForWorkflowCompletion","InviteNotFound","WorkflowCompleted","WorkflowAbandoned"]}}function Z_(){return $t("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.IssueOneTimeCodeOutcomeDto",[],J_,()=>[[["Item",Xe(["MaskedPhone",H])]],[],[],[["Item",Xe(["MaskedPhone",H])]],[],[],[],[],[],[]])}class X_ extends B{constructor(t){super(),this.Outcome=t}}function K_(){return ue("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.IssueOneTimeCodeResponseDto",[],X_,()=>[["Outcome",Z_()]])}class b0 extends B{constructor(t){super(),this.OneTimeCode=t|0}}function Q_(){return ue("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateOneTimeCodeRequestDto",[],b0,()=>[["OneTimeCode",Us]])}class e2 extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["OneTimeCodeMatched","OneTimeCodeFailed","OneTimeCodeExpired","OneTimeCodeNotCurrentlyIssued","OneTimeCodeAlreadyUsed","OneTimeCodeLocked","InviteExpired","ProfileStateInvalidForWorkflowCompletion","InviteNotFound","WorkflowCompleted","WorkflowAbandoned"]}}function t2(){return $t("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateOneTimeCodeOutcomeDto",[],e2,()=>[[["Item",Xe(["AuthCode",H])]],[["Item",Xe(["RemainingAttempts",Us])]],[],[],[],[],[],[],[],[],[]])}class n2 extends B{constructor(t){super(),this.Outcome=t}}function r2(){return ue("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateOneTimeCodeResponseDto",[],n2,()=>[["Outcome",t2()]])}class C0 extends B{constructor(t,n){super(),this.MagicCode=t,this.IsPassThrough=n}}function s2(){return ue("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ProgressRequestDto",[],C0,()=>[["MagicCode",H],["IsPassThrough",ct]])}class i2 extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Progressed","MagicCodeNotRecognised","InviteExpired","ProfileStateInvalidForWorkflowCompletion","InviteNotFound","WorkflowCompleted","WorkflowAbandoned"]}}function o2(){return $t("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ProgressOutcomeDto",[],i2,()=>[[],[],[],[],[],[],[]])}class a2 extends B{constructor(t){super(),this.Outcome=t}}function l2(){return ue("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ProgressResponseDto",[],a2,()=>[["Outcome",o2()]])}let xr=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved"]}};class Ce extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class u2 extends B{constructor(t,n){super(),this.InviteToken=t,this.MagicCode=n}}function c2(e){const t=Xs(e,["."],void 0,0);if(!Do((n,r)=>n===r,t)&&t.length===2){const n=re(1,t);return new m(0,[new u2(re(0,t),n)])}else return new m(1,["Invalid link"])}class se extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["OneTimeCodeLocked","NoAccess","UnrecognisedLink","WorkflowAbandoned","InviteExpired","SomethingWentWrong"]}}let G=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Welcome","CheckYourInbox","CodeEntry","AccessLinkExpired","WorkflowCompleted","Error"]}};class Qa extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["CheckYourInbox","CodeEntry","Onboarding"]}}let el=class extends B{constructor(t,n,r,s){super(),this.CssOverrides=t,this.Page=n,this.Branding=r,this.JourneyType=s}},U=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NavigatePage","ValidateMagicLink","ReissueMagicLink","IssueOneTimeCode","ValidateOneTimeCode","ProgressFromWelcome","NavigateToAuthCodeExchange"]}};function tl(e,t){if(t.startsWith(e))return t}function S0(e,t){if(t.endsWith(e))return t}function f2(e){return t=>{let n,r;return n=tl("/",t),n!=null?(r=n,r):"/"+t}}function Oi(e,t){return f2()(_e("/",Qe(n=>n.indexOf("?")>=0||n.startsWith("#")||n.startsWith("/")?n:encodeURIComponent(n),e)))}function nl(e,t,n){t===1?history.pushState(void 0,"",Oi(e)):history.replaceState(void 0,"",Oi(e));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function k0(e,t){return I1(n=>{if(Gr(n))return ce();{const r=d1(n,"#");if(r==="?")return ce();if(tl("?",r)!=null)return E(r);{const s=r.split("?");if(!Do((i,o)=>i===o,s)&&s.length===1){const i=re(0,s);return E(decodeURIComponent(i))}else if(!Do((i,o)=>i===o,s)&&s.length===2)if(re(1,s)===""){const i=re(0,s);return E(decodeURIComponent(i))}else{const i=re(0,s),o=re(1,s);return y([decodeURIComponent(i),"?"+o])}else return ce()}}},y(Xs(tl("#",e)!=null?h1(e,1,e.length-1):t===1&&(S0("#",e)!=null||S0("#/",e)!=null)?"":e,["/"],void 0,0)))}function d2(e,t,n){return t(k0(e===2?window.location.pathname+window.location.search:window.location.hash,e))}const h2=Op(e=>{const t=Dp(r=>{const s=Ee(e.onUrlChanged,i=>{});d2(Ee(e.hashMode,1),s)});Pp(()=>(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.addEventListener("hashchange",t):window.addEventListener("popstate",t),window.addEventListener("CUSTOM_NAVIGATION_EVENT",t),ri(()=>{window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.removeEventListener("hashchange",t):window.removeEventListener("popstate",t),window.removeEventListener("CUSTOM_NAVIGATION_EVENT",t)}))),dr(()=>{const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)});const n=e.application;return n??te()});function mn(e){try{const t=new URLSearchParams(e);return $e(A(()=>ke(n=>[re(0,n),re(1,n)],t.entries())))}catch{return}}class Di extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Autodev","Test","Prod","Sandbox"]}}function m2(e){const t=y(Xs(e,["."],void 0,0));let n;if(M(t))n=4;else switch(k(t)){case"autodev-partner":{n=0;break}case"test-partner":{n=1;break}case"partner":{n=2;break}case"sandbox-partner":{n=3;break}default:n=4}switch(n){case 0:return new m(0,[new Di(0,[])]);case 1:return new m(0,[new Di(1,[])]);case 2:return new m(0,[new Di(2,[])]);case 3:return new m(0,[new Di(3,[])]);default:return new m(1,["Invalid environment"])}}const rl=document.getElementById("workflows-app"),p2=rl.getAttribute("data-identity-url"),Vn=rl.getAttribute("data-backend-url"),$2=y(["workflows","app"]),g2=y(["workflows","embed","v1.0","app"]),w2="apollo-workflows-app";class Ir extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Embedded","Standalone","Unknown"]}}function sl(e){switch(e.tag){case 1:return Oi($2);default:return Oi(g2)}}function y2(e){return`${window.location.protocol}//${window.location.host}${sl(e)}`}m2(Ue.create(Vn).host);class Lt extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class x0 extends R{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class Zt extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class ds extends B{constructor(t,n,r,s,i,o,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=s,this.overridenMimeType=i,this.overridenResponseType=o,this.timeout=a,this.content=l}}class Ar extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class I0 extends B{constructor(t,n,r,s,i,o){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=s,this.responseHeaders=i,this.content=o}}class A0{constructor(t,n){this.k=t,this.v=n}}function Ni(e,t){return new A0(e,t)}function qe(e){return e.k}function ot(e){return e.v}class Me extends A0{constructor(t,n,r,s,i){super(t,n),this.left=r,this.right=s,this.h=i|0}}function Ri(e,t,n,r,s){return new Me(e,t,n,r,s)}function Ye(e){return e.left}function Je(e){return e.right}function Fn(e){return e.h}function U3(){}function E0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=x(r);if(s instanceof Me){const i=s;e=E0(n+1,Ye(i)),t=Je(i);continue e}else return n+1|0}else return n|0}}function _2(e){return E0(0,e)}function kt(e,t,n,r){let s,i,o;const a=e;if(a!=null){const c=x(a);o=c instanceof Me?(s=c,Fn(s)):1}else o=0;let l;const u=r;if(u!=null){const c=x(u);l=c instanceof Me?(i=c,Fn(i)):1}else l=0;const f=(o<l?l:o)|0;return f===0?Ni(t,n):Ri(t,n,e,r,f+1)}function T0(e,t,n,r){let s,i,o,a,l,u,f,c,p;const h=e;if(h!=null){const w=x(h);p=w instanceof Me?(s=w,Fn(s)):1}else p=0;let $;const g=r;if(g!=null){const w=x(g);$=w instanceof Me?(i=w,Fn(i)):1}else $=0;if($>p+2){const w=x(r);if(w instanceof Me){const v=w;if(o=Ye(v),(o!=null?(a=x(o),a instanceof Me?(l=a,Fn(l)):1):0)>p+1){const S=x(Ye(v));if(S instanceof Me){const N=S;return kt(kt(e,t,n,Ye(N)),qe(N),ot(N),kt(Je(N),qe(v),ot(v),Je(v)))}else throw new Error("internal error: Map.rebalance")}else return kt(kt(e,t,n,Ye(v)),qe(v),ot(v),Je(v))}else throw new Error("internal error: Map.rebalance")}else if(p>$+2){const w=x(e);if(w instanceof Me){const v=w;if(u=Je(v),(u!=null?(f=x(u),f instanceof Me?(c=f,Fn(c)):1):0)>$+1){const S=x(Je(v));if(S instanceof Me){const N=S;return kt(kt(Ye(v),qe(v),ot(v),Ye(N)),qe(N),ot(N),kt(Je(N),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return kt(Ye(v),qe(v),ot(v),kt(Je(v),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return kt(e,t,n,r)}function Er(e,t,n,r){if(r!=null){const s=x(r),i=e.Compare(t,qe(s))|0;if(s instanceof Me){const o=s;return i<0?T0(Er(e,t,n,Ye(o)),qe(o),ot(o),Je(o)):i===0?Ri(t,n,Ye(o),Je(o),Fn(o)):T0(Ye(o),qe(o),ot(o),Er(e,t,n,Je(o)))}else return i<0?Ri(t,n,void 0,r,2):i===0?Ni(t,n):Ri(t,n,r,void 0,2)}else return Ni(t,n)}function P0(e,t,n){e:for(;;){const r=e,s=t,i=n;if(i!=null){const o=x(i),a=r.Compare(s,qe(o))|0;if(a===0)return Ae(ot(o));if(o instanceof Me){const l=o;e=r,t=s,n=a<0?Ye(l):Je(l);continue e}else return}else return}}function v2(e,t,n){const r=P0(e,t,n);if(r==null)throw new Error;return x(r)}function b2(e,t,n){e:for(;;){const r=e,s=t,i=n;if(i!=null){const o=x(i),a=r.Compare(s,qe(o))|0;if(o instanceof Me){const l=o;if(a<0){e=r,t=s,n=Ye(l);continue e}else{if(a===0)return!0;e=r,t=s,n=Je(l);continue e}}else return a===0}else return!1}}function M0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=x(r);if(s instanceof Me){const i=s;M0(n,Ye(i)),n(qe(i),ot(i)),e=n,t=Je(i);continue e}else n(qe(s),ot(s))}break}}function C2(e,t){M0(e,t)}function S2(e,t,n){let r=n;C2((s,i)=>{gt(t,r,[s,i]),r=r+1|0},e)}function k2(e,t){return Pt((n,r)=>Er(e,r[0],r[1],n),void 0,t)}function x2(e,t,n){e:for(;;){const r=e,s=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=Er(r,o[0],o[1],s),n=i;continue e}else return s}}function I2(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const s=re(r,t);n=Er(e,s[0],s[1],n)}return n}function O0(e,t){if(mt(t))return I2(e,t);if(t instanceof je)return k2(e,t);{const n=pe(t);try{return x2(e,void 0,n)}finally{ae(n)}}}class A2 extends B{constructor(t,n){super(),this.stack=t,this.started=n}}function D0(e){e:for(;;){const t=e;if(M(t))return ce();{const n=P(t),r=k(t);if(r!=null){const s=x(r);if(s instanceof Me){const i=s;e=be([Ye(i),Ni(qe(i),ot(i)),Je(i)],n);continue e}else return t}else{e=n;continue e}}}}function N0(e){return new A2(D0(E(e)),!1)}function E2(){throw new Error("enumeration not started")}function T2(){throw new Error("enumeration already finished")}function R0(e){if(e.started){const t=e.stack;if(M(t))return T2();if(k(t)!=null){const n=x(k(t));if(n instanceof Me)throw new Error("Please report error: Map iterator, unexpected stack for current");return[qe(n),ot(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return E2()}function P2(e){if(e.started){const t=e.stack;if(M(t))return!1;if(k(t)!=null){if(x(k(t))instanceof Me)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=D0(P(t)),!M(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!M(e.stack)}function L0(e){let t=N0(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return R0(t)},"System.Collections.IEnumerator.get_Current"(){return R0(t)},"System.Collections.IEnumerator.MoveNext"(){return P2(t)},"System.Collections.IEnumerator.Reset"(){t=N0(e)},Dispose(){}}}class Li{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return N2(this)|0}Equals(t){const n=this;if(t instanceof Li){const r=t,s=pe(n);try{const i=pe(r);try{const o=()=>{const a=s["System.Collections.IEnumerator.MoveNext"]();if(a===i["System.Collections.IEnumerator.MoveNext"]())if(a){const l=s["System.Collections.Generic.IEnumerator`1.get_Current"](),u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();return O(l[0],u[0])&&O(l[1],u[1])?o():!1}else return!0;else return!1};return o()}finally{ae(i)}}finally{ae(s)}}else return!1}toString(){return"map ["+_e("; ",ke(n=>oc("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return L0(this.tree)}[Symbol.iterator](){return Vr(pe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return L0(this.tree)}CompareTo(t){const n=this;if(t instanceof Li)return J1((s,i)=>{const o=n.comparer.Compare(s[0],i[0])|0;return(o!==0?o:ut(s[1],i[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 V0(n,t[0])&&O(B0(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){S2(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return il(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return il(this)|0}get size(){return il(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return ke(n=>[n[0],n[1]],this)}get(t){return B0(this,t)}has(t){return V0(this,t)}keys(){return ke(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return ke(n=>n[1],this)}forEach(t,n){const r=this;xn(s=>{t(s[1],s[0],r)},r)}}function Bi(e,t){return new Li(e,t)}function M2(e){return Bi(e,void 0)}function O2(e,t,n){return Bi(e.comparer,Er(e.comparer,t,n,e.tree))}function B0(e,t){return v2(e.comparer,t,e.tree)}function il(e){return _2(e.tree)}function V0(e,t){return b2(e.comparer,t,e.tree)}function D2(e,t){return P0(e.comparer,t,e.tree)}function N2(e){const t=(s,i)=>(s<<1)+i+631;let n=0;const r=pe(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const s=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,jt(s[0]))|0,n=t(n,jt(s[1]))|0}}finally{ae(r)}return n|0}function F0(e,t,n){return O2(n,e,t)}function W0(e,t){return D2(t,e)}function R2(e,t){return Bi(t,O0(t,e))}function L2(e,t){return Bi(t,O0(t,e))}function ol(e){return M2(e)}function al(e){return new x0("Content-Type",e)}function B2(e){return new x0("Authorization",e)}const Wn=new ds("",new Lt(0,[]),ce(),!1,void 0,void 0,void 0,new Zt(0,[]));new I0(0,"","","",ol({Compare:Ns}),new Ar(0,[""]));function j0(e,t){return ac(t)?new Array(0):Xs(t,[e],void 0,0)}function V2(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}function Xt(e){return new ds(e,Wn.method,Wn.headers,Wn.withCredentials,Wn.overridenMimeType,Wn.overridenResponseType,Wn.timeout,Wn.content)}function Kt(e,t){return new ds(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Vi(e,t){return new ds(t.url,t.method,wt(t.headers,E(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function pn(e,t){return new ds(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function hs(e){return Df(t=>{const n=new XMLHttpRequest;n.open(V2(e.method),e.url),n.onreadystatechange=()=>{let l,u,f,c,p,h,$;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),f=n.status|0,c=n.responseType,p=(h=n.responseType,h===""?new Ar(0,[n.responseText]):h==="text"?new Ar(0,[n.responseText]):h==="arraybuffer"?new Ar(2,[n.response]):h==="blob"?new Ar(1,[n.response]):new Ar(3,[n.response])),$=L2(_1(g=>{const w=y(j0(":",g));if(!M(w))return[k(w).toLocaleLowerCase(),_e(":",P(w)).trim()]},j0(`\r
776
+ `,n.getAllResponseHeaders())),{Compare:Ns}),new I0(f,l,c,n.responseURL,$,p)))};const r=pe(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(l.fields[0],l.fields[1])}}finally{ae(r)}n.withCredentials=e.withCredentials;const s=e.overridenMimeType;if(s!=null){const l=s;n.overrideMimeType(l)}const i=e.overridenResponseType;if(i!=null)switch(i.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const o=e.timeout;if(o!=null){const l=o|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send(Ae(a.fields[0]));break}case 3:{n.send(Ae(a.fields[0]));break}case 2:{n.send(Ae(a.fields[0]));break}default:n.send()}})}function ms(e){return e<0?Math.ceil(e):Math.floor(e)}function U0(e=0,t=0,n=0,r=0,s=0){switch(arguments.length){case 1:return F2(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],s=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+s}function F2(e){return Number(BigInt(e)/10000n)}function W2(e){return ms(e/864e5)}function j2(e){return ms(e%864e5/36e5)}function U2(e){return ms(e%36e5/6e4)}function z2(e){return ms(e%6e4/1e3)}function H2(e){return ms(e%1e3)}function G2(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(W2(e)),s=Math.abs(j2(e)),i=Math.abs(U2(e)),o=Math.abs(z2(e)),a=Math.abs(H2(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?s:le(s,2)}:${le(i,2)}:${le(o,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+le(a,3):"."+cm(a,3,7)}`}function q2(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 U0(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let s=0,i=0,o=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],u=+r[5];if(r[3]!=null&&(s=+r[3]),r[7]!=null&&(o=+r[7]),r[8]!=null)switch(r[8].length){case 1:i=+r[8]*100;break;case 2:i=+r[8]*10;break;case 3:i=+r[8];break;case 4:i=+r[8]/10;break;case 5:i=+r[8]/100;break;case 6:i=+r[8]/1e3;break;case 7:i=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*U0(s,l,u,o,i)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Y2(e,t){try{return t.contents=q2(e),!0}catch{return!1}}class L extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class He extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function z0(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function H0(e,t){switch(e.tag){case 2:return o1(z0(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return z0(t)}}function J2(e){return e}const G0=te();function Fi(e){return Array.from(e)}function Z2(e){return qs(e,"O")}function X2(e){return G2(e)}function K2(){return te()}function Q2(e){return qs(e,"O")}function $n(e,t){return JSON.stringify(t,void 0,Ae(e))}function ev(e){return t=>Wm(Le(e,t),()=>G0)}function q0(e,t,n,r){let s;const i=new Ze(te());let o;const a=we(r);o=a===""?e:F0(a,i,e);let l;if(Wu(r)){const u=sr(f=>{const c=H0(t,Qn(f)),p=Qt(o,t,n,f[1]);return h=>$=>{const g=Lm(h,f);return(!n||n&&g!=null)&&($[c]=p(g)),$}},jr(r));l=f=>Xr((c,p)=>p(f)(c),{},u)}else if(Fu(r))l=u=>{const f=Rm(u,r),c=f[0],p=f[1],h=p.length|0;if(h===0)return Qn(c);{const $=h|0,g=ju(c),w=Ks(new Array($+1),0,$+1,null);gt(w,0,Qn(c));for(let v=1;v<=$;v++){const S=Qt(o,t,n,re(v-1,g)[1]);gt(w,v,S(re(v-1,p)))}return w}};else throw new Error((s=we(r),We(Fe(`Cannot generate auto encoder for %s. Please pass an extra encoder.
777
777
 
778
- Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(s)));return i.contents=l,l}function nn(e,t,n,r){const s=ye(r),i=Y0(s,e);if(i==null)if(Fu(r)){const o=nn(e,t,n,zr(r));return a=>zi(Ie(o,a))}else if(To(r))switch(ye(Uu(r))){case"System.SByte":return a=>a;case"System.Byte":return a=>a;case"System.Int16":return a=>a;case"System.UInt16":return a=>a;case"System.Int32":return a=>a;case"System.UInt32":return a=>a;default:{const a=ye(r);return uc(Ue(`Cannot generate auto encoder for %s.
778
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(s)));return i.contents=l,l}function Qt(e,t,n,r){const s=we(r),i=W0(s,e);if(i==null)if(Du(r)){const o=Qt(e,t,n,Wr(r));return a=>Fi(ke(o,a))}else if(xo(r))switch(we(Lu(r))){case"System.SByte":return a=>a;case"System.Byte":return a=>a;case"System.Int16":return a=>a;case"System.UInt16":return a=>a;case"System.Int32":return a=>a;case"System.UInt32":return a=>a;default:{const a=we(r);return rc(Fe(`Cannot generate auto encoder for %s.
779
779
  Thoth.Json.Net only support the following enum types:
780
780
  - sbyte
781
781
  - byte
@@ -787,17 +787,17 @@ Thoth.Json.Net only support the following enum types:
787
787
  If you can't use one of these types, please pass an extra encoder.
788
788
 
789
789
  Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders
790
- `))(a)}}else if(Wu(r))if(Po(r)){const o=ar(a=>nn(e,t,n,a),Hu(r));return a=>zi(np((l,u)=>re(l,o)(u),a))}else{const o=ye(ju(r));if(o==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new mm(()=>iv(nn(e,t,n,re(0,ot(r)))));return l=>l==null?Q0:a.Value(l)}else if(o==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||o==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||o==="System.Collections.Generic.IEnumerable`1[System.Object]"){const a=nn(e,t,n,re(0,ot(r)));return l=>zi(Ie(a,l))}else if(o==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=re(0,ot(r)),l=nn(e,t,n,re(1,ot(r)));if(ye(a)==="System.String"||ye(a)==="System.Guid")return u=>es((f,c)=>{const p=c;return f[p[0]]=l(p[1]),f},{},u);{let u;return u=nn(e,t,n,a),c=>zi(Ie(p=>{const m=p;return[u(m[0]),l(m[1])]},c))}}else return eh(e,t,n,r)}else switch(s){case"System.Boolean":return o=>o;case"Microsoft.FSharp.Core.Unit":return rv;case"System.String":return o=>o;case"System.Char":return o=>o;case"System.SByte":return o=>o;case"System.Byte":return o=>o;case"System.Int16":return o=>o;case"System.UInt16":return o=>o;case"System.Int32":return o=>o;case"System.UInt32":return o=>o;case"System.Double":return o=>o;case"System.Single":return o=>o;case"System.DateTime":return sv;case"System.DateTimeOffset":return tv;case"System.TimeSpan":return nv;case"System.Guid":return ev;case"System.Object":return o=>o;default:return eh(e,t,n,r)}else{const o=i;return a=>o.contents(a)}}function ov(e){return dl({Compare:Fs})}function vn(e,t,n,r){const s=Te(t,new qe(0,[])),i=Te(r,!0);return nn(ov(),s,i,e)}function th(e,t){av(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function av(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 lv(){return th(-621355968e5,0)}function uv(e){const[t,n]=Qu(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return th(t.getTime(),r)}function cv(e,t){try{return t.contents=uv(e),!0}catch{return!1}}function ys(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
790
+ `))(a)}}else if(Nu(r))if(Io(r)){const o=sr(a=>Qt(e,t,n,a),Vu(r));return a=>Fi(X1((l,u)=>re(l,o)(u),a))}else{const o=we(Ru(r));if(o==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new um(()=>ev(Qt(e,t,n,re(0,tt(r)))));return l=>l==null?G0:a.Value(l)}else if(o==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||o==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||o==="System.Collections.Generic.IEnumerable`1[System.Object]"){const a=Qt(e,t,n,re(0,tt(r)));return l=>Fi(ke(a,l))}else if(o==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=re(0,tt(r)),l=Qt(e,t,n,re(1,tt(r)));if(we(a)==="System.String"||we(a)==="System.Guid")return u=>Xr((f,c)=>{const p=c;return f[p[0]]=l(p[1]),f},{},u);{let u;return u=Qt(e,t,n,a),c=>Fi(ke(p=>{const h=p;return[u(h[0]),l(h[1])]},c))}}else return q0(e,t,n,r)}else switch(s){case"System.Boolean":return o=>o;case"Microsoft.FSharp.Core.Unit":return K2;case"System.String":return o=>o;case"System.Char":return o=>o;case"System.SByte":return o=>o;case"System.Byte":return o=>o;case"System.Int16":return o=>o;case"System.UInt16":return o=>o;case"System.Int32":return o=>o;case"System.UInt32":return o=>o;case"System.Double":return o=>o;case"System.Single":return o=>o;case"System.DateTime":return Q2;case"System.DateTimeOffset":return Z2;case"System.TimeSpan":return X2;case"System.Guid":return J2;case"System.Object":return o=>o;default:return q0(e,t,n,r)}else{const o=i;return a=>o.contents(a)}}function tv(e){return ol({Compare:Ns})}function gn(e,t,n,r){const s=Ee(t,new He(0,[])),i=Ee(r,!0);return Qt(tv(),s,i,e)}function Y0(e,t){nv(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function nv(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 rv(){return Y0(-621355968e5,0)}function sv(e){const[t,n]=qu(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return Y0(t.getTime(),r)}function iv(e,t){try{return t.contents=sv(e),!0}catch{return!1}}function ps(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
791
791
  `:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
792
- `:" ")}}function fv(e,t){const n=t.tag===2?ys(t.fields[0],t.fields[1],!0):t.tag===1?ys(t.fields[0],t.fields[1],!1)+`
793
- Reason: `+t.fields[2]:t.tag===3?ys(t.fields[0],t.fields[1],!0):t.tag===4?ys(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
792
+ `:" ")}}function ov(e,t){const n=t.tag===2?ps(t.fields[0],t.fields[1],!0):t.tag===1?ps(t.fields[0],t.fields[1],!1)+`
793
+ Reason: `+t.fields[2]:t.tag===3?ps(t.fields[0],t.fields[1],!0):t.tag===4?ps(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
794
794
  `+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
795
795
 
796
- `+be(`
796
+ `+_e(`
797
797
 
798
- `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:ys(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function nh(e,t,n){const r=t(e,n);if(r.tag===1){const s=r.fields[0];return new h(1,[fv(s[0],s[1])])}else return new h(0,[r.fields[0]])}function rn(e,t){try{return nh("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new h(1,["Given an invalid JSON: "+n.message]);throw n}}function rh(e,t){return typeof t=="string"?new h(0,[t]):new h(1,[[e,new L(0,["a string",t])]])}function dv(e,t){if(typeof t=="string"){const n=t;return n.length===1?new h(0,[n[0]]):new h(1,[[e,new L(0,["a single character string",t])]])}else return new h(1,[[e,new L(0,["a char",t])]])}function hv(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Gp(t,new et(()=>r,s=>{r=s})),r],n[0]?new h(0,[n[1]]):new h(1,[[e,new L(0,["a guid",t])]])}else return new h(1,[[e,new L(0,["a guid",t])]])}function mv(e,t){return t==null?new h(0,[void 0]):new h(1,[[e,new L(0,["null",t])]])}const sh=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?-128<=s&&s<=127?new h(0,[(s+128&255)-128]):new h(1,[[n,new L(1,["a sbyte",s,"Value was either too large or too small for a sbyte"])]]):new h(1,[[n,new L(1,["a sbyte",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,i=0;return s=[mr(r,511,!1,8,new et(()=>i,o=>{i=o|0})),i],s[0]?new h(0,[s[1]]):new h(1,[[n,new L(0,["a sbyte",r])]])}else return new h(1,[[n,new L(0,["a sbyte",r])]])},ih=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?0<=s&&s<=255?new h(0,[s&255]):new h(1,[[n,new L(1,["a byte",s,"Value was either too large or too small for a byte"])]]):new h(1,[[n,new L(1,["a byte",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,i=0;return s=[mr(r,511,!0,8,new et(()=>i,o=>{i=o})),i],s[0]?new h(0,[s[1]]):new h(1,[[n,new L(0,["a byte",r])]])}else return new h(1,[[n,new L(0,["a byte",r])]])},oh=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?-32768<=s&&s<=32767?new h(0,[(s+32768&65535)-32768]):new h(1,[[n,new L(1,["an int16",s,"Value was either too large or too small for an int16"])]]):new h(1,[[n,new L(1,["an int16",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,i=0;return s=[mr(r,511,!1,16,new et(()=>i,o=>{i=o|0})),i],s[0]?new h(0,[s[1]]):new h(1,[[n,new L(0,["an int16",r])]])}else return new h(1,[[n,new L(0,["an int16",r])]])},ah=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?0<=s&&s<=65535?new h(0,[s&65535]):new h(1,[[n,new L(1,["an uint16",s,"Value was either too large or too small for an uint16"])]]):new h(1,[[n,new L(1,["an uint16",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,i=0;return s=[mr(r,511,!0,16,new et(()=>i,o=>{i=o})),i],s[0]?new h(0,[s[1]]):new h(1,[[n,new L(0,["an uint16",r])]])}else return new h(1,[[n,new L(0,["an uint16",r])]])},lh=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?-2147483648<=s&&s<=2147483647?new h(0,[~~s]):new h(1,[[n,new L(1,["an int",s,"Value was either too large or too small for an int"])]]):new h(1,[[n,new L(1,["an int",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,i=0;return s=[mr(r,511,!1,32,new et(()=>i,o=>{i=o|0})),i],s[0]?new h(0,[s[1]]):new h(1,[[n,new L(0,["an int",r])]])}else return new h(1,[[n,new L(0,["an int",r])]])},uh=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?0<=s&&s<=4294967295?new h(0,[s>>>0]):new h(1,[[n,new L(1,["an uint32",s,"Value was either too large or too small for an uint32"])]]):new h(1,[[n,new L(1,["an uint32",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,i=0;return s=[mr(r,511,!0,32,new et(()=>i,o=>{i=o})),i],s[0]?new h(0,[s[1]]):new h(1,[[n,new L(0,["an uint32",r])]])}else return new h(1,[[n,new L(0,["an uint32",r])]])};function pv(e,t){return typeof t=="boolean"?new h(0,[t]):new h(1,[[e,new L(0,["a boolean",t])]])}function $v(e,t){return typeof t=="number"?new h(0,[t]):new h(1,[[e,new L(0,["a float",t])]])}function gv(e,t){return typeof t=="number"?new h(0,[t]):new h(1,[[e,new L(0,["a float32",t])]])}function wv(e,t){if(typeof t=="string"){let n,r=n1();return n=[s1(t,new et(()=>r,s=>{r=s})),r],n[0]?new h(0,[a1(n[1])]):new h(1,[[e,new L(0,["a datetime",t])]])}else return new h(1,[[e,new L(0,["a datetime",t])]])}function yv(e,t){if(typeof t=="string"){let n,r=lv();return n=[cv(t,new et(()=>r,s=>{r=s})),r],n[0]?new h(0,[n[1]]):new h(1,[[e,new L(0,["a datetimeoffset",t])]])}else return new h(1,[[e,new L(0,["a datetime",t])]])}function _v(e,t){if(typeof t=="string"){let n,r=0;return n=[Q2(t,new et(()=>r,s=>{r=s})),r],n[0]?new h(0,[n[1]]):new h(1,[[e,new L(0,["a timespan",t])]])}else return new h(1,[[e,new L(0,["a timespan",t])]])}function ch(e,t,n,r){let s;const i=n+".["+un(e)+"]";if(Array.isArray(r)){const o=r;return e<o.length?t(i,re(e,o)):new h(1,[[i,new L(5,["a longer array. Need index `"+un(e)+"` but there are only `"+(s=o.length,un(s))+"` entries",r])]])}else return new h(1,[[i,new L(0,["an array",r])]])}function vv(e,t,n){return n==null?new h(0,[void 0]):St(Ee,e(t,n))}function fh(e,t,n){if(Array.isArray(n)){let r=-1;return St(cr,si((s,i)=>{if(r=r+1|0,s.tag===0){const o=e(t+".["+un(r)+"]",i);return o.tag===0?new h(0,[nt(o.fields[0],s.fields[0])]):new h(1,[o.fields[0]])}else return s},new h(0,[de()]),n))}else return new h(1,[[t,new L(0,["a list",n])]])}function bv(e,t,n){if(Array.isArray(n)){let r=-1;return St(rp,si((s,i)=>{if(r=r+1|0,s.tag===0){const o=e(t+".["+un(r)+"]",i);return o.tag===0?new h(0,[V([o.fields[0]],s.fields[0])]):new h(1,[o.fields[0]])}else return s},new h(0,[[]]),n))}else return new h(1,[[t,new L(0,["a seq",n])]])}function dh(e,t,n){if(Array.isArray(n)){let r=-1;const s=n;return si((i,o)=>{if(r=r+1|0,i.tag===0){const a=i.fields[0],l=e(t+".["+un(r)+"]",o);return l.tag===0?(vt(a,r,l.fields[0]),new h(0,[a])):new h(1,[l.fields[0]])}else return i},new h(0,[ri(new Array(s.length),0,s.length,null)]),s)}else return new h(1,[[t,new L(0,["an array",n])]])}function Cv(e,t,n){return((s,i)=>{e:for(;;){const o=s,a=i;if(M(o))return new h(1,[[t,new L(7,[a])]]);{const l=nh(t,ne(k(o)),n);if(l.tag===1){s=P(o),i=bt(a,A(l.fields[0]));continue e}else return new h(0,[l.fields[0]])}}})(e,de())}function Sv(e,t,n){return new h(0,[e])}function hh(e,t,n,r){const s=t(n,r);return s.tag===0?e(s.fields[0],n,r):new h(1,[s.fields[0]])}function kv(e,t,n,r){const s=t(n,r);return s.tag===1?new h(1,[s.fields[0]]):new h(0,[e(s.fields[0])])}function xv(e,t){let n;const r=e;return n=s=>i=>ch(0,r,s,i),s=>i=>hh(Io(o=>{let a;const l=t;return a=u=>f=>ch(1,l,u,f),u=>f=>hh((c,p,m)=>Sv([o,c]),ne(a),u,f)}),ne(n),s,i)}function Iv(e){return W2(e,{Compare:ht})}function Av(e){return Zy(e,{Compare:ht})}function Ev(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?wc((r,s)=>{const i=r[0];return s.tag===0?St(o=>nt(o,s.fields[0]),r[1](t+"."+i)(n[i])):s},e,new h(0,[de()])):new h(1,[[t,new L(0,["an object",n])]])}function Tv(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?es((s,i)=>{if(s.tag===0){const o=e(n,i);if(o.tag===0){const a=t(n+"."+i,r[i]);return a.tag===0?new h(0,[nt([o.fields[0],a.fields[0]],s.fields[0])]):new h(1,[a.fields[0]])}else return new h(1,[o.fields[0]])}else return s},new h(0,[de()]),Object.keys(r)):new h(1,[[n,new L(0,["an object",r])]])}function mh(e,t,n,r){let s;const i=t.length+e|0;if(i!==r.length)return new h(1,[[n,new L(6,[(s=r.length|0,ze(Ue("Expected array of length %i but got %i"))(i)(s))])]]);{let o=new h(0,[de()]);for(let a=e;a<=r.length-1;a++)if(o.tag===0){const l=o.fields[0],u=ze(Ue("%s[%i]"))(n)(a),f=re(a-e,t),c=re(a,r);o=St(p=>nt(p,l),f(u)(c))}return St(cr,o)}}function ph(e,t,n,r,s,i){const o=C1(a=>nr(a)===r,zu(n));if(o!=null){const a=o,l=ar(u=>Tt(e,t,!1,u[1]),Yu(a));return St(u=>Um(a,ur(u)),l.length===0&&i.length<=1?new h(0,[de()]):mh(1,l,s,i))}else return new h(1,[[s,new L(6,["Cannot find case "+r+" in "+ye(n)])]])}function $h(e,t,n,r){let s;const i=new et(te());let o;const a=ye(r);o=a===""?e:q0(a,i,e);let l;if(qu(r)){const u=ar(f=>[K0(t,nr(f)),Tt(o,t,!1,f[1])],Hr(r));l=f=>c=>St(p=>zm(r,ur(p)),Ev(u,f,c))}else if(Gu(r))l=u=>f=>{if(typeof f=="string")return ph(o,t,r,f,u,[]);if(Array.isArray(f)){const c=f;return Wc(p=>ph(o,t,r,p,u,c),rh(u+"[0]",re(0,c)))}else return new h(1,[[u,new L(0,["a string or array",f])]])};else if(n)l=u=>f=>new h(1,[[u,new L(2,["an extra coder for "+ye(r),f])]]);else throw new Error((s=ye(r),ze(Ue(`Cannot generate auto decoder for %s. Please pass an extra decoder.
798
+ `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:ps(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function J0(e,t,n){const r=t(e,n);if(r.tag===1){const s=r.fields[0];return new m(1,[ov(s[0],s[1])])}else return new m(0,[r.fields[0]])}function en(e,t){try{return J0("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new m(1,["Given an invalid JSON: "+n.message]);throw n}}function Z0(e,t){return typeof t=="string"?new m(0,[t]):new m(1,[[e,new L(0,["a string",t])]])}function av(e,t){if(typeof t=="string"){const n=t;return n.length===1?new m(0,[n[0]]):new m(1,[[e,new L(0,["a single character string",t])]])}else return new m(1,[[e,new L(0,["a char",t])]])}function lv(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Up(t,new Ze(()=>r,s=>{r=s})),r],n[0]?new m(0,[n[1]]):new m(1,[[e,new L(0,["a guid",t])]])}else return new m(1,[[e,new L(0,["a guid",t])]])}function uv(e,t){return t==null?new m(0,[void 0]):new m(1,[[e,new L(0,["null",t])]])}const X0=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?-128<=s&&s<=127?new m(0,[(s+128&255)-128]):new m(1,[[n,new L(1,["a sbyte",s,"Value was either too large or too small for a sbyte"])]]):new m(1,[[n,new L(1,["a sbyte",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,i=0;return s=[fr(r,511,!1,8,new Ze(()=>i,o=>{i=o|0})),i],s[0]?new m(0,[s[1]]):new m(1,[[n,new L(0,["a sbyte",r])]])}else return new m(1,[[n,new L(0,["a sbyte",r])]])},K0=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?0<=s&&s<=255?new m(0,[s&255]):new m(1,[[n,new L(1,["a byte",s,"Value was either too large or too small for a byte"])]]):new m(1,[[n,new L(1,["a byte",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,i=0;return s=[fr(r,511,!0,8,new Ze(()=>i,o=>{i=o})),i],s[0]?new m(0,[s[1]]):new m(1,[[n,new L(0,["a byte",r])]])}else return new m(1,[[n,new L(0,["a byte",r])]])},Q0=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?-32768<=s&&s<=32767?new m(0,[(s+32768&65535)-32768]):new m(1,[[n,new L(1,["an int16",s,"Value was either too large or too small for an int16"])]]):new m(1,[[n,new L(1,["an int16",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,i=0;return s=[fr(r,511,!1,16,new Ze(()=>i,o=>{i=o|0})),i],s[0]?new m(0,[s[1]]):new m(1,[[n,new L(0,["an int16",r])]])}else return new m(1,[[n,new L(0,["an int16",r])]])},eh=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?0<=s&&s<=65535?new m(0,[s&65535]):new m(1,[[n,new L(1,["an uint16",s,"Value was either too large or too small for an uint16"])]]):new m(1,[[n,new L(1,["an uint16",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,i=0;return s=[fr(r,511,!0,16,new Ze(()=>i,o=>{i=o})),i],s[0]?new m(0,[s[1]]):new m(1,[[n,new L(0,["an uint16",r])]])}else return new m(1,[[n,new L(0,["an uint16",r])]])},th=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?-2147483648<=s&&s<=2147483647?new m(0,[~~s]):new m(1,[[n,new L(1,["an int",s,"Value was either too large or too small for an int"])]]):new m(1,[[n,new L(1,["an int",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,i=0;return s=[fr(r,511,!1,32,new Ze(()=>i,o=>{i=o|0})),i],s[0]?new m(0,[s[1]]):new m(1,[[n,new L(0,["an int",r])]])}else return new m(1,[[n,new L(0,["an int",r])]])},nh=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?0<=s&&s<=4294967295?new m(0,[s>>>0]):new m(1,[[n,new L(1,["an uint32",s,"Value was either too large or too small for an uint32"])]]):new m(1,[[n,new L(1,["an uint32",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,i=0;return s=[fr(r,511,!0,32,new Ze(()=>i,o=>{i=o})),i],s[0]?new m(0,[s[1]]):new m(1,[[n,new L(0,["an uint32",r])]])}else return new m(1,[[n,new L(0,["an uint32",r])]])};function cv(e,t){return typeof t=="boolean"?new m(0,[t]):new m(1,[[e,new L(0,["a boolean",t])]])}function fv(e,t){return typeof t=="number"?new m(0,[t]):new m(1,[[e,new L(0,["a float",t])]])}function dv(e,t){return typeof t=="number"?new m(0,[t]):new m(1,[[e,new L(0,["a float32",t])]])}function hv(e,t){if(typeof t=="string"){let n,r=Xm();return n=[Qm(t,new Ze(()=>r,s=>{r=s})),r],n[0]?new m(0,[n1(n[1])]):new m(1,[[e,new L(0,["a datetime",t])]])}else return new m(1,[[e,new L(0,["a datetime",t])]])}function mv(e,t){if(typeof t=="string"){let n,r=rv();return n=[iv(t,new Ze(()=>r,s=>{r=s})),r],n[0]?new m(0,[n[1]]):new m(1,[[e,new L(0,["a datetimeoffset",t])]])}else return new m(1,[[e,new L(0,["a datetime",t])]])}function pv(e,t){if(typeof t=="string"){let n,r=0;return n=[Y2(t,new Ze(()=>r,s=>{r=s})),r],n[0]?new m(0,[n[1]]):new m(1,[[e,new L(0,["a timespan",t])]])}else return new m(1,[[e,new L(0,["a timespan",t])]])}function rh(e,t,n,r){let s;const i=n+".["+sn(e)+"]";if(Array.isArray(r)){const o=r;return e<o.length?t(i,re(e,o)):new m(1,[[i,new L(5,["a longer array. Need index `"+sn(e)+"` but there are only `"+(s=o.length,sn(s))+"` entries",r])]])}else return new m(1,[[i,new L(0,["an array",r])]])}function $v(e,t,n){return n==null?new m(0,[void 0]):_t(Ae,e(t,n))}function sh(e,t,n){if(Array.isArray(n)){let r=-1;return _t(ar,Qs((s,i)=>{if(r=r+1|0,s.tag===0){const o=e(t+".["+sn(r)+"]",i);return o.tag===0?new m(0,[Ke(o.fields[0],s.fields[0])]):new m(1,[o.fields[0]])}else return s},new m(0,[ce()]),n))}else return new m(1,[[t,new L(0,["a list",n])]])}function gv(e,t,n){if(Array.isArray(n)){let r=-1;return _t(K1,Qs((s,i)=>{if(r=r+1|0,s.tag===0){const o=e(t+".["+sn(r)+"]",i);return o.tag===0?new m(0,[V([o.fields[0]],s.fields[0])]):new m(1,[o.fields[0]])}else return s},new m(0,[[]]),n))}else return new m(1,[[t,new L(0,["a seq",n])]])}function ih(e,t,n){if(Array.isArray(n)){let r=-1;const s=n;return Qs((i,o)=>{if(r=r+1|0,i.tag===0){const a=i.fields[0],l=e(t+".["+sn(r)+"]",o);return l.tag===0?(gt(a,r,l.fields[0]),new m(0,[a])):new m(1,[l.fields[0]])}else return i},new m(0,[Ks(new Array(s.length),0,s.length,null)]),s)}else return new m(1,[[t,new L(0,["an array",n])]])}function wv(e,t,n){return((s,i)=>{e:for(;;){const o=s,a=i;if(M(o))return new m(1,[[t,new L(7,[a])]]);{const l=J0(t,ne(k(o)),n);if(l.tag===1){s=P(o),i=wt(a,E(l.fields[0]));continue e}else return new m(0,[l.fields[0]])}}})(e,ce())}function yv(e,t,n){return new m(0,[e])}function oh(e,t,n,r){const s=t(n,r);return s.tag===0?e(s.fields[0],n,r):new m(1,[s.fields[0]])}function _v(e,t,n,r){const s=t(n,r);return s.tag===1?new m(1,[s.fields[0]]):new m(0,[e(s.fields[0])])}function vv(e,t){let n;const r=e;return n=s=>i=>rh(0,r,s,i),s=>i=>oh(Co(o=>{let a;const l=t;return a=u=>f=>rh(1,l,u,f),u=>f=>oh((c,p,h)=>yv([o,c]),ne(a),u,f)}),ne(n),s,i)}function bv(e){return R2(e,{Compare:ut})}function Cv(e){return Hy(e,{Compare:ut})}function Sv(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?dc((r,s)=>{const i=r[0];return s.tag===0?_t(o=>Ke(o,s.fields[0]),r[1](t+"."+i)(n[i])):s},e,new m(0,[ce()])):new m(1,[[t,new L(0,["an object",n])]])}function kv(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Xr((s,i)=>{if(s.tag===0){const o=e(n,i);if(o.tag===0){const a=t(n+"."+i,r[i]);return a.tag===0?new m(0,[Ke([o.fields[0],a.fields[0]],s.fields[0])]):new m(1,[a.fields[0]])}else return new m(1,[o.fields[0]])}else return s},new m(0,[ce()]),Object.keys(r)):new m(1,[[n,new L(0,["an object",r])]])}function ah(e,t,n,r){let s;const i=t.length+e|0;if(i!==r.length)return new m(1,[[n,new L(6,[(s=r.length|0,We(Fe("Expected array of length %i but got %i"))(i)(s))])]]);{let o=new m(0,[ce()]);for(let a=e;a<=r.length-1;a++)if(o.tag===0){const l=o.fields[0],u=We(Fe("%s[%i]"))(n)(a),f=re(a-e,t),c=re(a,r);o=_t(p=>Ke(p,l),f(u)(c))}return _t(ar,o)}}function lh(e,t,n,r,s,i){const o=w1(a=>Qn(a)===r,Bu(n));if(o!=null){const a=o,l=sr(u=>xt(e,t,!1,u[1]),ju(a));return _t(u=>Bm(a,or(u)),l.length===0&&i.length<=1?new m(0,[ce()]):ah(1,l,s,i))}else return new m(1,[[s,new L(6,["Cannot find case "+r+" in "+we(n)])]])}function uh(e,t,n,r){let s;const i=new Ze(te());let o;const a=we(r);o=a===""?e:F0(a,i,e);let l;if(Wu(r)){const u=sr(f=>[H0(t,Qn(f)),xt(o,t,!1,f[1])],jr(r));l=f=>c=>_t(p=>Vm(r,or(p)),Sv(u,f,c))}else if(Fu(r))l=u=>f=>{if(typeof f=="string")return lh(o,t,r,f,u,[]);if(Array.isArray(f)){const c=f;return Dc(p=>lh(o,t,r,p,u,c),Z0(u+"[0]",re(0,c)))}else return new m(1,[[u,new L(0,["a string or array",f])]])};else if(n)l=u=>f=>new m(1,[[u,new L(2,["an extra coder for "+we(r),f])]]);else throw new Error((s=we(r),We(Fe(`Cannot generate auto decoder for %s. Please pass an extra decoder.
799
799
 
800
- Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(s)));return i.contents=l,l}function Tt(e,t,n,r){let s,i,o,a;const l=ye(r),u=Y0(l,e);if(u==null)if(Fu(r)){const f=Tt(e,t,!1,zr(r));return c=>p=>dh(ne(f),c,p)}else if(To(r))switch(ye(Uu(r))){case"System.SByte":return c=>p=>{const m=r,$=c,g=p,w=sh($)(g);if(w.tag===1)return new h(1,[w.fields[0]]);{const v=w.fields[0]|0;return En(v,rr(m),{Equals:(S,N)=>S===N,GetHashCode:yt})?new h(0,[sr(m,v.toString())]):new h(1,[[$,new L(1,[ye(m),g,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>p=>{const m=r,$=c,g=p,w=ih($)(g);if(w.tag===1)return new h(1,[w.fields[0]]);{const v=w.fields[0];return En(v,rr(m),{Equals:(S,N)=>S===N,GetHashCode:yt})?new h(0,[sr(m,v.toString())]):new h(1,[[$,new L(1,[ye(m),g,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>p=>{const m=r,$=c,g=p,w=oh($)(g);if(w.tag===1)return new h(1,[w.fields[0]]);{const v=w.fields[0]|0;return En(v,rr(m),{Equals:(S,N)=>S===N,GetHashCode:yt})?new h(0,[sr(m,$m(v))]):new h(1,[[$,new L(1,[ye(m),g,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>p=>{const m=r,$=c,g=p,w=ah($)(g);if(w.tag===1)return new h(1,[w.fields[0]]);{const v=w.fields[0];return En(v,rr(m),{Equals:(S,N)=>S===N,GetHashCode:yt})?new h(0,[sr(m,v.toString())]):new h(1,[[$,new L(1,[ye(m),g,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>p=>{const m=r,$=c,g=p,w=lh($)(g);if(w.tag===1)return new h(1,[w.fields[0]]);{const v=w.fields[0]|0;return En(v,rr(m),{Equals:(S,N)=>S===N,GetHashCode:yt})?new h(0,[sr(m,un(v))]):new h(1,[[$,new L(1,[ye(m),g,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>p=>{const m=r,$=c,g=p,w=uh($)(g);if(w.tag===1)return new h(1,[w.fields[0]]);{const v=w.fields[0];return En(v,rr(m),{Equals:(S,N)=>S===N,GetHashCode:yt})?new h(0,[sr(m,v.toString())]):new h(1,[[$,new L(1,[ye(m),g,"Unkown value provided for the enum"])]])}};default:{const c=ye(r),p=uc(Ue(`Cannot generate auto decoder for %s.
800
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(s)));return i.contents=l,l}function xt(e,t,n,r){let s,i,o,a;const l=we(r),u=W0(l,e);if(u==null)if(Du(r)){const f=xt(e,t,!1,Wr(r));return c=>p=>ih(ne(f),c,p)}else if(xo(r))switch(we(Lu(r))){case"System.SByte":return c=>p=>{const h=r,$=c,g=p,w=X0($)(g);if(w.tag===1)return new m(1,[w.fields[0]]);{const v=w.fields[0]|0;return kn(v,er(h),{Equals:(S,N)=>S===N,GetHashCode:pt})?new m(0,[tr(h,v.toString())]):new m(1,[[$,new L(1,[we(h),g,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>p=>{const h=r,$=c,g=p,w=K0($)(g);if(w.tag===1)return new m(1,[w.fields[0]]);{const v=w.fields[0];return kn(v,er(h),{Equals:(S,N)=>S===N,GetHashCode:pt})?new m(0,[tr(h,v.toString())]):new m(1,[[$,new L(1,[we(h),g,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>p=>{const h=r,$=c,g=p,w=Q0($)(g);if(w.tag===1)return new m(1,[w.fields[0]]);{const v=w.fields[0]|0;return kn(v,er(h),{Equals:(S,N)=>S===N,GetHashCode:pt})?new m(0,[tr(h,fm(v))]):new m(1,[[$,new L(1,[we(h),g,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>p=>{const h=r,$=c,g=p,w=eh($)(g);if(w.tag===1)return new m(1,[w.fields[0]]);{const v=w.fields[0];return kn(v,er(h),{Equals:(S,N)=>S===N,GetHashCode:pt})?new m(0,[tr(h,v.toString())]):new m(1,[[$,new L(1,[we(h),g,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>p=>{const h=r,$=c,g=p,w=th($)(g);if(w.tag===1)return new m(1,[w.fields[0]]);{const v=w.fields[0]|0;return kn(v,er(h),{Equals:(S,N)=>S===N,GetHashCode:pt})?new m(0,[tr(h,sn(v))]):new m(1,[[$,new L(1,[we(h),g,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>p=>{const h=r,$=c,g=p,w=nh($)(g);if(w.tag===1)return new m(1,[w.fields[0]]);{const v=w.fields[0];return kn(v,er(h),{Equals:(S,N)=>S===N,GetHashCode:pt})?new m(0,[tr(h,v.toString())]):new m(1,[[$,new L(1,[we(h),g,"Unkown value provided for the enum"])]])}};default:{const c=we(r),p=rc(Fe(`Cannot generate auto decoder for %s.
801
801
  Thoth.Json.Net only support the following enum types:
802
802
  - sbyte
803
803
  - byte
@@ -806,7 +806,7 @@ Thoth.Json.Net only support the following enum types:
806
806
  - int
807
807
  - uint32
808
808
  If you can't use one of these types, please pass an extra decoder.
809
- `))(c);return m=>p(m)}}else if(Wu(r))if(Po(r)){const f=ar(c=>Tt(e,t,!1,c),Hu(r));return c=>p=>Array.isArray(p)?St(m=>Hm(ur(m)),mh(0,f,c,p)):new h(1,[[c,new L(0,["an array",p])]])}else switch(ye(ju(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return s=Tt(e,t,!0,re(0,ot(r))),c=>p=>vv(ne(s),c,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return i=Tt(e,t,!1,re(0,ot(r))),c=>p=>fh(ne(i),c,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return o=Tt(e,t,!1,re(0,ot(r))),c=>p=>bv(ne(o),c,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=Tt(e,t,!1,re(0,ot(r))),p=Tt(e,t,!1,re(1,ot(r)));let m;const $=y([g=>w=>Tv(ne(c),ne(p),g,w),(a=xv(ne(c),ne(p)),g=>w=>fh(ne(a),g,w))]);return m=g=>w=>Cv($,g,w),g=>w=>kv(Iv,ne(m),g,w)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=Tt(e,t,!1,re(0,ot(r)));return p=>m=>{const $=dh(ne(c),p,m);return $.tag===0?new h(0,[Av($.fields[0])]):new h(1,[$.fields[0]])}}default:return $h(e,t,n,r)}else switch(l){case"System.Boolean":return f=>c=>pv(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>mv(f,c);case"System.String":return f=>c=>rh(f,c);case"System.Char":return f=>c=>dv(f,c);case"System.SByte":return sh;case"System.Byte":return ih;case"System.Int16":return oh;case"System.UInt16":return ah;case"System.Int32":return lh;case"System.UInt32":return uh;case"System.Double":return f=>c=>$v(f,c);case"System.Single":return f=>c=>gv(f,c);case"System.DateTime":return f=>c=>wv(f,c);case"System.DateTimeOffset":return f=>c=>yv(f,c);case"System.TimeSpan":return f=>c=>_v(f,c);case"System.Guid":return f=>c=>hv(f,c);case"System.Object":return f=>c=>new h(0,[c]);default:return $h(e,t,n,r)}else{const f=u;return c=>p=>f.contents(c)(p)}}function Pv(e){return dl({Compare:Fs})}function sn(e,t,n){const r=Te(t,new qe(0,[]));return Tt(Pv(),r,!1,e)}class Mv{constructor(t){this.magicLink=t,this.backendUrl=`${Un}/workflows/public-backend/invites/${this.magicLink.InviteToken}`}}function Ov(e){return new Mv(e)}function Dv(e){return I.Delay(()=>{let t,n;const r=_s(e,(t=tn(new Ft(1,[]),en(`${e.backendUrl}/magic-link/validate`)),yn(new Qt(1,[(n=new x0(e.magicLink.MagicCode),_n(0,vn(W_(),new qe(1,[]),void 0,void 0)(n)))]),t)));return I.Bind(r,s=>{const i=s;if(i.tag===1)return I.Return(new h(1,[i.fields[0]]));{let o;const a=i.fields[0];return o=a.statusCode===200?rn(ne(sn(q_(),new qe(1,[]))),a.responseText):new h(1,["Unexpected response from backend"]),I.Return(o)}})})}function Nv(e,t){return I.Delay(()=>{let n,r;const s=_s(e,(n=tn(new Ft(1,[]),en(`${e.backendUrl}/magic-link/reissue`)),yn(new Qt(1,[(r=new I0(e.magicLink.MagicCode,t),_n(0,vn(Y_(),new qe(1,[]),void 0,void 0)(r)))]),n)));return I.Bind(s,i=>{const o=i;if(o.tag===1)return I.Return(new h(1,[o.fields[0]]));{let a;const l=o.fields[0];return a=l.statusCode===200?rn(ne(sn(K_(),new qe(1,[]))),l.responseText):new h(1,["Unexpected response from backend"]),I.Return(a)}})})}function Rv(e,t){return I.Delay(()=>{let n,r;const s=_s(e,(n=tn(new Ft(1,[]),en(`${e.backendUrl}/one-time-code/issue`)),yn(new Qt(1,[(r=new A0(e.magicLink.MagicCode,t),_n(0,vn(Q_(),new qe(1,[]),void 0,void 0)(r)))]),n)));return I.Bind(s,i=>{const o=i;if(o.tag===1)return I.Return(new h(1,[o.fields[0]]));{let a;const l=o.fields[0];return a=l.statusCode===200?rn(ne(sn(r2(),new qe(1,[]))),l.responseText):new h(1,["Unexpected response from backend"]),I.Return(a)}})})}function Lv(e,t){return I.Delay(()=>{let n,r;const s=_s(e,(n=tn(new Ft(1,[]),en(`${e.backendUrl}/one-time-code/validate`)),yn(new Qt(1,[(r=new E0(t),_n(0,vn(s2(),new qe(1,[]),void 0,void 0)(r)))]),n)));return I.Bind(s,i=>{const o=i;if(o.tag===1)return I.Return(new h(1,[o.fields[0]]));{let a;const l=o.fields[0];return a=l.statusCode===200?rn(ne(sn(l2(),new qe(1,[]))),l.responseText):new h(1,["Unexpected response from backend"]),I.Return(a)}})})}function Bv(e,t){return I.Delay(()=>{let n,r;const s=_s(e,(n=tn(new Ft(1,[]),en(`${e.backendUrl}/progress`)),yn(new Qt(1,[(r=new T0(e.magicLink.MagicCode,t),_n(0,vn(u2(),new qe(1,[]),void 0,void 0)(r)))]),n)));return I.Bind(s,i=>{const o=i;if(o.tag===1)return I.Return(new h(1,[o.fields[0]]));{let a;const l=o.fields[0];return a=l.statusCode===200?rn(ne(sn(h2(),new qe(1,[]))),l.responseText):new h(1,["Unexpected response from backend"]),I.Return(a)}})})}function _s(e,t){return I.Delay(()=>{let n;const r=gs(t);return n=I.Bind(r,s=>I.Return(new h(0,[s]))),I.Bind(n,s=>{const i=s;if(i.tag===1)return I.Return(new h(1,[i.fields[0]]));{const o=i.fields[0];if(o.statusCode===429||o.statusCode>=500){let a;const l=yi(2e3);return a=I.Bind(l,u=>I.Return(new h(0,[u]))),I.Bind(a,u=>{const f=u;if(f.tag===1)return I.Return(new h(1,[f.fields[0]]));{const c=gs(t);return I.Bind(c,p=>I.Return(new h(0,[p])))}})}else return I.Return(new h(0,[o]))}})})}class Vv extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AuthCode"]}}function ml(e){return new Vv(e)}function Fv(e){return e.fields[0]}class gh extends B{constructor(t,n,r,s,i,o){super(),this.id_token=t,this.access_token=n,this.expires_in=r,this.refresh_token=s,this.scope=i,this.token_type=o}}function pl(){return fe("Workflows.UI.Auth.Types.Credentials",[],gh,()=>[["id_token",G],["access_token",G],["expires_in",Vm],["refresh_token",K(G)],["scope",G],["token_type",G]])}let Gn=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SignIn","SignInWithCurrentAuth","NavigateToOnboarding"]}};function Wv(){return[new ol(de(),new q(0,[]),void 0,new S0(0,[new k0(void 0)])),A(e=>{e(new j(1,[new ke(0,[])]))})]}function jv(e,t,n,r,s){let i,o,a,l,u,f,c;const p=Ov(e);switch(r.tag){case 1:if(r.fields[0].tag===1){if(r.fields[0].fields[0].tag===1)return[s,A(m=>{m(new j(0,[new q(6,[new ie(5,[])])]))})];{let m;const $=r.fields[0].fields[0].fields[0].Outcome;switch($.tag){case 1:{const g=$.fields[0],w=g.OneTimeCodeOptionAvailable;m=g.IsInitialMagicLinkUsed?w?new j(0,[new q(1,[g.FirstName,new il(1,[])])]):new j(0,[new q(1,[g.FirstName,new il(0,[])])]):w?new j(3,[!1,new ke(0,[])]):new j(0,[new q(4,[])]);break}case 4:{m=new j(0,[new q(5,[])]);break}case 2:case 7:{m=new j(0,[new q(6,[new ie(2,[])])]);break}case 3:{m=new j(0,[new q(6,[new ie(4,[])])]);break}case 5:{m=new j(0,[new q(6,[new ie(3,[])])]);break}case 6:{m=new j(0,[new q(6,[new ie(1,[])])]);break}default:{const g=$.fields[0];g.IsInitialMagicLinkUsed?(n(ml(g.AuthCode)),m=new j(0,[new q(1,[g.FirstName,new il(2,[])])])):m=new j(6,[g.AuthCode])}}return[new ol(r.fields[0].fields[0].fields[0].CssOverrides,s.Page,z_(r.fields[0].fields[0].fields[0].Outcome),Te(H_(r.fields[0].fields[0].fields[0].Outcome),s.JourneyType)),A(g=>{g(m)})]}}else return[s,At(m=>{Je(m)},()=>Dv(p),void 0,m=>new j(1,[new ke(1,[m])]),m=>new j(1,[new ke(1,[new h(1,[m.message])])]))];case 2:return r.fields[1].tag===1?r.fields[1].fields[0].tag===1?[s,A(m=>{m(new j(0,[new q(6,[new ie(5,[])])]))})]:[s,(i=new j(0,[(o=r.fields[1].fields[0].fields[0].Outcome,o.tag===2?new q(2,[o.fields[0].MaskedEmail]):o.tag===1?new q(6,[new ie(2,[])]):o.tag===5?new q(6,[new ie(2,[])]):o.tag===3?new q(6,[new ie(4,[])]):o.tag===4?new q(6,[new ie(1,[])]):o.tag===6?new q(5,[]):o.tag===7?new q(6,[new ie(3,[])]):new q(2,[o.fields[0].MaskedEmail]))]),A(m=>{m(i)}))]:[s,At(m=>{Je(m)},m=>Nv(p,m),r.fields[0],m=>new j(2,[r.fields[0],new ke(1,[m])]),m=>new j(2,[r.fields[0],new ke(1,[new h(1,[m.message])])]))];case 3:return r.fields[1].tag===1?r.fields[1].fields[0].tag===1?[s,A(m=>{m(new j(0,[new q(6,[new ie(5,[])])]))})]:[s,(a=new j(0,[(l=r.fields[1].fields[0].fields[0].Outcome,l.tag===1?new q(4,[]):l.tag===2?new q(6,[new ie(0,[])]):l.tag===3?r.fields[0]?s.Page:new q(3,[l.fields[0].MaskedPhone]):l.tag===4?new q(6,[new ie(2,[])]):l.tag===7?new q(6,[new ie(2,[])]):l.tag===5?new q(6,[new ie(4,[])]):l.tag===6?new q(6,[new ie(1,[])]):l.tag===8?new q(5,[]):l.tag===9?new q(6,[new ie(3,[])]):r.fields[0]?s.Page:new q(3,[l.fields[0].MaskedPhone]))]),A(m=>{m(a)}))]:[s,At(m=>{Je(m)},m=>Rv(p,m),r.fields[0],m=>new j(3,[r.fields[0],new ke(1,[m])]),m=>new j(3,[r.fields[0],new ke(1,[new h(1,[m.message])])]))];case 4:return r.fields[2].tag===1?r.fields[2].fields[0].tag===1?[s,A(m=>{m(new j(0,[new q(6,[new ie(5,[])])]))})]:[s,(u=r.fields[2].fields[0].fields[0].Outcome,u.tag===1?u.fields[0].RemainingAttempts>0?(r.fields[1]({AttemptsRemaining:u.fields[0].RemainingAttempts}),X()):A(m=>{m(new j(0,[new q(6,[new ie(0,[])])]))}):u.tag===5?A(m=>{m(new j(0,[new q(6,[new ie(0,[])])]))}):u.tag===2?(r.fields[1]({}),X()):u.tag===3?(r.fields[1]({}),X()):u.tag===4?(r.fields[1]({}),X()):u.tag===6?A(m=>{m(new j(0,[new q(6,[new ie(4,[])])]))}):u.tag===7?A(m=>{m(new j(0,[new q(6,[new ie(1,[])])]))}):u.tag===8?A(m=>{m(new j(0,[new q(6,[new ie(2,[])])]))}):u.tag===9?A(m=>{m(new j(0,[new q(5,[])]))}):u.tag===10?A(m=>{m(new j(0,[new q(6,[new ie(0,[])])]))}):A(m=>{m(new j(6,[u.fields[0].AuthCode]))}))]:[s,At(m=>{Je(m)},m=>Lv(p,m),r.fields[0],m=>new j(4,[r.fields[0],r.fields[1],new ke(1,[m])]),m=>new j(4,[r.fields[0],r.fields[1],new ke(1,[new h(1,[m.message])])]))];case 5:return r.fields[1].tag===1?r.fields[1].fields[0].tag===1?[s,A(m=>{m(new j(0,[new q(6,[new ie(5,[])])]))})]:[s,(f=(c=r.fields[1].fields[0].fields[0].Outcome,c.tag===1?new j(0,[new q(6,[new ie(2,[])])]):c.tag===4?new j(0,[new q(6,[new ie(2,[])])]):c.tag===2?new j(0,[new q(6,[new ie(4,[])])]):c.tag===3?new j(0,[new q(6,[new ie(1,[])])]):c.tag===5?new j(0,[new q(5,[])]):c.tag===6?new j(0,[new q(6,[new ie(0,[])])]):r.fields[0].tag===1?new j(3,[!1,new ke(0,[])]):r.fields[0].tag===2?new j(6,[void 0]):new j(2,[!1,new ke(0,[])])),A(m=>{m(f)}))]:[s,At(m=>{Je(m)},m=>Bv(p,m),r.fields[0].tag===1?!1:r.fields[0].tag===2,m=>new j(5,[r.fields[0],new ke(1,[m])]),m=>new j(5,[r.fields[0],new ke(1,[new h(1,[m.message])])]))];case 6:return t(Fe(ml,r.fields[0])),[s,X()];default:return[new ol(s.CssOverrides,r.fields[0],s.Branding,s.JourneyType),X()]}}function Uv(e,t,n,r){const s=ui(!1),i=Fe(l=>d("span",{className:"font-semibold",children:`${l}`}),fn(l=>l.CompanyName,t)),o=n.tag===1?`Hi, ${e}`:n.tag===2?`${e}, join your workplace benefits program`:`Welcome, ${e}`,a=$e(E(()=>{let l,u;return V((l=n,l.tag===1?_(xc([])):l.tag===2?_(d("div",C(y([["className","sm:w-[700px]"],(u=[d("img",{src:"/workflows/app/app-invite/welcome.png"})],["children",b.Children.toArray(Array.from(u))])])))):_(xc([]))),E(()=>V(_(Mn(o)),E(()=>{let f;return V(_(d("div",C(y([["className","text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4 mb-8 sm:mb-14"],(f=$e(E(()=>{let c;return n.tag===1?V(_(Te(i,d("span",{children:["Your employer"]}))),E(()=>V(_(d("span",{children:[" has requested additional information from you."]})),E(()=>_(d("p",{children:["Sign in to complete your information request."]})))))):n.tag===2?_((c="Your employer has partnered with Flare Benefits to give you exclusive access to savings and perks from Australia’s most-loved brands, plus special offers to help you save on bigger expenses like household utilities, health insurance and more.",d("p",{children:[c]}))):V(_(d("p",{children:["Congratulations on the new role!"]})),E(()=>{let p;return _((p=y([d("span",{children:["Sign in to complete your onboarding with "]}),Te(i,d("span",{children:["your employer"]})),d("span",{children:["."]})]),d("p",{children:b.Children.toArray(Array.from(p))})))}))})),["children",b.Children.toArray(Array.from(f))])])))),E(()=>_(Yo(void 0,()=>{s[1](!0),r()},s[0],[d("span",{children:[n.tag===1?"Sign in":n.tag===2?"Continue":"Sign in"]})]))))}))))}));return d(Oe,{},...a)}function zv(e,t){let n,r,s,i;const o=[pp([]),Mn("Check your inbox"),d("div",C(y([(n="text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4",["className",n]),(r=[(s=y([d("span",{children:["We’ve sent a temporary access link to "]}),d("span",{className:"font-semibold",children:mc(e,"*","•")}),d("span",{children:["."]})]),d("p",{children:b.Children.toArray(Array.from(s))})),d("p",{children:["Click the link to confirm your email address and sign in. The link is valid for 5 minutes."]})],["children",b.Children.toArray(Array.from(r))])]))),d("div",C(y([["className","text-sm text-gray-900 whitespace-pre-wrap mt-10 sm:mt-14 space-y-4 leading-5"],(i=$e(E(()=>V(_(d("p",{children:["Can’t see the email? Check your spam folder."]})),E(()=>{const a=t;return a==null?_(te()):_(ai(a))})))),["children",b.Children.toArray(Array.from(i))])])))];return d(Oe,{},...o)}let on=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ResendTimerTick","SignIn","IncorrectOneTimeCodeCallback","SetCodeInvalid","SetCodeInputValue","SetReissueLinkInProgress"]}},qn=class extends B{constructor(t,n,r,s,i,o){super(),this.AttemptsRemaining=t,this.CodeInvalid=n,this.CodeInputValue=r,this.ResendTimer=s,this.SignInInProgress=i,this.ReissueLinkInProgress=o}};function Hv(){return[new qn(void 0,!1,"",void 0,!1,!1),X()]}function Gv(e,t,n){let r;switch(t.tag){case 1:{const s=Ro(na,n.CodeInputValue);return s.length===6?(e([qo(s,511,!1,32),t.fields[0]]),[new qn(n.AttemptsRemaining,n.CodeInvalid,n.CodeInputValue,n.ResendTimer,!0,n.ReissueLinkInProgress),X()]):[n,A(i=>{i(new on(3,[!0]))})]}case 2:return[new qn(t.fields[0],n.CodeInvalid,n.CodeInputValue,n.ResendTimer,n.SignInInProgress,n.ReissueLinkInProgress),A(s=>{s(new on(3,[!0]))})];case 3:{const s=t.fields[0];return[new qn(n.AttemptsRemaining,s,s?"":n.CodeInputValue,n.ResendTimer,!1,n.ReissueLinkInProgress),X()]}case 4:return[new qn(n.AttemptsRemaining,n.CodeInvalid,t.fields[0],n.ResendTimer,n.SignInInProgress,n.ReissueLinkInProgress),X()];case 5:return[new qn(n.AttemptsRemaining,n.CodeInvalid,n.CodeInputValue,n.ResendTimer,n.SignInInProgress,!0),X()];default:{const s=el(a=>{Je(a)},()=>I.Delay(()=>I.Bind(yi(1e3),()=>I.Return(void 0))),void 0,()=>new on(0,[]));let i;const o=n.ResendTimer;return i=o!=null?o>0?(r=o|0,[r-1,s]):[void 0,X()]:[20,s],[new qn(n.AttemptsRemaining,n.CodeInvalid,n.CodeInputValue,i[0],n.SignInInProgress,n.ReissueLinkInProgress),i[1]]}}}function Hi(e){e.target.id==="one-time-code-input"||e.key!=="Enter"&&document.getElementById("one-time-code-input").focus()}function qv(){document.addEventListener("keypress",e=>{Hi(e)}),document.addEventListener("paste",e=>{Hi(e)})}const Yv={Dispose(){document.removeEventListener("keypress",e=>{Hi(e)}),document.removeEventListener("paste",e=>{Hi(e)})}};function Jv(e){const t=e.reissueLink,n=e.reissueOneTimeCode,r=e.validateOneTimeCode,s=e.maskedPhone,i=rl(()=>Ri(Hv,(f,c)=>Gv(r,f,c),(f,c)=>{}),void 0,void 0),o=i[0],a=i[1];Jo(()=>(qv(),Yv),new Array(0));const l=()=>{a(new on(1,[f=>{a(new on(2,[f.AttemptsRemaining]))}]))},u=$e(E(()=>V(_(mp([])),E(()=>V(_(Mn("Enter your security code")),E(()=>{let f,c,p;return V(_(d("div",C(y([(f="text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4",["className",f]),(c=[(p=y([d("span",{children:["We’ve sent a security code to your mobile number ending in •••"]}),d("span",{className:"font-semibold",children:Ro(na,s)}),d("span",{children:["."]})]),d("p",{children:b.Children.toArray(Array.from(p))})),d("p",{children:["Enter your code to sign in."]})],["children",b.Children.toArray(Array.from(c))])])))),E(()=>{let m;return V(_(d("div",C(y([["className","mt-8 flex relative"],(m=$e(E(()=>{let $;return V(_(d("input",C(y([["className","absolute w-full h-full peer z-10 opacity-0"],["id","one-time-code-input"],["type","text"],["autoComplete","one-time-code"],["maxLength",6],["onClick",g=>{const w=g.target;w.selectionStart=o.CodeInputValue.length|0,w.selectionEnd=o.CodeInputValue.length|0,a(new on(3,[!1]))}],["onChange",g=>{const w=Ro(na,g.target.value);a(new on(4,[w])),w.length===6&&l()}],($=o.CodeInputValue,["ref",g=>{g!=null&&!O(g.value,$)&&(g.value=$)}])])))),E(()=>kc(g=>{const w=Fe(S=>S,gc(g,o.CodeInputValue.split(""))),v=Fe(S=>S,gc(g-1,o.CodeInputValue.split("")));return _(d("div",{key:g,className:be(" ",$e(E(()=>V(_("flex justify-center items-center text-xl w-10 h-12 rounded-md ring-inset ring-1 transition ease-in"),E(()=>V(o.CodeInvalid?_("ring-red-600"):_("ring-gray-400"),E(()=>V(_(g===2?"mr-4":g===5?"":"mr-2"),E(()=>w!=null||v!=null||g===0?_("peer-focus:ring-2 peer-focus:ring-primary-base"):dr()))))))))),children:Te(w,"")}))},m0(0,1,5))))})),["children",b.Children.toArray(Array.from(m))])])))),E(()=>{let $;return V(o.CodeInvalid?_(d("p",C(y([["className","w-[288px] text-red-600 mt-2 leading-5"],($=$e(E(()=>V(_("The code you entered is invalid"),E(()=>{let g;return V((g=o.AttemptsRemaining,g==null?_(te()):_(`, you have ${g} attempts remaining`)),E(()=>V(_("."),E(()=>o.AttemptsRemaining==null?_(" Try again or click on the link below to resend the code."):_(te())))))})))),["children",b.Children.toArray(Array.from($))])])))):dr(),E(()=>V(_(Yo("sm:w-[288px] mt-6",l,o.SignInInProgress,[d("span",{children:["Continue"]})])),E(()=>{let g;return _(d("div",C(y([["className","mt-8 sm:mt-14 text-sm text-gray-900 whitespace-pre-wrap leading-5 space-y-4"],(g=$e(E(()=>{let w,v;return V((w=o.ResendTimer,w!=null?_(d("p",{children:[`Message sent. Wait ${w} seconds before trying again.`]})):_((v=y([d("span",{children:["Didn’t get the code? "]}),d("span",{className:"text-primary-base underline underline-offset-3 cursor-pointer",onClick:S=>{n(),a(new on(0,[]))},children:"Resend message"}),d("span",{children:["."]})]),d("p",{children:b.Children.toArray(Array.from(v))})))),E(()=>{let S;return _((S=y([d("span",{children:["Still having trouble? "]}),d("span",{className:"text-primary-base underline underline-offset-3 cursor-pointer",onClick:N=>{o.ReissueLinkInProgress||(a(new on(5,[])),t())},children:"Sign in with email instead"}),d("span",{children:["."]})]),d("p",{children:b.Children.toArray(Array.from(S))})))}))})),["children",b.Children.toArray(Array.from(g))])]))))}))))}))}))}))))));return d(Oe,{},...u)}function Zv(e){const t=e.reissueLink,n=e.brandingOption,r=ui(!1),s=$e(E(()=>V(_($p([])),E(()=>V(_(Mn("Access link timed-out")),E(()=>{let i,o;return V(_(d("div",C(y([(i="text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4",["className",i]),(o=[d("p",{children:["Your 5-minute temporary access link has timed-out."]}),d("p",{children:["Get a new link to continue."]})],["children",b.Children.toArray(Array.from(o))])])))),E(()=>V(_(Yo("mt-8 mb-8 sm:mb-14",()=>{r[1](!0),t()},r[0],[d("span",{children:["Get a new link"]})])),E(()=>{const a=n;return a==null?_(te()):_(ai(a))}))))}))))));return d(Oe,{},...s)}function $l(e,t){const n=Te(fn(s=>s.CompanyName,e),"your employer"),r=$e(E(()=>V(_(Ic([])),E(()=>V(_(Mn("You’re all done")),E(()=>{let s;return V(_(d("div",C(y([["className","text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4 mb-8 sm:mb-14"],(s=[d("p",{children:[`Your ${t} is now complete and your pay information has now been submitted to ${n}.`]}),d("p",{children:["You can now close this window."]})],["children",b.Children.toArray(Array.from(s))])])))),E(()=>{const i=e;return i==null?_(te()):_(ai(i))}))}))))));return d(Oe,{},...r)}function wh(){let e,t,n,r,s,i,o,a,l;return d("div",C(y([["className","flex lg:min-w-[1024px] xl:min-w-[1280px] max-w-screen-xl justify-center"],(e=[d("div",C(y([["className","flex flex-col justify-center items-center"],(t=[Ic([]),Mn("You’re all set!"),d("div",C(y([["className","text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4 mb-8 sm:mb-14"],(n=[d("p",{children:["Access your exclusive benefits by downloading the Flare app."]}),d("div",C(y([["className","hidden lg:flex justify-center lg:py-8"],(r=[d("img",{className:"h-40",src:"/workflows/app/app-invite/qr.png"})],["children",b.Children.toArray(Array.from(r))])]))),d("div",C(y([["className","flex items-center justify-center lg:hidden"],(s=[d("img",{className:"w-[280px]",src:"/workflows/app/app-invite/completed.png"})],["children",b.Children.toArray(Array.from(s))])]))),d("p",C(y([["className","font-semibold pt-5 lg:pt-0"],(i=[d("span",{className:"lg:hidden",children:"Download the Flare App"}),d("span",{className:"hidden lg:block",children:"Scan to download"})],["children",b.Children.toArray(Array.from(i))])]))),d("p",{children:"Available on iOS and Android"})],["children",b.Children.toArray(Array.from(n))])]))),d("div",C(y([["className","flex space-x-6"],(o=[d("a",C(y([["href","https://apps.apple.com/us/app/flare/id1587276031"],["target","_blank"],["rel","noreferrer"],(a=[d("img",{className:"h-10 cursor-pointer",src:"/workflows/app/app-invite/app-store.png"})],["children",b.Children.toArray(Array.from(a))])]))),d("a",C(y([["href","https://play.google.com/store/apps/details?id=com.flarehr.payandbenefits"],["target","_blank"],["rel","noreferrer"],(l=[d("img",{className:"h-10 cursor-pointer",src:"/workflows/app/app-invite/google-play.png"})],["children",b.Children.toArray(Array.from(l))])])))],["children",b.Children.toArray(Array.from(o))])])))],["children",b.Children.toArray(Array.from(t))])]))),d("img",{className:"hidden lg:block w-[640px]",src:"/workflows/app/app-invite/completed.png"})],["children",b.Children.toArray(Array.from(e))])])))}function Xv(e){switch(e.tag){case 1:return"information request";case 2:return"workflow";default:return"onboarding"}}function Kv(e){const t=e.startAuthCodeExchangeBackground,n=e.navigateAuthCodeExchangePage,r=e.magicLink,s=rl(()=>Ri(Wv,(l,u)=>jv(r,n,t,l,u),(l,u)=>{}),void 0,void 0),i=s[0],o=s[1],a=$e(E(()=>V(Ie(l=>d("style",{children:[l]}),i.CssOverrides),E(()=>{const l=i.Page;switch(l.tag){case 1:return _(Uv(l.fields[0],i.Branding,i.JourneyType,()=>{o(new j(5,[l.fields[1],new ke(0,[])]))}));case 2:return _(zv(l.fields[0],i.Branding));case 3:return _(d(Jv,{maskedPhone:l.fields[0],validateOneTimeCode:u=>{o(new j(4,[u[0],u[1],new ke(0,[])]))},reissueOneTimeCode:()=>{o(new j(3,[!0,new ke(0,[])]))},reissueLink:()=>{o(new j(2,[!0,new ke(0,[])]))}}));case 4:return _(d(Zv,{brandingOption:Js(i.Branding),reissueLink:()=>{o(new j(2,[!1,new ke(0,[])]))}}));case 5:switch(i.JourneyType.tag){case 2:return _(wh());default:return _($l(i.Branding,Xv(i.JourneyType)))}case 6:return l.fields[0].tag===1?_(Vp()):l.fields[0].tag===0?_(d(Bp,{reissueMagicLink:()=>{o(new j(2,[!0,new ke(0,[])]))}})):l.fields[0].tag===5?_(fi()):l.fields[0].tag===2?_(Oc(i.Branding)):l.fields[0].tag===3?_(Fp(i.Branding)):_(Wp(i.Branding));default:return _(kp)}}))));return d(Oe,{},...a)}function Qv(e){let t,n,r;const s=e.startAuthCodeExchangeBackground,i=e.navigateAuthCodeExchangePage,o=e.inviteCode;return pr(()=>{Yt(0)}),d("div",C(y([(t="min-h-full flex flex-col items-center justify-between w-full mx-auto text-center pt-8 sm:pt-20 pb-6 sm:pb-8 px-4 bg-white",["className",t]),(n=[d("div",C(y([["className","flex flex-col items-center justify-center sm:max-w-[640px]"],(r=$e(E(()=>{const a=p2(o);return a.tag===0?_(d(Kv,{magicLink:a.fields[0],navigateAuthCodeExchangePage:i,startAuthCodeExchangeBackground:s})):_(Oc(void 0))})),["children",b.Children.toArray(Array.from(r))])]))),Qo],["children",b.Children.toArray(Array.from(n))])])))}class W extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Home","LegacyInvite","InviteV2","AuthCodeExchange","AuthCodeExchangeWithCurrentAuth","NotFound","LoggedOut"]}}function eb(e){let t,n,r;if(M(e))t=2;else if(k(e)==="workflows")if(M(P(e)))t=2;else switch(k(P(e))){case"app":{t=0,n=P(P(e));break}case"embed":{M(P(P(e)))?t=2:k(P(P(e)))==="v1.0"?(t=1,r=P(P(P(e)))):t=2;break}default:t=2}else t=2;switch(t){case 0:return new fa(1,[n]);case 1:return new fa(0,[r]);default:return new fa(2,[void 0])}}function tb(e){const t=wn(e);if(t!=null)return Fe(r=>r[1],Qr(r=>r[0]==="code",t))}function yh(e){let t,n,r,s,i,o,a;const l=eb(e);switch(l.tag){case 1:return[M(l.fields[0])?M(l.fields[0])?new W(0,[]):(s=wn(k(l.fields[0])),s!=null?M(s)?new W(0,[]):k(s)[0]==="invite-code"?M(P(s))?M(P(l.fields[0]))?(i=k(s)[1],new W(2,[i])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):(t=wn(k(l.fields[0])),t!=null?M(t)?M(l.fields[0])?new W(0,[]):(s=wn(k(l.fields[0])),s!=null?M(s)?new W(0,[]):k(s)[0]==="invite-code"?M(P(s))?M(P(l.fields[0]))?(i=k(s)[1],new W(2,[i])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):k(t)[0]==="invite"?M(P(t))?M(P(l.fields[0]))?(n=k(t)[1],r=Hc(n),r.tag===1?new W(5,[]):new W(1,[])):M(l.fields[0])?new W(0,[]):(s=wn(k(l.fields[0])),s!=null?M(s)?new W(0,[]):k(s)[0]==="invite-code"?M(P(s))?M(P(l.fields[0]))?(i=k(s)[1],new W(2,[i])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):M(l.fields[0])?new W(0,[]):(s=wn(k(l.fields[0])),s!=null?M(s)?new W(0,[]):k(s)[0]==="invite-code"?M(P(s))?M(P(l.fields[0]))?(i=k(s)[1],new W(2,[i])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):M(l.fields[0])?new W(0,[]):(s=wn(k(l.fields[0])),s!=null?M(s)?new W(0,[]):k(s)[0]==="invite-code"?M(P(s))?M(P(l.fields[0]))?(i=k(s)[1],new W(2,[i])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):M(l.fields[0])?new W(0,[]):(s=wn(k(l.fields[0])),s!=null?M(s)?new W(0,[]):k(s)[0]==="invite-code"?M(P(s))?M(P(l.fields[0]))?(i=k(s)[1],new W(2,[i])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[]))),new Tr(1,[])];case 2:return[new W(5,[]),new Tr(2,[])];default:return[M(l.fields[0])?new W(0,[]):M(P(l.fields[0]))?new W(0,[]):(o=tb(k(P(l.fields[0]))),o!=null?M(P(P(l.fields[0])))?(a=o,new W(3,[ml(a)])):new W(0,[]):new W(0,[])),new Tr(0,[])]}}let Yn=class extends B{constructor(t,n,r){super(),this.CurrentPage=t,this.Credentials=n,this.AppMode=r}},bn=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UrlChanged","NavigateAuthCodeExchangePage","NavigateAuthCodeExchangePageWithCurrentAuth","AuthMsg","StartAuthCodeExchangeBackground","DisplayLoggedOut"]}};function nb(){let e;return pr(()=>{Yt(0)}),d("div",C(y([["className","w-full sm:max-w-md mt-5 mx-1 text-center mx-auto"],(e=[d("h4",{className:"text-2xl",children:"You have been logged out of your onboarding due to inactivity"}),d("br",{}),d("p",{children:["To continue your onboarding, please find your onboarding invite email and click the link again."]})],["children",b.Children.toArray(Array.from(e))])])))}class vs extends Error{}vs.prototype.name="InvalidTokenError";function rb(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function sb(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return rb(t)}catch{return atob(t)}}function ib(e,t){if(typeof e!="string")throw new vs("Invalid token specified: must be a string");t||(t={});const n=t.header===!0?0:1,r=e.split(".")[n];if(typeof r!="string")throw new vs(`Invalid token specified: missing part #${n+1}`);let s;try{s=sb(r)}catch(i){throw new vs(`Invalid token specified: invalid base64 for part #${n+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new vs(`Invalid token specified: invalid json for part #${n+1} (${i.message})`)}}class we extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function ob(e,t){switch(t.tag){case 1:return new we(1,[]);case 3:return new we(3,[t.fields[0]]);case 2:try{return new we(2,[e(t.fields[0])])}catch(n){return new we(3,[n])}default:return new we(0,[])}}function ab(e,t){const n=Zo(fg());return Pc(()=>ns(()=>{dg(n.current)})),Mc(r=>{hg(n.current)||ha(I.Delay(()=>I.TryWith(I.Delay(()=>(t(new we(1,[])),I.Bind(e(r),s=>(t(new we(2,[s])),I.Zero())))),s=>(t(new we(3,[s])),I.Zero()))),n.current)})}function lb(e,t,n){e:for(;;){const r=e,s=t,i=n;if(M(i)){const o=r;return o.tag===1?new h(1,[o.fields[0]]):new h(0,[cr(o.fields[0])])}else{let o;const a=s(k(i));if(a.tag===1)o=new h(1,[a.fields[0]]);else{const l=r;o=l.tag===1?new h(1,[l.fields[0]]):new h(0,[nt(a.fields[0],l.fields[0])])}if(o.tag===1)return o;e=o,t=s,n=P(i);continue e}}}function ub(e,t){return lb(new h(0,[de()]),e,t)}function Or(e){return ub(t=>t,e)}class cb extends B{constructor(t,n,r){super(),this.CompanyName=t,this.Logo=n,this.Support=r}}function fb(){return fe("Workflows.Business.Aggregates.CommonDto.InviteBrandingDto",[],cb,()=>[["CompanyName",K(G)],["Logo",K(G)],["Support",K(hb())]])}class db extends B{constructor(t,n){super(),this.Email=t,this.Phone=n}}function hb(){return fe("Workflows.Business.Aggregates.CommonDto.SupportDto",[],db,()=>[["Email",K(G)],["Phone",K(G)]])}function mb(e){let t;const n=e.Email;if(n!=null){const r=Yc(n);t=r.tag===1?new h(1,[r.fields[0]]):new h(0,[r.fields[0]])}else t=new h(0,[void 0]);if(t.tag===1)return new h(1,[t.fields[0]]);{let r;const s=e.Phone;if(s!=null){const i=Jc(s);r=i.tag===1?new h(1,[i.fields[0]]):new h(0,[i.fields[0]])}else r=new h(0,[void 0]);return r.tag===1?new h(1,[r.fields[0]]):new h(0,[new qc(t.fields[0],r.fields[0])])}}function pb(e){let t;const n=e.Logo;if(n!=null){const r=Xc(n);t=r.tag===1?new h(1,[r.fields[0]]):new h(0,[r.fields[0]])}else t=new h(0,[void 0]);if(t.tag===1)return new h(1,[t.fields[0]]);{let r;const s=e.CompanyName;if(s!=null){const i=Zc(s);r=i.tag===1?new h(1,[i.fields[0]]):new h(0,[i.fields[0]])}else r=new h(0,[void 0]);if(r.tag===1)return new h(1,[r.fields[0]]);{let i;const o=e.Support;if(o!=null){const a=mb(o);i=a.tag===1?new h(1,[a.fields[0]]):new h(0,[a.fields[0]])}else i=new h(0,[void 0]);return i.tag===1?new h(1,[i.fields[0]]):new h(0,[new Gc(r.fields[0],t.fields[0],i.fields[0])])}}}class $b extends B{constructor(t,n,r,s){super(),this.Code=t,this.DateIssued=n,this.NumberOfAttempts=r|0,this.DateOfLastAttempt=s}}function gb(){return fe("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.SecondFactorDto",[],$b,()=>[["Code",G],["DateIssued",Gt("System.DateTime")],["NumberOfAttempts",Ys],["DateOfLastAttempt",K(Gt("System.DateTime"))]])}function wb(e){return new y$(w$(e.Code),e.DateIssued,e.NumberOfAttempts,e.DateOfLastAttempt)}class yb extends B{constructor(t,n,r,s){super(),this.Code=t,this.DateIssued=n,this.SecondFactor=r,this.Branding=s}}function _b(){return fe("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.InviteDto",[],yb,()=>[["Code",G],["DateIssued",Gt("System.DateTime")],["SecondFactor",K(gb())],["Branding",K(fb())]])}function vb(e){const t=Hc(e.Code);if(t.tag===1)return new h(1,[t.fields[0]]);{let n;const r=e.SecondFactor;n=r==null?void 0:wb(r);let s;const i=e.Branding;if(i!=null){const o=pb(i);s=o.tag===1?new h(1,[o.fields[0]]):new h(0,[o.fields[0]])}else s=new h(0,[void 0]);return s.tag===1?new h(1,[s.fields[0]]):new h(0,[new _$(t.fields[0],e.DateIssued,n,s.fields[0])])}}class bb extends B{constructor(t,n,r){super(),this.Id=t,this.DisplayName=n,this.ComponentTagName=r}}function Cb(){return fe("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessStepConfigDto",[],bb,()=>[["Id",G],["DisplayName",G],["ComponentTagName",G]])}function Sb(e){return new h(0,[new Rt(Kc(e.Id),e.DisplayName,e.ComponentTagName)])}function kb(e){return Or(rt(Sb,e))}class xb extends B{constructor(t,n){super(),this.ActivatedDates=t,this.CompletedSteps=n}}function Ib(){return fe("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ActiveProcessInstanceDto",[],xb,()=>[["ActivatedDates",cn(Gt("System.DateTime"))],["CompletedSteps",cn(Lm(G,Gt("System.DateTime")))]])}function Ab(e){const t=Or(rt(n=>new h(0,[[Kc(n[0]),n[1]]]),e.CompletedSteps));return t.tag===1?new h(1,[t.fields[0]]):new h(0,[new $f(e.ActivatedDates,t.fields[0])])}class Eb extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Inactive","Active","Complete","Abandoned"]}}function Tb(){return _t("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessInstanceStatusDto",[],Eb,()=>[[],[["Item",Ib()]],[["Item",Gt("System.DateTime")]],[["Item",Gt("System.DateTime")]]])}function Pb(e){switch(e.tag){case 1:{const t=Ab(e.fields[0]);return t.tag===1?new h(1,[t.fields[0]]):new h(0,[new os(1,[t.fields[0]])])}case 2:return new h(0,[new os(2,[e.fields[0]])]);case 3:return new h(0,[new os(3,[e.fields[0]])]);default:return new h(0,[new os(0,[])])}}class Mb extends B{constructor(t,n,r){super(),this.Id=t,this.Name=n,this.Steps=r}}function Ob(){return fe("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessConfigDto",[],Mb,()=>[["Id",Gt("System.Guid")],["Name",G],["Steps",cn(Cb())]])}function Db(e){const t=kb(e.Steps);if(t.tag===1)return new h(1,[t.fields[0]]);{const n=S$(e.Id);return n.tag===1?new h(1,[n.fields[0]]):new h(0,[new Be(n.fields[0],e.Name,t.fields[0])])}}class Nb extends B{constructor(t,n){super(),this.Name=t,this.Value=n}}function Rb(){return fe("Workflows.Business.Aggregates.ProcessInstanceList.Dto.TagDto",[],Nb,()=>[["Name",G],["Value",G]])}function Lb(e){return P$(e.Name,e.Value)}class Bb extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WhenEnabled","Always"]}}function Vb(){return _t("Workflows.Business.Aggregates.ProcessInstanceList.Dto.BenefitsOnboardingShowOptionsDto",[],Bb,()=>[[],[]])}class Fb extends B{constructor(t){super(),this.BenefitsOnboarding=t}}function Wb(){return fe("Workflows.Business.Aggregates.ProcessInstanceList.Dto.StepsConfigurationDto",[],Fb,()=>[["BenefitsOnboarding",K(tt(["Show",Vb()]))]])}function jb(e){let t,n;return new O$((t=e.BenefitsOnboarding,t==null?void 0:(n=t,{Show:n.Show.tag===1?new yf(1,[]):new yf(0,[])})))}class Ub extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","InfoRequest","AppInvite","BenefitsExisting","BenefitsOnboarding"]}}function zb(){return _t("Workflows.Business.Aggregates.ProcessInstanceList.Dto.JourneyTypeDto",[],Ub,()=>[[["Item",bs()]],[["Item",bs()]],[["Item",bs()]],[["Item",bs()]],[["Item",bs()]]])}class Hb extends B{constructor(t){super(),this.Category=t}}function bs(){return fe("Workflows.Business.Aggregates.ProcessInstanceList.Dto.JourneyTypeDetailsDto",[],Hb,()=>[["Category",K(G)]])}function Cs(e){return new wf(e.Category)}function Gb(e){if(e==null)return new gr(0,[new wf(void 0)]);switch(e.tag){case 1:{const t=e.fields[0];return new gr(1,[Cs(t)])}case 2:{const t=e.fields[0];return new gr(2,[Cs(t)])}case 3:{const t=e.fields[0];return new gr(3,[Cs(t)])}case 4:{const t=e.fields[0];return new gr(4,[Cs(t)])}default:{const t=e.fields[0];return new gr(0,[Cs(t)])}}}class qb extends B{constructor(t,n,r,s,i,o,a,l,u,f,c){super(),this.Id=t|0,this.DateCreated=n,this.Configuration=r,this.Status=s,this.Invite=i,this.Tags=o,this.Creator=a,this.StepsConfiguration=l,this.JourneyType=u,this.IsBenefitsStepEnabled=f,this.PaySetupComplete=c}}function _h(){return fe("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessInstanceDto",[],qb,()=>[["Id",Ys],["DateCreated",Gt("System.DateTime")],["Configuration",Ob()],["Status",Tb()],["Invite",K(_b())],["Tags",K(cn(Rb()))],["Creator",K(G)],["StepsConfiguration",K(Wb())],["JourneyType",K(zb())],["IsBenefitsStepEnabled",K(mt)],["PaySetupComplete",K(mt)]])}function vh(e){let t,n;const r=Db(e.Configuration);if(r.tag===1)return new h(1,[r.fields[0]]);{const s=r.fields[0],i=Pb(e.Status);if(i.tag===1)return new h(1,[i.fields[0]]);{const o=i.fields[0];let a;if(o.tag===1){const l=o.fields[0],u=Or(rt(f=>{const c=[f[0],f[1]],p=c[0];return vc(m=>O(m.Id,p),s.Steps)?new h(0,[[p,c[1]]]):new h(1,["Step id is not configured for this Process Instance."])},l.CompletedSteps));a=u.tag===1?new h(1,[u.fields[0]]):new h(0,[new os(1,[new $f(l.ActivatedDates,u.fields[0])])])}else a=new h(0,[o]);if(a.tag===1)return new h(1,[a.fields[0]]);{let l;const u=e.Invite;if(u!=null){const f=vb(u);l=f.tag===1?new h(1,[f.fields[0]]):new h(0,[f.fields[0]])}else l=new h(0,[void 0]);if(l.tag===1)return new h(1,[l.fields[0]]);{let f;const c=e.Tags;if(c!=null){const p=Or(rt(Lb,c));f=p.tag===1?new h(1,[p.fields[0]]):new h(0,[p.fields[0]])}else f=new h(0,[void 0]);return f.tag===1?new h(1,[f.fields[0]]):new h(0,[new M$(gf(e.Id),s,e.DateCreated,a.fields[0],l.fields[0],f.fields[0],(t=e.Creator,t==null?void 0:Uc(t)),(n=e.StepsConfiguration,n==null?void 0:jb(n)),Gb(e.JourneyType),e.IsBenefitsStepEnabled,e.PaySetupComplete)])}}}}}class Ss extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["CompleteStep","CompleteStepV2","Complete","ViewPaySetupPage","CompletePaySetup","ResumePaySetup"]}}class Yb extends B{constructor(t,n,r,s){super(),this.CssOverrides=t,this.ProcessInstance=n,this.IsBenefitsEnabled=r,this.Branding=s}}class Jn extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["CompleteStep","CompleteStepV2","Complete","ViewPaySetupPage","CompletePaySetup","ResumePaySetup"]}}function Jb(){return _t("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.ProcessInstanceCommandDto",[],Jn,()=>[[["Item",G]],[["Item",G]],[],[["Item",mt]],[["Item",mt]],[["Item",mt]]])}function Zb(e){switch(e.tag){case 1:return new Jn(1,[mi(e.fields[0])]);case 2:return new Jn(2,[]);case 3:return new Jn(3,[e.fields[0]]);case 4:return new Jn(4,[e.fields[0]]);case 5:return new Jn(5,[e.fields[0]]);default:return new Jn(0,[mi(e.fields[0])])}}const Xb=vh;class Kb extends B{constructor(t,n,r,s){super(),this.CssOverrides=t,this.ProcessInstanceDto=n,this.IsBenefitsEnabled=r,this.Branding=s}}function Qb(){return fe("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Read.ProcessInstanceContextDto",[],Kb,()=>[["CssOverrides",cn(G)],["ProcessInstanceDto",_h()],["IsBenefitsEnabled",mt],["Branding",K(tC())]])}class eC extends B{constructor(t,n,r){super(),this.CompanyName=t,this.Logo=n,this.Support=r}}function tC(){return fe("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Read.Branding",[],eC,()=>[["CompanyName",K(G)],["Logo",K(G)],["Support",K(rC())]])}class nC extends B{constructor(t,n){super(),this.Email=t,this.Phone=n}}function rC(){return fe("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Read.Support",[],nC,()=>[["Email",K(G)],["Phone",K(G)]])}function sC(e){let t,n,r,s,i,o,a,l,u,f,c,p,m,$,g,w,v,S;return new Gc((t=(n=(r=e.CompanyName,r==null?void 0:Zc(r)),n!=null?(s=n,s.tag===1?new h(1,[s.fields[0]]):new h(0,[s.fields[0]])):new h(0,[void 0])),t.tag===1?void 0:t.fields[0]),(i=(o=(a=e.Logo,a==null?void 0:Xc(a)),o!=null?(l=o,l.tag===1?new h(1,[l.fields[0]]):new h(0,[l.fields[0]])):new h(0,[void 0])),i.tag===1?void 0:i.fields[0]),(u=e.Support,u==null?void 0:(f=u,new qc((c=(p=(m=f.Email,m==null?void 0:Yc(m)),p!=null?($=p,$.tag===1?new h(1,[$.fields[0]]):new h(0,[$.fields[0]])):new h(0,[void 0])),c.tag===1?void 0:c.fields[0]),(g=(w=(v=f.Phone,v==null?void 0:Jc(v)),w!=null?(S=w,S.tag===1?new h(1,[S.fields[0]]):new h(0,[S.fields[0]])):new h(0,[void 0])),g.tag===1?void 0:g.fields[0])))))}function iC(e){let t,n;return new Yb(e.CssOverrides,(t=vh(e.ProcessInstanceDto),t.tag===1?(()=>{throw new Error(t.fields[0])})():t.fields[0]),e.IsBenefitsEnabled,(n=e.Branding,n==null?void 0:sC(n)))}class Gi extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WorkflowInstanceStepActivated","BenefitsStepActivated","BenefitsStepCompleted"]}}function oC(){return _t("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Write.WorkflowAnalyticsEventDto",[],Gi,()=>[[["Item",G]],[],[]])}class xe extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PersonalDetails","EmergencyContacts","Bank","Tax","Super","WorkplaceLinking","BenefitsOnboarding","WorkplacePolicies","DiscreteBenefits"]}}class ks extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Hidden","Incomplete","Complete"]}}function gl(e){return e?new ks(1,[]):new ks(0,[])}class le extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Completed","Disabled","Active","Locked","CompletedAndDisabled"]}}function bh(e){return O(e,Ye)?new h(0,[new xe(0,[])]):O(e,pt)?new h(0,[new xe(1,[])]):O(e,$t)?new h(0,[new xe(2,[])]):O(e,gt)?new h(0,[new xe(3,[])]):O(e,Re)?new h(0,[new xe(4,[])]):O(e,Dn)?new h(0,[new xe(5,[])]):O(e,qt)?new h(0,[new xe(7,[])]):O(e,Nn)?new h(0,[new xe(8,[])]):new h(1,["Invalid step"])}function aC(e){switch(e.tag){case 1:return pt;case 2:return $t;case 3:return gt;case 4:return Re;case 5:return Dn;case 6:return hi;case 7:return qt;case 8:return Nn;default:return Ye}}function Ch(e){switch(e.tag){case 1:return"Emergency contacts";case 2:return"Bank details";case 3:return"Tax declaration";case 4:return"Super nomination";case 5:return Dn.DisplayName;case 6:return"Workplace benefits";case 7:return"Fair Work";case 8:return Nn.DisplayName;default:return"Employee profile"}}function Sh(e){switch(e.tag){case 1:return"Contacts";case 2:return"Bank";case 3:return"Tax";case 4:return"Super";case 5:return Dn.DisplayName;case 6:return"Benefits";case 7:return"Fair Work";case 8:return Nn.DisplayName;default:return"Profile"}}function kh(e){switch(e.tag){case 1:return pt;case 2:return $t;case 3:return gt;case 4:return Re;case 5:return Dn;case 6:return hi;case 7:return qt;case 8:return Nn;default:return Ye}}function lC(e){switch(e.tag){case 5:case 6:case 8:return!1;default:return!0}}function uC(e,t){return e.tag===0?t:bt(t,A(new xe(6,[])))}class Dr extends B{constructor(t,n){super(),this.Id=t,this.Status=n}}function Zn(e){return Ch(e.Id)}function cC(e){return Sh(e.Id)}function fC(e){return kh(e.Id).ComponentTagName}function dC(e){return kh(e.Id).Id}function hC(e){return lC(e.Id)}function mC(e){if(e.Id.tag===0)return e}function pC(e){if(e.Id.tag===1)return e}function $C(e){return Qr(t=>O(t.Status,new le(2,[])),e)}function gC(e){return((n,r)=>{e:for(;;){const s=n,i=r;if(M(s))return i;if(O(k(s).Status,new le(2,[])))return Vo([i,A(k(s)),P(s)]);if(O(k(s).Status,new le(1,[])))return Vo([i,A(new Dr(k(s).Id,new le(2,[]))),P(s)]);n=P(s),r=bt(i,A(k(s)));continue e}})(e,de())}function wl(e,t){const n=Te(e.PaySetupComplete,!1);let r;const s=Or(rt(bh,e.Configuration.Steps));if(r=s.tag===1?new h(1,[s.fields[0]]):new h(0,[uC(t,s.fields[0])]),r.tag===1)return new h(1,[r.fields[0]]);{const i=Or(rt(bh,N$(e)));return i.tag===1?new h(1,[i.fields[0]]):new h(0,[gC(rt(o=>n&&hC(o)&&O(o.Status,new le(0,[]))?new Dr(o.Id,new le(4,[])):o,rt(o=>vc(a=>O(a,o.Id),i.fields[0])?new Dr(o.Id,new le(0,[])):o,rt(o=>O(o.Id,new xe(6,[]))&&!n?new Dr(o.Id,new le(3,[])):o,rt(o=>new Dr(o,new le(1,[])),r.fields[0])))))])}}class xh extends B{constructor(t,n,r,s,i,o,a,l,u,f,c){super(),this.AppMode=t,this.JourneyType=n,this.Branding=r,this.IsBenefitsStepEnabled=s,this.IsPaySetupCompatible=i,this.IsPaySetupComplete=o,this.Status=a,this.ProcessInstanceId=l,this.InstanceName=u,this.ProcessConfigId=f,this.Steps=c}}function Ih(e){switch(e.Status.tag){case 3:return!1;case 0:return!1;case 1:return Te(e.PaySetupComplete,!1);default:return!0}}function wC(e,t){let n;const r=[t.ProcessInstance,gl(t.IsBenefitsEnabled)];return n=wl(r[0],r[1]),n.tag===1?new h(1,[n.fields[0]]):new h(0,[new xh(e,t.ProcessInstance.JourneyType,t.Branding,t.IsBenefitsEnabled,C$(t.ProcessInstance.Configuration),Ih(t.ProcessInstance),t.ProcessInstance.Status,t.ProcessInstance.Id,t.ProcessInstance.Configuration.Name,t.ProcessInstance.Configuration.Id,n.fields[0])])}function yl(e,t){let n;const r=[t,gl(e.IsBenefitsStepEnabled)];return n=wl(r[0],r[1]),n.tag===1?new h(1,[n.fields[0]]):new h(0,[new xh(e.AppMode,e.JourneyType,e.Branding,e.IsBenefitsStepEnabled,e.IsPaySetupCompatible,Ih(t),t.Status,e.ProcessInstanceId,e.InstanceName,e.ProcessConfigId,n.fields[0])])}let oe=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialising","StepList","Step","PaySetupCompleteConfirmation","Oops","AllDone"]}};class U extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ActivateCallback","ChangeCurrentView","CloseStepListView","StepCompletionEventCallback","CompleteStep","ConfirmPaySetupComplete","ResumePaySetup","CompletePaySetup","PaySetupCompleted","CompleteWorkflow","ShowAllDoneAndNotifyComplete","SendAnalyticsEvent","AppendTrailingSlashToUrl","CompleteBenefitsOnboardingStep","CommandSuccess","CommandFailure"]}}class st extends B{constructor(t,n,r,s,i,o){super(),this.ProfileId=t,this.ProcessInstanceId=n,this.WorkflowDetail=r,this.CurrentView=s,this.CssOverrides=i,this.BenefitsOnboarding=o}}function _l(e){switch(e.tag){case 1:return"Information request";case 2:return"Workflow";case 3:return"Benefits Onboarding";case 4:return"Benefits Onboarding";default:return"Onboarding"}}function vl(e){if(e<640)return Ee(void 0)}function bl(e){return((n,r)=>{e:for(;;){const s=n,i=r;let o,a,l,u;if(M(s))o=0;else{const f=mC(k(s));if(f!=null)if(M(P(s)))o=2;else{const c=pC(k(P(s)));c!=null?(o=1,a=c,l=f,u=P(P(s))):o=2}else o=2}switch(o){case 0:return i;case 1:{n=u,r=bt(i,A(O(a.Status,new le(2,[]))?new Dr(l.Id,new le(2,[])):l));continue e}default:if(M(s))throw new Error("Match failure");n=P(s),r=bt(i,A(k(s)));continue e}}})(e,de())}function xs(e){let t,n;return d("div",C(y([(t="absolute inset-0 min-h-full flex flex-col items-center justify-between w-full mx-auto text-center pt-8 sm:pt-20 pb-6 sm:pb-8 px-4 bg-white",["className",t]),(n=[d("div",{className:"mt-5 px-4 flex flex-col items-center justify-center sm:max-w-[640px]",children:b.Children.toArray([e])}),Qo],["children",b.Children.toArray(Array.from(n))])])))}function yC(e,t){let n;const r=e.tag===2?e.fields[0]:void 0;let s;if(r==null)s=void 0;else{const u=r;s=fn(f=>L1(f+1,t.Steps),ii(f=>O(u,f),t.Steps))}const i=Fe(u=>new U(1,[new oe(2,[u])]),Qr(u=>O(u.Status,new le(2,[])),t.Steps));let o,a,l;switch(r!=null&&s!=null?(n=s,O(r.Status,new le(2,[]))&&(O(n.Status,new le(1,[]))?!0:O(n.Status,new le(3,[])))?(o=0,a=r):(o=1,l=s)):o=2,o){case 0:return new U(1,[new oe(2,[a])]);case 1:return O(l.Status,new le(3,[]))?void 0:new U(1,[new oe(2,[l])]);default:return i}}function _C(e,t){const n=e.IsPaySetupCompatible&&!e.IsPaySetupComplete&&lr(e.Steps)!==1;let r;if(n)switch(t.tag){case 1:case 0:{r=0;break}default:r=1}else r=1;switch(r){case 0:return new U(5,[{Branding:Js(e.Branding),InjectedBenefits:e.IsBenefitsStepEnabled}]);default:return}}function vC(e){if(ia(e.Status))return new U(10,[e])}function Cl(e,t,n){return Te(Zu(Zu(vC(t),yC(e,t)),_C(t,n)),new U(9,[new we(0,[])]))}function bC(e){const t=$r(e)|0;return ze(Ue("%s/workflows/backend/%i"))(Un)(t)}function CC(e){const t=$r(e)|0;return ze(Ue("%s/workflows/backend/process-instances/%i/activate"))(Un)(t)}function SC(e){const t=$r(e)|0;return ze(Ue("%s/workflows/backend/process-instances/%i/analytics-events"))(Un)(t)}function Sl(e,t){return I.Delay(()=>{const n=Ui(U2(ze(Ue("Bearer %s"))(e)),t);let r;const s=gs(n);return r=I.Bind(s,i=>I.Return(new h(0,[i]))),I.Bind(r,i=>{const o=i;if(o.tag===1)return I.Return(new h(1,[o.fields[0]]));{const a=o.fields[0];if(a.statusCode===429||a.statusCode>=500){const l=gs(n);return I.Bind(l,u=>I.Return(new h(0,[u])))}else return I.Return(new h(0,[a]))}})})}function Is(e,t,n){return I.Delay(()=>{let r,s;const i=Sl(n,(r=yn(new Qt(1,[(s=A(Zb(e)),_n(0,vn(cn(Jb()),new qe(1,[]),void 0,void 0)(s)))]),tn(new Ft(1,[]),en(bC(t)))),Ui(hl("application/json"),r)));return I.Bind(i,o=>{const a=o;if(a.tag===1)return I.Return(new h(1,[a.fields[0]]));{const l=a.fields[0];if(l.statusCode===200){let u;const f=rn(ne(sn(_h(),new qe(1,[]))),l.responseText);return u=f.tag===1?new h(1,[f.fields[0]]):Xb(f.fields[0]),I.Return(u)}else return I.Return(new h(1,["Unexpected response from backend"]))}})})}function kC(e,t){return I.Delay(()=>{const n=Sl(t,tn(new Ft(1,[]),en(CC(e))));return I.Bind(n,r=>{const s=r;if(s.tag===1)return I.Return(new h(1,[s.fields[0]]));{const i=s.fields[0];if(i.statusCode===200){let o;const a=rn(ne(sn(Qb(),new qe(1,[]))),i.responseText);return o=a.tag===1?new h(1,[a.fields[0]]):new h(0,[iC(a.fields[0])]),I.Return(o)}else return I.Return(new h(1,["Unexpected response from backend"]))}})})}function xC(e,t,n){let r;const s=I.Delay(()=>{let i;return Sl(e,(i=yn(new Qt(1,[_n(0,vn(cn(oC()),new qe(1,[]),void 0,void 0)(A(n)))]),tn(new Ft(1,[]),en(SC(t)))),Ui(hl("application/json"),i)))});return r=I.Bind(s,i=>{let o;const a=i;return o=a.tag===1?new h(1,[a.fields[0]]):new h(0,[void a.fields[0]]),I.Return(o)}),I.Bind(r,i=>{const o=i;return o.tag===1||o.fields[0],I.Return()})}function IC(e,t){return kC(e,t)}function AC(e,t,n){return Is(new Ss(1,[t]),e,n)}function EC(e,t,n){return Is(new Ss(3,[n]),e,t)}function TC(e,t,n){return Is(new Ss(4,[n]),e,t)}function PC(e,t,n){return Is(new Ss(5,[n]),e,t)}function MC(e,t){return Is(new Ss(2,[]),e,t)}function OC(e){const t=ib(e);return[new st(Uc(t.sub),gf(t.workflow.instanceId),new we(0,[]),new oe(0,[]),de(),new ks(0,[])),X()]}function DC(e,t,n,r,s){let i,o,a,l,u,f,c,p,m,$,g,w,v,S,N,ee,J,Ae,it,Me,Ve,Qe;switch(r.tag){case 1:{const T=r.fields[0];return[new st(s.ProfileId,s.ProcessInstanceId,s.WorkflowDetail,T,s.CssOverrides,s.BenefitsOnboarding),T.tag===2?(i=aC(T.fields[0].Id),O(i.Id,hi.Id)?A(z=>{z(new U(11,[s.ProcessInstanceId,new Gi(1,[])]))}):(o=new U(11,[s.ProcessInstanceId,new Gi(0,[mi(i.Id)])]),A(z=>{z(o)}))):X()]}case 2:{const T=s.WorkflowDetail;let z,H;switch(T.tag===2&&T.fields[0].tag===0?(z=0,H=T.fields[0].fields[0]):z=1,z){case 0:{const ve=Cl(s.CurrentView,H,s.BenefitsOnboarding);return[s,A(se=>{se(ve)})]}default:return[s,X()]}}case 11:return Je(xC(t,r.fields[0],r.fields[1])),[s,X()];case 3:{const T=s.WorkflowDetail;let z,H;switch(T.tag===2&&T.fields[0].tag===0?(z=0,H=T.fields[0].fields[0]):z=1,z){case 0:return[s,(a=r.fields[0].target,l=Qr(ve=>h1(fC(ve),a.tagName,5)===0,H.Steps),l==null?X():O(l.Id,new xe(6,[]))?A(ve=>{ve(new U(13,[]))}):(u=l,f=new U(4,[dC(u),new we(0,[])]),A(ve=>{ve(f)})))];default:return[s,X()]}}case 13:{const T=s.WorkflowDetail;let z;switch(T.tag===2&&T.fields[0].tag===0?O(s.BenefitsOnboarding,new ks(0,[]))?z=1:z=0:z=1,z){case 0:return[new st(s.ProfileId,s.ProcessInstanceId,s.WorkflowDetail,s.CurrentView,s.CssOverrides,new ks(2,[])),d0(y([A(H=>{H(new U(11,[s.ProcessInstanceId,new Gi(2,[])]))}),A(H=>{H(new U(9,[new we(0,[])]))}),A(H=>{H(new U(1,[new oe(5,[])]))})]))];default:return[s,X()]}}case 4:{const T=r.fields[0],z=r.fields[1];switch(z.tag){case 1:return[s,X()];case 2:{const H=z.fields[0],ve=H;ve.tag===1?ve.fields[0]:kg(T,ve.fields[0],s.ProfileId);let se;const an=s.WorkflowDetail;let ln,Es;switch(an.tag===2&&an.fields[0].tag===0?(ln=0,Es=an.fields[0].fields[0]):ln=1,ln){case 0:{se=new we(2,[(c=H,c.tag===1?new h(1,[c.fields[0]]):yl(Es,c.fields[0]))]);break}default:se=s.WorkflowDetail}return[new st(s.ProfileId,s.ProcessInstanceId,se,s.CurrentView,s.CssOverrides,s.BenefitsOnboarding),(p=se.tag===2?se.fields[0].tag===1?new U(1,[new oe(4,[se.fields[0].fields[0]])]):Cl(s.CurrentView,se.fields[0].fields[0],s.BenefitsOnboarding):se.tag===3?new U(1,[new oe(4,[se.fields[0].message])]):new U(1,[new oe(4,["Process Instance not resolved"])]),A(Xi=>{Xi(p)}))]}case 3:{const H=z.fields[0];return[new st(s.ProfileId,s.ProcessInstanceId,new we(3,[H]),s.CurrentView,s.CssOverrides,s.BenefitsOnboarding),(m=new U(1,[new oe(4,[H.message])]),A(ve=>{ve(m)}))]}default:return[s,At(H=>{Je(H)},H=>AC(s.ProcessInstanceId,T,H),t,H=>new U(4,[T,new we(2,[H])]),H=>new U(4,[T,new we(3,[H])]))]}}case 5:return[new st(s.ProfileId,s.ProcessInstanceId,s.WorkflowDetail,new oe(3,[]),s.CssOverrides,s.BenefitsOnboarding),At(T=>{Je(T)},T=>EC(s.ProcessInstanceId,t,T),r.fields[0].InjectedBenefits,T=>new U(14,[]),T=>new U(15,[T]))];case 6:return[s,d0(y([At(T=>{Je(T)},T=>PC(s.ProcessInstanceId,t,T),r.fields[0].InjectedBenefits,T=>new U(14,[]),T=>new U(15,[T])),($=s.WorkflowDetail,$.tag===2?$.fields[0].tag===0?(g=new U(1,[new oe(2,[E1(Fo(T=>O(T.Status,new le(0,[]))?!0:O(T.Status,new le(4,[])),$.fields[0].fields[0].Steps))])]),A(T=>{T(g)})):A(T=>{T(new U(1,[new oe(4,["Process Instance not resolved"])]))}):A(T=>{T(new U(1,[new oe(4,["Process Instance not resolved"])]))}))]))];case 7:return[s,At(T=>{Je(T)},js(e)(s.ProcessInstanceId)(t),r.fields[0].InjectedBenefits,T=>new U(8,[T]),T=>new U(15,[T]))];case 8:{let T;const z=s.WorkflowDetail;let H,ve;switch(z.tag===2&&z.fields[0].tag===0?(H=0,ve=z.fields[0].fields[0]):H=1,H){case 0:{T=new we(2,[(w=r.fields[0],w.tag===1?new h(1,[w.fields[0]]):yl(ve,w.fields[0]))]);break}default:T=s.WorkflowDetail}return[new st(s.ProfileId,s.ProcessInstanceId,T,s.CurrentView,s.CssOverrides,s.BenefitsOnboarding),(v=T.tag===2?T.fields[0].tag===1?new U(1,[new oe(4,[T.fields[0].fields[0]])]):Cl(s.CurrentView,T.fields[0].fields[0],s.BenefitsOnboarding):T.tag===3?new U(1,[new oe(4,[T.fields[0].message])]):new U(1,[new oe(4,["Process Instance not resolved"])]),A(se=>{se(v)}))]}case 9:{const T=r.fields[0];switch(T.tag){case 1:return[s,X()];case 2:return T.fields[0].tag===1?[new st(s.ProfileId,s.ProcessInstanceId,new we(2,[new h(1,[T.fields[0].fields[0]])]),s.CurrentView,s.CssOverrides,s.BenefitsOnboarding),A(z=>{z(new U(1,[new oe(4,[T.fields[0].fields[0]])]))})]:(pa(T.fields[0].fields[0].Id,T.fields[0].fields[0].Configuration.Name,T.fields[0].fields[0].Configuration.Id,s.ProfileId),[new st(s.ProfileId,s.ProcessInstanceId,ob(z=>{const H=z;return H.tag===1?new h(1,[H.fields[0]]):yl(H.fields[0],T.fields[0].fields[0])},s.WorkflowDetail),s.CurrentView,s.CssOverrides,s.BenefitsOnboarding),A(z=>{z(new U(1,[new oe(5,[])]))})]);case 3:return[new st(s.ProfileId,s.ProcessInstanceId,new we(3,[T.fields[0]]),s.CurrentView,s.CssOverrides,s.BenefitsOnboarding),(S=new U(1,[new oe(4,[T.fields[0].message])]),A(z=>{z(S)}))];default:{const z=s.WorkflowDetail;let H,ve;switch(z.tag===2&&z.fields[0].tag===0&&ia(z.fields[0].fields[0].Status)?(H=0,ve=z.fields[0].fields[0]):H=1,H){case 0:return pa(ve.ProcessInstanceId,ve.InstanceName,ve.ProcessConfigId,s.ProfileId),[s,X()];default:return[s,At(se=>{Je(se)},se=>MC(s.ProcessInstanceId,se),t,se=>new U(9,[new we(2,[se])]),se=>new U(9,[new we(3,[se])]))]}}}}case 10:{const T=r.fields[0];return pa(T.ProcessInstanceId,T.InstanceName,T.ProcessConfigId,s.ProfileId),[s,A(z=>{z(new U(1,[new oe(5,[])]))})]}case 12:return[s,(N=window.location.pathname+"/"+window.location.search+window.location.hash,h0(T=>{ll(A(N),1)}))];case 14:return[s,X()];case 15:return[s,X()];default:{const T=r.fields[0];let z;switch(T.tag){case 3:{z=[s,(ee=new U(1,[new oe(4,[T.fields[0].message])]),A(H=>{H(ee)}))];break}case 0:case 1:{z=[s,X()];break}default:{let H;const ve=T.fields[0];if(ve.tag===1)H=new h(1,[ve.fields[0]]);else{const se=ve.fields[0],an=gl(se.IsBenefitsEnabled);let ln;const Es=[se.ProcessInstance,an];if(ln=wl(Es[0],Es[1]),ln.tag===1)H=new h(1,[ln.fields[0]]);else{const Xi=ln.fields[0],Tl=wC(n,se);H=Tl.tag===1?new h(1,[Tl.fields[0]]):new h(0,[(J=Tl.fields[0],Ae=ia(se.ProcessInstance.Status),it=$C(Xi),it==null?J.IsPaySetupComplete?Ae?[new st(s.ProfileId,s.ProcessInstanceId,new we(2,[new h(0,[J])]),new oe(5,[]),se.CssOverrides,an),X()]:(Yt(0),[new st(s.ProfileId,s.ProcessInstanceId,new we(2,[new h(0,[J])]),new oe(5,[]),se.CssOverrides,an),A(H3=>{H3(new U(9,[new we(0,[])]))})]):[new st(s.ProfileId,s.ProcessInstanceId,new we(2,[new h(0,[J])]),new oe(3,[]),se.CssOverrides,an),X()]:[new st(s.ProfileId,s.ProcessInstanceId,new we(2,[new h(0,[J])]),(Me=it,Ve=ul.clientWidth,Qe=lr(Xi)|0,Qe===1?(document.title=Zn(Me),new oe(2,[Me])):vl(Ve)!=null?new oe(1,[]):new oe(2,[Me])),se.CssOverrides,an),X()])])}}z=H.tag===1?[s,A(se=>{se(new U(1,[new oe(4,[H.fields[0]])]))})]:H.fields[0]}}return[z[0],z[1]]}}}function NC(e,t,n,r){return DC(TC,e,t,n,r)}const RC=d("div",C(y([["className","text-primary-base"],(()=>{let e,t,n;const r=[d("svg",C(y([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(e=A(d("g",C(A((t=y([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cy:16,r:16,fill:"currentColor"}),d("path",C(y([(n="M20.3018 11.7811L13.9959 18.0829L11.6982 15.7867C11.5092 15.6043 11.2561 15.5033 10.9933 15.5056C10.7306 15.5079 10.4793 15.6132 10.2935 15.7989C10.1077 15.9845 10.0023 16.2357 10 16.4983C9.99775 16.7608 10.0988 17.0138 10.2813 17.2026L13.2874 20.2068C13.4754 20.3945 13.7302 20.5 13.9959 20.5C14.2616 20.5 14.5164 20.3945 14.7043 20.2068L21.7187 13.1971C21.9012 13.0082 22.0022 12.7553 22 12.4927C21.9977 12.2301 21.8923 11.979 21.7065 11.7933C21.5207 11.6076 21.2694 11.5023 21.0067 11.5C20.7439 11.4978 20.4908 11.5987 20.3018 11.7811Z",["d",n]),["fill","white"]])))]),["children",b.Children.toArray(Array.from(t))]))))),["children",b.Children.toArray(Array.from(e))])])))];return["children",b.Children.toArray(Array.from(r))]})()]))),LC=d("div",C(y([["className","text-primary-base"],(()=>{let e,t,n,r;const s=[d("svg",C(y([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(e=A(d("g",C(A((t=y([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cy:16,r:15,stroke:"currentColor",strokeWidth:2}),d("path",C(y([(n="M16.616 12.6769L11.146 18.1459C11.0908 18.2022 11.0497 18.2707 11.026 18.3459L10.026 21.3459C10.0018 21.4208 9.99555 21.5004 10.0079 21.5781C10.0202 21.6559 10.0507 21.7296 10.0969 21.7934C10.1431 21.8571 10.2036 21.909 10.2737 21.9449C10.3438 21.9808 10.4213 21.9997 10.5 21.9999C10.5538 22.0002 10.6072 21.9914 10.658 21.9739L13.658 20.9739C13.7332 20.9503 13.8017 20.9091 13.858 20.8539L19.327 15.3839L16.616 12.6769Z",["d",n]),["fill","currentColor"]]))),d("path",C(y([(r="M21.8545 12.146L19.8545 10.146C19.808 10.0994 19.7529 10.0625 19.6921 10.0373C19.6314 10.0121 19.5663 9.99908 19.5005 9.99908C19.4347 9.99908 19.3696 10.0121 19.3089 10.0373C19.2481 10.0625 19.1929 10.0994 19.1465 10.146L17.6775 11.616L20.3845 14.323L21.8545 12.854C21.9011 12.8075 21.938 12.7524 21.9632 12.6916C21.9884 12.6309 22.0014 12.5657 22.0014 12.5C22.0014 12.4342 21.9884 12.3691 21.9632 12.3083C21.938 12.2476 21.9011 12.1924 21.8545 12.146Z",["d",r]),["fill","currentColor"]])))]),["children",b.Children.toArray(Array.from(t))]))))),["children",b.Children.toArray(Array.from(e))])])))];return["children",b.Children.toArray(Array.from(s))]})()]))),BC=d("svg",C(y([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e,t,n;const r=A(d("g",C(A((e=y([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cy:16,r:15,stroke:"#D1D5DB",strokeWidth:2}),d("path",C(y([(t="M15 13C15 12.7348 15.1054 12.4804 15.2929 12.2929C15.4804 12.1054 15.7348 12 16 12C16.2652 12 16.5196 12.1054 16.7071 12.2929C16.8946 12.4804 17 12.7348 17 13V15H19V13C19 12.2044 18.6839 11.4413 18.1213 10.8787C17.5587 10.3161 16.7956 10 16 10C15.2044 10 14.4413 10.3161 13.8787 10.8787C13.3161 11.4413 13 12.2044 13 13V15H15V13Z",["d",t]),["fill","#9CA3AF"]]))),d("path",C(y([(n="M19.6 16H12.4C11.9029 16 11.5 16.3731 11.5 16.8333V20.1667C11.5 20.6269 11.9029 21 12.4 21H19.6C20.0971 21 20.5 20.6269 20.5 20.1667V16.8333C20.5 16.3731 20.0971 16 19.6 16Z",["d",n]),["fill","#9CA3AF"]])))]),["children",b.Children.toArray(Array.from(e))])))));return["children",b.Children.toArray(Array.from(r))]})()]))),Ah=d("svg",C(y([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=A(d("g",C(A((e=y([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cy:16,r:15,stroke:"#D1D5DB",strokeWidth:2})]),["children",b.Children.toArray(Array.from(e))])))));return["children",b.Children.toArray(Array.from(t))]})()]))),VC=d("svg",C(y([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e,t;const n=A(d("g",C(A((e=y([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cx:16,cy:16,r:15,stroke:"#D1D5DB",strokeWidth:2}),d("path",C(y([(t="M20.3018 11.7811L13.9959 18.0829L11.6982 15.7867C11.5092 15.6043 11.2561 15.5033 10.9933 15.5056C10.7306 15.5079 10.4793 15.6132 10.2935 15.7989C10.1077 15.9845 10.0023 16.2357 10 16.4983C9.99775 16.7608 10.0988 17.0138 10.2813 17.2026L13.2874 20.2068C13.4754 20.3945 13.7302 20.5 13.9959 20.5C14.2616 20.5 14.5164 20.3945 14.7043 20.2068L21.7187 13.1971C21.9012 13.0082 22.0022 12.7553 22 12.4927C21.9977 12.2301 21.8923 11.979 21.7065 11.7933C21.5207 11.6076 21.2694 11.5023 21.0067 11.5C20.7439 11.4978 20.4908 11.5987 20.3018 11.7811Z",["d",t]),["fill","#D1D5DB"]])))]),["children",b.Children.toArray(Array.from(e))])))));return["children",b.Children.toArray(Array.from(n))]})()])));function kl(e,t){let n;return d("div",C(y([["className","w-full h-6 rounded justify-start items-center inline-flex"],(n=[d("div",{className:be(" ",[e,"text-lg font-medium leading-normal"]),children:t})],["children",b.Children.toArray(Array.from(n))])])))}function FC(e){return kl("text-gray-900",e)}function xl(e){return kl("text-gray-500",e)}function WC(e){return kl("text-primary-base",e)}function jC(e){switch(e.Status.tag){case 0:return FC(Zn(e));case 1:return xl(Zn(e));case 3:return xl(Zn(e));case 4:return xl(Zn(e));default:return WC(Zn(e))}}function Eh(e){let t;return d("div",C(y([["className","w-8 h-6 flex-col justify-center items-center inline-flex"],(t=[d("div",{className:be(" ",[e,"w-0.5 h-6 relative"])})],["children",b.Children.toArray(Array.from(t))])])))}const UC=Eh("bg-gray-300"),Th=Eh("bg-primary-base");function zC(e){const t=O(e.Id,new xe(6,[])),n=e.Status;let r;if(t)r=2;else switch(n.tag){case 0:{r=0;break}case 2:{r=1;break}default:r=2}switch(r){case 0:return Th;case 1:return Th;default:return UC}}function Ph(e,t){let n,r,s;const i=O(t.Status,new le(0,[]))?!0:O(t.Status,new le(2,[]));return d("button",C(y([["className",be(" ",["group h-8 justify-start items-center space-x-4 inline-flex focus:outline-none"])],["type","button"],["disabled",!i],["onClick",o=>{e(new U(1,[new oe(2,[t])]))}],(n=[d("div",C(y([["className","w-8 h-8 relative"],(r=$e(E(()=>{const o=t.Status;return o.tag===0?_(RC):o.tag===1?_(Ah):o.tag===3?O(t.Id,new xe(6,[]))?_(BC):_(Ah):o.tag===4?_(VC):_(LC)})),["children",b.Children.toArray(Array.from(r))])]))),d("div",C(y([["className",be(" ",$e(E(()=>V(_("rounded justify-start items-center flex"),E(()=>i?_("group-focus:outline-none group-focus:ring-2 group-focus:ring-offset-4 group-focus:ring-primary-focus"):dr())))))],(s=[jC(t)],["children",b.Children.toArray(Array.from(s))])])))],["children",b.Children.toArray(Array.from(n))])])))}function HC(e){let t,n,r,s=!1,i=0;const o=pe(e.Steps);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const u=o["System.Collections.Generic.IEnumerator`1.get_Current"]();switch(u.Id.tag){case 0:case 1:{s=O(u.Status,new le(0,[]))?!0:O(u.Status,new le(4,[]));break}default:(O(u.Status,new le(0,[]))||O(u.Status,new le(4,[])))&&(i=i+1|0)}}}finally{ue(o)}r=i+(s?1:0);const a=lr(bl(e.Steps))|0,l=u=>d("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:u});return d("div",C(y([(t="h-20 w-full px-6 py-4 bg-white border-b border-gray-300 flex-col justify-start items-start inline-flex cursor-default",["className",t]),(n=$e(E(()=>{let u,f;return V((u=e.Branding,O(e.AppMode,new Tr(0,[]))?_(te()):u!=null&&u.CompanyName!=null?(f=u.CompanyName,_(l(is(f)))):_(l(_l(e.JourneyType)))),E(()=>_(d("div",{className:"text-center text-gray-900 text-base font-semibold leading-normal",children:`${r}/${a} sections complete`}))))})),["children",b.Children.toArray(Array.from(n))])])))}function GC(e,t){return((r,s)=>{e:for(;;){const i=r,o=s;if(M(i))return o;if(M(P(i)))return bt(o,A(Ph(e,k(i))));r=nt(k(P(i)),P(P(i))),s=bt(o,y([Ph(e,k(i)),zC(k(P(i)))]));continue e}})(bl(t.Steps),de())}function qC(e){let t,n,r;const s=e.dispatch,i=e.detail,o=Zo(void 0),a=ui(!1);return Dp(()=>{const l=window.ResizeObserver?new window.ResizeObserver(()=>{const u=document.body.offsetWidth;vl(u)!=null||a[0]===!1&&(a[1](!0),s(new U(2,[])))}):new Lf(()=>{const u=document.body.offsetWidth;vl(u)!=null||a[0]===!1&&(a[1](!0),s(new U(2,[])))});return Tn(u=>{l.observe(u)},Zs(o.current)),{Dispose(){l.disconnect()}}}),d("div",C(y([["ref",o],["className","absolute top-0 bottom-0 left-0 right-0"],(t=[d("div",C(y([["className","w-full h-full bg-white flex-col justify-start items-start inline-flex"],(n=[HC(i),d("div",C(y([["className","p-6 bg-white flex-col justify-start items-start inline-flex"],(r=GC(s,i),["children",b.Children.toArray(Array.from(r))])])))],["children",b.Children.toArray(Array.from(n))])])))],["children",b.Children.toArray(Array.from(t))])])))}class qi extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token"]}}class YC extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["app-base-url"]}}class JC extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["workflows-instance-id"]}}function Mh(e){const t=e.children,n=e.effect,r=e.props,s=e.step;pr(n);const i=s.tag===1?pt.ComponentTagName:s.tag===2?$t.ComponentTagName:s.tag===3?gt.ComponentTagName:s.tag===4?Re.ComponentTagName:s.tag===5?Dn.ComponentTagName:s.tag===6?hi.ComponentTagName:s.tag===7?qt.ComponentTagName:s.tag===8?Nn.ComponentTagName:Ye.ComponentTagName;return d(i,Ct(r,1),...t)}class As extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Mobile","MobileLandscape","Tablet","Desktop","WideScreen"]}}class ZC extends B{constructor(t,n,r,s){super(),this.MobileLandscape=t|0,this.Tablet=n|0,this.Desktop=r|0,this.WideScreen=s|0}}const XC=new ZC(576,768,1024,1216);function KC(e){return["(max-width: "+e.MobileLandscape+"px)","(max-width: "+e.Tablet+"px)","(max-width: "+e.Desktop+"px)","(max-width: "+e.WideScreen+"px)"]}function Yi(e){const t=Op(()=>window.matchMedia(e).matches);return Jo(()=>{const n=window.matchMedia(e),r=()=>{t[1](n.matches)};return r(),n.addListener(r),ns(()=>{n.removeListener(r)})},[e]),t[0]}function QC(e){const t=KC(Te(e,XC)),n=Yi(t[0]),r=Yi(t[1]),s=Yi(t[2]),i=Yi(t[3]);return n?new As(0,[]):r?new As(1,[]):s?new As(2,[]):i?new As(3,[]):new As(4,[])}const e3=d("svg",C(y([["fill","none"],["height",16],["viewBox","0 0 16 16"],["width",16],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e,t;const n=A(d("g",C(A((e=y([d("rect",{width:16,height:16,fill:"white"}),d("path",C(y([(t="M15 6.99992H3.41403L6.70703 3.70692C6.88919 3.51832 6.98998 3.26571 6.9877 3.00352C6.98543 2.74132 6.88026 2.49051 6.69485 2.3051C6.50944 2.11969 6.25863 2.01452 5.99643 2.01224C5.73423 2.00997 5.48163 2.11076 5.29303 2.29292L0.293031 7.29292C0.10556 7.48045 0.000244141 7.73475 0.000244141 7.99992C0.000244141 8.26508 0.10556 8.51939 0.293031 8.70692L5.29303 13.7069C5.38528 13.8024 5.49562 13.8786 5.61763 13.931C5.73963 13.9834 5.87085 14.011 6.00363 14.0122C6.13641 14.0133 6.26809 13.988 6.39098 13.9377C6.51388 13.8875 6.62553 13.8132 6.71943 13.7193C6.81332 13.6254 6.88757 13.5138 6.93785 13.3909C6.98813 13.268 7.01343 13.1363 7.01228 13.0035C7.01113 12.8707 6.98354 12.7395 6.93113 12.6175C6.87872 12.4955 6.80254 12.3852 6.70703 12.2929L3.41403 8.99992H15C15.2652 8.99992 15.5196 8.89456 15.7071 8.70703C15.8947 8.51949 16 8.26514 16 7.99992C16 7.7347 15.8947 7.48035 15.7071 7.29281C15.5196 7.10528 15.2652 6.99992 15 6.99992Z",["d",t]),["fill","#212121"]])))]),["children",b.Children.toArray(Array.from(e))])))));return["children",b.Children.toArray(Array.from(n))]})()])));function t3(e,t,n){let r,s,i,o,a,l;const u=D1(m=>O(m.Id,n.Id),t)/lr(t)*100;l=ze(Ue("%.0f%%"))(u);let f;const c=R1(m=>O(m.Status,new le(2,[]))?!0:O(m.Status,new le(0,[])),t)/lr(t)*100;f=ze(Ue("%.0f%%"))(c);const p=O(n.Id,new xe(1,[]))?Ch(new xe(0,[])):Zn(n);return d("div",C(y([(r="h-20 w-full px-6 py-4 bg-white border-b border-gray-300 flex-col justify-start items-start space-y-3 inline-flex sticky left-0 right-0 top-0 z-50",["className",r]),(s=[d("div",C(y([["className","self-stretch justify-start items-center space-x-3 inline-flex"],(i=[d("button",{type:"button",className:"w-4 h-4 rounded-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-base",onClick:m=>{e(new U(1,[new oe(1,[])]))},children:b.Children.toArray([e3])}),d("div",{className:"text-center text-gray-900 text-base font-semibold leading-normal",children:p})],["children",b.Children.toArray(Array.from(i))])]))),d("div",C(y([["className","w-full h-2 relative rounded-sm"],(o=[d("div",{className:"w-full h-0.5 left-0 top-[3px] absolute bg-gray-300 rounded-sm"}),d("div",C(y([["className","w-full left-0 top-0 absolute"],(a=[d("div",{className:"h-0.5 left-0 top-[3px] absolute bg-primary-base rounded-sm",style:{width:f}}),d("div",{className:"w-2 h-2 top-0 absolute bg-primary-base rounded-full",style:{left:l}})],["children",b.Children.toArray(Array.from(a))])])))],["children",b.Children.toArray(Array.from(o))])])))],["children",b.Children.toArray(Array.from(s))])])))}const n3=d("div",C(y([["className","relative h-4 w-2 z-50"],(()=>{const e=[d("div",{className:"absolute left-0 top-1 h-2 w-2 rounded-full bg-primary-base"})];return["children",b.Children.toArray(Array.from(e))]})()]))),r3=d("div",{className:"relative h-0.5 w-2 bg-gray-300"}),Oh=d("div",{className:"relative h-0.5 w-2 bg-primary-base"}),s3=d("div",C(y([["className","w-4 h-4 relative"],(()=>{let e,t,n;const r=[d("svg",C(y([["fill","none"],["height",16],["viewBox","0 0 16 16"],["width",16],["xmlns","http://www.w3.org/2000/svg"],(e=y([d("path",C(y([(t="M7 5C7 4.73478 7.10536 4.48043 7.29289 4.29289C7.48043 4.10536 7.73478 4 8 4C8.26522 4 8.51957 4.10536 8.70711 4.29289C8.89464 4.48043 9 4.73478 9 5V7H11V5C11 4.20435 10.6839 3.44129 10.1213 2.87868C9.55871 2.31607 8.79565 2 8 2C7.20435 2 6.44129 2.31607 5.87868 2.87868C5.31607 3.44129 5 4.20435 5 5V7H7V5Z",["d",t]),["fill","#9CA3AF"]]))),d("path",C(y([(n="M11.6 8H4.4C3.90294 8 3.5 8.3731 3.5 8.83333V12.1667C3.5 12.6269 3.90294 13 4.4 13H11.6C12.0971 13 12.5 12.6269 12.5 12.1667V8.83333C12.5 8.3731 12.0971 8 11.6 8Z",["d",n]),["fill","#9CA3AF"]])))]),["children",b.Children.toArray(Array.from(e))])])))];return["children",b.Children.toArray(Array.from(r))]})()])));function Dh(e,t,n){let r;if(e)r=0;else switch(n.tag){case 0:case 4:{r=2;break}case 1:{r=4;break}case 3:{t?r=3:r=4;break}default:r=1}switch(r){case 0:return n3;case 1:return Oh;case 2:return Oh;case 3:return s3;default:return r3}}const Nh=d("div",{className:"relative h-0.5 w-full"}),i3=d("div",{className:"relative h-0.5 w-full bg-gray-300"}),o3=d("div",{className:"relative h-0.5 w-full bg-primary-base"});function Il(e){let t;if(e==null)t=1;else switch(e.tag){case 0:case 4:case 2:{t=0;break}default:t=2}switch(t){case 0:return o3;case 1:return Nh;default:return i3}}function Rh(e){let t,n;return d("div",C(y([["className","inline-flex h-11 w-10 flex-col items-center justify-start"],(t=[d("div",C(y([["className","inline-flex h-4 items-center justify-center self-stretch"],(n=[d("div",{className:be(" ",[e,"relative h-0.5 w-10"])})],["children",b.Children.toArray(Array.from(n))])])))],["children",b.Children.toArray(Array.from(t))])])))}const a3=Rh("bg-gray-300"),l3=Rh("bg-primary-base");function u3(e){switch(e.tag){case 0:case 4:case 2:return l3;default:return a3}}function Lh(e,t,n,r){let s,i;const o=!e&&(O(n.Status,new le(0,[]))?!0:O(n.Status,new le(2,[]))),a=e?"text-primary-base":O(n.Status,new le(2,[]))||O(n.Status,new le(0,[]))?"text-gray-900 group-hover:text-primary-base":"text-gray-500",l=d("div",{className:"absolute inset-0 group-hover:bg-primary-base group-hover:opacity-10 rounded"});let u;const f=mc(Sh(n.Id).toLocaleLowerCase()," ","-");return u=ze(Ue("step-%s"))(f),d("div",C(y([["className",be(" ",["h-11 flex-col justify-start items-center inline-flex"])],(s=[d("div",{className:"h-4 inline-flex items-center justify-center self-stretch",children:b.Children.toArray(Array.from(r))}),d("button",C(y([["type","button"],["disabled",!o],["data-testid",u],["className",be(" ",["relative group h-7 px-2 py-1 justify-center items-center gap-2 inline-flex rounded","focus:outline-none focus:ring-1 focus:ring-offset-1 focus:ring-primary-focus"])],["onClick",Pt(t)(n)],(i=$e(E(()=>V(_(o?l:te()),E(()=>_(d("div",{className:be(" ",[a,"text-sm font-medium leading-tight whitespace-nowrap"]),children:cC(n)})))))),["children",b.Children.toArray(Array.from(i))])])))],["children",b.Children.toArray(Array.from(s))])])))}function c3(e,t,n){const r=O(n.Id,new xe(1,[]))?new xe(0,[]):n.Id,s=(o,a)=>{e(new U(1,[new oe(2,[o])]))};return cr(((o,a,l)=>{e:for(;;){const u=o,f=a,c=l;if(M(u))return c;if(M(P(u))){const p=Il(f),m=O(k(u).Id,r);return bt(c,A(Lh(m,s,k(u),y([Nh,Dh(m,O(k(u).Id,new xe(6,[])),k(u).Status),p]))))}else{const p=Il(f),m=O(k(u).Id,r),$=Dh(m,O(k(u).Id,new xe(6,[])),k(u).Status);o=P(u),a=k(u).Status,l=bt(c,y([Lh(m,s,k(u),y([Il(k(u).Status),$,p])),u3(k(u).Status)]));continue e}}})(cr(bl(t)),void 0,de()))}function f3(e,t,n){let r,s,i;const o=d("div",C(y([["className","grow shrink basis-0 flex-col justify-start items-start inline-flex"],(r=[d("div",{className:"hidden lg:inline text-gray-500 text-sm font-medium leading-tight",children:_l(t.JourneyType)}),Te(Fe(l=>d("div",{className:"hidden lg:inline text-center text-gray-900 text-base font-semibold leading-normal",children:l}),Fe(is,fn(l=>l.CompanyName,t.Branding))),te())],["children",b.Children.toArray(Array.from(r))])]))),a=d("div",{className:"grow shrink basis-0"});return d("div",C(y([(s="w-full h-20 px-8 py-4 bg-white border-b border-gray-300 justify-between items-center inline-flex sticky left-0 right-0 top-0 z-50",["className",s]),(i=$e(E(()=>V(O(t.AppMode,new Tr(0,[]))?_(a):_(o),E(()=>{let l;return V(_(d("div",C(y([["className","bg-white justify-center items-start flex"],(l=c3(e,t.Steps,n),["children",b.Children.toArray(Array.from(l))])])))),E(()=>_(d("div",{className:"grow shrink basis-0"}))))})))),["children",b.Children.toArray(Array.from(i))])])))}function d3(e){let t;const n=e.body,r=e.currentStep,s=e.detail,i=e.dispatch;return d("div",C(y([["className","w-full flex-col justify-start items-center inline-flex bg-white"],(t=$e(E(()=>V(lr(s.Steps)===1?_(te()):QC().tag===0?_(t3(i,s.Steps,r)):_(f3(i,s,r)),E(()=>_(d("div",{className:"p-4 max-w-7xl mx-auto w-full",children:n})))))),["children",b.Children.toArray(Array.from(t))])])))}const h3=e=>d("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("path",{d:"M16 16V30",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M11 21L16 16L21 21",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M11 29H4C3.20435 29 2.44129 28.6839 1.87868 28.1213C1.31607 27.5587 1 26.7956 1 26V2H12L15 7H31V26C31 26.7956 30.6839 27.5587 30.1213 28.1213C29.5587 28.6839 28.7956 29 28 29H21",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),m3=e=>d("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("path",{d:"M19.7 4.3C19.3 3.9 18.7 3.9 18.3 4.3L12 10.6L5.7 4.3C5.3 3.9 4.7 3.9 4.3 4.3C3.9 4.7 3.9 5.3 4.3 5.7L10.6 12L4.3 18.3C3.9 18.7 3.9 19.3 4.3 19.7C4.5 19.9 4.7 20 5 20C5.3 20 5.5 19.9 5.7 19.7L12 13.4L18.3 19.7C18.5 19.9 18.8 20 19 20C19.2 20 19.5 19.9 19.7 19.7C20.1 19.3 20.1 18.7 19.7 18.3L13.4 12L19.7 5.7C20.1 5.3 20.1 4.7 19.7 4.3Z",fill:"#9CA3AF"}));function p3(e){const t=Ct(e,1);return d(h3,t)}function $3(e){const t=Ct(e,1);return d(m3,t)}function g3(e){return d("div",{className:"absolute top-0 bottom-0 left-0 right-0",children:b.Children.toArray([e])})}function w3(e,t){let n;return d("button",C(y([["type","button"],["data-testid","submit-btn"],["className",be(" ",["self-stretch md:self-auto md:w-60 px-4 py-2 bg-primary-base hover:bg-primary-hover rounded-md shadow","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus cursor-pointer","justify-center items-center inline-flex"])],["onClick",t],(n=[d("div",{className:"text-white text-base font-semibold leading-normal",children:e})],["children",b.Children.toArray(Array.from(n))])])))}function y3(e,t){let n;return d("button",C(y([["type","button"],["className",be(" ",["relative group self-stretch md:self-auto md:w-60 px-4 py-2 rounded-md shadow justify-center items-center inline-flex","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus cursor-pointer"])],["onClick",t],(n=[d("div",{className:"text-primary-dark text-base font-semibold leading-normal z-[1]",children:e}),d("div",{className:"absolute w-full h-full rounded-md z-[0] bg-primary-base opacity-10 group-hover:opacity-20"})],["children",b.Children.toArray(Array.from(n))])])))}function Ji(e,t,n,r,s){let i,o,a,l,u,f,c,p,m,$,g,w,v,S,N;return g3(d("div",C(y([["className","w-full h-full md:pb-8 bg-white flex-col justify-start items-start md:items-center inline-flex"],(i=[d("div",C(y([(o="w-full md:self-stretch p-4 bg-white border-gray-200 flex-col justify-start items-end space-x-4 space-y-4 flex",["className",o]),(a=[d("button",C(y([["type","button"],(l="w-6 h-6 relative rounded-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-base",["className",l]),["onClick",ee=>{s(new U(6,[{InjectedBenefits:r}]))}],(u=[$3([])],["children",b.Children.toArray(Array.from(u))])])))],["children",b.Children.toArray(Array.from(a))])]))),d("div",C(y([(f="w-full md:w-[560px] grow shrink basis-0 px-4 md:px-0 pb-8 md:pb-0 bg-white flex-col justify-between md:justify-start items-center md:space-y-14 flex",["className",f]),(c=[d("div",C(y([["className","self-stretch h-64 md:h-56 flex-col justify-start items-center space-y-8 flex"],(p=[d("div",C(y([["className","self-stretch h-64 flex-col justify-start items-center space-y-6 flex"],(m=[d("div",C(y([["className","self-stretch h-24 flex-col justify-start items-center space-y-4 flex"],($=[d("div",C(y([["className","w-12 h-12 relative rounded-lg"],(g=[d("div",{className:"w-12 h-12 relative bg-primary-base opacity-10 rounded-lg"}),d("div",C(y([["className","w-8 h-8 left-2 top-2 absolute"],(w=[d("div",C(y([["className","w-7 h-7 left-px top-0.5 absolute"],(v=[p3([["className","text-primary-base"]])],["children",b.Children.toArray(Array.from(v))])])))],["children",b.Children.toArray(Array.from(w))])])))],["children",b.Children.toArray(Array.from(g))])]))),d("div",{className:"self-stretch text-center text-gray-900 text-2xl md:text-3xl font-bold leading-7 md:leading-9",children:e})],["children",b.Children.toArray(Array.from($))])]))),d("div",C(y([["className","self-stretch h-40 md:h-24 flex-col justify-start items-center space-y-3 md:space-y-4 flex"],(S=[d("div",{className:"self-stretch text-center text-gray-900 text-base md:text-lg font-normal leading-normal md:leading-7",children:t}),d("div",{className:"self-stretch text-center text-gray-900 text-base md:text-lg font-normal leading-normal md:leading-7",children:n})],["children",b.Children.toArray(Array.from(S))])])))],["children",b.Children.toArray(Array.from(m))])])))],["children",b.Children.toArray(Array.from(p))])]))),d("div",C(y([["className","self-stretch h-24 flex-col justify-start items-center space-y-4 flex cursor-pointer"],(N=[w3(r?"Submit and continue":"Submit",ee=>{s(new U(7,[{InjectedBenefits:r}]))}),y3("Keep editing",ee=>{s(new U(6,[{InjectedBenefits:r}]))})],["children",b.Children.toArray(Array.from(N))])])))],["children",b.Children.toArray(Array.from(c))])])))],["children",b.Children.toArray(Array.from(i))])]))))}function _3(e){let t,n;const r=e.dispatch,s=e.wd,i=s.IsBenefitsStepEnabled;return s.AppMode.tag===1?i?Ji("Before you continue",(t=fn(o=>o.CompanyName,s.Branding),t==null?"Submit to finalise your pay information to your employer and continue to access your workplace benefits":`Submit to finalise your pay information to ${is(t)} and continue to access your workplace benefits`),"Once you submit, you’ll be unable to view or edit your details",!0,r):Ji("Submit your details",(n=fn(o=>o.CompanyName,s.Branding),n==null?"Submit to finalise your pay information to your employer":`Submit to finalise your pay information to ${is(n)}`),"Once you submit, you’ll be unable to view or edit your details.",!1,r):i?Ji("Before you continue","Submit to finalise your pay information to your employer and continue to access your workplace benefits","",!0,r):Ji("Submit your details","Submit to finalise your pay information to your employer","",!1,r)}function Zi(e,t){let n;return d("div",C(y([["className",be(" ",["animate-pulse w-full relative",e,t])],(n=[d("div",{className:be(" ",["w-full left-0 top-0 absolute bg-gray-200 rounded",e])})],["children",b.Children.toArray(Array.from(n))])])))}const v3=Zi("h-9","max-w-96"),Bh=Zi("h-6","max-w-96"),b3=Zi("h-80","max-w-96"),C3=Zi("h-10","max-w-48"),S3=(()=>{let e,t,n;const r=[d("div",C(y([(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=[d("div",C(y([["className","max-w-96 w-full flex-col justify-start items-center gap-6 flex"],(n=[v3,d("div",{className:"self-stretch h-14 flex-col justify-start items-center gap-2 flex",children:b.Children.toArray([Bh,Bh])})],["children",b.Children.toArray(Array.from(n))])]))),b3,C3],["children",b.Children.toArray(Array.from(t))])])))];return d(Oe,{},...r)})();function k3(e){let t;const n=e.accessToken,r=e.appMode;let s;const i=OC(n);s=rl(()=>Ri(()=>i,(c,p)=>NC(n,r,c,p),(c,p)=>{}),void 0,[]);const o=s[0],a=s[1];li(ab(()=>IC(o.ProcessInstanceId,n),c=>{a(new U(0,[c]))}),[]),li(()=>{Sg()},[]),li(()=>{const c=o.CurrentView;let p;switch(o.WorkflowDetail.tag===2?c.tag===2?O(c.fields[0].Id,new xe(4,[]))?(p=0,c.fields[0]):O(c.fields[0].Id,new xe(5,[]))?(p=1,c.fields[0]):p=2:p=2:p=3,p){case 0:break;case 1:break;case 2:{ll(A(cl(r)),2);break}}},[o.CurrentView,o.WorkflowDetail]),pr(()=>{window.addEventListener("step-completion",c=>{a(new U(3,[c]))})});const l=o.WorkflowDetail;let u,f;switch(l.tag){case 2:{l.fields[0].tag===1?u=2:(u=1,f=l.fields[0].fields[0]);break}case 3:{u=2;break}default:u=0}switch(u){case 0:return d("div",{children:["Please wait..."]});case 1:{const c=f.JourneyType;return d("div",C(y([["className","w-full min-h-[600px] mx-auto bg-white"],(t=$e(E(()=>V(Ie(p=>d("style",{children:[p]}),o.CssOverrides),E(()=>{const p=o.CurrentView;switch(p.tag){case 1:return V(_(d(qC,{detail:f,dispatch:a})),E(()=>(Yt(0),dr())));case 2:{const m=p.fields[0];let $;const g=m.Id;return $=g.tag===4?d(Mh,{step:new xe(4,[]),props:[new qi(1,[n]),new qi(0,[`${Un}/super-selection/backend/v1.0/`]),new YC(cl(r))],effect:()=>{a(new U(12,[])),Yt(2500)},children:[]}):d(Mh,{step:g,props:[new qi(1,[n]),new qi(0,[Un]),new JC(un($r(o.ProcessInstanceId)))],effect:()=>{Yt(1500)},children:[]}),_(d(d3,{dispatch:a,detail:f,currentStep:m,body:$}))}case 3:return V(_(d(_3,{wd:f,dispatch:a})),E(()=>(Yt(0),dr())));case 4:return V(_(d("div",{className:"text-center mt-5",children:"We had an issue. Please try again shortly."})),E(()=>(Yt(0),dr())));case 5:{const m=Fe(F_,f.Branding);let $;if(f.AppMode.tag===0)$=0;else switch(c.tag){case 1:{$=2;break}case 2:{$=3;break}case 3:case 4:{$=4;break}default:$=1}switch($){case 0:return _(S3);case 1:return _(xs($l(m,"onboarding")));case 2:return _(xs($l(m,"information request")));case 3:return _(xs(wh()));default:return _(xs(fi()))}}default:return _(d("div",{children:["Please wait..."]}))}})))),["children",b.Children.toArray(Array.from(t))])])))}default:return xs(fi())}}function x3(e){return{render:function(t){Rs(t,e)},unmount:function(){go(e)}}}class I3 extends B{constructor(t,n,r){super(),this.model=t,this.render=n,this.equal=r}}class A3 extends dt{constructor(t){super(t)}shouldComponentUpdate(t,n){const r=this;return!r.props.equal(r.props.model,t.model)}render(){return this.props.render()}}function E3(e,t,n,r){const s=new I3(n,()=>t(n,r),e);return d(A3,s)}const T3=(()=>{try{return qo(bu.slice(void 0,2),511,!1,32)>=18}catch{return!1}})();function P3(e,t,n){let r;return $0(ne(T3?(r=x3(document.getElementById(t)),s=>i=>{r.render(e(o=>a=>o===a,g0(n),s,i))}):s=>i=>{Rs(e(o=>a=>o===a,g0(n),s,i),document.getElementById(t))}),n)}function M3(e,t){return P3((n,r,s,i)=>E3(ne(n),ne(r),s,i),e,t)}function O3(e,t){const n=encodeURIComponent(Fv(t)),r=encodeURIComponent(C2),s=encodeURIComponent(S2(new Tr(0,[])));return I.Delay(()=>{let i,o;const a=gs(yn(new Qt(1,[`grant_type=authorization_code&code=${n}&client_id=${r}&redirect_uri=${s}`]),(i=tn(new Ft(1,[]),en(`${_2}/connect/token`)),Ui(hl("application/x-www-form-urlencoded"),i))));return o=I.Bind(a,l=>I.Return(new h(0,[l]))),I.Bind(o,l=>{const u=l;if(u.tag===1)return I.Return(new h(1,[u.fields[0]]));{const f=u.fields[0];if(f.statusCode===200){const c=rn(ne(sn(pl(),void 0)),f.responseText);return I.Return(c)}else return I.Return(new h(1,["Unexpected result from backend"]))}})})}function D3(){return new Er(0,[])}function Al(e){return yi(e)}function N3(e,t){return I.Delay(()=>{let n;return I.Bind(pg([(n=O3(e,t),I.Bind(n,r=>I.Return(r))),I.Delay(()=>I.Bind(Al(2e3),()=>I.Return(void 0)))]),r=>I.Return(re(0,r)))})}function R3(e,t,n){let r;switch(e.tag){case 1:switch(t.tag){case 1:return[t,el(s=>{Je(s)},Al,1e3,()=>new Gn(1,[]))];case 2:return t.fields[0].tag===1?[t,X()]:[t,el(s=>{Je(s)},Al,2e3,()=>new Gn(2,[]))];default:return[new Er(2,[new h(1,["No current authenticated user"])]),X()]}case 2:return[t,(r=window.location.pathname,h0(s=>{ll(A(r),1)}))];default:if(e.fields[0].tag===1)return e.fields[0].fields[0].tag===1?[new Er(2,[new h(1,[`SignIn failed: ${e.fields[0].fields[0].fields[0]}`])]),X()]:(window.gtag&&window.gtag("event","oidc_sign_in",{}),[new Er(2,[new h(0,[e.fields[0].fields[0].fields[0]])]),e.fields[2]?X():A(s=>{s(new Gn(2,[]))})]);switch(t.tag){case 1:return[t,X()];default:return[new Er(1,[]),At(s=>{Je(s)},s=>N3(s[0],s[1]),[n,e.fields[1]],s=>{const i=[new ke(1,[s]),e.fields[1],e.fields[2]];return new Gn(0,[i[0],i[1],i[2]])},s=>{const i=[new ke(1,[new h(1,[s.message])]),e.fields[1],e.fields[2]];return new Gn(0,[i[0],i[1],i[2]])})]}}}function L3(){const e=Ju(window.sessionStorage.getItem("credentials"));if(e!=null){const t=e,n=rn(ne(sn(pl(),void 0)),t);return n.tag===1?void 0:n.fields[0]}}function B3(e){let t;const n=["credentials",(t=new gh(e.id_token,e.access_token,e.expires_in,void 0,e.scope,e.token_type),_n(0,vn(pl(),void 0,void 0,void 0)(t)))];window.sessionStorage.setItem(n[0],n[1])}function Vh(e,t){return Qa(n=>new bn(3,[n]),A(n=>{n(new Gn(0,[new ke(0,[]),e,t]))}))}function El(e){return Vh(e,!1)}function V3(e){return Vh(e,!0)}function F3(){const e=yh(M0(window.location.pathname+window.location.search,2)),t=e[0],n=e[1],r=new Yn(t,D3(),n);switch(t.tag){case 4:case 1:case 2:case 5:case 6:return[r,X()];case 0:{const s=L3();let i;switch(n.tag){case 0:case 2:{i=1;break}default:s==null?i=1:i=0}switch(i){case 0:return[new Yn(r.CurrentPage,new Er(2,[new h(0,[s])]),r.AppMode),X()];default:return[r,A(o=>{o(new bn(5,[]))})]}}default:return[r,El(t.fields[0])]}}function W3(e,t){switch(e.tag){case 1:{const n=e.fields[0];return[new Yn(new W(3,[n]),t.Credentials,t.AppMode),El(n)]}case 2:return[new Yn(new W(4,[]),t.Credentials,t.AppMode),Qa(n=>new bn(3,[n]),A(n=>{n(new Gn(1,[]))}))];case 3:{const n=R3(e.fields[0],t.Credentials,t.AppMode),r=n[0];let s,i;switch(r.tag===2&&r.fields[0].tag===0&&t.AppMode.tag===1?(s=0,i=r.fields[0].fields[0]):s=1,s){case 0:{B3(i);break}}return[new Yn(t.CurrentPage,r,t.AppMode),Qa(o=>new bn(3,[o]),n[1])]}case 4:return[t,V3(e.fields[0])];case 5:return[new Yn(new W(6,[]),t.Credentials,t.AppMode),X()];default:{const n=yh(e.fields[0])[0],r=new Yn(n,t.Credentials,t.AppMode);return n.tag===3?[r,El(n.fields[0])]:[r,X()]}}}const Fh=d("div",C(y([["className","flex flex-col justify-center items-center pt-10"],(()=>{const e=[fi()];return["children",b.Children.toArray(Array.from(e))]})()])));function j3(e){switch(e.CurrentPage.tag){case 3:case 4:case 2:return A("bg-white h-full");default:return de()}}function U3(e){switch(e.tag){case 1:return d("style",{children:[`
809
+ `))(c);return h=>p(h)}}else if(Nu(r))if(Io(r)){const f=sr(c=>xt(e,t,!1,c),Vu(r));return c=>p=>Array.isArray(p)?_t(h=>Fm(or(h)),ah(0,f,c,p)):new m(1,[[c,new L(0,["an array",p])]])}else switch(we(Ru(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return s=xt(e,t,!0,re(0,tt(r))),c=>p=>$v(ne(s),c,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return i=xt(e,t,!1,re(0,tt(r))),c=>p=>sh(ne(i),c,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return o=xt(e,t,!1,re(0,tt(r))),c=>p=>gv(ne(o),c,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=xt(e,t,!1,re(0,tt(r))),p=xt(e,t,!1,re(1,tt(r)));let h;const $=y([g=>w=>kv(ne(c),ne(p),g,w),(a=vv(ne(c),ne(p)),g=>w=>sh(ne(a),g,w))]);return h=g=>w=>wv($,g,w),g=>w=>_v(bv,ne(h),g,w)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=xt(e,t,!1,re(0,tt(r)));return p=>h=>{const $=ih(ne(c),p,h);return $.tag===0?new m(0,[Cv($.fields[0])]):new m(1,[$.fields[0]])}}default:return uh(e,t,n,r)}else switch(l){case"System.Boolean":return f=>c=>cv(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>uv(f,c);case"System.String":return f=>c=>Z0(f,c);case"System.Char":return f=>c=>av(f,c);case"System.SByte":return X0;case"System.Byte":return K0;case"System.Int16":return Q0;case"System.UInt16":return eh;case"System.Int32":return th;case"System.UInt32":return nh;case"System.Double":return f=>c=>fv(f,c);case"System.Single":return f=>c=>dv(f,c);case"System.DateTime":return f=>c=>hv(f,c);case"System.DateTimeOffset":return f=>c=>mv(f,c);case"System.TimeSpan":return f=>c=>pv(f,c);case"System.Guid":return f=>c=>lv(f,c);case"System.Object":return f=>c=>new m(0,[c]);default:return uh(e,t,n,r)}else{const f=u;return c=>p=>f.contents(c)(p)}}function xv(e){return ol({Compare:Ns})}function tn(e,t,n){const r=Ee(t,new He(0,[]));return xt(xv(),r,!1,e)}class Iv{constructor(t){this.magicLink=t,this.backendUrl=`${Vn}/workflows/public-backend/invites/${this.magicLink.InviteToken}`}}function Av(e){return new Iv(e)}function Ev(e){return T.Delay(()=>{let t,n;const r=$s(e,(t=Kt(new Lt(1,[]),Xt(`${e.backendUrl}/magic-link/validate`)),pn(new Zt(1,[(n=new y0(e.magicLink.MagicCode),$n(0,gn(R_(),new He(1,[]),void 0,void 0)(n)))]),t)));return T.Bind(r,s=>{const i=s;if(i.tag===1)return T.Return(new m(1,[i.fields[0]]));{let o;const a=i.fields[0];return o=a.statusCode===200?en(ne(tn(j_(),new He(1,[]))),a.responseText):new m(1,["Unexpected response from backend"]),T.Return(o)}})})}function Tv(e,t){return T.Delay(()=>{let n,r;const s=$s(e,(n=Kt(new Lt(1,[]),Xt(`${e.backendUrl}/magic-link/reissue`)),pn(new Zt(1,[(r=new _0(e.magicLink.MagicCode,t),$n(0,gn(U_(),new He(1,[]),void 0,void 0)(r)))]),n)));return T.Bind(s,i=>{const o=i;if(o.tag===1)return T.Return(new m(1,[o.fields[0]]));{let a;const l=o.fields[0];return a=l.statusCode===200?en(ne(tn(q_(),new He(1,[]))),l.responseText):new m(1,["Unexpected response from backend"]),T.Return(a)}})})}function Pv(e,t){return T.Delay(()=>{let n,r;const s=$s(e,(n=Kt(new Lt(1,[]),Xt(`${e.backendUrl}/one-time-code/issue`)),pn(new Zt(1,[(r=new v0(e.magicLink.MagicCode,t),$n(0,gn(Y_(),new He(1,[]),void 0,void 0)(r)))]),n)));return T.Bind(s,i=>{const o=i;if(o.tag===1)return T.Return(new m(1,[o.fields[0]]));{let a;const l=o.fields[0];return a=l.statusCode===200?en(ne(tn(K_(),new He(1,[]))),l.responseText):new m(1,["Unexpected response from backend"]),T.Return(a)}})})}function Mv(e,t){return T.Delay(()=>{let n,r;const s=$s(e,(n=Kt(new Lt(1,[]),Xt(`${e.backendUrl}/one-time-code/validate`)),pn(new Zt(1,[(r=new b0(t),$n(0,gn(Q_(),new He(1,[]),void 0,void 0)(r)))]),n)));return T.Bind(s,i=>{const o=i;if(o.tag===1)return T.Return(new m(1,[o.fields[0]]));{let a;const l=o.fields[0];return a=l.statusCode===200?en(ne(tn(r2(),new He(1,[]))),l.responseText):new m(1,["Unexpected response from backend"]),T.Return(a)}})})}function Ov(e,t){return T.Delay(()=>{let n,r;const s=$s(e,(n=Kt(new Lt(1,[]),Xt(`${e.backendUrl}/progress`)),pn(new Zt(1,[(r=new C0(e.magicLink.MagicCode,t),$n(0,gn(s2(),new He(1,[]),void 0,void 0)(r)))]),n)));return T.Bind(s,i=>{const o=i;if(o.tag===1)return T.Return(new m(1,[o.fields[0]]));{let a;const l=o.fields[0];return a=l.statusCode===200?en(ne(tn(l2(),new He(1,[]))),l.responseText):new m(1,["Unexpected response from backend"]),T.Return(a)}})})}function $s(e,t){return T.Delay(()=>{let n;const r=hs(t);return n=T.Bind(r,s=>T.Return(new m(0,[s]))),T.Bind(n,s=>{const i=s;if(i.tag===1)return T.Return(new m(1,[i.fields[0]]));{const o=i.fields[0];if(o.statusCode===429||o.statusCode>=500){let a;const l=mi(2e3);return a=T.Bind(l,u=>T.Return(new m(0,[u]))),T.Bind(a,u=>{const f=u;if(f.tag===1)return T.Return(new m(1,[f.fields[0]]));{const c=hs(t);return T.Bind(c,p=>T.Return(new m(0,[p])))}})}else return T.Return(new m(0,[o]))}})})}class Dv extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AuthCode"]}}function ll(e){return new Dv(e)}function Nv(e){return e.fields[0]}class ch extends B{constructor(t,n,r,s,i,o){super(),this.id_token=t,this.access_token=n,this.expires_in=r,this.refresh_token=s,this.scope=i,this.token_type=o}}function ul(){return ue("Workflows.UI.Auth.Types.Credentials",[],ch,()=>[["id_token",H],["access_token",H],["expires_in",Dm],["refresh_token",X(H)],["scope",H],["token_type",H]])}let jn=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SignIn","SignInWithCurrentAuth","NavigateToOnboarding"]}};function Rv(){return[new el(ce(),new G(0,[]),void 0,new g0(0,[new w0(void 0)])),E(e=>{e(new U(1,[new Ce(0,[])]))})]}function Lv(e,t,n,r,s){let i,o,a,l,u,f,c;const p=Av(e);switch(r.tag){case 1:if(r.fields[0].tag===1){if(r.fields[0].fields[0].tag===1)return[s,E(h=>{h(new U(0,[new G(6,[new se(5,[])])]))})];{let h;const $=r.fields[0].fields[0].fields[0].Outcome;switch($.tag){case 1:{const g=$.fields[0],w=g.OneTimeCodeOptionAvailable;h=g.IsInitialMagicLinkUsed?w?new U(0,[new G(1,[g.FirstName,new Qa(1,[])])]):new U(0,[new G(1,[g.FirstName,new Qa(0,[])])]):w?new U(3,[!1,new Ce(0,[])]):new U(0,[new G(4,[])]);break}case 4:{h=new U(0,[new G(5,[])]);break}case 2:case 7:{h=new U(0,[new G(6,[new se(2,[])])]);break}case 3:{h=new U(0,[new G(6,[new se(4,[])])]);break}case 5:{h=new U(0,[new G(6,[new se(3,[])])]);break}case 6:{h=new U(0,[new G(6,[new se(1,[])])]);break}default:{const g=$.fields[0];g.IsInitialMagicLinkUsed?(n(ll(g.AuthCode)),h=new U(0,[new G(1,[g.FirstName,new Qa(2,[])])])):h=new U(6,[g.AuthCode])}}return[new el(r.fields[0].fields[0].fields[0].CssOverrides,s.Page,V_(r.fields[0].fields[0].fields[0].Outcome),Ee(F_(r.fields[0].fields[0].fields[0].Outcome),s.JourneyType)),E(g=>{g(h)})]}}else return[s,St(h=>{ze(h)},()=>Ev(p),void 0,h=>new U(1,[new Ce(1,[h])]),h=>new U(1,[new Ce(1,[new m(1,[h.message])])]))];case 2:return r.fields[1].tag===1?r.fields[1].fields[0].tag===1?[s,E(h=>{h(new U(0,[new G(6,[new se(5,[])])]))})]:[s,(i=new U(0,[(o=r.fields[1].fields[0].fields[0].Outcome,o.tag===2?new G(2,[o.fields[0].MaskedEmail]):o.tag===1?new G(6,[new se(2,[])]):o.tag===5?new G(6,[new se(2,[])]):o.tag===3?new G(6,[new se(4,[])]):o.tag===4?new G(6,[new se(1,[])]):o.tag===6?new G(5,[]):o.tag===7?new G(6,[new se(3,[])]):new G(2,[o.fields[0].MaskedEmail]))]),E(h=>{h(i)}))]:[s,St(h=>{ze(h)},h=>Tv(p,h),r.fields[0],h=>new U(2,[r.fields[0],new Ce(1,[h])]),h=>new U(2,[r.fields[0],new Ce(1,[new m(1,[h.message])])]))];case 3:return r.fields[1].tag===1?r.fields[1].fields[0].tag===1?[s,E(h=>{h(new U(0,[new G(6,[new se(5,[])])]))})]:[s,(a=new U(0,[(l=r.fields[1].fields[0].fields[0].Outcome,l.tag===1?new G(4,[]):l.tag===2?new G(6,[new se(0,[])]):l.tag===3?r.fields[0]?s.Page:new G(3,[l.fields[0].MaskedPhone]):l.tag===4?new G(6,[new se(2,[])]):l.tag===7?new G(6,[new se(2,[])]):l.tag===5?new G(6,[new se(4,[])]):l.tag===6?new G(6,[new se(1,[])]):l.tag===8?new G(5,[]):l.tag===9?new G(6,[new se(3,[])]):r.fields[0]?s.Page:new G(3,[l.fields[0].MaskedPhone]))]),E(h=>{h(a)}))]:[s,St(h=>{ze(h)},h=>Pv(p,h),r.fields[0],h=>new U(3,[r.fields[0],new Ce(1,[h])]),h=>new U(3,[r.fields[0],new Ce(1,[new m(1,[h.message])])]))];case 4:return r.fields[2].tag===1?r.fields[2].fields[0].tag===1?[s,E(h=>{h(new U(0,[new G(6,[new se(5,[])])]))})]:[s,(u=r.fields[2].fields[0].fields[0].Outcome,u.tag===1?u.fields[0].RemainingAttempts>0?(r.fields[1]({AttemptsRemaining:u.fields[0].RemainingAttempts}),Z()):E(h=>{h(new U(0,[new G(6,[new se(0,[])])]))}):u.tag===5?E(h=>{h(new U(0,[new G(6,[new se(0,[])])]))}):u.tag===2?(r.fields[1]({}),Z()):u.tag===3?(r.fields[1]({}),Z()):u.tag===4?(r.fields[1]({}),Z()):u.tag===6?E(h=>{h(new U(0,[new G(6,[new se(4,[])])]))}):u.tag===7?E(h=>{h(new U(0,[new G(6,[new se(1,[])])]))}):u.tag===8?E(h=>{h(new U(0,[new G(6,[new se(2,[])])]))}):u.tag===9?E(h=>{h(new U(0,[new G(5,[])]))}):u.tag===10?E(h=>{h(new U(0,[new G(6,[new se(0,[])])]))}):E(h=>{h(new U(6,[u.fields[0].AuthCode]))}))]:[s,St(h=>{ze(h)},h=>Mv(p,h),r.fields[0],h=>new U(4,[r.fields[0],r.fields[1],new Ce(1,[h])]),h=>new U(4,[r.fields[0],r.fields[1],new Ce(1,[new m(1,[h.message])])]))];case 5:return r.fields[1].tag===1?r.fields[1].fields[0].tag===1?[s,E(h=>{h(new U(0,[new G(6,[new se(5,[])])]))})]:[s,(f=(c=r.fields[1].fields[0].fields[0].Outcome,c.tag===1?new U(0,[new G(6,[new se(2,[])])]):c.tag===4?new U(0,[new G(6,[new se(2,[])])]):c.tag===2?new U(0,[new G(6,[new se(4,[])])]):c.tag===3?new U(0,[new G(6,[new se(1,[])])]):c.tag===5?new U(0,[new G(5,[])]):c.tag===6?new U(0,[new G(6,[new se(0,[])])]):r.fields[0].tag===1?new U(3,[!1,new Ce(0,[])]):r.fields[0].tag===2?new U(6,[void 0]):new U(2,[!1,new Ce(0,[])])),E(h=>{h(f)}))]:[s,St(h=>{ze(h)},h=>Ov(p,h),r.fields[0].tag===1?!1:r.fields[0].tag===2,h=>new U(5,[r.fields[0],new Ce(1,[h])]),h=>new U(5,[r.fields[0],new Ce(1,[new m(1,[h.message])])]))];case 6:return t(Le(ll,r.fields[0])),[s,Z()];default:return[new el(s.CssOverrides,r.fields[0],s.Branding,s.JourneyType),Z()]}}function Bv(e,t,n,r){const s=si(!1),i=Le(l=>d("span",{className:"font-semibold",children:`${l}`}),an(l=>l.CompanyName,t)),o=n.tag===1?`Hi, ${e}`:n.tag===2?`${e}, join your workplace benefits program`:`Welcome, ${e}`,a=$e(A(()=>{let l,u;return V((l=n,l.tag===1?_(_c([])):l.tag===2?_(d("div",C(y([["className","sm:w-[700px]"],(u=[d("img",{src:"/workflows/app/app-invite/welcome.png"})],["children",b.Children.toArray(Array.from(u))])])))):_(_c([]))),A(()=>V(_(An(o)),A(()=>{let f;return V(_(d("div",C(y([["className","text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4 mb-8 sm:mb-14"],(f=$e(A(()=>{let c;return n.tag===1?V(_(Ee(i,d("span",{children:["Your employer"]}))),A(()=>V(_(d("span",{children:[" has requested additional information from you."]})),A(()=>_(d("p",{children:["Sign in to complete your information request."]})))))):n.tag===2?_((c="Your employer has partnered with Flare Benefits to give you exclusive access to savings and perks from Australia’s most-loved brands, plus special offers to help you save on bigger expenses like household utilities, health insurance and more.",d("p",{children:[c]}))):V(_(d("p",{children:["Congratulations on the new role!"]})),A(()=>{let p;return _((p=y([d("span",{children:["Sign in to complete your onboarding with "]}),Ee(i,d("span",{children:["your employer"]})),d("span",{children:["."]})]),d("p",{children:b.Children.toArray(Array.from(p))})))}))})),["children",b.Children.toArray(Array.from(f))])])))),A(()=>_(zo(void 0,()=>{s[1](!0),r()},s[0],[d("span",{children:[n.tag===1?"Sign in":n.tag===2?"Continue":"Sign in"]})]))))}))))}));return d(Pe,{},...a)}function Vv(e,t){let n,r,s,i;const o=[cp([]),An("Check your inbox"),d("div",C(y([(n="text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4",["className",n]),(r=[(s=y([d("span",{children:["We’ve sent a temporary access link to "]}),d("span",{className:"font-semibold",children:lc(e,"*","•")}),d("span",{children:["."]})]),d("p",{children:b.Children.toArray(Array.from(s))})),d("p",{children:["Click the link to confirm your email address and sign in. The link is valid for 5 minutes."]})],["children",b.Children.toArray(Array.from(r))])]))),d("div",C(y([["className","text-sm text-gray-900 whitespace-pre-wrap mt-10 sm:mt-14 space-y-4 leading-5"],(i=$e(A(()=>V(_(d("p",{children:["Can’t see the email? Check your spam folder."]})),A(()=>{const a=t;return a==null?_(te()):_(ni(a))})))),["children",b.Children.toArray(Array.from(i))])])))];return d(Pe,{},...o)}let nn=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ResendTimerTick","SignIn","IncorrectOneTimeCodeCallback","SetCodeInvalid","SetCodeInputValue","SetReissueLinkInProgress"]}},Un=class extends B{constructor(t,n,r,s,i,o){super(),this.AttemptsRemaining=t,this.CodeInvalid=n,this.CodeInputValue=r,this.ResendTimer=s,this.SignInInProgress=i,this.ReissueLinkInProgress=o}};function Fv(){return[new Un(void 0,!1,"",void 0,!1,!1),Z()]}function Wv(e,t,n){let r;switch(t.tag){case 1:{const s=Mo(Ko,n.CodeInputValue);return s.length===6?(e([Uo(s,511,!1,32),t.fields[0]]),[new Un(n.AttemptsRemaining,n.CodeInvalid,n.CodeInputValue,n.ResendTimer,!0,n.ReissueLinkInProgress),Z()]):[n,E(i=>{i(new nn(3,[!0]))})]}case 2:return[new Un(t.fields[0],n.CodeInvalid,n.CodeInputValue,n.ResendTimer,n.SignInInProgress,n.ReissueLinkInProgress),E(s=>{s(new nn(3,[!0]))})];case 3:{const s=t.fields[0];return[new Un(n.AttemptsRemaining,s,s?"":n.CodeInputValue,n.ResendTimer,!1,n.ReissueLinkInProgress),Z()]}case 4:return[new Un(n.AttemptsRemaining,n.CodeInvalid,t.fields[0],n.ResendTimer,n.SignInInProgress,n.ReissueLinkInProgress),Z()];case 5:return[new Un(n.AttemptsRemaining,n.CodeInvalid,n.CodeInputValue,n.ResendTimer,n.SignInInProgress,!0),Z()];default:{const s=Pi(a=>{ze(a)},()=>T.Delay(()=>T.Bind(mi(1e3),()=>T.Return(void 0))),void 0,()=>new nn(0,[]));let i;const o=n.ResendTimer;return i=o!=null?o>0?(r=o|0,[r-1,s]):[void 0,Z()]:[20,s],[new Un(n.AttemptsRemaining,n.CodeInvalid,n.CodeInputValue,i[0],n.SignInInProgress,n.ReissueLinkInProgress),i[1]]}}}function Wi(e){e.target.id==="one-time-code-input"||e.key!=="Enter"&&document.getElementById("one-time-code-input").focus()}function jv(){document.addEventListener("keypress",e=>{Wi(e)}),document.addEventListener("paste",e=>{Wi(e)})}const Uv={Dispose(){document.removeEventListener("keypress",e=>{Wi(e)}),document.removeEventListener("paste",e=>{Wi(e)})}};function zv(e){const t=e.reissueLink,n=e.reissueOneTimeCode,r=e.validateOneTimeCode,s=e.maskedPhone,i=Xa(()=>Mi(Fv,(f,c)=>Wv(r,f,c),(f,c)=>{}),void 0,void 0),o=i[0],a=i[1];Ho(()=>(jv(),Uv),new Array(0));const l=()=>{a(new nn(1,[f=>{a(new nn(2,[f.AttemptsRemaining]))}]))},u=$e(A(()=>V(_(up([])),A(()=>V(_(An("Enter your security code")),A(()=>{let f,c,p;return V(_(d("div",C(y([(f="text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4",["className",f]),(c=[(p=y([d("span",{children:["We’ve sent a security code to your mobile number ending in •••"]}),d("span",{className:"font-semibold",children:Mo(Ko,s)}),d("span",{children:["."]})]),d("p",{children:b.Children.toArray(Array.from(p))})),d("p",{children:["Enter your code to sign in."]})],["children",b.Children.toArray(Array.from(c))])])))),A(()=>{let h;return V(_(d("div",C(y([["className","mt-8 flex relative"],(h=$e(A(()=>{let $;return V(_(d("input",C(y([["className","absolute w-full h-full peer z-10 opacity-0"],["id","one-time-code-input"],["type","text"],["autoComplete","one-time-code"],["maxLength",6],["onClick",g=>{const w=g.target;w.selectionStart=o.CodeInputValue.length|0,w.selectionEnd=o.CodeInputValue.length|0,a(new nn(3,[!1]))}],["onChange",g=>{const w=Mo(Ko,g.target.value);a(new nn(4,[w])),w.length===6&&l()}],($=o.CodeInputValue,["ref",g=>{g!=null&&!O(g.value,$)&&(g.value=$)}])])))),A(()=>yc(g=>{const w=Le(S=>S,fc(g,o.CodeInputValue.split(""))),v=Le(S=>S,fc(g-1,o.CodeInputValue.split("")));return _(d("div",{key:g,className:_e(" ",$e(A(()=>V(_("flex justify-center items-center text-xl w-10 h-12 rounded-md ring-inset ring-1 transition ease-in"),A(()=>V(o.CodeInvalid?_("ring-red-600"):_("ring-gray-400"),A(()=>V(_(g===2?"mr-4":g===5?"":"mr-2"),A(()=>w!=null||v!=null||g===0?_("peer-focus:ring-2 peer-focus:ring-primary-base"):ur()))))))))),children:Ee(w,"")}))},a0(0,1,5))))})),["children",b.Children.toArray(Array.from(h))])])))),A(()=>{let $;return V(o.CodeInvalid?_(d("p",C(y([["className","w-[288px] text-red-600 mt-2 leading-5"],($=$e(A(()=>V(_("The code you entered is invalid"),A(()=>{let g;return V((g=o.AttemptsRemaining,g==null?_(te()):_(`, you have ${g} attempts remaining`)),A(()=>V(_("."),A(()=>o.AttemptsRemaining==null?_(" Try again or click on the link below to resend the code."):_(te())))))})))),["children",b.Children.toArray(Array.from($))])])))):ur(),A(()=>V(_(zo("sm:w-[288px] mt-6",l,o.SignInInProgress,[d("span",{children:["Continue"]})])),A(()=>{let g;return _(d("div",C(y([["className","mt-8 sm:mt-14 text-sm text-gray-900 whitespace-pre-wrap leading-5 space-y-4"],(g=$e(A(()=>{let w,v;return V((w=o.ResendTimer,w!=null?_(d("p",{children:[`Message sent. Wait ${w} seconds before trying again.`]})):_((v=y([d("span",{children:["Didn’t get the code? "]}),d("span",{className:"text-primary-base underline underline-offset-3 cursor-pointer",onClick:S=>{n(),a(new nn(0,[]))},children:"Resend message"}),d("span",{children:["."]})]),d("p",{children:b.Children.toArray(Array.from(v))})))),A(()=>{let S;return _((S=y([d("span",{children:["Still having trouble? "]}),d("span",{className:"text-primary-base underline underline-offset-3 cursor-pointer",onClick:N=>{o.ReissueLinkInProgress||(a(new nn(5,[])),t())},children:"Sign in with email instead"}),d("span",{children:["."]})]),d("p",{children:b.Children.toArray(Array.from(S))})))}))})),["children",b.Children.toArray(Array.from(g))])]))))}))))}))}))}))))));return d(Pe,{},...u)}function Hv(e){const t=e.reissueLink,n=e.brandingOption,r=si(!1),s=$e(A(()=>V(_(fp([])),A(()=>V(_(An("Access link timed-out")),A(()=>{let i,o;return V(_(d("div",C(y([(i="text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4",["className",i]),(o=[d("p",{children:["Your 5-minute temporary access link has timed-out."]}),d("p",{children:["Get a new link to continue."]})],["children",b.Children.toArray(Array.from(o))])])))),A(()=>V(_(zo("mt-8 mb-8 sm:mb-14",()=>{r[1](!0),t()},r[0],[d("span",{children:["Get a new link"]})])),A(()=>{const a=n;return a==null?_(te()):_(ni(a))}))))}))))));return d(Pe,{},...s)}function cl(e,t){const n=Ee(an(s=>s.CompanyName,e),"your employer"),r=$e(A(()=>V(_(vc([])),A(()=>V(_(An("You’re all done")),A(()=>{let s;return V(_(d("div",C(y([["className","text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4 mb-8 sm:mb-14"],(s=[d("p",{children:[`Your ${t} is now complete and your pay information has now been submitted to ${n}.`]}),d("p",{children:["You can now close this window."]})],["children",b.Children.toArray(Array.from(s))])])))),A(()=>{const i=e;return i==null?_(te()):_(ni(i))}))}))))));return d(Pe,{},...r)}function fh(){let e,t,n,r,s,i,o,a,l;return d("div",C(y([["className","flex lg:min-w-[1024px] xl:min-w-[1280px] max-w-screen-xl justify-center"],(e=[d("div",C(y([["className","flex flex-col justify-center items-center"],(t=[vc([]),An("You’re all set!"),d("div",C(y([["className","text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4 mb-8 sm:mb-14"],(n=[d("p",{children:["Access your exclusive benefits by downloading the Flare app."]}),d("div",C(y([["className","hidden lg:flex justify-center lg:py-8"],(r=[d("img",{className:"h-40",src:"/workflows/app/app-invite/qr.png"})],["children",b.Children.toArray(Array.from(r))])]))),d("div",C(y([["className","flex items-center justify-center lg:hidden"],(s=[d("img",{className:"w-[280px]",src:"/workflows/app/app-invite/completed.png"})],["children",b.Children.toArray(Array.from(s))])]))),d("p",C(y([["className","font-semibold pt-5 lg:pt-0"],(i=[d("span",{className:"lg:hidden",children:"Download the Flare App"}),d("span",{className:"hidden lg:block",children:"Scan to download"})],["children",b.Children.toArray(Array.from(i))])]))),d("p",{children:"Available on iOS and Android"})],["children",b.Children.toArray(Array.from(n))])]))),d("div",C(y([["className","flex space-x-6"],(o=[d("a",C(y([["href","https://apps.apple.com/us/app/flare/id1587276031"],["target","_blank"],["rel","noreferrer"],(a=[d("img",{className:"h-10 cursor-pointer",src:"/workflows/app/app-invite/app-store.png"})],["children",b.Children.toArray(Array.from(a))])]))),d("a",C(y([["href","https://play.google.com/store/apps/details?id=com.flarehr.payandbenefits"],["target","_blank"],["rel","noreferrer"],(l=[d("img",{className:"h-10 cursor-pointer",src:"/workflows/app/app-invite/google-play.png"})],["children",b.Children.toArray(Array.from(l))])])))],["children",b.Children.toArray(Array.from(o))])])))],["children",b.Children.toArray(Array.from(t))])]))),d("img",{className:"hidden lg:block w-[640px]",src:"/workflows/app/app-invite/completed.png"})],["children",b.Children.toArray(Array.from(e))])])))}function Gv(e){switch(e.tag){case 1:return"information request";case 2:return"workflow";default:return"onboarding"}}function qv(e){const t=e.startAuthCodeExchangeBackground,n=e.navigateAuthCodeExchangePage,r=e.magicLink,s=Xa(()=>Mi(Rv,(l,u)=>Lv(r,n,t,l,u),(l,u)=>{}),void 0,void 0),i=s[0],o=s[1],a=$e(A(()=>V(ke(l=>d("style",{children:[l]}),i.CssOverrides),A(()=>{const l=i.Page;switch(l.tag){case 1:return _(Bv(l.fields[0],i.Branding,i.JourneyType,()=>{o(new U(5,[l.fields[1],new Ce(0,[])]))}));case 2:return _(Vv(l.fields[0],i.Branding));case 3:return _(d(zv,{maskedPhone:l.fields[0],validateOneTimeCode:u=>{o(new U(4,[u[0],u[1],new Ce(0,[])]))},reissueOneTimeCode:()=>{o(new U(3,[!0,new Ce(0,[])]))},reissueLink:()=>{o(new U(2,[!0,new Ce(0,[])]))}}));case 4:return _(d(Hv,{brandingOption:zs(i.Branding),reissueLink:()=>{o(new U(2,[!1,new Ce(0,[])]))}}));case 5:switch(i.JourneyType.tag){case 2:return _(fh());default:return _(cl(i.Branding,Gv(i.JourneyType)))}case 6:return l.fields[0].tag===1?_(Rp()):l.fields[0].tag===0?_(d(Np,{reissueMagicLink:()=>{o(new U(2,[!0,new Ce(0,[])]))}})):l.fields[0].tag===5?_(oi()):l.fields[0].tag===2?_(xc(i.Branding)):l.fields[0].tag===3?_(Lp(i.Branding)):_(Bp(i.Branding));default:return _(_p)}}))));return d(Pe,{},...a)}function Yv(e){let t,n,r;const s=e.startAuthCodeExchangeBackground,i=e.navigateAuthCodeExchangePage,o=e.inviteCode;return dr(()=>{Ht(0)}),d("div",C(y([(t="min-h-full flex flex-col items-center justify-between w-full mx-auto text-center pt-8 sm:pt-20 pb-6 sm:pb-8 px-4 bg-white",["className",t]),(n=[d("div",C(y([["className","flex flex-col items-center justify-center sm:max-w-[640px]"],(r=$e(A(()=>{const a=c2(o);return a.tag===0?_(d(qv,{magicLink:a.fields[0],navigateAuthCodeExchangePage:i,startAuthCodeExchangeBackground:s})):_(xc(void 0))})),["children",b.Children.toArray(Array.from(r))])]))),Jo],["children",b.Children.toArray(Array.from(n))])])))}class W extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Home","LegacyInvite","InviteV2","AuthCodeExchange","AuthCodeExchangeWithCurrentAuth","NotFound","LoggedOut"]}}function Jv(e){let t,n,r;if(M(e))t=2;else if(k(e)==="workflows")if(M(P(e)))t=2;else switch(k(P(e))){case"app":{t=0,n=P(P(e));break}case"embed":{M(P(P(e)))?t=2:k(P(P(e)))==="v1.0"?(t=1,r=P(P(P(e)))):t=2;break}default:t=2}else t=2;switch(t){case 0:return new aa(1,[n]);case 1:return new aa(0,[r]);default:return new aa(2,[void 0])}}function Zv(e){const t=mn(e);if(t!=null)return Le(r=>r[1],Zr(r=>r[0]==="code",t))}function dh(e){let t,n,r,s,i,o,a;const l=Jv(e);switch(l.tag){case 1:return[M(l.fields[0])?M(l.fields[0])?new W(0,[]):(s=mn(k(l.fields[0])),s!=null?M(s)?new W(0,[]):k(s)[0]==="invite-code"?M(P(s))?M(P(l.fields[0]))?(i=k(s)[1],new W(2,[i])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):(t=mn(k(l.fields[0])),t!=null?M(t)?M(l.fields[0])?new W(0,[]):(s=mn(k(l.fields[0])),s!=null?M(s)?new W(0,[]):k(s)[0]==="invite-code"?M(P(s))?M(P(l.fields[0]))?(i=k(s)[1],new W(2,[i])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):k(t)[0]==="invite"?M(P(t))?M(P(l.fields[0]))?(n=k(t)[1],r=Bc(n),r.tag===1?new W(5,[]):new W(1,[])):M(l.fields[0])?new W(0,[]):(s=mn(k(l.fields[0])),s!=null?M(s)?new W(0,[]):k(s)[0]==="invite-code"?M(P(s))?M(P(l.fields[0]))?(i=k(s)[1],new W(2,[i])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):M(l.fields[0])?new W(0,[]):(s=mn(k(l.fields[0])),s!=null?M(s)?new W(0,[]):k(s)[0]==="invite-code"?M(P(s))?M(P(l.fields[0]))?(i=k(s)[1],new W(2,[i])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):M(l.fields[0])?new W(0,[]):(s=mn(k(l.fields[0])),s!=null?M(s)?new W(0,[]):k(s)[0]==="invite-code"?M(P(s))?M(P(l.fields[0]))?(i=k(s)[1],new W(2,[i])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):M(l.fields[0])?new W(0,[]):(s=mn(k(l.fields[0])),s!=null?M(s)?new W(0,[]):k(s)[0]==="invite-code"?M(P(s))?M(P(l.fields[0]))?(i=k(s)[1],new W(2,[i])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[]))),new Ir(1,[])];case 2:return[new W(5,[]),new Ir(2,[])];default:return[M(l.fields[0])?new W(0,[]):M(P(l.fields[0]))?new W(0,[]):(o=Zv(k(P(l.fields[0]))),o!=null?M(P(P(l.fields[0])))?(a=o,new W(3,[ll(a)])):new W(0,[]):new W(0,[])),new Ir(0,[])]}}let zn=class extends B{constructor(t,n,r){super(),this.CurrentPage=t,this.Credentials=n,this.AppMode=r}},wn=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UrlChanged","NavigateAuthCodeExchangePage","NavigateAuthCodeExchangePageWithCurrentAuth","AuthMsg","StartAuthCodeExchangeBackground","DisplayLoggedOut"]}};function Xv(){let e;return dr(()=>{Ht(0)}),d("div",C(y([["className","w-full sm:max-w-md mt-5 mx-1 text-center mx-auto"],(e=[d("h4",{className:"text-2xl",children:"You have been logged out of your onboarding due to inactivity"}),d("br",{}),d("p",{children:["To continue your onboarding, please find your onboarding invite email and click the link again."]})],["children",b.Children.toArray(Array.from(e))])])))}class gs extends Error{}gs.prototype.name="InvalidTokenError";function Kv(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function Qv(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Kv(t)}catch{return atob(t)}}function eb(e,t){if(typeof e!="string")throw new gs("Invalid token specified: must be a string");t||(t={});const n=t.header===!0?0:1,r=e.split(".")[n];if(typeof r!="string")throw new gs(`Invalid token specified: missing part #${n+1}`);let s;try{s=Qv(r)}catch(i){throw new gs(`Invalid token specified: invalid base64 for part #${n+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new gs(`Invalid token specified: invalid json for part #${n+1} (${i.message})`)}}function tb(e,t,n){e:for(;;){const r=e,s=t,i=n;if(M(i)){const o=r;return o.tag===1?new m(1,[o.fields[0]]):new m(0,[ar(o.fields[0])])}else{let o;const a=s(k(i));if(a.tag===1)o=new m(1,[a.fields[0]]);else{const l=r;o=l.tag===1?new m(1,[l.fields[0]]):new m(0,[Ke(a.fields[0],l.fields[0])])}if(o.tag===1)return o;e=o,t=s,n=P(i);continue e}}}function nb(e,t){return tb(new m(0,[ce()]),e,t)}function Tr(e){return nb(t=>t,e)}class rb extends B{constructor(t,n,r){super(),this.CompanyName=t,this.Logo=n,this.Support=r}}function sb(){return ue("Workflows.Business.Aggregates.CommonDto.InviteBrandingDto",[],rb,()=>[["CompanyName",X(H)],["Logo",X(H)],["Support",X(ob())]])}class ib extends B{constructor(t,n){super(),this.Email=t,this.Phone=n}}function ob(){return ue("Workflows.Business.Aggregates.CommonDto.SupportDto",[],ib,()=>[["Email",X(H)],["Phone",X(H)]])}function ab(e){let t;const n=e.Email;if(n!=null){const r=Wc(n);t=r.tag===1?new m(1,[r.fields[0]]):new m(0,[r.fields[0]])}else t=new m(0,[void 0]);if(t.tag===1)return new m(1,[t.fields[0]]);{let r;const s=e.Phone;if(s!=null){const i=jc(s);r=i.tag===1?new m(1,[i.fields[0]]):new m(0,[i.fields[0]])}else r=new m(0,[void 0]);return r.tag===1?new m(1,[r.fields[0]]):new m(0,[new Fc(t.fields[0],r.fields[0])])}}function lb(e){let t;const n=e.Logo;if(n!=null){const r=zc(n);t=r.tag===1?new m(1,[r.fields[0]]):new m(0,[r.fields[0]])}else t=new m(0,[void 0]);if(t.tag===1)return new m(1,[t.fields[0]]);{let r;const s=e.CompanyName;if(s!=null){const i=Uc(s);r=i.tag===1?new m(1,[i.fields[0]]):new m(0,[i.fields[0]])}else r=new m(0,[void 0]);if(r.tag===1)return new m(1,[r.fields[0]]);{let i;const o=e.Support;if(o!=null){const a=ab(o);i=a.tag===1?new m(1,[a.fields[0]]):new m(0,[a.fields[0]])}else i=new m(0,[void 0]);return i.tag===1?new m(1,[i.fields[0]]):new m(0,[new Vc(r.fields[0],t.fields[0],i.fields[0])])}}}class ub extends B{constructor(t,n,r,s){super(),this.Code=t,this.DateIssued=n,this.NumberOfAttempts=r|0,this.DateOfLastAttempt=s}}function cb(){return ue("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.SecondFactorDto",[],ub,()=>[["Code",H],["DateIssued",Ut("System.DateTime")],["NumberOfAttempts",Us],["DateOfLastAttempt",X(Ut("System.DateTime"))]])}function fb(e){return new $$(p$(e.Code),e.DateIssued,e.NumberOfAttempts,e.DateOfLastAttempt)}class db extends B{constructor(t,n,r,s){super(),this.Code=t,this.DateIssued=n,this.SecondFactor=r,this.Branding=s}}function hb(){return ue("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.InviteDto",[],db,()=>[["Code",H],["DateIssued",Ut("System.DateTime")],["SecondFactor",X(cb())],["Branding",X(sb())]])}function mb(e){const t=Bc(e.Code);if(t.tag===1)return new m(1,[t.fields[0]]);{let n;const r=e.SecondFactor;n=r==null?void 0:fb(r);let s;const i=e.Branding;if(i!=null){const o=lb(i);s=o.tag===1?new m(1,[o.fields[0]]):new m(0,[o.fields[0]])}else s=new m(0,[void 0]);return s.tag===1?new m(1,[s.fields[0]]):new m(0,[new g$(t.fields[0],e.DateIssued,n,s.fields[0])])}}class pb extends B{constructor(t,n,r){super(),this.Id=t,this.DisplayName=n,this.ComponentTagName=r}}function $b(){return ue("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessStepConfigDto",[],pb,()=>[["Id",H],["DisplayName",H],["ComponentTagName",H]])}function gb(e){return new m(0,[new Ot(Hc(e.Id),e.DisplayName,e.ComponentTagName)])}function wb(e){return Tr(Qe(gb,e))}class yb extends B{constructor(t,n){super(),this.ActivatedDates=t,this.CompletedSteps=n}}function _b(){return ue("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ActiveProcessInstanceDto",[],yb,()=>[["ActivatedDates",on(Ut("System.DateTime"))],["CompletedSteps",on(Mm(H,Ut("System.DateTime")))]])}function vb(e){const t=Tr(Qe(n=>new m(0,[[Hc(n[0]),n[1]]]),e.CompletedSteps));return t.tag===1?new m(1,[t.fields[0]]):new m(0,[new uf(e.ActivatedDates,t.fields[0])])}class bb extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Inactive","Active","Complete","Abandoned"]}}function Cb(){return $t("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessInstanceStatusDto",[],bb,()=>[[],[["Item",_b()]],[["Item",Ut("System.DateTime")]],[["Item",Ut("System.DateTime")]]])}function Sb(e){switch(e.tag){case 1:{const t=vb(e.fields[0]);return t.tag===1?new m(1,[t.fields[0]]):new m(0,[new ns(1,[t.fields[0]])])}case 2:return new m(0,[new ns(2,[e.fields[0]])]);case 3:return new m(0,[new ns(3,[e.fields[0]])]);default:return new m(0,[new ns(0,[])])}}class kb extends B{constructor(t,n,r){super(),this.Id=t,this.Name=n,this.Steps=r}}function xb(){return ue("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessConfigDto",[],kb,()=>[["Id",Ut("System.Guid")],["Name",H],["Steps",on($b())]])}function Ib(e){const t=wb(e.Steps);if(t.tag===1)return new m(1,[t.fields[0]]);{const n=v$(e.Id);return n.tag===1?new m(1,[n.fields[0]]):new m(0,[new Re(n.fields[0],e.Name,t.fields[0])])}}class Ab extends B{constructor(t,n){super(),this.Name=t,this.Value=n}}function Eb(){return ue("Workflows.Business.Aggregates.ProcessInstanceList.Dto.TagDto",[],Ab,()=>[["Name",H],["Value",H]])}function Tb(e){return A$(e.Name,e.Value)}class Pb extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WhenEnabled","Always"]}}function Mb(){return $t("Workflows.Business.Aggregates.ProcessInstanceList.Dto.BenefitsOnboardingShowOptionsDto",[],Pb,()=>[[],[]])}class Ob extends B{constructor(t){super(),this.BenefitsOnboarding=t}}function Db(){return ue("Workflows.Business.Aggregates.ProcessInstanceList.Dto.StepsConfigurationDto",[],Ob,()=>[["BenefitsOnboarding",X(Xe(["Show",Mb()]))]])}function Nb(e){let t,n;return new T$((t=e.BenefitsOnboarding,t==null?void 0:(n=t,{Show:n.Show.tag===1?new df(1,[]):new df(0,[])})))}class Rb extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","InfoRequest","AppInvite","BenefitsExisting","BenefitsOnboarding"]}}function Lb(){return $t("Workflows.Business.Aggregates.ProcessInstanceList.Dto.JourneyTypeDto",[],Rb,()=>[[["Item",ws()]],[["Item",ws()]],[["Item",ws()]],[["Item",ws()]],[["Item",ws()]]])}class Bb extends B{constructor(t){super(),this.Category=t}}function ws(){return ue("Workflows.Business.Aggregates.ProcessInstanceList.Dto.JourneyTypeDetailsDto",[],Bb,()=>[["Category",X(H)]])}function ys(e){return new ff(e.Category)}function Vb(e){if(e==null)return new mr(0,[new ff(void 0)]);switch(e.tag){case 1:{const t=e.fields[0];return new mr(1,[ys(t)])}case 2:{const t=e.fields[0];return new mr(2,[ys(t)])}case 3:{const t=e.fields[0];return new mr(3,[ys(t)])}case 4:{const t=e.fields[0];return new mr(4,[ys(t)])}default:{const t=e.fields[0];return new mr(0,[ys(t)])}}}class Fb extends B{constructor(t,n,r,s,i,o,a,l,u,f,c){super(),this.Id=t|0,this.DateCreated=n,this.Configuration=r,this.Status=s,this.Invite=i,this.Tags=o,this.Creator=a,this.StepsConfiguration=l,this.JourneyType=u,this.IsBenefitsStepEnabled=f,this.PaySetupComplete=c}}function hh(){return ue("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessInstanceDto",[],Fb,()=>[["Id",Us],["DateCreated",Ut("System.DateTime")],["Configuration",xb()],["Status",Cb()],["Invite",X(hb())],["Tags",X(on(Eb()))],["Creator",X(H)],["StepsConfiguration",X(Db())],["JourneyType",X(Lb())],["IsBenefitsStepEnabled",X(ct)],["PaySetupComplete",X(ct)]])}function mh(e){let t,n;const r=Ib(e.Configuration);if(r.tag===1)return new m(1,[r.fields[0]]);{const s=r.fields[0],i=Sb(e.Status);if(i.tag===1)return new m(1,[i.fields[0]]);{const o=i.fields[0];let a;if(o.tag===1){const l=o.fields[0],u=Tr(Qe(f=>{const c=[f[0],f[1]],p=c[0];return pc(h=>O(h.Id,p),s.Steps)?new m(0,[[p,c[1]]]):new m(1,["Step id is not configured for this Process Instance."])},l.CompletedSteps));a=u.tag===1?new m(1,[u.fields[0]]):new m(0,[new ns(1,[new uf(l.ActivatedDates,u.fields[0])])])}else a=new m(0,[o]);if(a.tag===1)return new m(1,[a.fields[0]]);{let l;const u=e.Invite;if(u!=null){const f=mb(u);l=f.tag===1?new m(1,[f.fields[0]]):new m(0,[f.fields[0]])}else l=new m(0,[void 0]);if(l.tag===1)return new m(1,[l.fields[0]]);{let f;const c=e.Tags;if(c!=null){const p=Tr(Qe(Tb,c));f=p.tag===1?new m(1,[p.fields[0]]):new m(0,[p.fields[0]])}else f=new m(0,[void 0]);return f.tag===1?new m(1,[f.fields[0]]):new m(0,[new E$(cf(e.Id),s,e.DateCreated,a.fields[0],l.fields[0],f.fields[0],(t=e.Creator,t==null?void 0:Rc(t)),(n=e.StepsConfiguration,n==null?void 0:Nb(n)),Vb(e.JourneyType),e.IsBenefitsStepEnabled,e.PaySetupComplete)])}}}}}class _s extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["CompleteStep","CompleteStepV2","Complete","ViewPaySetupPage","CompletePaySetup","ResumePaySetup"]}}class Wb extends B{constructor(t,n,r,s){super(),this.CssOverrides=t,this.ProcessInstance=n,this.IsBenefitsEnabled=r,this.Branding=s}}class Hn extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["CompleteStep","CompleteStepV2","Complete","ViewPaySetupPage","CompletePaySetup","ResumePaySetup"]}}function jb(){return $t("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.ProcessInstanceCommandDto",[],Hn,()=>[[["Item",H]],[["Item",H]],[],[["Item",ct]],[["Item",ct]],[["Item",ct]]])}function Ub(e){switch(e.tag){case 1:return new Hn(1,[ui(e.fields[0])]);case 2:return new Hn(2,[]);case 3:return new Hn(3,[e.fields[0]]);case 4:return new Hn(4,[e.fields[0]]);case 5:return new Hn(5,[e.fields[0]]);default:return new Hn(0,[ui(e.fields[0])])}}const zb=mh;class Hb extends B{constructor(t,n,r,s){super(),this.CssOverrides=t,this.ProcessInstanceDto=n,this.IsBenefitsEnabled=r,this.Branding=s}}function Gb(){return ue("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Read.ProcessInstanceContextDto",[],Hb,()=>[["CssOverrides",on(H)],["ProcessInstanceDto",hh()],["IsBenefitsEnabled",ct],["Branding",X(Yb())]])}class qb extends B{constructor(t,n,r){super(),this.CompanyName=t,this.Logo=n,this.Support=r}}function Yb(){return ue("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Read.Branding",[],qb,()=>[["CompanyName",X(H)],["Logo",X(H)],["Support",X(Zb())]])}class Jb extends B{constructor(t,n){super(),this.Email=t,this.Phone=n}}function Zb(){return ue("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Read.Support",[],Jb,()=>[["Email",X(H)],["Phone",X(H)]])}function Xb(e){let t,n,r,s,i,o,a,l,u,f,c,p,h,$,g,w,v,S;return new Vc((t=(n=(r=e.CompanyName,r==null?void 0:Uc(r)),n!=null?(s=n,s.tag===1?new m(1,[s.fields[0]]):new m(0,[s.fields[0]])):new m(0,[void 0])),t.tag===1?void 0:t.fields[0]),(i=(o=(a=e.Logo,a==null?void 0:zc(a)),o!=null?(l=o,l.tag===1?new m(1,[l.fields[0]]):new m(0,[l.fields[0]])):new m(0,[void 0])),i.tag===1?void 0:i.fields[0]),(u=e.Support,u==null?void 0:(f=u,new Fc((c=(p=(h=f.Email,h==null?void 0:Wc(h)),p!=null?($=p,$.tag===1?new m(1,[$.fields[0]]):new m(0,[$.fields[0]])):new m(0,[void 0])),c.tag===1?void 0:c.fields[0]),(g=(w=(v=f.Phone,v==null?void 0:jc(v)),w!=null?(S=w,S.tag===1?new m(1,[S.fields[0]]):new m(0,[S.fields[0]])):new m(0,[void 0])),g.tag===1?void 0:g.fields[0])))))}function Kb(e){let t,n;return new Wb(e.CssOverrides,(t=mh(e.ProcessInstanceDto),t.tag===1?(()=>{throw new Error(t.fields[0])})():t.fields[0]),e.IsBenefitsEnabled,(n=e.Branding,n==null?void 0:Xb(n)))}class ji extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WorkflowInstanceStepActivated","BenefitsStepActivated","BenefitsStepCompleted"]}}function Qb(){return $t("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Write.WorkflowAnalyticsEventDto",[],ji,()=>[[["Item",H]],[],[]])}class rn extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}class Se extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PersonalDetails","EmergencyContacts","Bank","Tax","Super","WorkplaceLinking","BenefitsOnboarding","WorkplacePolicies","DiscreteBenefits"]}}class vs extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Hidden","Incomplete","Complete"]}}function fl(e){return e?new vs(1,[]):new vs(0,[])}class oe extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Completed","Disabled","Active","Locked","CompletedAndDisabled"]}}function ph(e){return O(e,Ge)?new m(0,[new Se(0,[])]):O(e,ft)?new m(0,[new Se(1,[])]):O(e,dt)?new m(0,[new Se(2,[])]):O(e,ht)?new m(0,[new Se(3,[])]):O(e,De)?new m(0,[new Se(4,[])]):O(e,Tn)?new m(0,[new Se(5,[])]):O(e,zt)?new m(0,[new Se(7,[])]):O(e,Pn)?new m(0,[new Se(8,[])]):new m(1,["Invalid step"])}function eC(e){switch(e.tag){case 1:return ft;case 2:return dt;case 3:return ht;case 4:return De;case 5:return Tn;case 6:return li;case 7:return zt;case 8:return Pn;default:return Ge}}function $h(e){switch(e.tag){case 1:return"Emergency contacts";case 2:return"Bank details";case 3:return"Tax declaration";case 4:return"Super nomination";case 5:return Tn.DisplayName;case 6:return"Workplace benefits";case 7:return"Fair Work";case 8:return Pn.DisplayName;default:return"Employee profile"}}function gh(e){switch(e.tag){case 1:return"Contacts";case 2:return"Bank";case 3:return"Tax";case 4:return"Super";case 5:return Tn.DisplayName;case 6:return"Benefits";case 7:return"Fair Work";case 8:return Pn.DisplayName;default:return"Profile"}}function wh(e){switch(e.tag){case 1:return ft;case 2:return dt;case 3:return ht;case 4:return De;case 5:return Tn;case 6:return li;case 7:return zt;case 8:return Pn;default:return Ge}}function tC(e){switch(e.tag){case 5:case 6:case 8:return!1;default:return!0}}function nC(e,t){return e.tag===0?t:wt(t,E(new Se(6,[])))}class Pr extends B{constructor(t,n){super(),this.Id=t,this.Status=n}}function Gn(e){return $h(e.Id)}function rC(e){return gh(e.Id)}function sC(e){return wh(e.Id).ComponentTagName}function iC(e){return wh(e.Id).Id}function oC(e){return tC(e.Id)}function aC(e){if(e.Id.tag===0)return e}function lC(e){if(e.Id.tag===1)return e}function uC(e){return Zr(t=>O(t.Status,new oe(2,[])),e)}function cC(e){return((n,r)=>{e:for(;;){const s=n,i=r;if(M(s))return i;if(O(k(s).Status,new oe(2,[])))return No([i,E(k(s)),P(s)]);if(O(k(s).Status,new oe(1,[])))return No([i,E(new Pr(k(s).Id,new oe(2,[]))),P(s)]);n=P(s),r=wt(i,E(k(s)));continue e}})(e,ce())}function dl(e,t){const n=Ee(e.PaySetupComplete,!1);let r;const s=Tr(Qe(ph,e.Configuration.Steps));if(r=s.tag===1?new m(1,[s.fields[0]]):new m(0,[nC(t,s.fields[0])]),r.tag===1)return new m(1,[r.fields[0]]);{const i=Tr(Qe(ph,M$(e)));return i.tag===1?new m(1,[i.fields[0]]):new m(0,[cC(Qe(o=>n&&oC(o)&&O(o.Status,new oe(0,[]))?new Pr(o.Id,new oe(4,[])):o,Qe(o=>pc(a=>O(a,o.Id),i.fields[0])?new Pr(o.Id,new oe(0,[])):o,Qe(o=>O(o.Id,new Se(6,[]))&&!n?new Pr(o.Id,new oe(3,[])):o,Qe(o=>new Pr(o,new oe(1,[])),r.fields[0])))))])}}class yh extends B{constructor(t,n,r,s,i,o,a,l,u,f,c){super(),this.AppMode=t,this.JourneyType=n,this.Branding=r,this.IsBenefitsStepEnabled=s,this.IsPaySetupCompatible=i,this.IsPaySetupComplete=o,this.Status=a,this.ProcessInstanceId=l,this.InstanceName=u,this.ProcessConfigId=f,this.Steps=c}}function _h(e){switch(e.Status.tag){case 3:return!1;case 0:return!1;case 1:return Ee(e.PaySetupComplete,!1);default:return!0}}function fC(e,t){let n;const r=[t.ProcessInstance,fl(t.IsBenefitsEnabled)];return n=dl(r[0],r[1]),n.tag===1?new m(1,[n.fields[0]]):new m(0,[new yh(e,t.ProcessInstance.JourneyType,t.Branding,t.IsBenefitsEnabled,_$(t.ProcessInstance.Configuration),_h(t.ProcessInstance),t.ProcessInstance.Status,t.ProcessInstance.Id,t.ProcessInstance.Configuration.Name,t.ProcessInstance.Configuration.Id,n.fields[0])])}function dC(e,t){let n;const r=[t,fl(e.IsBenefitsStepEnabled)];return n=dl(r[0],r[1]),n.tag===1?new m(1,[n.fields[0]]):new m(0,[new yh(e.AppMode,e.JourneyType,e.Branding,e.IsBenefitsStepEnabled,e.IsPaySetupCompatible,_h(t),t.Status,e.ProcessInstanceId,e.InstanceName,e.ProcessConfigId,n.fields[0])])}class It extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialising","Loaded","Error"]}}function hl(e,t){const n=e;if(n.tag===1)return new It(2,[n.fields[0]]);switch(t.tag){case 2:return t;case 0:return t;default:{const r=dC(t.fields[0],n.fields[0]);return r.tag===1?new It(2,[r.fields[0]]):new It(1,[r.fields[0]])}}}let fe=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialising","StepList","Step","PaySetupCompleteConfirmation","Oops","AllDone"]}};class z extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Activate","ActivateCallback","ChangeCurrentView","CloseStepListView","StepCompletionEventCallback","CompleteStep","ConfirmPaySetupComplete","ResumePaySetup","CompletePaySetup","PaySetupCompleted","CompleteWorkflow","ShowAllDoneAndNotifyComplete","SendAnalyticsEvent","AppendTrailingSlashToUrl","CompleteBenefitsOnboardingStep","CommandSuccess","CommandFailure"]}}class et extends B{constructor(t,n,r,s,i,o){super(),this.ProfileId=t,this.ProcessInstanceId=n,this.WorkflowDetail=r,this.CurrentView=s,this.CssOverrides=i,this.BenefitsOnboarding=o}}function ml(e){switch(e.tag){case 1:return"Information request";case 2:return"Workflow";case 3:return"Benefits Onboarding";case 4:return"Benefits Onboarding";default:return"Onboarding"}}function pl(e){if(e<640)return Ae(void 0)}function $l(e){return((n,r)=>{e:for(;;){const s=n,i=r;let o,a,l,u;if(M(s))o=0;else{const f=aC(k(s));if(f!=null)if(M(P(s)))o=2;else{const c=lC(k(P(s)));c!=null?(o=1,a=c,l=f,u=P(P(s))):o=2}else o=2}switch(o){case 0:return i;case 1:{n=u,r=wt(i,E(O(a.Status,new oe(2,[]))?new Pr(l.Id,new oe(2,[])):l));continue e}default:if(M(s))throw new Error("Match failure");n=P(s),r=wt(i,E(k(s)));continue e}}})(e,ce())}function bs(e){let t,n;return d("div",C(y([(t="absolute inset-0 min-h-full flex flex-col items-center justify-between w-full mx-auto text-center pt-8 sm:pt-20 pb-6 sm:pb-8 px-4 bg-white",["className",t]),(n=[d("div",{className:"mt-5 px-4 flex flex-col items-center justify-center sm:max-w-[640px]",children:b.Children.toArray([e])}),Jo],["children",b.Children.toArray(Array.from(n))])])))}function hC(e,t){let n;const r=e.tag===2?e.fields[0]:void 0;let s;if(r==null)s=void 0;else{const u=r;s=an(f=>M1(f+1,t.Steps),ei(f=>O(u,f),t.Steps))}const i=Le(u=>new z(2,[new fe(2,[u])]),Zr(u=>O(u.Status,new oe(2,[])),t.Steps));let o,a,l;switch(r!=null&&s!=null?(n=s,O(r.Status,new oe(2,[]))&&(O(n.Status,new oe(1,[]))?!0:O(n.Status,new oe(3,[])))?(o=0,a=r):(o=1,l=s)):o=2,o){case 0:return new z(2,[new fe(2,[a])]);case 1:return O(l.Status,new oe(3,[]))?void 0:new z(2,[new fe(2,[l])]);default:return i}}function mC(e,t){const n=e.IsPaySetupCompatible&&!e.IsPaySetupComplete&&ir(e.Steps)!==1;let r;if(n)switch(t.tag){case 1:case 0:{r=0;break}default:r=1}else r=1;switch(r){case 0:return new z(6,[{Branding:zs(e.Branding),InjectedBenefits:e.IsBenefitsStepEnabled}]);default:return}}function pC(e){if(ta(e.Status))return new z(11,[e])}function gl(e,t,n){return Ee(zu(zu(pC(t),hC(e,t)),mC(t,n)),new z(10,[new rn(0,[])]))}function $C(e){const t=hr(e)|0;return We(Fe("%s/workflows/backend/%i"))(Vn)(t)}function gC(e){const t=hr(e)|0;return We(Fe("%s/workflows/backend/process-instances/%i/activate"))(Vn)(t)}function wC(e){const t=hr(e)|0;return We(Fe("%s/workflows/backend/process-instances/%i/analytics-events"))(Vn)(t)}function wl(e,t){return T.Delay(()=>{const n=Vi(B2(We(Fe("Bearer %s"))(e)),t);let r;const s=hs(n);return r=T.Bind(s,i=>T.Return(new m(0,[i]))),T.Bind(r,i=>{const o=i;if(o.tag===1)return T.Return(new m(1,[o.fields[0]]));{const a=o.fields[0];if(a.statusCode===429||a.statusCode>=500){const l=hs(n);return T.Bind(l,u=>T.Return(new m(0,[u])))}else return T.Return(new m(0,[a]))}})})}function Cs(e,t,n){return T.Delay(()=>{let r,s;const i=wl(n,(r=pn(new Zt(1,[(s=E(Ub(e)),$n(0,gn(on(jb()),new He(1,[]),void 0,void 0)(s)))]),Kt(new Lt(1,[]),Xt($C(t)))),Vi(al("application/json"),r)));return T.Bind(i,o=>{const a=o;if(a.tag===1)return T.Return(new m(1,[a.fields[0]]));{const l=a.fields[0];if(l.statusCode===200){let u;const f=en(ne(tn(hh(),new He(1,[]))),l.responseText);return u=f.tag===1?new m(1,[f.fields[0]]):zb(f.fields[0]),T.Return(u)}else return T.Return(new m(1,["Unexpected response from backend"]))}})})}function yC(e,t){return T.Delay(()=>{const n=wl(t,Kt(new Lt(1,[]),Xt(gC(e))));return T.Bind(n,r=>{const s=r;if(s.tag===1)return T.Return(new m(1,[s.fields[0]]));{const i=s.fields[0];if(i.statusCode===200){let o;const a=en(ne(tn(Gb(),new He(1,[]))),i.responseText);return o=a.tag===1?new m(1,[a.fields[0]]):new m(0,[Kb(a.fields[0])]),T.Return(o)}else return T.Return(new m(1,["Unexpected response from backend"]))}})})}function _C(e,t,n){let r;const s=T.Delay(()=>{let i;return wl(e,(i=pn(new Zt(1,[$n(0,gn(on(Qb()),new He(1,[]),void 0,void 0)(E(n)))]),Kt(new Lt(1,[]),Xt(wC(t)))),Vi(al("application/json"),i)))});return r=T.Bind(s,i=>{let o;const a=i;return o=a.tag===1?new m(1,[a.fields[0]]):new m(0,[void a.fields[0]]),T.Return(o)}),T.Bind(r,i=>{const o=i;return o.tag===1||o.fields[0],T.Return()})}function vC(e,t){return yC(e,t)}function bC(e,t,n){return Cs(new _s(1,[t]),e,n)}function CC(e,t,n){return Cs(new _s(3,[n]),e,t)}function SC(e,t,n){return Cs(new _s(4,[n]),e,t)}function kC(e,t,n){return Cs(new _s(5,[n]),e,t)}function xC(e,t){return Cs(new _s(2,[]),e,t)}function IC(e){const t=eb(e);return[new et(Rc(t.sub),cf(t.workflow.instanceId),new It(0,[]),new fe(0,[]),ce(),new vs(0,[])),E(n=>{n(new z(0,[]))})]}function AC(e,t,n,r,s){let i,o,a,l,u,f,c,p,h,$,g,w,v,S,N,Q,ee,xe,at;switch(r.tag){case 1:{const I=r.fields[0];let j;switch(I.tag){case 3:{j=[s,(i=new z(2,[new fe(4,[I.fields[0].message])]),E(Y=>{Y(i)}))];break}case 0:case 1:{j=[s,Z()];break}default:{let Y;const Ie=I.fields[0];if(Ie.tag===1)Y=new m(1,[Ie.fields[0]]);else{const me=Ie.fields[0],qn=fl(me.IsBenefitsEnabled);let qi;const Dh=[me.ProcessInstance,qn];if(qi=dl(Dh[0],Dh[1]),qi.tag===1)Y=new m(1,[qi.fields[0]]);else{const Nh=qi.fields[0],Sl=fC(n,me);Y=Sl.tag===1?new m(1,[Sl.fields[0]]):new m(0,[(o=Sl.fields[0],a=ta(me.ProcessInstance.Status),l=uC(Nh),l==null?o.IsPaySetupComplete?a?[new et(s.ProfileId,s.ProcessInstanceId,new It(1,[o]),new fe(5,[]),me.CssOverrides,qn),Z()]:(Ht(0),[new et(s.ProfileId,s.ProcessInstanceId,new It(1,[o]),new fe(5,[]),me.CssOverrides,qn),E(V3=>{V3(new z(10,[new rn(0,[])]))})]):[new et(s.ProfileId,s.ProcessInstanceId,new It(1,[o]),new fe(3,[]),me.CssOverrides,qn),Z()]:[new et(s.ProfileId,s.ProcessInstanceId,new It(1,[o]),(u=l,f=rl.clientWidth,c=ir(Nh)|0,c===1?(document.title=Gn(u),new fe(2,[u])):pl(f)!=null?new fe(1,[]):new fe(2,[u])),me.CssOverrides,qn),Z()])])}}j=Y.tag===1?[s,E(me=>{me(new z(2,[new fe(4,[Y.fields[0]])]))})]:Y.fields[0]}}return[j[0],j[1]]}case 2:{const I=r.fields[0];return[new et(s.ProfileId,s.ProcessInstanceId,s.WorkflowDetail,I,s.CssOverrides,s.BenefitsOnboarding),I.tag===2?(p=eC(I.fields[0].Id),O(p.Id,li.Id)?E(j=>{j(new z(12,[s.ProcessInstanceId,new ji(1,[])]))}):(h=new z(12,[s.ProcessInstanceId,new ji(0,[ui(p.Id)])]),E(j=>{j(h)}))):Z()]}case 3:{const I=s.WorkflowDetail;if(I.tag===1){const j=gl(s.CurrentView,I.fields[0],s.BenefitsOnboarding);return[s,E(Y=>{Y(j)})]}else return[s,Z()]}case 12:return ze(_C(t,r.fields[0],r.fields[1])),[s,Z()];case 4:{const I=s.WorkflowDetail;return I.tag===1?[s,($=r.fields[0].target,g=Zr(j=>l1(sC(j),$.tagName,5)===0,I.fields[0].Steps),g==null?Z():O(g.Id,new Se(6,[]))?E(j=>{j(new z(14,[]))}):(w=g,v=new z(5,[iC(w),new rn(0,[])]),E(j=>{j(v)})))]:[s,Z()]}case 14:{let I;switch(s.WorkflowDetail.tag===1?O(s.BenefitsOnboarding,new vs(0,[]))?I=1:I=0:I=1,I){case 0:return[new et(s.ProfileId,s.ProcessInstanceId,s.WorkflowDetail,s.CurrentView,s.CssOverrides,new vs(2,[])),i0(y([E(j=>{j(new z(12,[s.ProcessInstanceId,new ji(2,[])]))}),E(j=>{j(new z(10,[new rn(0,[])]))}),E(j=>{j(new z(2,[new fe(5,[])]))})]))];default:return[s,Z()]}}case 5:{const I=r.fields[0],j=r.fields[1];switch(j.tag){case 1:return[s,Z()];case 2:{const Y=j.fields[0],Ie=Y;Ie.tag===1?Ie.fields[0]:_g(I,Ie.fields[0],s.ProfileId);const me=hl(Y,s.WorkflowDetail);return[new et(s.ProfileId,s.ProcessInstanceId,me,s.CurrentView,s.CssOverrides,s.BenefitsOnboarding),(S=me.tag===1?gl(s.CurrentView,me.fields[0],s.BenefitsOnboarding):me.tag===2?new z(2,[new fe(4,[me.fields[0]])]):new z(2,[new fe(4,["Process Instance not resolved"])]),E(qn=>{qn(S)}))]}case 3:{const Y=j.fields[0];return[new et(s.ProfileId,s.ProcessInstanceId,new It(2,[Y.message]),s.CurrentView,s.CssOverrides,s.BenefitsOnboarding),(N=new z(2,[new fe(4,[Y.message])]),E(Ie=>{Ie(N)}))]}default:return[s,St(Y=>{ze(Y)},Y=>bC(s.ProcessInstanceId,I,Y),t,Y=>new z(5,[I,new rn(2,[Y])]),Y=>new z(5,[I,new rn(3,[Y])]))]}}case 6:return[new et(s.ProfileId,s.ProcessInstanceId,s.WorkflowDetail,new fe(3,[]),s.CssOverrides,s.BenefitsOnboarding),St(I=>{ze(I)},I=>CC(s.ProcessInstanceId,t,I),r.fields[0].InjectedBenefits,I=>new z(15,[]),I=>new z(16,[I]))];case 7:return[s,i0(y([St(I=>{ze(I)},I=>kC(s.ProcessInstanceId,t,I),r.fields[0].InjectedBenefits,I=>new z(15,[]),I=>new z(16,[I])),(Q=s.WorkflowDetail,Q.tag===1?(ee=new z(2,[new fe(2,[S1(Ro(I=>O(I.Status,new oe(0,[]))?!0:O(I.Status,new oe(4,[])),Q.fields[0].Steps))])]),E(I=>{I(ee)})):E(I=>{I(new z(2,[new fe(4,["Process Instance not resolved"])]))}))]))];case 8:return[s,St(I=>{ze(I)},Ls(e)(s.ProcessInstanceId)(t),r.fields[0].InjectedBenefits,I=>new z(9,[I]),I=>new z(16,[I]))];case 9:{const I=hl(r.fields[0],s.WorkflowDetail);return[new et(s.ProfileId,s.ProcessInstanceId,I,s.CurrentView,s.CssOverrides,s.BenefitsOnboarding),(xe=I.tag===1?gl(s.CurrentView,I.fields[0],s.BenefitsOnboarding):I.tag===2?new z(2,[new fe(4,[I.fields[0]])]):new z(2,[new fe(4,["Process Instance not resolved"])]),E(j=>{j(xe)}))]}case 10:{const I=r.fields[0];switch(I.tag){case 1:return[s,Z()];case 2:return I.fields[0].tag===1?[new et(s.ProfileId,s.ProcessInstanceId,new It(2,[I.fields[0].fields[0]]),new fe(4,[I.fields[0].fields[0]]),s.CssOverrides,s.BenefitsOnboarding),Z()]:(ca(I.fields[0].fields[0].Id,I.fields[0].fields[0].Configuration.Name,I.fields[0].fields[0].Configuration.Id,s.ProfileId),[new et(s.ProfileId,s.ProcessInstanceId,hl(new m(0,[I.fields[0].fields[0]]),s.WorkflowDetail),s.CurrentView,s.CssOverrides,s.BenefitsOnboarding),E(j=>{j(new z(2,[new fe(5,[])]))})]);case 3:return[new et(s.ProfileId,s.ProcessInstanceId,new It(2,[I.fields[0].message]),new fe(4,[I.fields[0].message]),s.CssOverrides,s.BenefitsOnboarding),Z()];default:{const j=s.WorkflowDetail;let Y,Ie;switch(j.tag===1&&ta(j.fields[0].Status)?(Y=0,Ie=j.fields[0]):Y=1,Y){case 0:return ca(Ie.ProcessInstanceId,Ie.InstanceName,Ie.ProcessConfigId,s.ProfileId),[s,Z()];default:return[s,St(me=>{ze(me)},me=>xC(s.ProcessInstanceId,me),t,me=>new z(10,[new rn(2,[me])]),me=>new z(10,[new rn(3,[me])]))]}}}}case 11:{const I=r.fields[0];return ca(I.ProcessInstanceId,I.InstanceName,I.ProcessConfigId,s.ProfileId),[s,E(j=>{j(new z(2,[new fe(5,[])]))})]}case 13:return[s,(at=window.location.pathname+"/"+window.location.search+window.location.hash,o0(I=>{nl(E(at),1)}))];case 15:return[s,Z()];case 16:return[s,Z()];default:return[s,Pi(I=>{ze(I)},()=>vC(s.ProcessInstanceId,t),void 0,I=>new z(1,[new rn(2,[I])]))]}}function EC(e,t,n,r){return AC(SC,e,t,n,r)}const TC=d("div",C(y([["className","text-primary-base"],(()=>{let e,t,n;const r=[d("svg",C(y([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(e=E(d("g",C(E((t=y([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cy:16,r:16,fill:"currentColor"}),d("path",C(y([(n="M20.3018 11.7811L13.9959 18.0829L11.6982 15.7867C11.5092 15.6043 11.2561 15.5033 10.9933 15.5056C10.7306 15.5079 10.4793 15.6132 10.2935 15.7989C10.1077 15.9845 10.0023 16.2357 10 16.4983C9.99775 16.7608 10.0988 17.0138 10.2813 17.2026L13.2874 20.2068C13.4754 20.3945 13.7302 20.5 13.9959 20.5C14.2616 20.5 14.5164 20.3945 14.7043 20.2068L21.7187 13.1971C21.9012 13.0082 22.0022 12.7553 22 12.4927C21.9977 12.2301 21.8923 11.979 21.7065 11.7933C21.5207 11.6076 21.2694 11.5023 21.0067 11.5C20.7439 11.4978 20.4908 11.5987 20.3018 11.7811Z",["d",n]),["fill","white"]])))]),["children",b.Children.toArray(Array.from(t))]))))),["children",b.Children.toArray(Array.from(e))])])))];return["children",b.Children.toArray(Array.from(r))]})()]))),PC=d("div",C(y([["className","text-primary-base"],(()=>{let e,t,n,r;const s=[d("svg",C(y([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(e=E(d("g",C(E((t=y([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cy:16,r:15,stroke:"currentColor",strokeWidth:2}),d("path",C(y([(n="M16.616 12.6769L11.146 18.1459C11.0908 18.2022 11.0497 18.2707 11.026 18.3459L10.026 21.3459C10.0018 21.4208 9.99555 21.5004 10.0079 21.5781C10.0202 21.6559 10.0507 21.7296 10.0969 21.7934C10.1431 21.8571 10.2036 21.909 10.2737 21.9449C10.3438 21.9808 10.4213 21.9997 10.5 21.9999C10.5538 22.0002 10.6072 21.9914 10.658 21.9739L13.658 20.9739C13.7332 20.9503 13.8017 20.9091 13.858 20.8539L19.327 15.3839L16.616 12.6769Z",["d",n]),["fill","currentColor"]]))),d("path",C(y([(r="M21.8545 12.146L19.8545 10.146C19.808 10.0994 19.7529 10.0625 19.6921 10.0373C19.6314 10.0121 19.5663 9.99908 19.5005 9.99908C19.4347 9.99908 19.3696 10.0121 19.3089 10.0373C19.2481 10.0625 19.1929 10.0994 19.1465 10.146L17.6775 11.616L20.3845 14.323L21.8545 12.854C21.9011 12.8075 21.938 12.7524 21.9632 12.6916C21.9884 12.6309 22.0014 12.5657 22.0014 12.5C22.0014 12.4342 21.9884 12.3691 21.9632 12.3083C21.938 12.2476 21.9011 12.1924 21.8545 12.146Z",["d",r]),["fill","currentColor"]])))]),["children",b.Children.toArray(Array.from(t))]))))),["children",b.Children.toArray(Array.from(e))])])))];return["children",b.Children.toArray(Array.from(s))]})()]))),MC=d("svg",C(y([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e,t,n;const r=E(d("g",C(E((e=y([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cy:16,r:15,stroke:"#D1D5DB",strokeWidth:2}),d("path",C(y([(t="M15 13C15 12.7348 15.1054 12.4804 15.2929 12.2929C15.4804 12.1054 15.7348 12 16 12C16.2652 12 16.5196 12.1054 16.7071 12.2929C16.8946 12.4804 17 12.7348 17 13V15H19V13C19 12.2044 18.6839 11.4413 18.1213 10.8787C17.5587 10.3161 16.7956 10 16 10C15.2044 10 14.4413 10.3161 13.8787 10.8787C13.3161 11.4413 13 12.2044 13 13V15H15V13Z",["d",t]),["fill","#9CA3AF"]]))),d("path",C(y([(n="M19.6 16H12.4C11.9029 16 11.5 16.3731 11.5 16.8333V20.1667C11.5 20.6269 11.9029 21 12.4 21H19.6C20.0971 21 20.5 20.6269 20.5 20.1667V16.8333C20.5 16.3731 20.0971 16 19.6 16Z",["d",n]),["fill","#9CA3AF"]])))]),["children",b.Children.toArray(Array.from(e))])))));return["children",b.Children.toArray(Array.from(r))]})()]))),vh=d("svg",C(y([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=E(d("g",C(E((e=y([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cy:16,r:15,stroke:"#D1D5DB",strokeWidth:2})]),["children",b.Children.toArray(Array.from(e))])))));return["children",b.Children.toArray(Array.from(t))]})()]))),OC=d("svg",C(y([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e,t;const n=E(d("g",C(E((e=y([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cx:16,cy:16,r:15,stroke:"#D1D5DB",strokeWidth:2}),d("path",C(y([(t="M20.3018 11.7811L13.9959 18.0829L11.6982 15.7867C11.5092 15.6043 11.2561 15.5033 10.9933 15.5056C10.7306 15.5079 10.4793 15.6132 10.2935 15.7989C10.1077 15.9845 10.0023 16.2357 10 16.4983C9.99775 16.7608 10.0988 17.0138 10.2813 17.2026L13.2874 20.2068C13.4754 20.3945 13.7302 20.5 13.9959 20.5C14.2616 20.5 14.5164 20.3945 14.7043 20.2068L21.7187 13.1971C21.9012 13.0082 22.0022 12.7553 22 12.4927C21.9977 12.2301 21.8923 11.979 21.7065 11.7933C21.5207 11.6076 21.2694 11.5023 21.0067 11.5C20.7439 11.4978 20.4908 11.5987 20.3018 11.7811Z",["d",t]),["fill","#D1D5DB"]])))]),["children",b.Children.toArray(Array.from(e))])))));return["children",b.Children.toArray(Array.from(n))]})()])));function yl(e,t){let n;return d("div",C(y([["className","w-full h-6 rounded justify-start items-center inline-flex"],(n=[d("div",{className:_e(" ",[e,"text-lg font-medium leading-normal"]),children:t})],["children",b.Children.toArray(Array.from(n))])])))}function DC(e){return yl("text-gray-900",e)}function _l(e){return yl("text-gray-500",e)}function NC(e){return yl("text-primary-base",e)}function RC(e){switch(e.Status.tag){case 0:return DC(Gn(e));case 1:return _l(Gn(e));case 3:return _l(Gn(e));case 4:return _l(Gn(e));default:return NC(Gn(e))}}function bh(e){let t;return d("div",C(y([["className","w-8 h-6 flex-col justify-center items-center inline-flex"],(t=[d("div",{className:_e(" ",[e,"w-0.5 h-6 relative"])})],["children",b.Children.toArray(Array.from(t))])])))}const LC=bh("bg-gray-300"),Ch=bh("bg-primary-base");function BC(e){const t=O(e.Id,new Se(6,[])),n=e.Status;let r;if(t)r=2;else switch(n.tag){case 0:{r=0;break}case 2:{r=1;break}default:r=2}switch(r){case 0:return Ch;case 1:return Ch;default:return LC}}function Sh(e,t){let n,r,s;const i=O(t.Status,new oe(0,[]))?!0:O(t.Status,new oe(2,[]));return d("button",C(y([["className",_e(" ",["group h-8 justify-start items-center space-x-4 inline-flex focus:outline-none"])],["type","button"],["disabled",!i],["onClick",o=>{e(new z(2,[new fe(2,[t])]))}],(n=[d("div",C(y([["className","w-8 h-8 relative"],(r=$e(A(()=>{const o=t.Status;return o.tag===0?_(TC):o.tag===1?_(vh):o.tag===3?O(t.Id,new Se(6,[]))?_(MC):_(vh):o.tag===4?_(OC):_(PC)})),["children",b.Children.toArray(Array.from(r))])]))),d("div",C(y([["className",_e(" ",$e(A(()=>V(_("rounded justify-start items-center flex"),A(()=>i?_("group-focus:outline-none group-focus:ring-2 group-focus:ring-offset-4 group-focus:ring-primary-focus"):ur())))))],(s=[RC(t)],["children",b.Children.toArray(Array.from(s))])])))],["children",b.Children.toArray(Array.from(n))])])))}function VC(e){let t,n,r,s=!1,i=0;const o=pe(e.Steps);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const u=o["System.Collections.Generic.IEnumerator`1.get_Current"]();switch(u.Id.tag){case 0:case 1:{s=O(u.Status,new oe(0,[]))?!0:O(u.Status,new oe(4,[]));break}default:(O(u.Status,new oe(0,[]))||O(u.Status,new oe(4,[])))&&(i=i+1|0)}}}finally{ae(o)}r=i+(s?1:0);const a=ir($l(e.Steps))|0,l=u=>d("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:u});return d("div",C(y([(t="h-20 w-full px-6 py-4 bg-white border-b border-gray-300 flex-col justify-start items-start inline-flex cursor-default",["className",t]),(n=$e(A(()=>{let u,f;return V((u=e.Branding,O(e.AppMode,new Ir(0,[]))?_(te()):u!=null&&u.CompanyName!=null?(f=u.CompanyName,_(l(ts(f)))):_(l(ml(e.JourneyType)))),A(()=>_(d("div",{className:"text-center text-gray-900 text-base font-semibold leading-normal",children:`${r}/${a} sections complete`}))))})),["children",b.Children.toArray(Array.from(n))])])))}function FC(e,t){return((r,s)=>{e:for(;;){const i=r,o=s;if(M(i))return o;if(M(P(i)))return wt(o,E(Sh(e,k(i))));r=Ke(k(P(i)),P(P(i))),s=wt(o,y([Sh(e,k(i)),BC(k(P(i)))]));continue e}})($l(t.Steps),ce())}function WC(e){let t,n,r;const s=e.dispatch,i=e.detail,o=kc(void 0),a=si(!1);return Ep(()=>{const l=window.ResizeObserver?new window.ResizeObserver(()=>{const u=document.body.offsetWidth;pl(u)!=null||a[0]===!1&&(a[1](!0),s(new z(3,[])))}):new Tf(()=>{const u=document.body.offsetWidth;pl(u)!=null||a[0]===!1&&(a[1](!0),s(new z(3,[])))});return xn(u=>{l.observe(u)},Hs(o.current)),{Dispose(){l.disconnect()}}}),d("div",C(y([["ref",o],["className","absolute top-0 bottom-0 left-0 right-0"],(t=[d("div",C(y([["className","w-full h-full bg-white flex-col justify-start items-start inline-flex"],(n=[VC(i),d("div",C(y([["className","p-6 bg-white flex-col justify-start items-start inline-flex"],(r=FC(s,i),["children",b.Children.toArray(Array.from(r))])])))],["children",b.Children.toArray(Array.from(n))])])))],["children",b.Children.toArray(Array.from(t))])])))}class Ui extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token"]}}class jC extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["app-base-url"]}}class UC extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["workflows-instance-id"]}}function kh(e){const t=e.children,n=e.effect,r=e.props,s=e.step;dr(n);const i=s.tag===1?ft.ComponentTagName:s.tag===2?dt.ComponentTagName:s.tag===3?ht.ComponentTagName:s.tag===4?De.ComponentTagName:s.tag===5?Tn.ComponentTagName:s.tag===6?li.ComponentTagName:s.tag===7?zt.ComponentTagName:s.tag===8?Pn.ComponentTagName:Ge.ComponentTagName;return d(i,yt(r,1),...t)}class Ss extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Mobile","MobileLandscape","Tablet","Desktop","WideScreen"]}}class zC extends B{constructor(t,n,r,s){super(),this.MobileLandscape=t|0,this.Tablet=n|0,this.Desktop=r|0,this.WideScreen=s|0}}const HC=new zC(576,768,1024,1216);function GC(e){return["(max-width: "+e.MobileLandscape+"px)","(max-width: "+e.Tablet+"px)","(max-width: "+e.Desktop+"px)","(max-width: "+e.WideScreen+"px)"]}function zi(e){const t=Ap(()=>window.matchMedia(e).matches);return Ho(()=>{const n=window.matchMedia(e),r=()=>{t[1](n.matches)};return r(),n.addListener(r),ri(()=>{n.removeListener(r)})},[e]),t[0]}function qC(e){const t=GC(Ee(e,HC)),n=zi(t[0]),r=zi(t[1]),s=zi(t[2]),i=zi(t[3]);return n?new Ss(0,[]):r?new Ss(1,[]):s?new Ss(2,[]):i?new Ss(3,[]):new Ss(4,[])}const YC=d("svg",C(y([["fill","none"],["height",16],["viewBox","0 0 16 16"],["width",16],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e,t;const n=E(d("g",C(E((e=y([d("rect",{width:16,height:16,fill:"white"}),d("path",C(y([(t="M15 6.99992H3.41403L6.70703 3.70692C6.88919 3.51832 6.98998 3.26571 6.9877 3.00352C6.98543 2.74132 6.88026 2.49051 6.69485 2.3051C6.50944 2.11969 6.25863 2.01452 5.99643 2.01224C5.73423 2.00997 5.48163 2.11076 5.29303 2.29292L0.293031 7.29292C0.10556 7.48045 0.000244141 7.73475 0.000244141 7.99992C0.000244141 8.26508 0.10556 8.51939 0.293031 8.70692L5.29303 13.7069C5.38528 13.8024 5.49562 13.8786 5.61763 13.931C5.73963 13.9834 5.87085 14.011 6.00363 14.0122C6.13641 14.0133 6.26809 13.988 6.39098 13.9377C6.51388 13.8875 6.62553 13.8132 6.71943 13.7193C6.81332 13.6254 6.88757 13.5138 6.93785 13.3909C6.98813 13.268 7.01343 13.1363 7.01228 13.0035C7.01113 12.8707 6.98354 12.7395 6.93113 12.6175C6.87872 12.4955 6.80254 12.3852 6.70703 12.2929L3.41403 8.99992H15C15.2652 8.99992 15.5196 8.89456 15.7071 8.70703C15.8947 8.51949 16 8.26514 16 7.99992C16 7.7347 15.8947 7.48035 15.7071 7.29281C15.5196 7.10528 15.2652 6.99992 15 6.99992Z",["d",t]),["fill","#212121"]])))]),["children",b.Children.toArray(Array.from(e))])))));return["children",b.Children.toArray(Array.from(n))]})()])));function JC(e,t,n){let r,s,i,o,a,l;const u=E1(h=>O(h.Id,n.Id),t)/ir(t)*100;l=We(Fe("%.0f%%"))(u);let f;const c=P1(h=>O(h.Status,new oe(2,[]))?!0:O(h.Status,new oe(0,[])),t)/ir(t)*100;f=We(Fe("%.0f%%"))(c);const p=O(n.Id,new Se(1,[]))?$h(new Se(0,[])):Gn(n);return d("div",C(y([(r="h-20 w-full px-6 py-4 bg-white border-b border-gray-300 flex-col justify-start items-start space-y-3 inline-flex sticky left-0 right-0 top-0 z-50",["className",r]),(s=[d("div",C(y([["className","self-stretch justify-start items-center space-x-3 inline-flex"],(i=[d("button",{type:"button",className:"w-4 h-4 rounded-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-base",onClick:h=>{e(new z(2,[new fe(1,[])]))},children:b.Children.toArray([YC])}),d("div",{className:"text-center text-gray-900 text-base font-semibold leading-normal",children:p})],["children",b.Children.toArray(Array.from(i))])]))),d("div",C(y([["className","w-full h-2 relative rounded-sm"],(o=[d("div",{className:"w-full h-0.5 left-0 top-[3px] absolute bg-gray-300 rounded-sm"}),d("div",C(y([["className","w-full left-0 top-0 absolute"],(a=[d("div",{className:"h-0.5 left-0 top-[3px] absolute bg-primary-base rounded-sm",style:{width:f}}),d("div",{className:"w-2 h-2 top-0 absolute bg-primary-base rounded-full",style:{left:l}})],["children",b.Children.toArray(Array.from(a))])])))],["children",b.Children.toArray(Array.from(o))])])))],["children",b.Children.toArray(Array.from(s))])])))}const ZC=d("div",C(y([["className","relative h-4 w-2 z-50"],(()=>{const e=[d("div",{className:"absolute left-0 top-1 h-2 w-2 rounded-full bg-primary-base"})];return["children",b.Children.toArray(Array.from(e))]})()]))),XC=d("div",{className:"relative h-0.5 w-2 bg-gray-300"}),xh=d("div",{className:"relative h-0.5 w-2 bg-primary-base"}),KC=d("div",C(y([["className","w-4 h-4 relative"],(()=>{let e,t,n;const r=[d("svg",C(y([["fill","none"],["height",16],["viewBox","0 0 16 16"],["width",16],["xmlns","http://www.w3.org/2000/svg"],(e=y([d("path",C(y([(t="M7 5C7 4.73478 7.10536 4.48043 7.29289 4.29289C7.48043 4.10536 7.73478 4 8 4C8.26522 4 8.51957 4.10536 8.70711 4.29289C8.89464 4.48043 9 4.73478 9 5V7H11V5C11 4.20435 10.6839 3.44129 10.1213 2.87868C9.55871 2.31607 8.79565 2 8 2C7.20435 2 6.44129 2.31607 5.87868 2.87868C5.31607 3.44129 5 4.20435 5 5V7H7V5Z",["d",t]),["fill","#9CA3AF"]]))),d("path",C(y([(n="M11.6 8H4.4C3.90294 8 3.5 8.3731 3.5 8.83333V12.1667C3.5 12.6269 3.90294 13 4.4 13H11.6C12.0971 13 12.5 12.6269 12.5 12.1667V8.83333C12.5 8.3731 12.0971 8 11.6 8Z",["d",n]),["fill","#9CA3AF"]])))]),["children",b.Children.toArray(Array.from(e))])])))];return["children",b.Children.toArray(Array.from(r))]})()])));function Ih(e,t,n){let r;if(e)r=0;else switch(n.tag){case 0:case 4:{r=2;break}case 1:{r=4;break}case 3:{t?r=3:r=4;break}default:r=1}switch(r){case 0:return ZC;case 1:return xh;case 2:return xh;case 3:return KC;default:return XC}}const Ah=d("div",{className:"relative h-0.5 w-full"}),QC=d("div",{className:"relative h-0.5 w-full bg-gray-300"}),e3=d("div",{className:"relative h-0.5 w-full bg-primary-base"});function vl(e){let t;if(e==null)t=1;else switch(e.tag){case 0:case 4:case 2:{t=0;break}default:t=2}switch(t){case 0:return e3;case 1:return Ah;default:return QC}}function Eh(e){let t,n;return d("div",C(y([["className","inline-flex h-11 w-10 flex-col items-center justify-start"],(t=[d("div",C(y([["className","inline-flex h-4 items-center justify-center self-stretch"],(n=[d("div",{className:_e(" ",[e,"relative h-0.5 w-10"])})],["children",b.Children.toArray(Array.from(n))])])))],["children",b.Children.toArray(Array.from(t))])])))}const t3=Eh("bg-gray-300"),n3=Eh("bg-primary-base");function r3(e){switch(e.tag){case 0:case 4:case 2:return n3;default:return t3}}function Th(e,t,n,r){let s,i;const o=!e&&(O(n.Status,new oe(0,[]))?!0:O(n.Status,new oe(2,[]))),a=e?"text-primary-base":O(n.Status,new oe(2,[]))||O(n.Status,new oe(0,[]))?"text-gray-900 group-hover:text-primary-base":"text-gray-500",l=d("div",{className:"absolute inset-0 group-hover:bg-primary-base group-hover:opacity-10 rounded"});let u;const f=lc(gh(n.Id).toLocaleLowerCase()," ","-");return u=We(Fe("step-%s"))(f),d("div",C(y([["className",_e(" ",["h-11 flex-col justify-start items-center inline-flex"])],(s=[d("div",{className:"h-4 inline-flex items-center justify-center self-stretch",children:b.Children.toArray(Array.from(r))}),d("button",C(y([["type","button"],["disabled",!o],["data-testid",u],["className",_e(" ",["relative group h-7 px-2 py-1 justify-center items-center gap-2 inline-flex rounded","focus:outline-none focus:ring-1 focus:ring-offset-1 focus:ring-primary-focus"])],["onClick",At(t)(n)],(i=$e(A(()=>V(_(o?l:te()),A(()=>_(d("div",{className:_e(" ",[a,"text-sm font-medium leading-tight whitespace-nowrap"]),children:rC(n)})))))),["children",b.Children.toArray(Array.from(i))])])))],["children",b.Children.toArray(Array.from(s))])])))}function s3(e,t,n){const r=O(n.Id,new Se(1,[]))?new Se(0,[]):n.Id,s=(o,a)=>{e(new z(2,[new fe(2,[o])]))};return ar(((o,a,l)=>{e:for(;;){const u=o,f=a,c=l;if(M(u))return c;if(M(P(u))){const p=vl(f),h=O(k(u).Id,r);return wt(c,E(Th(h,s,k(u),y([Ah,Ih(h,O(k(u).Id,new Se(6,[])),k(u).Status),p]))))}else{const p=vl(f),h=O(k(u).Id,r),$=Ih(h,O(k(u).Id,new Se(6,[])),k(u).Status);o=P(u),a=k(u).Status,l=wt(c,y([Th(h,s,k(u),y([vl(k(u).Status),$,p])),r3(k(u).Status)]));continue e}}})(ar($l(t)),void 0,ce()))}function i3(e,t,n){let r,s,i;const o=d("div",C(y([["className","grow shrink basis-0 flex-col justify-start items-start inline-flex"],(r=[d("div",{className:"hidden lg:inline text-gray-500 text-sm font-medium leading-tight",children:ml(t.JourneyType)}),Ee(Le(l=>d("div",{className:"hidden lg:inline text-center text-gray-900 text-base font-semibold leading-normal",children:l}),Le(ts,an(l=>l.CompanyName,t.Branding))),te())],["children",b.Children.toArray(Array.from(r))])]))),a=d("div",{className:"grow shrink basis-0"});return d("div",C(y([(s="w-full h-20 px-8 py-4 bg-white border-b border-gray-300 justify-between items-center inline-flex sticky left-0 right-0 top-0 z-50",["className",s]),(i=$e(A(()=>V(O(t.AppMode,new Ir(0,[]))?_(a):_(o),A(()=>{let l;return V(_(d("div",C(y([["className","bg-white justify-center items-start flex"],(l=s3(e,t.Steps,n),["children",b.Children.toArray(Array.from(l))])])))),A(()=>_(d("div",{className:"grow shrink basis-0"}))))})))),["children",b.Children.toArray(Array.from(i))])])))}function o3(e){let t;const n=e.body,r=e.currentStep,s=e.detail,i=e.dispatch;return d("div",C(y([["className","w-full flex-col justify-start items-center inline-flex bg-white"],(t=$e(A(()=>V(ir(s.Steps)===1?_(te()):qC().tag===0?_(JC(i,s.Steps,r)):_(i3(i,s,r)),A(()=>_(d("div",{className:"p-4 max-w-7xl mx-auto w-full",children:n})))))),["children",b.Children.toArray(Array.from(t))])])))}const a3=e=>d("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("path",{d:"M16 16V30",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M11 21L16 16L21 21",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M11 29H4C3.20435 29 2.44129 28.6839 1.87868 28.1213C1.31607 27.5587 1 26.7956 1 26V2H12L15 7H31V26C31 26.7956 30.6839 27.5587 30.1213 28.1213C29.5587 28.6839 28.7956 29 28 29H21",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),l3=e=>d("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("path",{d:"M19.7 4.3C19.3 3.9 18.7 3.9 18.3 4.3L12 10.6L5.7 4.3C5.3 3.9 4.7 3.9 4.3 4.3C3.9 4.7 3.9 5.3 4.3 5.7L10.6 12L4.3 18.3C3.9 18.7 3.9 19.3 4.3 19.7C4.5 19.9 4.7 20 5 20C5.3 20 5.5 19.9 5.7 19.7L12 13.4L18.3 19.7C18.5 19.9 18.8 20 19 20C19.2 20 19.5 19.9 19.7 19.7C20.1 19.3 20.1 18.7 19.7 18.3L13.4 12L19.7 5.7C20.1 5.3 20.1 4.7 19.7 4.3Z",fill:"#9CA3AF"}));function u3(e){const t=yt(e,1);return d(a3,t)}function c3(e){const t=yt(e,1);return d(l3,t)}function f3(e){return d("div",{className:"absolute top-0 bottom-0 left-0 right-0",children:b.Children.toArray([e])})}function d3(e,t){let n;return d("button",C(y([["type","button"],["data-testid","submit-btn"],["className",_e(" ",["self-stretch md:self-auto md:w-60 px-4 py-2 bg-primary-base hover:bg-primary-hover rounded-md shadow","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus cursor-pointer","justify-center items-center inline-flex"])],["onClick",t],(n=[d("div",{className:"text-white text-base font-semibold leading-normal",children:e})],["children",b.Children.toArray(Array.from(n))])])))}function h3(e,t){let n;return d("button",C(y([["type","button"],["className",_e(" ",["relative group self-stretch md:self-auto md:w-60 px-4 py-2 rounded-md shadow justify-center items-center inline-flex","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus cursor-pointer"])],["onClick",t],(n=[d("div",{className:"text-primary-dark text-base font-semibold leading-normal z-[1]",children:e}),d("div",{className:"absolute w-full h-full rounded-md z-[0] bg-primary-base opacity-10 group-hover:opacity-20"})],["children",b.Children.toArray(Array.from(n))])])))}function Hi(e,t,n,r,s){let i,o,a,l,u,f,c,p,h,$,g,w,v,S,N;return f3(d("div",C(y([["className","w-full h-full md:pb-8 bg-white flex-col justify-start items-start md:items-center inline-flex"],(i=[d("div",C(y([(o="w-full md:self-stretch p-4 bg-white border-gray-200 flex-col justify-start items-end space-x-4 space-y-4 flex",["className",o]),(a=[d("button",C(y([["type","button"],(l="w-6 h-6 relative rounded-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-base",["className",l]),["onClick",Q=>{s(new z(7,[{InjectedBenefits:r}]))}],(u=[c3([])],["children",b.Children.toArray(Array.from(u))])])))],["children",b.Children.toArray(Array.from(a))])]))),d("div",C(y([(f="w-full md:w-[560px] grow shrink basis-0 px-4 md:px-0 pb-8 md:pb-0 bg-white flex-col justify-between md:justify-start items-center md:space-y-14 flex",["className",f]),(c=[d("div",C(y([["className","self-stretch h-64 md:h-56 flex-col justify-start items-center space-y-8 flex"],(p=[d("div",C(y([["className","self-stretch h-64 flex-col justify-start items-center space-y-6 flex"],(h=[d("div",C(y([["className","self-stretch h-24 flex-col justify-start items-center space-y-4 flex"],($=[d("div",C(y([["className","w-12 h-12 relative rounded-lg"],(g=[d("div",{className:"w-12 h-12 relative bg-primary-base opacity-10 rounded-lg"}),d("div",C(y([["className","w-8 h-8 left-2 top-2 absolute"],(w=[d("div",C(y([["className","w-7 h-7 left-px top-0.5 absolute"],(v=[u3([["className","text-primary-base"]])],["children",b.Children.toArray(Array.from(v))])])))],["children",b.Children.toArray(Array.from(w))])])))],["children",b.Children.toArray(Array.from(g))])]))),d("div",{className:"self-stretch text-center text-gray-900 text-2xl md:text-3xl font-bold leading-7 md:leading-9",children:e})],["children",b.Children.toArray(Array.from($))])]))),d("div",C(y([["className","self-stretch h-40 md:h-24 flex-col justify-start items-center space-y-3 md:space-y-4 flex"],(S=[d("div",{className:"self-stretch text-center text-gray-900 text-base md:text-lg font-normal leading-normal md:leading-7",children:t}),d("div",{className:"self-stretch text-center text-gray-900 text-base md:text-lg font-normal leading-normal md:leading-7",children:n})],["children",b.Children.toArray(Array.from(S))])])))],["children",b.Children.toArray(Array.from(h))])])))],["children",b.Children.toArray(Array.from(p))])]))),d("div",C(y([["className","self-stretch h-24 flex-col justify-start items-center space-y-4 flex cursor-pointer"],(N=[d3(r?"Submit and continue":"Submit",Q=>{s(new z(8,[{InjectedBenefits:r}]))}),h3("Keep editing",Q=>{s(new z(7,[{InjectedBenefits:r}]))})],["children",b.Children.toArray(Array.from(N))])])))],["children",b.Children.toArray(Array.from(c))])])))],["children",b.Children.toArray(Array.from(i))])]))))}function m3(e){let t,n;const r=e.dispatch,s=e.wd,i=s.IsBenefitsStepEnabled;return s.AppMode.tag===1?i?Hi("Before you continue",(t=an(o=>o.CompanyName,s.Branding),t==null?"Submit to finalise your pay information to your employer and continue to access your workplace benefits":`Submit to finalise your pay information to ${ts(t)} and continue to access your workplace benefits`),"Once you submit, you’ll be unable to view or edit your details",!0,r):Hi("Submit your details",(n=an(o=>o.CompanyName,s.Branding),n==null?"Submit to finalise your pay information to your employer":`Submit to finalise your pay information to ${ts(n)}`),"Once you submit, you’ll be unable to view or edit your details.",!1,r):i?Hi("Before you continue","Submit to finalise your pay information to your employer and continue to access your workplace benefits","",!0,r):Hi("Submit your details","Submit to finalise your pay information to your employer","",!1,r)}function Gi(e,t){let n;return d("div",C(y([["className",_e(" ",["animate-pulse w-full relative",e,t])],(n=[d("div",{className:_e(" ",["w-full left-0 top-0 absolute bg-gray-200 rounded",e])})],["children",b.Children.toArray(Array.from(n))])])))}const p3=Gi("h-9","max-w-96"),Ph=Gi("h-6","max-w-96"),$3=Gi("h-80","max-w-96"),g3=Gi("h-10","max-w-48"),w3=(()=>{let e,t,n;const r=[d("div",C(y([(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=[d("div",C(y([["className","max-w-96 w-full flex-col justify-start items-center gap-6 flex"],(n=[p3,d("div",{className:"self-stretch h-14 flex-col justify-start items-center gap-2 flex",children:b.Children.toArray([Ph,Ph])})],["children",b.Children.toArray(Array.from(n))])]))),$3,g3],["children",b.Children.toArray(Array.from(t))])])))];return d(Pe,{},...r)})();function y3(e){let t;const n=e.accessToken,r=e.appMode;let s;const i=IC(n);s=Xa(()=>Mi(()=>i,(u,f)=>EC(n,r,u,f),(u,f)=>{}),void 0,[]);const o=s[0],a=s[1];Go(()=>{yg()},[]),Go(()=>{const u=o.CurrentView;let f;switch(o.WorkflowDetail.tag===1?u.tag===2?O(u.fields[0].Id,new Se(4,[]))?(f=0,u.fields[0]):O(u.fields[0].Id,new Se(5,[]))?(f=1,u.fields[0]):f=2:f=2:f=3,f){case 0:break;case 1:break;case 2:{nl(E(sl(r)),2);break}}},[o.CurrentView,o.WorkflowDetail]),dr(()=>{window.addEventListener("step-completion",u=>{a(new z(4,[u]))})});const l=o.WorkflowDetail;switch(l.tag){case 1:{const u=l.fields[0],f=u.JourneyType;return d("div",C(y([["className","w-full min-h-[600px] mx-auto bg-white"],(t=$e(A(()=>V(ke(c=>d("style",{children:[c]}),o.CssOverrides),A(()=>{const c=o.CurrentView;switch(c.tag){case 1:return V(_(d(WC,{detail:u,dispatch:a})),A(()=>(Ht(0),ur())));case 2:{const p=c.fields[0];let h;const $=p.Id;return h=$.tag===4?d(kh,{step:new Se(4,[]),props:[new Ui(1,[n]),new Ui(0,[`${Vn}/super-selection/backend/v1.0/`]),new jC(sl(r))],effect:()=>{a(new z(13,[])),Ht(2500)},children:[]}):d(kh,{step:$,props:[new Ui(1,[n]),new Ui(0,[Vn]),new UC(sn(hr(o.ProcessInstanceId)))],effect:()=>{Ht(1500)},children:[]}),_(d(o3,{dispatch:a,detail:u,currentStep:p,body:h}))}case 3:return V(_(d(m3,{wd:u,dispatch:a})),A(()=>(Ht(0),ur())));case 4:return V(_(d("div",{className:"text-center mt-5",children:"We had an issue. Please try again shortly."})),A(()=>(Ht(0),ur())));case 5:{const p=Le(N_,u.Branding);let h;if(u.AppMode.tag===0)h=0;else switch(f.tag){case 1:{h=2;break}case 2:{h=3;break}case 3:case 4:{h=4;break}default:h=1}switch(h){case 0:return _(w3);case 1:return _(bs(cl(p,"onboarding")));case 2:return _(bs(cl(p,"information request")));case 3:return _(bs(fh()));default:return _(bs(oi()))}}default:return _(d("div",{children:["Please wait..."]}))}})))),["children",b.Children.toArray(Array.from(t))])])))}case 2:return bs(oi());default:return d("div",{children:["Please wait..."]})}}function _3(e){return{render:function(t){Ps(t,e)},unmount:function(){ho(e)}}}class v3 extends B{constructor(t,n,r){super(),this.model=t,this.render=n,this.equal=r}}class b3 extends lt{constructor(t){super(t)}shouldComponentUpdate(t,n){const r=this;return!r.props.equal(r.props.model,t.model)}render(){return this.props.render()}}function C3(e,t,n,r){const s=new v3(n,()=>t(n,r),e);return d(b3,s)}const S3=(()=>{try{return Uo($u.slice(void 0,2),511,!1,32)>=18}catch{return!1}})();function k3(e,t,n){let r;return u0(ne(S3?(r=_3(document.getElementById(t)),s=>i=>{r.render(e(o=>a=>o===a,c0(n),s,i))}):s=>i=>{Ps(e(o=>a=>o===a,c0(n),s,i),document.getElementById(t))}),n)}function x3(e,t){return k3((n,r,s,i)=>C3(ne(n),ne(r),s,i),e,t)}function I3(e,t){const n=encodeURIComponent(Nv(t)),r=encodeURIComponent(w2),s=encodeURIComponent(y2(new Ir(0,[])));return T.Delay(()=>{let i,o;const a=hs(pn(new Zt(1,[`grant_type=authorization_code&code=${n}&client_id=${r}&redirect_uri=${s}`]),(i=Kt(new Lt(1,[]),Xt(`${p2}/connect/token`)),Vi(al("application/x-www-form-urlencoded"),i))));return o=T.Bind(a,l=>T.Return(new m(0,[l]))),T.Bind(o,l=>{const u=l;if(u.tag===1)return T.Return(new m(1,[u.fields[0]]));{const f=u.fields[0];if(f.statusCode===200){const c=en(ne(tn(ul(),void 0)),f.responseText);return T.Return(c)}else return T.Return(new m(1,["Unexpected result from backend"]))}})})}function A3(){return new xr(0,[])}function bl(e){return mi(e)}function E3(e,t){return T.Delay(()=>{let n;return T.Bind(cg([(n=I3(e,t),T.Bind(n,r=>T.Return(r))),T.Delay(()=>T.Bind(bl(2e3),()=>T.Return(void 0)))]),r=>T.Return(re(0,r)))})}function T3(e,t,n){let r;switch(e.tag){case 1:switch(t.tag){case 1:return[t,Pi(s=>{ze(s)},bl,1e3,()=>new jn(1,[]))];case 2:return t.fields[0].tag===1?[t,Z()]:[t,Pi(s=>{ze(s)},bl,2e3,()=>new jn(2,[]))];default:return[new xr(2,[new m(1,["No current authenticated user"])]),Z()]}case 2:return[t,(r=window.location.pathname,o0(s=>{nl(E(r),1)}))];default:if(e.fields[0].tag===1)return e.fields[0].fields[0].tag===1?[new xr(2,[new m(1,[`SignIn failed: ${e.fields[0].fields[0].fields[0]}`])]),Z()]:(window.gtag&&window.gtag("event","oidc_sign_in",{}),[new xr(2,[new m(0,[e.fields[0].fields[0].fields[0]])]),e.fields[2]?Z():E(s=>{s(new jn(2,[]))})]);switch(t.tag){case 1:return[t,Z()];default:return[new xr(1,[]),St(s=>{ze(s)},s=>E3(s[0],s[1]),[n,e.fields[1]],s=>{const i=[new Ce(1,[s]),e.fields[1],e.fields[2]];return new jn(0,[i[0],i[1],i[2]])},s=>{const i=[new Ce(1,[new m(1,[s.message])]),e.fields[1],e.fields[2]];return new jn(0,[i[0],i[1],i[2]])})]}}}function P3(){const e=Uu(window.sessionStorage.getItem("credentials"));if(e!=null){const t=e,n=en(ne(tn(ul(),void 0)),t);return n.tag===1?void 0:n.fields[0]}}function M3(e){let t;const n=["credentials",(t=new ch(e.id_token,e.access_token,e.expires_in,void 0,e.scope,e.token_type),$n(0,gn(ul(),void 0,void 0,void 0)(t)))];window.sessionStorage.setItem(n[0],n[1])}function Mh(e,t){return Ya(n=>new wn(3,[n]),E(n=>{n(new jn(0,[new Ce(0,[]),e,t]))}))}function Cl(e){return Mh(e,!1)}function O3(e){return Mh(e,!0)}function D3(){const e=dh(k0(window.location.pathname+window.location.search,2)),t=e[0],n=e[1],r=new zn(t,A3(),n);switch(t.tag){case 4:case 1:case 2:case 5:case 6:return[r,Z()];case 0:{const s=P3();let i;switch(n.tag){case 0:case 2:{i=1;break}default:s==null?i=1:i=0}switch(i){case 0:return[new zn(r.CurrentPage,new xr(2,[new m(0,[s])]),r.AppMode),Z()];default:return[r,E(o=>{o(new wn(5,[]))})]}}default:return[r,Cl(t.fields[0])]}}function N3(e,t){switch(e.tag){case 1:{const n=e.fields[0];return[new zn(new W(3,[n]),t.Credentials,t.AppMode),Cl(n)]}case 2:return[new zn(new W(4,[]),t.Credentials,t.AppMode),Ya(n=>new wn(3,[n]),E(n=>{n(new jn(1,[]))}))];case 3:{const n=T3(e.fields[0],t.Credentials,t.AppMode),r=n[0];let s,i;switch(r.tag===2&&r.fields[0].tag===0&&t.AppMode.tag===1?(s=0,i=r.fields[0].fields[0]):s=1,s){case 0:{M3(i);break}}return[new zn(t.CurrentPage,r,t.AppMode),Ya(o=>new wn(3,[o]),n[1])]}case 4:return[t,O3(e.fields[0])];case 5:return[new zn(new W(6,[]),t.Credentials,t.AppMode),Z()];default:{const n=dh(e.fields[0])[0],r=new zn(n,t.Credentials,t.AppMode);return n.tag===3?[r,Cl(n.fields[0])]:[r,Z()]}}}const Oh=d("div",C(y([["className","flex flex-col justify-center items-center pt-10"],(()=>{const e=[oi()];return["children",b.Children.toArray(Array.from(e))]})()])));function R3(e){switch(e.CurrentPage.tag){case 3:case 4:case 2:return E("bg-white h-full");default:return ce()}}function L3(e){switch(e.tag){case 1:return d("style",{children:[`
810
810
  html {
811
811
  height: 100%;
812
812
  }
@@ -815,4 +815,4 @@ If you can't use one of these types, please pass an extra decoder.
815
815
  }
816
816
  #workflows-app {
817
817
  height: 100%;
818
- }`]});default:return te()}}function z3(e,t){let n;const r=d("div",C(y([["className",be(" ",$e(E(()=>V(_(jp),E(()=>V(_("font-inter"),E(()=>j3(e))))))))],(n=$e(E(()=>V(_(U3(e.AppMode)),E(()=>{const s=e.CurrentPage;switch(s.tag){case 3:case 4:{const i=e.Credentials;let o;switch(i.tag===2&&i.fields[0].tag===1?o=0:o=1,o){case 0:return _(Fh);default:return _(d(Up,null))}}case 1:return _(d(Oy,null));case 2:return _(d(Qv,{inviteCode:s.fields[0],navigateAuthCodeExchangePage:i=>{i==null?t(new bn(2,[])):t(new bn(1,[i]))},startAuthCodeExchangeBackground:i=>{t(new bn(4,[i]))}}));case 5:return _(d("h1",{children:["Not found"]}));case 6:return _(d(nb,null));default:{const i=e.Credentials;let o,a;switch(i.tag===2&&i.fields[0].tag===0?(o=0,a=i.fields[0].fields[0]):o=1,o){case 0:return _(d(k3,{appMode:e.AppMode,accessToken:a.access_token}));default:return _(Fh)}}}})))),["children",b.Children.toArray(Array.from(n))])])));return w2({hashMode:2,onUrlChanged:s=>{t(new bn(0,[s]))},application:d(Oe,{},r)})}b_(M3("workflows-app",Ri(F3,W3,z3)))})();
818
+ }`]});default:return te()}}function B3(e,t){let n;const r=d("div",C(y([["className",_e(" ",$e(A(()=>V(_(Vp),A(()=>V(_("font-inter"),A(()=>R3(e))))))))],(n=$e(A(()=>V(_(L3(e.AppMode)),A(()=>{const s=e.CurrentPage;switch(s.tag){case 3:case 4:{const i=e.Credentials;let o;switch(i.tag===2&&i.fields[0].tag===1?o=0:o=1,o){case 0:return _(Oh);default:return _(d(Fp,null))}}case 1:return _(d(Ay,null));case 2:return _(d(Yv,{inviteCode:s.fields[0],navigateAuthCodeExchangePage:i=>{i==null?t(new wn(2,[])):t(new wn(1,[i]))},startAuthCodeExchangeBackground:i=>{t(new wn(4,[i]))}}));case 5:return _(d("h1",{children:["Not found"]}));case 6:return _(d(Xv,null));default:{const i=e.Credentials;let o,a;switch(i.tag===2&&i.fields[0].tag===0?(o=0,a=i.fields[0].fields[0]):o=1,o){case 0:return _(d(y3,{appMode:e.AppMode,accessToken:a.access_token}));default:return _(Oh)}}}})))),["children",b.Children.toArray(Array.from(n))])])));return h2({hashMode:2,onUrlChanged:s=>{t(new wn(0,[s]))},application:d(Pe,{},r)})}g_(x3("workflows-app",Mi(D3,N3,B3)))})();